diff --git a/404.html b/404.html index ce37eab0..9d33561b 100644 --- a/404.html +++ b/404.html @@ -20,7 +20,7 @@ 404 - + diff --git a/advancement/index.html b/advancement/index.html index f93e4e20..fe142b75 100644 --- a/advancement/index.html +++ b/advancement/index.html @@ -20,7 +20,7 @@ undefined Generator Minecraft 1.15, 1.16, 1.17, 1.18 - + diff --git a/assets/index.4351f53b.js b/assets/index.4351f53b.js new file mode 100644 index 00000000..4257fb3b --- /dev/null +++ b/assets/index.4351f53b.js @@ -0,0 +1,2 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,i=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,s=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&i(e,n,t[n]);if(r)for(var n of r(t))a.call(t,n)&&i(e,n,t[n]);return e},l=(e,r)=>t(e,n(r));import{y as c,a as d,s as u,l as m,r as h,b as p,j as f,c as g,d as v,e as _,g as w,L as y,f as b,C as x,M as k,_ as C,X as M,W as z,R as I,h as V,N as A,i as E,I as j,k as O,A as L,m as $,q as P,n as S,o as D,p as N}from"./vendor.ec0ffbfb.js";var B,T=JSON.parse('{"languages":[{"code":"de","name":"Deutsch"},{"code":"en","name":"English"},{"code":"fr","name":"Français"},{"code":"it","name":"Italiano"},{"code":"ja","name":"日本語"},{"code":"pl","name":"Polski"},{"code":"pt","name":"Português"},{"code":"ru","name":"Русский"},{"code":"sk","name":"Slovenčina","schemas":false},{"code":"zh-cn","name":"简体中文"},{"code":"zh-tw","name":"正體中文"}],"versions":[{"id":"1.15","refs":{"mcdata_master":"13355f7"}},{"id":"1.16","refs":{"mcdata_master":"1.16.4","vanilla_datapack_data":"1.16.4-data","vanilla_datapack_summary":"1.16.4-summary"}},{"id":"1.17","refs":{"mcdata_master":"1.17.1","vanilla_datapack_data":"1.17.1-data","vanilla_datapack_summary":"1.17.1-summary"}},{"id":"1.18","refs":{"mcdata_master":"master","vanilla_datapack_data":"data","vanilla_datapack_summary":"summary"},"dynamic":true}],"generators":[{"id":"loot_table","url":"loot-table","path":"loot_tables","schema":"loot_table","maxVersion":"1.17"},{"id":"predicate","url":"predicate","path":"predicates","schema":"predicate"},{"id":"item_modifier","url":"item-modifier","path":"item_modifiers","schema":"item_modifier","minVersion":"1.17"},{"id":"advancement","url":"advancement","path":"advancements","schema":"advancement"},{"id":"dimension","url":"dimension","schema":"dimension","category":"worldgen","minVersion":"1.16"},{"id":"dimension_type","url":"dimension-type","schema":"dimension_type","category":"worldgen","minVersion":"1.16"},{"id":"world","url":"world","schema":"world_settings","category":"worldgen","minVersion":"1.16"},{"id":"worldgen/biome","url":"worldgen/biome","category":"worldgen","schema":"biome","minVersion":"1.16"},{"id":"worldgen/configured_carver","url":"worldgen/carver","category":"worldgen","schema":"configured_carver","minVersion":"1.16"},{"id":"worldgen/configured_feature","url":"worldgen/feature","category":"worldgen","schema":"configured_feature","minVersion":"1.16"},{"id":"worldgen/noise_settings","url":"worldgen/noise-settings","category":"worldgen","schema":"noise_settings","minVersion":"1.16"},{"id":"worldgen/configured_structure_feature","url":"worldgen/structure-feature","category":"worldgen","schema":"configured_structure_feature","minVersion":"1.16"},{"id":"worldgen/configured_surface_builder","url":"worldgen/surface-builder","category":"worldgen","schema":"configured_surface_builder","minVersion":"1.16"},{"id":"worldgen/processor_list","url":"worldgen/processor-list","category":"worldgen","schema":"processor_list","minVersion":"1.16"},{"id":"worldgen/template_pool","url":"worldgen/template-pool","category":"worldgen","schema":"template_pool","minVersion":"1.16"}],"registries":[{"id":"advancement","dynamic":true},{"id":"attribute","minVersion":"1.16"},{"id":"block"},{"id":"dimension","dynamic":true},{"id":"dimension_type","dynamic":true},{"id":"enchantment"},{"id":"entity_type"},{"id":"fluid"},{"id":"function","dynamic":true},{"id":"float_provider_type","minVersion":"1.17"},{"id":"item"},{"id":"int_provider_type","minVersion":"1.17"},{"id":"height_provider_type","minVersion":"1.17"},{"id":"loot_condition_type","minVersion":"1.16"},{"id":"loot_condition_type","minVersion":"1.16"},{"id":"loot_function_type","minVersion":"1.16"},{"id":"loot_nbt_provider_type","minVersion":"1.17"},{"id":"loot_number_provider_type","minVersion":"1.17"},{"id":"loot_pool_entry_type","minVersion":"1.16"},{"id":"loot_score_provider_type","minVersion":"1.17"},{"id":"loot_table","dynamic":true},{"id":"mob_effect"},{"id":"pos_rule_test","minVersion":"1.16"},{"id":"potion","minVersion":"1.15"},{"id":"predicate","dynamic":true},{"id":"recipe","dynamic":true},{"id":"rule_test","minVersion":"1.16"},{"id":"sound_event"},{"id":"stat_type"},{"id":"structure","dynamic":true},{"id":"tag/block","dynamic":true},{"id":"tag/entity_type","dynamic":true},{"id":"tag/fluid","dynamic":true},{"id":"tag/function","dynamic":true},{"id":"tag/item","dynamic":true},{"id":"worldgen/biome","dynamic":true},{"id":"worldgen/block_state_provider_type","minVersion":"1.16"},{"id":"worldgen/block_placer_type","minVersion":"1.16"},{"id":"worldgen/biome_source","minVersion":"1.16"},{"id":"worldgen/carver","minVersion":"1.16"},{"id":"worldgen/chunk_generator","minVersion":"1.16"},{"id":"worldgen/configured_carver","minVersion":"1.16","dynamic":true},{"id":"worldgen/configured_decorator","minVersion":"1.16","dynamic":true},{"id":"worldgen/configured_feature","minVersion":"1.16","dynamic":true},{"id":"worldgen/configured_structure_feature","minVersion":"1.16","dynamic":true},{"id":"worldgen/configured_surface_builder","minVersion":"1.16","dynamic":true},{"id":"worldgen/decorator","minVersion":"1.16"},{"id":"worldgen/feature","minVersion":"1.16"},{"id":"worldgen/feature_size_type","minVersion":"1.16"},{"id":"worldgen/foliage_placer_type","minVersion":"1.16"},{"id":"worldgen/noise_settings","minVersion":"1.16","dynamic":true},{"id":"worldgen/processor_list","minVersion":"1.16","dynamic":true},{"id":"worldgen/structure_feature","minVersion":"1.16"},{"id":"worldgen/structure_pool_element","minVersion":"1.16"},{"id":"worldgen/structure_processor","minVersion":"1.16"},{"id":"worldgen/surface_builder","minVersion":"1.16"},{"id":"worldgen/template_pool","minVersion":"1.16","dynamic":true},{"id":"worldgen/tree_decorator_type","minVersion":"1.16"},{"id":"worldgen/trunk_placer_type","minVersion":"1.16"},{"id":"biome","maxVersion":"1.15"},{"id":"worldgen/biome","minVersion":"1.16","path":"processed/reports/biomes"}]}');function H({type:e,id:t}){return c((()=>{var e;null==(e=document.getElementById("ad-placeholder"))||e.remove(),"ethicalads"in window&ðicalads.load()}),[]),d("div",{"data-ea-publisher":"misode-github-io","data-ea-type":e,class:"ad dark flat",id:t})}function R({icon:e,label:t,active:n,class:r,onClick:o}){return d("div",{class:`btn${n?" active":""}${r?` ${r}`:""}`,onClick:o},e&&U[e],t&&d("span",null,t))}function F({icon:e,label:t,large:n,doSelect:r,value:o,onChange:a}){const i=void 0===a?()=>{}:e=>{const t=e.target.value;null==a||a(t)},s=u(null);return c((()=>{r&&s.current&&s.current.select()}),[r]),d("div",{class:"btn btn-input "+(n?"large-input":""),onClick:e=>e.stopPropagation()},e&&U[e],t&&d("span",null,t),d("input",{ref:s,type:"text",value:o,onChange:i}))}function J({size:e,draw:t,onDrag:n,onHover:r,onLeave:o},a){const i=u(null),s=u(),l=u(),d=u([0,0]),m=u(!1);c((()=>{const e=e=>{s.current=[e.offsetX,e.offsetY]},t=e=>{if(void 0===s.current){const t=e.offsetX/i.current.clientWidth,n=e.offsetY/i.current.clientHeight;return void(null==r||r(t,n))}if(!n)return;const t=e.offsetX-s.current[0],o=e.offsetY-s.current[1];0===t&&0===o||(d.current=[d.current[0]+t,d.current[1]+o],m.current||(cancelAnimationFrame(l.current),l.current=requestAnimationFrame((async()=>{m.current=!0;const e=d.current[0]/i.current.clientWidth,t=d.current[1]/i.current.clientHeight;d.current=[0,0],await(null==n?void 0:n(e,t)),m.current=!1})))),s.current=[e.offsetX,e.offsetY]},a=()=>{s.current=void 0},c=()=>{null==o||o()};return i.current.addEventListener("mousedown",e),i.current.addEventListener("mousemove",t),i.current.addEventListener("mouseleave",c),document.body.addEventListener("mouseup",a),()=>{i.current.removeEventListener("mousedown",e),i.current.removeEventListener("mousemove",t),i.current.removeEventListener("mouseleave",c),document.body.removeEventListener("mouseup",a)}}),[...null!=a?a:[],i.current]);const h=u(),p=u(0);return h.current=async()=>{const n=i.current.getContext("2d"),r=e();i.current.width=r[0],i.current.height=r[1];const o=n.getImageData(0,0,r[0],r[1]),a=p.current+=1;await t(o),a===p.current&&n.putImageData(o,0,0)},{canvas:i,redraw:h.current}}function W(){const[e,t]=m(!1),n=()=>{t(!1)};return c((()=>(e&&(document.body.addEventListener("click",n),document.body.addEventListener("contextmenu",n)),()=>{document.body.removeEventListener("click",n),document.body.removeEventListener("contextmenu",n)})),[e]),[e,()=>t(!0)]}function G(e,t){const n={invalidated(){e&&t(e)}};c((()=>(null==e||e.addListener(n),()=>{null==e||e.removeListener(n)})),[e])}function Y({icon:e,label:t,relative:n,children:r}){const[o,a]=W();return d("div",{class:"btn-menu"+(!1===n?" no-relative":"")},d(R,{icon:e,label:t,onClick:a}),o&&d("div",{class:"btn-group"},r))}!function(e){const t="Site",n="Generator";function r(e,t,n){ga("send","event",e,t,n)}function o(e,t){ga("set",`dimension${e}`,t)}e.pageview=function(e){ga("set","page",e),ga("send","pageview")},e.setLanguage=function(e){o(4,e),r(t,"set-language",e)},e.setTheme=function(e){o(1,e),r(t,"set-theme",e)},e.setVersion=function(e){o(3,e),r(n,"set-version",e)},e.setPreview=function(e){o(5,e),r(n,"set-preview",e)},e.generatorEvent=function(e,t){r(n,e,t)}}(B||(B={}));const U={archive:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M1.75 2.5a.25.25 0 00-.25.25v1.5c0 .138.112.25.25.25h12.5a.25.25 0 00.25-.25v-1.5a.25.25 0 00-.25-.25H1.75zM0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v1.5A1.75 1.75 0 0114.25 6H1.75A1.75 1.75 0 010 4.25v-1.5zM1.75 7a.75.75 0 01.75.75v5.5c0 .138.112.25.25.25h10.5a.25.25 0 00.25-.25v-5.5a.75.75 0 111.5 0v5.5A1.75 1.75 0 0113.25 15H2.75A1.75 1.75 0 011 13.25v-5.5A.75.75 0 011.75 7zm4.5 1a.75.75 0 000 1.5h3.5a.75.75 0 100-1.5h-3.5z"})),arrow_left:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M7.78 12.53a.75.75 0 01-1.06 0L2.47 8.28a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L4.81 7h7.44a.75.75 0 010 1.5H4.81l2.97 2.97a.75.75 0 010 1.06z"})),arrow_right:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})),check:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"})),chevron_down:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M12.78 6.22a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06 0L3.22 7.28a.75.75 0 011.06-1.06L8 9.94l3.72-3.72a.75.75 0 011.06 0z"})),chevron_right:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})),chevron_up:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M3.22 9.78a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 0l4.25 4.25a.75.75 0 01-1.06 1.06L8 6.06 4.28 9.78a.75.75 0 01-1.06 0z"})),clippy:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M5.75 1a.75.75 0 00-.75.75v3c0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75v-3a.75.75 0 00-.75-.75h-4.5zm.75 3V2.5h3V4h-3zm-2.874-.467a.75.75 0 00-.752-1.298A1.75 1.75 0 002 3.75v9.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 13.25v-9.5a1.75 1.75 0 00-.874-1.515.75.75 0 10-.752 1.298.25.25 0 01.126.217v9.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-9.5a.25.25 0 01.126-.217z"})),code:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M4.72 3.22a.75.75 0 011.06 1.06L2.06 8l3.72 3.72a.75.75 0 11-1.06 1.06L.47 8.53a.75.75 0 010-1.06l4.25-4.25zm6.56 0a.75.75 0 10-1.06 1.06L13.94 8l-3.72 3.72a.75.75 0 101.06 1.06l4.25-4.25a.75.75 0 000-1.06l-4.25-4.25z"})),dash:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M2 8a.75.75 0 01.75-.75h10.5a.75.75 0 010 1.5H2.75A.75.75 0 012 8z"})),device_desktop:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M1.75 2.5h12.5a.25.25 0 01.25.25v7.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25v-7.5a.25.25 0 01.25-.25zM14.25 1H1.75A1.75 1.75 0 000 2.75v7.5C0 11.216.784 12 1.75 12h3.727c-.1 1.041-.52 1.872-1.292 2.757A.75.75 0 004.75 16h6.5a.75.75 0 00.565-1.243c-.772-.885-1.193-1.716-1.292-2.757h3.727A1.75 1.75 0 0016 10.25v-7.5A1.75 1.75 0 0014.25 1zM9.018 12H6.982a5.72 5.72 0 01-.765 2.5h3.566a5.72 5.72 0 01-.765-2.5z"})),download:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M7.47 10.78a.75.75 0 001.06 0l3.75-3.75a.75.75 0 00-1.06-1.06L8.75 8.44V1.75a.75.75 0 00-1.5 0v6.69L4.78 5.97a.75.75 0 00-1.06 1.06l3.75 3.75zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"})),eye:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M1.679 7.932c.412-.621 1.242-1.75 2.366-2.717C5.175 4.242 6.527 3.5 8 3.5c1.473 0 2.824.742 3.955 1.715 1.124.967 1.954 2.096 2.366 2.717a.119.119 0 010 .136c-.412.621-1.242 1.75-2.366 2.717C10.825 11.758 9.473 12.5 8 12.5c-1.473 0-2.824-.742-3.955-1.715C2.92 9.818 2.09 8.69 1.679 8.068a.119.119 0 010-.136zM8 2c-1.981 0-3.67.992-4.933 2.078C1.797 5.169.88 6.423.43 7.1a1.619 1.619 0 000 1.798c.45.678 1.367 1.932 2.637 3.024C4.329 13.008 6.019 14 8 14c1.981 0 3.67-.992 4.933-2.078 1.27-1.091 2.187-2.345 2.637-3.023a1.619 1.619 0 000-1.798c-.45-.678-1.367-1.932-2.637-3.023C11.671 2.992 9.981 2 8 2zm0 8a2 2 0 100-4 2 2 0 000 4z"})),eye_closed:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M.143 2.31a.75.75 0 011.047-.167l14.5 10.5a.75.75 0 11-.88 1.214l-2.248-1.628C11.346 13.19 9.792 14 8 14c-1.981 0-3.67-.992-4.933-2.078C1.797 10.832.88 9.577.43 8.9a1.618 1.618 0 010-1.797c.353-.533.995-1.42 1.868-2.305L.31 3.357A.75.75 0 01.143 2.31zm3.386 3.378a14.21 14.21 0 00-1.85 2.244.12.12 0 00-.022.068c0 .021.006.045.022.068.412.621 1.242 1.75 2.366 2.717C5.175 11.758 6.527 12.5 8 12.5c1.195 0 2.31-.488 3.29-1.191L9.063 9.695A2 2 0 016.058 7.52l-2.53-1.832zM8 3.5c-.516 0-1.017.09-1.499.251a.75.75 0 11-.473-1.423A6.23 6.23 0 018 2c1.981 0 3.67.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.619 1.619 0 010 1.798c-.11.166-.248.365-.41.587a.75.75 0 11-1.21-.887c.148-.201.272-.382.371-.53a.119.119 0 000-.137c-.412-.621-1.242-1.75-2.366-2.717C10.825 4.242 9.473 3.5 8 3.5z"})),gear:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M7.429 1.525a6.593 6.593 0 011.142 0c.036.003.108.036.137.146l.289 1.105c.147.56.55.967.997 1.189.174.086.341.183.501.29.417.278.97.423 1.53.27l1.102-.303c.11-.03.175.016.195.046.219.31.41.641.573.989.014.031.022.11-.059.19l-.815.806c-.411.406-.562.957-.53 1.456a4.588 4.588 0 010 .582c-.032.499.119 1.05.53 1.456l.815.806c.08.08.073.159.059.19a6.494 6.494 0 01-.573.99c-.02.029-.086.074-.195.045l-1.103-.303c-.559-.153-1.112-.008-1.529.27-.16.107-.327.204-.5.29-.449.222-.851.628-.998 1.189l-.289 1.105c-.029.11-.101.143-.137.146a6.613 6.613 0 01-1.142 0c-.036-.003-.108-.037-.137-.146l-.289-1.105c-.147-.56-.55-.967-.997-1.189a4.502 4.502 0 01-.501-.29c-.417-.278-.97-.423-1.53-.27l-1.102.303c-.11.03-.175-.016-.195-.046a6.492 6.492 0 01-.573-.989c-.014-.031-.022-.11.059-.19l.815-.806c.411-.406.562-.957.53-1.456a4.587 4.587 0 010-.582c.032-.499-.119-1.05-.53-1.456l-.815-.806c-.08-.08-.073-.159-.059-.19a6.44 6.44 0 01.573-.99c.02-.029.086-.075.195-.045l1.103.303c.559.153 1.112.008 1.529-.27.16-.107.327-.204.5-.29.449-.222.851-.628.998-1.189l.289-1.105c.029-.11.101-.143.137-.146zM8 0c-.236 0-.47.01-.701.03-.743.065-1.29.615-1.458 1.261l-.29 1.106c-.017.066-.078.158-.211.224a5.994 5.994 0 00-.668.386c-.123.082-.233.09-.3.071L3.27 2.776c-.644-.177-1.392.02-1.82.63a7.977 7.977 0 00-.704 1.217c-.315.675-.111 1.422.363 1.891l.815.806c.05.048.098.147.088.294a6.084 6.084 0 000 .772c.01.147-.038.246-.088.294l-.815.806c-.474.469-.678 1.216-.363 1.891.2.428.436.835.704 1.218.428.609 1.176.806 1.82.63l1.103-.303c.066-.019.176-.011.299.071.213.143.436.272.668.386.133.066.194.158.212.224l.289 1.106c.169.646.715 1.196 1.458 1.26a8.094 8.094 0 001.402 0c.743-.064 1.29-.614 1.458-1.26l.29-1.106c.017-.066.078-.158.211-.224a5.98 5.98 0 00.668-.386c.123-.082.233-.09.3-.071l1.102.302c.644.177 1.392-.02 1.82-.63.268-.382.505-.789.704-1.217.315-.675.111-1.422-.364-1.891l-.814-.806c-.05-.048-.098-.147-.088-.294a6.1 6.1 0 000-.772c-.01-.147.039-.246.088-.294l.814-.806c.475-.469.679-1.216.364-1.891a7.992 7.992 0 00-.704-1.218c-.428-.609-1.176-.806-1.82-.63l-1.103.303c-.066.019-.176.011-.299-.071a5.991 5.991 0 00-.668-.386c-.133-.066-.194-.158-.212-.224L10.16 1.29C9.99.645 9.444.095 8.701.031A8.094 8.094 0 008 0zm1.5 8a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM11 8a3 3 0 11-6 0 3 3 0 016 0z"})),globe:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M1.543 7.25h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.506 6.506 0 00-4.666 5.5zm2.733 1.5H1.543a6.506 6.506 0 004.666 5.5 11.13 11.13 0 01-.352-.552c-.715-1.192-1.437-2.874-1.581-4.948zm1.504 0h4.44a9.637 9.637 0 01-1.363 4.177c-.306.51-.612.919-.857 1.215a9.978 9.978 0 01-.857-1.215A9.637 9.637 0 015.78 8.75zm4.44-1.5H5.78a9.637 9.637 0 011.363-4.177c.306-.51.612-.919.857-1.215.245.296.55.705.857 1.215A9.638 9.638 0 0110.22 7.25zm1.504 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.506 6.506 0 004.666-5.5h-2.733zm2.733-1.5h-2.733c-.144-2.074-.866-3.756-1.58-4.948a11.738 11.738 0 00-.353-.552 6.506 6.506 0 014.666 5.5zM8 0a8 8 0 100 16A8 8 0 008 0z"})),history:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M1.643 3.143L.427 1.927A.25.25 0 000 2.104V5.75c0 .138.112.25.25.25h3.646a.25.25 0 00.177-.427L2.715 4.215a6.5 6.5 0 11-1.18 4.458.75.75 0 10-1.493.154 8.001 8.001 0 101.6-5.684zM7.75 4a.75.75 0 01.75.75v2.992l2.028.812a.75.75 0 01-.557 1.392l-2.5-1A.75.75 0 017 8.25v-3.5A.75.75 0 017.75 4z"})),info:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm6.5-.25A.75.75 0 017.25 7h1a.75.75 0 01.75.75v2.75h.25a.75.75 0 010 1.5h-2a.75.75 0 010-1.5h.25v-2h-.25a.75.75 0 01-.75-.75zM8 6a1 1 0 100-2 1 1 0 000 2z"})),issue_opened:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8zm9 3a1 1 0 11-2 0 1 1 0 012 0zm-.25-6.25a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z"})),kebab_horizontal:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{d:"M8 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM1.5 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm13 0a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"})),link:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"})),mark_github:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})),moon:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M9.598 1.591a.75.75 0 01.785-.175 7 7 0 11-8.967 8.967.75.75 0 01.961-.96 5.5 5.5 0 007.046-7.046.75.75 0 01.175-.786zm1.616 1.945a7 7 0 01-7.678 7.678 5.5 5.5 0 107.678-7.678z"})),play:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM6.379 5.227A.25.25 0 006 5.442v5.117a.25.25 0 00.379.214l4.264-2.559a.25.25 0 000-.428L6.379 5.227z"})),plus:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M8 2a.75.75 0 01.75.75v4.5h4.5a.75.75 0 010 1.5h-4.5v4.5a.75.75 0 01-1.5 0v-4.5h-4.5a.75.75 0 010-1.5h4.5v-4.5A.75.75 0 018 2z"})),plus_circle:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.75 4.75a.75.75 0 00-1.5 0v2.5h-2.5a.75.75 0 000 1.5h2.5v2.5a.75.75 0 001.5 0v-2.5h2.5a.75.75 0 000-1.5h-2.5v-2.5z"})),search:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M11.5 7a4.499 4.499 0 11-8.998 0A4.499 4.499 0 0111.5 7zm-.82 4.74a6 6 0 111.06-1.06l3.04 3.04a.75.75 0 11-1.06 1.06l-3.04-3.04z"})),sun:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M8 10.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zM8 12a4 4 0 100-8 4 4 0 000 8zM8 0a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0V.75A.75.75 0 018 0zm0 13a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 018 13zM2.343 2.343a.75.75 0 011.061 0l1.06 1.061a.75.75 0 01-1.06 1.06l-1.06-1.06a.75.75 0 010-1.06zm9.193 9.193a.75.75 0 011.06 0l1.061 1.06a.75.75 0 01-1.06 1.061l-1.061-1.06a.75.75 0 010-1.061zM16 8a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 0116 8zM3 8a.75.75 0 01-.75.75H.75a.75.75 0 010-1.5h1.5A.75.75 0 013 8zm10.657-5.657a.75.75 0 010 1.061l-1.061 1.06a.75.75 0 11-1.06-1.06l1.06-1.06a.75.75 0 011.06 0zm-9.193 9.193a.75.75 0 010 1.06l-1.06 1.061a.75.75 0 11-1.061-1.06l1.06-1.061a.75.75 0 011.061 0z"})),sync:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M8 2.5a5.487 5.487 0 00-4.131 1.869l1.204 1.204A.25.25 0 014.896 6H1.25A.25.25 0 011 5.75V2.104a.25.25 0 01.427-.177l1.38 1.38A7.001 7.001 0 0114.95 7.16a.75.75 0 11-1.49.178A5.501 5.501 0 008 2.5zM1.705 8.005a.75.75 0 01.834.656 5.501 5.501 0 009.592 2.97l-1.204-1.204a.25.25 0 01.177-.427h3.646a.25.25 0 01.25.25v3.646a.25.25 0 01-.427.177l-1.38-1.38A7.001 7.001 0 011.05 8.84a.75.75 0 01.656-.834z"})),tag:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M2.5 7.775V2.75a.25.25 0 01.25-.25h5.025a.25.25 0 01.177.073l6.25 6.25a.25.25 0 010 .354l-5.025 5.025a.25.25 0 01-.354 0l-6.25-6.25a.25.25 0 01-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 010 2.474l-5.026 5.026a1.75 1.75 0 01-2.474 0l-6.25-6.25A1.75 1.75 0 011 7.775zM6 5a1 1 0 100 2 1 1 0 000-2z"})),three_bars:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M1 2.75A.75.75 0 011.75 2h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 2.75zm0 5A.75.75 0 011.75 7h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 7.75zM1.75 12a.75.75 0 100 1.5h12.5a.75.75 0 100-1.5H1.75z"})),trashcan:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M6.5 1.75a.25.25 0 01.25-.25h2.5a.25.25 0 01.25.25V3h-3V1.75zm4.5 0V3h2.25a.75.75 0 010 1.5H2.75a.75.75 0 010-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75zM4.496 6.675a.75.75 0 10-1.492.15l.66 6.6A1.75 1.75 0 005.405 15h5.19c.9 0 1.652-.681 1.741-1.576l.66-6.6a.75.75 0 00-1.492-.149l-.66 6.6a.25.25 0 01-.249.225h-5.19a.25.25 0 01-.249-.225l-.66-6.6z"})),unfold:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{d:"M8.177.677l2.896 2.896a.25.25 0 01-.177.427H8.75v1.25a.75.75 0 01-1.5 0V4H5.104a.25.25 0 01-.177-.427L7.823.677a.25.25 0 01.354 0zM7.25 10.75a.75.75 0 011.5 0V12h2.146a.25.25 0 01.177.427l-2.896 2.896a.25.25 0 01-.354 0l-2.896-2.896A.25.25 0 015.104 12H7.25v-1.25zm-5-2a.75.75 0 000-1.5h-.5a.75.75 0 000 1.5h.5zM6 8a.75.75 0 01-.75.75h-.5a.75.75 0 010-1.5h.5A.75.75 0 016 8zm2.25.75a.75.75 0 000-1.5h-.5a.75.75 0 000 1.5h.5zM12 8a.75.75 0 01-.75.75h-.5a.75.75 0 010-1.5h.5A.75.75 0 0112 8zm2.25.75a.75.75 0 000-1.5h-.5a.75.75 0 000 1.5h.5z"})),upload:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M8.53 1.22a.75.75 0 00-1.06 0L3.72 4.97a.75.75 0 001.06 1.06l2.47-2.47v6.69a.75.75 0 001.5 0V3.56l2.47 2.47a.75.75 0 101.06-1.06L8.53 1.22zM3.75 13a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5z"})),x:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"})),x_circle:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"},d("path",{"fill-rule":"evenodd",d:"M3.404 12.596a6.5 6.5 0 119.192-9.192 6.5 6.5 0 01-9.192 9.192zM2.344 2.343a8 8 0 1011.313 11.314A8 8 0 002.343 2.343zM6.03 4.97a.75.75 0 00-1.06 1.06L6.94 8 4.97 9.97a.75.75 0 101.06 1.06L8 9.06l1.97 1.97a.75.75 0 101.06-1.06L9.06 8l1.97-1.97a.75.75 0 10-1.06-1.06L8 6.94 6.03 4.97z"}))};function Z({error:e,onDismiss:t}){return d("div",{class:"error"},t&&d("div",{class:"error-dismiss",onClick:t},U.x),d("h3",null,e),d("p",null,"If you think this is a bug, you can report it ",d("a",{href:"https://github.com/misode/misode.github.io/issues/new",target:"_blank"},"on GitHub")))}let X;const q={},K=function(e,t){if(!t)return e();if(void 0===X){const e=document.createElement("link").relList;X=e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(t.map((e=>{if(e in q)return;q[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const r=document.createElement("link");return r.rel=t?"stylesheet":X,t||(r.as="script",r.crossOrigin=""),r.href=e,document.head.appendChild(r),t?new Promise(((e,t)=>{r.addEventListener("load",e),r.addEventListener("error",t)})):void 0}))).then((()=>e()))};var Q=JSON.parse('{"advancement":"Advancement","button.add":"Add","button.collapse":"Collapse","button.expand":"Expand","button.remove":"Remove","copy":"Copy","dimension_type":"Dimension Type","dimension":"Dimension","download":"Download","fields":"Fields","github":"GitHub","home":"Home","import":"Import","indentation.2_spaces":"2 spaces","indentation.4_spaces":"4 spaces","indentation.tabs":"Tabs","item_modifier":"Item Modifier","language":"Language","loot_table":"Loot Table","not_found.description":"The page you were looking for does not exist.","no_presets":"No presets","predicate":"Predicate","redo":"Redo","reset":"Reset","settings":"Settings","settings.fields.description":"Customize advanced field settings","settings.fields.path":"Context","settings.fields.name":"Name","share":"Share","theme.dark":"Dark","theme.light":"Light","theme.system":"System","title.generator":"%0% Generator","title.generator_category":"%0% Generators","title.home":"Data Pack Generators","presets":"Presets","preview":"Visualize","preview.scale":"Scale","preview.depth":"Depth","preview.factor":"Factor","preview.offset":"Offset","preview.peaks":"Peaks","preview.width":"Width","source_placeholder":"Paste JSON content here","undo":"Undo","world":"World Settings","worldgen":"Worldgen","worldgen/biome":"Biome","worldgen/configured_carver":"Carver","worldgen/configured_feature":"Feature","worldgen/noise_settings":"Noise Settings","worldgen/processor_list":"Processor List","worldgen/configured_structure_feature":"Structure Feature","worldgen/configured_surface_builder":"Surface Builder","worldgen/template_pool":"Template Pool"}'),ee=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Q});const te={fallback:Q};function ne(e,t,...n){var r,o,a,i,s;return function(e,t){return e.replace(/%\d+%/g,(e=>{const n=parseInt(e.slice(1,-1));return void 0!==(null==t?void 0:t[n])?t[n]:e}))}(null!=(s=null!=(i=null!=(a=null==(r=te[e])?void 0:r[t])?a:null==(o=te.en)?void 0:o[t])?i:te.fallback[t])?s:t,n)}async function re(e){const t=T.languages.find((t=>t.code===e));if(!t)return;const n=await function(e){switch(e){case"../locales/de.json":return K((()=>import("./de.a5527242.js")),void 0);case"../locales/en.json":return K((()=>Promise.resolve().then((function(){return ee}))),void 0);case"../locales/es.json":return K((()=>import("./es.be1c5183.js")),void 0);case"../locales/fr.json":return K((()=>import("./fr.cc0e1c18.js")),void 0);case"../locales/it.json":return K((()=>import("./it.fd9a8268.js")),void 0);case"../locales/ja.json":return K((()=>import("./ja.8c79487c.js")),void 0);case"../locales/pl.json":return K((()=>import("./pl.3a9fb38c.js")),void 0);case"../locales/pt.json":return K((()=>import("./pt.689bba1d.js")),void 0);case"../locales/ru.json":return K((()=>import("./ru.43cf4da1.js")),void 0);case"../locales/sk.json":return K((()=>import("./sk.586a2a32.js")),void 0);case"../locales/zh-cn.json":return K((()=>import("./zh-cn.97195370.js")),void 0);case"../locales/zh-tw.json":return K((()=>import("./zh-tw.a82e5245.js")),void 0);default:return Promise.reject(new Error("Unknown variable dynamic import: "+e))}}(`../locales/${e}.json`),r=!1!==t.schemas&&await function(e){switch(e){case"../../node_modules/@mcschema/locales/src/de.json":return K((()=>import("./de.f9c3209c.js")),void 0);case"../../node_modules/@mcschema/locales/src/en.json":return K((()=>import("./en.d614ad00.js")),void 0);case"../../node_modules/@mcschema/locales/src/es.json":return K((()=>import("./es.c83d9c73.js")),void 0);case"../../node_modules/@mcschema/locales/src/fr.json":return K((()=>import("./fr.9b3a1c69.js")),void 0);case"../../node_modules/@mcschema/locales/src/it.json":return K((()=>import("./it.7ff123cd.js")),void 0);case"../../node_modules/@mcschema/locales/src/ja.json":return K((()=>import("./ja.4ae430b9.js")),void 0);case"../../node_modules/@mcschema/locales/src/pl.json":return K((()=>import("./pl.01cb20df.js")),void 0);case"../../node_modules/@mcschema/locales/src/pt.json":return K((()=>import("./pt.31e14993.js")),void 0);case"../../node_modules/@mcschema/locales/src/ru.json":return K((()=>import("./ru.92df5b59.js")),void 0);case"../../node_modules/@mcschema/locales/src/zh-cn.json":return K((()=>import("./zh-cn.7cd3f35b.js")),void 0);case"../../node_modules/@mcschema/locales/src/zh-tw.json":return K((()=>import("./zh-tw.bae62b5e.js")),void 0);default:return Promise.reject(new Error("Unknown variable dynamic import: "+e))}}(`../../node_modules/@mcschema/locales/src/${e}.json`);te[e]=s(s({},n.default),r.default)}const oe=e=>("0"+e.toString(16)).substr(-2);function ae(e=12){var t=new Uint8Array(e/2);return window.crypto.getRandomValues(t),Array.from(t,oe).join("")}function ie(){return BigInt(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))}function se(e){const t=Math.floor(4294967296*Math.random())-2147483648;e.set(new p.Path(["generator","seed"]),t,!0),e.set(new p.Path(["generator","biome_source","seed"]),t)}function le(e){return`/${e}/`.replaceAll("//","/")}function ce(e){const t=e.replace(/^\//,"").replace(/\/$/,"");return T.generators.find((e=>e.url===t))}function de(e){const t=Math.abs(function(e){let t=0;for(let n=0;n>8)%256,(t>>16)%256]}function ue(e){return e*e}function me(e,t,n){return Math.max(e,Math.min(t,n))}function he(e,t,n){return n<0?e:n>1?t:pe(n,e,t)}function pe(e,t,n){return t+e*(n-t)}function fe(e){return e instanceof Error?e.message:`${e}`}const ge=h();function ve(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!ve(e[r],t[r]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const o=Object.keys(e);if(n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!ve(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _e(e){if(Array.isArray(e))return e.map((e=>_e(e.node)));if("object"==typeof e&&null!==e){const t={};return Object.entries(e).map((([e,n])=>{t[e]=_e(n)})),t}return e}["1.15","1.16","1.17"].forEach((e=>localStorage.removeItem(`cache_${e}`)));const we="https://raw.githubusercontent.com/Arcensoth/mcdata",ye="https://raw.githubusercontent.com/SPGoding/vanilla-datapack",be=[{id:"mcdata_master",hash:"2eb26a7112f2abd02b79ce5213337ef021fb1428",url:we},{id:"vanilla_datapack_summary",hash:"e936a783bf8a3a3a3ebfe7fba8389ca10096fcba",url:ye}];async function xe(e,t,n){const r=T.versions.find((t=>t.id===e));r?(console.debug(`[fetchData] ${JSON.stringify(r)}`),r.dynamic&&await Promise.all(be.filter((e=>localStorage.getItem(`cached_${e.id}`)!==e.hash)).map((async e=>{console.debug(`[deleteMatching] ${e.id} '${localStorage.getItem(`cached_${e.id}`)}' < '${e.hash}' ${e.url}/${r.refs[e.id]}`),await async function(e){try{const t=await caches.open("misode-v1");console.debug("[deleteMatching] Opened cache misode-v1");const n=[];for(const r of await t.keys())e(r.url)&&n.push(t.delete(r));console.debug(`[deleteMatching] Removing ${n.length} cache objects...`),await Promise.all(n)}catch(t){console.warn(`[deleteMatching] Failed to open cache misode-v1: ${fe(t)}`)}}((t=>t.startsWith(`${e.url}/${r.refs[e.id]}`))),console.debug(`[deleteMatching] Done! ${e.id} ${e.hash} '${localStorage.getItem(`cached_${e.id}`)}'`),localStorage.setItem(`cached_${e.id}`,e.hash),console.debug(`[deleteMatching] Set! ${e.id} ${e.hash} '${localStorage.getItem(`cached_${e.id}`)}'`)}))),await Promise.all([ke(r,t),Ce(r,n),Me(r,t)])):console.error(`[fetchData] Unknown version ${r} in ${JSON.stringify(T.versions)}`)}async function ke(e,t){console.debug(`[fetchRegistries] ${e.id}`);const n=T.registries.filter((e=>!e.dynamic)).filter((t=>Le(e.id,t.minVersion,t.maxVersion)));if(Le(e.id,void 0,"1.15")){const o=`${we}/${e.refs.mcdata_master}/generated/reports/registries.json`;try{const e=await Ie(o,(e=>{const t={};return Object.keys(e).forEach((n=>{t[n.slice(10)]=Object.keys(e[n].entries)})),t}));n.forEach((n=>{var r;t.register(n.id,null!=(r=e[n.id])?r:[])}))}catch(r){console.warn("Error occurred while fetching registries:",fe(r))}}else await Promise.all(n.map((async n=>{try{const r=n.path?`${we}/${e.refs.mcdata_master}/${n.path}/data.min.json`:`${we}/${e.refs.mcdata_master}/processed/reports/registries/${n.id}/data.min.json`;t.register(n.id,await Ie(r,(e=>e.values)))}catch(r){console.warn(`Error occurred while fetching registry ${n.id}:`,fe(r))}})))}async function Ce(e,t){if(console.debug(`[fetchBlockStateMap] ${e.id}`),Le(e.id,void 0,"1.16")){const r=Le(e.id,void 0,"1.15")?`${we}/${e.refs.mcdata_master}/generated/reports/blocks.json`:`${we}/${e.refs.mcdata_master}/processed/reports/blocks/data.min.json`;try{const e=await Ie(r,(e=>{const t={};return Object.keys(e).forEach((n=>{t[n]={properties:e[n].properties,default:e[n].states.find((e=>e.default)).properties}})),t}));Object.assign(t,e)}catch(n){console.warn("Error occurred while fetching block state map:",fe(n))}}else{const r=`${we}/${e.refs.mcdata_master}/processed/reports/blocks/simplified/data.min.json`;try{const e=await Ie(r);Object.assign(t,e)}catch(n){console.warn("Error occurred while fetching block state map:",fe(n))}}}async function Me(e,t){console.debug(`[fetchDynamicRegistries] ${e.id}`);const n=T.registries.filter((e=>e.dynamic)).filter((t=>Le(e.id,t.minVersion,t.maxVersion)));if(Le(e.id,"1.16")){const o=`${ye}/${e.refs.vanilla_datapack_summary}/summary/flattened.min.json`;try{const e=await Ie(o);n.forEach((n=>{t.register(n.id,e[n.id])}))}catch(r){console.warn("Error occurred while fetching dynamic registries:",fe(r))}}}async function ze(e,t,n){console.debug(`[fetchPreset] ${t} ${n}`);const r=T.versions.find((t=>t.id===e));try{const e=`${ye}/${r.refs.vanilla_datapack_data}/data/minecraft/${t}/${n}.json`,o=await fetch(e);return await o.json()}catch(o){console.warn(`Error occurred while fetching ${t} preset ${n}:`,fe(o))}}async function Ie(e,t=(e=>e)){try{const n=await caches.open("misode-v1");console.debug(`[getData] Opened cache misode-v1 ${e}`);const r=await n.match(e);if(r&&r.ok)return console.debug(`[getData] Retrieving cached data ${e}`),await r.json();console.debug(`[getData] fetching data ${e}`);const o=await fetch(e),a=t(await o.json());return await n.put(e,new Response(JSON.stringify(a))),a}catch(n){console.warn(`[getData] Failed to open cache misode-v1: ${fe(n)}`),console.debug(`[getData] fetching data ${e}`);const r=await fetch(e);return t(await r.json())}}const Ve=["1.15","1.16","1.17","1.18"],Ae={},Ee={},je={1.15:f,1.16:g,1.17:v,1.18:_};async function Oe(e){return Ae[e]||(Ae[e]=(async()=>{try{const t=je[e].getCollections(),n={};await xe(e,t,n);const r=je[e].getSchemas(t);return Ae[e]={collections:t,schemas:r,blockStates:n},Ae[e]}catch(t){throw new Error(`Cannot get version "${e}": ${fe(t)}`)}})()),Ae[e]}function Le(e,t,n){const r=T.versions.findIndex((t=>t.id===e)),o=t?T.versions.findIndex((e=>e.id===t)):0,a=n?T.versions.findIndex((e=>e.id===n)):T.versions.length-1;return o<=r&&r<=a}const $e={system:"device_desktop",dark:"moon",light:"sun"};function Pe({lang:e,title:t,version:n,theme:r,changeTheme:o,language:a,changeLanguage:i}){const s=ne.bind(null,e),l=ce(w());return d("header",null,d("div",{class:"title"},d(y,{class:"home-link",href:"/"},Se.home),d("h2",null,t),l&&d(Y,{icon:"chevron_down"},T.generators.filter((e=>e.category===(null==l?void 0:l.category)&&Le(n,e.minVersion))).map((e=>d(R,{label:s(e.id),active:e.id===l.id,onClick:()=>b(le(e.url))}))))),d("nav",null,d("ul",null,d("li",null,d(Y,{icon:"globe"},T.languages.map((({code:e,name:t})=>d(R,{label:t,active:e===a,onClick:()=>i(e)}))))),d("li",null,d(Y,{icon:$e[r]},Object.entries($e).map((([e,t])=>d(R,{icon:t,label:s(`theme.${e}`),active:e===r,onClick:()=>o(e)}))))),d("li",{class:"dimmed"},d("a",{href:"https://github.com/misode/misode.github.io",target:"_blank",rel:"noreferrer",title:s("github")},U.mark_github)))))}const Se={home:d("svg",{width:"32",height:"28",viewBox:"0 0 32 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d("rect",{width:"26",height:"6",rx:"3",fill:"#7CB45C"}),d("rect",{x:"8",width:"18",height:"6",rx:"3",fill:"#4BA041"}),d("rect",{y:"11",width:"32",height:"6",rx:"3",fill:"#AAA8A8"}),d("rect",{x:"11",y:"11",width:"21",height:"6",rx:"3",fill:"#91908F"}),d("rect",{x:"11",y:"22",width:"21",height:"6",rx:"3",fill:"#70B5C3"}),d("rect",{x:"17",y:"22",width:"15",height:"6",rx:"3",fill:"#4D989B"})),report:d("svg",{width:"30",height:"36",viewBox:"0 0 30 36",xmlns:"http://www.w3.org/2000/svg"},d("path",{d:"M0 16C0 13.7909 1.79086 12 4 12V12C6.20914 12 8 13.7909 8 16V32C8 34.2091 6.20914 36 4 36V36C1.79086 36 0 34.2091 0 32V16Z",fill:"#6ACC5D"}),d("path",{d:"M11 4C11 1.79086 12.7909 0 15 0V0C17.2091 0 19 1.79086 19 4V32C19 34.2091 17.2091 36 15 36V36C12.7909 36 11 34.2091 11 32V4Z",fill:"#FF4C4C"}),d("path",{d:"M22 10C22 7.79086 23.7909 6 26 6V6C28.2091 6 30 7.79086 30 10V32C30 34.2091 28.2091 36 26 36V36C23.7909 36 22 34.2091 22 32V10Z",fill:"#E5B442"}),d("path",{d:"M0 23C0 20.7909 1.79086 19 4 19V19C6.20914 19 8 20.7909 8 23V32C8 34.2091 6.20914 36 4 36V36C1.79086 36 0 34.2091 0 32V23Z",fill:"#2BAD1D"}),d("path",{d:"M11 15C11 12.7909 12.7909 11 15 11V11C17.2091 11 19 12.7909 19 15V32C19 34.2091 17.2091 36 15 36V36C12.7909 36 11 34.2091 11 32V15Z",fill:"#C10B0B"}),d("path",{d:"M22 19C22 16.7909 23.7909 15 26 15V15C28.2091 15 30 16.7909 30 19V32C30 34.2091 28.2091 36 26 36V36C23.7909 36 22 34.2091 22 32V19Z",fill:"#CC8E00"})),sounds:d("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},d("circle",{cx:"10",cy:"10",r:"10",fill:"#451475"}),d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.5 10C3.5 8.27609 4.18482 6.62279 5.40381 5.40381C6.62279 4.18482 8.27609 3.5 10 3.5C11.7239 3.5 13.3772 4.18482 14.5962 5.40381C15.8152 6.62279 16.5 8.27609 16.5 10C16.5 11.7239 15.8152 13.3772 14.5962 14.5962C13.3772 15.8152 11.7239 16.5 10 16.5C8.27609 16.5 6.62279 15.8152 5.40381 14.5962C4.18482 13.3772 3.5 11.7239 3.5 10V10ZM10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2V2ZM8.379 7.227C8.34101 7.20412 8.29762 7.19175 8.25327 7.19117C8.20892 7.19059 8.16522 7.20181 8.12664 7.2237C8.08807 7.24558 8.05601 7.27733 8.03375 7.3157C8.0115 7.35406 7.99985 7.39765 8 7.442V12.559C8.00003 12.6033 8.0118 12.6467 8.03413 12.685C8.05646 12.7232 8.08854 12.7548 8.12708 12.7765C8.16563 12.7983 8.20926 12.8095 8.25352 12.8088C8.29778 12.8082 8.34108 12.7958 8.379 12.773L12.643 10.214C12.6798 10.1917 12.7103 10.1604 12.7315 10.1229C12.7526 10.0854 12.7638 10.043 12.7638 10C12.7638 9.95695 12.7526 9.91463 12.7315 9.87714C12.7103 9.83965 12.6798 9.80825 12.643 9.786L8.379 7.227Z",fill:"#C5A5E6"}))};let De,Ne,Be;async function Te(e,t){const n=[e,t.octaves,`${t.seed}`,t.version];if(!ve(n,De)){De=ge(n),Ne=await async function(e,t){var n,r,o,a,i;switch(null==(n=null==e?void 0:e.type)?void 0:n.replace(/^minecraft:/,"")){case"fixed":return new I(e.biome);case"checkerboard":const n=(null!=(r=e.scale)?r:2)+2,s=null!=(a=null==(o=e.biomes)?void 0:o.length)?a:0;return{getBiome(t,r,o){var a;const i=(((t>>n)+(o>>n))%s+s)%s;return null==(a=e.biomes)?void 0:a[i].node}};case"multi_noise":switch(null==(i=e.preset)?void 0:i.replace(/^minecraft:/,"")){case"nether":e="1.18"===t.version?Je:Fe;break;case"overworld":e="1.18"===t.version?await async function(){return(await ze("1.18","dimension","overworld")).generator.biome_source}():e}if("1.18"===t.version)return C.fromJson(_e(e));{const n=["altitude","temperature","humidity","weirdness"].map(((n,r)=>{const o=e[`${n}_noise`];return new M(new z(t.seed+BigInt(r)),o)}));return Array.isArray(e.biomes)&&0!==e.biomes.length?{getBiome(t,r,o){const a=n.map((e=>e.sample(t,o,0)));let i=1/0,s="";for(const{biome:n,parameters:l}of _e(e.biomes)){const e=ue(l.altitude-a[0])+ue(l.temperature-a[1])+ue(l.humidity-a[2])+ue(l.weirdness-a[3])+ue(l.offset);er.nextFloat(),nextInt:e=>r.nextInt(e),sampleInt(e){return Xe(e,this)}};for(let i=0;i=n.size[0]||i[1]>=n.size[1]||i[2]>=n.size[2])continue;const e=i[2]*(4*t.width)+4*i[0],r=s{Qe(t,null==e?void 0:e.decorator,n).forEach((t=>Ke(t,null==e?void 0:e.feature,n)))},random_boolean_selector:(e,t,n)=>{Ke(t,n.nextFloat()<.5?null==e?void 0:e.feature_true:null==e?void 0:e.feature_false,n)},random_selector:(e,t,n)=>{var r,o;for(const a of null!=(r=null==e?void 0:e.features)?r:[])if(n.nextFloat()<(null!=(o=null==a?void 0:a.chance)?o:0))return void Ke(t,a.feature,n);Ke(t,null==e?void 0:e.default,n)},simple_random_selector:(e,t,n)=>{var r,o,a;Ke(t,null==(a=null==e?void 0:e.features)?void 0:a[n.nextInt(null!=(o=null==(r=null==e?void 0:e.features)?void 0:r.length)?o:0)],n)}},tt={chance:(e,t,n)=>{var r;return n.nextFloat()<1/(null!=(r=null==e?void 0:e.chance)?r:1)?[t]:[]},count:(e,t,n)=>{var r;return new Array(n.sampleInt(null!=(r=null==e?void 0:e.count)?r:1)).fill(t)},count_extra:(e,t,n)=>{var r,o;let a=null!=(r=null==e?void 0:e.count)?r:1;return n.nextFloat(){var r;return new Array(n.sampleInt(null!=(r=null==e?void 0:e.count)?r:1)).fill(t).map((e=>[e[0]+n.nextInt(16),e[1],e[2]+n.nextInt(16)]))},count_noise:(e,t,n)=>{const r=n.biomeInfoNoise.sample(t[0]/200,0,t[2]/200){var r;const o=Math.max(1,e.noise_factor),a=n.biomeInfoNoise.sample(t[0]/o,0,t[2]/o),i=Math.max(0,Math.ceil((a+(null!=(r=e.noise_offset)?r:0))*e.noise_to_count_ratio));return new Array(i).fill(t)},dark_oak_tree:(e,t,n)=>[...new Array(16)].map(((e,r)=>{const o=4*Math.floor(r/4)+1+n.nextInt(3)+t[0];return[o,Math.max(n.seaLevel,We[me(0,63,o)]),4*Math.floor(r%4)+1+n.nextInt(3)+t[2]]})),decorated:(e,t,n)=>Qe(t,null==e?void 0:e.outer,n).flatMap((t=>Qe(t,null==e?void 0:e.inner,n))),depth_average:(e,t,n)=>{var r,o,a,i;return Ze(t,n.nextInt(null!=(r=null==e?void 0:e.spread)?r:0)+n.nextInt(null!=(o=null==e?void 0:e.spread)?o:0)-(null!=(a=e.spread)?a:0)+(null!=(i=null==e?void 0:e.baseline)?i:0))},emerald_ore:(e,t,n)=>{const r=3+n.nextInt(6);return[...new Array(r)].map((()=>[t[0]+n.nextInt(16),4+n.nextInt(28),t[2]+n.nextInt(16)]))},fire:(e,t,n)=>{const r=1+n.nextInt(n.nextInt(n.sampleInt(null==e?void 0:e.count)));return[...new Array(r)].map((()=>[t[0]+n.nextInt(16),n.nextInt(128),t[2]+n.nextInt(16)]))},glowstone:(e,t,n)=>{const r=n.nextInt(1+n.nextInt(n.sampleInt(null==e?void 0:e.count)));return[...new Array(r)].map((()=>[t[0]+n.nextInt(16),n.nextInt(128),t[2]+n.nextInt(16)]))},heightmap:(e,t,n)=>Ze(t,Math.max(n.seaLevel,We[me(0,63,t[0])])),heightmap_spread_double:(e,t,n)=>{const r=Math.max(n.seaLevel,We[me(0,63,t[0])]);return Ze(t,n.nextInt(2*r))},heightmap_world_surface:(e,t,n)=>Ze(t,Math.max(n.seaLevel,We[me(0,63,t[0])])),iceberg:(e,t,n)=>[[t[0]+4+n.nextInt(8),t[1],t[2]+4+n.nextInt(8)]],lava_lake:(e,t,n)=>{var r,o;if(0===n.nextInt((null!=(r=e.chance)?r:1)/10)){const r=n.nextInt(n.nextInt(248)+8);if(r[t],range:(e,t,n)=>{var r,o,a;return Ze(t,n.nextInt((null!=(r=null==e?void 0:e.maximum)?r:1)-(null!=(o=null==e?void 0:e.top_offset)?o:0))+(null!=(a=null==e?void 0:e.bottom_offset)?a:0))},range_biased:(e,t,n)=>{var r,o,a;return Ze(t,n.nextInt(n.nextInt((null!=(r=null==e?void 0:e.maximum)?r:1)-(null!=(o=null==e?void 0:e.top_offset)?o:0))+(null!=(a=null==e?void 0:e.bottom_offset)?a:0)))},range_very_biased:(e,t,n)=>{var r,o,a,i;return Ze(t,n.nextInt(n.nextInt(n.nextInt((null!=(r=null==e?void 0:e.maximum)?r:1)-(null!=(o=null==e?void 0:e.top_offset)?o:0))+(null!=(a=null==e?void 0:e.bottom_offset)?a:0))+(null!=(i=null==e?void 0:e.bottom_offset)?i:0)))},spread_32_above:(e,t,n)=>Ze(t,n.nextInt(t[1]+32)),top_solid_heightmap:(e,t)=>Ze(t,We[me(0,63,t[0])]),magma:(e,t,n)=>Ze(t,n.nextInt(t[1]+32)),square:(e,t,n)=>[[t[0]+n.nextInt(16),t[1],t[2]+n.nextInt(16)]],surface_relative_threshold:(e,t)=>{var n,r;const o=We[me(0,63,t[0])],a=o+(null!=(n=null==e?void 0:e.min_inclusive)?n:-1/0),i=o+(null!=(r=null==e?void 0:e.max_inclusive)?r:1/0);return t[1]i?[t]:[]},water_lake:(e,t,n)=>{var r;return 0===n.nextInt(null!=(r=e.chance)?r:1)?[[t[0]+n.nextInt(16),n.nextInt(256),t[2]+n.nextInt(16)]]:[]}};class nt{constructor(e){this.settings={},this.chunkWidth=4,this.chunkHeight=4,this.chunkCountY=32,this.biomeDepth=.1,this.biomeScale=.2,this.noiseColumnCache=[],this.xOffset=0;const t=new z(e);this.minLimitPerlinNoise=new V(t,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),this.maxLimitPerlinNoise=new V(t,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),this.mainPerlinNoise=new V(t,-7,[1,1,1,1,1,1,1,1]),this.depthNoise=new V(t,-15,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1])}reset(e,t,n,r,o){this.settings=e,this.chunkWidth=4*e.size_horizontal,this.chunkHeight=4*e.size_vertical,this.chunkCountY=Math.floor(e.height/this.chunkHeight),e.amplified&&t>0&&(t=1+2*t,n=1+4*n),this.biomeDepth=.265625*(.5*t-.125),this.biomeScale=96/(.9*n+.1),this.noiseColumnCache=Array(o).fill(null),this.xOffset=r}iterateNoiseColumn(e){const t=Array(this.chunkCountY*this.chunkHeight),n=Math.floor(e/this.chunkWidth),r=Math.floor(e%this.chunkWidth)/this.chunkWidth,o=this.fillNoiseColumn(n),a=this.fillNoiseColumn(n+1);for(let m=this.chunkCountY-1;m>=0;m-=1)for(let e=this.chunkHeight;e>=0;e-=1){const n=e/this.chunkHeight;t[m*this.chunkHeight+e]=(i=n,s=r,l=o[m],c=o[m+1],d=a[m],u=a[m+1],pe(s,pe(i,l,c),pe(i,d,u)))}var i,s,l,c,d,u;return t}fillNoiseColumn(e){const t=this.noiseColumnCache[e-this.xOffset];if(t)return t;const n=Array(this.chunkCountY+1),r=684.412*this.settings.sampling.xz_scale,o=684.412*this.settings.sampling.y_scale,a=r/this.settings.sampling.xz_factor,i=o/this.settings.sampling.y_factor,s=this.settings.random_density_offset?this.getRandomDensity(e):0;for(let l=0;l<=this.chunkCountY;l+=1){let t=this.sampleAndClampNoise(e,l,this.mainPerlinNoise.getOctaveNoise(0).zo,r,o,a,i);const c=((1-2*l/this.chunkCountY+s)*this.settings.density_factor+this.settings.density_offset+this.biomeDepth)*this.biomeScale;t+=c*(c>0?4:1),this.settings.top_slide.size>0&&(t=he(this.settings.top_slide.target,t,(this.chunkCountY-l-this.settings.top_slide.offset)/this.settings.top_slide.size)),this.settings.bottom_slide.size>0&&(t=he(this.settings.bottom_slide.target,t,(l-this.settings.bottom_slide.offset)/this.settings.bottom_slide.size)),n[l]=t}return this.noiseColumnCache[e-this.xOffset]=n,n}getRandomDensity(e){const t=this.depthNoise.sample(200*e,10,this.depthNoise.getOctaveNoise(0).zo,1,0,!0),n=24.575625*(t<0?.3*-t:t)-2;return n<0?.009486607142857142*n:.006640625*Math.min(n,1)}sampleAndClampNoise(e,t,n,r,o,a,i){let s=0,l=0,c=0,d=1;for(let u=0;u<16;u+=1){const m=V.wrap(e*r*d),h=V.wrap(t*o*d),p=V.wrap(n*r*d),f=o*d,g=this.minLimitPerlinNoise.getOctaveNoise(u);g&&(s+=g.sample(m,h,p,f,t*f)/d);const v=this.maxLimitPerlinNoise.getOctaveNoise(u);if(v&&(l+=v.sample(m,h,p,f,t*f)/d),u<8){const r=this.mainPerlinNoise.getOctaveNoise(u);r&&(c+=r.sample(V.wrap(e*a*d),V.wrap(t*i*d),V.wrap(n*a*d),i*d,t*i*d)/d)}d/=2}return he(s/512,l/512,(c/10+1)/2)}}const rt={"minecraft:air":[150,160,170],"minecraft:water":[20,80,170],"minecraft:lava":[200,100,0],"minecraft:stone":[50,50,50],"minecraft:netherrack":[100,40,40],"minecraft:end_stone":[200,200,140]};let ot,at,it=[];function st(e,t,n){var r;if(Le(n.version,"1.18")){const{settings:o,generator:a}=function(e,t){const n=x.fromJson(_e(e));n.noise.bottomSlide.target*=128,n.noise.topSlide.target*=128;const r={factor:t.biomeFactor,offset:t.biomeOffset,peaks:t.biomePeaks,nearWater:!1},o=[e,r,`${t.seed}`];if(!ve(o,ot)){ot=ge(o),it=[];const e=new I("unknown");at=new A(t.seed,e,n,r)}return{settings:n,generator:at}}(e,n),i=new ct(-n.offset,n.width,o.noise.minY,o.noise.height);i.fill(a);const s=t.data;for(let e=0;e0?0:e[t+1]>0?150:255}class ct{constructor(e,t,n,r){this.minX=e,this.filled=[],this.chunks=[...Array(Math.ceil(t/16)+1)].map(((t,o)=>{const a=(e>>4)+o,i=it.find((e=>e.pos[0]===a));return i?(this.filled[o]=!0,i):new E(n,r,j.create(a,0))}))}fill(e){this.chunks.forEach(((t,n)=>{this.filled[n]||(e.fill(t),this.filled[n]=!0,it.push(t))}))}getBlockState(e){const t=(e[0]>>4)-(this.minX>>4);return this.chunks[t].getBlockState(e)}}const dt=({model:e,data:t,shown:n,version:r})=>{var o;const[a,i]=m(2),[s,l]=m(void 0),h=u([0,0]),f=u(1),g=u(void 0),v=BigInt(e.get(new p.Path(["generator","seed"]))),_=function(e){if("string"==typeof e)switch(e.replace(/^minecraft:/,"")){case"overworld":case"amplified":return{temperature:{firstOctave:-9,amplitudes:[1.5,0,1,0,0,0]},humidity:{firstOctave:-7,amplitudes:[1,1,0,0,0,0]},continentalness:{firstOctave:-9,amplitudes:[1,1,2,2,2,1,1,1,1]},erosion:{firstOctave:-9,amplitudes:[1,1,0,1,1]},weirdness:{firstOctave:-7,amplitudes:[1,2,1,0,0,0]},shift:{firstOctave:-3,amplitudes:[1,1,1,0]}};case"end":case"floating_islands":return{temperature:{firstOctave:0,amplitudes:[0]},humidity:{firstOctave:0,amplitudes:[0]},continentalness:{firstOctave:0,amplitudes:[0]},erosion:{firstOctave:0,amplitudes:[0]},weirdness:{firstOctave:0,amplitudes:[0]},shift:{firstOctave:0,amplitudes:[0]}};default:return{temperature:{firstOctave:-7,amplitudes:[1,1]},humidity:{firstOctave:-7,amplitudes:[1,1]},continentalness:{firstOctave:-7,amplitudes:[1,1]},erosion:{firstOctave:-7,amplitudes:[1,1]},weirdness:{firstOctave:-7,amplitudes:[1,1]},shift:{firstOctave:0,amplitudes:[0]}}}return x.fromJson(e).octaves}(e.get(new p.Path(["generator","settings"]))),w=function(e,t){return JSON.stringify([e,t])}(t,_),y=null==(o=t.type)?void 0:o.replace(/^minecraft:/,""),{canvas:b,redraw:k}=J({size:()=>[200/f.current,200/f.current],async draw(e){const n={octaves:_,biomeColors:{},offset:h.current,scale:a,seed:v,res:f.current,version:r};await async function(e,t,n){const{biomeSource:r,climateSampler:o}=await Te(e,n),a=t.data,i=-n.offset[0]-100+n.res/2,s=-n.offset[1]-100+n.res/2,l=4*t.width/n.res,c=4/n.res;for(let d=0;d<200;d+=n.res)for(let e=0;e<200;e+=n.res){const t=e*l+d*c,u=(d+i)*n.scale,m=(e+s)*n.scale,h=He(r.getBiome(u,64,m,o),n.biomeColors);a[t]=h[0],a[t+1]=h[1],a[t+2]=h[2],a[t+3]=255}}(t,e,n),4===f.current&&(clearTimeout(g.current),g.current=setTimeout((()=>{f.current=1,k()}),150))},async onDrag(e,t){h.current[0]=h.current[0]+200*e,h.current[1]=h.current[1]+200*t,clearTimeout(g.current),f.current="multi_noise"===y?4:1,k()},async onHover(e,n){const o={octaves:_,biomeColors:{},offset:h.current,scale:a,seed:v,res:1,version:r},i=await async function(e,t,n,r){const{biomeSource:o,climateSampler:a}=await Te(e,r),[i,s]=function([e,t],n){return[(e-n.offset[0]-100+n.res/2)*n.scale,(t-n.offset[1]-100+n.res/2)*n.scale]}([t,n],r);return o.getBiome(i,64,s,a)}(t,Math.floor(200*e),Math.floor(200*n),o);l(i)},onLeave(){l(void 0)}},[w,a,v]);c((()=>{n&&(f.current="multi_noise"===y?4:1,k())}),[w,a,v,n]);const C=e=>{h.current[0]=h.current[0]*a/e,h.current[1]=h.current[1]*a/e,i(e)};return d(O,null,d("div",{class:"controls"},s&&d(R,{label:s,class:"no-pointer"}),("multi_noise"===y||"checkerboard"===y)&&d(O,null,d(R,{icon:"dash",onClick:()=>C(1.5*a)}),d(R,{icon:"plus",onClick:()=>C(a/1.5)})),"multi_noise"===y&&d(R,{icon:"sync",onClick:()=>se(e)})),d("canvas",{ref:b,width:"200",height:"200"}))};const ut=({data:e,version:t,shown:n})=>{const[r,o]=m(4),[a,i]=m(ie()),{canvas:s,redraw:l}=J({size:()=>[16*r,16*r],async draw(n){Ye(e,n,{seed:a,version:t,size:[16*r,128,16*r]})}}),u=JSON.stringify(e);return c((()=>{n&&l()}),[u,r,a,n]),d(O,null,d("div",{class:"controls"},d(R,{icon:"dash",onClick:()=>o(Math.min(16,r+1))}),d(R,{icon:"plus",onClick:()=>o(Math.max(1,r-1))}),d(R,{icon:"sync",onClick:()=>i(ie())})),d("canvas",{ref:s,width:"64",height:"64"}))},mt=({lang:e,data:t,shown:n,version:r})=>{var o,a;const i=ne.bind(null,e),[s,l]=m(ie()),[h,p]=m(.2),[f,g]=m(.1),[v,_]=m(0),[w,y]=m(void 0),b=u(0),x=JSON.stringify([t,h,f,v]),k=Le(r,"1.18");c((()=>{p(k?600:.2),g(k?.05:.1)}),[k]);const C=null!=(a=null==(o=null==t?void 0:t.noise)?void 0:o.height)?a:256,{canvas:M,redraw:z}=J({size:()=>[C,C],async draw(e){const n={biomeOffset:f,biomeFactor:h,biomePeaks:v,offset:b.current,width:e.width,seed:s,version:r};st(t,e,n)},async onDrag(e){b.current+=e*C,z()},async onHover(e,n){var r,o;const a=C-Math.max(1,Math.ceil(n*C))+(null!=(o=null==(r=null==t?void 0:t.noise)?void 0:r.min_y)?o:0);y(`${a}`)},onLeave(){y(void 0)}},[x,s]);return c((()=>{n&&z()}),[x,s,n]),d(O,null,d("div",{class:"controls"},w&&d(R,{label:`Y = ${w}`,class:"no-pointer"}),d(Y,{icon:"gear"},k?d(O,null,d(F,{label:i("preview.factor"),value:`${h}`,onChange:e=>p(Number(e))}),d(F,{label:i("preview.offset"),value:`${f}`,onChange:e=>g(Number(e))}),d(F,{label:i("preview.peaks"),value:`${v}`,onChange:e=>_(Number(e))})):d(O,null,d(F,{label:i("preview.scale"),value:`${h}`,onChange:e=>p(Number(e))}),d(F,{label:i("preview.depth"),value:`${f}`,onChange:e=>g(Number(e))}))),d(R,{icon:"sync",onClick:()=>l(ie())})),d("canvas",{ref:M,width:C,height:C}))},ht=["dimension","worldgen/noise_settings","worldgen/configured_feature"];function pt({lang:e,model:t,version:n,id:r,shown:o}){var a;const[,i]=m(0);if(G(t,(()=>{i((e=>e+1))})),"dimension"===r&&(null==(a=null==t?void 0:t.get(new p.Path(["generator","type"])))?void 0:a.endsWith("noise"))){const r=t.get(new p.Path(["generator","biome_source"]));if(r)return d(dt,s({},{lang:e,model:t,version:n,shown:o,data:r}))}if("worldgen/noise_settings"===r&&t){const r=t.get(new p.Path([]));if(r)return d(mt,s({},{lang:e,model:t,version:n,shown:o,data:r}))}if("worldgen/configured_feature"===r&&t){const r=t.get(new p.Path([]));if(r)return d(ut,s({},{lang:e,model:t,version:n,shown:o,data:r}))}return d(O,null)}const ft={base:({},e,t)=>t,choice({switchNode:e},t,n,r){return e.hook(this,t,n,r)},list({children:e},t,n,r){return Array.isArray(n)?n.map(((n,o)=>e.hook(this,t.push(o),n.node,r))):n},map({children:e,config:t},n,r,o){var a,i;if(void 0===r)return;const s="block_state_map"===(null==(a=t.validation)?void 0:a.validator)?null==(i=o.blockStates)?void 0:i[p.relativePath(n,t.validation.params.id).get()]:null,l={};return Object.keys(r).forEach((t=>{var a;s&&!Object.keys(null!=(a=s.properties)?a:{}).includes(t)||(l[t]=e.hook(this,n.push(t),r[t],o))})),l},object({getActiveFields:e},t,n,r){if(null==n||"object"!=typeof n)return n;const o={},a=e(t);return Object.keys(a).filter((e=>a[e].enabled(t))).forEach((e=>{o[e]=a[e].hook(this,t.push(e),n[e],r)})),o}};var gt,vt;(vt=gt||(gt={})).ID_LANGUAGE="language",vt.ID_THEME="theme",vt.ID_VERSION="schema_version",vt.ID_INDENT="indentation",vt.getLanguage=function(){var e;return null!=(e=localStorage.getItem(vt.ID_LANGUAGE))?e:"en"},vt.getTheme=function(){var e;return null!=(e=localStorage.getItem(vt.ID_THEME))?e:"dark"},vt.getVersion=function(){const e=localStorage.getItem(vt.ID_VERSION);return e&&Ve.includes(e)?e:"1.17"},vt.getIndent=function(){var e;return null!=(e=localStorage.getItem(vt.ID_INDENT))?e:"2_spaces"},vt.setLanguage=function(e){e&&localStorage.setItem(vt.ID_LANGUAGE,e)},vt.setTheme=function(e){e&&localStorage.setItem(vt.ID_THEME,e)},vt.setVersion=function(e){e&&localStorage.setItem(vt.ID_VERSION,e)},vt.setIndent=function(e){e&&localStorage.setItem(vt.ID_INDENT,e)};const _t={"2_spaces":2,"4_spaces":4,tabs:"\t"};function wt({lang:e,name:t,model:n,blockStates:r,doCopy:o,doDownload:a,doImport:i,copySuccess:s,onError:l}){const h=ne.bind(null,e),[f,g]=m(gt.getIndent()),v=u(null),_=u(null),w=u(),y=L(((e,t)=>{const n=e.schema.hook(ft,new p.ModelPath(e),e.data,{blockStates:t});return JSON.stringify(n,null,_t[f])+"\n"}),[]);c((()=>{w.current=()=>{if(n&&r)try{const e=y(n,r);e.length>=1e4?v.current.value=e.slice(0,1e4)+"\n\nOutput is too large to display (+10000 chars)\nExport to view complete output\n\n":v.current.value=e}catch(e){l(`Error getting JSON output: ${fe(e)}`),console.error(e),v.current.value=""}}})),G(n,(()=>{w.current()})),c((()=>{n&&w.current()}),[n]),c((()=>{w.current()}),[f]);c((()=>{o&&n&&r&&navigator.clipboard.writeText(y(n,r)).then((()=>{s()}))}),[o]),c((()=>{if(a&&v.current&&_.current){const e=encodeURIComponent(v.current.value);_.current.setAttribute("href",`data:text/json;charset=utf-8,${e}`),_.current.setAttribute("download",`${t}.json`),_.current.click()}}),[a]),c((()=>{i&&v.current&&(v.current.value="",v.current.select())}),[i]);return d(O,null,d("div",{class:"controls"},d(Y,{icon:"gear"},Object.entries(_t).map((([e])=>d(R,{label:h(`indentation.${e}`),active:f===e,onClick:()=>{return t=e,gt.setIndent(t),void g(t);var t}}))))),d("textarea",{ref:v,class:"source",onChange:()=>{try{const e=JSON.parse(v.current.value);null==n||n.reset(p.DataModel.wrapLists(e),!1)}catch(e){l(`Error importing: ${fe(e)}`),console.error(e)}},spellcheck:!1,autocorrect:"off",placeholder:h("source_placeholder")}),d("a",{ref:_,style:"display: none;"}))}function yt({title:e,link:t,icon:n,children:r}){return d("a",{class:"tool-card",href:t},n&&Se[n],d("div",null,d("h3",null,e),r))}const bt=["loot_table.type","loot_entry.type","function.function","condition.condition","criterion.trigger","dimension.generator.type","dimension.generator.biome_source.type","dimension.generator.biome_source.preset","carver.type","feature.type","decorator.type","feature.tree.minimum_size.type","block_state_provider.type","trunk_placer.type","foliage_placer.type","tree_decorator.type","int_provider.type","float_provider.type","height_provider.type","structure_feature.type","surface_builder.type","processor.processor_type","rule_test.predicate_type","pos_rule_test.predicate_type","template_element.element_type","block_placer.type"],xt=["number_provider.type","score_provider.type","nbt_provider.type","int_provider.type","float_provider.type","height_provider.type"],kt=["feature.config","decorator.config","int_provider.value","float_provider.value","block_state_provider.simple_state_provider.state","block_state_provider.rotated_block_provider.state","block_state_provider.weighted_state_provider.entries.entry.data","rule_test.block_state","structure_feature.config","surface_builder.config","template_pool.elements.entry.element","decorator.block_survives_filter.state"],Ct=["loot_entry.type","function.function","condition.condition","criterion.trigger","dimension.generator.type","dimension.generator.biome_source.type","feature.type","decorator.type","block_state_provider.type","feature.tree.minimum_size.type","trunk_placer.type","foliage_placer.type","tree_decorator.type","block_placer.type","rule_test.predicate_type","processor.processor_type","template_element.element_type","nbt_operation.op","number_provider.value","score_provider.name","score_provider.target","nbt_provider.source","nbt_provider.target","generator_biome.biome"],Mt=["function.set_nbt.tag","advancement.display.icon.nbt","text_component_object.nbt","entity.nbt","block.nbt","item.nbt"],zt=["generator_biome.parameters.temperature","generator_biome.parameters.humidity","generator_biome.parameters.continentalness","generator_biome.parameters.erosion","generator_biome.parameters.depth","generator_biome.parameters.weirdness","feature.end_spike.crystal_beam_target","feature.end_gateway.exit","decorator.block_filter.offset"],It=new p.DataModel(p.MapNode(p.StringNode(),p.StringNode()),{historyMax:0}),Vt={base:()=>[null,null,null],boolean:(e,t,n,r,o)=>[null,d(At,s({},l(s({},e),{path:t,value:n,lang:r,states:o}))),null],choice({choices:e,config:t,switchNode:n},r,o,a,i){const s=n.activeCase(r,!0),l=(null==t?void 0:t.context)?new p.ModelPath(r.getModel(),new p.Path(r.getArray(),[t.context])):r,[c,u,m]=s.node.hook(this,l,o,a,i);if(1===e.length)return[c,u,m];const h=(null==t?void 0:t.choiceContext)?new p.Path([],[t.choiceContext]):(null==t?void 0:t.context)?new p.Path([],[t.context]):r,f=d("select",{value:s.type,onChange:t=>(t=>{var n;const o=null!=(n=e.find((e=>e.type===t)))?n:s;r.model.set(r,o.change?o.change(t,{wrapLists:!0}):p.DataModel.wrapLists(o.node.default()))})(t.target.value)},e.map((e=>d("option",{value:e.type},Pt(a,h.contextPush(e.type))))));return[c,d(O,null,f,u),m]},list({children:e,config:t},n,r,o,a){const i=n.getContext().join(".");if(zt.includes(i)){return[d(O,null,[...Array(t.maxLength)].map(((e,t)=>d(St,{lang:o,path:n.modelPush(t)}))),d("div",{class:"fixed-list"})),d(O,null,[...Array(t.maxLength)].map(((t,i)=>{var s;return e.hook(this,n.modelPush(i),null==(s=null==r?void 0:r[i])?void 0:s.node,o,a)[1]}))),null]}return[null,d("button",{class:"add",onClick:()=>{Array.isArray(r)||(r=[]);const t=p.DataModel.wrapLists(e.default());n.model.set(n,[{node:t,id:ae()},...r])}},U.plus_circle),d(O,null,r&&Array.isArray(r)&&r.map((({node:t,id:i},s)=>{if(r.length>20&&s>=5&&s