From 22104950d72c8731f0f1ffcba49bee7b56ef39e7 Mon Sep 17 00:00:00 2001 From: mhwikicn Date: Sun, 1 Feb 2026 19:15:01 +0800 Subject: [PATCH] Update pages.2b7afd30.js --- pages.2b7afd30.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages.2b7afd30.js b/pages.2b7afd30.js index f80da34..2c05c3e 100644 --- a/pages.2b7afd30.js +++ b/pages.2b7afd30.js @@ -29,7 +29,7 @@ parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcel },{"../../data-provider/models/equipment/EquipmentSkills":"gZ5g"}],"Ra9L":[function(require,module,exports) { "use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}var i=o().mark(l);function a(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=c(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function c(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=r)){o.next=12;break}return o.next=10,p;case 10:o.next=13;break;case 12:return o.delegateYield(l(t,e,r,p,h),"t0",13);case 13:o.next=3;break;case 15:o.next=20;break;case 17:o.prev=17,o.t1=o.catch(1),u.e(o.t1);case 20:return o.prev=20,u.f(),o.finish(20);case 23:case"end":return o.stop()}},i,null,[[1,17,20,23]])}Object.defineProperty(exports,"__esModule",{value:!0});var f=function(){function t(r,n){var o=this;e(this,t),this.decorationsOfSkillMap=new Map,this.calculations=new Map;var i,c=a(n);try{var u=function(){var t=i.value[0],e=r.filter(function(e){return e.skills.get(t)>0}).sort(function(e,r){return r.skills.get(t)-e.skills.get(t)});o.decorationsOfSkillMap.set(t,e),o.calculations.set(t,new Map)};for(c.s();!(i=c.n()).done;)u()}catch(l){c.e(l)}finally{c.f()}}return n(t,[{key:"calculateMinRequiredSlots",value:function(e,r){var n=this.decorationsOfSkillMap.get(e);if(0===n.length)return t.DUMMY_SCORE;var o,i=t.DUMMY_SCORE,c=a(l(n,e,r,0,0));try{for(c.s();!(o=c.n()).done;){var u=o.value;u=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}var s=l().mark(q),f=l().mark(O);function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=h(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function h(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=n)){l.next=12;break}return l.next=10,c;case 10:l.next=14;break;case 12:if(!(c.score+r[o]0)){l.next=16;break}return l.delegateYield(q(t,c,r,n,o-1),"t0",16);case 16:l.next=3;break;case 18:l.next=23;break;case 20:l.prev=20,l.t1=l.catch(1),a.e(l.t1);case 23:return l.prev=23,a.f(),l.finish(23);case 26:case"end":return l.stop()}},s,null,[[1,20,23,26]])}function O(t,e,r,n){var o,a,i,u,c;return l().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:o=e[n],a=p(t.get(o)),l.prev=2,a.s();case 4:if((i=a.n()).done){l.next=19;break}if(u=i.value,(c=r.copy()).addPerm(u,o),!(c.requiredSlots<=0)){l.next=13;break}return l.next=11,c;case 11:l.next=15;break;case 13:if(!(c.unusedSlotsSum0)){l.next=17;break}return l.delegateYield(O(t,e,c,n-1),"t0",17);case 17:l.next=4;break;case 19:l.next=24;break;case 21:l.prev=21,l.t1=l.catch(2),a.e(l.t1);case 24:return l.prev=24,a.f(),l.finish(24);case 27:case"end":return l.stop()}},f,null,[[2,21,24,27]])}var j=function(t,e){var r=e+1,n=t.score*r,o=t.decos.map(function(t){var e=new g.default(t.skills);return e.multiply(r),Object.assign({},t,{affectedByTorsoUp:!0,name:t.name.concat(" (TorsoUp)"),skills:e})}),a=new g.default(t.skills);return a.multiply(r),{score:n,decos:o,skills:a}},_=function(t,e,r,n,o){var i,u=function(t,e){if(e.requiredSlots<=0)return e;if(!(e.unusedSlotsSum0&&c>0){var f,h=t.getSlotsExceptChest().concat(e.weaponSlots?e.weaponSlots:[]),d=s-c,v=new k.default(n,d,l),y=p(o.get(c));try{for(y.s();!(f=y.n()).done;){var b=f.value,w=j(b,t.torsoUp),S=v.copy();S.addPerm(w,c);var x=u(h,S);if(x){i=x;break}}}catch(E){y.e(E)}finally{y.f()}}else{i=u(t.getSlots().concat(e.weaponSlots?e.weaponSlots:[]),new k.default(n,t.totalSlots+e.weaponSlots,l))}return i},P=function(t,r,n,o,a){var i=new g.default(o.skillActivations.map(function(t){return[t.requiredSkill,t.requiredPoints]})),u=A(r,i),c=x.getDecoSlotScoreMap(u),l=L(o.armorType),s=x.getScoreFromSkillMap(i,i)-c.get(o.weaponSlots),f=new E.default(r,i),h=t;h.push(n);var d=h.map(function(t){return t.map(function(t){var e=c.get(t.slots)+x.getScoreFromSkillMap(t.skills,i);return Object.assign({},t,{score:e})})}),v=Math.max.apply(Math,e(d[1].map(function(t){return t.score}))),y=[d[1],d[0].map(function(t){return x.scoreTorsoUpPieces(t,v)}),d[2],d[3].map(function(t){return x.scoreTorsoUpPieces(t,v)}),d[4].map(function(t){return x.scoreTorsoUpPieces(t,v)}),d[5]].map(function(t){return t.sort(function(t,e){return e.score-t.score})}),m=[0],b=0;y.map(function(t){return t[0].score}).forEach(function(t){b+=t,m.push(b)});var S,k=0,O=[],j=p(q(y,l,m,s,y.length-1));try{for(j.s();!(S=j.n()).done;){var P=S.value,T=_(P,o,i,f,u);if(T){var M=new w.default(P,T,a.skillActivation);if(O.push(M),k===o.limit-1)break;k++}}}catch(D){j.e(D)}finally{j.f()}return O},T=function(t,e,r,n,o){var a=t.map(function(t,e){return S.applyArmorFilter(t,n.armorRarity,n.armorType,e,n.pins[e],n.exclusions[e],n.skillActivations)}),i=S.applyCharmFilter(r,n.skillActivations),u=S.applyRarityFilter(e,n.decoRarity).filter(function(t){return S.filterHasSkill(t,n.skillActivations)});return P(a,u,i,n,o)};exports.search=T; +"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t){return o(t)||n(t)||h(t)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function o(t){if(Array.isArray(t))return d(t)}function a(t,e){return c(t)||u(t,e)||h(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function c(t){if(Array.isArray(t))return t}function l(){l=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(_){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof d?e:d,i=Object.create(a.prototype),u=new q(n||[]);return o(i,"_invoke",{value:k(t,r,u)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(_){return{type:"throw",arg:_}}}e.wrap=f;var h={};function d(){}function v(){}function y(){}var m={};s(m,i,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(O([])));b&&b!==r&&n.call(b,i)&&(m=b);var w=y.prototype=d.prototype=Object.create(m);function S(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function x(e,r){var a;o(this,"_invoke",{value:function(o,i){function u(){return new r(function(a,u){!function o(a,i,u,c){var l=p(e[a],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&n.call(f,"__await")?r.resolve(f.__await).then(function(t){o("next",t,u,c)},function(t){o("throw",t,u,c)}):r.resolve(f).then(function(t){s.value=t,u(s)},function(t){return o("throw",t,u,c)})}c(l.arg)}(o,i,a,u)})}return a=a?a.then(u,u):u()}})}function k(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return j()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var u=E(i,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=p(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function q(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function O(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}var s=l().mark(q),f=l().mark(O);function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=h(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function h(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=n)){l.next=12;break}return l.next=10,c;case 10:l.next=14;break;case 12:if(!(c.score+r[o]0)){l.next=16;break}return l.delegateYield(q(t,c,r,n,o-1),"t0",16);case 16:l.next=3;break;case 18:l.next=23;break;case 20:l.prev=20,l.t1=l.catch(1),a.e(l.t1);case 23:return l.prev=23,a.f(),l.finish(23);case 26:case"end":return l.stop()}},s,null,[[1,20,23,26]])}function O(t,e,r,n){var o,a,i,u,c;return l().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:o=e[n],a=p(t.get(o)),l.prev=2,a.s();case 4:if((i=a.n()).done){l.next=19;break}if(u=i.value,(c=r.copy()).addPerm(u,o),!(c.requiredSlots<=0)){l.next=13;break}return l.next=11,c;case 11:l.next=15;break;case 13:if(!(c.unusedSlotsSum0)){l.next=17;break}return l.delegateYield(O(t,e,c,n-1),"t0",17);case 17:l.next=4;break;case 19:l.next=24;break;case 21:l.prev=21,l.t1=l.catch(2),a.e(l.t1);case 24:return l.prev=24,a.f(),l.finish(24);case 27:case"end":return l.stop()}},f,null,[[2,21,24,27]])}var j=function(t,e){var r=e+1,n=t.score*r,o=t.decos.map(function(t){var e=new g.default(t.skills);return e.multiply(r),Object.assign({},t,{affectedByTorsoUp:!0,name:t.name.concat(" (胴系统倍加)"),skills:e})}),a=new g.default(t.skills);return a.multiply(r),{score:n,decos:o,skills:a}},_=function(t,e,r,n,o){var i,u=function(t,e){if(e.requiredSlots<=0)return e;if(!(e.unusedSlotsSum0&&c>0){var f,h=t.getSlotsExceptChest().concat(e.weaponSlots?e.weaponSlots:[]),d=s-c,v=new k.default(n,d,l),y=p(o.get(c));try{for(y.s();!(f=y.n()).done;){var b=f.value,w=j(b,t.torsoUp),S=v.copy();S.addPerm(w,c);var x=u(h,S);if(x){i=x;break}}}catch(E){y.e(E)}finally{y.f()}}else{i=u(t.getSlots().concat(e.weaponSlots?e.weaponSlots:[]),new k.default(n,t.totalSlots+e.weaponSlots,l))}return i},P=function(t,r,n,o,a){var i=new g.default(o.skillActivations.map(function(t){return[t.requiredSkill,t.requiredPoints]})),u=A(r,i),c=x.getDecoSlotScoreMap(u),l=L(o.armorType),s=x.getScoreFromSkillMap(i,i)-c.get(o.weaponSlots),f=new E.default(r,i),h=t;h.push(n);var d=h.map(function(t){return t.map(function(t){var e=c.get(t.slots)+x.getScoreFromSkillMap(t.skills,i);return Object.assign({},t,{score:e})})}),v=Math.max.apply(Math,e(d[1].map(function(t){return t.score}))),y=[d[1],d[0].map(function(t){return x.scoreTorsoUpPieces(t,v)}),d[2],d[3].map(function(t){return x.scoreTorsoUpPieces(t,v)}),d[4].map(function(t){return x.scoreTorsoUpPieces(t,v)}),d[5]].map(function(t){return t.sort(function(t,e){return e.score-t.score})}),m=[0],b=0;y.map(function(t){return t[0].score}).forEach(function(t){b+=t,m.push(b)});var S,k=0,O=[],j=p(q(y,l,m,s,y.length-1));try{for(j.s();!(S=j.n()).done;){var P=S.value,T=_(P,o,i,f,u);if(T){var M=new w.default(P,T,a.skillActivation);if(O.push(M),k===o.limit-1)break;k++}}}catch(D){j.e(D)}finally{j.f()}return O},T=function(t,e,r,n,o){var a=t.map(function(t,e){return S.applyArmorFilter(t,n.armorRarity,n.armorType,e,n.pins[e],n.exclusions[e],n.skillActivations)}),i=S.applyCharmFilter(r,n.skillActivations),u=S.applyRarityFilter(e,n.decoRarity).filter(function(t){return S.filterHasSkill(t,n.skillActivations)});return P(a,u,i,n,o)};exports.search=T; },{"../data-provider/data-provider.module":"mrro","../data-provider/models/equipment/EquipmentCategory":"XByd","../data-provider/models/equipment/EquipmentSkills":"gZ5g","../scorer/models/ArmorEvaluation":"aAyu","./models/ArmorSet":"pNrS","../data-filter/data-filter.module":"MMJS","../scorer/scorer.module":"zX0v","../scorer/models/DecoEvaluation":"z7Uc","../scorer/models/DecoMinSlotMap":"Ra9L"}],"qhuQ":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getGlobalSettings=function(){var e=document.getElementById("armor-type"),t=document.getElementById("weapon-slots"),r=document.getElementById("armor-rarity"),a=document.getElementById("deco-rarity"),n=document.getElementById("search-limit");return{armorType:parseInt(e.value),weaponSlots:parseInt(t.value),armorRarity:parseInt(r.value),decoRarity:parseInt(a.value),limit:parseInt(n.value)}}; },{}],"sJIk":[function(require,module,exports) {