找回密码
 立即注册
搜索
热搜: 丝袜 魅魔 黑丝
查看: 8|回复: 0

24539489_骨制圣女受难像

[复制链接]

13万

主题

343

回帖

22万

积分

管理员

站长

UID
1
积分
224398
余额
13 R
Moe币
84879
在线时间
279 小时
注册时间
2025-12-28
最后登录
2026-11-6
发表于 2026-9-3 23:00:59 | 显示全部楼层 |阅读模式
his.popupInfo.show=!0,this.popupInfo.coverData.show=!0,this.popupInfo.coverData.fname=e.file_name):this.$toast({status:"",explainText:t&&t.msg?t.msg:"上传失败"})},async bdUploadCreate(e){let t={gid:this.topTempl.gid,pid:this.topTempl.nowPid,contenttype:this.upFiles[0].type,name:this.upFiles[0].name,size:this.upFiles[0].size},i=await this.$myTempl.uploadCreate(t);console.log(390,i),"ok"===i.result&&i.uploadinfo&&i.uploadinfo.params&&i.uploadinfo.url?this.bdUploadks3File(i.uploadinfo.url,i.uploadinfo.params,i.uploadinfo.store,e):"SpaceFull"===i.result||"CorpSpaceFull"===i.result?((0,a.A)(this.topTempl.gid,"uploadFile"),this.bdUploadProgress(this.upFiles[0],"del",i.result)):this.bdUploadProgress(this.upFiles[0],"del")},async bdUploadks3File(e,t={},i,n){let r=Object.keys(t),o=Object.values(t),s=new FormData;r.forEach(((e,t)=>{s.append(e,o[t])})),s.append("file",this.upFiles[0]);let{data:c,headers:l}=await this.$myTempl.uploadks3File(e,s);c.newfilename?this.bdUploadFileSynchro(c.newfilename,t,i,l,n):"SpaceFull"===c.result||"CorpSpaceFull"===c.result?((0,a.A)(this.gpid.gid,"uploadFile"),this.bdUploadProgress(this.upFiles[0],"del",c.result)):this.bdUploadProgress(this.upFiles[0],"del")},async bdUploadFileSynchro(e,t,i,n,r){let o=n.ETag||n.etag,s=o.split('"'),c={gid:this.topTempl.gid,pid:this.topTempl.nowPid,sha1:e,etag:s[1],key:t.key,name:this.upFiles[0].name,size:this.upFiles[0].size,store:i,must_create:!(!r||!r.must_create)},l=await this.$myTempl.uploadFileSynchro(c);if("ok"===l.result){this.$toast({status:"success",explainText:"上传成功"}),this.upReloadList(l.fname,l.id);let e=["wps,wpt,doc,docx,dot,rtf,xml,docm,dotm,wdoc","et,ett,xls,xlsx,xlsm,xlsb,xlam,xltx,xltm,xls,xlt,xla,xlw,odc,uxdc,dbf,prn,wxls,csv","dps,dpt,pptx,ppt,pptm,ppsx,pps,ppsm,potx,pot,potm,wpd,wppt","otl","dbt","ksheet"],t=[{app:1,ename:"wps"},{app:2,ename:"et"},{app:3,ename:"wpp"},{app:4,ename:"flexpaper"},{app:7,ename:"dbsheet"},{app:8,ename:"ksheet"}],i=l.fname.split("."),n=e.findIndex((e=>-1!==e.indexOf(i[i.length-1])));this.$myTempl.setMyTopTempl({files:{file_id:l.id,file_name:l.fname,app:n>-1?t[n].app:""}})}else"SpaceFull"===l.result?((0,a.A)(this.gpid.gid,"uploadFile"),this.bdUploadProgress(this.upFiles[0],"del",l.result)):this.bdUploadProgress(this.upFiles[0],"del")},async commonCopyTempl({fname:e="",target_gid:t=0,target_pid:i=0,fileids:n=0,itemclick:r=!1,dw_str:o="",from:s=""}){let c={fname:e,target_gid:t,target_pid:i,fileid:+n,dw_str:o,from:s},{code:l,data:u,msg:d}=await this.$myTempl.saveAs2(c);if(0===l&&u.fileid)if(r)this.commonSearchTempl(u.fileid);else{"MyTempl"===this.$route.name&&this.$toast({status:"success",explainText:"添加成功"}),this.upReloadList(e,u.fileid);let t=["wps,wpt,doc,docx,dot,rtf,xml,docm,dotm,wdoc","et,ett,xls,xlsx,xlsm,xlsb,xlam,xltx,xltm,xls,xlt,xla,xlw,odc,uxdc,dbf,prn,wxls,csv","dps,dpt,pptx,ppt,pptm,ppsx,pps,ppsm,potx,pot,potm,wpd,wppt","otl","dbt","ksheet"],i=[{app:1,ename:"wps"},{app:2,ename:"et"},{app:3,ename:"wpp"},{app:4,ename:"flexpaper"},{app:7,ename:"dbsheet"},{app:8,ename:"ksheet"}],n=e.split("."),r=t.findIndex((e=>-1!==e.indexOf(n[n.length-1])));this.$myTempl.setMyTopTempl({files:{file_id:u.fileid,file_name:e,app:r>-1?i[r].app:""}})}else if(l===p.NS.SpaceFull||l===p.NS.CorpSpaceFull){const e=s.includes("add")?"uploadCloud":"useTemplate";(0,a.A)(this.gpid.gid,e)}else 0!==l&&this.$toast({status:l,explainText:d});return u},async commonSearchTempl(e){let t=await this.$myTempl.fileInfo({id:e});if("ok"===t.result&&t.fileinfo){let e=t.fileinfo.link_url;const i=`${e}${-1===e.indexOf("?")?"?":"&"}newFile=true&from=docs&source=docsWeb&startTime=${u.l.getStartTime()}`;(0,l.Dm)(i,t.fileinfo.fname)}else this.$toast({status:"",explainText:"新建失败"})},upReloadList(e){if("MyTempl"===this.$route.name){let t=["otl","ksheet","dbt","wps,wpt,doc,docx,dot,rtf,xml,docm,dotm,wdoc","dps,dpt,pptx,ppt,pptm,ppsx,pps,ppsm,potx,pot,potm,wpd,wppt","et,ett,xls,xlsx,xlsm,xlsb,xlam,xltx,xltm,xls,xlt,xla,xlw,odc,uxdc,dbf,prn,wxls,csv"],i=[0,1,2,3,4,5],n=e.split("."),r=t.findIndex((e=>-1!==e.indexOf(n[n.length-1])));this.getList("add",i[r])}else this.getMyTemplNList()},async loginClient(){o.Ay.login()},handleAIItemClick(e){const t={position:e.index,page_name:"mymb",source_page:"mymb",moban_id:e.mb_id,moban_title:e.fname,moban_type:"fp",is_ai:"1"},i={start_time:(new Date).getTime(),from:`${p.e8}_mytempl_aitpl`};(0,c.S)({parentId:this.gpid.pid,groupId:this.gpid.gid,createFileType:"flexpaper",getFileType:2,templateInfo:{id:e.mb_id,name:e.fname},myTemplateId:e.id,openInNewTab:!s.platform.isWps,isAITemplate:!0},t,i)}},created(){}}},3931:function(e,t,i){"use strict";i.d(t,{E:function(){return h}});var n=i(2505),r=i.n(n),o=i(8426),s=i(9615),a=i(9106),c=i(5845);const l={json:"application/json"},u=e=>new Promise(((t,i)=>{const n=s(e.baseURL,e.url),r=a(n,e.params,e.paramsSerializer),u=e.headers&&e.headers["Content-Type"],p=u||l.json,d=(...t)=>e.debug&&console.warn(...t);e.cancelToken&&e.cancelToken.promise.then((function(e){i(e)}));const f=(n={})=>{const r={status:n.statuscode,data:n.data,config:e,headers:{"content-type":n.datatype}},{status:o}=r,s=o&&o>=200&&o<300;s?t(r):i(new c("Request failed with status code "+o,[c.ERR_BAD_REQUEST,c.ERR_BAD_RESPONSE][Math.floor(o/100)-4],r.config,r.request,r))},h={url:r,content_type:p,method:e.method,data:e.data,timeout:e.timeout,...e.wspRequestOptions};d("httpRequestQing options -> ",h),o.A.httpRequestQing(h).then((e=>{f(e),d("httpRequestQing resolve -> ",e)})).catch((e=>{f(e.response),d("httpRequestQing catch -> ",e)}))}));var p=i(8271),d=i(4764),f=i(6444);const h=r().create({adapter:p.K.isWPSPlugin?u:void 0,timeout:15e3,withCredentials:!0});(0,d.m)(h),p.K.isWPSPlugin&&h.interceptors.request.use(f.P)},755:function(e,t,i){"use strict";i.d(t,{A:function(){return $t}});var n=i(5471);function r(e,t){for(var i in t)e[i]=t[i];return e}var o=/[!'()*]/g,s=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,c=function(e){return encodeURIComponent(e).replace(o,s).replace(a,",")};function l(e){try{return decodeURIComponent(e)}catch(t){0}return e}function u(e,t,i){void 0===t&&(t={});var n,r=i||d;try{n=r(e||"")}catch(a){n={}}for(var o in t){var s=t[o];n[o]=Array.isArray(s)?s.map(p):p(s)}return n}var p=function(e){return null==e||"object"===typeof e?e:String(e)};function d(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var i=e.replace(/\+/g," ").split("="),n=l(i.shift()),r=i.length>0?l(i.join("=")):null;void 0===t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]})),t):t}function f(e){var t=e?Object.keys(e).map((function(t){var i=e[t];if(void 0===i)return"";if(null===i)return c(t);if(Array.isArray(i)){var n=[];return i.forEach((function(e){void 0!==e&&(null===e?n.push(c(t)):n.push(c(t)+"="+c(e)))})),n.join("&")}return c(t)+"="+c(i)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function m(e,t,i,n){var r=n&&n.options.stringifyQuery,o=t.query||{};try{o=g(o)}catch(a){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:w(t,r),matched:e?y(e):[]};return i&&(s.redirectedFrom=w(i,r)),Object.freeze(s)}function g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"===typeof e){var t={};for(var i in e)t[i]=g(e[i]);return t}return e}var v=m(null,{path:"/"});function y(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function w(e,t){var i=e.path,n=e.query;void 0===n&&(n={});var r=e.hash;void 0===r&&(r="");var o=t||f;return(i||"/")+o(n)+r}function b(e,t,i){return t===v?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&(i||e.hash===t.hash&&_(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(i||e.hash===t.hash&&_(e.query,t.query)&&_(e.params,t.params))))}function _(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var i=Object.keys(e).sort(),n=Object.keys(t).sort();return i.length===n.length&&i.every((function(i,r){var o=e[i],s=n[r];if(s!==i)return!1;var a=t[i];return null==o||null==a?o===a:"object"===typeof o&&"object"===typeof a?_(o,a):String(o)===String(a)}))}function x(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&C(e.query,t.query)}function C(e,t){for(var i in t)if(!(i in e))return!1;return!0}function k(e){for(var t=0;t<e.matched.length;t++){var i=e.matched[t];for(var n in i.instances){var r=i.instances[n],o=i.enteredCbs[n];if(r&&o){delete i.enteredCbs[n];for(var s=0;s<o.length;s++)r._isBeingDestroyed||o[s](r)}}}}var A={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var i=t.props,n=t.children,o=t.parent,s=t.data;s.routerView=!0;var a=o.$createElement,c=i.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),p=0,d=!1;while(o&&o._routerRoot!==o){var f=o.$vnode?o.$vnode.data:{};f.routerView&&p++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(s.routerViewDepth=p,d){var h=u[c],m=h&&h.component;return m?(h.configProps&&I(m,s,h.route,h.configProps),a(m,s,n)):a()}var g=l.matched[p],v=g&&g.components[c];if(!g||!v)return u[c]=null,a();u[c]={component:v},s.registerRouteInstance=function(e,t){var i=g.instances[c];(t&&i!==e||!t&&i===e)&&(g.instances[c]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){g.instances[c]=t.componentInstance},s.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[c]&&(g.instances[c]=e.componentInstance),k(l)};var y=g.props&&g.props[c];return y&&(r(u[c],{route:l,configProps:y}),I(v,s,l,y)),a(v,s,n)}};function I(e,t,i,n){var o=t.props=M(i,n);if(o){o=t.props=r({},o);var s=t.attrs=t.attrs||{};for(var a in o)e.props&&a in e.props||(s[a]=o[a],delete o[a])}}function M(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function T(e,t,i){var n=e.charAt(0);if("/"===n)return e;if("?"===n||"#"===n)return t+e;var r=t.split("/");i&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?r.pop():"."!==a&&r.push(a)}return""!==r[0]&&r.unshift(""),r.join("/")}function E(e){var t="",i="",n=e.indexOf("#");n>=0&&(t=e.slice(n),e=e.slice(0,n));var r=e.indexOf("?");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{path:e,query:i,hash:t}}function O(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var S=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},D=Z,N=R,P=z,j=B,L=G,$=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function R(e,t){var i,n=[],r=0,o=0,s="",a=t&&t.delimiter||"/";while(null!=(i=$.exec(e))){var c=i[0],l=i[1],u=i.index;if(s+=e.slice(o,u),o=u+c.length,l)s+=l[1];else{var p=e[o],d=i[2],f=i[3],h=i[4],m=i[5],g=i[6],v=i[7];s&&(n.push(s),s="");var y=null!=d&&null!=p&&p!==d,w="+"===g||"*"===g,b="?"===g||"*"===g,_=i[2]||a,x=h||m;n.push({name:f||r++,prefix:d||"",delimiter:_,optional:b,repeat:w,partial:y,asterisk:!!v,pattern:x?Q(x):v?".*":"[^"+W(_)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&n.push(s),n}function z(e,t){return B(R(e,t),t)}function F(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function U(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function B(e,t){for(var i=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(i[n]=new RegExp("^(?:"+e[n].pattern+")$",K(t)));return function(t,n){for(var r="",o=t||{},s=n||{},a=s.pretty?F:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!==typeof l){var u,p=o[l.name];if(null==p){if(l.optional){l.partial&&(r+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(S(p)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(u=a(p[d]),!i[c].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===d?l.prefix:l.delimiter)+u}}else{if(u=l.asterisk?U(p):a(p),!i[c].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');r+=l.prefix+u}}else r+=l}return r}}function W(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Q(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function V(e,t){return e.keys=t,e}function K(e){return e&&e.sensitive?"":"i"}function q(e,t){var i=e.source.match(/\((?!\?)/g);if(i)for(var n=0;n<i.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return V(e,t)}function H(e,t,i){for(var n=[],r=0;r<e.length;r++)n.push(Z(e[r],t,i).source);var o=new RegExp("(?:"+n.join("|")+")",K(i));return V(o,t)}function Y(e,t,i){return G(R(e,i),t,i)}function G(e,t,i){S(t)||(i=t||i,t=[]),i=i||{};for(var n=i.strict,r=!1!==i.end,o="",s=0;s<e.length;s++){var a=e[s];if("string"===typeof a)o+=W(a);else{var c=W(a.prefix),l="(?:"+a.pattern+")";t.push(a),a.repeat&&(l+="(?:"+c+l+")*"),l=a.optional?a.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")",o+=l}}var u=W(i.delimiter||"/"),p=o.slice(-u.length)===u;return n||(o=(p?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=r?"$":n&&p?"":"(?="+u+"|$)",V(new RegExp("^"+o,K(i)),t)}function Z(e,t,i){return S(t)||(i=t||i,t=[]),i=i||{},e instanceof RegExp?q(e,t):S(e)?H(e,t,i):Y(e,t,i)}D.parse=N,D.compile=P,D.tokensToFunction=j,D.tokensToRegExp=L;var J=Object.create(null);function X(e,t,i){t=t||{};try{var n=J[e]||(J[e]=D.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),n(t,{pretty:!0})}catch(r){return""}finally{delete t[0]}}function ee(e,t,i,n){var o="string"===typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){o=r({},e);var s=o.params;return s&&"object"===typeof s&&(o.params=r({},s)),o}if(!o.path&&o.params&&t){o=r({},o),o._normalized=!0;var a=r(r({},t.params),o.params);if(t.name)o.name=t.name,o.params=a;else if(t.matched.length){var c=t.matched[t.matched.length-1].path;o.path=X(c,a,"path "+t.path)}else 0;return o}var l=E(o.path||""),p=t&&t.path||"/",d=l.path?T(l.path,p,i||o.append):p,f=u(l.query,o.query,n&&n.options.parseQuery),h=o.hash||l.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:d,query:f,hash:h}}var te,ie=[String,Object],ne=[String,Array],re=function(){},oe={name:"RouterLink",props:{to:{type:ie,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ne,default:"click"}},render:function(e){var t=this,i=this.$router,n=this.$route,o=i.resolve(this.to,n,this.append),s=o.location,a=o.route,c=o.href,l={},u=i.options.linkActiveClass,p=i.options.linkExactActiveClass,d=null==u?"router-link-active":u,f=null==p?"router-link-exact-active":p,h=null==this.activeClass?d:this.activeClass,g=null==this.exactActiveClass?f:this.exactActiveClass,v=a.redirectedFrom?m(null,ee(a.redirectedFrom),null,i):a;l[g]=b(n,v,this.exactPath),l[h]=this.exact||this.exactPath?l[g]:x(n,v);var y=l[g]?this.ariaCurrentValue:null,w=function(e){se(e)&&(t.replace?i.replace(s,re):i.push(s,re))},_={click:se};Array.isArray(this.event)?this.event.forEach((function(e){_[e]=w})):_[this.event]=w;var C={class:l},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:a,navigate:w,isActive:l[h],isExactActive:l[g]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)C.on=_,C.attrs={href:c,"aria-current":y};else{var A=ae(this.$slots.default);if(A){A.isStatic=!1;var I=A.data=r({},A.data);for(var M in I.on=I.on||{},I.on){var T=I.on[M];M in _&&(I.on[M]=Array.isArray(T)?T:[T])}for(var E in _)E in I.on?I.on[E].push(_[E]):I.on[E]=w;var O=A.data.attrs=r({},A.data.attrs);O.href=c,O["aria-current"]=y}else C.on=_}return e(this.tag,C,this.$slots.default)}};function se(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,i=0;i<e.length;i++){if(t=e[i],"a"===t.tag)return t;if(t.children&&(t=ae(t.children)))return t}}function ce(e){if(!ce.installed||te!==e){ce.installed=!0,te=e;var t=function(e){return void 0!==e},i=function(e,i){var n=e.$options._parentVnode;t(n)&&t(n=n.data)&&t(n=n.registerRouteInstance)&&n(e,i)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",A),e.component("RouterLink",oe);var n=e.config.optionMergeStrategies;n.beforeRouteEnter=n.beforeRouteLeave=n.beforeRouteUpdate=n.created}}var le="undefined"!==typeof window;function ue(e,t,i,n,r){var o=t||[],s=i||Object.create(null),a=n||Object.create(null);e.forEach((function(e){pe(o,s,a,e,r)}));for(var c=0,l=o.length;c<l;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),l--,c--);return{pathList:o,pathMap:s,nameMap:a}}function pe(e,t,i,n,r,o){var s=n.path,a=n.name;var c=n.pathToRegexpOptions||{},l=fe(s,r,c.strict);"boolean"===typeof n.caseSensitive&&(c.sensitive=n.caseSensitive);var u={path:l,regex:de(l,c),components:n.components||{default:n.component},alias:n.alias?"string"===typeof n.alias?[n.alias]:n.alias:[],instances:{},enteredCbs:{},name:a,parent:r,matchAs:o,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach((function(n){var r=o?O(o+"/"+n.path):void 0;pe(e,t,i,n,u,r)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==n.alias)for(var p=Array.isArray(n.alias)?n.alias:[n.alias],d=0;d<p.length;++d){var f=p[d];0;var h={path:f,children:n.children};pe(e,t,i,h,r,u.path||"/")}a&&(i[a]||(i[a]=u))}function de(e,t){var i=D(e,[],t);return i}function fe(e,t,i){return i||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:O(t.path+"/"+e)}function he(e,t){var i=ue(e),n=i.pathList,r=i.pathMap,o=i.nameMap;function s(e){ue(e,n,r,o)}function a(e,t){var i="object"!==typeof e?o[e]:void 0;ue([t||e],n,r,o,i),i&&i.alias.length&&ue(i.alias.map((function(e){return{path:e,children:[t]}})),n,r,o,i)}function c(){return n.map((function(e){return r[e]}))}function l(e,i,s){var a=ee(e,i,!1,t),c=a.name;if(c){var l=o[c];if(!l)return d(null,a);var u=l.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof a.params&&(a.params={}),i&&"object"===typeof i.params)for(var p in i.params)!(p in a.params)&&u.indexOf(p)>-1&&(a.params[p]=i.params[p]);return a.path=X(l.path,a.params,'named route "'+c+'"'),d(l,a,s)}if(a.path){a.params={};for(var f=0;f<n.length;f++){var h=n[f],m=r[h];if(me(m.regex,a.path,a.params))return d(m,a,s)}}return d(null,a)}function u(e,i){var n=e.redirect,r="function"===typeof n?n(m(e,i,null,t)):n;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return d(null,i);var s=r,a=s.name,c=s.path,u=i.query,p=i.hash,f=i.params;if(u=s.hasOwnProperty("query")?s.query:u,p=s.hasOwnProperty("hash")?s.hash:p,f=s.hasOwnProperty("params")?s.params:f,a){o[a];return l({_normalized:!0,name:a,query:u,hash:p,params:f},void 0,i)}if(c){var h=ge(c,e),g=X(h,f,'redirect route with path "'+h+'"');return l({_normalized:!0,path:g,query:u,hash:p},void 0,i)}return d(null,i)}function p(e,t,i){var n=X(i,t.params,'aliased route with path "'+i+'"'),r=l({_normalized:!0,path:n});if(r){var o=r.matched,s=o[o.length-1];return t.params=r.params,d(s,t)}return d(null,t)}function d(e,i,n){return e&&e.redirect?u(e,n||i):e&&e.matchAs?p(e,i,e.matchAs):m(e,i,n,t)}return{match:l,addRoute:a,getRoutes:c,addRoutes:s}}function me(e,t,i){var n=t.match(e);if(!n)return!1;if(!i)return!0;for(var r=1,o=n.length;r<o;++r){var s=e.keys[r-1];s&&(i[s.name||"pathMatch"]="string"===typeof n[r]?l(n[r]):n[r])}return!0}function ge(e,t){return T(e,t.parent?t.parent.path:"/",!0)}var ve=le&&window.performance&&window.performance.now?window.performance:Date;function ye(){return ve.now().toFixed(3)}var we=ye();function be(){return we}function _e(e){return we=e}var xe=Object.create(null);function Ce(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),i=r({},window.history.state);return i.key=be(),window.history.replaceState(i,"",t),window.addEventListener("popstate",Ie),function(){window.removeEventListener("popstate",Ie)}}function ke(e,t,i,n){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var o=Me(),s=r.call(e,t,i,n?o:null);s&&("function"===typeof s.then?s.then((function(e){Pe(e,o)})).catch((function(e){0})):Pe(s,o))}))}}function Ae(){var e=be();e&&(xe[e]={x:window.pageXOffset,y:window.pageYOffset})}function Ie(e){Ae(),e.state&&e.state.key&&_e(e.state.key)}function Me(){var e=be();if(e)return xe[e]}function Te(e,t){var i=document.documentElement,n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}function Ee(e){return De(e.x)||De(e.y)}function Oe(e){return{x:De(e.x)?e.x:window.pageXOffset,y:De(e.y)?e.y:window.pageYOffset}}function Se(e){return{x:De(e.x)?e.x:0,y:De(e.y)?e.y:0}}function De(e){return"number"===typeof e}var Ne=/^#\d/;function Pe(e,t){var i="object"===typeof e;if(i&&"string"===typeof e.selector){var n=Ne.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(n){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=Se(r),t=Te(n,r)}else Ee(e)&&(t=Oe(e))}else i&&Ee(e)&&(t=Oe(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var je=le&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Le(e,t){Ae();var i=window.history;try{if(t){var n=r({},i.state);n.key=be(),i.replaceState(n,"",e)}else i.pushState({key:_e(ye())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function $e(e){Le(e,!0)}var Re={redirected:2,aborted:4,cancelled:8,duplicated:16};function ze(e,t){return We(e,t,Re.redirected,'Redirected when going from "'+e.fullPath+'" to "'+Ve(t)+'" via a navigation guard.')}function Fe(e,t){var i=We(e,t,Re.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return i.name="NavigationDuplicated",i}function Ue(e,t){return We(e,t,Re.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Be(e,t){return We(e,t,Re.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function We(e,t,i,n){var r=new Error(n);return r._isRouter=!0,r.from=e,r.to=t,r.type=i,r}var Qe=["params","query","hash"];function Ve(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return Qe.forEach((function(i){i in e&&(t[i]=e[i])})),JSON.stringify(t,null,2)}function Ke(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function qe(e,t){return Ke(e)&&e._isRouter&&(null==t||e.type===t)}function He(e,t,i){var n=function(r){r>=e.length?i():e[r]?t(e[r],(function(){n(r+1)})):n(r+1)};n(0)}function Ye(e){return function(t,i,n){var r=!1,o=0,s=null;Ge(e,(function(e,t,i,a){if("function"===typeof e&&void 0===e.cid){r=!0,o++;var c,l=et((function(t){Xe(t)&&(t=t.default),e.resolved="function"===typeof t?t:te.extend(t),i.components[a]=t,o--,o<=0&&n()})),u=et((function(e){var t="Failed to resolve async component "+a+": "+e;s||(s=Ke(e)?e:new Error(t),n(s))}));try{c=e(l,u)}catch(d){u(d)}if(c)if("function"===typeof c.then)c.then(l,u);else{var p=c.component;p&&"function"===typeof p.then&&p.then(l,u)}}})),r||n()}}function Ge(e,t){return Ze(e.map((function(e){return Object.keys(e.components).map((function(i){return t(e.components[i],e.instances[i],e,i)}))})))}function Ze(e){return Array.prototype.concat.apply([],e)}var Je="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Xe(e){return e.__esModule||Je&&"Module"===e[Symbol.toStringTag]}function et(e){var t=!1;return function(){var i=[],n=arguments.length;while(n--)i[n]=arguments[n];if(!t)return t=!0,e.apply(this,i)}}var tt=function(e,t){this.router=e,this.base=it(t),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function it(e){if(!e)if(le){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var i,n=Math.max(e.length,t.length);for(i=0;i<n;i++)if(e[i]!==t[i])break;return{updated:t.slice(0,i),activated:t.slice(i),deactivated:e.slice(i)}}function rt(e,t,i,n){var r=Ge(e,(function(e,n,r,o){var s=ot(e,t);if(s)return Array.isArray(s)?s.map((function(e){return i(e,n,r,o)})):i(s,n,r,o)}));return Ze(n?r.reverse():r)}function ot(e,t){return"function"!==typeof e&&(e=te.extend(e)),e.options[t]}function st(e){return rt(e,"beforeRouteLeave",ct,!0)}function at(e){return rt(e,"beforeRouteUpdate",ct)}function ct(e,t){if(t)return function(){return e.apply(t,arguments)}}function lt(e){return rt(e,"beforeRouteEnter",(function(e,t,i,n){return ut(e,i,n)}))}function ut(e,t,i){return function(n,r,o){return e(n,r,(function(e){"function"===typeof e&&(t.enteredCbs[i]||(t.enteredCbs[i]=[]),t.enteredCbs[i].push(e)),o(e)}))}}tt.prototype.listen=function(e){this.cb=e},tt.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},tt.prototype.onError=function(e){this.errorCbs.push(e)},tt.prototype.transitionTo=function(e,t,i){var n,r=this;try{n=this.router.match(e,this.current)}catch(s){throw this.errorCbs.forEach((function(e){e(s)})),s}var o=this.current;this.confirmTransition(n,(function(){r.updateRoute(n),t&&t(n),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(n,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(n)})))}),(function(e){i&&i(e),e&&!r.ready&&(qe(e,Re.redirected)&&o===v||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},tt.prototype.confirmTransition=function(e,t,i){var n=this,r=this.current;this.pending=e;var o=function(e){!qe(e)&&Ke(e)&&(n.errorCbs.length?n.errorCbs.forEach((function(t){t(e)})):console.error(e)),i&&i(e)},s=e.matched.length-1,a=r.matched.length-1;if(b(e,r)&&s===a&&e.matched[s]===r.matched[a])return this.ensureURL(),e.hash&&ke(this.router,r,e,!1),o(Fe(r,e));var c=nt(this.current.matched,e.matched),l=c.updated,u=c.deactivated,p=c.activated,d=[].concat(st(u),this.router.beforeHooks,at(l),p.map((function(e){return e.beforeEnter})),Ye(p)),f=function(t,i){if(n.pending!==e)return o(Ue(r,e));try{t(e,r,(function(t){!1===t?(n.ensureURL(!0),o(Be(r,e))):Ke(t)?(n.ensureURL(!0),o(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(o(ze(r,e)),"object"===typeof t&&t.replace?n.replace(t):n.push(t)):i(t)}))}catch(s){o(s)}};He(d,f,(function(){var i=lt(p),s=i.concat(n.router.resolveHooks);He(s,f,(function(){if(n.pending!==e)return o(Ue(r,e));n.pending=null,t(e),n.router.app&&n.router.app.$nextTick((function(){k(e)}))}))}))},tt.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},tt.prototype.setupListeners=function(){},tt.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=v,this.pending=null};var pt=function(e){function t(t,i){e.call(this,t,i),this._startLocation=dt(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,i=t.options.scrollBehavior,n=je&&i;n&&this.listeners.push(Ce());var r=function(){var i=e.current,r=dt(e.base);e.current===v&&r===e._startLocation||e.transitionTo(r,(function(e){n&&ke(t,e,i,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,i){var n=this,r=this,o=r.current;this.transitionTo(e,(function(e){Le(O(n.base+e.fullPath)),ke(n.router,e,o,!1),t&&t(e)}),i)},t.prototype.replace=function(e,t,i){var n=this,r=this,o=r.current;this.transitionTo(e,(function(e){$e(O(n.base+e.fullPath)),ke(n.router,e,o,!1),t&&t(e)}),i)},t.prototype.ensureURL=function(e){if(dt(this.base)!==this.current.fullPath){var t=O(this.base+this.current.fullPath);e?Le(t):$e(t)}},t.prototype.getCurrentLocation=function(){return dt(this.base)},t}(tt);function dt(e){var t=window.location.pathname,i=t.toLowerCase(),n=e.toLowerCase();return!e||i!==n&&0!==i.indexOf(O(n+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ft=function(e){function t(t,i,n){e.call(this,t,i),n&&ht(this.base)||mt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,i=t.options.scrollBehavior,n=je&&i;n&&this.listeners.push(Ce());var r=function(){var t=e.current;mt()&&e.transitionTo(gt(),(function(i){n&&ke(e.router,i,t,!0),je||wt(i.fullPath)}))},o=je?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,i){var n=this,r=this,o=r.current;this.transitionTo(e,(function(e){yt(e.fullPath),ke(n.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|M男之家

GMT+8, 2026-11-9 15:37 , Processed in 0.991917 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表