修复了一些问题

This commit is contained in:
kate522 committed 2026-08-25 20:15:55 +08:00
1 parent c484ee6ef3
commit e877ceb560
28 files changed
+565 -535

No files matched your search

+1 -1
View File
@@ -1 +1 @@
jQuery.cookie=function(t,e,a){if(e===void 0){var i=null;if(document.cookie&&document.cookie!="")for(var n=document.cookie.split(";"),r=0;r<n.length;r++){var o=jQuery.trim(n[r]);if(o.substring(0,t.length+1)==t+"="){i=decodeURIComponent(o.substring(t.length+1));break}}return i}a=a||{},e===null&&(e="",a.expires=-1);var s="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var d;typeof a.expires=="number"?(d=new Date,d.setTime(d.getTime()+24*a.expires*60*60*1e3)):d=a.expires,s="; expires="+d.toUTCString()}var c=a.path?"; path="+a.path:"",u=a.domain?"; domain="+a.domain:"",l=a.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(e),s,c,u,l].join("")};var lcs={get:function(t){return window.localStorage?localStorage.getItem(t):$.cookie(t)},set:function(t,e){window.localStorage?localStorage[t]=e:$.cookie(t,e)},remove:function(t){window.localStorage?localStorage.removeItem(t):$.cookie(t,"")}};function aksrt__(t){var e=window._win&&window._win.i18n;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t}function aksrt_is_fatal_error_response(t){return t&&(t.indexOf("Fatal error")>-1||t.indexOf("\u81F4\u547D\u9519\u8BEF")>-1)}function aksrt_sprintf(t){var e=Array.prototype.slice.call(arguments,1),a=aksrt__(t),i=0;return a.replace(/%(\d+\$)?s/g,function(n,r){var o=r?parseInt(r,10)-1:i++;return e[o]!==void 0&&e[o]!==null?e[o]:n})}(function(t,e){var a=e(t,t.document,Date);t.lazySizes=a,typeof module=="object"&&module.exports&&(module.exports=a)})(typeof window<"u"?window:{},function(e,a,i){"use strict";var n,r;if((function(){var w,g={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",loadafterClass:"lazyloadafter",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};r=e.lazySizesConfig||e.lazysizesConfig||{};for(w in g)w in r||(r[w]=g[w])})(),!a||!a.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var o=a.documentElement,s=e.HTMLPictureElement,d="addEventListener",c="getAttribute",u=e[d].bind(e),l=e.setTimeout,f=e.requestAnimationFrame||l,h=e.requestIdleCallback,p=/^picture$/i,_=["load","error","lazyincluded","_lazyloaded"],v={},y=Array.prototype.forEach,b=function(w,g){return v[g]||(v[g]=new RegExp("(\\s|^)"+g+"(\\s|$)")),v[g].test(w[c]("class")||"")&&v[g]},C=function(w,g){b(w,g)||w.setAttribute("class",(w[c]("class")||"").trim()+" "+g)},k=function(w,g){var j;(j=b(w,g))&&w.setAttribute("class",(w[c]("class")||"").replace(j," "))},z=function(w,g,j){var L=j?d:"removeEventListener";j&&z(w,g),_.forEach(function(O){w[L](O,g)})},S=function(w,g,j,L,O){var T=a.createEvent("Event");return j||(j={}),j.instance=n,T.initEvent(g,!L,!O),T.detail=j,w.dispatchEvent(T),T},W=function(w,g){var j;!s&&(j=e.picturefill||r.pf)?(g&&g.src&&!w[c]("srcset")&&w.setAttribute("srcset",g.src),j({reevaluate:!0,elements:[w]})):g&&g.src&&(w.src=g.src)},G=function(w,g){return(getComputedStyle(w,null)||{})[g]},tt=function(w,g,j){for(j=j||w.offsetWidth;j<r.minSize&&g&&!w._lazysizesWidth;)j=g.offsetWidth,g=g.parentNode;return j},J=(function(){var w,g,j=[],L=[],O=j,T=function(){var E=O;for(O=j.length?L:j,w=!0,g=!1;E.length;)E.shift()();w=!1},M=function(E,q){w&&!q?E.apply(this,arguments):(O.push(E),g||(g=!0,(a.hidden?l:f)(T)))};return M._lsFlush=T,M})(),Q=function(w,g){return g?function(){J(w)}:function(){var j=this,L=arguments;J(function(){w.apply(j,L)})}},mt=function(w){var g,j=0,L=r.throttleDelay,O=r.ricTimeout,T=function(){g=!1,j=i.now(),w()},M=h&&O>49?function(){h(T,{timeout:O}),O!==r.ricTimeout&&(O=r.ricTimeout)}:Q(function(){l(T)},!0);return function(E){var q;(E=E===!0)&&(O=33),!g&&(g=!0,q=L-(i.now()-j),q<0&&(q=0),E||q<9?M():l(M,q))}},lt=function(w){var g,j,L=99,O=function(){g=null,w()},T=function(){var M=i.now()-j;M<L?l(T,L-M):(h||O)(O)};return function(){j=i.now(),g||(g=l(T,L))}},dt=(function(){var w,g,j,L,O,T,M,E,q,P,D,K,gt=/^img$/i,_t=/^iframe$/i,wt="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),bt=0,it=0,B=0,at=-1,ct=function(m){B--,(!m||B<0||!m.target)&&(B=0)},ut=function(m){return K==null&&(K=G(a.body,"visibility")=="hidden"),K||!(G(m.parentNode,"visibility")=="hidden"&&G(m,"visibility")=="hidden")},yt=function(m,x){var A,H=m,I=ut(m);for(E-=x,D+=x,q-=x,P+=x;I&&(H=H.offsetParent)&&H!=a.body&&H!=o;)I=(G(H,"opacity")||1)>0,I&&G(H,"overflow")!="visible"&&(A=H.getBoundingClientRect(),I=P>A.left&&q<A.right&&D>A.top-1&&E<A.bottom+1);return I},ft=function(){var m,x,A,H,I,F,U,V,Y,X,Z,et,R=n.elements;if((L=r.loadMode)&&B<8&&(m=R.length)){for(x=0,at++;x<m;x++)if(!(!R[x]||R[x]._lazyRace)){if(!wt||n.prematureUnveil&&n.prematureUnveil(R[x])){rt(R[x]);continue}if((!(V=R[x][c]("data-expand"))||!(F=V*1))&&(F=it),X||(X=!r.expand||r.expand<1?o.clientHeight>500&&o.clientWidth>500?500:370:r.expand,n._defEx=X,Z=X*r.expFactor,et=r.hFac,K=null,it<Z&&B<1&&at>2&&L>2&&!a.hidden?(it=Z,aLine truncated
jQuery.cookie=function(t,e,a){if(e===void 0){var i=null;if(document.cookie&&document.cookie!="")for(var n=document.cookie.split(";"),r=0;r<n.length;r++){var o=jQuery.trim(n[r]);if(o.substring(0,t.length+1)==t+"="){i=decodeURIComponent(o.substring(t.length+1));break}}return i}a=a||{},e===null&&(e="",a.expires=-1);var s="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var d;typeof a.expires=="number"?(d=new Date,d.setTime(d.getTime()+24*a.expires*60*60*1e3)):d=a.expires,s="; expires="+d.toUTCString()}var c=a.path?"; path="+a.path:"",u=a.domain?"; domain="+a.domain:"",l=a.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(e),s,c,u,l].join("")};var lcs={get:function(t){return window.localStorage?localStorage.getItem(t):jQuery.cookie(t)},set:function(t,e){window.localStorage?localStorage[t]=e:jQuery.cookie(t,e)},remove:function(t){window.localStorage?localStorage.removeItem(t):jQuery.cookie(t,"")}};function aksrt__(t){var e=window._win&&window._win.i18n;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t}function aksrt_is_fatal_error_response(t){return t&&(t.indexOf("Fatal error")>-1||t.indexOf("\u81F4\u547D\u9519\u8BEF")>-1)}function aksrt_sprintf(t){var e=Array.prototype.slice.call(arguments,1),a=aksrt__(t),i=0;return a.replace(/%(\d+\$)?s/g,function(n,r){var o=r?parseInt(r,10)-1:i++;return e[o]!==void 0&&e[o]!==null?e[o]:n})}(function(t,e){var a=e(t,t.document,Date);t.lazySizes=a,typeof module=="object"&&module.exports&&(module.exports=a)})(typeof window<"u"?window:{},function(e,a,i){"use strict";var n,r;if((function(){var w,g={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",loadafterClass:"lazyloadafter",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};r=e.lazySizesConfig||e.lazysizesConfig||{};for(w in g)w in r||(r[w]=g[w])})(),!a||!a.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var o=a.documentElement,s=e.HTMLPictureElement,d="addEventListener",c="getAttribute",u=e[d].bind(e),l=e.setTimeout,f=e.requestAnimationFrame||l,h=e.requestIdleCallback,p=/^picture$/i,_=["load","error","lazyincluded","_lazyloaded"],v={},y=Array.prototype.forEach,b=function(w,g){return v[g]||(v[g]=new RegExp("(\\s|^)"+g+"(\\s|$)")),v[g].test(w[c]("class")||"")&&v[g]},C=function(w,g){b(w,g)||w.setAttribute("class",(w[c]("class")||"").trim()+" "+g)},k=function(w,g){var j;(j=b(w,g))&&w.setAttribute("class",(w[c]("class")||"").replace(j," "))},z=function(w,g,j){var L=j?d:"removeEventListener";j&&z(w,g),_.forEach(function(O){w[L](O,g)})},S=function(w,g,j,L,O){var T=a.createEvent("Event");return j||(j={}),j.instance=n,T.initEvent(g,!L,!O),T.detail=j,w.dispatchEvent(T),T},W=function(w,g){var j;!s&&(j=e.picturefill||r.pf)?(g&&g.src&&!w[c]("srcset")&&w.setAttribute("srcset",g.src),j({reevaluate:!0,elements:[w]})):g&&g.src&&(w.src=g.src)},G=function(w,g){return(getComputedStyle(w,null)||{})[g]},tt=function(w,g,j){for(j=j||w.offsetWidth;j<r.minSize&&g&&!w._lazysizesWidth;)j=g.offsetWidth,g=g.parentNode;return j},J=(function(){var w,g,j=[],L=[],O=j,T=function(){var E=O;for(O=j.length?L:j,w=!0,g=!1;E.length;)E.shift()();w=!1},M=function(E,q){w&&!q?E.apply(this,arguments):(O.push(E),g||(g=!0,(a.hidden?l:f)(T)))};return M._lsFlush=T,M})(),Q=function(w,g){return g?function(){J(w)}:function(){var j=this,L=arguments;J(function(){w.apply(j,L)})}},mt=function(w){var g,j=0,L=r.throttleDelay,O=r.ricTimeout,T=function(){g=!1,j=i.now(),w()},M=h&&O>49?function(){h(T,{timeout:O}),O!==r.ricTimeout&&(O=r.ricTimeout)}:Q(function(){l(T)},!0);return function(E){var q;(E=E===!0)&&(O=33),!g&&(g=!0,q=L-(i.now()-j),q<0&&(q=0),E||q<9?M():l(M,q))}},lt=function(w){var g,j,L=99,O=function(){g=null,w()},T=function(){var M=i.now()-j;M<L?l(T,L-M):(h||O)(O)};return function(){j=i.now(),g||(g=l(T,L))}},dt=(function(){var w,g,j,L,O,T,M,E,q,P,D,K,gt=/^img$/i,_t=/^iframe$/i,wt="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),bt=0,it=0,B=0,at=-1,ct=function(m){B--,(!m||B<0||!m.target)&&(B=0)},ut=function(m){return K==null&&(K=G(a.body,"visibility")=="hidden"),K||!(G(m.parentNode,"visibility")=="hidden"&&G(m,"visibility")=="hidden")},yt=function(m,x){var A,H=m,I=ut(m);for(E-=x,D+=x,q-=x,P+=x;I&&(H=H.offsetParent)&&H!=a.body&&H!=o;)I=(G(H,"opacity")||1)>0,I&&G(H,"overflow")!="visible"&&(A=H.getBoundingClientRect(),I=P>A.left&&q<A.right&&D>A.top-1&&E<A.bottom+1);return I},ft=function(){var m,x,A,H,I,F,U,V,Y,X,Z,et,R=n.elements;if((L=r.loadMode)&&B<8&&(m=R.length)){for(x=0,at++;x<m;x++)if(!(!R[x]||R[x]._lazyRace)){if(!wt||n.prematureUnveil&&n.prematureUnveil(R[x])){rt(R[x]);continue}if((!(V=R[x][c]("data-expand"))||!(F=V*1))&&(F=it),X||(X=!r.expand||r.expand<1?o.clientHeight>500&&o.clientWidth>500?500:370:r.expand,n._defEx=X,Z=X*r.expFactor,et=r.hFac,K=null,it<Z&&B<1&&at>2&&L>2&&!aLine truncated