{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.object.values.js","webpack:///./node_modules/core-js/modules/es.array.flat-map.js","webpack:///./node_modules/core-js/modules/es.array.unscopables.flat-map.js","webpack:///./src/store/tracker/util.ts","webpack:///./src/store/tracker/items/kh1.ts"],"names":["$","$values","values","target","stat","O","flattenIntoArray","toObject","toLength","aFunction","arraySpeciesCreate","proto","flatMap","callbackfn","A","this","sourceLen","length","arguments","undefined","addToUnscopables","preloadNums","items","Object","item","numbers","filter","num","forEach","image","Image","src","secondary","map","i","total","data","minimal","secondaryTotal","cls","slice","concat","categoryExclude","CLASSIC","popupTitle","popupItems","category","showFirst","Array","keys","secondaryAuto","dontShow","show"],"mappings":"qGAAA,IAAIA,EAAI,EAAQ,QACZC,EAAU,EAAQ,QAAgCC,OAItDF,EAAE,CAAEG,OAAQ,SAAUC,MAAM,GAAQ,CAClCF,OAAQ,SAAgBG,GACtB,OAAOJ,EAAQI,O,oCCNnB,IAAIL,EAAI,EAAQ,QACZM,EAAmB,EAAQ,QAC3BC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QACnBC,EAAY,EAAQ,QACpBC,EAAqB,EAAQ,QAIjCV,EAAE,CAAEG,OAAQ,QAASQ,OAAO,GAAQ,CAClCC,QAAS,SAAiBC,GACxB,IAEIC,EAFAT,EAAIE,EAASQ,MACbC,EAAYR,EAASH,EAAEY,QAK3B,OAHAR,EAAUI,GACVC,EAAIJ,EAAmBL,EAAG,GAC1BS,EAAEG,OAASX,EAAiBQ,EAAGT,EAAGA,EAAGW,EAAW,EAAG,EAAGH,EAAYK,UAAUD,OAAS,EAAIC,UAAU,QAAKC,GACjGL,M,uBChBX,IAAIM,EAAmB,EAAQ,QAG/BA,EAAiB,Y,0HCFJC,EAAc,SAACC,GAAD,OACzBC,OAAOrB,OAAOoB,GACXV,SAAQ,SAAAY,GAAI,OAAIA,EAAKC,WACrBC,QAAO,SAAAC,GAAG,YAAYR,IAARQ,KACdC,SAAQ,SAAAD,GAEP,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","sourcesContent":["var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar aFunction = require('../internals/a-function');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flatMap` method\n// https://tc39.es/ecma262/#sec-array.prototype.flatmap\n$({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A;\n aFunction(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flatMap');\n","import { Items } from \"./state\";\n\n/** Find all numbers used in the state and preload the images for them */\nexport const preloadNums = (items: Items) =>\n Object.values(items)\n .flatMap(item => item.numbers)\n .filter(num => num !== undefined)\n .forEach(num => {\n // Apparently creating an image object like this loads it even if it's not added to the page\n const image = new Image();\n image.src = `/img/progression/numbers/${num}.webp`;\n });\n","import { IconStyle } from \"../../settings\";\nimport { item, levelNumbers, levels, magic, world } from \"../factories\";\nimport { Item, Items, mapItems } from \"../state\";\nimport { preloadNums } from \"../util\";\n\nexport const items: Items = {\n // Worlds\n \"worlds/kh1/destiny_islands\": world({\n secondary: [\"day_one\", \"day_two\", \"darkside\"].map(i => `kh1/destiny_islands/${i}`),\n }),\n \"worlds/kh1/traverse_town\": world({\n total: 4,\n secondary: [\"leon\", \"guard_armor\", \"opposite_armor\", \"cid\"].map(i => `kh1/traverse_town/${i}`),\n }),\n \"worlds/kh1/wonderland\": world({\n secondary: [\"presents\", \"card_soldiers\", \"trickmaster\"].map(i => `kh1/wonderland/${i}`),\n }),\n \"worlds/kh1/olympus_coliseum\": world({\n data: [\"ice_titan\", \"sephiroth\"],\n secondary: [\n \"barrels\",\n \"cerberus\",\n \"phil_cup\",\n \"pegasus_cup\",\n \"hercules_cup\",\n \"hades_cup\",\n \"ice_titan\",\n \"sephiroth\",\n ].map(i => `kh1/olympus_coliseum/${i}`),\n }),\n \"worlds/kh1/deep_jungle\": world({\n secondary: [\"sabor\", \"black_fruit\", \"clayton\"].map(i => `kh1/deep_jungle/${i}`),\n }),\n \"worlds/kh1/agrabah\": world({\n minimal: \"worlds/agrabah\",\n data: \"kurt_zisa\",\n secondary: [\"pot_centipede\", \"cave_of_wonders\", \"jafar\", \"kurt_zisa\"].map(\n i => `kh1/agrabah/${i}`,\n ),\n }),\n \"worlds/kh1/monstro\": world({\n secondary: [\"pinocchio_cage\", \"parasite_cage\"].map(i => `kh1/monstro/${i}`),\n }),\n \"worlds/kh1/halloween_town\": world({\n minimal: \"worlds/halloween_town\",\n secondary: [\"tombstones\", \"masked_children\", \"oogie_boogie\", \"oogie's_manor\"].map(\n i => `kh1/halloween_town/${i}`,\n ),\n }),\n \"worlds/kh1/atlantica\": world({\n secondary: [\"shark\", \"ursula\", \"giant_ursula\"].map(i => `kh1/atlantica/${i}`),\n }),\n \"worlds/kh1/neverland\": world({\n data: \"phantom\",\n secondary: [\"anti_sora\", \"captain_hook\", \"phantom\"].map(i => `kh1/neverland/${i}`),\n }),\n \"worlds/kh1/hollow_bastion\": world({\n total: 2,\n data: \"xemnas\",\n secondary: [\"riku\", \"maleficent\", \"dragon_maleficent\", \"riku_ansem\", \"behemoth\"].map(\n i => `kh1/hollow_bastion/${i}`,\n ),\n minimal: \"worlds/hollow_bastion\",\n }),\n \"worlds/kh1/end_of_the_world\": world({\n secondary: [\"behemoth\", \"chernabog\", \"final_rest\"].map(i => `kh1/end_of_the_world/${i}`),\n }),\n \"worlds/kh1/100_acre_wood\": world({\n total: 6,\n minimal: \"worlds/100_acre_wood\",\n secondary: \"100_acre_wood/torn_pages\",\n secondaryTotal: 5,\n cls: \"hundred_acre\",\n }),\n \"worlds/kh1/olympus_cups\": world({\n total: 4,\n secondary: [\n \"hades_seed_40\",\n \"hades_seed_20\",\n \"hades_seed_10\",\n \"hades_seed_1\",\n \"hades_solo\",\n \"hades_timed\",\n \"hades_complete\",\n ].map(i => `kh1/olympus_coliseum/${i}`),\n cls: \"cups\",\n }),\n\n // Level\n \"other/sora's_level\": levels({ numbers: levelNumbers.slice(0, -1).concat([100]) }),\n\n // Magic\n ...mapItems(\n [\n ...[\"fire\", \"blizzard\", \"thunder\", \"cure\"].map((i): [string, Partial] => [\n `magic/${i}`,\n { secondary: \"other/duck\" },\n ]),\n ...[\"aero\", \"gravity\", \"stop\"].map((i): [string, Partial] => [\n `magic/${i}`,\n { categoryExclude: IconStyle.CLASSIC },\n ]),\n ],\n magic({\n popupTitle: \"Select Spell Replaced\",\n popupItems: [\"fire\", \"blizzard\", \"thunder\", \"cure\", \"aero\", \"gravity\", \"stop\"].map(\n i => `magic/${i}`,\n ),\n }),\n ),\n\n // Summons\n ...mapItems(\n [\n [\n \"summons/simba\",\n { secondary: [\"kh1/summons/earthshine\"], categoryExclude: IconStyle.CLASSIC },\n ],\n [\"summons/genie_kh1\", { minimal: \"summons/genie\", categoryExclude: IconStyle.CLASSIC }],\n [\n \"summons/bambi\",\n { secondary: [\"kh1/summons/naturespark\"], categoryExclude: IconStyle.CLASSIC },\n ],\n [\n \"summons/dumbo\",\n { secondary: [\"kh1/summons/watergleam\"], categoryExclude: IconStyle.CLASSIC },\n ],\n [\"summons/tinkerbell\", { categoryExclude: IconStyle.CLASSIC }],\n [\n \"summons/mushu\",\n { secondary: [\"kh1/summons/fireglow\"], categoryExclude: IconStyle.CLASSIC },\n ],\n ],\n item({ category: \"summons\" }),\n ),\n\n \"other/postcards\": item({\n total: 10,\n category: \"postcards\",\n }),\n\n \"other/dalmatians\": item({\n total: 33,\n showFirst: true,\n numbers: [...Array(33).keys()].map(i => (i + 1) * 3),\n secondary: \"kh1/wonderland/presents\",\n secondaryTotal: 11,\n secondaryAuto: [12, 21, 30, 42, 51, 60, 72, 81, 90, 99].map(i => i / 3),\n cls: \"dalmations\",\n category: \"dalmatians\",\n }),\n\n ...mapItems(\n [\n [\"trinities/blue\", { total: 17 }],\n [\"trinities/red\", { total: 6 }],\n [\"trinities/green\", { total: 9 }],\n [\"trinities/yellow\", { total: 4 }],\n [\"trinities/white\", { total: 10 }],\n ],\n item({ category: \"trinities\" }),\n ),\n\n // Other\n \"other/ansem's_reports\": item({\n total: 13,\n minimal: \"other/secret_reports\",\n category: \"reports\",\n }),\n\n \"other/raft_supplies\": item({\n total: 8,\n category: \"raftSupplies\",\n dontShow: \"expandRaftSupplies\",\n }),\n \"other/logs\": item({\n category: \"raftSupplies\",\n show: \"expandRaftSupplies\",\n }),\n \"other/cloth\": item({\n category: \"raftSupplies\",\n show: \"expandRaftSupplies\",\n }),\n \"other/rope\": item({\n category: \"raftSupplies\",\n show: \"expandRaftSupplies\",\n }),\n \"other/seagull_egg\": item({\n category: \"raftSupplies\",\n show: \"expandRaftSupplies\",\n }),\n \"other/mushrooms\": item({\n category: \"raftSupplies\",\n show: \"expandRaftSupplies\",\n }),\n \"other/coconuts\": item({\n category: \"raftSupplies\",\n show: \"expandRaftSupplies\",\n }),\n \"other/fish\": item({\n category: \"raftSupplies\",\n show: \"expandRaftSupplies\",\n }),\n \"other/drinking_water\": item({\n category: \"raftSupplies\",\n show: \"expandRaftSupplies\",\n }),\n \"other/jack_in_the_box\": item({\n category: \"jackInTheBox\",\n }),\n \"other/crystal_trident\": item({\n category: \"crystalTrident\",\n }),\n \"other/library_books\": item({\n total: 2,\n category: \"libraryBooks\",\n }),\n // \"other/navi_pieces\": item({\n // total: 2,\n // category: \"navi\",\n // }),\n \"other/emblem_pieces\": item({\n total: 4,\n category: \"emblem_pieces\",\n }),\n \"other/navi_gummi\": item({\n category: \"navi\",\n }),\n};\n\npreloadNums(items);\n"],"sourceRoot":""}