mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
4 lines
400 KiB
JavaScript
4 lines
400 KiB
JavaScript
var e,t,r,o,i=Object.defineProperty,a=Object.defineProperties,n=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&d(e,r,t[r]);if(s)for(var r of s(t))l.call(t,r)&&d(e,r,t[r]);return e},_=(e,t)=>a(e,n(t)),p=e=>"symbol"==typeof e?e:e+"",u={},f=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(e,t){for(var r in t)e[r]=t[r];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,n=arguments,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>3)for(r=[r],a=3;a<arguments.length;a++)r.push(n[a]);if(null!=r&&(s.children=r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return y(e,s,o,i,null)}function y(t,r,o,i,a){var n={type:t,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++e.__v:a};return null!=e.vnode&&e.vnode(n),n}function N(e){return e.children}function O(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?k(e):null}function w(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return w(e)}}function x(i){(!i.__d&&(i.__d=!0)&&t.push(i)&&!j.__r++||o!==e.debounceRendering)&&((o=e.debounceRendering)||r)(j)}function j(){for(var e;j.__r=t.length;)e=t.sort((function(e,t){return e.__v.__b-t.__v.__b})),t=[],e.some((function(e){var t,r,o,i,a,n;e.__d&&(a=(i=(t=e).__v).__e,(n=t.__P)&&(r=[],(o=b({},i)).__v=i.__v+1,A(n,i,o,t.__n,void 0!==n.ownerSVGElement,null!=i.__h?[a]:null,r,null==a?k(i):a,i.__h),I(r,i),i.__e!=a&&w(i)))}))}function S(e,t,r,o,i,a,n,s,c,l){var d,m,_,p,h,b,g,v=o&&o.__k||f,O=v.length;for(r.__k=[],d=0;d<t.length;d++)if(null!=(p=r.__k[d]=null==(p=t[d])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?y(null,p,null,null,p):Array.isArray(p)?y(N,{children:p},null,null,null):p.__b>0?y(p.type,p.props,p.key,null,p.__v):p)){if(p.__=r,p.__b=r.__b+1,null===(_=v[d])||_&&p.key==_.key&&p.type===_.type)v[d]=void 0;else for(m=0;m<O;m++){if((_=v[m])&&p.key==_.key&&p.type===_.type){v[m]=void 0;break}_=null}A(e,p,_=_||u,i,a,n,s,c,l),h=p.__e,(m=p.ref)&&_.ref!=m&&(g||(g=[]),_.ref&&g.push(_.ref,null,p),g.push(m,p.__c||h,p)),null!=h?(null==b&&(b=h),"function"==typeof p.type&&null!=p.__k&&p.__k===_.__k?p.__d=c=M(p,c,e):c=C(e,p,_,v,h,c),l||"option"!==r.type?"function"==typeof r.type&&(r.__d=c):e.value=""):c&&_.__e==c&&c.parentNode!=e&&(c=k(_))}for(r.__e=b,d=O;d--;)null!=v[d]&&("function"==typeof r.type&&null!=v[d].__e&&v[d].__e==r.__d&&(r.__d=k(o,d+1)),D(v[d],v[d]));if(g)for(d=0;d<g.length;d++)T(g[d],g[++d],g[++d])}function M(e,t,r){var o,i;for(o=0;o<e.__k.length;o++)(i=e.__k[o])&&(i.__=e,t="function"==typeof i.type?M(i,t,r):C(r,i,i,e.__k,i.__e,t));return t}function P(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){P(e,t)})):t.push(e)),t}function C(e,t,r,o,i,a){var n,s,c;if(void 0!==t.__d)n=t.__d,t.__d=void 0;else if(null==r||i!=a||null==i.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(i),n=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<o.length;c+=2)if(s==i)break e;e.insertBefore(i,a),n=a}return void 0!==n?n:i.nextSibling}function L(e,t,r){"-"===t[0]?e.setProperty(t,r):e[t]=null==r?"":"number"!=typeof r||h.test(t)?r:r+"px"}function B(e,t,r,o,i){var a;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)r&&t in r||L(e.style,t,"");if(r)for(t in r)o&&r[t]===o[t]||L(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?o||e.addEventListener(t,a?R:z,a):e.removeEventListener(t,a?R:z,a);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(n){}"function"==typeof r||(null!=r&&(!1!==r||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,r):e.removeAttribute(t))}}function z(t){this.l[t.type+!1](e.event?e.event(t):t)}function R(t){this.l[t.type+!0](e.event?e.event(t):t)}function A(t,r,o,i,a,n,s,c,l){var d,m,_,p,h,v,y,k,w,x,j,M=r.type;if(void 0!==r.constructor)return null;null!=o.__h&&(l=o.__h,c=r.__e=o.__e,r.__h=null,n=[c]),(d=e.__b)&&d(r);try{e:if("function"==typeof M){if(k=r.props,w=(d=M.contextType)&&i[d.__c],x=d?w?w.props.value:d.__:i,o.__c?y=(m=r.__c=o.__c).__=m.__E:("prototype"in M&&M.prototype.render?r.__c=m=new M(k,x):(r.__c=m=new O(k,x),m.constructor=M,m.render=E),w&&w.sub(m),m.props=k,m.state||(m.state={}),m.context=x,m.__n=i,_=m.__d=!0,m.__h=[]),null==m.__s&&(m.__s=m.state),null!=M.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=b({},m.__s)),b(m.__s,M.getDerivedStateFromProps(k,m.__s))),p=m.props,h=m.state,_)null==M.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==M.getDerivedStateFromProps&&k!==p&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(k,x),!m.__e&&null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(k,m.__s,x)||r.__v===o.__v){m.props=k,m.state=m.__s,r.__v!==o.__v&&(m.__d=!1),m.__v=r,r.__e=o.__e,r.__k=o.__k,r.__k.forEach((function(e){e&&(e.__=r)})),m.__h.length&&s.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(k,m.__s,x),null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(p,h,v)}))}m.context=x,m.props=k,m.state=m.__s,(d=e.__r)&&d(r),m.__d=!1,m.__v=r,m.__P=t,d=m.render(m.props,m.state,m.context),m.state=m.__s,null!=m.getChildContext&&(i=b(b({},i),m.getChildContext())),_||null==m.getSnapshotBeforeUpdate||(v=m.getSnapshotBeforeUpdate(p,h)),j=null!=d&&d.type===N&&null==d.key?d.props.children:d,S(t,Array.isArray(j)?j:[j],r,o,i,a,n,s,c,l),m.base=r.__e,r.__h=null,m.__h.length&&s.push(m),y&&(m.__E=m.__=null),m.__e=!1}else null==n&&r.__v===o.__v?(r.__k=o.__k,r.__e=o.__e):r.__e=function(e,t,r,o,i,a,n,s){var c,l,d,m,_=r.props,p=t.props,h=t.type,b=0;if("svg"===h&&(i=!0),null!=a)for(;b<a.length;b++)if((c=a[b])&&(c===e||(h?c.localName==h:3==c.nodeType))){e=c,a[b]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),a=null,s=!1}if(null===h)_===p||s&&e.data===p||(e.data=p);else{if(a=a&&f.slice.call(e.childNodes),l=(_=r.props||u).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!s){if(null!=a)for(_={},m=0;m<e.attributes.length;m++)_[e.attributes[m].name]=e.attributes[m].value;(d||l)&&(d&&(l&&d.__html==l.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,r,o,i){var a;for(a in r)"children"===a||"key"===a||a in t||B(e,a,null,r[a],o);for(a in t)i&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||r[a]===t[a]||B(e,a,t[a],r[a],o)}(e,p,_,i,s),d)t.__k=[];else if(b=t.props.children,S(e,Array.isArray(b)?b:[b],t,r,o,i&&"foreignObject"!==h,a,n,e.firstChild,s),null!=a)for(b=a.length;b--;)null!=a[b]&&g(a[b]);s||("value"in p&&void 0!==(b=p.value)&&(b!==e.value||"progress"===h&&!b)&&B(e,"value",b,_.value,!1),"checked"in p&&void 0!==(b=p.checked)&&b!==e.checked&&B(e,"checked",b,_.checked,!1))}return e}(o.__e,r,o,i,a,n,s,l);(d=e.diffed)&&d(r)}catch(P){r.__v=null,(l||null!=n)&&(r.__e=c,r.__h=!!l,n[n.indexOf(c)]=null),e.__e(P,r,o)}}function I(t,r){e.__c&&e.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(e){e.call(r)}))}catch(o){e.__e(o,r.__v)}}))}function T(t,r,o){try{"function"==typeof t?t(r):t.current=r}catch(i){e.__e(i,o)}}function D(t,r,o){var i,a,n;if(e.unmount&&e.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||T(i,null,r)),o||"function"==typeof t.type||(o=null!=(a=t.__e)),t.__e=t.__d=void 0,null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(s){e.__e(s,r)}i.base=i.__P=null}if(i=t.__k)for(n=0;n<i.length;n++)i[n]&&D(i[n],r,o);null!=a&&g(a)}function E(e,t,r){return this.constructor(e,r)}function F(t,r,o){var i,a,n;e.__&&e.__(t,r),a=(i="function"==typeof o)?null:o&&o.__k||r.__k,n=[],A(r,t=(!i&&o||r).__k=v(N,null,[t]),a||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:a?null:r.firstChild?f.slice.call(r.childNodes):null,n,!i&&o?o:a?a.__e:r.firstChild,i),I(n,t)}e={__e:function(e,t){for(var r,o,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e),i=r.__d),i)return r.__E=r}catch(a){e=a}throw e},__v:0},O.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},r),this.props)),e&&b(r,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},O.prototype.render=N,t=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,j.__r=0;var $={};function U(e,t){for(var r in t)e[r]=t[r];return e}function q(e,t,r){var o,i=/(?:\?([^#]*))?(#.*)?$/,a=e.match(i),n={};if(a&&a[1])for(var s=a[1].split("&"),c=0;c<s.length;c++){var l=s[c].split("=");n[decodeURIComponent(l[0])]=decodeURIComponent(l.slice(1).join("="))}e=W(e.replace(i,"")),t=W(t||"");for(var d=Math.max(e.length,t.length),m=0;m<d;m++)if(t[m]&&":"===t[m].charAt(0)){var _=t[m].replace(/(^:|[+*?]+$)/g,""),p=(t[m].match(/[+*?]+$/)||$)[0]||"",u=~p.indexOf("+"),f=~p.indexOf("*"),h=e[m]||"";if(!h&&!f&&(p.indexOf("?")<0||u)){o=!1;break}if(n[_]=decodeURIComponent(h),u||f){n[_]=e.slice(m).map(decodeURIComponent).join("/");break}}else if(t[m]!==e[m]){o=!1;break}return(!0===r.default||!1!==o)&&n}function Z(e,t){return e.rank<t.rank?1:e.rank>t.rank?-1:e.index-t.index}function H(e,t){return e.index=t,e.rank=function(e){return e.props.default?0:(t=e.props.path,W(t).map(X).join(""));var t}(e),e.props}function W(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function X(e){return":"==e.charAt(0)?1+"*+?".indexOf(e.charAt(e.length-1))||4:5}var Y=null,J=[],K=[],G={};function V(){var e;return""+((e=Y&&Y.location?Y.location:Y&&Y.getCurrentLocation?Y.getCurrentLocation():"undefined"!=typeof location?location:G).pathname||"")+(e.search||"")}function Q(e,t){return void 0===t&&(t=!1),"string"!=typeof e&&e.url&&(t=e.replace,e=e.url),function(e){for(var t=J.length;t--;)if(J[t].canRoute(e))return!0;return!1}(e)&&function(e,t){void 0===t&&(t="push"),Y&&Y[t]?Y[t](e):"undefined"!=typeof history&&history[t+"State"]&&history[t+"State"](null,null,e)}(e,t?"replace":"push"),ee(e)}function ee(e){for(var t=!1,r=0;r<J.length;r++)!0===J[r].routeTo(e)&&(t=!0);for(var o=K.length;o--;)K[o](e);return t}function te(e){if(e&&e.getAttribute){var t=e.getAttribute("href"),r=e.getAttribute("target");if(t&&t.match(/^\//g)&&(!r||r.match(/^_?self$/i)))return Q(t)}}function re(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button))return te(e.currentTarget||e.target||this),oe(e)}function oe(e){return e&&(e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.stopPropagation&&e.stopPropagation(),e.preventDefault()),!1}function ie(e){if(!(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||0!==e.button)){var t=e.target;do{if("A"===String(t.nodeName).toUpperCase()&&t.getAttribute("href")){if(t.hasAttribute("native"))return;if(te(t))return oe(e)}}while(t=t.parentNode)}}var ae=!1;var ne=function(e){function t(t){e.call(this,t),t.history&&(Y=t.history),this.state={url:t.url||V()},ae||("function"==typeof addEventListener&&(Y||addEventListener("popstate",(function(){ee(V())})),addEventListener("click",ie)),ae=!0)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.shouldComponentUpdate=function(e){return!0!==e.static||(e.url!==this.props.url||e.onChange!==this.props.onChange)},t.prototype.canRoute=function(e){var t=P(this.props.children);return this.getMatchingChildren(t,e,!1).length>0},t.prototype.routeTo=function(e){this.setState({url:e});var t=this.canRoute(e);return this.updating||this.forceUpdate(),t},t.prototype.componentWillMount=function(){J.push(this),this.updating=!0},t.prototype.componentDidMount=function(){var e=this;Y&&(this.unlisten=Y.listen((function(t){e.routeTo(""+(t.pathname||"")+(t.search||""))}))),this.updating=!1},t.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),J.splice(J.indexOf(this),1)},t.prototype.componentWillUpdate=function(){this.updating=!0},t.prototype.componentDidUpdate=function(){this.updating=!1},t.prototype.getMatchingChildren=function(e,t,r){return e.filter(H).sort(Z).map((function(e){var o=q(t,e.props.path,e.props);if(o){if(!1!==r){var i={url:t,matches:o};return U(i,o),delete i.ref,delete i.key,function(e,t,r){var o,i,a,n=arguments,s=b({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>3)for(r=[r],a=3;a<arguments.length;a++)r.push(n[a]);return null!=r&&(s.children=r),y(e.type,s,o||e.key,i||e.ref,null)}(e,i)}return e}})).filter(Boolean)},t.prototype.render=function(e,t){var r=e.children,o=e.onChange,i=t.url,a=this.getMatchingChildren(P(r),i,!0),n=a[0]||null,s=this.previousUrl;return i!==s&&(this.previousUrl=i,"function"==typeof o&&o({router:this,url:i,previous:s,active:a,current:n})),n},t}(O),se=function(e){return v("a",U({onClick:re},e))};ne.subscribers=K,ne.getCurrentUrl=V,ne.route=Q,ne.Router=ne,ne.Route=function(e){return v(e.component,e)},ne.Link=se,ne.exec=q;var ce,le,de,me=0,_e=[],pe=e.__b,ue=e.__r,fe=e.diffed,he=e.__c,be=e.unmount;function ge(t,r){e.__h&&e.__h(le,t,me||r),me=0;var o=le.__H||(le.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({}),o.__[t]}function ve(e){return me=1,function(e,t,r){var o=ge(ce++,2);return o.t=e,o.__c||(o.__=[r?r(t):Ce(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=le),o.__}(Ce,e)}function ye(t,r){var o=ge(ce++,3);!e.__s&&Pe(o.__H,r)&&(o.__=t,o.__H=r,le.__H.__h.push(o))}function Ne(e){return me=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var r=ge(ce++,7);return Pe(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ke(e,t){return me=8,Oe((function(){return e}),t)}function we(e){var t=ge(ce++,10),r=ve();return t.__=e,le.componentDidCatch||(le.componentDidCatch=function(e){t.__&&t.__(e),r[1](e)}),[r[0],function(){r[1](void 0)}]}function xe(){_e.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(Se),t.__H.__h.forEach(Me),t.__H.__h=[]}catch(r){t.__H.__h=[],e.__e(r,t.__v)}})),_e=[]}e.__b=function(e){le=null,pe&&pe(e)},e.__r=function(e){ue&&ue(e),ce=0;var t=(le=e.__c).__H;t&&(t.__h.forEach(Se),t.__h.forEach(Me),t.__h=[])},e.diffed=function(t){fe&&fe(t);var r=t.__c;r&&r.__H&&r.__H.__h.length&&(1!==_e.push(r)&&de===e.requestAnimationFrame||((de=e.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(o),je&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(r,100);je&&(t=requestAnimationFrame(r))})(xe)),le=void 0},e.__c=function(t,r){r.some((function(t){try{t.__h.forEach(Se),t.__h=t.__h.filter((function(e){return!e.__||Me(e)}))}catch(o){r.some((function(e){e.__h&&(e.__h=[])})),r=[],e.__e(o,t.__v)}})),he&&he(t,r)},e.unmount=function(t){be&&be(t);var r=t.__c;if(r&&r.__H)try{r.__H.__.forEach(Se)}catch(o){e.__e(o,r.__v)}};var je="function"==typeof requestAnimationFrame;function Se(e){var t=le;"function"==typeof e.__c&&e.__c(),le=t}function Me(e){var t=le;e.__c=e.__(),le=t}function Pe(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function Ce(e,t){return"function"==typeof t?t(e):t}var Le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Be={},ze={},Re={};Object.defineProperty(Re,"__esModule",{value:!0}),Re.ModelPath=Re.Path=Re.relativePath=void 0,Re.relativePath=function(e,t){return t.reduce(((e,t)=>"pop"===t?e.pop():e.push(t.push)),e)};class Ae{constructor(e,t){this.modelArr=null!=e?e:[],this.contextArr=null!=t?t:[]}last(){return this.modelArr[this.modelArr.length-1]}slice(e,t){return new Ae(this.modelArr.slice(e,t),this.contextArr)}shift(){return new Ae(this.modelArr.slice(1),this.contextArr)}pop(){return new Ae(this.modelArr.slice(0,-1),this.contextArr)}push(e){return this.modelPush(e).contextPush(e)}modelPush(e){return new Ae([...this.modelArr,e],[...this.contextArr])}contextPush(e){if("number"==typeof e)return this.copy();const t=e.startsWith("minecraft:")?e.slice(10):e;return new Ae([...this.modelArr],[...this.contextArr,t])}copy(){return new Ae([...this.modelArr],[...this.contextArr])}getArray(){return this.modelArr}withModel(e){return new Ie(e,this)}getContext(){return this.contextArr}equals(e){return e.modelArr.length===this.modelArr.length&&e.modelArr.every(((e,t)=>e===this.modelArr[t]))}startsWith(e){return!(this.modelArr.length<e.modelArr.length)&&e.modelArr.every(((e,t)=>e===this.modelArr[t]))}endsWith(e){const t=this.modelArr.length-e.modelArr.length;return!(t<0)&&e.modelArr.every(((e,r)=>e===this.modelArr[t+r]))}toString(){return this.modelArr.map((e=>"string"==typeof e?`.${e}`:`[${e}]`)).join("").replace(/^\./,"")}forEach(e,t){return this.modelArr.forEach(e,t)}}Re.Path=Ae;class Ie extends Ae{constructor(e,t){super(null==t?void 0:t.modelArr,null==t?void 0:t.contextArr),this.model=e}getModel(){return this.model}get(){var e;return null===(e=this.model)||void 0===e?void 0:e.get(this)}set(e){var t;null===(t=this.model)||void 0===t||t.set(this,e)}slice(e,t){return new Ie(this.model,super.slice(e,t))}shift(){return new Ie(this.model,super.shift())}pop(){return new Ie(this.model,super.pop())}push(e){return this.modelPush(e).contextPush(e)}modelPush(e){return new Ie(this.model,super.modelPush(e))}contextPush(e){return new Ie(this.model,super.contextPush(e))}copy(){return new Ie(this.model,super.copy())}}Re.ModelPath=Ie;var Te={};Object.defineProperty(Te,"__esModule",{value:!0}),Te.Errors=void 0;class De{constructor(){this.errors=[]}add(e,t,...r){return this.errors.push({path:e,error:t,params:r}),!1}get(e,t=!1){return t?this.errors.filter((t=>t.path.equals(e))):this.errors.filter((t=>t.path.startsWith(e)))}getAll(){return this.errors}clear(){this.errors=[]}count(){return this.errors.length}*[Symbol.iterator](){for(const e of this.errors)yield e}}Te.Errors=De,Object.defineProperty(ze,"__esModule",{value:!0}),ze.DataModel=void 0;const Ee=Re,Fe=Te;ze.DataModel=class{constructor(e,t){var r;this.schema=e,this.data=e.default(),this.listeners=[],this.errors=new Fe.Errors,this.history=[JSON.stringify(this.data)],this.historyIndex=0,this.historyMax=null!==(r=null==t?void 0:t.historyMax)&&void 0!==r?r:50}addListener(e){this.listeners.push(e)}removeListener(e){const t=this.listeners.indexOf(e);t>-1&&this.listeners.splice(t,1)}invalidate(){const e=JSON.stringify(this.data);this.history[this.historyIndex]!==e&&(this.historyIndex+=1,this.history.splice(this.historyIndex,this.historyMax,e),this.history.length>this.historyMax&&(this.history.splice(0,1),this.historyIndex-=1)),this.silentInvalidate()}silentInvalidate(){this.listeners.forEach((e=>{e.invalidated&&e.invalidated(this),e.errors&&e.errors(this.errors)}))}reset(e,t){this.data=e,this.validate(t),this.invalidate()}get(e){let t=this.data;return e.forEach((e=>{if(void 0===t)return t;t=t[e]})),t}set(e,t,r){if(0===e.getArray().length)return void this.reset(t,!0);let o=this.data;e.pop().forEach((e=>{void 0!==o[e]&&"string"!=typeof o[e]&&"number"!=typeof o[e]||(o[e]={}),o=o[e]})),void 0===t||"number"==typeof t&&isNaN(t)?"number"==typeof e.last()?o.splice(e.last(),1):delete o[e.last()]:o[e.last()]=t,r||(console.log("Set",e.toString(),JSON.stringify(t)),this.validate(!0),this.invalidate())}undo(){this.historyIndex>0&&(this.historyIndex-=1,this.data=JSON.parse(this.history[this.historyIndex]),this.validate(!1),this.silentInvalidate())}redo(){this.historyIndex<this.history.length-1&&(this.historyIndex+=1,this.data=JSON.parse(this.history[this.historyIndex]),this.validate(!1),this.silentInvalidate())}validate(e){var t;const r=(new Ee.Path).withModel(this);this.errors.clear(),this.data=null!==(t=this.schema.validate(r,this.data,this.errors,{loose:e}))&&void 0!==t?t:{}}error(e,t,...r){const o=new Fe.Errors;o.add(e,t,r),this.listeners.forEach((e=>{e.errors&&e.errors(o)}))}};var $e,Ue={};$e=Ue,Object.defineProperty($e,"__esModule",{value:!0}),$e.Keep=$e.Opt=$e.Has=$e.Mod=$e.Base=void 0,$e.Base={type:()=>"base",category:()=>{},default:()=>{},enabled:()=>!0,keep:()=>!1,optional:()=>!1,navigate(){return this},pathPush:e=>e,suggest:()=>[],validate:(e,t)=>t,validationOption:()=>{},hook(e,t,...r){return e.base({node:this},t,...r)},canUpdate:()=>!1,update:()=>[]},$e.Mod=(e,t)=>m(m({},e),"function"==typeof t?t(e):t),$e.Has=(e,t)=>$e.Mod(t,{enabled:t=>void 0!==t.push(e).get()}),$e.Opt=function(e){return _(m({},e),{optional:()=>!0})},$e.Keep=function(e){return _(m({},e),{keep:()=>!0})};var qe={};Object.defineProperty(qe,"__esModule",{value:!0}),qe.BooleanNode=void 0;const Ze=Ue;qe.BooleanNode=()=>_(m({},Ze.Base),{type:()=>"boolean",default:()=>!1,suggest:()=>["false","true"],validate(e,t,r,o){return o.loose&&"boolean"!=typeof t&&(t=this.default()),"boolean"==typeof t&&void 0!==t||r.add(e,"error.expected_boolean"),t},hook(e,t,...r){var o;return(null!==(o=e.boolean)&&void 0!==o?o:e.base).call(e,{node:this},t,...r)}});var He={},We={};Object.defineProperty(We,"__esModule",{value:!0}),We.ListNode=void 0;const Xe=Ue;We.ListNode=(e,t)=>{var r,o;const i=null!==(r=null==t?void 0:t.minLength)&&void 0!==r?r:0,a=null!==(o=null==t?void 0:t.maxLength)&&void 0!==o?o:1/0,n=(null==t?void 0:t.minLength)&&(null==t?void 0:t.maxLength);return _(m({},Xe.Base),{type:()=>"list",default:()=>(null==t?void 0:t.minLength)?[...Array(i)].map((t=>e.default())):[],navigate(t,r){const o=r+1;return t.getArray().length<=o?this:e.navigate(t,o)},pathPush:(e,t)=>e.push(parseInt(t.toString())).contextPush("entry"),validate(t,r,o,s){return s.loose&&!Array.isArray(r)&&(r=this.default()),Array.isArray(r)?(n&&(r.length<i||r.length>a)?i===a?o.add(t,"error.invalid_list_range.exact",r.length,i):o.add(t,"error.invalid_list_range.between",r.length,i,a):r.length<i?o.add(t,"error.invalid_list_range.smaller",r.length,i):r.length>a&&o.add(t,"error.invalid_list_range.larger",r.length,a),r.map(((r,i)=>e.validate(t.push(i),r,o,s)))):(o.add(t,"error.expected_list"),r)},hook(r,o,...i){var a;return(null!==(a=r.list)&&void 0!==a?a:r.base).call(r,{node:this,children:e,config:null!=t?t:{}},o,...i)}})};var Ye={};Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.SwitchNode=void 0;const Je=Ue;Ye.SwitchNode=e=>_(m({},Je.Base),{type(e){return this.activeCase(e,!0).node.type(e)},category(e){return this.activeCase(e,!0).node.category(e)},default:()=>e[0].node.default(),navigate(e,t){var r;const o=t+1;return null===(r=this.activeCase(e.slice(0,o)))||void 0===r?void 0:r.node.navigate(e,t)},pathPush(e,t){var r,o;return null!==(o=null===(r=this.activeCase(e))||void 0===r?void 0:r.node.pathPush(e,t))&&void 0!==o?o:e},suggest(t,r){var o,i;return null!==(i=null===(o=this.activeCase(t))||void 0===o?void 0:o.node.suggest(t,r))&&void 0!==i?i:e.filter((e=>e.match(t))).map((e=>e.node.suggest(t,r))).reduce(((e,t)=>e.concat(t)))},validate(e,t,r,o){let i=this.activeCase(e);return void 0===i?t:i.node.validate(e,t,r,o)},validationOption(e){var t;return null===(t=this.activeCase(e))||void 0===t?void 0:t.node.validationOption(e)},activeCase(t,r){const o=(e,t)=>{var r,o;return(null!==(r=t.priority)&&void 0!==r?r:0)-(null!==(o=e.priority)&&void 0!==o?o:0)},i=e.filter((e=>e.match(t))).sort(o);return r&&0===i.length?e.sort(o)[0]:i.length>0?i[0]:void 0},hook(e,t,...r){return this.activeCase(t,!0).node.hook(e,t,...r)}}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectOrPreset=e.StringOrList=e.ObjectOrList=e.ChoiceNode=void 0;const t=We,r=Ye;e.ChoiceNode=(e,t)=>{const o=r.SwitchNode(e.map((e=>({type:e.type,priority:e.priority,match:t=>((e,t)=>{if(e.match)return e.match(t);switch(e.type){case"list":return Array.isArray(t);case"object":return"object"==typeof t&&!Array.isArray(t);default:return typeof t===e.type}})(e,t.get()),node:e.node}))));return _(m({},o),{validate(e,t,r,i){let a=o.activeCase(e,!0);return a.node.optional()?t:a.node.validate(e,t,r,i)},hook(r,i,...a){var n;return(null!==(n=r.choice)&&void 0!==n?n:r.base).call(r,{node:this,choices:e,config:null!=t?t:{},switchNode:o},i,...a)}})};const o=r=>(o,i)=>e.ChoiceNode([{type:r,node:o,change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:o.default()}},{type:"list",node:t.ListNode(o),change:e=>e?[e]:[]}],i);e.ObjectOrList=o("object"),e.StringOrList=o("string"),e.ObjectOrPreset=(t,r,o)=>e.ChoiceNode([{type:"string",priority:1,node:t,change:e=>Object.keys(o)[0]},{type:"object",node:r,change:e=>{var t;return null!==(t=o[e])&&void 0!==t?t:o[Object.keys(o)[0]]}}])}(He);var Ke={};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.MapNode=void 0;const Ge=Ue;Ke.MapNode=(e,t,r)=>_(m({},Ge.Base),{type:()=>"map",default:()=>({}),navigate(e,r){const o=r+1;return e.getArray().length<=o?this:t.navigate(e,o)},pathPush:(e,t)=>e.modelPush(t),suggest:t=>e.suggest(t,""),validate(r,o,i,a){if(a.loose&&"object"!=typeof o&&(o=this.default()),null===o||"object"!=typeof o)return i.add(r,"error.expected_object"),o;let n={};return Object.keys(o).forEach((s=>{e.validate(r,s,i,a),n[s]=t.validate(r.push(s),o[s],i,a)})),n},validationOption(t){var o;return null!==(o=null==r?void 0:r.validation)&&void 0!==o?o:e.validationOption(t.push(""))},hook(o,i,...a){var n;return(null!==(n=o.map)&&void 0!==n?n:o.base).call(o,{node:this,keys:e,children:t,config:null!=r?r:{}},i,...a)}});var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.NumberNode=void 0;const Qe=Ue;Ve.NumberNode=e=>{var t,r,o;const i=!!(null==e?void 0:e.color)||null!==(t=null==e?void 0:e.integer)&&void 0!==t&&t,a=(null==e?void 0:e.color)?0:null!==(r=null==e?void 0:e.min)&&void 0!==r?r:-1/0,n=(null==e?void 0:e.color)?16777215:null!==(o=null==e?void 0:e.max)&&void 0!==o?o:1/0,s=void 0!==(null==e?void 0:e.min)&&void 0!==(null==e?void 0:e.max);return _(m({},Qe.Base),{type:()=>"number",default:()=>a>0?a:0,validate(e,t,r,o){return o.loose&&"number"!=typeof t&&(t=this.default()),"number"!=typeof t?r.add(e,"error.expected_number"):i&&!Number.isInteger(t)?r.add(e,"error.expected_integer"):s&&(t<a||t>n)?r.add(e,"error.invalid_number_range.between",t,a,n):t<a?r.add(e,"error.invalid_number_range.smaller",t,a):t>n&&r.add(e,"error.invalid_number_range.larger",t,n),t},hook(t,r,...o){var c;return(null!==(c=t.number)&&void 0!==c?c:t.base).call(t,{node:this,integer:i,min:a,max:n,between:s,config:null!=e?e:{}},r,...o)}})};var et={},tt={};function rt(e){return e.replace(/(\\|")/g,"\\$1")}Object.defineProperty(tt,"__esModule",{value:!0}),tt.quoteString=tt.escapeString=void 0,tt.escapeString=rt,tt.quoteString=function(e){return`"${rt(e)}"`},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=e.Case=e.Switch=void 0;const t=Ue,r=Re,o=Te,i=tt;e.Switch=Symbol("switch"),e.Case=Symbol("case"),e.ObjectNode=(a,n)=>{var d,u;const f=a,{[d=e.Switch]:h,[u=e.Case]:b}=f,g=((e,t)=>{var r={};for(var o in e)c.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&s)for(var o of s(e))t.indexOf(o)<0&&l.call(e,o)&&(r[o]=e[o]);return r})(f,[p(d),p(u)]),v=e=>{if(void 0===h)return g;const t=r.relativePath(e,h).get(),o=b[t];return m(m({},g),o)},y=(e,t)=>{var o;const i=h?r.relativePath(e,h).get():void 0,a=h&&null!==(o=b[i])&&void 0!==o?o:{},s=Object.keys(a),c=(null==n?void 0:n.context)?new r.ModelPath(e.getModel(),new r.Path(e.getArray(),[n.context])):e;return(!(null==n?void 0:n.disableSwitchContext)&&i&&s.includes(t)?c.contextPush(i):c).push(t)};return _(m({},t.Base),{type:()=>"object",category:()=>null==n?void 0:n.category,default:()=>({}),keep(){return this.optional()},navigate(e,t){const r=t+1,o=e.getArray();if(o.length<=r)return this;const i=v(e.slice(0,r))[o[r]];return null==i?void 0:i.navigate(e,r)},pathPush:(e,t)=>y(e,t.toString()),suggest(e,t){const r=v(e),o=Object.keys("object"==typeof t?t:{});return Object.keys(r).filter((t=>r[t].enabled(e))).filter((e=>!o.includes(e))).map(i.quoteString)},validate(e,t,i,a){if(a.loose&&"object"!=typeof t&&(t=this.default()),"object"!=typeof t)return i.add(e,"error.expected_object"),t;let n=g;if(h){const i=r.relativePath(e,h);let s=i.get();if(e.equals(i.pop())){const r=i.last();s=g[r].validate(e.push(r),t[r],new o.Errors,a)}n=m(m({},n),b[s])}const s=Object.keys(n),c=s.filter((e=>!n[e].optional())),l=new Set([...c,...Object.keys(t)]);let d={};return l.forEach((r=>{if(s.includes(r)){if(!n[r].enabled(e))return;const o=n[r].validate(e.push(r),t[r],i,a);!n[r].keep()&&n[r].optional()&&(void 0===o||Array.isArray(o)&&0===o.length||o.constructor===Object&&0===Object.keys(o).length)?d[r]=void 0:(d[r]=o,e.getModel().set(e.push(r),o,!0))}else d[r]=t[r]})),d},hook(e,t,...r){var o;return(null!==(o=e.object)&&void 0!==o?o:e.base).call(e,{node:this,fields:g,filter:h,cases:b,getActiveFields:v,getChildModelPath:y},t,...r)}})}}(et);var ot={};Object.defineProperty(ot,"__esModule",{value:!0}),ot.Reference=void 0,ot.Reference=(e,t)=>({type(r){return e.get(t).type.bind(this)(r)},category(r){return e.get(t).category.bind(this)(r)},default(){return e.get(t).default.bind(this)()},transform:(r,o)=>e.get(t).transform(r,o),enabled(r){return e.get(t).enabled.bind(this)(r)},keep(){return e.get(t).keep.bind(this)()},optional(){return e.get(t).optional.bind(this)()},navigate(r,o){return e.get(t).navigate.bind(this)(r,o)},pathPush(r,o){return e.get(t).pathPush.bind(this)(r,o)},suggest(r,o){return e.get(t).suggest.bind(this)(r,o)},validate(r,o,i,a){return e.get(t).validate.bind(this)(r,o,i,a)},validationOption(r){return e.get(t).validationOption.bind(this)(r)},hook(r,o,...i){return e.get(t).hook.bind(this)(r,o,...i)},activeCase(r,o){return e.get(t).activeCase.bind(this)(r,o)},canUpdate(r,o){return e.get(t).canUpdate.bind(this)(r,o)},update(r,o){return e.get(t).update.bind(this)(r,o)}});var it={};Object.defineProperty(it,"__esModule",{value:!0}),it.StringNode=void 0;const at=Ue,nt=tt,st=e=>{var t;return!!(null===(t=e)||void 0===t?void 0:t.enum)},ct=e=>{var t;return!!(null===(t=e)||void 0===t?void 0:t.validator)};it.StringNode=(e,t)=>{const r=st(t)?"string"==typeof t.enum?()=>{var r;return null!==(r=null==e?void 0:e.get(t.enum))&&void 0!==r?r:[]}:()=>t.enum:"resource"===(null==t?void 0:t.validator)?"string"==typeof t.params.pool?t.params.pool.startsWith("$")?()=>{var r;return null!==(r=null==e?void 0:e.get(t.params.pool.slice(1)))&&void 0!==r?r:[]}:()=>{var r;return null!==(r=null==e?void 0:e.get(t.params.pool))&&void 0!==r?r:[]}:()=>t.params.pool:()=>[];return _(m({},at.Base),{type:()=>"string",default:()=>"",validate(e,o,i,a){if(a.loose&&"string"!=typeof o&&(o=this.default()||void 0),"string"!=typeof o)return i.add(e,"error.expected_string"),o;if(ct(t)&&("resource"===t.validator&&o.length>0&&!o.includes(":")&&(o="#"===o[0]?"#minecraft:"+o.slice(1):"minecraft:"+o),"resource"===t.validator&&("string"==typeof t.params.pool&&t.params.pool.startsWith("$")||t.params.allowTag&&"#"===o[0]||t.params.isDefinition||t.params.allowUnknown)))return o;if(st(t)&&t.additional)return o;const n=r();return n.length>0&&!n.includes(o)&&i.add(e,"error.invalid_enum_option",o),o},suggest:()=>r().map(nt.quoteString),validationOption:()=>ct(t)?t:void 0,hook(e,o,...i){var a;return(null!==(a=e.string)&&void 0!==a?a:e.base).call(e,{node:this,getValues:r,config:t},o,...i)}})};var lt={};Object.defineProperty(lt,"__esModule",{value:!0});var dt={};Object.defineProperty(dt,"__esModule",{value:!0}),dt.CollectionRegistry=dt.SchemaRegistry=void 0;dt.SchemaRegistry=class{constructor(){this.registry={}}register(e,t){this.registry[e]=t}get(e){const t=this.registry[e];return void 0===t&&console.error(`Tried to access schema "${e}", but that doesn't exist.`),t}};dt.CollectionRegistry=class{constructor(){this.registry={}}register(e,t){this.registry[e]=t}get(e){const t=this.registry[e];return void 0===t&&console.warn(`Tried to access collection "${e}", but that doesn't exist.`),null!=t?t:[]}};var mt={};Object.defineProperty(mt,"__esModule",{value:!0}),function(e){var t=Le&&Le.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),r=Le&&Le.__exportStar||function(e,r){for(var o in e)"default"===o||r.hasOwnProperty(o)||t(r,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(ze,e),r(Re,e),r(Te,e),r(Ue,e),r(qe,e),r(He,e),r(We,e),r(Ke,e),r(Ve,e),r(et,e),r(ot,e),r(it,e),r(Ye,e),r(lt,e),r(dt,e),r(mt,e)}(Be);var _t={},pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.initCollections=void 0,pt.initCollections=function(e){e.register("advancement_trigger",["minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_hurt_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:shot_crossbow","minecraft:safely_harvest_honey","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:summoned_entity","minecraft:tame_animal","minecraft:tick","minecraft:used_ender_eye","minecraft:used_totem","minecraft:villager_trade","minecraft:voluntary_exile"]),e.register("loot_pool_entry_type",["minecraft:empty","minecraft:item","minecraft:tag","minecraft:loot_table","minecraft:alternatives","minecraft:sequence","minecraft:group","minecraft:dynamic"]),e.register("loot_condition_type",["minecraft:alternative","minecraft:inverted","minecraft:reference","minecraft:entity_properties","minecraft:block_state_property","minecraft:match_tool","minecraft:damage_source_properties","minecraft:location_check","minecraft:weather_check","minecraft:time_check","minecraft:entity_scores","minecraft:random_chance","minecraft:random_chance_with_looting","minecraft:table_bonus","minecraft:killed_by_player","minecraft:survives_explosion"]),e.register("loot_function_type",["minecraft:set_count","minecraft:set_damage","minecraft:set_name","minecraft:set_lore","minecraft:set_nbt","minecraft:set_attributes","minecraft:set_contents","minecraft:enchant_randomly","minecraft:enchant_with_levels","minecraft:looting_enchant","minecraft:limit_count","minecraft:furnace_smelt","minecraft:explosion_decay","minecraft:fill_player_head","minecraft:copy_name","minecraft:copy_nbt","minecraft:copy_state","minecraft:apply_bonus","minecraft:exploration_map","minecraft:set_stew_effect"]),e.register("attribute",["generic.maxHealth","generic.followRange","generic.knockbackResistance","generic.movementSpeed","generic.attackDamage","generic.armor","generic.armorToughness","generic.attackSpeed","generic.luck","horse.jumpStrength","generic.attackKnockback","generic.flyingSpeed","zombie.spawnReinforcements"]),e.register("structure_feature",["pillager_outpost","mineshaft","mansion","jungle_pyramid","desert_pyramid","igloo","shipwreck","swamp_hut","stronghold","monument","ocean_ruin","fortress","endcity","buried_treasure","village"]),e.register("dimension",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),e.register("slot",["mainhand","offhand","head","chest","legs","feet"]),e.register("gamemode",["survival","creative","adventure","spectator"]),e.register("entity_source",["this","direct_killer","killer","killer_player"]),e.register("copy_source",["block_entity","this","killer","killer_player"]),e.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),e.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),e.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),e.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"])};var ut={},ft={},ht={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.Range=e.ConditionCases=void 0;const t=Be;e.initCommonSchemas=function(r,o){const i=t.StringNode.bind(void 0,o),a=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),r.register("fluid_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(i(),i()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),r.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0})),{default:()=>[0,0,0]})),e.Range=e=>t.ChoiceNode([...(null==e?void 0:e.forceRange)?[]:[{type:"number",node:t.NumberNode(e),change:e=>{var t,r,o;return void 0===e?0:null!==(o=null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:e.n)&&void 0!==o?o:0}}],{type:"object",priority:-1,node:t.ObjectNode({min:(null==e?void 0:e.bounds)?t.NumberNode(e):t.Opt(t.NumberNode(e)),max:(null==e?void 0:e.bounds)?t.NumberNode(e):t.Opt(t.NumberNode(e))},{context:"range"}),change:e=>({min:"number"==typeof e?e:void 0===e?1:e.n,max:"number"==typeof e?e:void 0===e?1:e.n})},...(null==e?void 0:e.allowBinomial)?[{type:"binomial",node:t.ObjectNode({type:i({enum:["minecraft:binomial"]}),n:t.NumberNode({integer:!0,min:0}),p:t.NumberNode({min:0,max:1})},{context:"range"}),match:e=>void 0!==e&&"minecraft:binomial"===e.type,change:e=>{var t,r;return{type:"minecraft:binomial",n:"number"==typeof e?e:void 0===e?1:null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:1,p:.5}}}]:[]],{choiceContext:"range"}),e.ConditionCases={"minecraft:alternative":{terms:t.ListNode(a("condition"))},"minecraft:block_state_property":{block:i({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:a("damage_source_predicate")},"minecraft:entity_properties":{entity:i({enum:"entity_source"}),predicate:a("entity_predicate")},"minecraft:entity_scores":{entity:i({enum:"entity_source"}),scores:t.MapNode(i({validator:"objective"}),e.Range({forceRange:!0,bounds:!0}))},"minecraft:inverted":{term:a("condition")},"minecraft:killed_by_player":{inverse:t.Opt(t.BooleanNode())},"minecraft:location_check":{offsetX:t.Opt(t.NumberNode({integer:!0})),offsetY:t.Opt(t.NumberNode({integer:!0})),offsetZ:t.Opt(t.NumberNode({integer:!0})),predicate:a("location_predicate")},"minecraft:match_tool":{predicate:a("item_predicate")},"minecraft:random_chance":{chance:t.NumberNode({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:t.NumberNode({min:0,max:1}),looting_multiplier:t.NumberNode()},"minecraft:requirements":{terms:t.ListNode(a("condition"))},"minecraft:reference":{name:i({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),chances:t.ListNode(t.NumberNode({min:0,max:1}))},"minecraft:time_check":{value:e.Range(),period:t.Opt(t.NumberNode())},"minecraft:weather_check":{raining:t.Opt(t.BooleanNode()),thundering:t.Opt(t.BooleanNode())}}}}(ht);var bt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initPredicatesSchemas=e.LocationFields=void 0;const t=Be,r=ht;e.initPredicatesSchemas=function(o,i){const a=t.Reference.bind(void 0,o),n=t.StringNode.bind(void 0,i),s=t.ChoiceNode([{type:"string",node:n(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:t.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:t.ObjectNode({min:t.Opt(t.NumberNode({integer:!0})),max:t.Opt(t.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:t.BooleanNode(),change:e=>"true"===e||1===e}]);o.register("item_predicate",t.ObjectNode({item:t.Opt(n({validator:"resource",params:{pool:"item"}})),tag:t.Opt(n({validator:"resource",params:{pool:"$tag/item"}})),count:t.Opt(r.Range()),durability:t.Opt(r.Range()),potion:t.Opt(n({validator:"resource",params:{pool:"potion"}})),nbt:t.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:t.Opt(t.ListNode(a("enchantment_predicate")))},{context:"item"})),o.register("enchantment_predicate",t.ObjectNode({enchantment:t.Opt(n({validator:"resource",params:{pool:"enchantment"}})),levels:t.Opt(r.Range())},{context:"enchantment"})),o.register("block_predicate",t.ObjectNode({block:t.Opt(n({validator:"resource",params:{pool:"block"}})),tag:t.Opt(n({validator:"resource",params:{pool:"$tag/block"}})),nbt:t.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:t.Opt(t.MapNode(n(),s,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),o.register("fluid_predicate",t.ObjectNode({fluid:t.Opt(n({validator:"resource",params:{pool:"fluid"}})),tag:t.Opt(n({validator:"resource",params:{pool:"$tag/fluid"}})),state:t.Opt(t.MapNode(n(),s))},{context:"fluid"})),e.LocationFields={position:t.Opt(t.ObjectNode({x:t.Opt(r.Range()),y:t.Opt(r.Range()),z:t.Opt(r.Range())})),biome:t.Opt(n({enum:"biome"})),feature:t.Opt(n({enum:"structure_feature"})),dimension:t.Opt(n({enum:"dimension"})),light:t.Opt(t.ObjectNode({light:t.Opt(r.Range({integer:!0,min:0,max:15}))})),block:t.Opt(a("block_predicate")),fluid:t.Opt(a("fluid_predicate"))},o.register("location_predicate",t.ObjectNode(e.LocationFields,{context:"location"})),o.register("statistic_predicate",t.ObjectNode({type:n({validator:"resource",params:{pool:"stat_type"}}),stat:n(),value:r.Range(),[t.Switch]:[{push:"type"}],[t.Case]:{"minecraft:mined":{stat:n({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:n({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:n({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:n({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:n({validator:"resource",params:{pool:"custom_stat"}})}}})),o.register("player_predicate",t.ObjectNode({gamemode:t.Opt(n({enum:"gamemode"})),level:t.Opt(r.Range()),advancements:t.Opt(t.MapNode(n({validator:"resource",params:{pool:"$advancement"}}),t.ChoiceNode([{type:"boolean",node:t.BooleanNode(),change:e=>!0},{type:"object",node:t.MapNode(n(),t.BooleanNode())}]))),recipes:t.Opt(t.MapNode(n({validator:"resource",params:{pool:"$recipe"}}),t.BooleanNode())),stats:t.Opt(t.ListNode(a("statistic_predicate")))},{context:"player"})),o.register("status_effect_predicate",t.ObjectNode({amplifier:t.Opt(r.Range()),duration:t.Opt(r.Range()),ambient:t.Opt(t.BooleanNode()),visible:t.Opt(t.BooleanNode())},{context:"status_effect"})),o.register("distance_predicate",t.ObjectNode({x:t.Opt(r.Range()),y:t.Opt(r.Range()),z:t.Opt(r.Range()),absolute:t.Opt(r.Range()),horizontal:t.Opt(r.Range())},{context:"distance"})),o.register("entity_predicate",t.ObjectNode({type:t.Opt(n({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:t.Opt(n({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:t.Opt(n({validator:"team"})),location:t.Opt(a("location_predicate")),distance:t.Opt(a("distance_predicate")),flags:t.Opt(t.ObjectNode({is_on_fire:t.Opt(t.BooleanNode()),is_sneaking:t.Opt(t.BooleanNode()),is_sprinting:t.Opt(t.BooleanNode()),is_swimming:t.Opt(t.BooleanNode()),is_baby:t.Opt(t.BooleanNode())})),equipment:t.Opt(t.MapNode(n({enum:"slot"}),a("item_predicate"))),player:t.Opt(a("player_predicate")),effects:t.Opt(t.MapNode(n({validator:"resource",params:{pool:"mob_effect"}}),a("status_effect_predicate")))},{context:"entity"})),o.register("damage_source_predicate",t.ObjectNode({is_explosion:t.Opt(t.BooleanNode()),is_fire:t.Opt(t.BooleanNode()),is_magic:t.Opt(t.BooleanNode()),is_projectile:t.Opt(t.BooleanNode()),is_lightning:t.Opt(t.BooleanNode()),bypasses_armor:t.Opt(t.BooleanNode()),bypasses_invulnerability:t.Opt(t.BooleanNode()),bypasses_magic:t.Opt(t.BooleanNode()),source_entity:t.Opt(a("entity_predicate")),direct_entity:t.Opt(a("entity_predicate"))},{context:"damage_source"})),o.register("damage_predicate",t.ObjectNode({dealt:t.Opt(r.Range()),taken:t.Opt(r.Range()),blocked:t.Opt(t.BooleanNode()),source_entity:t.Opt(a("entity_predicate")),type:t.Opt(a("damage_source_predicate"))},{context:"damage"}))}}(bt),Object.defineProperty(ft,"__esModule",{value:!0}),ft.initAdvancementSchemas=void 0;const gt=Be,vt=ht,yt=bt;ft.initAdvancementSchemas=function(e,t){const r=gt.Reference.bind(void 0,e),o=gt.StringNode.bind(void 0,t);e.register("advancement",gt.Mod(gt.ObjectNode({display:gt.Opt(gt.Mod(gt.ObjectNode({icon:gt.ObjectNode({item:o({validator:"resource",params:{pool:"item"}}),nbt:gt.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:gt.Opt(o()),frame:gt.Opt(o({enum:["task","challenge","goal"]})),show_toast:gt.Opt(gt.BooleanNode()),announce_to_chat:gt.Opt(gt.BooleanNode()),hidden:gt.Opt(gt.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:gt.Opt(o({validator:"resource",params:{pool:"$advancement"}})),criteria:gt.MapNode(o(),r("advancement_criteria")),requirements:gt.Opt(gt.ListNode(gt.ListNode(o()))),rewards:gt.Opt(gt.ObjectNode({function:gt.Opt(o({validator:"resource",params:{pool:"$function"}})),loot:gt.Opt(gt.ListNode(o({validator:"resource",params:{pool:"$loot_table"}}))),recipes:gt.Opt(gt.ListNode(o({validator:"resource",params:{pool:"$recipe"}}))),experience:gt.Opt(gt.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",gt.ObjectNode({trigger:o({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:gt.Opt(gt.ObjectNode({[gt.Switch]:["pop",{push:"trigger"}],[gt.Case]:{"minecraft:bee_nest_destroyed":{block:gt.Opt(o({validator:"resource",params:{pool:"block"}})),num_bees_inside:gt.Opt(gt.NumberNode({integer:!0})),item:gt.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:gt.Opt(r("entity_predicate")),partner:gt.Opt(r("entity_predicate")),child:gt.Opt(r("entity_predicate"))},"minecraft:brewed_potion":{potion:gt.Opt(o({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:gt.Opt(o({enum:"dimension"})),to:gt.Opt(o({enum:"dimension"}))},"minecraft:channeled_lightning":{victims:gt.Opt(gt.ListNode(gt.Opt(r("entity_predicate"))))},"minecraft:construct_beacon":{level:gt.Opt(vt.Range())},"minecraft:consume_item":{item:gt.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:gt.Opt(r("entity_predicate")),zombie:gt.Opt(r("entity_predicate"))},"minecraft:effects_changed":{effects:gt.Opt(gt.MapNode(o({validator:"resource",params:{pool:"mob_effect"}}),gt.ObjectNode({amplifier:vt.Range(),duration:vt.Range()})))},"minecraft:enter_block":{block:gt.Opt(o({validator:"resource",params:{pool:"block"}})),state:gt.Opt(gt.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:gt.Opt(vt.Range()),item:gt.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:gt.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:gt.Opt(r("entity_predicate")),killing_blow:gt.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:gt.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:gt.Opt(r("entity_predicate")),item:gt.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":yt.LocationFields,"minecraft:inventory_changed":{slots:gt.Opt(gt.ObjectNode({empty:gt.Opt(vt.Range()),occupied:gt.Opt(vt.Range()),full:gt.Opt(vt.Range())})),items:gt.Opt(gt.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:gt.Opt(vt.Range()),durability:gt.Opt(vt.Range()),item:gt.Opt(r("item_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:gt.Opt(vt.Range()),victims:gt.Opt(gt.ListNode(gt.Opt(r("entity_predicate"))))},"minecraft:levitation":{distance:gt.Opt(vt.Range()),duration:gt.Opt(vt.Range())},"minecraft:location":yt.LocationFields,"minecraft:nether_travel":{distance:gt.Opt(vt.Range()),entered:gt.Opt(r("location_predicate")),exited:gt.Opt(r("location_predicate"))},"minecraft:placed_block":{block:gt.Opt(o({validator:"resource",params:{pool:"block"}})),state:gt.Opt(gt.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:gt.Opt(r("item_predicate")),location:gt.Opt(r("location_predicate"))},"minecraft:player_hurt_entity":{damage:gt.Opt(r("damage_predicate")),entity:gt.Opt(r("entity_predicate"))},"minecraft:player_killed_entity":{entity:gt.Opt(r("entity_predicate")),killing_blow:gt.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:o({validator:"resource",params:{pool:"$recipe"}})},"minecraft:safely_harvest_honey":{block:gt.Opt(gt.ObjectNode({block:gt.Opt(o({validator:"resource",params:{pool:"block"}})),tag:gt.Opt(o({validator:"resource",params:{pool:"$tag/block"}}))})),item:gt.Opt(r("item_predicate"))},"minecraft:slept_in_bed":yt.LocationFields,"minecraft:slide_down_block":{block:gt.Opt(o({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:gt.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:gt.Opt(r("entity_predicate"))},"minecraft:tame_animal":{entity:gt.Opt(r("entity_predicate"))},"minecraft:used_ender_eye":{distance:gt.Opt(vt.Range())},"minecraft:used_totem":{item:gt.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:gt.Opt(r("entity_predicate")),item:gt.Opt(r("item_predicate"))},"minecraft:voluntary_exile":yt.LocationFields}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.initConditionSchemas=void 0;const Ot=Be,kt=ht;Nt.initConditionSchemas=function(e,t){const r=Ot.Reference.bind(void 0,e),o=Ot.StringNode.bind(void 0,t);e.register("predicate",Ot.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",Ot.Mod(Ot.ObjectNode({condition:o({validator:"resource",params:{pool:"loot_condition_type"}}),[Ot.Switch]:[{push:"condition"}],[Ot.Case]:kt.ConditionCases},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var wt={},xt={};Object.defineProperty(xt,"__esModule",{value:!0}),xt.LootFunctions=xt.LootConditions=xt.LootCopySources=xt.LootEntitySources=xt.LootTableTypes=void 0,xt.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]),xt.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),xt.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),xt.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]),xt.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]),Object.defineProperty(wt,"__esModule",{value:!0}),wt.initLootTableSchemas=void 0;const jt=Be,St=xt,Mt=ht;wt.initLootTableSchemas=function(e,t){const r=jt.Reference.bind(void 0,e),o=jt.StringNode.bind(void 0,t),i={conditions:jt.Opt(jt.ListNode(r("loot_condition")))},a=m({functions:jt.Opt(jt.ListNode(r("loot_function")))},i);function n(e,r,o){const i=[],a=o=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>o.includes(e)))}));for(const[t,{allows:n,requires:s}]of St.LootTableTypes){const e=[...n,...s];i.push({match:e=>e.getModel().get(new jt.Path(["type"]))===t,node:o(a(e))})}return i.push({match:e=>!0,node:o(r)}),jt.SwitchNode(i)}const s=n(St.LootConditions,"loot_condition_type",(e=>o({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),c=n(St.LootFunctions,"loot_function_type",(e=>o({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),l=n(St.LootEntitySources,"entity_source",(e=>o({enum:e}))),d=n(St.LootCopySources,"copy_source",(e=>o({enum:e})));e.register("loot_table",jt.Mod(jt.ObjectNode({type:jt.Opt(o({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:jt.Opt(jt.ListNode(jt.Mod(jt.ObjectNode(m({rolls:Mt.Range({allowBinomial:!0,integer:!0}),bonus_rolls:jt.Opt(Mt.Range({integer:!0})),entries:jt.ListNode(r("loot_entry"))},a),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:jt.Opt(jt.ListNode(r("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const p={enabled:e=>{var t;return(null===(t=e.pop().get())||void 0===t?void 0:t.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(e.push("type").get())}};e.register("loot_entry",jt.Mod(jt.ObjectNode({type:o({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:jt.Opt(jt.Mod(jt.NumberNode({integer:!0,min:1}),p)),quality:jt.Opt(jt.Mod(jt.NumberNode({integer:!0}),p)),[jt.Switch]:[{push:"type"}],[jt.Case]:{"minecraft:alternatives":m({children:jt.ListNode(r("loot_entry"))},a),"minecraft:dynamic":m({name:o()},a),"minecraft:group":m({children:jt.ListNode(r("loot_entry"))},a),"minecraft:item":m({name:o({validator:"resource",params:{pool:"item"}})},a),"minecraft:loot_table":m({name:o({validator:"resource",params:{pool:"$loot_table"}})},a),"minecraft:sequence":m({children:jt.ListNode(r("loot_entry"))},a),"minecraft:tag":m({name:o({validator:"resource",params:{pool:"$tag/item"}}),expand:jt.Opt(jt.BooleanNode())},a)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",jt.Mod(jt.ObjectNode({function:c,[jt.Switch]:[{push:"function"}],[jt.Case]:{"minecraft:apply_bonus":m({enchantment:o({validator:"resource",params:{pool:"enchantment"}}),formula:o({validator:"resource",params:{pool:t.get("loot_table_apply_bonus_formula")}}),parameters:jt.Mod(jt.ObjectNode({bonusMultiplier:jt.Mod(jt.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:jt.Mod(jt.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:jt.Mod(jt.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()})}),{enabled:e=>"minecraft:ore_drops"!==e.push("formula").get()})},i),"minecraft:copy_name":m({source:d},i),"minecraft:copy_nbt":m({source:d,ops:jt.ListNode(jt.ObjectNode({source:o({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:o({validator:"nbt_path",params:{category:"minecraft:item"}}),op:o({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},i),"minecraft:copy_state":m({block:o({validator:"resource",params:{pool:"block"}}),properties:jt.ListNode(o({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},i),"minecraft:enchant_randomly":m({enchantments:jt.Opt(jt.ListNode(o({validator:"resource",params:{pool:"enchantment"}})))},i),"minecraft:enchant_with_levels":m({levels:Mt.Range({allowBinomial:!0}),treasure:jt.Opt(jt.BooleanNode())},i),"minecraft:exploration_map":m({destination:jt.Opt(o({enum:"structure_feature"})),decoration:jt.Opt(o({enum:"map_decoration"})),zoom:jt.Opt(jt.NumberNode({integer:!0})),search_radius:jt.Opt(jt.NumberNode({integer:!0})),skip_existing_chunks:jt.Opt(jt.BooleanNode())},i),"minecraft:fill_player_head":m({entity:l},i),"minecraft:limit_count":m({limit:Mt.Range({bounds:!0})},i),"minecraft:looting_enchant":m({count:Mt.Range({bounds:!0}),limit:jt.Opt(jt.NumberNode({integer:!0}))},i),"minecraft:set_attributes":m({modifiers:jt.ListNode(r("attribute_modifier"))},i),"minecraft:set_contents":m({entries:jt.ListNode(r("loot_entry"))},i),"minecraft:set_count":m({count:Mt.Range({allowBinomial:!0})},i),"minecraft:set_damage":m({damage:Mt.Range({forceRange:!0})},i),"minecraft:set_loot_table":{name:o({validator:"resource",params:{pool:"$loot_table"}}),seed:jt.Opt(jt.NumberNode({integer:!0}))},"minecraft:set_lore":m({entity:jt.Opt(l),lore:jt.ListNode(r("text_component")),replace:jt.Opt(jt.BooleanNode())},i),"minecraft:set_name":m({entity:jt.Opt(l),name:jt.Opt(r("text_component"))},i),"minecraft:set_nbt":m({tag:o({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},i),"minecraft:set_stew_effect":m({effects:jt.Opt(jt.ListNode(jt.ObjectNode({type:o({validator:"resource",params:{pool:"mob_effect"}}),duration:Mt.Range()})))},i)}},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",jt.Mod(jt.ObjectNode({condition:s,[jt.Switch]:[{push:"condition"}],[jt.Case]:_(m({},Mt.ConditionCases),{"minecraft:entity_properties":{entity:l,predicate:r("entity_predicate")},"minecraft:entity_scores":{entity:l,scores:jt.MapNode(o({validator:"objective"}),Mt.Range({bounds:!0}))}})},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",jt.Mod(jt.ObjectNode({attribute:o({validator:"resource",params:{pool:"attribute"}}),name:o(),amount:Mt.Range({bounds:!0}),operation:o({enum:["addition","multiply_base","multiply_total"]}),slot:jt.StringOrList(o({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.initPackMcmetaSchemas=void 0;const Ct=Be;Pt.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",Ct.Mod(Ct.ObjectNode({pack:Ct.Mod(Ct.ObjectNode({pack_format:Ct.Mod(Ct.NumberNode({integer:!0,min:5,max:5}),{default:()=>5}),description:Ct.Reference(e,"text_component")}),{default:()=>({pack_format:5,description:""})})}),{default:()=>({pack:{pack_format:5,description:""}})}))};var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.initRecipeSchemas=void 0;const Bt=Be;Lt.initRecipeSchemas=function(e,t){const r=Bt.Reference.bind(void 0,e),o=Bt.StringNode.bind(void 0,t);e.register("recipe",Bt.Mod(Bt.ObjectNode({type:o({validator:"resource",params:{pool:"recipe_serializer"}}),[Bt.Switch]:[{push:"type"}],[Bt.Case]:{"minecraft:crafting_shaped":{group:Bt.Opt(o({enum:"recipe_group",additional:!0})),pattern:Bt.ListNode(o()),key:Bt.MapNode(o(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Bt.Opt(o()),ingredients:Bt.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Bt.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Bt.Opt(Bt.NumberNode()),cookingtime:Bt.Opt(Bt.Mod(Bt.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Bt.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Bt.Opt(Bt.NumberNode()),cookingtime:Bt.Opt(Bt.Mod(Bt.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Bt.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Bt.Opt(Bt.NumberNode()),cookingtime:Bt.Opt(Bt.Mod(Bt.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Bt.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Bt.Opt(Bt.NumberNode()),cookingtime:Bt.Opt(Bt.Mod(Bt.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Bt.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),count:Bt.NumberNode({integer:!0})},"minecraft:smithing":{group:Bt.Opt(o()),base:r("recipe_ingredient_object"),addition:r("recipe_ingredient_object"),result:r("recipe_result")}}},{context:"recipe"}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Bt.Mod(Bt.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Bt.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Bt.Mod(Bt.ObjectNode({item:Bt.Opt(o({validator:"resource",params:{pool:"item"}})),tag:Bt.Opt(o({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Bt.Mod(Bt.ObjectNode({item:o({validator:"resource",params:{pool:"item"}}),count:Bt.Opt(Bt.Mod(Bt.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt.initTagsSchemas=void 0;const Rt=Be;zt.initTagsSchemas=function(e,t){const r=Rt.StringNode.bind(void 0,t),o=e=>Rt.Mod(Rt.ObjectNode({replace:Rt.Opt(Rt.BooleanNode()),values:Rt.ListNode(Rt.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Rt.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Rt.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",o("block")),e.register("entity_type_tag",o("entity_type")),e.register("fluid_tag",o("fluid")),e.register("function_tag",o("$function")),e.register("item_tag",o("item"))};var At={};Object.defineProperty(At,"__esModule",{value:!0}),At.initTextComponentSchemas=void 0;const It=Be;At.initTextComponentSchemas=function(e,t){const r=It.Reference.bind(void 0,e),o=It.StringNode.bind(void 0,t),i=e=>{var t;return e instanceof Array?i(e[0]):null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"object"==typeof e?"":null==e?void 0:e.toString()};e.register("text_component",It.Mod(It.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:i(e[0])}:"object"==typeof e?e:{text:i(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:o(),change:i},{type:"number",node:It.NumberNode(),change:e=>{const t=parseFloat(i(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:It.BooleanNode(),change:e=>{const t=i(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const a={bold:It.Opt(It.BooleanNode()),italic:It.Opt(It.BooleanNode()),underlined:It.Opt(It.BooleanNode()),strikethrough:It.Opt(It.BooleanNode()),obfuscated:It.Opt(It.BooleanNode()),insertion:It.Opt(o()),clickEvent:It.Opt(It.ObjectNode({action:o({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[It.Switch]:[{push:"action"}],[It.Case]:{change_page:{value:o()},copy_to_clipboard:{value:o()},open_file:{value:o()},open_url:{value:o()},run_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:It.Opt(It.ObjectNode({action:o({enum:["show_text","show_item","show_entity"]}),[It.Switch]:[{push:"action"}],[It.Case]:{show_text:{value:It.Opt(r("text_component"))},show_item:{value:It.Opt(o({validator:"nbt",params:{module:"util::InventoryItem"}}))},show_entity:{value:It.Opt(It.ObjectNode({name:It.Opt(o()),type:It.Opt(o()),id:It.Opt(o())}))}}})),extra:It.Opt(r("text_component_list"))};e.register("text_component_object",It.Mod(It.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:It.ObjectNode(m({text:o()},a))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:It.ObjectNode(m({translate:o(),with:It.Opt(r("text_component_list"))},a))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:It.ObjectNode(m({score:It.ObjectNode({name:o({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:o({validator:"objective"}),value:It.Opt(o())})},a))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:It.ObjectNode(m({selector:o({validator:"entity",params:{amount:"multiple",type:"entities"}})},a))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:It.ObjectNode(m({keybind:o({enum:"keybind",additional:!0})},a))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:It.ObjectNode(m({nbt:o({validator:"nbt_path"}),block:It.Opt(o({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:It.Opt(o({validator:"entity",params:{amount:"single",type:"entities"}})),storage:It.Opt(o({validator:"resource",params:{pool:"$storage"}})),interpret:It.Opt(It.BooleanNode())},a))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",It.Mod(It.ListNode(r("text_component")),{default:()=>[{text:""}]}))},Object.defineProperty(ut,"__esModule",{value:!0}),ut.initSchemas=void 0;const Tt=ft,Dt=ht,Et=Nt,Ft=wt,$t=Pt,Ut=bt,qt=Lt,Zt=zt,Ht=At;ut.initSchemas=function(e,t){Dt.initCommonSchemas(e,t),Ut.initPredicatesSchemas(e,t),Tt.initAdvancementSchemas(e,t),Et.initConditionSchemas(e,t),Ft.initLootTableSchemas(e,t),$t.initPackMcmetaSchemas(e,t),qt.initRecipeSchemas(e,t),Zt.initTagsSchemas(e,t),Ht.initTextComponentSchemas(e,t)};var Wt=Le&&Le.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),Xt=Le&&Le.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Yt=Le&&Le.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&Wt(t,e,r);return Xt(t,e),t};Object.defineProperty(_t,"__esModule",{value:!0});var Jt=_t.getSchemas=_t.getCollections=_t.lootContext=void 0;const Kt=Be,Gt=pt,Vt=ut;var Qt=_t.lootContext=Yt(xt);var er=_t.getCollections=function(){const e=new Kt.CollectionRegistry;return Gt.initCollections(e),e};Jt=_t.getSchemas=function(e){const t=new Kt.SchemaRegistry;return Vt.initSchemas(t,e),t};var tr=Object.freeze(Object.assign(Object.create(null),_t,{[Symbol.toStringTag]:"Module",get getSchemas(){return Jt},get getCollections(){return er},get lootContext(){return Qt},default:_t})),rr={},or={};Object.defineProperty(or,"__esModule",{value:!0}),or.initCollections=void 0,or.initCollections=function(e){e.register("advancement_trigger",["minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:item_used_on_block","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_generates_container_loot","minecraft:player_hurt_entity","minecraft:player_interacted_with_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:shot_crossbow","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:summoned_entity","minecraft:tame_animal","minecraft:target_hit","minecraft:tick","minecraft:thrown_item_picked_up_by_entity","minecraft:used_ender_eye","minecraft:used_totem","minecraft:villager_trade","minecraft:voluntary_exile"]),e.register("dimension",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("dimension_type",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),e.register("slot",["mainhand","offhand","head","chest","legs","feet"]),e.register("gamemode",["survival","creative","adventure","spectator"]),e.register("worldgen/noise_settings",["minecraft:overworld","minecraft:nether","minecraft:end","minecraft:amplified","minecraft:caves","minecraft:floating_islands"]),e.register("entity_source",["this","direct_killer","killer","killer_player"]),e.register("copy_source",["block_entity","this","killer","killer_player"]),e.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),e.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),e.register("map_feature",["bastion_remnant","buried_treasure","desert_pyramid","endcity","fortress","igloo","jungle_pyramid","mansion","mineshaft","monument","nether_fossil","ocean_ruin","pillager_outpost","ruined_portal","shipwreck","stronghold","swamp_hut","village"]),e.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),e.register("worldgen/configured_feature",["minecraft:acacia","minecraft:bamboo_light","minecraft:bamboo_vegetation","minecraft:bamboo","minecraft:basalt_blobs","minecraft:basalt_pillar","minecraft:birch_bees_0002","minecraft:birch_bees_002","minecraft:birch_bees_005","minecraft:birch_other","minecraft:birch_tall","minecraft:birch","minecraft:blackstone_blobs","minecraft:blue_ice","minecraft:bonus_chest","minecraft:brown_mushroom_giant","minecraft:brown_mushroom_nether","minecraft:brown_mushroom_normal","minecraft:brown_mushroom_swamp","minecraft:brown_mushroom_taiga","minecraft:chorus_plant","minecraft:crimson_forest_vegetation","minecraft:crimson_fungi_planted","minecraft:crimson_fungi","minecraft:dark_forest_vegetation_brown","minecraft:dark_forest_vegetation_red","minecraft:dark_oak","minecraft:delta","minecraft:desert_well","minecraft:disk_clay","minecraft:disk_gravel","minecraft:disk_sand","minecraft:end_gateway_delayed","minecraft:end_gateway","minecraft:end_island_decorated","minecraft:end_island","minecraft:end_spike","minecraft:fancy_oak_bees_0002","minecraft:fancy_oak_bees_002","minecraft:fancy_oak_bees_005","minecraft:fancy_oak","minecraft:flower_default","minecraft:flower_forest","minecraft:flower_plain_decorated","minecraft:flower_plain","minecraft:flower_swamp","minecraft:flower_warm","minecraft:forest_flower_trees","minecraft:forest_flower_vegetation_common","minecraft:forest_flower_vegetation","minecraft:forest_rock","minecraft:fossil","minecraft:freeze_top_layer","minecraft:glowstone_extra","minecraft:glowstone","minecraft:huge_brown_mushroom","minecraft:huge_red_mushroom","minecraft:ice_patch","minecraft:ice_spike","minecraft:iceberg_blue","minecraft:iceberg_packed","minecraft:jungle_bush","minecraft:jungle_tree_no_vine","minecraft:jungle_tree","minecraft:kelp_cold","minecraft:kelp_warm","minecraft:lake_lava","minecraft:lake_water","minecraft:large_basalt_columns","minecraft:mega_jungle_tree","minecraft:mega_pine","minecraft:mega_spruce","minecraft:monster_room","minecraft:mushroom_field_vegetation","minecraft:nether_sprouts","minecraft:oak_badlands","minecraft:oak_bees_0002","minecraft:oak_bees_002","minecraft:oak_bees_005","minecraft:oak","minecraft:ore_andesite","minecraft:ore_blackstone","minecraft:ore_coal","minecraft:ore_debris_large","minecraft:ore_debris_small","minecraft:ore_diamond","minecraft:ore_diorite","minecraft:ore_dirt","minecraft:ore_emerald","minecraft:ore_gold_deltas","minecraft:ore_gold_extra","minecraft:ore_gold_nether","minecraft:ore_gold","minecraft:ore_granite","minecraft:ore_gravel_nether","minecraft:ore_gravel","minecraft:ore_infested","minecraft:ore_iron","minecraft:ore_lapis","minecraft:ore_magma","minecraft:ore_quartz_deltas","minecraft:ore_quartz_nether","minecraft:ore_redstone","minecraft:ore_soul_sand","minecraft:patch_berry_bush","minecraft:patch_berry_decorated","minecraft:patch_berry_sparse","minecraft:patch_brown_mushroom","minecraft:patch_cactus_decorated","minecraft:patch_cactus_desert","minecraft:patch_cactus","minecraft:patch_crimson_roots","minecraft:patch_dead_bush_2","minecraft:patch_dead_bush_badlands","minecraft:patch_dead_bush","minecraft:patch_fire","minecraft:patch_grass_badlands","minecraft:patch_grass_forest","minecraft:patch_grass_jungle","minecraft:patch_grass_normal","minecraft:patch_grass_plain","minecraft:patch_grass_savanna","minecraft:patch_grass_taiga_2","minecraft:patch_grass_taiga","minecraft:patch_large_fern","minecraft:patch_melon","minecraft:patch_pumpkin","minecraft:patch_red_mushroom","minecraft:patch_soul_fire","minecraft:patch_sugar_cane_badlands","minecraft:patch_sugar_cane_desert","minecraft:patch_sugar_cane_swamp","minecraft:patch_sugar_cane","minecraft:patch_sunflower","minecraft:patch_taiga_grass","minecraft:patch_tall_grass_2","minecraft:patch_tall_grass","minecraft:patch_waterlilly","minecraft:pile_hay","minecraft:pile_ice","minecraft:pile_melon","minecraft:pile_pumpkin","minecraft:pile_snow","minecraft:pine","minecraft:plain_vegetation","minecraft:red_mushroom_giant","minecraft:red_mushroom_nether","minecraft:red_mushroom_normal","minecraft:red_mushroom_swamp","minecraft:red_mushroom_taiga","minecraft:sea_pickle","minecraft:seagrass_cold","minecraft:seagrass_deep_cold","minecraft:seagrass_deep_warm","minecraft:seagrass_deep","minecraft:seagrass_normal","minecraft:seagrass_river","minecraft:seagrass_simple","minecraft:seagrass_swamp","minecraft:seagrass_warm","minecraft:small_basalt_columns","minecraft:spring_closed_double","minecraft:spring_closed","minecraft:spring_delta","minecraft:spring_lava_double","minecraft:spring_lava","minecraft:spring_open","minecraft:spring_water","minecraft:spruce_snowy","minecraft:spruce","minecraft:super_birch_bees_0002","minecraft:swamp_tree","minecraft:taiga_vegetation","minecraft:trees_birch","minecraft:trees_giant_spruce","minecraft:trees_giant","minecraft:trees_jungle_edge","minecraft:trees_jungle","minecraft:trees_mountain_edge","minecraft:trees_mountain","minecraft:trees_savanna","minecraft:trees_shattered_savanna","minecraft:trees_water","minecraft:twisting_vines","minecraft:vines","minecraft:void_start_platform","minecraft:warm_ocean_vegetation","minecraft:warped_forest_vegetation","minecraft:warped_fungi_planted","minecraft:warped_fungi","minecraft:weeping_vines"]),e.register("worldgen/configured_structure_feature",["minecraft:bastion_remnant","minecraft:buried_treasure","minecraft:desert_pyramid","minecraft:end_city","minecraft:fortress","minecraft:igloo","minecraft:jungle_pyramid","minecraft:mansion","minecraft:mineshaft_mesa","minecraft:mineshaft","minecraft:monument","minecraft:nether_fossil","minecraft:ocean_ruin_cold","minecraft:ocean_ruin_warm","minecraft:pillager_outpost","minecraft:ruined_portal_desert","minecraft:ruined_portal_jungle","minecraft:ruined_portal_mountain","minecraft:ruined_portal_nether","minecraft:ruined_portal_ocean","minecraft:ruined_portal_swamp","minecraft:ruined_portal","minecraft:shipwreck_beached","minecraft:shipwreck","minecraft:stronghold","minecraft:swamp_hut","minecraft:village_desert","minecraft:village_plains","minecraft:village_savanna","minecraft:village_snowy","minecraft:village_taiga"]),e.register("worldgen/configured_surface_builder",["minecraft:badlands","minecraft:basalt_deltas","minecraft:crimson_forest","minecraft:desert","minecraft:end","minecraft:eroded_badlands","minecraft:frozen_ocean","minecraft:full_sand","minecraft:giant_tree_taiga","minecraft:grass","minecraft:gravelly_mountain","minecraft:ice_spikes","minecraft:mountain","minecraft:mycelium","minecraft:nether","minecraft:nope","minecraft:ocean_sand","minecraft:shattered_savanna","minecraft:soul_sand_valley","minecraft:stone","minecraft:swamp","minecraft:warped_forest","minecraft:wooded_badlands"]),e.register("biome_category",["beach","desert","extreme_hills","forest","icy","jungle","mesa","mushroom","nether","none","ocean","plains","river","savanna","swamp","taiga","the_end"]),e.register("heightmap_type",["MOTION_BLOCKING","MOTION_BLOCKING_NO_LEAVES","OCEAN_FLOOR","OCEAN_FLOOR_WG","WORLD_SURFACE","WORLD_SURFACE_WG"]),e.register("generation_step",["air","liquid"]),e.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"])};var ir={},ar={},nr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.UniformInt=e.Range=e.NoiseSettingsPresets=e.DefaultNoiseSettings=e.DimensionTypePresets=e.DefaultDimensionType=e.ConditionCases=void 0;const t=Be;e.DefaultDimensionType={ultrawarm:!1,natural:!0,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!0,has_raids:!0,has_skylight:!0,has_ceiling:!1,coordinate_scale:1,ambient_light:0,logical_height:256,infiniburn:"minecraft:infiniburn_overworld"},e.DefaultNoiseSettings={name:"minecraft:overworld",bedrock_roof_position:-10,bedrock_floor_position:0,sea_level:63,disable_mob_generation:!1,noise:{density_factor:1,density_offset:-.46875,simplex_surface_noise:!0,random_density_offset:!0,size_horizontal:1,size_vertical:2,height:256,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-10,size:3,offset:0},bottom_slide:{target:-30,size:0,offset:0}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},e.initCommonSchemas=function(r,o){const i=t.StringNode.bind(void 0,o),a=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),r.register("fluid_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(i(),i()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),r.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]})),e.Range=e=>t.ChoiceNode([...(null==e?void 0:e.forceRange)?[]:[{type:"number",node:t.NumberNode(e),change:e=>{var t,r,o;return void 0===e?0:null!==(o=null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:e.n)&&void 0!==o?o:0}}],{type:"object",priority:-1,node:t.ObjectNode({min:(null==e?void 0:e.bounds)?t.NumberNode(e):t.Opt(t.NumberNode(e)),max:(null==e?void 0:e.bounds)?t.NumberNode(e):t.Opt(t.NumberNode(e))},{context:"range"}),change:e=>({min:"number"==typeof e?e:void 0===e?1:e.n,max:"number"==typeof e?e:void 0===e?1:e.n})},...(null==e?void 0:e.allowBinomial)?[{type:"binomial",node:t.ObjectNode({type:i({enum:["minecraft:binomial"]}),n:t.NumberNode({integer:!0,min:0}),p:t.NumberNode({min:0,max:1})},{context:"range"}),match:e=>void 0!==e&&"minecraft:binomial"===e.type,change:e=>{var t,r;return{type:"minecraft:binomial",n:"number"==typeof e?e:void 0===e?1:null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:1,p:.5}}}]:[]],{choiceContext:"range"}),e.UniformInt=e=>t.ChoiceNode([{type:"number",node:t.NumberNode({integer:!0,min:null==e?void 0:e.min,max:null==e?void 0:e.max}),change:e=>e.base},{type:"object",node:t.ObjectNode({base:t.NumberNode({integer:!0,min:null==e?void 0:e.min,max:null==e?void 0:e.max}),spread:t.NumberNode({integer:!0,min:0,max:null==e?void 0:e.maxSpread})}),change:e=>({base:e,spread:0})}],{context:"uniform_int"}),e.ConditionCases={"minecraft:alternative":{terms:t.ListNode(a("condition"))},"minecraft:block_state_property":{block:i({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:a("damage_source_predicate")},"minecraft:entity_properties":{entity:i({enum:"entity_source"}),predicate:a("entity_predicate")},"minecraft:entity_scores":{entity:i({enum:"entity_source"}),scores:t.MapNode(i({validator:"objective"}),e.Range({forceRange:!0}))},"minecraft:inverted":{term:a("condition")},"minecraft:killed_by_player":{inverse:t.Opt(t.BooleanNode())},"minecraft:location_check":{offsetX:t.Opt(t.NumberNode({integer:!0})),offsetY:t.Opt(t.NumberNode({integer:!0})),offsetZ:t.Opt(t.NumberNode({integer:!0})),predicate:a("location_predicate")},"minecraft:match_tool":{predicate:a("item_predicate")},"minecraft:random_chance":{chance:t.NumberNode({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:t.NumberNode({min:0,max:1}),looting_multiplier:t.NumberNode()},"minecraft:reference":{name:i({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),chances:t.ListNode(t.NumberNode({min:0,max:1}))},"minecraft:time_check":{value:e.Range(),period:t.Opt(t.NumberNode())},"minecraft:weather_check":{raining:t.Opt(t.BooleanNode()),thundering:t.Opt(t.BooleanNode())}},e.DimensionTypePresets=r=>t.ObjectOrPreset(i({validator:"resource",params:{pool:"$dimension_type"}}),r,{"minecraft:overworld":e.DefaultDimensionType,"minecraft:the_nether":{name:"minecraft:the_nether",ultrawarm:!0,natural:!1,shrunk:!0,piglin_safe:!0,respawn_anchor_works:!0,bed_works:!1,has_raids:!1,has_skylight:!1,has_ceiling:!0,ambient_light:.1,fixed_time:18e3,logical_height:128,effects:"minecraft:the_nether",infiniburn:"minecraft:infiniburn_nether"},"minecraft:the_end":{name:"minecraft:the_end",ultrawarm:!1,natural:!1,shrunk:!1,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!1,has_raids:!0,has_skylight:!1,has_ceiling:!1,ambient_light:0,fixed_time:6e3,logical_height:256,effects:"minecraft:the_end",infiniburn:"minecraft:infiniburn_end"}}),e.NoiseSettingsPresets=r=>t.ObjectOrPreset(i({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),r,{"minecraft:overworld":e.DefaultNoiseSettings,"minecraft:nether":{name:"minecraft:nether",bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,disable_mob_generation:!0,noise:{density_factor:0,density_offset:.019921875,simplex_surface_noise:!1,random_density_offset:!1,size_horizontal:1,size_vertical:2,height:128,sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},top_slide:{target:120,size:3,offset:0},bottom_slide:{target:320,size:4,offset:-1}},default_block:{Name:"minecraft:netherrack"},default_fluid:{Name:"minecraft:lava",Properties:{level:"0"}}},"minecraft:end":{name:"minecraft:end",bedrock_roof_position:-10,bedrock_floor_position:-10,sea_level:0,disable_mob_generation:!0,noise:{density_factor:0,density_offset:0,simplex_surface_noise:!0,random_density_offset:!1,island_noise_override:!0,size_horizontal:2,size_vertical:1,height:128,sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-3e3,size:64,offset:-46},bottom_slide:{target:-30,size:7,offset:1}},default_block:{Name:"minecraft:end_stone"},default_fluid:{Name:"minecraft:air"}},"minecraft:amplified":{name:"minecraft:amplified",bedrock_roof_position:-10,bedrock_floor_position:0,sea_level:63,disable_mob_generation:!1,noise:{density_factor:1,density_offset:-.46875,simplex_surface_noise:!0,random_density_offset:!0,amplified:!0,size_horizontal:1,size_vertical:2,height:256,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-10,size:3,offset:0},bottom_slide:{target:-30,size:0,offset:0}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},"minecraft:caves":{name:"minecraft:caves",bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,disable_mob_generation:!0,noise:{density_factor:0,density_offset:.019921875,simplex_surface_noise:!1,random_density_offset:!1,size_horizontal:1,size_vertical:2,height:128,sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},top_slide:{target:120,size:3,offset:0},bottom_slide:{target:320,size:4,offset:-1}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},"minecraft:floating_islands":{name:"minecraft:floating_islands",bedrock_roof_position:-10,bedrock_floor_position:-10,sea_level:0,disable_mob_generation:!0,noise:{density_factor:0,density_offset:0,simplex_surface_noise:!0,random_density_offset:!1,island_noise_override:!0,size_horizontal:2,size_vertical:1,height:128,sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-3e3,size:64,offset:-46},bottom_slide:{target:-30,size:7,offset:1}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}}})}}(nr),Object.defineProperty(ar,"__esModule",{value:!0}),ar.initAdvancementSchemas=void 0;const sr=Be,cr=nr;ar.initAdvancementSchemas=function(e,t){const r=sr.Reference.bind(void 0,e),o=sr.StringNode.bind(void 0,t),i=sr.ChoiceNode([{type:"object",node:sr.Opt(r("entity_predicate")),change:e=>{var t,r;return null!==(r=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==r?r:{}}},{type:"list",node:sr.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",sr.Mod(sr.ObjectNode({display:sr.Opt(sr.Mod(sr.ObjectNode({icon:sr.ObjectNode({item:o({validator:"resource",params:{pool:"item"}}),nbt:sr.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:sr.Opt(o()),frame:sr.Opt(o({enum:["task","challenge","goal"]})),show_toast:sr.Opt(sr.BooleanNode()),announce_to_chat:sr.Opt(sr.BooleanNode()),hidden:sr.Opt(sr.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:sr.Opt(o({validator:"resource",params:{pool:"$advancement"}})),criteria:sr.MapNode(o(),r("advancement_criteria")),requirements:sr.Opt(sr.ListNode(sr.ListNode(o()))),rewards:sr.Opt(sr.ObjectNode({function:sr.Opt(o({validator:"resource",params:{pool:"$function"}})),loot:sr.Opt(sr.ListNode(o({validator:"resource",params:{pool:"$loot_table"}}))),recipes:sr.Opt(sr.ListNode(o({validator:"resource",params:{pool:"$recipe"}}))),experience:sr.Opt(sr.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",sr.ObjectNode({trigger:o({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:sr.Opt(sr.ObjectNode({player:sr.Mod(i,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[sr.Switch]:["pop",{push:"trigger"}],[sr.Case]:{"minecraft:bee_nest_destroyed":{block:sr.Opt(o({validator:"resource",params:{pool:"block"}})),num_bees_inside:sr.Opt(sr.NumberNode({integer:!0})),item:sr.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:i,partner:i,child:i},"minecraft:brewed_potion":{potion:sr.Opt(o({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:sr.Opt(o({validator:"resource",params:{pool:"$dimension"}})),to:sr.Opt(o({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:sr.Opt(sr.ListNode(i))},"minecraft:construct_beacon":{level:sr.Opt(cr.Range())},"minecraft:consume_item":{item:sr.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:i,zombie:i},"minecraft:effects_changed":{effects:sr.Opt(sr.MapNode(o({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},"minecraft:enter_block":{block:sr.Opt(o({validator:"resource",params:{pool:"block"}})),state:sr.Opt(sr.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:sr.Opt(cr.Range()),item:sr.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:sr.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:i,killing_blow:sr.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:sr.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:i,item:sr.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:sr.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:sr.Opt(sr.ObjectNode({empty:sr.Opt(cr.Range()),occupied:sr.Opt(cr.Range()),full:sr.Opt(cr.Range())})),items:sr.Opt(sr.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:sr.Opt(cr.Range()),durability:sr.Opt(cr.Range()),item:sr.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:sr.Opt(r("item_predicate")),location:sr.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:sr.Opt(cr.Range()),victims:sr.Opt(sr.ListNode(i))},"minecraft:levitation":{distance:sr.Opt(cr.Range()),duration:sr.Opt(cr.Range())},"minecraft:location":{location:sr.Opt(r("location_predicate"))},"minecraft:nether_travel":{distance:sr.Opt(cr.Range()),entered:sr.Opt(r("location_predicate")),exited:sr.Opt(r("location_predicate"))},"minecraft:placed_block":{block:sr.Opt(o({validator:"resource",params:{pool:"block"}})),state:sr.Opt(sr.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:sr.Opt(r("item_predicate")),location:sr.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:o({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:sr.Opt(r("damage_predicate")),entity:i},"minecraft:player_interacted_with_entity":{item:sr.Opt(r("item_predicate")),entity:i},"minecraft:player_killed_entity":{entity:i,killing_blow:sr.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:o({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:sr.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:sr.Opt(o({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:sr.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:i},"minecraft:tame_animal":{entity:i},"minecraft:target_hit":{projectile:i,shooter:i,signal_strength:sr.Opt(cr.Range({integer:!0}))},"minecraft:thrown_item_picked_up_by_entity":{entity:sr.Opt(r("entity_predicate")),item:sr.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:sr.Opt(cr.Range())},"minecraft:used_totem":{item:sr.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:sr.Opt(r("entity_predicate")),item:sr.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:r("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var lr={};Object.defineProperty(lr,"__esModule",{value:!0}),lr.initConditionSchemas=void 0;const dr=Be,mr=nr;lr.initConditionSchemas=function(e,t){const r=dr.Reference.bind(void 0,e),o=dr.StringNode.bind(void 0,t);e.register("predicate",dr.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",dr.Mod(dr.ObjectNode({condition:o({validator:"resource",params:{pool:"loot_condition_type"}}),[dr.Switch]:[{push:"condition"}],[dr.Case]:mr.ConditionCases},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var _r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.initDimensionSchemas=void 0;const pr=Be,ur=nr;_r.initDimensionSchemas=function(e,t){const r=pr.Reference.bind(void 0,e),o=pr.StringNode.bind(void 0,t),i=e=>pr.Mod(e,{enabled:e=>void 0===e.push("preset").get()});e.register("dimension",pr.Mod(pr.ObjectNode({type:ur.DimensionTypePresets(r("dimension_type")),generator:pr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[pr.Switch]:[{push:"type"}],[pr.Case]:{"minecraft:noise":{seed:pr.NumberNode({integer:!0}),settings:ur.NoiseSettingsPresets(r("noise_settings")),biome_source:pr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/biome_source"}}),[pr.Switch]:[{push:"type"}],[pr.Case]:{"minecraft:fixed":{biome:o({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{seed:pr.NumberNode({integer:!0}),preset:pr.Opt(o({enum:["nether"]})),altitude_noise:i(r("generator_biome_noise")),temperature_noise:i(r("generator_biome_noise")),humidity_noise:i(r("generator_biome_noise")),weirdness_noise:i(r("generator_biome_noise")),biomes:i(pr.Mod(pr.ListNode(r("generator_biome")),{default:()=>[{biome:"minecraft:plains"}]}))},"minecraft:checkerboard":{scale:pr.Opt(pr.NumberNode({integer:!0,min:0,max:62})),biomes:pr.ListNode(o({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:pr.NumberNode({integer:!0})},"minecraft:vanilla_layered":{seed:pr.NumberNode({integer:!0}),large_biomes:pr.Opt(pr.BooleanNode()),legacy_biome_init_layer:pr.Opt(pr.BooleanNode())}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:pr.ObjectNode({biome:pr.Opt(o({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:pr.Opt(pr.BooleanNode()),features:pr.Opt(pr.BooleanNode()),layers:pr.ListNode(r("generator_layer")),structures:r("generator_structures")})}}},{disableSwitchContext:!0})},{category:"pool",context:"dimension"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:fixed",seed:e,biome:"minecraft:plains"},settings:"minecraft:overworld"}}}})),e.register("generator_biome",pr.Mod(pr.ObjectNode({biome:o({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:pr.ObjectNode({altitude:pr.NumberNode(),temperature:pr.NumberNode(),humidity:pr.NumberNode(),weirdness:pr.NumberNode(),offset:pr.NumberNode()})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})})),e.register("generator_biome_noise",pr.Mod(pr.ObjectNode({firstOctave:pr.NumberNode({integer:!0}),amplitudes:pr.ListNode(pr.NumberNode())},{context:"generator_biome_noise"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})}))};var fr={};Object.defineProperty(fr,"__esModule",{value:!0}),fr.initDimensionTypeSchemas=void 0;const hr=Be,br=nr;fr.initDimensionTypeSchemas=function(e,t){const r=hr.StringNode.bind(void 0,t);e.register("dimension_type",hr.Mod(hr.ObjectNode({name:hr.Mod(r({validator:"resource",params:{pool:"$dimension_type",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),ultrawarm:hr.BooleanNode(),natural:hr.BooleanNode(),piglin_safe:hr.BooleanNode(),respawn_anchor_works:hr.BooleanNode(),bed_works:hr.BooleanNode(),has_raids:hr.BooleanNode(),has_skylight:hr.BooleanNode(),has_ceiling:hr.BooleanNode(),coordinate_scale:hr.NumberNode({min:1e-5,max:3e7}),ambient_light:hr.NumberNode(),fixed_time:hr.Opt(hr.NumberNode({integer:!0})),logical_height:hr.NumberNode({integer:!0,min:0,max:256}),effects:hr.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}})},{context:"dimension_type"}),{default:()=>br.DefaultDimensionType}))};var gr={},vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.LootFunctions=vr.LootConditions=vr.LootCopySources=vr.LootEntitySources=vr.LootTableTypes=void 0,vr.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]),vr.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),vr.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),vr.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]),vr.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]),Object.defineProperty(gr,"__esModule",{value:!0}),gr.initLootTableSchemas=void 0;const yr=Be,Nr=vr,Or=nr;gr.initLootTableSchemas=function(e,t){const r=yr.Reference.bind(void 0,e),o=yr.StringNode.bind(void 0,t),i={conditions:yr.Opt(yr.ListNode(r("loot_condition")))},a=m({functions:yr.Opt(yr.ListNode(r("loot_function")))},i);function n(e,r,o){const i=[],a=o=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>o.includes(e)))}));for(const[t,{allows:n,requires:s}]of Nr.LootTableTypes){const e=[...n,...s];i.push({match:e=>e.getModel().get(new yr.Path(["type"]))===t,node:o(a(e))})}return i.push({match:e=>!0,node:o(r)}),yr.SwitchNode(i)}const s=n(Nr.LootConditions,"loot_condition_type",(e=>o({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),c=n(Nr.LootFunctions,"loot_function_type",(e=>o({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),l=n(Nr.LootEntitySources,"entity_source",(e=>o({enum:e}))),d=n(Nr.LootCopySources,"copy_source",(e=>o({enum:e})));e.register("loot_table",yr.Mod(yr.ObjectNode({type:yr.Opt(o({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:yr.Opt(yr.ListNode(yr.Mod(yr.ObjectNode(m({rolls:Or.Range({allowBinomial:!0,integer:!0}),bonus_rolls:yr.Opt(Or.Range({integer:!0})),entries:yr.ListNode(r("loot_entry"))},a),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:yr.Opt(yr.ListNode(r("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const p={enabled:e=>{var t;return(null===(t=e.pop().get())||void 0===t?void 0:t.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(e.push("type").get())}};e.register("loot_entry",yr.Mod(yr.ObjectNode({type:o({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:yr.Opt(yr.Mod(yr.NumberNode({integer:!0,min:1}),p)),quality:yr.Opt(yr.Mod(yr.NumberNode({integer:!0}),p)),[yr.Switch]:[{push:"type"}],[yr.Case]:{"minecraft:alternatives":m({children:yr.ListNode(r("loot_entry"))},a),"minecraft:dynamic":m({name:o()},a),"minecraft:group":m({children:yr.ListNode(r("loot_entry"))},a),"minecraft:item":m({name:o({validator:"resource",params:{pool:"item"}})},a),"minecraft:loot_table":m({name:o({validator:"resource",params:{pool:"$loot_table"}})},a),"minecraft:sequence":m({children:yr.ListNode(r("loot_entry"))},a),"minecraft:tag":m({name:o({validator:"resource",params:{pool:"$tag/item"}}),expand:yr.Opt(yr.BooleanNode())},a)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",yr.Mod(yr.ObjectNode({function:c,[yr.Switch]:[{push:"function"}],[yr.Case]:(()=>{const e={"minecraft:apply_bonus":{enchantment:o({validator:"resource",params:{pool:"enchantment"}}),formula:o({validator:"resource",params:{pool:t.get("loot_table_apply_bonus_formula")}}),parameters:yr.Mod(yr.ObjectNode({bonusMultiplier:yr.Mod(yr.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:yr.Mod(yr.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:yr.Mod(yr.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()})}),{enabled:e=>"minecraft:ore_drops"!==e.push("formula").get()})},"minecraft:copy_name":{source:d},"minecraft:copy_nbt":{source:d,ops:yr.ListNode(yr.ObjectNode({source:o({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:o({validator:"nbt_path",params:{category:"minecraft:item"}}),op:o({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:o({validator:"resource",params:{pool:"block"}}),properties:yr.ListNode(o({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:yr.Opt(yr.ListNode(o({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:Or.Range({allowBinomial:!0}),treasure:yr.Opt(yr.BooleanNode())},"minecraft:exploration_map":{destination:yr.Opt(o({enum:"map_feature"})),decoration:yr.Opt(o({enum:"map_decoration"})),zoom:yr.Opt(yr.NumberNode({integer:!0})),search_radius:yr.Opt(yr.NumberNode({integer:!0})),skip_existing_chunks:yr.Opt(yr.BooleanNode())},"minecraft:fill_player_head":{entity:l},"minecraft:limit_count":{limit:Or.Range({bounds:!0})},"minecraft:looting_enchant":{count:Or.Range({bounds:!0}),limit:yr.Opt(yr.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:yr.ListNode(r("attribute_modifier"))},"minecraft:set_contents":{entries:yr.ListNode(r("loot_entry"))},"minecraft:set_count":{count:Or.Range({allowBinomial:!0})},"minecraft:set_damage":{damage:Or.Range({forceRange:!0})},"minecraft:set_loot_table":{name:o({validator:"resource",params:{pool:"$loot_table"}}),seed:yr.Opt(yr.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:yr.Opt(l),lore:yr.ListNode(r("text_component")),replace:yr.Opt(yr.BooleanNode())},"minecraft:set_name":{entity:yr.Opt(l),name:yr.Opt(r("text_component"))},"minecraft:set_nbt":{tag:o({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:yr.Opt(yr.ListNode(yr.ObjectNode({type:o({validator:"resource",params:{pool:"mob_effect"}}),duration:Or.Range()})))}},a={};return t.get("loot_function_type").forEach((t=>{a[t]=m(m({},e[t]),i)})),a})()},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",yr.Mod(yr.ObjectNode({condition:s,[yr.Switch]:[{push:"condition"}],[yr.Case]:_(m({},Or.ConditionCases),{"minecraft:entity_properties":{entity:l,predicate:r("entity_predicate")},"minecraft:entity_scores":{entity:l,scores:yr.MapNode(o({validator:"objective"}),Or.Range({bounds:!0}))}})},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",yr.Mod(yr.ObjectNode({attribute:o({validator:"resource",params:{pool:"attribute"}}),name:o(),amount:Or.Range({bounds:!0}),operation:o({enum:["addition","multiply_base","multiply_total"]}),slot:yr.StringOrList(o({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.initPackMcmetaSchemas=void 0;const wr=Be;kr.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",wr.Mod(wr.ObjectNode({pack:wr.Mod(wr.ObjectNode({pack_format:wr.Mod(wr.NumberNode({integer:!0,min:6,max:6}),{default:()=>6}),description:wr.Reference(e,"text_component")}),{default:()=>({pack_format:6,description:""})})}),{default:()=>({pack:{pack_format:6,description:""}})}))};var xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.initPredicatesSchemas=void 0;const jr=Be,Sr=nr;xr.initPredicatesSchemas=function(e,t){const r=jr.Reference.bind(void 0,e),o=jr.StringNode.bind(void 0,t),i=jr.ChoiceNode([{type:"string",node:o(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:jr.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:jr.ObjectNode({min:jr.Opt(jr.NumberNode({integer:!0})),max:jr.Opt(jr.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:jr.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",jr.ObjectNode({item:jr.Opt(o({validator:"resource",params:{pool:"item"}})),tag:jr.Opt(o({validator:"resource",params:{pool:"$tag/item"}})),count:jr.Opt(Sr.Range()),durability:jr.Opt(Sr.Range()),potion:jr.Opt(o({validator:"resource",params:{pool:"potion"}})),nbt:jr.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:jr.Opt(jr.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",jr.ObjectNode({enchantment:jr.Opt(o({validator:"resource",params:{pool:"enchantment"}})),levels:jr.Opt(Sr.Range())},{context:"enchantment"})),e.register("block_predicate",jr.ObjectNode({block:jr.Opt(o({validator:"resource",params:{pool:"block"}})),tag:jr.Opt(o({validator:"resource",params:{pool:"$tag/block"}})),nbt:jr.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:jr.Opt(jr.MapNode(o(),i,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",jr.ObjectNode({fluid:jr.Opt(o({validator:"resource",params:{pool:"fluid"}})),tag:jr.Opt(o({validator:"resource",params:{pool:"$tag/fluid"}})),state:jr.Opt(jr.MapNode(o(),i))},{context:"fluid"})),e.register("location_predicate",jr.ObjectNode({position:jr.Opt(jr.ObjectNode({x:jr.Opt(Sr.Range()),y:jr.Opt(Sr.Range()),z:jr.Opt(Sr.Range())})),biome:jr.Opt(o({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:jr.Opt(o({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:jr.Opt(o({validator:"resource",params:{pool:"$dimension"}})),light:jr.Opt(jr.ObjectNode({light:jr.Opt(Sr.Range({integer:!0,min:0,max:15}))})),smokey:jr.Opt(jr.BooleanNode()),block:jr.Opt(r("block_predicate")),fluid:jr.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",jr.ObjectNode({type:o({validator:"resource",params:{pool:"stat_type"}}),stat:o(),value:Sr.Range(),[jr.Switch]:[{push:"type"}],[jr.Case]:{"minecraft:mined":{stat:o({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:o({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:o({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:o({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",jr.ObjectNode({gamemode:jr.Opt(o({enum:"gamemode"})),level:jr.Opt(Sr.Range()),advancements:jr.Opt(jr.MapNode(o({validator:"resource",params:{pool:"$advancement"}}),jr.ChoiceNode([{type:"boolean",node:jr.BooleanNode(),change:e=>!0},{type:"object",node:jr.MapNode(o(),jr.BooleanNode())}]))),recipes:jr.Opt(jr.MapNode(o({validator:"resource",params:{pool:"$recipe"}}),jr.BooleanNode())),stats:jr.Opt(jr.ListNode(r("statistic_predicate")))},{context:"player"})),e.register("status_effect_predicate",jr.ObjectNode({amplifier:jr.Opt(Sr.Range()),duration:jr.Opt(Sr.Range()),ambient:jr.Opt(jr.BooleanNode()),visible:jr.Opt(jr.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",jr.ObjectNode({x:jr.Opt(Sr.Range()),y:jr.Opt(Sr.Range()),z:jr.Opt(Sr.Range()),absolute:jr.Opt(Sr.Range()),horizontal:jr.Opt(Sr.Range())},{context:"distance"})),e.register("entity_predicate",jr.ObjectNode({type:jr.Opt(o({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:jr.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:jr.Opt(o({validator:"team"})),location:jr.Opt(r("location_predicate")),distance:jr.Opt(r("distance_predicate")),flags:jr.Opt(jr.ObjectNode({is_on_fire:jr.Opt(jr.BooleanNode()),is_sneaking:jr.Opt(jr.BooleanNode()),is_sprinting:jr.Opt(jr.BooleanNode()),is_swimming:jr.Opt(jr.BooleanNode()),is_baby:jr.Opt(jr.BooleanNode())})),equipment:jr.Opt(jr.MapNode(o({enum:"slot"}),r("item_predicate"))),vehicle:jr.Opt(r("entity_predicate")),targeted_entity:jr.Opt(r("entity_predicate")),player:jr.Opt(r("player_predicate")),fishing_hook:jr.Opt(jr.ObjectNode({in_open_water:jr.Opt(jr.BooleanNode())})),effects:jr.Opt(jr.MapNode(o({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",jr.ObjectNode({is_explosion:jr.Opt(jr.BooleanNode()),is_fire:jr.Opt(jr.BooleanNode()),is_magic:jr.Opt(jr.BooleanNode()),is_projectile:jr.Opt(jr.BooleanNode()),is_lightning:jr.Opt(jr.BooleanNode()),bypasses_armor:jr.Opt(jr.BooleanNode()),bypasses_invulnerability:jr.Opt(jr.BooleanNode()),bypasses_magic:jr.Opt(jr.BooleanNode()),source_entity:jr.Opt(r("entity_predicate")),direct_entity:jr.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",jr.ObjectNode({dealt:jr.Opt(Sr.Range()),taken:jr.Opt(Sr.Range()),blocked:jr.Opt(jr.BooleanNode()),source_entity:jr.Opt(r("entity_predicate")),type:jr.Opt(r("damage_source_predicate"))},{context:"damage"}))};var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.initRecipeSchemas=void 0;const Pr=Be;Mr.initRecipeSchemas=function(e,t){const r=Pr.Reference.bind(void 0,e),o=Pr.StringNode.bind(void 0,t);e.register("recipe",Pr.Mod(Pr.ObjectNode({type:o({validator:"resource",params:{pool:"recipe_serializer"}}),[Pr.Switch]:[{push:"type"}],[Pr.Case]:{"minecraft:crafting_shaped":{group:Pr.Opt(o({enum:"recipe_group",additional:!0})),pattern:Pr.ListNode(o()),key:Pr.MapNode(o(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Pr.Opt(o()),ingredients:Pr.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Pr.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Pr.Opt(Pr.NumberNode()),cookingtime:Pr.Opt(Pr.Mod(Pr.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Pr.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Pr.Opt(Pr.NumberNode()),cookingtime:Pr.Opt(Pr.Mod(Pr.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Pr.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Pr.Opt(Pr.NumberNode()),cookingtime:Pr.Opt(Pr.Mod(Pr.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Pr.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Pr.Opt(Pr.NumberNode()),cookingtime:Pr.Opt(Pr.Mod(Pr.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Pr.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),count:Pr.NumberNode({integer:!0})},"minecraft:smithing":{group:Pr.Opt(o()),base:r("recipe_ingredient_object"),addition:r("recipe_ingredient_object"),result:r("recipe_result")}}},{context:"recipe"}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Pr.Mod(Pr.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Pr.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Pr.Mod(Pr.ObjectNode({item:Pr.Opt(o({validator:"resource",params:{pool:"item"}})),tag:Pr.Opt(o({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Pr.Mod(Pr.ObjectNode({item:o({validator:"resource",params:{pool:"item"}}),count:Pr.Opt(Pr.Mod(Pr.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.initTagsSchemas=void 0;const Lr=Be;Cr.initTagsSchemas=function(e,t){const r=Lr.StringNode.bind(void 0,t),o=e=>Lr.Mod(Lr.ObjectNode({replace:Lr.Opt(Lr.BooleanNode()),values:Lr.ListNode(Lr.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Lr.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Lr.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",o("block")),e.register("entity_type_tag",o("entity_type")),e.register("fluid_tag",o("fluid")),e.register("function_tag",o("$function")),e.register("item_tag",o("item"))};var Br={};Object.defineProperty(Br,"__esModule",{value:!0}),Br.initTextComponentSchemas=void 0;const zr=Be;Br.initTextComponentSchemas=function(e,t){const r=zr.Reference.bind(void 0,e),o=zr.StringNode.bind(void 0,t),i=e=>{var t;return e instanceof Array?i(e[0]):null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"object"==typeof e?"":null==e?void 0:e.toString()};e.register("text_component",zr.Mod(zr.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:i(e[0])}:"object"==typeof e?e:{text:i(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:o(),change:i},{type:"number",node:zr.NumberNode(),change:e=>{const t=parseFloat(i(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:zr.BooleanNode(),change:e=>{const t=i(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const a={color:zr.Opt(o()),font:zr.Opt(o()),bold:zr.Opt(zr.BooleanNode()),italic:zr.Opt(zr.BooleanNode()),underlined:zr.Opt(zr.BooleanNode()),strikethrough:zr.Opt(zr.BooleanNode()),obfuscated:zr.Opt(zr.BooleanNode()),insertion:zr.Opt(o()),clickEvent:zr.Opt(zr.ObjectNode({action:o({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[zr.Switch]:[{push:"action"}],[zr.Case]:{change_page:{value:o()},copy_to_clipboard:{value:o()},open_file:{value:o()},open_url:{value:o()},run_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:zr.Opt(zr.ObjectNode({action:o({enum:["show_text","show_item","show_entity"]}),[zr.Switch]:[{push:"action"}],[zr.Case]:{show_text:{value:zr.Opt(r("text_component")),contents:zr.Opt(r("text_component"))},show_item:{value:zr.Opt(o({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:zr.Opt(zr.ObjectNode({id:o({validator:"resource",params:{pool:"item"}}),count:zr.Opt(zr.NumberNode({integer:!0})),tag:zr.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:zr.Opt(zr.ObjectNode({name:zr.Opt(o()),type:zr.Opt(o()),id:zr.Opt(o())})),contents:zr.Opt(zr.Mod(zr.ObjectNode({name:zr.Opt(r("text_component")),type:o({validator:"resource",params:{pool:"entity_type"}}),id:o({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:zr.Opt(r("text_component_list"))};e.register("text_component_object",zr.Mod(zr.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:zr.ObjectNode(m({text:o()},a))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:zr.ObjectNode(m({translate:o(),with:zr.Opt(r("text_component_list"))},a))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:zr.ObjectNode(m({score:zr.ObjectNode({name:o({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:o({validator:"objective"}),value:zr.Opt(o())})},a))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:zr.ObjectNode(m({selector:o({validator:"entity",params:{amount:"multiple",type:"entities"}})},a))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:zr.ObjectNode(m({keybind:o({enum:"keybind",additional:!0})},a))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:zr.ObjectNode(m({nbt:o({validator:"nbt_path"}),block:zr.Opt(o({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:zr.Opt(o({validator:"entity",params:{amount:"single",type:"entities"}})),storage:zr.Opt(o({validator:"resource",params:{pool:"$storage"}})),interpret:zr.Opt(zr.BooleanNode())},a))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",zr.Mod(zr.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var Rr={},Ar={};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.initBiomeSchemas=void 0;const Ir=Be;Ar.initBiomeSchemas=function(e,t){const r=Ir.StringNode.bind(void 0,t);e.register("biome",Ir.Mod(Ir.ObjectNode({surface_builder:r({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),depth:Ir.NumberNode(),scale:Ir.NumberNode(),temperature:Ir.NumberNode(),downfall:Ir.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:Ir.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),player_spawn_friendly:Ir.Opt(Ir.BooleanNode()),creature_spawn_probability:Ir.Opt(Ir.NumberNode({min:0,max:1})),effects:Ir.ObjectNode({sky_color:Ir.NumberNode({color:!0}),fog_color:Ir.NumberNode({color:!0}),water_color:Ir.NumberNode({color:!0}),water_fog_color:Ir.NumberNode({color:!0}),grass_color:Ir.Opt(Ir.NumberNode({color:!0})),foliage_color:Ir.Opt(Ir.NumberNode({color:!0})),grass_color_modifier:Ir.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:Ir.Opt(r()),mood_sound:Ir.Opt(Ir.ObjectNode({sound:r(),tick_delay:Ir.NumberNode({integer:!0}),block_search_extent:Ir.NumberNode({integer:!0}),offset:Ir.NumberNode()})),additions_sound:Ir.Opt(Ir.ObjectNode({sound:r(),tick_chance:Ir.NumberNode({min:0,max:1})})),music:Ir.Opt(Ir.ObjectNode({sound:r(),min_delay:Ir.NumberNode({integer:!0,min:0}),max_delay:Ir.NumberNode({integer:!0,min:0}),replace_current_music:Ir.BooleanNode()})),particle:Ir.Opt(Ir.ObjectNode({options:Ir.ObjectNode({type:r()}),probability:Ir.NumberNode({min:0,max:1})}))}),starts:Ir.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),spawners:Ir.MapNode(r({enum:["water_ambient","ambient","misc","water_creature","creature","monster"]}),Ir.Mod(Ir.ListNode(Ir.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:Ir.NumberNode({integer:!0}),minCount:Ir.NumberNode({integer:!0}),maxCount:Ir.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:Ir.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),Ir.Mod(Ir.ObjectNode({energy_budget:Ir.NumberNode(),charge:Ir.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:Ir.MapNode(r({enum:["air","liquid"]}),Ir.Mod(Ir.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:Ir.ListNode(Ir.Mod(Ir.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_feature"}})),{category:()=>"predicate"}),{maxLength:10})},{context:"biome"}),{default:()=>({surface_builder:"minecraft:grass",depth:.125,scale:.05,temperature:.8,downfall:.4,precipitation:"rain",category:"plains",effects:{sky_color:7907327,fog_color:12638463,water_color:4159204,water_fog_color:329011}})}))};var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.initCarverSchemas=void 0;const Dr=Be;Tr.initCarverSchemas=function(e,t){const r=Dr.StringNode.bind(void 0,t);e.register("configured_carver",Dr.Mod(Dr.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/carver"}}),config:Dr.ObjectNode({probability:Dr.NumberNode({min:0,max:1})})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.initDecoratorSchemas=void 0;const Fr=Be,$r=nr;Er.initDecoratorSchemas=function(e,t){const r=Fr.Reference.bind(void 0,e),o=Fr.StringNode.bind(void 0,t),i={maximum:Fr.NumberNode({integer:!0}),bottom_offset:Fr.NumberNode({integer:!0}),top_offset:Fr.NumberNode({integer:!0})},a={chance:Fr.NumberNode({integer:!0,min:0})},n={count:$r.UniformInt({min:-10,max:128,maxSpread:128})};e.register("configured_decorator",Fr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/decorator"}}),config:Fr.ObjectNode({[Fr.Switch]:["pop",{push:"type"}],[Fr.Case]:{"minecraft:carving_mask":{step:o({enum:"generation_step"}),probability:Fr.NumberNode({min:0,max:1})},"minecraft:chance":a,"minecraft:count":n,"minecraft:count_extra":{count:Fr.NumberNode({integer:!0,min:0}),extra_count:Fr.NumberNode({integer:!0,min:0}),extra_chance:Fr.NumberNode({min:0,max:1})},"minecraft:count_multilayer":n,"minecraft:count_noise":{noise_level:Fr.NumberNode(),below_noise:Fr.NumberNode({integer:!0}),above_noise:Fr.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:Fr.NumberNode({integer:!0}),noise_factor:Fr.NumberNode(),noise_offset:Fr.Opt(Fr.NumberNode())},"minecraft:decorated":{outer:r("configured_decorator"),inner:r("configured_decorator")},"minecraft:depth_average":{baseline:Fr.NumberNode({integer:!0}),spread:Fr.NumberNode({integer:!0})},"minecraft:fire":n,"minecraft:glowstone":n,"minecraft:lava_lake":a,"minecraft:range":i,"minecraft:range_biased":i,"minecraft:range_very_biased":i,"minecraft:water_lake":a}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var Ur={},qr={};Object.defineProperty(qr,"__esModule",{value:!0}),qr.initProcessorListSchemas=void 0;const Zr=Be;qr.initProcessorListSchemas=function(e,t){const r=Zr.Reference.bind(void 0,e),o=Zr.StringNode.bind(void 0,t);e.register("processor_list",Zr.Mod(Zr.ObjectNode({processors:Zr.ListNode(r("processor"))},{context:"processor_list"}),{default:()=>({processors:[{processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]}]})})),e.register("processor",Zr.Mod(Zr.ObjectNode({processor_type:o({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[Zr.Switch]:[{push:"processor_type"}],[Zr.Case]:{"minecraft:block_age":{mossiness:Zr.NumberNode()},"minecraft:block_ignore":{blocks:Zr.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:Zr.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:o({enum:"heightmap_type"}),offset:Zr.NumberNode({integer:!0})},"minecraft:rule":{rules:Zr.ListNode(r("processor_rule"))}}},{category:"function",context:"processor"}),{default:()=>({processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]})})),e.register("processor_rule",Zr.Mod(Zr.ObjectNode({position_predicate:Zr.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:Zr.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:block"}}}))},{category:"predicate",context:"processor_rule"}),{default:()=>({location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}})}));const i={min_dist:Zr.NumberNode({min:0,max:255,integer:!0}),max_dist:Zr.NumberNode({min:0,max:255,integer:!0}),min_chance:Zr.NumberNode({min:0,max:1}),max_chance:Zr.NumberNode({min:0,max:1})};e.register("pos_rule_test",Zr.ObjectNode({predicate_type:o({validator:"resource",params:{pool:"pos_rule_test"}}),[Zr.Switch]:[{push:"predicate_type"}],[Zr.Case]:{"minecraft:axis_aligned_linear_pos":m({axis:o({enum:["x","y","z"]})},i),"minecraft:linear_pos":i}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",Zr.ObjectNode({predicate_type:o({validator:"resource",params:{pool:"rule_test"}}),[Zr.Switch]:[{push:"predicate_type"}],[Zr.Case]:{"minecraft:block_match":{block:o({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:o({validator:"resource",params:{pool:"block"}}),probability:Zr.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:Zr.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:o({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.initFeatureSchemas=void 0;const Hr=Be,Wr=nr;Ur.initFeatureSchemas=function(e,t){const r=Hr.Reference.bind(void 0,e),o=Hr.StringNode.bind(void 0,t),i={can_replace:Hr.BooleanNode(),project:Hr.BooleanNode(),need_water:Hr.BooleanNode(),xspread:Hr.NumberNode({integer:!0}),yspread:Hr.NumberNode({integer:!0}),zspread:Hr.NumberNode({integer:!0}),tries:Hr.NumberNode({integer:!0}),state_provider:r("block_state_provider"),block_placer:r("block_placer"),whitelist:Hr.ListNode(r("block_state")),blacklist:Hr.ListNode(r("block_state"))},a={state:r("block_state"),radius:Wr.UniformInt({min:0,max:4,maxSpread:4}),half_height:Hr.NumberNode({integer:!0,min:0,max:4}),targets:Hr.ListNode(r("block_state"))},n={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:Hr.Opt(Hr.NumberNode({integer:!0}))},s={state:r("block_state"),size:Hr.NumberNode({integer:!0,min:0,max:64}),target:r("rule_test")},c={count:Wr.UniformInt({min:-10,max:128,maxSpread:128})},l=Hr.ChoiceNode([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"});e.register("configured_feature",Hr.Mod(Hr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/feature"}}),config:Hr.ObjectNode({[Hr.Switch]:["pop",{push:"type"}],[Hr.Case]:{"minecraft:bamboo":{probability:Hr.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:Wr.UniformInt({min:0,max:2,maxSpread:1}),height:Wr.UniformInt({min:1,max:5,maxSpread:5})},"minecraft:block_pile":{state_provider:r("block_state_provider")},"minecraft:decorated":{decorator:r("configured_decorator"),feature:l},"minecraft:delta_feature":{contents:r("block_state"),rim:r("block_state"),size:Wr.UniformInt({min:0,max:8,maxSpread:8}),rim_size:Wr.UniformInt({min:0,max:8,maxSpread:8})},"minecraft:disk":a,"minecraft:emerald_ore":{state:r("block_state"),target:r("block_state")},"minecraft:end_gateway":{exact:Hr.BooleanNode(),exit:Hr.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:Hr.Opt(Hr.BooleanNode()),crystal_beam_target:Hr.Opt(r("block_pos")),spikes:Hr.ListNode(Hr.ObjectNode({centerX:Hr.Opt(Hr.NumberNode({integer:!0})),centerZ:Hr.Opt(Hr.NumberNode({integer:!0})),radius:Hr.Opt(Hr.NumberNode({integer:!0})),height:Hr.Opt(Hr.NumberNode({integer:!0})),guarded:Hr.Opt(Hr.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:Hr.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":i,"minecraft:forest_rock":{state:r("block_state")},"minecraft:huge_brown_mushroom":n,"minecraft:huge_fungus":{hat_state:r("block_state"),decor_state:r("block_state"),stem_state:r("block_state"),valid_base_block:r("block_state"),planted:Hr.Opt(Hr.BooleanNode())},"minecraft:huge_red_mushroom":n,"minecraft:ice_patch":a,"minecraft:iceberg":{state:r("block_state")},"minecraft:lake":{state:r("block_state")},"minecraft:nether_forest_vegetation":{state_provider:r("block_state_provider")},"minecraft:netherrack_replace_blobs":{state:r("block_state"),target:r("block_state"),radius:Wr.UniformInt()},"minecraft:no_bonemeal_flower":i,"minecraft:no_surface_ore":s,"minecraft:ore":s,"minecraft:random_patch":i,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:Hr.ListNode(Hr.ObjectNode({chance:Hr.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:sea_pickle":c,"minecraft:seagrass":{probability:Hr.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state"),place_on:Hr.ListNode(r("block_state")),place_in:Hr.ListNode(r("block_state")),place_under:Hr.ListNode(r("block_state"))},"minecraft:simple_random_selector":{features:Hr.ListNode(l)},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:Hr.NumberNode({integer:!0}),hole_count:Hr.NumberNode({integer:!0}),requires_block_below:Hr.BooleanNode(),valid_blocks:Hr.ListNode(o({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{max_water_depth:Hr.NumberNode({integer:!0}),ignore_vines:Hr.BooleanNode(),heightmap:o({enum:"heightmap_type"}),minimum_size:r("feature_size"),trunk_provider:r("block_state_provider"),leaves_provider:r("block_state_provider"),trunk_placer:Hr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:Hr.NumberNode({integer:!0,min:0,max:32}),height_rand_a:Hr.NumberNode({integer:!0,min:0,max:24}),height_rand_b:Hr.NumberNode({integer:!0,min:0,max:24})},{context:"trunk_placer"}),foliage_placer:Hr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:Wr.UniformInt({min:0,max:8,maxSpread:8}),offset:Wr.UniformInt({min:0,max:8,maxSpread:8}),[Hr.Switch]:[{push:"type"}],[Hr.Case]:{"minecraft:blob_foliage_placer":{height:Hr.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:Hr.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:Hr.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:Hr.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:Wr.UniformInt({min:0,max:16,maxSpread:8})},"minecraft:pine_foliage_placer":{height:Wr.UniformInt({min:0,max:16,maxSpread:8})},"minecraft:spruce_foliage_placer":{trunk_height:Wr.UniformInt({min:0,max:16,maxSpread:8})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:Hr.ListNode(Hr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[Hr.Switch]:[{push:"type"}],[Hr.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:Hr.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:Hr.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))}}},{context:"feature"})},{context:"feature"}),{default:()=>({type:"minecraft:decorated",config:{decorator:{type:"minecraft:count",config:{count:4}},feature:{type:"minecraft:tree",config:{max_water_depth:0,ignore_vines:!0,minimum_size:{},trunk_placer:{base_height:5,height_rand_a:2,height_rand_b:0},foliage_placer:{radius:2,offset:0,height:3}}}}})})),e.register("feature_size",Hr.Mod(Hr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:Hr.Opt(Hr.NumberNode({min:0,max:80})),[Hr.Switch]:[{push:"type"}],[Hr.Case]:{"minecraft:two_layers_feature_size":{limit:Hr.Opt(Hr.NumberNode({integer:!0,min:0,max:81})),lower_size:Hr.Opt(Hr.NumberNode({integer:!0,min:0,max:16})),upper_size:Hr.Opt(Hr.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:Hr.Opt(Hr.NumberNode({integer:!0,min:0,max:80})),upper_limit:Hr.Opt(Hr.NumberNode({integer:!0,min:0,max:80})),lower_size:Hr.Opt(Hr.NumberNode({integer:!0,min:0,max:16})),middle_size:Hr.Opt(Hr.NumberNode({integer:!0,min:0,max:16})),upper_size:Hr.Opt(Hr.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})})),e.register("block_state_provider",Hr.Mod(Hr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[Hr.Switch]:[{push:"type"}],[Hr.Case]:{"minecraft:rotated_block_provider":{state:r("block_state")},"minecraft:simple_state_provider":{state:r("block_state")},"minecraft:weighted_state_provider":{entries:Hr.ListNode(Hr.Mod(Hr.ObjectNode({weight:Hr.NumberNode({integer:!0,min:1}),data:r("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})})),e.register("block_placer",Hr.Mod(Hr.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[Hr.Switch]:[{push:"type"}],[Hr.Case]:{"minecraft:column_placer":{min_size:Hr.NumberNode({integer:!0}),extra_size:Hr.NumberNode({integer:!0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.initNoiseSettingsSchemas=void 0;const Yr=Be,Jr=nr;Xr.initNoiseSettingsSchemas=function(e,t){const r=Yr.Reference.bind(void 0,e),o=Yr.StringNode.bind(void 0,t);e.register("noise_settings",Yr.Mod(Yr.ObjectNode({name:Yr.Mod(o({validator:"resource",params:{pool:"$worldgen/noise_settings",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),bedrock_roof_position:Yr.NumberNode({integer:!0}),bedrock_floor_position:Yr.NumberNode({integer:!0}),sea_level:Yr.NumberNode({integer:!0}),disable_mob_generation:Yr.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:Yr.ObjectNode({height:Yr.NumberNode({integer:!0}),density_factor:Yr.NumberNode(),density_offset:Yr.NumberNode(),size_horizontal:Yr.NumberNode({integer:!0}),size_vertical:Yr.NumberNode({integer:!0}),simplex_surface_noise:Yr.BooleanNode(),random_density_offset:Yr.Opt(Yr.BooleanNode()),island_noise_override:Yr.Opt(Yr.BooleanNode()),amplified:Yr.Opt(Yr.BooleanNode()),sampling:Yr.ObjectNode({xz_scale:Yr.NumberNode(),y_scale:Yr.NumberNode(),xz_factor:Yr.NumberNode(),y_factor:Yr.NumberNode()}),bottom_slide:Yr.ObjectNode({target:Yr.NumberNode({integer:!0}),size:Yr.NumberNode({integer:!0}),offset:Yr.NumberNode({integer:!0})}),top_slide:Yr.ObjectNode({target:Yr.NumberNode({integer:!0}),size:Yr.NumberNode({integer:!0}),offset:Yr.NumberNode({integer:!0})})}),structures:r("generator_structures")},{context:"noise_settings"}),{default:()=>Jr.DefaultNoiseSettings})),e.register("generator_structures",Yr.ObjectNode({stronghold:Yr.Opt(Yr.ObjectNode({distance:Yr.NumberNode({integer:!0,min:0,max:1023}),spread:Yr.NumberNode({integer:!0,min:0,max:1023}),count:Yr.NumberNode({integer:!0,min:1,max:4095})})),structures:Yr.MapNode(o({validator:"resource",params:{pool:"worldgen/structure_feature"}}),Yr.Mod(Yr.ObjectNode({spacing:Yr.NumberNode({integer:!0,min:0,max:4096}),separation:Yr.Mod(Yr.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,o,i)=>(t.pop().push("spacing").get()<=r&&o.add(t,"error.separation_smaller_spacing"),e.validate(t,r,o,i))}))),salt:Yr.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",Yr.Mod(Yr.ObjectNode({block:o({validator:"resource",params:{pool:"block"}}),height:Yr.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.initStructureFeatureSchemas=void 0;const Gr=Be;Kr.initStructureFeatureSchemas=function(e,t){const r=Gr.StringNode.bind(void 0,t),o={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:Gr.NumberNode({integer:!0})};e.register("configured_structure_feature",Gr.Mod(Gr.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:Gr.ObjectNode({[Gr.Switch]:["pop",{push:"type"}],[Gr.Case]:{"minecraft:bastion_remnant":o,"minecraft:buried_treasure":{probability:Gr.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:Gr.NumberNode({min:0,max:1})},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:Gr.NumberNode({min:0,max:1}),cluster_probability:Gr.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":o,"minecraft:ruined_portal":{portal_type:r({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:Gr.Opt(Gr.BooleanNode())},"minecraft:village":o}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.initSurfaceBuilderSchemas=void 0;const Qr=Be;Vr.initSurfaceBuilderSchemas=function(e,t){const r=Qr.StringNode.bind(void 0,t),o=Qr.Reference.bind(void 0,e);e.register("configured_surface_builder",Qr.Mod(Qr.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:Qr.ObjectNode({top_material:o("block_state"),under_material:o("block_state"),underwater_material:o("block_state")},{context:"surface_builder"})},{context:"surface_builder"}),{default:()=>({type:"minecraft:default",config:{top_material:{Name:"minecraft:grass_block",Properties:{snowy:"false"}},under_material:{Name:"minecraft:dirt"},underwater_material:{Name:"minecraft:gravel"}}})}))};var eo={};Object.defineProperty(eo,"__esModule",{value:!0}),eo.initTemplatePoolSchemas=void 0;const to=Be;eo.initTemplatePoolSchemas=function(e,t){const r=to.Reference.bind(void 0,e),o=to.StringNode.bind(void 0,t),i=to.ChoiceNode([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:r("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]);e.register("template_pool",to.Mod(to.ObjectNode({name:o(),fallback:o(),elements:to.ListNode(r("template_weighted_element"))},{context:"template_pool"}),{default:()=>({fallback:"minecraft:empty",elements:[{weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}}]})})),e.register("template_weighted_element",to.Mod(to.ObjectNode({weight:to.NumberNode({integer:!0,min:1}),element:r("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",to.Mod(to.ObjectNode({element_type:o({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:o({enum:["rigid","terrain_matching"]}),[to.Switch]:[{push:"element_type"}],[to.Case]:{"minecraft:feature_pool_element":{feature:o({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},"minecraft:legacy_single_pool_element":{location:o({validator:"resource",params:{pool:"$structure"}}),processors:i},"minecraft:list_pool_element":{elements:to.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:o({validator:"resource",params:{pool:"$structure"}}),processors:i}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.initWorldgenSchemas=void 0;const ro=Ar,oo=Tr,io=Er,ao=Ur,no=Xr,so=qr,co=Kr,lo=Vr,mo=eo;Rr.initWorldgenSchemas=function(e,t){ro.initBiomeSchemas(e,t),oo.initCarverSchemas(e,t),io.initDecoratorSchemas(e,t),ao.initFeatureSchemas(e,t),no.initNoiseSettingsSchemas(e,t),so.initProcessorListSchemas(e,t),co.initStructureFeatureSchemas(e,t),lo.initSurfaceBuilderSchemas(e,t),mo.initTemplatePoolSchemas(e,t)};var _o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.initWorldSettingsSchemas=void 0;const po=Be;_o.initWorldSettingsSchemas=function(e,t){const r=po.Reference.bind(void 0,e),o=po.StringNode.bind(void 0,t);e.register("world_settings",po.Mod(po.ObjectNode({generate_features:po.BooleanNode(),bonus_chest:po.BooleanNode(),seed:po.NumberNode({integer:!0}),dimensions:po.MapNode(o({validator:"resource",params:{pool:"$dimension"}}),r("dimension"))},{context:"world_settings"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{generate_features:!0,bonus_chest:!1,seed:e,dimensions:{"minecraft:overworld":{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:vanilla_layered",seed:e},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:multi_noise",seed:e,humidity_noise:{firstOctave:-7,amplitudes:[1,1]},altitude_noise:{firstOctave:-7,amplitudes:[1,1]},weirdness_noise:{firstOctave:-7,amplitudes:[1,1]},temperature_noise:{firstOctave:-7,amplitudes:[1,1]},biomes:[{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:0},biome:"minecraft:nether_wastes"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:-.5},biome:"minecraft:soul_sand_valley"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:.4,humidity:0},biome:"minecraft:crimson_forest"},{parameters:{altitude:0,weirdness:0,offset:.375,temperature:0,humidity:.5},biome:"minecraft:warped_forest"},{parameters:{altitude:0,weirdness:0,offset:.175,temperature:-.5,humidity:0},biome:"minecraft:basalt_deltas"}]},settings:"minecraft:nether"}},"minecraft:the_end":{type:"minecraft:the_end",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:the_end",seed:e},settings:"minecraft:end"}}}}}}))},Object.defineProperty(ir,"__esModule",{value:!0}),ir.initSchemas=void 0;const uo=ar,fo=nr,ho=lr,bo=_r,go=fr,vo=gr,yo=kr,No=xr,Oo=Mr,ko=Cr,wo=Br,xo=Rr,jo=_o;ir.initSchemas=function(e,t){fo.initCommonSchemas(e,t),uo.initAdvancementSchemas(e,t),ho.initConditionSchemas(e,t),go.initDimensionTypeSchemas(e,t),bo.initDimensionSchemas(e,t),vo.initLootTableSchemas(e,t),yo.initPackMcmetaSchemas(e,t),No.initPredicatesSchemas(e,t),Oo.initRecipeSchemas(e,t),ko.initTagsSchemas(e,t),wo.initTextComponentSchemas(e,t),xo.initWorldgenSchemas(e,t),jo.initWorldSettingsSchemas(e,t)};var So=Le&&Le.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),Mo=Le&&Le.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Po=Le&&Le.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&So(t,e,r);return Mo(t,e),t};Object.defineProperty(rr,"__esModule",{value:!0});var Co=rr.getSchemas=rr.getCollections=void 0;const Lo=Be,Bo=or,zo=ir;var Ro=rr.lootContext=Po(vr);var Ao=rr.getCollections=function(){const e=new Lo.CollectionRegistry;return Bo.initCollections(e),e};Co=rr.getSchemas=function(e){const t=new Lo.SchemaRegistry;return zo.initSchemas(t,e),t};var Io=Object.freeze(Object.assign(Object.create(null),rr,{[Symbol.toStringTag]:"Module",get getSchemas(){return Co},get getCollections(){return Ao},lootContext:Ro,default:rr})),To={},Do={};Object.defineProperty(Do,"__esModule",{value:!0}),Do.initCollections=void 0,Do.initCollections=function(e){e.register("advancement_trigger",["minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:item_used_on_block","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:lightning_strike","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_generates_container_loot","minecraft:player_hurt_entity","minecraft:player_interacted_with_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:shot_crossbow","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:started_riding","minecraft:summoned_entity","minecraft:tame_animal","minecraft:target_hit","minecraft:tick","minecraft:thrown_item_picked_up_by_entity","minecraft:used_ender_eye","minecraft:used_totem","minecraft:using_item","minecraft:villager_trade","minecraft:voluntary_exile"]),e.register("dimension",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("dimension_type",["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]),e.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),e.register("slot",["mainhand","offhand","head","chest","legs","feet"]),e.register("gamemode",["survival","creative","adventure","spectator"]),e.register("worldgen/noise_settings",["minecraft:overworld","minecraft:nether","minecraft:end","minecraft:amplified","minecraft:caves","minecraft:floating_islands"]),e.register("entity_source",["this","killer","direct_killer","killer_player"]),e.register("copy_source",["block_entity","this","killer","killer_player"]),e.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),e.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),e.register("map_feature",["bastion_remnant","buried_treasure","desert_pyramid","endcity","fortress","igloo","jungle_pyramid","mansion","mineshaft","monument","nether_fossil","ocean_ruin","pillager_outpost","ruined_portal","shipwreck","stronghold","swamp_hut","village"]),e.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),e.register("worldgen/configured_feature",["minecraft:acacia","minecraft:bamboo_light","minecraft:bamboo_vegetation","minecraft:bamboo","minecraft:basalt_blobs","minecraft:basalt_pillar","minecraft:birch_bees_0002","minecraft:birch_bees_002","minecraft:birch_bees_005","minecraft:birch_other","minecraft:birch_tall","minecraft:birch","minecraft:blackstone_blobs","minecraft:blue_ice","minecraft:bonus_chest","minecraft:brown_mushroom_giant","minecraft:brown_mushroom_nether","minecraft:brown_mushroom_normal","minecraft:brown_mushroom_swamp","minecraft:brown_mushroom_taiga","minecraft:chorus_plant","minecraft:crimson_forest_vegetation","minecraft:crimson_fungi_planted","minecraft:crimson_fungi","minecraft:dark_forest_vegetation_brown","minecraft:dark_forest_vegetation_red","minecraft:dark_oak","minecraft:delta","minecraft:desert_well","minecraft:disk_clay","minecraft:disk_gravel","minecraft:disk_sand","minecraft:end_gateway_delayed","minecraft:end_gateway","minecraft:end_island_decorated","minecraft:end_island","minecraft:end_spike","minecraft:fancy_oak_bees_0002","minecraft:fancy_oak_bees_002","minecraft:fancy_oak_bees_005","minecraft:fancy_oak","minecraft:flower_default","minecraft:flower_forest","minecraft:flower_plain_decorated","minecraft:flower_plain","minecraft:flower_swamp","minecraft:flower_warm","minecraft:forest_flower_trees","minecraft:forest_flower_vegetation_common","minecraft:forest_flower_vegetation","minecraft:forest_rock","minecraft:fossil","minecraft:freeze_top_layer","minecraft:glowstone_extra","minecraft:glowstone","minecraft:huge_brown_mushroom","minecraft:huge_red_mushroom","minecraft:ice_patch","minecraft:ice_spike","minecraft:iceberg_blue","minecraft:iceberg_packed","minecraft:jungle_bush","minecraft:jungle_tree_no_vine","minecraft:jungle_tree","minecraft:kelp_cold","minecraft:kelp_warm","minecraft:lake_lava","minecraft:lake_water","minecraft:large_basalt_columns","minecraft:mega_jungle_tree","minecraft:mega_pine","minecraft:mega_spruce","minecraft:monster_room","minecraft:mushroom_field_vegetation","minecraft:nether_sprouts","minecraft:oak_badlands","minecraft:oak_bees_0002","minecraft:oak_bees_002","minecraft:oak_bees_005","minecraft:oak","minecraft:ore_andesite","minecraft:ore_blackstone","minecraft:ore_coal","minecraft:ore_debris_large","minecraft:ore_debris_small","minecraft:ore_diamond","minecraft:ore_diorite","minecraft:ore_dirt","minecraft:ore_emerald","minecraft:ore_gold_deltas","minecraft:ore_gold_extra","minecraft:ore_gold_nether","minecraft:ore_gold","minecraft:ore_granite","minecraft:ore_gravel_nether","minecraft:ore_gravel","minecraft:ore_infested","minecraft:ore_iron","minecraft:ore_lapis","minecraft:ore_magma","minecraft:ore_quartz_deltas","minecraft:ore_quartz_nether","minecraft:ore_redstone","minecraft:ore_soul_sand","minecraft:patch_berry_bush","minecraft:patch_berry_decorated","minecraft:patch_berry_sparse","minecraft:patch_brown_mushroom","minecraft:patch_cactus_decorated","minecraft:patch_cactus_desert","minecraft:patch_cactus","minecraft:patch_crimson_roots","minecraft:patch_dead_bush_2","minecraft:patch_dead_bush_badlands","minecraft:patch_dead_bush","minecraft:patch_fire","minecraft:patch_grass_badlands","minecraft:patch_grass_forest","minecraft:patch_grass_jungle","minecraft:patch_grass_normal","minecraft:patch_grass_plain","minecraft:patch_grass_savanna","minecraft:patch_grass_taiga_2","minecraft:patch_grass_taiga","minecraft:patch_large_fern","minecraft:patch_melon","minecraft:patch_pumpkin","minecraft:patch_red_mushroom","minecraft:patch_soul_fire","minecraft:patch_sugar_cane_badlands","minecraft:patch_sugar_cane_desert","minecraft:patch_sugar_cane_swamp","minecraft:patch_sugar_cane","minecraft:patch_sunflower","minecraft:patch_taiga_grass","minecraft:patch_tall_grass_2","minecraft:patch_tall_grass","minecraft:patch_waterlilly","minecraft:pile_hay","minecraft:pile_ice","minecraft:pile_melon","minecraft:pile_pumpkin","minecraft:pile_snow","minecraft:pine","minecraft:plain_vegetation","minecraft:red_mushroom_giant","minecraft:red_mushroom_nether","minecraft:red_mushroom_normal","minecraft:red_mushroom_swamp","minecraft:red_mushroom_taiga","minecraft:sea_pickle","minecraft:seagrass_cold","minecraft:seagrass_deep_cold","minecraft:seagrass_deep_warm","minecraft:seagrass_deep","minecraft:seagrass_normal","minecraft:seagrass_river","minecraft:seagrass_simple","minecraft:seagrass_swamp","minecraft:seagrass_warm","minecraft:small_basalt_columns","minecraft:spring_closed_double","minecraft:spring_closed","minecraft:spring_delta","minecraft:spring_lava_double","minecraft:spring_lava","minecraft:spring_open","minecraft:spring_water","minecraft:spruce_snowy","minecraft:spruce","minecraft:super_birch_bees_0002","minecraft:swamp_tree","minecraft:taiga_vegetation","minecraft:trees_birch","minecraft:trees_giant_spruce","minecraft:trees_giant","minecraft:trees_jungle_edge","minecraft:trees_jungle","minecraft:trees_mountain_edge","minecraft:trees_mountain","minecraft:trees_savanna","minecraft:trees_shattered_savanna","minecraft:trees_water","minecraft:twisting_vines","minecraft:vines","minecraft:void_start_platform","minecraft:warm_ocean_vegetation","minecraft:warped_forest_vegetation","minecraft:warped_fungi_planted","minecraft:warped_fungi","minecraft:weeping_vines"]),e.register("worldgen/configured_structure_feature",["minecraft:bastion_remnant","minecraft:buried_treasure","minecraft:desert_pyramid","minecraft:end_city","minecraft:fortress","minecraft:igloo","minecraft:jungle_pyramid","minecraft:mansion","minecraft:mineshaft_mesa","minecraft:mineshaft","minecraft:monument","minecraft:nether_fossil","minecraft:ocean_ruin_cold","minecraft:ocean_ruin_warm","minecraft:pillager_outpost","minecraft:ruined_portal_desert","minecraft:ruined_portal_jungle","minecraft:ruined_portal_mountain","minecraft:ruined_portal_nether","minecraft:ruined_portal_ocean","minecraft:ruined_portal_swamp","minecraft:ruined_portal","minecraft:shipwreck_beached","minecraft:shipwreck","minecraft:stronghold","minecraft:swamp_hut","minecraft:village_desert","minecraft:village_plains","minecraft:village_savanna","minecraft:village_snowy","minecraft:village_taiga"]),e.register("worldgen/configured_surface_builder",["minecraft:badlands","minecraft:basalt_deltas","minecraft:crimson_forest","minecraft:desert","minecraft:end","minecraft:eroded_badlands","minecraft:frozen_ocean","minecraft:full_sand","minecraft:giant_tree_taiga","minecraft:grass","minecraft:gravelly_mountain","minecraft:ice_spikes","minecraft:mountain","minecraft:mycelium","minecraft:nether","minecraft:nope","minecraft:ocean_sand","minecraft:shattered_savanna","minecraft:soul_sand_valley","minecraft:stone","minecraft:swamp","minecraft:warped_forest","minecraft:wooded_badlands"]),e.register("biome_category",["beach","desert","extreme_hills","forest","icy","jungle","mesa","mushroom","nether","none","ocean","plains","river","savanna","swamp","taiga","the_end"]),e.register("heightmap_type",["MOTION_BLOCKING","MOTION_BLOCKING_NO_LEAVES","OCEAN_FLOOR","OCEAN_FLOOR_WG","WORLD_SURFACE","WORLD_SURFACE_WG"]),e.register("generation_step",["air","liquid"]),e.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"]),e.register("banner_pattern",["base","square_bottom_left","square_bottom_right","square_top_left","square_top_right","stripe_bottom","stripe_top","stripe_left","stripe_right","stripe_center","stripe_middle","stripe_downright","stripe_downleft","small_stripes","cross","straight_cross","triangle_bottom","triangle_top","triangles_bottom","triangles_top","diagonal_left","diagonal_up_right","diagonal_up_left","diagonal_right","circle","rhombus","half_vertical","half_horizontal","half_vertical_right","half_horizontal_bottom","border","curly_border","gradient","gradient_up","bricks","globe","creeper","skull","flower","mojang","piglin"]),e.register("dye_color",["white","orange","magenta","light_blue","yellow","lime","pink","gray","light_gray","cyan","purple","blue","brown","green","red","black"])};var Eo={},Fo={};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.initAdvancementSchemas=void 0;const $o=Be;Fo.initAdvancementSchemas=function(e,t){const r=$o.Reference.bind(void 0,e),o=$o.StringNode.bind(void 0,t),i=$o.ChoiceNode([{type:"object",node:$o.Opt(r("entity_predicate")),change:e=>{var t,r;return null!==(r=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==r?r:{}}},{type:"list",node:$o.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",$o.Mod($o.ObjectNode({display:$o.Opt($o.Mod($o.ObjectNode({icon:$o.ObjectNode({item:o({validator:"resource",params:{pool:"item"}}),nbt:$o.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:$o.Opt(o()),frame:$o.Opt(o({enum:["task","challenge","goal"]})),show_toast:$o.Opt($o.BooleanNode()),announce_to_chat:$o.Opt($o.BooleanNode()),hidden:$o.Opt($o.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:$o.Opt(o({validator:"resource",params:{pool:"$advancement"}})),criteria:$o.MapNode(o(),r("advancement_criteria")),requirements:$o.Opt($o.ListNode($o.ListNode(o()))),rewards:$o.Opt($o.ObjectNode({function:$o.Opt(o({validator:"resource",params:{pool:"$function"}})),loot:$o.Opt($o.ListNode(o({validator:"resource",params:{pool:"$loot_table"}}))),recipes:$o.Opt($o.ListNode(o({validator:"resource",params:{pool:"$recipe"}}))),experience:$o.Opt($o.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",$o.ObjectNode({trigger:o({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:$o.Opt($o.ObjectNode({player:$o.Mod(i,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[$o.Switch]:["pop",{push:"trigger"}],[$o.Case]:{"minecraft:bee_nest_destroyed":{block:$o.Opt(o({validator:"resource",params:{pool:"block"}})),num_bees_inside:$o.Opt($o.NumberNode({integer:!0})),item:$o.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:i,partner:i,child:i},"minecraft:brewed_potion":{potion:$o.Opt(o({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:$o.Opt(o({validator:"resource",params:{pool:"$dimension"}})),to:$o.Opt(o({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:$o.Opt($o.ListNode(i))},"minecraft:construct_beacon":{level:r("int_bounds")},"minecraft:consume_item":{item:$o.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:i,zombie:i},"minecraft:effects_changed":{effects:$o.Opt($o.MapNode(o({validator:"resource",params:{pool:"mob_effect"}}),$o.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds")}))),source:$o.Opt(i)},"minecraft:enter_block":{block:$o.Opt(o({validator:"resource",params:{pool:"block"}})),state:$o.Opt($o.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:r("int_bounds"),item:$o.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:$o.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:i,killing_blow:$o.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:$o.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:i,item:$o.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:$o.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:$o.Opt($o.ObjectNode({empty:r("int_bounds"),occupied:r("int_bounds"),full:r("int_bounds")})),items:$o.Opt($o.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:r("int_bounds"),durability:r("int_bounds"),item:$o.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:$o.Opt(r("item_predicate")),location:$o.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:r("int_bounds"),victims:$o.Opt($o.ListNode(i))},"minecraft:levitation":{distance:r("distance_predicate"),duration:r("int_bounds")},"minecraft:lightning_strike":{lightning:i,bystander:i},"minecraft:location":{location:$o.Opt(r("location_predicate"))},"minecraft:nether_travel":{distance:r("distance_predicate"),entered:$o.Opt(r("location_predicate")),exited:$o.Opt(r("location_predicate"))},"minecraft:placed_block":{block:$o.Opt(o({validator:"resource",params:{pool:"block"}})),state:$o.Opt($o.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:$o.Opt(r("item_predicate")),location:$o.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:o({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:$o.Opt(r("damage_predicate")),entity:i},"minecraft:player_interacted_with_entity":{item:$o.Opt(r("item_predicate")),entity:i},"minecraft:player_killed_entity":{entity:i,killing_blow:$o.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:o({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:$o.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:$o.Opt(o({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:$o.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:i},"minecraft:tame_animal":{entity:i},"minecraft:target_hit":{projectile:i,shooter:i,signal_strength:r("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:$o.Opt(r("entity_predicate")),item:$o.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:r("float_bounds")},"minecraft:used_totem":{item:$o.Opt(r("item_predicate"))},"minecraft:using_item":{item:$o.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:$o.Opt(r("entity_predicate")),item:$o.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:r("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Uo={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.IntProvider=e.FloatProvider=e.NoiseSettingsPresets=e.DefaultNoiseSettings=e.DimensionTypePresets=e.DefaultDimensionType=e.FunctionCases=e.ConditionCases=void 0;const t=Be;e.DefaultDimensionType={ultrawarm:!1,natural:!0,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!0,has_raids:!0,has_skylight:!0,has_ceiling:!1,coordinate_scale:1,ambient_light:0,logical_height:256,infiniburn:"minecraft:infiniburn_overworld",min_y:0,height:256},e.DefaultNoiseSettings={name:"minecraft:overworld",bedrock_roof_position:-10,bedrock_floor_position:0,sea_level:63,disable_mob_generation:!1,noise_caves_enabled:!0,aquifers_enabled:!0,deepslate_enabled:!0,noise:{min_y:0,height:256,density_factor:1,density_offset:-.46875,simplex_surface_noise:!0,random_density_offset:!0,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-10,size:3,offset:0},bottom_slide:{target:-30,size:0,offset:0}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},e.initCommonSchemas=function(r,o){const i=t.StringNode.bind(void 0,o),a=t.Reference.bind(void 0,r);r.register("block_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),r.register("fluid_state",t.Mod(t.ObjectNode({Name:i({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(i(),i()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),r.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]}));const n=e=>t.Opt(t.ChoiceNode([{type:"number",node:t.NumberNode({integer:e}),change:e=>{var t,r;return void 0===e?0:null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:0}},{type:"object",node:t.ObjectNode({min:t.Opt(t.NumberNode({integer:e})),max:t.Opt(t.NumberNode({integer:e}))},{context:"range"}),change:e=>({min:null!=e?e:0,max:null!=e?e:0})}]));r.register("int_bounds",n(!0)),r.register("float_bounds",n()),r.register("int_range",t.ChoiceNode([{type:"object",node:t.ObjectNode({min:t.Opt(a("number_provider")),max:t.Opt(a("number_provider"))})},{type:"number",node:t.NumberNode({integer:!0})}],{context:"range"}));const s=(e,r,o,a,n,s,c)=>{let l={};n&&Object.keys(c[n]).forEach((e=>{l[e]=t.Mod(c[n][e],{enabled:e=>void 0===e.push("type").get()})}));const d=t.ObjectNode(m({type:t.Mod(t.Opt(i({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:c},l),{context:s,disableSwitchContext:!0}),_=[{type:r,node:c[a][o]}];return n&&_.push({type:"object",priority:-1,node:d}),Object.keys(c).forEach((e=>{_.push({type:e,match:t=>{var r;if("minecraft:"+(null===(r=null==t?void 0:t.type)||void 0===r?void 0:r.replace(/^minecraft:/,""))===e)return!0;const o=t?Object.keys(t):[];return"object"==typeof t&&(0===(null==o?void 0:o.length)||1===(null==o?void 0:o.length)&&"type"===(null==o?void 0:o[0]))},node:d,change:t=>({type:e})})})),t.ChoiceNode(_,{context:s,choiceContext:`${s}.type`})};r.register("number_provider",s("loot_number_provider_type","number","value","minecraft:constant","minecraft:uniform","number_provider",{"minecraft:constant":{value:t.NumberNode()},"minecraft:uniform":{min:a("number_provider"),max:a("number_provider")},"minecraft:binomial":{n:a("number_provider"),p:a("number_provider")},"minecraft:score":{target:a("scoreboard_name_provider"),score:i({validator:"objective"}),scale:t.Opt(t.NumberNode())}})),r.register("scoreboard_name_provider",s("loot_score_provider_type","string","target","minecraft:context",null,"score_provider",{"minecraft:fixed":{name:i({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:t.Mod(i({enum:"entity_source"}),{default:()=>"this"})}})),r.register("nbt_provider",s("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:i({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:t.Mod(i({enum:"copy_source"}),{default:()=>"this"})}})),e.FloatProvider=e=>s("float_provider_type","number","value","minecraft:constant",null,"float_provider",{"minecraft:constant":{value:t.NumberNode(e)},"minecraft:uniform":{value:t.ObjectNode({min_inclusive:t.NumberNode(e),max_exclusive:t.NumberNode(e)})},"minecraft:clamped_normal":{value:t.ObjectNode({min:t.NumberNode(),max:t.NumberNode(),mean:t.NumberNode(),deviation:t.NumberNode()})},"minecraft:trapezoid":{value:t.ObjectNode({min:t.NumberNode(),max:t.NumberNode(),plateau:t.NumberNode()})}}),r.register("float_provider",e.FloatProvider()),e.IntProvider=e=>s("int_provider_type","number","value","minecraft:constant",null,"int_provider",{"minecraft:constant":{value:t.NumberNode(m({integer:!0},e))},"minecraft:uniform":{value:t.ObjectNode({min_inclusive:t.NumberNode(m({integer:!0},e)),max_inclusive:t.NumberNode(m({integer:!0},e))})},"minecraft:biased_to_bottom":{value:t.ObjectNode({min_inclusive:t.NumberNode(m({integer:!0},e)),max_inclusive:t.NumberNode(m({integer:!0},e))})},"minecraft:clamped":{value:t.ObjectNode({min_inclusive:t.NumberNode(m({integer:!0},e)),max_inclusive:t.NumberNode(m({integer:!0},e)),source:a("int_provider")})}}),r.register("int_provider",e.IntProvider()),r.register("vertical_anchor",t.ChoiceNode(["absolute","above_bottom","below_top"].map((e=>({type:e,match:t=>void 0!==(null==t?void 0:t[e]),change:t=>{var r,o,i;return{[e]:null!==(i=null!==(o=null!==(r=t.absolute)&&void 0!==r?r:t.above_bottom)&&void 0!==o?o:t.below_top)&&void 0!==i?i:0}},node:t.ObjectNode({[e]:t.NumberNode({integer:!0,min:-2048,max:2047})})}))),{context:"vertical_anchor"})),r.register("height_provider",s("height_provider_type","number","value","minecraft:constant",null,"height_provider",{"minecraft:constant":{value:a("vertical_anchor")},"minecraft:uniform":{min_inclusive:a("vertical_anchor"),max_inclusive:a("vertical_anchor")},"minecraft:biased_to_bottom":{min_inclusive:a("vertical_anchor"),max_inclusive:a("vertical_anchor"),inner:t.Opt(t.NumberNode({integer:!0,min:1}))},"minecraft:very_biased_to_bottom":{min_inclusive:a("vertical_anchor"),max_inclusive:a("vertical_anchor"),inner:t.Opt(t.NumberNode({integer:!0,min:1}))},"minecraft:trapezoid":{min_inclusive:a("vertical_anchor"),max_inclusive:a("vertical_anchor"),plateau:t.Opt(t.NumberNode({integer:!0}))}})),e.ConditionCases=(e=i({enum:"entity_source"}))=>({"minecraft:alternative":{terms:t.ListNode(a("condition"))},"minecraft:block_state_property":{block:i({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(i(),i(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:a("damage_source_predicate")},"minecraft:entity_properties":{entity:e,predicate:a("entity_predicate")},"minecraft:entity_scores":{entity:e,scores:t.MapNode(i({validator:"objective"}),a("int_range"))},"minecraft:inverted":{term:a("condition")},"minecraft:killed_by_player":{inverse:t.Opt(t.BooleanNode())},"minecraft:location_check":{offsetX:t.Opt(t.NumberNode({integer:!0})),offsetY:t.Opt(t.NumberNode({integer:!0})),offsetZ:t.Opt(t.NumberNode({integer:!0})),predicate:a("location_predicate")},"minecraft:match_tool":{predicate:a("item_predicate")},"minecraft:random_chance":{chance:t.NumberNode({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:t.NumberNode({min:0,max:1}),looting_multiplier:t.NumberNode()},"minecraft:reference":{name:i({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),chances:t.ListNode(t.NumberNode({min:0,max:1}))},"minecraft:time_check":{value:a("int_range"),period:t.Opt(t.NumberNode({integer:!0}))},"minecraft:value_check":{value:a("number_provider"),range:a("int_range")},"minecraft:weather_check":{raining:t.Opt(t.BooleanNode()),thundering:t.Opt(t.BooleanNode())}}),e.FunctionCases=(e,r=i({enum:"copy_source"}),n=i({enum:"entity_source"}))=>{const s={"minecraft:apply_bonus":{enchantment:i({validator:"resource",params:{pool:"enchantment"}}),formula:i({validator:"resource",params:{pool:o.get("loot_table_apply_bonus_formula")}}),parameters:t.Mod(t.ObjectNode({bonusMultiplier:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()})}),{enabled:e=>"minecraft:ore_drops"!==e.push("formula").get()})},"minecraft:copy_name":{source:r},"minecraft:copy_nbt":{source:a("nbt_provider"),ops:t.ListNode(t.ObjectNode({source:i({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:i({validator:"nbt_path",params:{category:"minecraft:item"}}),op:i({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:i({validator:"resource",params:{pool:"block"}}),properties:t.ListNode(i({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:t.Opt(t.ListNode(i({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:a("number_provider"),treasure:t.Opt(t.BooleanNode())},"minecraft:exploration_map":{destination:t.Opt(i({enum:"map_feature"})),decoration:t.Opt(i({enum:"map_decoration"})),zoom:t.Opt(t.NumberNode({integer:!0})),search_radius:t.Opt(t.NumberNode({integer:!0})),skip_existing_chunks:t.Opt(t.BooleanNode())},"minecraft:fill_player_head":{entity:n},"minecraft:limit_count":{limit:a("int_range")},"minecraft:looting_enchant":{count:a("number_provider"),limit:t.Opt(t.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:t.ListNode(a("attribute_modifier"))},"minecraft:set_banner_pattern":{patterns:t.ListNode(t.ObjectNode({pattern:i({enum:"banner_pattern"}),color:i({enum:"dye_color"})})),append:t.Opt(t.BooleanNode())},"minecraft:set_contents":{entries:t.ListNode(a("loot_entry"))},"minecraft:set_count":{count:a("number_provider"),add:t.Opt(t.BooleanNode())},"minecraft:set_damage":{damage:a("number_provider"),add:t.Opt(t.BooleanNode())},"minecraft:set_enchantments":{enchantments:t.MapNode(i({validator:"resource",params:{pool:"enchantment"}}),a("number_provider")),add:t.Opt(t.BooleanNode())},"minecraft:set_loot_table":{name:i({validator:"resource",params:{pool:"$loot_table"}}),seed:t.Opt(t.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:t.Opt(n),lore:t.ListNode(a("text_component")),replace:t.Opt(t.BooleanNode())},"minecraft:set_name":{entity:t.Opt(n),name:t.Opt(a("text_component"))},"minecraft:set_nbt":{tag:i({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:t.Opt(t.ListNode(t.ObjectNode({type:i({validator:"resource",params:{pool:"mob_effect"}}),duration:a("number_provider")})))}},c={};return o.get("loot_function_type").forEach((t=>{c[t]=m(m({},s[t]),e)})),c},e.DimensionTypePresets=r=>t.ObjectOrPreset(i({validator:"resource",params:{pool:"$dimension_type"}}),r,{"minecraft:overworld":e.DefaultDimensionType,"minecraft:the_nether":{name:"minecraft:the_nether",ultrawarm:!0,natural:!1,shrunk:!0,piglin_safe:!0,respawn_anchor_works:!0,bed_works:!1,has_raids:!1,has_skylight:!1,has_ceiling:!0,ambient_light:.1,fixed_time:18e3,logical_height:128,effects:"minecraft:the_nether",infiniburn:"minecraft:infiniburn_nether",min_y:0,height:256},"minecraft:the_end":{name:"minecraft:the_end",ultrawarm:!1,natural:!1,shrunk:!1,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!1,has_raids:!0,has_skylight:!1,has_ceiling:!1,ambient_light:0,fixed_time:6e3,logical_height:256,effects:"minecraft:the_end",infiniburn:"minecraft:infiniburn_end",min_y:0,height:256}}),e.NoiseSettingsPresets=r=>t.ObjectOrPreset(i({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),r,{"minecraft:overworld":e.DefaultNoiseSettings,"minecraft:nether":{name:"minecraft:nether",bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,disable_mob_generation:!0,noise_caves_enabled:!1,aquifers_enabled:!1,deepslate_enabled:!1,noise:{min_y:0,height:128,density_factor:0,density_offset:.019921875,simplex_surface_noise:!1,random_density_offset:!1,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},top_slide:{target:120,size:3,offset:0},bottom_slide:{target:320,size:4,offset:-1}},default_block:{Name:"minecraft:netherrack"},default_fluid:{Name:"minecraft:lava",Properties:{level:"0"}}},"minecraft:end":{name:"minecraft:end",bedrock_roof_position:-10,bedrock_floor_position:-10,sea_level:0,disable_mob_generation:!0,noise_caves_enabled:!1,aquifers_enabled:!1,deepslate_enabled:!1,noise:{min_y:0,height:128,density_factor:0,density_offset:0,simplex_surface_noise:!0,random_density_offset:!1,island_noise_override:!0,size_horizontal:2,size_vertical:1,sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-3e3,size:64,offset:-46},bottom_slide:{target:-30,size:7,offset:1}},default_block:{Name:"minecraft:end_stone"},default_fluid:{Name:"minecraft:air"}},"minecraft:amplified":{name:"minecraft:amplified",bedrock_roof_position:-10,bedrock_floor_position:0,sea_level:63,disable_mob_generation:!1,noise_caves_enabled:!0,aquifers_enabled:!0,deepslate_enabled:!0,noise:{min_y:0,height:256,density_factor:1,density_offset:-.46875,simplex_surface_noise:!0,random_density_offset:!0,amplified:!0,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-10,size:3,offset:0},bottom_slide:{target:-30,size:0,offset:0}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},"minecraft:caves":{name:"minecraft:caves",bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,disable_mob_generation:!0,noise_caves_enabled:!1,aquifers_enabled:!1,deepslate_enabled:!1,noise:{min_y:0,height:128,density_factor:0,density_offset:.019921875,simplex_surface_noise:!1,random_density_offset:!1,size_horizontal:1,size_vertical:2,sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60},top_slide:{target:120,size:3,offset:0},bottom_slide:{target:320,size:4,offset:-1}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}},"minecraft:floating_islands":{name:"minecraft:floating_islands",bedrock_roof_position:-10,bedrock_floor_position:-10,sea_level:0,disable_mob_generation:!0,noise_caves_enabled:!1,aquifers_enabled:!1,deepslate_enabled:!1,noise:{min_y:0,height:128,density_factor:0,density_offset:0,simplex_surface_noise:!0,random_density_offset:!1,island_noise_override:!0,size_horizontal:2,size_vertical:1,sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160},top_slide:{target:-3e3,size:64,offset:-46},bottom_slide:{target:-30,size:7,offset:1}},default_block:{Name:"minecraft:stone"},default_fluid:{Name:"minecraft:water",Properties:{level:"0"}}}})}}(Uo);var qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.initConditionSchemas=void 0;const Zo=Be,Ho=Uo;qo.initConditionSchemas=function(e,t){const r=Zo.Reference.bind(void 0,e),o=Zo.StringNode.bind(void 0,t);e.register("predicate",Zo.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",Zo.Mod(Zo.ObjectNode({condition:o({validator:"resource",params:{pool:"loot_condition_type"}}),[Zo.Switch]:[{push:"condition"}],[Zo.Case]:Ho.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.initDimensionSchemas=void 0;const Xo=Be,Yo=Uo;Wo.initDimensionSchemas=function(e,t){const r=Xo.Reference.bind(void 0,e),o=Xo.StringNode.bind(void 0,t),i=e=>Xo.Mod(e,{enabled:e=>void 0===e.push("preset").get()});e.register("dimension",Xo.Mod(Xo.ObjectNode({type:Yo.DimensionTypePresets(r("dimension_type")),generator:Xo.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[Xo.Switch]:[{push:"type"}],[Xo.Case]:{"minecraft:noise":{seed:Xo.NumberNode({integer:!0}),settings:Yo.NoiseSettingsPresets(r("noise_settings")),biome_source:Xo.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/biome_source"}}),[Xo.Switch]:[{push:"type"}],[Xo.Case]:{"minecraft:fixed":{biome:o({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{seed:Xo.NumberNode({integer:!0}),preset:Xo.Opt(o({enum:["nether"]})),altitude_noise:i(r("generator_biome_noise")),temperature_noise:i(r("generator_biome_noise")),humidity_noise:i(r("generator_biome_noise")),weirdness_noise:i(r("generator_biome_noise")),biomes:i(Xo.Mod(Xo.ListNode(r("generator_biome")),{default:()=>[{biome:"minecraft:plains"}]}))},"minecraft:checkerboard":{scale:Xo.Opt(Xo.NumberNode({integer:!0,min:0,max:62})),biomes:Xo.ListNode(o({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:Xo.NumberNode({integer:!0})},"minecraft:vanilla_layered":{seed:Xo.NumberNode({integer:!0}),large_biomes:Xo.Opt(Xo.BooleanNode()),legacy_biome_init_layer:Xo.Opt(Xo.BooleanNode())}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:Xo.ObjectNode({biome:Xo.Opt(o({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:Xo.Opt(Xo.BooleanNode()),features:Xo.Opt(Xo.BooleanNode()),layers:Xo.ListNode(r("generator_layer")),structures:r("generator_structures")})}}},{disableSwitchContext:!0})},{category:"pool",context:"dimension"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:fixed",seed:e,biome:"minecraft:plains"},settings:"minecraft:overworld"}}}})),e.register("generator_biome",Xo.Mod(Xo.ObjectNode({biome:o({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:Xo.ObjectNode({altitude:Xo.NumberNode(),temperature:Xo.NumberNode(),humidity:Xo.NumberNode(),weirdness:Xo.NumberNode(),offset:Xo.NumberNode()})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})})),e.register("generator_biome_noise",Xo.Mod(Xo.ObjectNode({firstOctave:Xo.NumberNode({integer:!0}),amplitudes:Xo.ListNode(Xo.NumberNode())},{context:"generator_biome_noise"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})}))};var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.initDimensionTypeSchemas=void 0;const Ko=Be,Go=Uo;Jo.initDimensionTypeSchemas=function(e,t){const r=Ko.StringNode.bind(void 0,t);e.register("dimension_type",Ko.Mod(Ko.ObjectNode({name:Ko.Mod(r({validator:"resource",params:{pool:"$dimension_type",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),ultrawarm:Ko.BooleanNode(),natural:Ko.BooleanNode(),piglin_safe:Ko.BooleanNode(),respawn_anchor_works:Ko.BooleanNode(),bed_works:Ko.BooleanNode(),has_raids:Ko.BooleanNode(),has_skylight:Ko.BooleanNode(),has_ceiling:Ko.BooleanNode(),coordinate_scale:Ko.NumberNode({min:1e-5,max:3e7}),ambient_light:Ko.NumberNode(),fixed_time:Ko.Opt(Ko.NumberNode({integer:!0})),logical_height:Ko.NumberNode({integer:!0,min:0,max:4096}),effects:Ko.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}}),min_y:Ko.NumberNode({integer:!0,min:-2048,max:2047}),height:Ko.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>Go.DefaultDimensionType,validate:(t,r,o,i)=>((null==(r=e.validate(t,r,o,i))?void 0:r.min_y)+(null==r?void 0:r.height)>2047&&o.add(t.push("height"),"error.min_y_plus_height",2047),(null==r?void 0:r.logical_height)>(null==r?void 0:r.height)&&o.add(t.push("logical_height"),"error.logical_height"),(null==r?void 0:r.height)%16!=0&&o.add(t.push("height"),"error.height_multiple",16),(null==r?void 0:r.min_y)%16!=0&&o.add(t.push("min_y"),"error.min_y_multiple",16),r)}))))};var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.initItemModifierSchemas=void 0;const Qo=Be,ei=Uo;Vo.initItemModifierSchemas=function(e,t){const r=Qo.Reference.bind(void 0,e),o=Qo.StringNode.bind(void 0,t);e.register("item_modifier",Qo.ObjectOrList(r("function"),{choiceContext:"function"}));const i={conditions:Qo.Opt(Qo.ListNode(r("condition")))};e.register("function",Qo.Mod(Qo.ObjectNode({function:o({validator:"resource",params:{pool:"loot_function_type"}}),[Qo.Switch]:[{push:"function"}],[Qo.Case]:ei.FunctionCases(i)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var ti={},ri={};Object.defineProperty(ri,"__esModule",{value:!0}),ri.LootFunctions=ri.LootConditions=ri.LootCopySources=ri.LootEntitySources=ri.LootTableTypes=void 0,ri.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]),ri.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),ri.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),ri.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]),ri.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_banner_pattern",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]),Object.defineProperty(ti,"__esModule",{value:!0}),ti.initLootTableSchemas=void 0;const oi=Be,ii=ri,ai=Uo;ti.initLootTableSchemas=function(e,t){const r=oi.Reference.bind(void 0,e),o=oi.StringNode.bind(void 0,t),i={conditions:oi.Opt(oi.ListNode(r("loot_condition")))},a=m({functions:oi.Opt(oi.ListNode(r("loot_function")))},i);function n(e,r,o){const i=[],a=o=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>o.includes(e)))}));for(const[t,{allows:n,requires:s}]of ii.LootTableTypes){const e=[...n,...s];i.push({match:e=>e.getModel().get(new oi.Path(["type"]))===t,node:o(a(e))})}return i.push({match:e=>!0,node:o(r)}),oi.SwitchNode(i)}const s=n(ii.LootConditions,"loot_condition_type",(e=>o({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),c=n(ii.LootFunctions,"loot_function_type",(e=>o({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),l=n(ii.LootEntitySources,"entity_source",(e=>o({enum:e}))),d=n(ii.LootCopySources,"copy_source",(e=>o({enum:e})));e.register("loot_table",oi.Mod(oi.ObjectNode({type:oi.Opt(o({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:oi.Opt(oi.ListNode(oi.Mod(oi.ObjectNode(m({rolls:r("number_provider"),bonus_rolls:oi.Opt(r("number_provider")),entries:oi.ListNode(r("loot_entry"))},a),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:oi.Opt(oi.ListNode(r("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const _={enabled:e=>{var t;return(null===(t=e.pop().get())||void 0===t?void 0:t.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(e.push("type").get())}};e.register("loot_entry",oi.Mod(oi.ObjectNode({type:o({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:oi.Opt(oi.Mod(oi.NumberNode({integer:!0,min:1}),_)),quality:oi.Opt(oi.Mod(oi.NumberNode({integer:!0}),_)),[oi.Switch]:[{push:"type"}],[oi.Case]:{"minecraft:alternatives":m({children:oi.ListNode(r("loot_entry"))},a),"minecraft:dynamic":m({name:o()},a),"minecraft:group":m({children:oi.ListNode(r("loot_entry"))},a),"minecraft:item":m({name:o({validator:"resource",params:{pool:"item"}})},a),"minecraft:loot_table":m({name:o({validator:"resource",params:{pool:"$loot_table"}})},a),"minecraft:sequence":m({children:oi.ListNode(r("loot_entry"))},a),"minecraft:tag":m({name:o({validator:"resource",params:{pool:"$tag/item"}}),expand:oi.Opt(oi.BooleanNode())},a)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",oi.Mod(oi.ObjectNode({function:c,[oi.Switch]:[{push:"function"}],[oi.Case]:ai.FunctionCases(i,d,l)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",oi.Mod(oi.ObjectNode({condition:s,[oi.Switch]:[{push:"condition"}],[oi.Case]:ai.ConditionCases(l)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",oi.Mod(oi.ObjectNode({attribute:o({validator:"resource",params:{pool:"attribute"}}),name:o(),amount:r("number_provider"),operation:o({enum:["addition","multiply_base","multiply_total"]}),slot:oi.StringOrList(o({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.initPackMcmetaSchemas=void 0;const si=Be;ni.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",si.Mod(si.ObjectNode({pack:si.Mod(si.ObjectNode({pack_format:si.Mod(si.NumberNode({integer:!0,min:7,max:7}),{default:()=>7,canUpdate:(e,t)=>7!==t,update:()=>[{name:"pack_format",params:[7],newValue:7}]}),description:si.Reference(e,"text_component")}),{default:()=>({pack_format:7,description:""})})}),{default:()=>({pack:{pack_format:7,description:""}})}))};var ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.initPredicatesSchemas=void 0;const li=Be;ci.initPredicatesSchemas=function(e,t){const r=li.Reference.bind(void 0,e),o=li.StringNode.bind(void 0,t),i=li.ChoiceNode([{type:"string",node:o(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:li.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:li.ObjectNode({min:li.Opt(li.NumberNode({integer:!0})),max:li.Opt(li.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:li.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",li.ObjectNode({items:li.Opt(li.ListNode(o({validator:"resource",params:{pool:"item"}}))),tag:li.Opt(o({validator:"resource",params:{pool:"$tag/item"}})),count:r("int_bounds"),durability:r("int_bounds"),potion:li.Opt(o({validator:"resource",params:{pool:"potion"}})),nbt:li.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:li.Opt(li.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",li.ObjectNode({enchantment:li.Opt(o({validator:"resource",params:{pool:"enchantment"}})),levels:r("int_bounds")},{context:"enchantment"})),e.register("block_predicate",li.ObjectNode({blocks:li.Opt(li.ListNode(o({validator:"resource",params:{pool:"block"}}))),tag:li.Opt(o({validator:"resource",params:{pool:"$tag/block"}})),nbt:li.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:li.Opt(li.MapNode(o(),i,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",li.ObjectNode({fluid:li.Opt(o({validator:"resource",params:{pool:"fluid"}})),tag:li.Opt(o({validator:"resource",params:{pool:"$tag/fluid"}})),state:li.Opt(li.MapNode(o(),i))},{context:"fluid"})),e.register("location_predicate",li.ObjectNode({position:li.Opt(li.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds")})),biome:li.Opt(o({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:li.Opt(o({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:li.Opt(o({validator:"resource",params:{pool:"$dimension"}})),light:li.Opt(li.ObjectNode({light:r("int_bounds")})),smokey:li.Opt(li.BooleanNode()),block:li.Opt(r("block_predicate")),fluid:li.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",li.ObjectNode({type:o({validator:"resource",params:{pool:"stat_type"}}),stat:o(),value:r("int_bounds"),[li.Switch]:[{push:"type"}],[li.Case]:{"minecraft:mined":{stat:o({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:o({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:o({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:o({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",li.ObjectNode({gamemode:li.Opt(o({enum:"gamemode"})),level:r("int_bounds"),advancements:li.Opt(li.MapNode(o({validator:"resource",params:{pool:"$advancement"}}),li.ChoiceNode([{type:"boolean",node:li.BooleanNode(),change:e=>!0},{type:"object",node:li.MapNode(o(),li.BooleanNode())}]))),recipes:li.Opt(li.MapNode(o({validator:"resource",params:{pool:"$recipe"}}),li.BooleanNode())),stats:li.Opt(li.ListNode(r("statistic_predicate"))),looking_at:li.Opt(r("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",li.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds"),ambient:li.Opt(li.BooleanNode()),visible:li.Opt(li.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",li.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds"),absolute:r("float_bounds"),horizontal:r("float_bounds")},{context:"distance"})),e.register("entity_predicate",li.ObjectNode({type:li.Opt(o({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:li.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:li.Opt(o({validator:"team"})),location:li.Opt(r("location_predicate")),stepping_on:li.Opt(r("location_predicate")),distance:li.Opt(r("distance_predicate")),flags:li.Opt(li.ObjectNode({is_on_fire:li.Opt(li.BooleanNode()),is_sneaking:li.Opt(li.BooleanNode()),is_sprinting:li.Opt(li.BooleanNode()),is_swimming:li.Opt(li.BooleanNode()),is_baby:li.Opt(li.BooleanNode())})),equipment:li.Opt(li.MapNode(o({enum:"slot"}),r("item_predicate"))),player:li.Opt(r("player_predicate")),vehicle:li.Opt(r("entity_predicate")),passenger:li.Opt(r("entity_predicate")),targeted_entity:li.Opt(r("entity_predicate")),lightning_bolt:li.Opt(li.ObjectNode({blocks_set_on_fire:li.Opt(r("int_bounds")),entity_struck:li.Opt(r("entity_predicate"))})),fishing_hook:li.Opt(li.ObjectNode({in_open_water:li.Opt(li.BooleanNode())})),effects:li.Opt(li.MapNode(o({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",li.ObjectNode({is_explosion:li.Opt(li.BooleanNode()),is_fire:li.Opt(li.BooleanNode()),is_magic:li.Opt(li.BooleanNode()),is_projectile:li.Opt(li.BooleanNode()),is_lightning:li.Opt(li.BooleanNode()),bypasses_armor:li.Opt(li.BooleanNode()),bypasses_invulnerability:li.Opt(li.BooleanNode()),bypasses_magic:li.Opt(li.BooleanNode()),source_entity:li.Opt(r("entity_predicate")),direct_entity:li.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",li.ObjectNode({dealt:r("float_bounds"),taken:r("float_bounds"),blocked:li.Opt(li.BooleanNode()),source_entity:li.Opt(r("entity_predicate")),type:li.Opt(r("damage_source_predicate"))},{context:"damage"}))};var di={};Object.defineProperty(di,"__esModule",{value:!0}),di.initRecipeSchemas=void 0;const mi=Be;di.initRecipeSchemas=function(e,t){const r=mi.Reference.bind(void 0,e),o=mi.StringNode.bind(void 0,t);e.register("recipe",mi.Mod(mi.ObjectNode({type:o({validator:"resource",params:{pool:"recipe_serializer"}}),[mi.Switch]:[{push:"type"}],[mi.Case]:{"minecraft:crafting_shaped":{group:mi.Opt(o({enum:"recipe_group",additional:!0})),pattern:mi.ListNode(o()),key:mi.MapNode(o(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:mi.Opt(o()),ingredients:mi.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:mi.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:mi.Opt(mi.NumberNode()),cookingtime:mi.Opt(mi.Mod(mi.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:mi.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:mi.Opt(mi.NumberNode()),cookingtime:mi.Opt(mi.Mod(mi.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:mi.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:mi.Opt(mi.NumberNode()),cookingtime:mi.Opt(mi.Mod(mi.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:mi.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:mi.Opt(mi.NumberNode()),cookingtime:mi.Opt(mi.Mod(mi.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:mi.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),count:mi.NumberNode({integer:!0})},"minecraft:smithing":{group:mi.Opt(o()),base:r("recipe_ingredient_object"),addition:r("recipe_ingredient_object"),result:r("recipe_result")}}},{context:"recipe"}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",mi.Mod(mi.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:mi.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",mi.Mod(mi.ObjectNode({item:mi.Opt(o({validator:"resource",params:{pool:"item"}})),tag:mi.Opt(o({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",mi.Mod(mi.ObjectNode({item:o({validator:"resource",params:{pool:"item"}}),count:mi.Opt(mi.Mod(mi.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var _i={};Object.defineProperty(_i,"__esModule",{value:!0}),_i.initTagsSchemas=void 0;const pi=Be;_i.initTagsSchemas=function(e,t){const r=pi.StringNode.bind(void 0,t),o=e=>pi.Mod(pi.ObjectNode({replace:pi.Opt(pi.BooleanNode()),values:pi.ListNode(pi.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:pi.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:pi.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",o("block")),e.register("entity_type_tag",o("entity_type")),e.register("fluid_tag",o("fluid")),e.register("function_tag",o("$function")),e.register("game_event_tag",o("game_event")),e.register("item_tag",o("item"))};var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.initTextComponentSchemas=void 0;const fi=Be;ui.initTextComponentSchemas=function(e,t){const r=fi.Reference.bind(void 0,e),o=fi.StringNode.bind(void 0,t),i=e=>{var t;return e instanceof Array?i(e[0]):null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"object"==typeof e?"":null==e?void 0:e.toString()};e.register("text_component",fi.Mod(fi.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:i(e[0])}:"object"==typeof e?e:{text:i(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:o(),change:i},{type:"number",node:fi.NumberNode(),change:e=>{const t=parseFloat(i(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:fi.BooleanNode(),change:e=>{const t=i(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const a={color:fi.Opt(o()),font:fi.Opt(o()),bold:fi.Opt(fi.BooleanNode()),italic:fi.Opt(fi.BooleanNode()),underlined:fi.Opt(fi.BooleanNode()),strikethrough:fi.Opt(fi.BooleanNode()),obfuscated:fi.Opt(fi.BooleanNode()),insertion:fi.Opt(o()),clickEvent:fi.Opt(fi.ObjectNode({action:o({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[fi.Switch]:[{push:"action"}],[fi.Case]:{change_page:{value:o()},copy_to_clipboard:{value:o()},open_file:{value:o()},open_url:{value:o()},run_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:fi.Opt(fi.ObjectNode({action:o({enum:["show_text","show_item","show_entity"]}),[fi.Switch]:[{push:"action"}],[fi.Case]:{show_text:{value:fi.Opt(r("text_component")),contents:fi.Opt(r("text_component"))},show_item:{value:fi.Opt(o({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:fi.Opt(fi.ObjectNode({id:o({validator:"resource",params:{pool:"item"}}),count:fi.Opt(fi.NumberNode({integer:!0})),tag:fi.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:fi.Opt(fi.ObjectNode({name:fi.Opt(o()),type:fi.Opt(o()),id:fi.Opt(o())})),contents:fi.Opt(fi.Mod(fi.ObjectNode({name:fi.Opt(r("text_component")),type:o({validator:"resource",params:{pool:"entity_type"}}),id:o({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:fi.Opt(r("text_component_list"))};e.register("text_component_object",fi.Mod(fi.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:fi.ObjectNode(m({text:o()},a))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:fi.ObjectNode(m({translate:o(),with:fi.Opt(r("text_component_list"))},a))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:fi.ObjectNode(m({score:fi.ObjectNode({name:o({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:o({validator:"objective"}),value:fi.Opt(o())})},a))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:fi.ObjectNode(m({selector:o({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:fi.Opt(r("text_component"))},a))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:fi.ObjectNode(m({keybind:o({enum:"keybind",additional:!0})},a))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:fi.ObjectNode(m({nbt:o({validator:"nbt_path"}),block:fi.Opt(o({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:fi.Opt(o({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:fi.Opt(o({validator:"resource",params:{pool:"$storage"}})),interpret:fi.Opt(fi.BooleanNode()),separator:fi.Opt(r("text_component"))},a))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",fi.Mod(fi.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var hi={},bi={};Object.defineProperty(bi,"__esModule",{value:!0}),bi.initBiomeSchemas=void 0;const gi=Be;bi.initBiomeSchemas=function(e,t){const r=gi.StringNode.bind(void 0,t);e.register("biome",gi.Mod(gi.ObjectNode({surface_builder:r({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),depth:gi.NumberNode(),scale:gi.NumberNode(),temperature:gi.NumberNode(),downfall:gi.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:gi.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),player_spawn_friendly:gi.Opt(gi.BooleanNode()),creature_spawn_probability:gi.Opt(gi.NumberNode({min:0,max:1})),effects:gi.ObjectNode({sky_color:gi.NumberNode({color:!0}),fog_color:gi.NumberNode({color:!0}),water_color:gi.NumberNode({color:!0}),water_fog_color:gi.NumberNode({color:!0}),grass_color:gi.Opt(gi.NumberNode({color:!0})),foliage_color:gi.Opt(gi.NumberNode({color:!0})),grass_color_modifier:gi.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:gi.Opt(r()),mood_sound:gi.Opt(gi.ObjectNode({sound:r(),tick_delay:gi.NumberNode({integer:!0}),block_search_extent:gi.NumberNode({integer:!0}),offset:gi.NumberNode()})),additions_sound:gi.Opt(gi.ObjectNode({sound:r(),tick_chance:gi.NumberNode({min:0,max:1})})),music:gi.Opt(gi.ObjectNode({sound:r(),min_delay:gi.NumberNode({integer:!0,min:0}),max_delay:gi.NumberNode({integer:!0,min:0}),replace_current_music:gi.BooleanNode()})),particle:gi.Opt(gi.ObjectNode({options:gi.ObjectNode({type:r()}),probability:gi.NumberNode({min:0,max:1})}))}),starts:gi.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_structure_feature"}})),spawners:gi.MapNode(r({enum:["monster","creature","ambient","underground_water_creature","water_creature","water_ambient","misc"]}),gi.Mod(gi.ListNode(gi.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:gi.NumberNode({integer:!0}),minCount:gi.NumberNode({integer:!0}),maxCount:gi.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:gi.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),gi.Mod(gi.ObjectNode({energy_budget:gi.NumberNode(),charge:gi.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:gi.MapNode(r({enum:["air","liquid"]}),gi.Mod(gi.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:gi.ListNode(gi.Mod(gi.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_feature"}})),{category:()=>"predicate"}),{maxLength:10})},{context:"biome"}),{default:()=>({surface_builder:"minecraft:grass",depth:.125,scale:.05,temperature:.8,downfall:.4,precipitation:"rain",category:"plains",effects:{sky_color:7907327,fog_color:12638463,water_color:4159204,water_fog_color:329011}})}))};var vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.initCarverSchemas=void 0;const yi=Be,Ni=Uo;vi.initCarverSchemas=function(e,t){const r=yi.Reference.bind(void 0,e),o=yi.StringNode.bind(void 0,t),i={vertical_rotation:Ni.FloatProvider(),shape:yi.ObjectNode({distance_factor:Ni.FloatProvider(),thickness:Ni.FloatProvider(),width_smoothness:yi.NumberNode({integer:!0,min:0}),horizontal_radius_factor:Ni.FloatProvider(),vertical_radius_default_factor:yi.NumberNode(),vertical_radius_center_factor:yi.NumberNode()})},a={horizontal_radius_multiplier:Ni.FloatProvider(),vertical_radius_multiplier:Ni.FloatProvider(),floor_level:Ni.FloatProvider({min:-1,max:1})};e.register("configured_carver",yi.Mod(yi.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/carver"}}),config:yi.ObjectNode({probability:yi.NumberNode({min:0,max:1}),y:r("height_provider"),yScale:Ni.FloatProvider(),lava_level:r("vertical_anchor"),aquifers_enabled:yi.BooleanNode(),debug_settings:yi.Opt(yi.ObjectNode({debug_mode:yi.Opt(yi.BooleanNode()),air_state:yi.Opt(r("block_state")),water_state:yi.Opt(r("block_state")),lava_state:yi.Opt(r("block_state")),barrier_state:yi.Opt(r("block_state"))})),[yi.Switch]:["pop",{push:"type"}],[yi.Case]:{"minecraft:canyon":i,"minecraft:cave":a,"minecraft:nether_cave":a}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var Oi={};Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.initDecoratorSchemas=void 0;const ki=Be,wi=Uo;Oi.initDecoratorSchemas=function(e,t){const r=ki.Reference.bind(void 0,e),o=ki.StringNode.bind(void 0,t),i={count:wi.IntProvider({min:0,max:256})};e.register("configured_decorator",ki.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/decorator"}}),config:ki.ObjectNode({[ki.Switch]:["pop",{push:"type"}],[ki.Case]:{"minecraft:carving_mask":{step:o({enum:"generation_step"})},"minecraft:cave_surface":{surface:o({enum:["floor","ceiling"]}),floor_to_ceiling_search_range:ki.NumberNode({integer:!0})},"minecraft:chance":{chance:ki.NumberNode({integer:!0,min:0})},"minecraft:count":i,"minecraft:count_extra":{count:ki.NumberNode({integer:!0,min:0}),extra_count:ki.NumberNode({integer:!0,min:0}),extra_chance:ki.NumberNode({min:0,max:1})},"minecraft:count_multilayer":i,"minecraft:count_noise":{noise_level:ki.NumberNode(),below_noise:ki.NumberNode({integer:!0}),above_noise:ki.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:ki.NumberNode({integer:!0}),noise_factor:ki.NumberNode(),noise_offset:ki.Opt(ki.NumberNode())},"minecraft:decorated":{outer:r("configured_decorator"),inner:r("configured_decorator")},"minecraft:heightmap":{heightmap:o({enum:"heightmap_type"})},"minecraft:heightmap_spread_double":{heightmap:o({enum:"heightmap_type"})},"minecraft:lava_lake":{chance:ki.NumberNode({integer:!0,min:0})},"minecraft:range":{height:r("height_provider")},"minecraft:water_depth_threshold":{max_water_depth:ki.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var xi={},ji={};Object.defineProperty(ji,"__esModule",{value:!0}),ji.initProcessorListSchemas=ji.Processors=void 0;const Si=Be;ji.initProcessorListSchemas=function(e,t){const r=Si.Reference.bind(void 0,e),o=Si.StringNode.bind(void 0,t);ji.Processors=Si.ChoiceNode([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:r("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]),e.register("processor_list",Si.Mod(Si.ObjectNode({processors:Si.ListNode(r("processor"))},{context:"processor_list"}),{default:()=>({processors:[{processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]}]})})),e.register("processor",Si.Mod(Si.ObjectNode({processor_type:o({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[Si.Switch]:[{push:"processor_type"}],[Si.Case]:{"minecraft:block_age":{mossiness:Si.NumberNode()},"minecraft:block_ignore":{blocks:Si.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:Si.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:o({enum:"heightmap_type"}),offset:Si.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:o({validator:"resource",params:{pool:"$tag/block"}})},"minecraft:rule":{rules:Si.ListNode(r("processor_rule"))}}},{category:"function",context:"processor"}),{default:()=>({processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]})})),e.register("processor_rule",Si.Mod(Si.ObjectNode({position_predicate:Si.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:Si.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:block"}}}))},{category:"predicate",context:"processor_rule"}),{default:()=>({location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}})}));const i={min_dist:Si.Opt(Si.NumberNode({min:0,max:255,integer:!0})),max_dist:Si.Opt(Si.NumberNode({min:0,max:255,integer:!0})),min_chance:Si.Opt(Si.NumberNode({min:0,max:1})),max_chance:Si.Opt(Si.NumberNode({min:0,max:1}))};e.register("pos_rule_test",Si.ObjectNode({predicate_type:o({validator:"resource",params:{pool:"pos_rule_test"}}),[Si.Switch]:[{push:"predicate_type"}],[Si.Case]:{"minecraft:axis_aligned_linear_pos":m({axis:o({enum:["x","y","z"]})},i),"minecraft:linear_pos":i}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",Si.ObjectNode({predicate_type:o({validator:"resource",params:{pool:"rule_test"}}),[Si.Switch]:[{push:"predicate_type"}],[Si.Case]:{"minecraft:block_match":{block:o({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:o({validator:"resource",params:{pool:"block"}}),probability:Si.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:Si.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:o({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(xi,"__esModule",{value:!0}),xi.initFeatureSchemas=void 0;const Mi=Be,Pi=Uo,Ci=ji;xi.initFeatureSchemas=function(e,t){const r=Mi.Reference.bind(void 0,e),o=Mi.StringNode.bind(void 0,t),i={can_replace:Mi.Opt(Mi.BooleanNode()),project:Mi.Opt(Mi.BooleanNode()),need_water:Mi.Opt(Mi.BooleanNode()),xspread:Mi.Opt(Mi.NumberNode({integer:!0,min:0})),yspread:Mi.Opt(Mi.NumberNode({integer:!0,min:0})),zspread:Mi.Opt(Mi.NumberNode({integer:!0,min:0})),tries:Mi.Opt(Mi.NumberNode({integer:!0,min:1})),state_provider:r("block_state_provider"),block_placer:r("block_placer"),whitelist:Mi.ListNode(r("block_state")),blacklist:Mi.ListNode(r("block_state"))},a={state:r("block_state"),radius:Pi.IntProvider({min:0,max:8}),half_height:Mi.NumberNode({integer:!0,min:0,max:4}),targets:Mi.ListNode(r("block_state"))},n={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:Mi.Opt(Mi.NumberNode({integer:!0}))},s=Mi.ObjectNode({target:r("rule_test"),state:r("block_state")}),c={size:Mi.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:Mi.NumberNode({min:0,max:1}),targets:Mi.ListNode(s)},l=Mi.ChoiceNode([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"}),d={surface:o({enum:["floor","ceiling"]}),depth:Pi.IntProvider({min:1,max:128}),vertical_range:Mi.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:Mi.NumberNode({min:0,max:1}),extra_edge_column_chance:Mi.NumberNode({min:0,max:1}),vegetation_chance:Mi.NumberNode({min:0,max:1}),xz_radius:Pi.IntProvider(),replaceable:o({validator:"resource",params:{pool:"$tag/block"}}),ground_state:r("block_state_provider"),vegetation_feature:l};e.register("configured_feature",Mi.Mod(Mi.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/feature"}}),config:Mi.ObjectNode({[Mi.Switch]:["pop",{push:"type"}],[Mi.Case]:{"minecraft:bamboo":{probability:Mi.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:Pi.IntProvider({min:0,max:3}),height:Pi.IntProvider({min:1,max:10})},"minecraft:block_pile":{state_provider:r("block_state_provider")},"minecraft:decorated":{decorator:r("configured_decorator"),feature:l},"minecraft:decorated_flower":{decorator:r("configured_decorator"),feature:l},"minecraft:delta_feature":{contents:r("block_state"),rim:r("block_state"),size:Pi.IntProvider({min:0,max:16}),rim_size:Pi.IntProvider({min:0,max:16})},"minecraft:disk":a,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:Mi.NumberNode({integer:!0,min:1,max:512}),height:Pi.IntProvider({min:0,max:128}),radius:Pi.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:Mi.NumberNode({integer:!0,min:0,max:64}),height_deviation:Mi.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:Pi.IntProvider({min:0,max:128}),density:Pi.FloatProvider({min:0,max:2}),wetness:Pi.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:Mi.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:Mi.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:Mi.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:Mi.BooleanNode(),exit:Mi.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:Mi.Opt(Mi.BooleanNode()),crystal_beam_target:Mi.Opt(r("block_pos")),spikes:Mi.ListNode(Mi.ObjectNode({centerX:Mi.Opt(Mi.NumberNode({integer:!0})),centerZ:Mi.Opt(Mi.NumberNode({integer:!0})),radius:Mi.Opt(Mi.NumberNode({integer:!0})),height:Mi.Opt(Mi.NumberNode({integer:!0})),guarded:Mi.Opt(Mi.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:Mi.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":i,"minecraft:forest_rock":{state:r("block_state")},"minecraft:fossil":{max_empty_corners_allowed:Mi.NumberNode({integer:!0,min:0,max:7}),fossil_structures:Mi.ListNode(o({validator:"resource",params:{pool:"$structure"}})),overlay_structures:Mi.ListNode(o({validator:"resource",params:{pool:"$structure"}})),fossil_processors:Ci.Processors,overlay_processors:Ci.Processors},"minecraft:geode":{blocks:Mi.ObjectNode({filling_provider:r("block_state_provider"),inner_layer_provider:r("block_state_provider"),alternate_inner_layer_provider:r("block_state_provider"),middle_layer_provider:r("block_state_provider"),outer_layer_provider:r("block_state_provider"),inner_placements:Mi.ListNode(r("block_state")),cannot_replace:o({validator:"resource",params:{pool:"$tag/block"}}),invalid_blocks:o({validator:"resource",params:{pool:"$tag/block"}})}),layers:Mi.ObjectNode({filling:Mi.Opt(Mi.NumberNode({min:.01,max:50})),inner_layer:Mi.Opt(Mi.NumberNode({min:.01,max:50})),middle_layer:Mi.Opt(Mi.NumberNode({min:.01,max:50})),outer_layer:Mi.Opt(Mi.NumberNode({min:.01,max:50}))}),crack:Mi.ObjectNode({generate_crack_chance:Mi.Opt(Mi.NumberNode({min:0,max:1})),base_crack_size:Mi.Opt(Mi.NumberNode({min:0,max:5})),crack_point_offset:Mi.Opt(Mi.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:Mi.Opt(Mi.NumberNode({min:0,max:1})),use_potential_placements_chance:Mi.Opt(Mi.NumberNode({min:0,max:1})),use_alternate_layer0_chance:Mi.Opt(Mi.NumberNode({min:0,max:1})),placements_require_layer0_alternate:Mi.Opt(Mi.BooleanNode()),outer_wall_distance:Mi.Opt(Pi.IntProvider({min:1,max:20})),distribution_points:Mi.Opt(Pi.IntProvider({min:1,max:20})),point_offset:Mi.Opt(Pi.IntProvider({min:0,max:10})),min_gen_offset:Mi.Opt(Mi.NumberNode({integer:!0})),max_gen_offset:Mi.Opt(Mi.NumberNode({integer:!0})),invalid_blocks_threshold:Mi.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:Mi.Opt(Mi.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:Mi.Opt(Mi.NumberNode({min:0,max:1})),can_place_on_floor:Mi.Opt(Mi.BooleanNode()),can_place_on_ceiling:Mi.Opt(Mi.BooleanNode()),can_place_on_wall:Mi.Opt(Mi.BooleanNode()),can_be_placed_on:Mi.ListNode(r("block_state"))},"minecraft:growing_plant":{direction:o({enum:["up","down","north","east","south","west"]}),allow_water:Mi.BooleanNode(),height_distribution:Mi.ListNode(Mi.ObjectNode({weight:Mi.NumberNode({integer:!0}),data:Pi.IntProvider()})),body_provider:r("block_state_provider"),head_provider:r("block_state_provider")},"minecraft:huge_brown_mushroom":n,"minecraft:huge_fungus":{hat_state:r("block_state"),decor_state:r("block_state"),stem_state:r("block_state"),valid_base_block:r("block_state"),planted:Mi.Opt(Mi.BooleanNode())},"minecraft:huge_red_mushroom":n,"minecraft:ice_patch":a,"minecraft:iceberg":{state:r("block_state")},"minecraft:lake":{state:r("block_state")},"minecraft:large_dripstone":{floor_to_ceiling_search_range:Mi.Opt(Mi.NumberNode({integer:!0,min:1,max:512})),column_radius:Pi.IntProvider({min:0,max:60}),height_scale:Pi.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:Mi.NumberNode({min:0,max:1}),stalactite_bluntness:Pi.FloatProvider({min:.1,max:10}),stalagmite_bluntness:Pi.FloatProvider({min:.1,max:10}),wind_speed:Pi.FloatProvider({min:0,max:2}),min_radius_for_wind:Mi.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:Mi.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:r("block_state_provider")},"minecraft:netherrack_replace_blobs":{state:r("block_state"),target:r("block_state"),radius:Pi.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":i,"minecraft:ore":c,"minecraft:random_patch":i,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:Mi.ListNode(Mi.ObjectNode({chance:Mi.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:replace_single_block":{targets:Mi.ListNode(s)},"minecraft:root_system":{required_vertical_space_for_tree:Mi.NumberNode({integer:!0,min:1,max:64}),root_radius:Mi.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:Mi.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:Mi.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:Mi.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:Mi.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:Mi.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:Mi.NumberNode({integer:!0,min:1,max:64}),root_replaceable:o({validator:"resource",params:{pool:"$tag/block"}}),root_state_provider:r("block_state_provider"),hanging_root_state_provider:r("block_state_provider"),feature:l},"minecraft:scattered_ore":c,"minecraft:sea_pickle":{count:Pi.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:Mi.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state_provider"),place_on:Mi.ListNode(r("block_state")),place_in:Mi.ListNode(r("block_state")),place_under:Mi.ListNode(r("block_state"))},"minecraft:simple_random_selector":{features:Mi.ListNode(l)},"minecraft:small_dripstone":{max_placements:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:100})),empty_space_search_radius:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:20})),max_offset_from_origin:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:20})),chance_of_taller_dripstone:Mi.Opt(Mi.NumberNode({min:0,max:1}))},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:Mi.NumberNode({integer:!0}),hole_count:Mi.NumberNode({integer:!0}),requires_block_below:Mi.BooleanNode(),valid_blocks:Mi.ListNode(o({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{ignore_vines:Mi.Opt(Mi.BooleanNode()),force_dirt:Mi.Opt(Mi.BooleanNode()),minimum_size:r("feature_size"),dirt_provider:r("block_state_provider"),sapling_provider:r("block_state_provider"),trunk_provider:r("block_state_provider"),foliage_provider:r("block_state_provider"),trunk_placer:Mi.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:Mi.NumberNode({integer:!0,min:0,max:32}),height_rand_a:Mi.NumberNode({integer:!0,min:0,max:24}),height_rand_b:Mi.NumberNode({integer:!0,min:0,max:24}),[Mi.Switch]:[{push:"type"}],[Mi.Case]:{"minecraft:bending_trunk_placer":{bend_length:Pi.IntProvider({min:1,max:64}),min_height_for_leaves:Mi.Opt(Mi.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:Mi.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:Pi.IntProvider({min:0,max:16}),offset:Pi.IntProvider({min:0,max:16}),[Mi.Switch]:[{push:"type"}],[Mi.Case]:{"minecraft:blob_foliage_placer":{height:Mi.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:Mi.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:Mi.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:Mi.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:Pi.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:Pi.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:Pi.IntProvider({min:1,max:512}),leaf_placement_attempts:Mi.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:Pi.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:Mi.ListNode(Mi.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[Mi.Switch]:[{push:"type"}],[Mi.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:Mi.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:Mi.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:underwater_magma":{floor_search_range:Mi.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:Mi.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:Mi.NumberNode({min:0,max:1})},"minecraft:vegetation_patch":d,"minecraft:waterlogged_vegetation_patch":d}},{context:"feature"})},{context:"feature"}),{default:()=>({type:"minecraft:decorated",config:{decorator:{type:"minecraft:count",config:{count:4}},feature:{type:"minecraft:tree",config:{max_water_depth:0,ignore_vines:!0,minimum_size:{},trunk_placer:{base_height:5,height_rand_a:2,height_rand_b:0},foliage_placer:{radius:2,offset:0,height:3}}}}})})),e.register("feature_size",Mi.Mod(Mi.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:Mi.Opt(Mi.NumberNode({min:0,max:80})),[Mi.Switch]:[{push:"type"}],[Mi.Case]:{"minecraft:two_layers_feature_size":{limit:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:81})),lower_size:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:16})),upper_size:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:80})),upper_limit:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:80})),lower_size:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:16})),middle_size:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:16})),upper_size:Mi.Opt(Mi.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})})),e.register("block_state_provider",Mi.Mod(Mi.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[Mi.Switch]:[{push:"type"}],[Mi.Case]:{"minecraft:randomized_int_state_provider":{property:o(),values:Pi.IntProvider(),source:r("block_state_provider")},"minecraft:rotated_block_provider":{state:r("block_state")},"minecraft:simple_state_provider":{state:r("block_state")},"minecraft:weighted_state_provider":{entries:Mi.ListNode(Mi.Mod(Mi.ObjectNode({weight:Mi.NumberNode({integer:!0,min:1}),data:r("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})})),e.register("block_placer",Mi.Mod(Mi.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[Mi.Switch]:[{push:"type"}],[Mi.Case]:{"minecraft:column_placer":{size:Pi.IntProvider({min:0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var Li={};Object.defineProperty(Li,"__esModule",{value:!0}),Li.initNoiseSettingsSchemas=void 0;const Bi=Be,zi=Uo;Li.initNoiseSettingsSchemas=function(e,t){const r=Bi.Reference.bind(void 0,e),o=Bi.StringNode.bind(void 0,t);e.register("noise_settings",Bi.Mod(Bi.ObjectNode({name:Bi.Mod(o({validator:"resource",params:{pool:"$worldgen/noise_settings",isDefinition:!0}}),{enabled:e=>e.getArray().length>0}),bedrock_roof_position:Bi.NumberNode({integer:!0}),bedrock_floor_position:Bi.NumberNode({integer:!0}),sea_level:Bi.NumberNode({integer:!0}),min_surface_level:Bi.NumberNode({integer:!0}),disable_mob_generation:Bi.BooleanNode(),noise_caves_enabled:Bi.BooleanNode(),noodle_caves_enabled:Bi.BooleanNode(),aquifers_enabled:Bi.BooleanNode(),deepslate_enabled:Bi.BooleanNode(),ore_veins_enabled:Bi.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:Bi.ObjectNode({min_y:Bi.NumberNode({integer:!0,min:-2048,max:2047}),height:Bi.NumberNode({integer:!0,min:0,max:4096}),density_factor:Bi.NumberNode(),density_offset:Bi.NumberNode(),size_horizontal:Bi.NumberNode({integer:!0}),size_vertical:Bi.NumberNode({integer:!0}),simplex_surface_noise:Bi.BooleanNode(),random_density_offset:Bi.Opt(Bi.BooleanNode()),island_noise_override:Bi.Opt(Bi.BooleanNode()),amplified:Bi.Opt(Bi.BooleanNode()),sampling:Bi.ObjectNode({xz_scale:Bi.NumberNode(),y_scale:Bi.NumberNode(),xz_factor:Bi.NumberNode(),y_factor:Bi.NumberNode()}),bottom_slide:Bi.ObjectNode({target:Bi.NumberNode({integer:!0}),size:Bi.NumberNode({integer:!0,min:0}),offset:Bi.NumberNode({integer:!0})}),top_slide:Bi.ObjectNode({target:Bi.NumberNode({integer:!0}),size:Bi.NumberNode({integer:!0,min:0}),offset:Bi.NumberNode({integer:!0})})}),structures:r("generator_structures")},{context:"noise_settings"}),(e=>({default:()=>zi.DefaultNoiseSettings,validate:(t,r,o,i)=>{var a,n,s,c;return(null===(a=null==(r=e.validate(t,r,o,i))?void 0:r.noise)||void 0===a?void 0:a.min_y)+(null===(n=null==r?void 0:r.noise)||void 0===n?void 0:n.height)>2047&&o.add(t.push("noise").push("height"),"error.min_y_plus_height",2047),(null===(s=null==r?void 0:r.noise)||void 0===s?void 0:s.height)%16!=0&&o.add(t.push("noise").push("height"),"error.height_multiple",16),(null===(c=null==r?void 0:r.noise)||void 0===c?void 0:c.min_y)%16!=0&&o.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),r}})))),e.register("generator_structures",Bi.ObjectNode({stronghold:Bi.Opt(Bi.ObjectNode({distance:Bi.NumberNode({integer:!0,min:0,max:1023}),spread:Bi.NumberNode({integer:!0,min:0,max:1023}),count:Bi.NumberNode({integer:!0,min:1,max:4095})})),structures:Bi.MapNode(o({validator:"resource",params:{pool:"worldgen/structure_feature"}}),Bi.Mod(Bi.ObjectNode({spacing:Bi.NumberNode({integer:!0,min:0,max:4096}),separation:Bi.Mod(Bi.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,o,i)=>(t.pop().push("spacing").get()<=r&&o.add(t,"error.separation_smaller_spacing"),e.validate(t,r,o,i))}))),salt:Bi.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",Bi.Mod(Bi.ObjectNode({block:o({validator:"resource",params:{pool:"block"}}),height:Bi.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.initStructureFeatureSchemas=void 0;const Ai=Be;Ri.initStructureFeatureSchemas=function(e,t){const r=Ai.StringNode.bind(void 0,t),o=Ai.Reference.bind(void 0,e),i={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:Ai.NumberNode({integer:!0})};e.register("configured_structure_feature",Ai.Mod(Ai.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:Ai.ObjectNode({[Ai.Switch]:["pop",{push:"type"}],[Ai.Case]:{"minecraft:bastion_remnant":i,"minecraft:buried_treasure":{probability:Ai.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:Ai.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:o("height_provider")},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:Ai.NumberNode({min:0,max:1}),cluster_probability:Ai.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":i,"minecraft:ruined_portal":{portal_type:r({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:Ai.Opt(Ai.BooleanNode())},"minecraft:village":i}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var Ii={};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.initSurfaceBuilderSchemas=void 0;const Ti=Be;Ii.initSurfaceBuilderSchemas=function(e,t){const r=Ti.StringNode.bind(void 0,t),o=Ti.Reference.bind(void 0,e);e.register("configured_surface_builder",Ti.Mod(Ti.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:Ti.ObjectNode({top_material:o("block_state"),under_material:o("block_state"),underwater_material:o("block_state")},{context:"surface_builder"})},{context:"surface_builder"}),{default:()=>({type:"minecraft:default",config:{top_material:{Name:"minecraft:grass_block",Properties:{snowy:"false"}},under_material:{Name:"minecraft:dirt"},underwater_material:{Name:"minecraft:gravel"}}})}))};var Di={};Object.defineProperty(Di,"__esModule",{value:!0}),Di.initTemplatePoolSchemas=void 0;const Ei=Be,Fi=ji;Di.initTemplatePoolSchemas=function(e,t){const r=Ei.Reference.bind(void 0,e),o=Ei.StringNode.bind(void 0,t);e.register("template_pool",Ei.Mod(Ei.ObjectNode({name:o(),fallback:o(),elements:Ei.ListNode(r("template_weighted_element"))},{context:"template_pool"}),{default:()=>({fallback:"minecraft:empty",elements:[{weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}}]})})),e.register("template_weighted_element",Ei.Mod(Ei.ObjectNode({weight:Ei.NumberNode({integer:!0,min:1}),element:r("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",Ei.Mod(Ei.ObjectNode({element_type:o({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:o({enum:["rigid","terrain_matching"]}),[Ei.Switch]:[{push:"element_type"}],[Ei.Case]:{"minecraft:feature_pool_element":{feature:o({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},"minecraft:legacy_single_pool_element":{location:o({validator:"resource",params:{pool:"$structure"}}),processors:Fi.Processors},"minecraft:list_pool_element":{elements:Ei.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:o({validator:"resource",params:{pool:"$structure"}}),processors:Fi.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(hi,"__esModule",{value:!0}),hi.initWorldgenSchemas=void 0;const $i=bi,Ui=vi,qi=Oi,Zi=xi,Hi=Li,Wi=ji,Xi=Ri,Yi=Ii,Ji=Di;hi.initWorldgenSchemas=function(e,t){Wi.initProcessorListSchemas(e,t),$i.initBiomeSchemas(e,t),Ui.initCarverSchemas(e,t),qi.initDecoratorSchemas(e,t),Zi.initFeatureSchemas(e,t),Hi.initNoiseSettingsSchemas(e,t),Xi.initStructureFeatureSchemas(e,t),Yi.initSurfaceBuilderSchemas(e,t),Ji.initTemplatePoolSchemas(e,t)};var Ki={};Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.initWorldSettingsSchemas=void 0;const Gi=Be;Ki.initWorldSettingsSchemas=function(e,t){const r=Gi.Reference.bind(void 0,e),o=Gi.StringNode.bind(void 0,t);e.register("world_settings",Gi.Mod(Gi.ObjectNode({generate_features:Gi.BooleanNode(),bonus_chest:Gi.BooleanNode(),seed:Gi.NumberNode({integer:!0}),dimensions:Gi.MapNode(o({validator:"resource",params:{pool:"$dimension"}}),r("dimension"))},{context:"world_settings"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{generate_features:!0,bonus_chest:!1,seed:e,dimensions:{"minecraft:overworld":{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:vanilla_layered",seed:e},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:multi_noise",seed:e,humidity_noise:{firstOctave:-7,amplitudes:[1,1]},altitude_noise:{firstOctave:-7,amplitudes:[1,1]},weirdness_noise:{firstOctave:-7,amplitudes:[1,1]},temperature_noise:{firstOctave:-7,amplitudes:[1,1]},biomes:[{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:0},biome:"minecraft:nether_wastes"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:-.5},biome:"minecraft:soul_sand_valley"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:.4,humidity:0},biome:"minecraft:crimson_forest"},{parameters:{altitude:0,weirdness:0,offset:.375,temperature:0,humidity:.5},biome:"minecraft:warped_forest"},{parameters:{altitude:0,weirdness:0,offset:.175,temperature:-.5,humidity:0},biome:"minecraft:basalt_deltas"}]},settings:"minecraft:nether"}},"minecraft:the_end":{type:"minecraft:the_end",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:the_end",seed:e},settings:"minecraft:end"}}}}}}))},Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.initSchemas=void 0;const Vi=Fo,Qi=Uo,ea=qo,ta=Wo,ra=Jo,oa=Vo,ia=ti,aa=ni,na=ci,sa=di,ca=_i,la=ui,da=hi,ma=Ki;Eo.initSchemas=function(e,t){Qi.initCommonSchemas(e,t),Vi.initAdvancementSchemas(e,t),ea.initConditionSchemas(e,t),ra.initDimensionTypeSchemas(e,t),ta.initDimensionSchemas(e,t),oa.initItemModifierSchemas(e,t),ia.initLootTableSchemas(e,t),aa.initPackMcmetaSchemas(e,t),na.initPredicatesSchemas(e,t),sa.initRecipeSchemas(e,t),ca.initTagsSchemas(e,t),la.initTextComponentSchemas(e,t),da.initWorldgenSchemas(e,t),ma.initWorldSettingsSchemas(e,t)};var _a=Le&&Le.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),pa=Le&&Le.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ua=Le&&Le.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&_a(t,e,r);return pa(t,e),t};Object.defineProperty(To,"__esModule",{value:!0});var fa=To.getSchemas=To.getCollections=void 0;const ha=Be,ba=Do,ga=Eo;var va=To.lootContext=ua(ri);var ya=To.getCollections=function(){const e=new ha.CollectionRegistry;return ba.initCollections(e),e};fa=To.getSchemas=function(e){const t=new ha.SchemaRegistry;return ga.initSchemas(t,e),t};var Na=Object.freeze(Object.assign(Object.create(null),To,{[Symbol.toStringTag]:"Module",get getSchemas(){return fa},get getCollections(){return ya},lootContext:va,default:To})),Oa={},ka={};Object.defineProperty(ka,"__esModule",{value:!0}),ka.initCollections=void 0,ka.initCollections=function(e){e.register("advancement_trigger",["minecraft:bee_nest_destroyed","minecraft:bred_animals","minecraft:brewed_potion","minecraft:changed_dimension","minecraft:channeled_lightning","minecraft:construct_beacon","minecraft:consume_item","minecraft:cured_zombie_villager","minecraft:effects_changed","minecraft:enchanted_item","minecraft:enter_block","minecraft:entity_hurt_player","minecraft:entity_killed_player","minecraft:filled_bucket","minecraft:fishing_rod_hooked","minecraft:hero_of_the_village","minecraft:impossible","minecraft:inventory_changed","minecraft:item_durability_changed","minecraft:item_used_on_block","minecraft:killed_by_crossbow","minecraft:levitation","minecraft:lightning_strike","minecraft:location","minecraft:nether_travel","minecraft:placed_block","minecraft:player_generates_container_loot","minecraft:player_hurt_entity","minecraft:player_interacted_with_entity","minecraft:player_killed_entity","minecraft:recipe_unlocked","minecraft:shot_crossbow","minecraft:slept_in_bed","minecraft:slide_down_block","minecraft:started_riding","minecraft:summoned_entity","minecraft:tame_animal","minecraft:target_hit","minecraft:tick","minecraft:thrown_item_picked_up_by_entity","minecraft:used_ender_eye","minecraft:used_totem","minecraft:using_item","minecraft:villager_trade","minecraft:voluntary_exile"]),e.register("keybind",["key.advancements","key.attack","key.back","key.chat","key.command","key.drop","key.forward","key.fullscreen","key.hotbar.1","key.hotbar.2","key.hotbar.3","key.hotbar.4","key.hotbar.5","key.hotbar.6","key.hotbar.7","key.hotbar.8","key.hotbar.9","key.inventory","key.jump","key.left","key.loadToolbarActivator","key.pickItem","key.playerlist","key.right","key.saveToolbarActivator","key.screenshot","key.smoothCamera","key.sneak","key.spectatorOutlines","key.sprint","key.swapOffhand","key.togglePerspective","key.use"]),e.register("slot",["mainhand","offhand","head","chest","legs","feet"]),e.register("gamemode",["survival","creative","adventure","spectator"]),e.register("entity_source",["this","killer","direct_killer","killer_player"]),e.register("copy_source",["block_entity","this","killer","killer_player"]),e.register("loot_table_apply_bonus_formula",["minecraft:uniform_bonus_count","minecraft:binomial_with_bonus_count","minecraft:ore_drops"]),e.register("map_decoration",["mansion","monument","player","frame","red_marker","blue_marker","target_x","target_point","player_off_map","player_off_limits","red_x","banner_white","banner_orange","banner_magenta","banner_light_blue","banner_yellow","banner_lime","banner_pink","banner_gray","banner_light_gray","banner_cyan","banner_purple","banner_blue","banner_brown","banner_green","banner_red","banner_black"]),e.register("map_feature",["bastion_remnant","buried_treasure","desert_pyramid","endcity","fortress","igloo","jungle_pyramid","mansion","mineshaft","monument","nether_fossil","ocean_ruin","pillager_outpost","ruined_portal","shipwreck","stronghold","swamp_hut","village"]),e.register("recipe_group",["bed","light_gray_dye","iron_ingot","wooden_stairs","black_dye","stained_terracotta","dyed_bed","magenta_dye","bark","rabbit_stew","light_blue_dye","wooden_fence_gate","planks","stained_glass","wooden_door","stained_glass_pane","wooden_fence","sticks","concrete_powder","wooden_pressure_plate","boat","brown_dye","yellow_dye","bonemeal","red_dye","wooden_trapdoor","wooden_button","gold_ingot","pink_dye","wooden_slab","orange_dye","carpet","sign","wool","sugar","blue_dye","white_dye","banner","netherite_ingot"]),e.register("biome_category",["beach","desert","extreme_hills","forest","icy","jungle","mesa","mountain","mushroom","nether","none","ocean","plains","river","savanna","swamp","taiga","the_end","underground"]),e.register("heightmap_type",["MOTION_BLOCKING","MOTION_BLOCKING_NO_LEAVES","OCEAN_FLOOR","OCEAN_FLOOR_WG","WORLD_SURFACE","WORLD_SURFACE_WG"]),e.register("generation_step",["air","liquid"]),e.register("loot_context_type",["minecraft:empty","minecraft:chest","minecraft:command","minecraft:selector","minecraft:fishing","minecraft:entity","minecraft:gift","minecraft:barter","minecraft:advancement_reward","minecraft:advancement_entity","minecraft:generic","minecraft:block"]),e.register("banner_pattern",["base","square_bottom_left","square_bottom_right","square_top_left","square_top_right","stripe_bottom","stripe_top","stripe_left","stripe_right","stripe_center","stripe_middle","stripe_downright","stripe_downleft","small_stripes","cross","straight_cross","triangle_bottom","triangle_top","triangles_bottom","triangles_top","diagonal_left","diagonal_up_right","diagonal_up_left","diagonal_right","circle","rhombus","half_vertical","half_horizontal","half_vertical_right","half_horizontal_bottom","border","curly_border","gradient","gradient_up","bricks","globe","creeper","skull","flower","mojang","piglin"]),e.register("dye_color",["white","orange","magenta","light_blue","yellow","lime","pink","gray","light_gray","cyan","purple","blue","brown","green","red","black"])};var wa={},xa={};Object.defineProperty(xa,"__esModule",{value:!0}),xa.initAdvancementSchemas=void 0;const ja=Be;xa.initAdvancementSchemas=function(e,t){const r=ja.Reference.bind(void 0,e),o=ja.StringNode.bind(void 0,t),i=ja.ChoiceNode([{type:"object",node:ja.Opt(r("entity_predicate")),change:e=>{var t,r;return null!==(r=null===(t=e[0])||void 0===t?void 0:t.predicate)&&void 0!==r?r:{}}},{type:"list",node:ja.ListNode(r("condition")),change:e=>[{condition:"minecraft:entity_properties",predicate:e}]}],{context:"conditions"});e.register("advancement",ja.Mod(ja.ObjectNode({display:ja.Opt(ja.Mod(ja.ObjectNode({icon:ja.ObjectNode({item:o({validator:"resource",params:{pool:"item"}}),nbt:ja.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}}))}),title:r("text_component"),description:r("text_component"),background:ja.Opt(o()),frame:ja.Opt(o({enum:["task","challenge","goal"]})),show_toast:ja.Opt(ja.BooleanNode()),announce_to_chat:ja.Opt(ja.BooleanNode()),hidden:ja.Opt(ja.BooleanNode())}),{default:()=>({icon:{item:"minecraft:stone"},title:"",description:""})})),parent:ja.Opt(o({validator:"resource",params:{pool:"$advancement"}})),criteria:ja.MapNode(o(),r("advancement_criteria")),requirements:ja.Opt(ja.ListNode(ja.ListNode(o()))),rewards:ja.Opt(ja.ObjectNode({function:ja.Opt(o({validator:"resource",params:{pool:"$function"}})),loot:ja.Opt(ja.ListNode(o({validator:"resource",params:{pool:"$loot_table"}}))),recipes:ja.Opt(ja.ListNode(o({validator:"resource",params:{pool:"$recipe"}}))),experience:ja.Opt(ja.NumberNode({integer:!0}))}))},{context:"advancement"}),{default:()=>({criteria:{requirement:{trigger:"minecraft:location"}}})})),e.register("advancement_criteria",ja.ObjectNode({trigger:o({validator:"resource",params:{pool:t.get("advancement_trigger")}}),conditions:ja.Opt(ja.ObjectNode({player:ja.Mod(i,{enabled:e=>"minecraft:impossible"!==e.pop().push("trigger").get()}),[ja.Switch]:["pop",{push:"trigger"}],[ja.Case]:{"minecraft:bee_nest_destroyed":{block:ja.Opt(o({validator:"resource",params:{pool:"block"}})),num_bees_inside:ja.Opt(ja.NumberNode({integer:!0})),item:ja.Opt(r("item_predicate"))},"minecraft:bred_animals":{parent:i,partner:i,child:i},"minecraft:brewed_potion":{potion:ja.Opt(o({validator:"resource",params:{pool:"potion"}}))},"minecraft:changed_dimension":{from:ja.Opt(o({validator:"resource",params:{pool:"$dimension"}})),to:ja.Opt(o({validator:"resource",params:{pool:"$dimension"}}))},"minecraft:channeled_lightning":{victims:ja.Opt(ja.ListNode(i))},"minecraft:construct_beacon":{level:r("int_bounds")},"minecraft:consume_item":{item:ja.Opt(r("item_predicate"))},"minecraft:cured_zombie_villager":{villager:i,zombie:i},"minecraft:effects_changed":{effects:ja.Opt(ja.MapNode(o({validator:"resource",params:{pool:"mob_effect"}}),ja.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds")}))),source:ja.Opt(i)},"minecraft:enter_block":{block:ja.Opt(o({validator:"resource",params:{pool:"block"}})),state:ja.Opt(ja.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},"minecraft:enchanted_item":{levels:r("int_bounds"),item:ja.Opt(r("item_predicate"))},"minecraft:entity_hurt_player":{damage:ja.Opt(r("damage_predicate"))},"minecraft:entity_killed_player":{entity:i,killing_blow:ja.Opt(r("damage_source_predicate"))},"minecraft:filled_bucket":{item:ja.Opt(r("item_predicate"))},"minecraft:fishing_rod_hooked":{entity:i,item:ja.Opt(r("item_predicate"))},"minecraft:hero_of_the_village":{location:ja.Opt(r("location_predicate"))},"minecraft:inventory_changed":{slots:ja.Opt(ja.ObjectNode({empty:r("int_bounds"),occupied:r("int_bounds"),full:r("int_bounds")})),items:ja.Opt(ja.ListNode(r("item_predicate")))},"minecraft:item_durability_changed":{delta:r("int_bounds"),durability:r("int_bounds"),item:ja.Opt(r("item_predicate"))},"minecraft:item_used_on_block":{item:ja.Opt(r("item_predicate")),location:ja.Opt(r("location_predicate"))},"minecraft:killed_by_crossbow":{unique_entity_types:r("int_bounds"),victims:ja.Opt(ja.ListNode(i))},"minecraft:levitation":{distance:r("distance_predicate"),duration:r("int_bounds")},"minecraft:lightning_strike":{lightning:i,bystander:i},"minecraft:location":{location:ja.Opt(r("location_predicate"))},"minecraft:nether_travel":{distance:r("distance_predicate"),entered:ja.Opt(r("location_predicate")),exited:ja.Opt(r("location_predicate"))},"minecraft:placed_block":{block:ja.Opt(o({validator:"resource",params:{pool:"block"}})),state:ja.Opt(ja.MapNode(o(),o(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})),item:ja.Opt(r("item_predicate")),location:ja.Opt(r("location_predicate"))},"minecraft:player_generates_container_loot":{loot_table:o({validator:"resource",params:{pool:"$loot_table"}})},"minecraft:player_hurt_entity":{damage:ja.Opt(r("damage_predicate")),entity:i},"minecraft:player_interacted_with_entity":{item:ja.Opt(r("item_predicate")),entity:i},"minecraft:player_killed_entity":{entity:i,killing_blow:ja.Opt(r("damage_source_predicate"))},"minecraft:recipe_unlocked":{recipe:o({validator:"resource",params:{pool:"$recipe"}})},"minecraft:slept_in_bed":{location:ja.Opt(r("location_predicate"))},"minecraft:slide_down_block":{block:ja.Opt(o({validator:"resource",params:{pool:"block"}}))},"minecraft:shot_crossbow":{item:ja.Opt(r("item_predicate"))},"minecraft:summoned_entity":{entity:i},"minecraft:tame_animal":{entity:i},"minecraft:target_hit":{projectile:i,shooter:i,signal_strength:r("int_bounds")},"minecraft:thrown_item_picked_up_by_entity":{entity:ja.Opt(r("entity_predicate")),item:ja.Opt(r("item_predicate"))},"minecraft:used_ender_eye":{distance:r("float_bounds")},"minecraft:used_totem":{item:ja.Opt(r("item_predicate"))},"minecraft:using_item":{item:ja.Opt(r("item_predicate"))},"minecraft:villager_trade":{villager:ja.Opt(r("entity_predicate")),item:ja.Opt(r("item_predicate"))},"minecraft:voluntary_exile":{location:r("location_predicate")}}},{context:"criterion"}))},{category:"predicate",context:"criterion"}))};var Sa={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.initCommonSchemas=e.InclusiveRange=e.IntProvider=e.FloatProvider=e.NoiseSettingsPresets=e.DefaultNoiseSettings=e.DimensionTypePresets=e.DefaultDimensionType=e.FunctionCases=e.ConditionCases=void 0;const t=Be;e.DefaultDimensionType={ultrawarm:!1,natural:!0,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!0,has_raids:!0,has_skylight:!0,has_ceiling:!1,coordinate_scale:1,ambient_light:0,logical_height:256,infiniburn:"minecraft:infiniburn_overworld",min_y:0,height:256};const r={"minecraft:igloo":{spacing:32,separation:8,salt:14357618},"minecraft:mansion":{spacing:80,separation:20,salt:10387319},"minecraft:jungle_pyramid":{spacing:32,separation:8,salt:14357619},"minecraft:nether_fossil":{spacing:2,separation:1,salt:14357921},"minecraft:stronghold":{spacing:1,separation:0,salt:0},"minecraft:shipwreck":{spacing:24,separation:4,salt:165745295},"minecraft:mineshaft":{spacing:1,separation:0,salt:0},"minecraft:desert_pyramid":{spacing:32,separation:8,salt:14357617},"minecraft:ruined_portal":{spacing:40,separation:15,salt:34222645},"minecraft:fortress":{spacing:27,separation:4,salt:30084232},"minecraft:pillager_outpost":{spacing:32,separation:8,salt:165745296},"minecraft:village":{spacing:32,separation:8,salt:10387312},"minecraft:endcity":{spacing:20,separation:11,salt:10387313},"minecraft:buried_treasure":{spacing:1,separation:0,salt:0},"minecraft:ocean_ruin":{spacing:20,separation:8,salt:14357621},"minecraft:bastion_remnant":{spacing:27,separation:4,salt:30084232},"minecraft:swamp_hut":{spacing:32,separation:8,salt:14357620},"minecraft:monument":{spacing:32,separation:5,salt:10387313}};e.DefaultNoiseSettings={bedrock_roof_position:-2147483648,bedrock_floor_position:0,sea_level:63,noise_caves_enabled:!0,deepslate_enabled:!0,ore_veins_enabled:!0,noodle_caves_enabled:!0,disable_mob_generation:!1,aquifers_enabled:!0,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:-64,height:384,size_horizontal:1,size_vertical:2,density_factor:1,density_offset:-.51875,random_density_offset:!0,simplex_surface_noise:!0,top_slide:{target:-.078125,size:2,offset:8},bottom_slide:{target:.1171875,size:3,offset:0},sampling:{xz_scale:.9999999814507745,y_scale:.9999999814507745,xz_factor:80,y_factor:160}},octaves:{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]},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]}},structures:{stronghold:{distance:32,spread:3,count:128},structures:r}},e.initCommonSchemas=function(o,i){const a=t.StringNode.bind(void 0,i),n=t.Reference.bind(void 0,o);o.register("block_state",t.Mod(t.ObjectNode({Name:a({validator:"resource",params:{pool:"block"}}),Properties:t.Opt(t.MapNode(a(),a(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"Name"}]}}}))},{context:"block_state"}),{default:()=>({Name:"minecraft:stone"})})),o.register("fluid_state",t.Mod(t.ObjectNode({Name:a({validator:"resource",params:{pool:"fluid"}}),Properties:t.Opt(t.MapNode(a(),a()))},{context:"fluid_state"}),{default:()=>({Name:"minecraft:water",Properties:{level:"0"}})})),o.register("block_pos",t.Mod(t.ListNode(t.NumberNode({integer:!0}),{minLength:3,maxLength:3}),{default:()=>[0,0,0]}));const s=e=>t.Opt(t.ChoiceNode([{type:"number",node:t.NumberNode({integer:e}),change:e=>{var t,r;return void 0===e?0:null!==(r=null!==(t=e.min)&&void 0!==t?t:e.max)&&void 0!==r?r:0}},{type:"object",node:t.ObjectNode({min:t.Opt(t.NumberNode({integer:e})),max:t.Opt(t.NumberNode({integer:e}))},{context:"range"}),change:e=>({min:null!=e?e:0,max:null!=e?e:0})}]));o.register("int_bounds",s(!0)),o.register("float_bounds",s()),o.register("int_range",t.ChoiceNode([{type:"object",node:t.ObjectNode({min:t.Opt(n("number_provider")),max:t.Opt(n("number_provider"))})},{type:"number",node:t.NumberNode({integer:!0})}],{context:"range"}));const c=(e,r,o,i,n,s,c)=>{let l={};n&&Object.keys(c[n]).forEach((e=>{l[e]=t.Mod(c[n][e],{enabled:e=>void 0===e.push("type").get()})}));const d=t.ObjectNode(m({type:t.Mod(t.Opt(a({validator:"resource",params:{pool:e}})),{hidden:()=>!0}),[t.Switch]:[{push:"type"}],[t.Case]:c},l),{context:s,disableSwitchContext:!0}),_=[{type:r,node:c[i][o]}];return n&&_.push({type:"object",priority:-1,node:d}),Object.keys(c).forEach((e=>{_.push({type:e,match:t=>{var r;if("minecraft:"+(null===(r=null==t?void 0:t.type)||void 0===r?void 0:r.replace(/^minecraft:/,""))===e)return!0;const o=t?Object.keys(t):[];return"object"==typeof t&&(0===(null==o?void 0:o.length)||1===(null==o?void 0:o.length)&&"type"===(null==o?void 0:o[0]))},node:d,change:t=>({type:e})})})),t.ChoiceNode(_,{context:s,choiceContext:`${s}.type`})};o.register("number_provider",c("loot_number_provider_type","number","value","minecraft:constant","minecraft:uniform","number_provider",{"minecraft:constant":{value:t.NumberNode()},"minecraft:uniform":{min:n("number_provider"),max:n("number_provider")},"minecraft:binomial":{n:n("number_provider"),p:n("number_provider")},"minecraft:score":{target:n("scoreboard_name_provider"),score:a({validator:"objective"}),scale:t.Opt(t.NumberNode())}})),o.register("scoreboard_name_provider",c("loot_score_provider_type","string","target","minecraft:context",null,"score_provider",{"minecraft:fixed":{name:a({validator:"entity",params:{amount:"multiple",type:"entities",isScoreHolder:!0}})},"minecraft:context":{target:t.Mod(a({enum:"entity_source"}),{default:()=>"this"})}})),o.register("nbt_provider",c("loot_nbt_provider_type","string","target","minecraft:context",null,"nbt_provider",{"minecraft:storage":{source:a({validator:"resource",params:{pool:"$storage"}})},"minecraft:context":{target:t.Mod(a({enum:"copy_source"}),{default:()=>"this"})}})),e.FloatProvider=e=>c("float_provider_type","number","value","minecraft:constant",null,"float_provider",{"minecraft:constant":{value:t.NumberNode(e)},"minecraft:uniform":{value:t.ObjectNode({min_inclusive:t.NumberNode(e),max_exclusive:t.NumberNode(e)})},"minecraft:clamped_normal":{value:t.ObjectNode({min:t.NumberNode(),max:t.NumberNode(),mean:t.NumberNode(),deviation:t.NumberNode()})},"minecraft:trapezoid":{value:t.ObjectNode({min:t.NumberNode(),max:t.NumberNode(),plateau:t.NumberNode()})}}),o.register("float_provider",e.FloatProvider()),e.IntProvider=e=>c("int_provider_type","number","value","minecraft:constant",null,"int_provider",{"minecraft:constant":{value:t.NumberNode(m({integer:!0},e))},"minecraft:uniform":{value:t.ObjectNode({min_inclusive:t.NumberNode(m({integer:!0},e)),max_inclusive:t.NumberNode(m({integer:!0},e))})},"minecraft:biased_to_bottom":{value:t.ObjectNode({min_inclusive:t.NumberNode(m({integer:!0},e)),max_inclusive:t.NumberNode(m({integer:!0},e))})},"minecraft:clamped":{value:t.ObjectNode({min_inclusive:t.NumberNode(m({integer:!0},e)),max_inclusive:t.NumberNode(m({integer:!0},e)),source:n("int_provider")})}}),o.register("int_provider",e.IntProvider()),o.register("vertical_anchor",t.ChoiceNode(["absolute","above_bottom","below_top"].map((e=>({type:e,match:t=>void 0!==(null==t?void 0:t[e]),change:t=>{var r,o,i;return{[e]:null!==(i=null!==(o=null!==(r=t.absolute)&&void 0!==r?r:t.above_bottom)&&void 0!==o?o:t.below_top)&&void 0!==i?i:0}},node:t.ObjectNode({[e]:t.NumberNode({integer:!0,min:-2048,max:2047})})}))),{context:"vertical_anchor"})),o.register("height_provider",c("height_provider_type","number","value","minecraft:constant",null,"height_provider",{"minecraft:constant":{value:n("vertical_anchor")},"minecraft:uniform":{min_inclusive:n("vertical_anchor"),max_inclusive:n("vertical_anchor")},"minecraft:biased_to_bottom":{min_inclusive:n("vertical_anchor"),max_inclusive:n("vertical_anchor"),inner:t.Opt(t.NumberNode({integer:!0,min:1}))},"minecraft:very_biased_to_bottom":{min_inclusive:n("vertical_anchor"),max_inclusive:n("vertical_anchor"),inner:t.Opt(t.NumberNode({integer:!0,min:1}))},"minecraft:trapezoid":{min_inclusive:n("vertical_anchor"),max_inclusive:n("vertical_anchor"),plateau:t.Opt(t.NumberNode({integer:!0}))}})),e.InclusiveRange=e=>t.ObjectNode({min_inclusive:t.NumberNode(e),max_inclusive:t.NumberNode(e)},{context:"range"}),o.register("noise_parameters",t.Mod(t.ObjectNode({firstOctave:t.NumberNode({integer:!0}),amplitudes:t.ListNode(t.NumberNode())},{context:"noise_parameters"}),{default:()=>({firstOctave:-7,amplitudes:[1,1]})})),e.ConditionCases=(e=a({enum:"entity_source"}))=>({"minecraft:alternative":{terms:t.ListNode(n("condition"))},"minecraft:block_state_property":{block:a({validator:"resource",params:{pool:"block"}}),properties:t.MapNode(a(),a(),{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}})},"minecraft:damage_source_properties":{predicate:n("damage_source_predicate")},"minecraft:entity_properties":{entity:e,predicate:n("entity_predicate")},"minecraft:entity_scores":{entity:e,scores:t.MapNode(a({validator:"objective"}),n("int_range"))},"minecraft:inverted":{term:n("condition")},"minecraft:killed_by_player":{inverse:t.Opt(t.BooleanNode())},"minecraft:location_check":{offsetX:t.Opt(t.NumberNode({integer:!0})),offsetY:t.Opt(t.NumberNode({integer:!0})),offsetZ:t.Opt(t.NumberNode({integer:!0})),predicate:n("location_predicate")},"minecraft:match_tool":{predicate:n("item_predicate")},"minecraft:random_chance":{chance:t.NumberNode({min:0,max:1})},"minecraft:random_chance_with_looting":{chance:t.NumberNode({min:0,max:1}),looting_multiplier:t.NumberNode()},"minecraft:reference":{name:a({validator:"resource",params:{pool:"$predicate"}})},"minecraft:table_bonus":{enchantment:a({validator:"resource",params:{pool:"enchantment"}}),chances:t.ListNode(t.NumberNode({min:0,max:1}))},"minecraft:time_check":{value:n("int_range"),period:t.Opt(t.NumberNode({integer:!0}))},"minecraft:value_check":{value:n("number_provider"),range:n("int_range")},"minecraft:weather_check":{raining:t.Opt(t.BooleanNode()),thundering:t.Opt(t.BooleanNode())}}),e.FunctionCases=(e,r=a({enum:"copy_source"}),o=a({enum:"entity_source"}))=>{const s={"minecraft:apply_bonus":{enchantment:a({validator:"resource",params:{pool:"enchantment"}}),formula:a({validator:"resource",params:{pool:i.get("loot_table_apply_bonus_formula")}}),parameters:t.Mod(t.ObjectNode({bonusMultiplier:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:uniform_bonus_count"===e.pop().push("formula").get()}),extra:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()}),probability:t.Mod(t.NumberNode(),{enabled:e=>"minecraft:binomial_with_bonus_count"===e.pop().push("formula").get()})}),{enabled:e=>"minecraft:ore_drops"!==e.push("formula").get()})},"minecraft:copy_name":{source:r},"minecraft:copy_nbt":{source:n("nbt_provider"),ops:t.ListNode(t.ObjectNode({source:a({validator:"nbt_path",params:{category:{getter:"copy_source",path:["pop","pop","pop",{push:"source"}]}}}),target:a({validator:"nbt_path",params:{category:"minecraft:item"}}),op:a({enum:["replace","append","merge"]})},{context:"nbt_operation"}))},"minecraft:copy_state":{block:a({validator:"resource",params:{pool:"block"}}),properties:t.ListNode(a({validator:"block_state_key",params:{id:["pop","pop",{push:"block"}]}}))},"minecraft:enchant_randomly":{enchantments:t.Opt(t.ListNode(a({validator:"resource",params:{pool:"enchantment"}})))},"minecraft:enchant_with_levels":{levels:n("number_provider"),treasure:t.Opt(t.BooleanNode())},"minecraft:exploration_map":{destination:t.Opt(a({enum:"map_feature"})),decoration:t.Opt(a({enum:"map_decoration"})),zoom:t.Opt(t.NumberNode({integer:!0})),search_radius:t.Opt(t.NumberNode({integer:!0})),skip_existing_chunks:t.Opt(t.BooleanNode())},"minecraft:fill_player_head":{entity:o},"minecraft:limit_count":{limit:n("int_range")},"minecraft:looting_enchant":{count:n("number_provider"),limit:t.Opt(t.NumberNode({integer:!0}))},"minecraft:set_attributes":{modifiers:t.ListNode(n("attribute_modifier"))},"minecraft:set_banner_pattern":{patterns:t.ListNode(t.ObjectNode({pattern:a({enum:"banner_pattern"}),color:a({enum:"dye_color"})})),append:t.Opt(t.BooleanNode())},"minecraft:set_contents":{entries:t.ListNode(n("loot_entry"))},"minecraft:set_count":{count:n("number_provider"),add:t.Opt(t.BooleanNode())},"minecraft:set_damage":{damage:n("number_provider"),add:t.Opt(t.BooleanNode())},"minecraft:set_enchantments":{enchantments:t.MapNode(a({validator:"resource",params:{pool:"enchantment"}}),n("number_provider")),add:t.Opt(t.BooleanNode())},"minecraft:set_loot_table":{name:a({validator:"resource",params:{pool:"$loot_table"}}),seed:t.Opt(t.NumberNode({integer:!0}))},"minecraft:set_lore":{entity:t.Opt(o),lore:t.ListNode(n("text_component")),replace:t.Opt(t.BooleanNode())},"minecraft:set_name":{entity:t.Opt(o),name:t.Opt(n("text_component"))},"minecraft:set_nbt":{tag:a({validator:"nbt",params:{registry:{category:"minecraft:item"}}})},"minecraft:set_stew_effect":{effects:t.Opt(t.ListNode(t.ObjectNode({type:a({validator:"resource",params:{pool:"mob_effect"}}),duration:n("number_provider")})))}},c={};return i.get("loot_function_type").forEach((t=>{c[t]=m(m({},s[t]),e)})),c},e.DimensionTypePresets=r=>t.ObjectOrPreset(a({validator:"resource",params:{pool:"$dimension_type"}}),r,{"minecraft:overworld":e.DefaultDimensionType,"minecraft:the_nether":{name:"minecraft:the_nether",ultrawarm:!0,natural:!1,shrunk:!0,piglin_safe:!0,respawn_anchor_works:!0,bed_works:!1,has_raids:!1,has_skylight:!1,has_ceiling:!0,ambient_light:.1,fixed_time:18e3,logical_height:128,effects:"minecraft:the_nether",infiniburn:"minecraft:infiniburn_nether",min_y:0,height:256},"minecraft:the_end":{name:"minecraft:the_end",ultrawarm:!1,natural:!1,shrunk:!1,piglin_safe:!1,respawn_anchor_works:!1,bed_works:!1,has_raids:!0,has_skylight:!1,has_ceiling:!1,ambient_light:0,fixed_time:6e3,logical_height:256,effects:"minecraft:the_end",infiniburn:"minecraft:infiniburn_end",min_y:0,height:256}}),e.NoiseSettingsPresets=o=>t.ObjectOrPreset(a({validator:"resource",params:{pool:"$worldgen/noise_settings"}}),o,{"minecraft:overworld":e.DefaultNoiseSettings,"minecraft:nether":{bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,noise_caves_enabled:!1,deepslate_enabled:!1,ore_veins_enabled:!1,noodle_caves_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,default_block:{Name:"minecraft:netherrack"},default_fluid:{Properties:{level:"0"},Name:"minecraft:lava"},noise:{min_y:0,height:128,size_horizontal:1,size_vertical:2,density_factor:0,density_offset:-.030078125,simplex_surface_noise:!1,use_legacy_random:!0,top_slide:{target:.9375,size:3,offset:0},bottom_slide:{target:2.5,size:4,offset:-1},sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60}},octaves:{erosion:{firstOctave:-7,amplitudes:[1,1]},weirdness:{firstOctave:-7,amplitudes:[1,1]},shift:{firstOctave:0,amplitudes:[0]},temperature:{firstOctave:-7,amplitudes:[1,1]},humidity:{firstOctave:-7,amplitudes:[1,1]},continentalness:{firstOctave:-7,amplitudes:[1,1]}},structures:{structures:r}},"minecraft:end":{bedrock_roof_position:-2147483648,bedrock_floor_position:-2147483648,sea_level:0,noise_caves_enabled:!1,deepslate_enabled:!1,ore_veins_enabled:!1,noodle_caves_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,default_block:{Name:"minecraft:end_stone"},default_fluid:{Name:"minecraft:air"},noise:{min_y:0,height:128,size_horizontal:2,size_vertical:1,density_factor:0,density_offset:0,island_noise_override:!0,simplex_surface_noise:!0,use_legacy_random:!0,top_slide:{target:-23.4375,size:64,offset:-46},bottom_slide:{target:-.234375,size:7,offset:1},sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160}},octaves:{erosion:{firstOctave:0,amplitudes:[0]},weirdness:{firstOctave:0,amplitudes:[0]},shift:{firstOctave:0,amplitudes:[0]},temperature:{firstOctave:0,amplitudes:[0]},humidity:{firstOctave:0,amplitudes:[0]},continentalness:{firstOctave:0,amplitudes:[0]}},structures:{structures:r}},"minecraft:amplified":{bedrock_roof_position:-2147483648,bedrock_floor_position:0,sea_level:63,noise_caves_enabled:!0,deepslate_enabled:!0,ore_veins_enabled:!0,noodle_caves_enabled:!0,disable_mob_generation:!1,aquifers_enabled:!0,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:-64,height:384,size_horizontal:1,size_vertical:2,density_factor:1,density_offset:-.51875,random_density_offset:!0,simplex_surface_noise:!0,amplified:!0,top_slide:{target:-.078125,size:2,offset:8},bottom_slide:{target:.1171875,size:3,offset:0},sampling:{xz_scale:.9999999814507745,y_scale:.9999999814507745,xz_factor:80,y_factor:160}},octaves:{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]},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]}},structures:{stronghold:{distance:32,spread:3,count:128},structures:r}},"minecraft:caves":{bedrock_roof_position:0,bedrock_floor_position:0,sea_level:32,noise_caves_enabled:!1,deepslate_enabled:!1,ore_veins_enabled:!1,noodle_caves_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:0,height:128,size_horizontal:1,size_vertical:2,density_factor:0,density_offset:-.030078125,simplex_surface_noise:!1,use_legacy_random:!0,top_slide:{target:.9375,size:3,offset:0},bottom_slide:{target:2.5,size:4,offset:-1},sampling:{xz_scale:1,y_scale:3,xz_factor:80,y_factor:60}},octaves:{erosion:{firstOctave:-7,amplitudes:[1,1]},weirdness:{firstOctave:-7,amplitudes:[1,1]},shift:{firstOctave:0,amplitudes:[0]},temperature:{firstOctave:-7,amplitudes:[1,1]},humidity:{firstOctave:-7,amplitudes:[1,1]},continentalness:{firstOctave:-7,amplitudes:[1,1]}},structures:{stronghold:{distance:32,spread:3,count:128},structures:r}},"minecraft:floating_islands":{bedrock_roof_position:-2147483648,bedrock_floor_position:-2147483648,sea_level:0,noise_caves_enabled:!1,deepslate_enabled:!1,ore_veins_enabled:!1,noodle_caves_enabled:!1,disable_mob_generation:!1,aquifers_enabled:!1,default_block:{Name:"minecraft:stone"},default_fluid:{Properties:{level:"0"},Name:"minecraft:water"},noise:{min_y:0,height:128,size_horizontal:2,size_vertical:1,density_factor:0,density_offset:0,island_noise_override:!0,simplex_surface_noise:!0,use_legacy_random:!0,top_slide:{target:-23.4375,size:64,offset:-46},bottom_slide:{target:-.234375,size:7,offset:1},sampling:{xz_scale:2,y_scale:1,xz_factor:80,y_factor:160}},octaves:{erosion:{firstOctave:0,amplitudes:[0]},weirdness:{firstOctave:0,amplitudes:[0]},shift:{firstOctave:0,amplitudes:[0]},temperature:{firstOctave:0,amplitudes:[0]},humidity:{firstOctave:0,amplitudes:[0]},continentalness:{firstOctave:0,amplitudes:[0]}},structures:{stronghold:{distance:32,spread:3,count:128},structures:r}}})}}(Sa);var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.initConditionSchemas=void 0;const Pa=Be,Ca=Sa;Ma.initConditionSchemas=function(e,t){const r=Pa.Reference.bind(void 0,e),o=Pa.StringNode.bind(void 0,t);e.register("predicate",Pa.ObjectOrList(r("condition"),{choiceContext:"condition"})),e.register("condition",Pa.Mod(Pa.ObjectNode({condition:o({validator:"resource",params:{pool:"loot_condition_type"}}),[Pa.Switch]:[{push:"condition"}],[Pa.Case]:Ca.ConditionCases()},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:entity_properties",entity:"this"})}))};var La={};Object.defineProperty(La,"__esModule",{value:!0}),La.initDimensionSchemas=void 0;const Ba=Be,za=Sa;La.initDimensionSchemas=function(e,t){const r=Ba.Reference.bind(void 0,e),o=Ba.StringNode.bind(void 0,t);e.register("dimension",Ba.Mod(Ba.ObjectNode({type:za.DimensionTypePresets(r("dimension_type")),generator:Ba.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/chunk_generator"}}),[Ba.Switch]:[{push:"type"}],[Ba.Case]:{"minecraft:noise":{seed:Ba.NumberNode({integer:!0}),settings:za.NoiseSettingsPresets(r("noise_settings")),biome_source:Ba.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/biome_source"}}),[Ba.Switch]:[{push:"type"}],[Ba.Case]:{"minecraft:fixed":{biome:o({validator:"resource",params:{pool:"$worldgen/biome"}})},"minecraft:multi_noise":{preset:Ba.Opt(o({validator:"resource",params:{pool:["minecraft:overworld","minecraft:nether"]}})),biomes:Ba.Mod(Ba.ListNode(r("generator_biome")),{enabled:e=>void 0===e.push("preset").get(),default:()=>[{biome:"minecraft:plains"}]})},"minecraft:checkerboard":{scale:Ba.Opt(Ba.NumberNode({integer:!0,min:0,max:62})),biomes:Ba.ListNode(o({validator:"resource",params:{pool:"$worldgen/biome"}}))},"minecraft:the_end":{seed:Ba.NumberNode({integer:!0})}}},{category:"predicate",disableSwitchContext:!0})},"minecraft:flat":{settings:Ba.ObjectNode({biome:Ba.Opt(o({validator:"resource",params:{pool:"$worldgen/biome"}})),lakes:Ba.Opt(Ba.BooleanNode()),features:Ba.Opt(Ba.BooleanNode()),layers:Ba.ListNode(r("generator_layer")),structures:r("generator_structures")})}}},{disableSwitchContext:!0})},{category:"pool",context:"dimension"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:fixed",seed:e,biome:"minecraft:plains"},settings:"minecraft:overworld"}}}}));const i=Ba.ChoiceNode([{type:"number",node:Ba.NumberNode({min:-2,max:2}),change:e=>{var t;return null!==(t=e[0])&&void 0!==t?t:0}},{type:"list",node:Ba.ListNode(Ba.NumberNode({min:-2,max:2}),{minLength:2,maxLength:2}),change:e=>[null!=e?e:0,null!=e?e:0]}]);e.register("generator_biome",Ba.Mod(Ba.ObjectNode({biome:o({validator:"resource",params:{pool:"$worldgen/biome"}}),parameters:Ba.ObjectNode({temperature:i,humidity:i,continentalness:i,erosion:i,weirdness:i,depth:i,offset:Ba.NumberNode({min:0,max:1})})},{context:"generator_biome"}),{default:()=>({biome:"minecraft:plains",parameters:{altitude:0,temperature:0,humidity:0,weirdness:0,offset:0}})}))};var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.initDimensionTypeSchemas=void 0;const Aa=Be,Ia=Sa;Ra.initDimensionTypeSchemas=function(e,t){const r=Aa.StringNode.bind(void 0,t);e.register("dimension_type",Aa.Mod(Aa.ObjectNode({ultrawarm:Aa.BooleanNode(),natural:Aa.BooleanNode(),piglin_safe:Aa.BooleanNode(),respawn_anchor_works:Aa.BooleanNode(),bed_works:Aa.BooleanNode(),has_raids:Aa.BooleanNode(),has_skylight:Aa.BooleanNode(),has_ceiling:Aa.BooleanNode(),coordinate_scale:Aa.NumberNode({min:1e-5,max:3e7}),ambient_light:Aa.NumberNode(),fixed_time:Aa.Opt(Aa.NumberNode({integer:!0})),logical_height:Aa.NumberNode({integer:!0,min:0,max:4096}),effects:Aa.Opt(r({enum:["minecraft:overworld","minecraft:the_nether","minecraft:the_end"]})),infiniburn:r({validator:"resource",params:{pool:"$tag/block"}}),min_y:Aa.NumberNode({integer:!0,min:-2048,max:2047}),height:Aa.NumberNode({integer:!0,min:0,max:4096})},{context:"dimension_type"}),(e=>({default:()=>Ia.DefaultDimensionType,validate:(t,r,o,i)=>((null==(r=e.validate(t,r,o,i))?void 0:r.min_y)+(null==r?void 0:r.height)>2047&&o.add(t.push("height"),"error.min_y_plus_height",2047),(null==r?void 0:r.logical_height)>(null==r?void 0:r.height)&&o.add(t.push("logical_height"),"error.logical_height"),(null==r?void 0:r.height)%16!=0&&o.add(t.push("height"),"error.height_multiple",16),(null==r?void 0:r.min_y)%16!=0&&o.add(t.push("min_y"),"error.min_y_multiple",16),r)}))))};var Ta={};Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.initItemModifierSchemas=void 0;const Da=Be,Ea=Sa;Ta.initItemModifierSchemas=function(e,t){const r=Da.Reference.bind(void 0,e),o=Da.StringNode.bind(void 0,t);e.register("item_modifier",Da.ObjectOrList(r("function"),{choiceContext:"function"}));const i={conditions:Da.Opt(Da.ListNode(r("condition")))};e.register("function",Da.Mod(Da.ObjectNode({function:o({validator:"resource",params:{pool:"loot_function_type"}}),[Da.Switch]:[{push:"function"}],[Da.Case]:Ea.FunctionCases(i)},{category:"function",context:"function"}),{default:()=>[{function:"minecraft:set_count",count:1}]}))};var Fa={},$a={};Object.defineProperty($a,"__esModule",{value:!0}),$a.LootFunctions=$a.LootConditions=$a.LootCopySources=$a.LootEntitySources=$a.LootTableTypes=void 0,$a.LootTableTypes=new Map([["minecraft:advancement_entity",{requires:[7,8],allows:[]}],["minecraft:advancement_reward",{requires:[7,8],allows:[]}],["minecraft:barter",{requires:[8],allows:[]}],["minecraft:block",{requires:[1,7,9],allows:[0,4,8]}],["minecraft:chest",{requires:[7],allows:[8]}],["minecraft:command",{requires:[7],allows:[8]}],["minecraft:empty",{requires:[],allows:[]}],["minecraft:entity",{requires:[2,7,8],allows:[3,5,6]}],["minecraft:fishing",{requires:[7,9],allows:[8]}],["minecraft:generic",{requires:[2,0,1,3,4,5,6,7,8,9],allows:[]}],["minecraft:gift",{requires:[7,8],allows:[]}],["minecraft:selector",{requires:[7],allows:[8]}]]),$a.LootEntitySources=new Map([["direct_killer",[3]],["killer",[5]],["killer_player",[5]],["this",[8]]]),$a.LootCopySources=new Map([["block_entity",[0]],["killer",[5]],["killer_player",[5]],["this",[8]]]),$a.LootConditions=new Map([["minecraft:alternative",[]],["minecraft:block_state_property",[1]],["minecraft:damage_source_properties",[2]],["minecraft:entity_properties",[7]],["minecraft:entity_scores",[]],["minecraft:inverted",[]],["minecraft:killed_by_player",[6]],["minecraft:location_check",[]],["minecraft:match_tool",[9]],["minecraft:random_chance",[]],["minecraft:random_chance_with_looting",[5]],["minecraft:reference",[]],["minecraft:survives_explosion",[4]],["minecraft:table_bonus",[9]],["minecraft:time_check",[]],["minecraft:weather_check",[]]]),$a.LootFunctions=new Map([["minecraft:apply_bonus",[9]],["minecraft:copy_name",[]],["minecraft:copy_nbt",[]],["minecraft:copy_state",[1]],["minecraft:enchant_randomly",[]],["minecraft:enchant_with_levels",[]],["minecraft:exploration_map",[7]],["minecraft:explosion_decay",[]],["minecraft:fill_player_head",[]],["minecraft:furnace_smelt",[]],["minecraft:limit_count",[]],["minecraft:looting_enchant",[5]],["minecraft:set_attributes",[]],["minecraft:set_banner_pattern",[]],["minecraft:set_contents",[]],["minecraft:set_count",[]],["minecraft:set_damage",[]],["minecraft:set_loot_table",[]],["minecraft:set_lore",[]],["minecraft:set_name",[]],["minecraft:set_nbt",[]],["minecraft:set_stew_effect",[]]]),Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.initLootTableSchemas=void 0;const Ua=Be,qa=$a,Za=Sa;Fa.initLootTableSchemas=function(e,t){const r=Ua.Reference.bind(void 0,e),o=Ua.StringNode.bind(void 0,t),i={conditions:Ua.Opt(Ua.ListNode(r("loot_condition")))},a=m({functions:Ua.Opt(Ua.ListNode(r("loot_function")))},i);function n(e,r,o){const i=[],a=o=>t.get(r).filter((t=>{var r;return(null!==(r=e.get(t))&&void 0!==r?r:[]).every((e=>o.includes(e)))}));for(const[t,{allows:n,requires:s}]of qa.LootTableTypes){const e=[...n,...s];i.push({match:e=>e.getModel().get(new Ua.Path(["type"]))===t,node:o(a(e))})}return i.push({match:e=>!0,node:o(r)}),Ua.SwitchNode(i)}const s=n(qa.LootConditions,"loot_condition_type",(e=>o({validator:"resource",params:{pool:e instanceof Array?e:"loot_condition_type"}}))),c=n(qa.LootFunctions,"loot_function_type",(e=>o({validator:"resource",params:{pool:e instanceof Array?e:"loot_function_type"}}))),l=n(qa.LootEntitySources,"entity_source",(e=>o({enum:e}))),d=n(qa.LootCopySources,"copy_source",(e=>o({enum:e})));e.register("loot_table",Ua.Mod(Ua.ObjectNode({type:Ua.Opt(o({validator:"resource",params:{pool:t.get("loot_context_type")}})),pools:Ua.Opt(Ua.ListNode(Ua.Mod(Ua.ObjectNode(m({rolls:r("number_provider"),bonus_rolls:Ua.Opt(r("number_provider")),entries:Ua.ListNode(r("loot_entry"))},a),{category:"pool",context:"loot_pool"}),{default:()=>({rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]})}))),functions:Ua.Opt(Ua.ListNode(r("loot_function")))},{context:"loot_table"}),{default:()=>({pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:stone"}]}]})}));const _={enabled:e=>{var t;return(null===(t=e.pop().get())||void 0===t?void 0:t.length)>1&&!["minecraft:alternatives","minecraft:group","minecraft:sequence"].includes(e.push("type").get())}};e.register("loot_entry",Ua.Mod(Ua.ObjectNode({type:o({validator:"resource",params:{pool:"loot_pool_entry_type"}}),weight:Ua.Opt(Ua.Mod(Ua.NumberNode({integer:!0,min:1}),_)),quality:Ua.Opt(Ua.Mod(Ua.NumberNode({integer:!0}),_)),[Ua.Switch]:[{push:"type"}],[Ua.Case]:{"minecraft:alternatives":m({children:Ua.ListNode(r("loot_entry"))},a),"minecraft:dynamic":m({name:o()},a),"minecraft:group":m({children:Ua.ListNode(r("loot_entry"))},a),"minecraft:item":m({name:o({validator:"resource",params:{pool:"item"}})},a),"minecraft:loot_table":m({name:o({validator:"resource",params:{pool:"$loot_table"}})},a),"minecraft:sequence":m({children:Ua.ListNode(r("loot_entry"))},a),"minecraft:tag":m({name:o({validator:"resource",params:{pool:"$tag/item"}}),expand:Ua.Opt(Ua.BooleanNode())},a)}},{context:"loot_entry"}),{default:()=>({type:"minecraft:item",name:"minecraft:stone"})})),e.register("loot_function",Ua.Mod(Ua.ObjectNode({function:c,[Ua.Switch]:[{push:"function"}],[Ua.Case]:Za.FunctionCases(i,d,l)},{category:"function",context:"function"}),{default:()=>({function:"minecraft:set_count",count:1})})),e.register("loot_condition",Ua.Mod(Ua.ObjectNode({condition:s,[Ua.Switch]:[{push:"condition"}],[Ua.Case]:Za.ConditionCases(l)},{category:"predicate",context:"condition"}),{default:()=>({condition:"minecraft:random_chance",chance:.5})})),e.register("attribute_modifier",Ua.Mod(Ua.ObjectNode({attribute:o({validator:"resource",params:{pool:"attribute"}}),name:o(),amount:r("number_provider"),operation:o({enum:["addition","multiply_base","multiply_total"]}),slot:Ua.StringOrList(o({enum:"slot"}))},{context:"attribute_modifier"}),{default:()=>({attribute:"minecraft:generic.max_health",name:"",amount:1,operation:"addition",slot:"mainhand"})}))};var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.initPackMcmetaSchemas=void 0;const Wa=Be;Ha.initPackMcmetaSchemas=function(e,t){e.register("pack_mcmeta",Wa.Mod(Wa.ObjectNode({pack:Wa.Mod(Wa.ObjectNode({pack_format:Wa.Mod(Wa.NumberNode({integer:!0,min:7,max:7}),{default:()=>7,canUpdate:(e,t)=>7!==t,update:()=>[{name:"pack_format",params:[7],newValue:7}]}),description:Wa.Reference(e,"text_component")}),{default:()=>({pack_format:7,description:""})})}),{default:()=>({pack:{pack_format:7,description:""}})}))};var Xa={};Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.initPredicatesSchemas=void 0;const Ya=Be;Xa.initPredicatesSchemas=function(e,t){const r=Ya.Reference.bind(void 0,e),o=Ya.StringNode.bind(void 0,t),i=Ya.ChoiceNode([{type:"string",node:o(),change:e=>"boolean"==typeof e||"number"==typeof e?e.toString():""},{type:"number",node:Ya.NumberNode(),change:e=>"string"==typeof e?parseInt(e):0},{type:"object",node:Ya.ObjectNode({min:Ya.Opt(Ya.NumberNode({integer:!0})),max:Ya.Opt(Ya.NumberNode({integer:!0}))}),change:e=>"number"==typeof e?{min:e,max:e}:{}},{type:"boolean",node:Ya.BooleanNode(),change:e=>"true"===e||1===e}]);e.register("item_predicate",Ya.ObjectNode({items:Ya.Opt(Ya.ListNode(o({validator:"resource",params:{pool:"item"}}))),tag:Ya.Opt(o({validator:"resource",params:{pool:"$tag/item"}})),count:r("int_bounds"),durability:r("int_bounds"),potion:Ya.Opt(o({validator:"resource",params:{pool:"potion"}})),nbt:Ya.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"item"}]}}})),enchantments:Ya.Opt(Ya.ListNode(r("enchantment_predicate")))},{context:"item"})),e.register("enchantment_predicate",Ya.ObjectNode({enchantment:Ya.Opt(o({validator:"resource",params:{pool:"enchantment"}})),levels:r("int_bounds")},{context:"enchantment"})),e.register("block_predicate",Ya.ObjectNode({blocks:Ya.Opt(Ya.ListNode(o({validator:"resource",params:{pool:"block"}}))),tag:Ya.Opt(o({validator:"resource",params:{pool:"$tag/block"}})),nbt:Ya.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:block",id:["pop",{push:"block"}]}}})),state:Ya.Opt(Ya.MapNode(o(),i,{validation:{validator:"block_state_map",params:{id:["pop",{push:"block"}]}}}))},{context:"block"})),e.register("fluid_predicate",Ya.ObjectNode({fluid:Ya.Opt(o({validator:"resource",params:{pool:"fluid"}})),tag:Ya.Opt(o({validator:"resource",params:{pool:"$tag/fluid"}})),state:Ya.Opt(Ya.MapNode(o(),i))},{context:"fluid"})),e.register("location_predicate",Ya.ObjectNode({position:Ya.Opt(Ya.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds")})),biome:Ya.Opt(o({validator:"resource",params:{pool:"$worldgen/biome"}})),feature:Ya.Opt(o({enum:t.get("worldgen/structure_feature").map((e=>e.slice(10)))})),dimension:Ya.Opt(o({validator:"resource",params:{pool:"$dimension"}})),light:Ya.Opt(Ya.ObjectNode({light:r("int_bounds")})),smokey:Ya.Opt(Ya.BooleanNode()),block:Ya.Opt(r("block_predicate")),fluid:Ya.Opt(r("fluid_predicate"))},{context:"location"})),e.register("statistic_predicate",Ya.ObjectNode({type:o({validator:"resource",params:{pool:"stat_type"}}),stat:o(),value:r("int_bounds"),[Ya.Switch]:[{push:"type"}],[Ya.Case]:{"minecraft:mined":{stat:o({validator:"resource",params:{pool:"block"}})},"minecraft:crafted":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:used":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:broken":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:picked_up":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:dropped":{stat:o({validator:"resource",params:{pool:"item"}})},"minecraft:killed":{stat:o({validator:"resource",params:{pool:"entity_type"}})},"minecraft:killed_by":{stat:o({validator:"resource",params:{pool:"entity_type"}})},"minecraft:custom":{stat:o({validator:"resource",params:{pool:"custom_stat"}})}}})),e.register("player_predicate",Ya.ObjectNode({gamemode:Ya.Opt(o({enum:"gamemode"})),level:r("int_bounds"),advancements:Ya.Opt(Ya.MapNode(o({validator:"resource",params:{pool:"$advancement"}}),Ya.ChoiceNode([{type:"boolean",node:Ya.BooleanNode(),change:e=>!0},{type:"object",node:Ya.MapNode(o(),Ya.BooleanNode())}]))),recipes:Ya.Opt(Ya.MapNode(o({validator:"resource",params:{pool:"$recipe"}}),Ya.BooleanNode())),stats:Ya.Opt(Ya.ListNode(r("statistic_predicate"))),looking_at:Ya.Opt(r("entity_predicate"))},{context:"player"})),e.register("status_effect_predicate",Ya.ObjectNode({amplifier:r("int_bounds"),duration:r("int_bounds"),ambient:Ya.Opt(Ya.BooleanNode()),visible:Ya.Opt(Ya.BooleanNode())},{context:"status_effect"})),e.register("distance_predicate",Ya.ObjectNode({x:r("float_bounds"),y:r("float_bounds"),z:r("float_bounds"),absolute:r("float_bounds"),horizontal:r("float_bounds")},{context:"distance"})),e.register("entity_predicate",Ya.ObjectNode({type:Ya.Opt(o({validator:"resource",params:{pool:"entity_type",allowTag:!0}})),nbt:Ya.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:entity",id:["pop",{push:"type"}]}}})),team:Ya.Opt(o({validator:"team"})),location:Ya.Opt(r("location_predicate")),stepping_on:Ya.Opt(r("location_predicate")),distance:Ya.Opt(r("distance_predicate")),flags:Ya.Opt(Ya.ObjectNode({is_on_fire:Ya.Opt(Ya.BooleanNode()),is_sneaking:Ya.Opt(Ya.BooleanNode()),is_sprinting:Ya.Opt(Ya.BooleanNode()),is_swimming:Ya.Opt(Ya.BooleanNode()),is_baby:Ya.Opt(Ya.BooleanNode())})),equipment:Ya.Opt(Ya.MapNode(o({enum:"slot"}),r("item_predicate"))),player:Ya.Opt(r("player_predicate")),vehicle:Ya.Opt(r("entity_predicate")),passenger:Ya.Opt(r("entity_predicate")),targeted_entity:Ya.Opt(r("entity_predicate")),lightning_bolt:Ya.Opt(Ya.ObjectNode({blocks_set_on_fire:Ya.Opt(r("int_bounds")),entity_struck:Ya.Opt(r("entity_predicate"))})),fishing_hook:Ya.Opt(Ya.ObjectNode({in_open_water:Ya.Opt(Ya.BooleanNode())})),effects:Ya.Opt(Ya.MapNode(o({validator:"resource",params:{pool:"mob_effect"}}),r("status_effect_predicate")))},{context:"entity"})),e.register("damage_source_predicate",Ya.ObjectNode({is_explosion:Ya.Opt(Ya.BooleanNode()),is_fire:Ya.Opt(Ya.BooleanNode()),is_magic:Ya.Opt(Ya.BooleanNode()),is_projectile:Ya.Opt(Ya.BooleanNode()),is_lightning:Ya.Opt(Ya.BooleanNode()),bypasses_armor:Ya.Opt(Ya.BooleanNode()),bypasses_invulnerability:Ya.Opt(Ya.BooleanNode()),bypasses_magic:Ya.Opt(Ya.BooleanNode()),source_entity:Ya.Opt(r("entity_predicate")),direct_entity:Ya.Opt(r("entity_predicate"))},{context:"damage_source"})),e.register("damage_predicate",Ya.ObjectNode({dealt:r("float_bounds"),taken:r("float_bounds"),blocked:Ya.Opt(Ya.BooleanNode()),source_entity:Ya.Opt(r("entity_predicate")),type:Ya.Opt(r("damage_source_predicate"))},{context:"damage"}))};var Ja={};Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.initRecipeSchemas=void 0;const Ka=Be;Ja.initRecipeSchemas=function(e,t){const r=Ka.Reference.bind(void 0,e),o=Ka.StringNode.bind(void 0,t);e.register("recipe",Ka.Mod(Ka.ObjectNode({type:o({validator:"resource",params:{pool:"recipe_serializer"}}),[Ka.Switch]:[{push:"type"}],[Ka.Case]:{"minecraft:crafting_shaped":{group:Ka.Opt(o({enum:"recipe_group",additional:!0})),pattern:Ka.ListNode(o()),key:Ka.MapNode(o(),r("recipe_ingredient")),result:r("recipe_result")},"minecraft:crafting_shapeless":{group:Ka.Opt(o()),ingredients:Ka.ListNode(r("recipe_ingredient")),result:r("recipe_result")},"minecraft:smelting":{group:Ka.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Ka.Opt(Ka.NumberNode()),cookingtime:Ka.Opt(Ka.Mod(Ka.NumberNode({integer:!0}),{default:()=>200}))},"minecraft:blasting":{group:Ka.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Ka.Opt(Ka.NumberNode()),cookingtime:Ka.Opt(Ka.Mod(Ka.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:smoking":{group:Ka.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Ka.Opt(Ka.NumberNode()),cookingtime:Ka.Opt(Ka.Mod(Ka.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:campfire_cooking":{group:Ka.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),experience:Ka.Opt(Ka.NumberNode()),cookingtime:Ka.Opt(Ka.Mod(Ka.NumberNode({integer:!0}),{default:()=>100}))},"minecraft:stonecutting":{group:Ka.Opt(o()),ingredient:r("recipe_ingredient"),result:o({validator:"resource",params:{pool:"item"}}),count:Ka.NumberNode({integer:!0})},"minecraft:smithing":{group:Ka.Opt(o()),base:r("recipe_ingredient_object"),addition:r("recipe_ingredient_object"),result:r("recipe_result")}}},{context:"recipe"}),{default:()=>({type:"minecraft:crafting_shaped"})})),e.register("recipe_ingredient",Ka.Mod(Ka.ChoiceNode([{type:"object",node:r("recipe_ingredient_object"),change:e=>e[0]},{type:"list",node:Ka.ListNode(r("recipe_ingredient_object")),change:e=>[e]}]),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_ingredient_object",Ka.Mod(Ka.ObjectNode({item:Ka.Opt(o({validator:"resource",params:{pool:"item"}})),tag:Ka.Opt(o({validator:"resource",params:{pool:"$tag/item"}}))}),{default:()=>({item:"minecraft:stone"})})),e.register("recipe_result",Ka.Mod(Ka.ObjectNode({item:o({validator:"resource",params:{pool:"item"}}),count:Ka.Opt(Ka.Mod(Ka.NumberNode({integer:!0}),{default:()=>1}))}),{default:()=>({item:"minecraft:stone"})}))};var Ga={};Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.initTagsSchemas=void 0;const Va=Be;Ga.initTagsSchemas=function(e,t){const r=Va.StringNode.bind(void 0,t),o=e=>Va.Mod(Va.ObjectNode({replace:Va.Opt(Va.BooleanNode()),values:Va.ListNode(Va.ChoiceNode([{type:"string",node:r({validator:"resource",params:{pool:e,allowTag:!0}}),change:e=>e.id},{type:"object",node:Va.ObjectNode({id:r({validator:"resource",params:{pool:e,allowTag:!0,allowUnknown:!0}}),required:Va.BooleanNode()}),change:e=>({id:e})}]))},{context:"tag"}),{default:()=>({values:[]})});e.register("block_tag",o("block")),e.register("entity_type_tag",o("entity_type")),e.register("fluid_tag",o("fluid")),e.register("function_tag",o("$function")),e.register("game_event_tag",o("game_event")),e.register("item_tag",o("item"))};var Qa={};Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.initTextComponentSchemas=void 0;const en=Be;Qa.initTextComponentSchemas=function(e,t){const r=en.Reference.bind(void 0,e),o=en.StringNode.bind(void 0,t),i=e=>{var t;return e instanceof Array?i(e[0]):null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"object"==typeof e?"":null==e?void 0:e.toString()};e.register("text_component",en.Mod(en.ChoiceNode([{type:"object",node:r("text_component_object"),change:e=>e instanceof Array?"object"==typeof e[0]?e[0]:{text:i(e[0])}:"object"==typeof e?e:{text:i(e)}},{type:"list",node:r("text_component_list"),change:e=>[e]},{type:"string",priority:1,node:o(),change:i},{type:"number",node:en.NumberNode(),change:e=>{const t=parseFloat(i(e));return isFinite(t)?t:e?1:0}},{type:"boolean",node:en.BooleanNode(),change:e=>{const t=i(e);return"true"===t||"false"===t?"true"===t:!!t}}],{context:"text_component"}),{default:()=>({text:""})}));const a={color:en.Opt(o()),font:en.Opt(o()),bold:en.Opt(en.BooleanNode()),italic:en.Opt(en.BooleanNode()),underlined:en.Opt(en.BooleanNode()),strikethrough:en.Opt(en.BooleanNode()),obfuscated:en.Opt(en.BooleanNode()),insertion:en.Opt(o()),clickEvent:en.Opt(en.ObjectNode({action:o({enum:["open_url","open_file","run_command","suggest_command","change_page","copy_to_clipboard"]}),[en.Switch]:[{push:"action"}],[en.Case]:{change_page:{value:o()},copy_to_clipboard:{value:o()},open_file:{value:o()},open_url:{value:o()},run_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})},suggest_command:{value:o({validator:"command",params:{leadingSlash:!0,allowPartial:!0}})}}})),hoverEvent:en.Opt(en.ObjectNode({action:o({enum:["show_text","show_item","show_entity"]}),[en.Switch]:[{push:"action"}],[en.Case]:{show_text:{value:en.Opt(r("text_component")),contents:en.Opt(r("text_component"))},show_item:{value:en.Opt(o({validator:"nbt",params:{module:"util::InventoryItem"}})),contents:en.Opt(en.ObjectNode({id:o({validator:"resource",params:{pool:"item"}}),count:en.Opt(en.NumberNode({integer:!0})),tag:en.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:item",id:["pop",{push:"id"}]}}}))}))},show_entity:{value:en.Opt(en.ObjectNode({name:en.Opt(o()),type:en.Opt(o()),id:en.Opt(o())})),contents:en.Opt(en.Mod(en.ObjectNode({name:en.Opt(r("text_component")),type:o({validator:"resource",params:{pool:"entity_type"}}),id:o({validator:"uuid"})}),{default:()=>({type:"minecraft:pig",id:"00000001-0001-0001-0001-000000000001"})}))}}})),extra:en.Opt(r("text_component_list"))};e.register("text_component_object",en.Mod(en.ChoiceNode([{type:"text",match:e=>"object"==typeof e,change:e=>({text:""}),priority:-1,node:en.ObjectNode(m({text:o()},a))},{type:"translation",match:e=>void 0!==(null==e?void 0:e.translate),change:e=>({translate:""}),node:en.ObjectNode(m({translate:o(),with:en.Opt(r("text_component_list"))},a))},{type:"score",match:e=>void 0!==(null==e?void 0:e.score),change:e=>({score:{}}),node:en.ObjectNode(m({score:en.ObjectNode({name:o({validator:"entity",params:{amount:"single",type:"entities",isScoreHolder:!0}}),objective:o({validator:"objective"}),value:en.Opt(o())})},a))},{type:"selector",match:e=>void 0!==(null==e?void 0:e.selector),change:e=>({selector:""}),node:en.ObjectNode(m({selector:o({validator:"entity",params:{amount:"multiple",type:"entities"}}),separator:en.Opt(r("text_component"))},a))},{type:"keybind",match:e=>void 0!==(null==e?void 0:e.keybind),change:e=>({keybind:""}),node:en.ObjectNode(m({keybind:o({enum:"keybind",additional:!0})},a))},{type:"nbt",match:e=>void 0!==(null==e?void 0:e.nbt),change:e=>({nbt:""}),node:en.ObjectNode(m({nbt:o({validator:"nbt_path"}),block:en.Opt(o({validator:"vector",params:{dimension:3,isInteger:!0}})),entity:en.Opt(o({validator:"entity",params:{amount:"multiple",type:"entities"}})),storage:en.Opt(o({validator:"resource",params:{pool:"$storage"}})),interpret:en.Opt(en.BooleanNode()),separator:en.Opt(r("text_component"))},a))}],{context:"text_component_object",choiceContext:"text_component.object"}),{default:()=>({text:""})})),e.register("text_component_list",en.Mod(en.ListNode(r("text_component")),{default:()=>[{text:""}]}))};var tn={},rn={};Object.defineProperty(rn,"__esModule",{value:!0}),rn.initBiomeSchemas=void 0;const on=Be;rn.initBiomeSchemas=function(e,t){const r=on.StringNode.bind(void 0,t);e.register("biome",on.Mod(on.ObjectNode({surface_builder:r({validator:"resource",params:{pool:"$worldgen/configured_surface_builder"}}),temperature:on.NumberNode(),downfall:on.NumberNode(),precipitation:r({enum:["none","rain","snow"]}),temperature_modifier:on.Opt(r({enum:["none","frozen"]})),category:r({enum:"biome_category"}),player_spawn_friendly:on.Opt(on.BooleanNode()),creature_spawn_probability:on.Opt(on.NumberNode({min:0,max:1})),effects:on.ObjectNode({sky_color:on.NumberNode({color:!0}),fog_color:on.NumberNode({color:!0}),water_color:on.NumberNode({color:!0}),water_fog_color:on.NumberNode({color:!0}),grass_color:on.Opt(on.NumberNode({color:!0})),foliage_color:on.Opt(on.NumberNode({color:!0})),grass_color_modifier:on.Opt(r({enum:["none","dark_forest","swamp"]})),ambient_sound:on.Opt(r()),mood_sound:on.Opt(on.ObjectNode({sound:r(),tick_delay:on.NumberNode({integer:!0}),block_search_extent:on.NumberNode({integer:!0}),offset:on.NumberNode()})),additions_sound:on.Opt(on.ObjectNode({sound:r(),tick_chance:on.NumberNode({min:0,max:1})})),music:on.Opt(on.ObjectNode({sound:r(),min_delay:on.NumberNode({integer:!0,min:0}),max_delay:on.NumberNode({integer:!0,min:0}),replace_current_music:on.BooleanNode()})),particle:on.Opt(on.ObjectNode({options:on.ObjectNode({type:r()}),probability:on.NumberNode({min:0,max:1})}))}),spawners:on.MapNode(r({enum:["monster","creature","ambient","axolotls","underground_water_creature","water_creature","water_ambient","misc"]}),on.Mod(on.ListNode(on.ObjectNode({type:r({validator:"resource",params:{pool:"entity_type"}}),weight:on.NumberNode({integer:!0}),minCount:on.NumberNode({integer:!0}),maxCount:on.NumberNode({integer:!0})})),{category:()=>"pool",default:()=>[{type:"minecraft:bat",weight:1}]})),spawn_costs:on.MapNode(r({validator:"resource",params:{pool:"entity_type"}}),on.Mod(on.ObjectNode({energy_budget:on.NumberNode(),charge:on.NumberNode()},{category:"function"}),{default:()=>({energy_budget:.12,charge:1})})),carvers:on.MapNode(r({enum:["air","liquid"]}),on.Mod(on.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_carver"}})),{default:()=>["minecraft:cave"]})),features:on.ListNode(on.Mod(on.ListNode(r({validator:"resource",params:{pool:"$worldgen/configured_feature"}})),{category:()=>"predicate"}),{maxLength:10})},{context:"biome"}),{default:()=>({surface_builder:"minecraft:grass",temperature:.8,downfall:.4,precipitation:"rain",category:"plains",effects:{sky_color:7907327,fog_color:12638463,water_color:4159204,water_fog_color:329011}})}))};var an={};Object.defineProperty(an,"__esModule",{value:!0}),an.initCarverSchemas=void 0;const nn=Be,sn=Sa;an.initCarverSchemas=function(e,t){const r=nn.Reference.bind(void 0,e),o=nn.StringNode.bind(void 0,t),i={vertical_rotation:sn.FloatProvider(),shape:nn.ObjectNode({distance_factor:sn.FloatProvider(),thickness:sn.FloatProvider(),width_smoothness:nn.NumberNode({integer:!0,min:0}),horizontal_radius_factor:sn.FloatProvider(),vertical_radius_default_factor:nn.NumberNode(),vertical_radius_center_factor:nn.NumberNode()})},a={horizontal_radius_multiplier:sn.FloatProvider(),vertical_radius_multiplier:sn.FloatProvider(),floor_level:sn.FloatProvider({min:-1,max:1})};e.register("configured_carver",nn.Mod(nn.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/carver"}}),config:nn.ObjectNode({probability:nn.NumberNode({min:0,max:1}),y:r("height_provider"),yScale:sn.FloatProvider(),lava_level:r("vertical_anchor"),aquifers_enabled:nn.BooleanNode(),debug_settings:nn.Opt(nn.ObjectNode({debug_mode:nn.Opt(nn.BooleanNode()),air_state:nn.Opt(r("block_state")),water_state:nn.Opt(r("block_state")),lava_state:nn.Opt(r("block_state")),barrier_state:nn.Opt(r("block_state"))})),[nn.Switch]:["pop",{push:"type"}],[nn.Case]:{"minecraft:canyon":i,"minecraft:cave":a,"minecraft:nether_cave":a}})},{context:"carver"}),{default:()=>({type:"minecraft:cave",config:{probability:.1}})}))};var cn={};Object.defineProperty(cn,"__esModule",{value:!0}),cn.initDecoratorSchemas=void 0;const ln=Be,dn=Sa;cn.initDecoratorSchemas=function(e,t){const r=ln.Reference.bind(void 0,e),o=ln.StringNode.bind(void 0,t),i={count:dn.IntProvider({min:0,max:256})};e.register("configured_decorator",ln.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/decorator"}}),config:ln.ObjectNode({[ln.Switch]:["pop",{push:"type"}],[ln.Case]:{"minecraft:carving_mask":{step:o({enum:"generation_step"})},"minecraft:cave_surface":{surface:o({enum:["floor","ceiling"]}),floor_to_ceiling_search_range:ln.NumberNode({integer:!0})},"minecraft:chance":{chance:ln.NumberNode({integer:!0,min:0})},"minecraft:count":i,"minecraft:count_extra":{count:ln.NumberNode({integer:!0,min:0}),extra_count:ln.NumberNode({integer:!0,min:0}),extra_chance:ln.NumberNode({min:0,max:1})},"minecraft:count_multilayer":i,"minecraft:count_noise":{noise_level:ln.NumberNode(),below_noise:ln.NumberNode({integer:!0}),above_noise:ln.NumberNode({integer:!0})},"minecraft:count_noise_biased":{noise_to_count_ratio:ln.NumberNode({integer:!0}),noise_factor:ln.NumberNode(),noise_offset:ln.Opt(ln.NumberNode())},"minecraft:decorated":{outer:r("configured_decorator"),inner:r("configured_decorator")},"minecraft:heightmap":{heightmap:o({enum:"heightmap_type"})},"minecraft:heightmap_spread_double":{heightmap:o({enum:"heightmap_type"})},"minecraft:lava_lake":{chance:ln.NumberNode({integer:!0,min:0})},"minecraft:range":{height:r("height_provider")},"minecraft:surface_relative_threshold":{heightmap:o({enum:"heightmap_type"}),min_inclusive:ln.Opt(ln.NumberNode({integer:!0})),max_inclusive:ln.Opt(ln.NumberNode({integer:!0}))},"minecraft:water_depth_threshold":{max_water_depth:ln.NumberNode({integer:!0})}}},{context:"decorator",category:"predicate"})},{context:"decorator",category:"predicate"}))};var mn={},_n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.initProcessorListSchemas=_n.Processors=void 0;const pn=Be;_n.initProcessorListSchemas=function(e,t){const r=pn.Reference.bind(void 0,e),o=pn.StringNode.bind(void 0,t);_n.Processors=pn.ChoiceNode([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/processor_list"}}),change:e=>{}},{type:"object",node:r("processor_list"),change:e=>({processors:[{processor_type:"minecraft:nop"}]})}]),e.register("processor_list",pn.Mod(pn.ObjectNode({processors:pn.ListNode(r("processor"))},{context:"processor_list"}),{default:()=>({processors:[{processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]}]})})),e.register("processor",pn.Mod(pn.ObjectNode({processor_type:o({validator:"resource",params:{pool:"worldgen/structure_processor"}}),[pn.Switch]:[{push:"processor_type"}],[pn.Case]:{"minecraft:block_age":{mossiness:pn.NumberNode()},"minecraft:block_ignore":{blocks:pn.ListNode(r("block_state"))},"minecraft:block_rot":{integrity:pn.NumberNode({min:0,max:1})},"minecraft:gravity":{heightmap:o({enum:"heightmap_type"}),offset:pn.NumberNode({integer:!0})},"minecraft:protected_blocks":{value:o({validator:"resource",params:{pool:"$tag/block"}})},"minecraft:rule":{rules:pn.ListNode(r("processor_rule"))}}},{category:"function",context:"processor"}),{default:()=>({processor_type:"minecraft:rule",rules:[{location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}}]})})),e.register("processor_rule",pn.Mod(pn.ObjectNode({position_predicate:pn.Opt(r("pos_rule_test")),location_predicate:r("rule_test"),input_predicate:r("rule_test"),output_state:r("block_state"),output_nbt:pn.Opt(o({validator:"nbt",params:{registry:{category:"minecraft:block"}}}))},{category:"predicate",context:"processor_rule"}),{default:()=>({location_predicate:{predicate_type:"minecraft:always_true"},input_predicate:{predicate_type:"minecraft:always_true"}})}));const i={min_dist:pn.Opt(pn.NumberNode({min:0,max:255,integer:!0})),max_dist:pn.Opt(pn.NumberNode({min:0,max:255,integer:!0})),min_chance:pn.Opt(pn.NumberNode({min:0,max:1})),max_chance:pn.Opt(pn.NumberNode({min:0,max:1}))};e.register("pos_rule_test",pn.ObjectNode({predicate_type:o({validator:"resource",params:{pool:"pos_rule_test"}}),[pn.Switch]:[{push:"predicate_type"}],[pn.Case]:{"minecraft:axis_aligned_linear_pos":m({axis:o({enum:["x","y","z"]})},i),"minecraft:linear_pos":i}},{context:"pos_rule_test",disableSwitchContext:!0})),e.register("rule_test",pn.ObjectNode({predicate_type:o({validator:"resource",params:{pool:"rule_test"}}),[pn.Switch]:[{push:"predicate_type"}],[pn.Case]:{"minecraft:block_match":{block:o({validator:"resource",params:{pool:"block"}})},"minecraft:blockstate_match":{block_state:r("block_state")},"minecraft:random_block_match":{block:o({validator:"resource",params:{pool:"block"}}),probability:pn.NumberNode({min:0,max:1})},"minecraft:random_blockstate_match":{block_state:r("block_state"),probability:pn.NumberNode({min:0,max:1})},"minecraft:tag_match":{tag:o({validator:"resource",params:{pool:"$tag/block"}})}}},{context:"rule_test",disableSwitchContext:!0}))},Object.defineProperty(mn,"__esModule",{value:!0}),mn.initFeatureSchemas=void 0;const un=Be,fn=Sa,hn=_n;mn.initFeatureSchemas=function(e,t){const r=un.Reference.bind(void 0,e),o=un.StringNode.bind(void 0,t),i={can_replace:un.Opt(un.BooleanNode()),project:un.Opt(un.BooleanNode()),need_water:un.Opt(un.BooleanNode()),xspread:un.Opt(un.NumberNode({integer:!0,min:0})),yspread:un.Opt(un.NumberNode({integer:!0,min:0})),zspread:un.Opt(un.NumberNode({integer:!0,min:0})),tries:un.Opt(un.NumberNode({integer:!0,min:1})),state_provider:r("block_state_provider"),block_placer:r("block_placer"),whitelist:un.ListNode(r("block_state")),blacklist:un.ListNode(r("block_state"))},a={state:r("block_state"),radius:fn.IntProvider({min:0,max:8}),half_height:un.NumberNode({integer:!0,min:0,max:4}),targets:un.ListNode(r("block_state"))},n={cap_provider:r("block_state_provider"),stem_provider:r("block_state_provider"),foliage_radius:un.Opt(un.NumberNode({integer:!0}))},s=un.ObjectNode({target:r("rule_test"),state:r("block_state")}),c={size:un.NumberNode({integer:!0,min:0,max:64}),discard_chance_on_air_exposure:un.NumberNode({min:0,max:1}),targets:un.ListNode(s)},l=un.ChoiceNode([{type:"string",node:o({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},{type:"object",node:r("configured_feature")}],{choiceContext:"feature"}),d={surface:o({enum:["floor","ceiling"]}),depth:fn.IntProvider({min:1,max:128}),vertical_range:un.NumberNode({integer:!0,min:1,max:256}),extra_bottom_block_chance:un.NumberNode({min:0,max:1}),extra_edge_column_chance:un.NumberNode({min:0,max:1}),vegetation_chance:un.NumberNode({min:0,max:1}),xz_radius:fn.IntProvider(),replaceable:o({validator:"resource",params:{pool:"$tag/block"}}),ground_state:r("block_state_provider"),vegetation_feature:l};e.register("configured_feature",un.Mod(un.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/feature"}}),config:un.ObjectNode({[un.Switch]:["pop",{push:"type"}],[un.Case]:{"minecraft:bamboo":{probability:un.NumberNode({min:0,max:1})},"minecraft:basalt_columns":{reach:fn.IntProvider({min:0,max:3}),height:fn.IntProvider({min:1,max:10})},"minecraft:block_pile":{state_provider:r("block_state_provider")},"minecraft:decorated":{decorator:r("configured_decorator"),feature:l},"minecraft:decorated_flower":{decorator:r("configured_decorator"),feature:l},"minecraft:delta_feature":{contents:r("block_state"),rim:r("block_state"),size:fn.IntProvider({min:0,max:16}),rim_size:fn.IntProvider({min:0,max:16})},"minecraft:disk":a,"minecraft:dripstone_cluster":{floor_to_ceiling_search_range:un.NumberNode({integer:!0,min:1,max:512}),height:fn.IntProvider({min:0,max:128}),radius:fn.IntProvider({min:0,max:128}),max_stalagmite_stalactite_height_diff:un.NumberNode({integer:!0,min:0,max:64}),height_deviation:un.NumberNode({integer:!0,min:1,max:64}),dripstone_block_layer_thickness:fn.IntProvider({min:0,max:128}),density:fn.FloatProvider({min:0,max:2}),wetness:fn.FloatProvider({min:0,max:2}),chance_of_dripstone_column_at_max_distance_from_center:un.NumberNode({min:0,max:1}),max_distance_from_edge_affecting_chance_of_dripstone_column:un.NumberNode({integer:!0,min:1,max:64}),max_distance_from_center_affecting_height_bias:un.NumberNode({integer:!0,min:1,max:64})},"minecraft:end_gateway":{exact:un.BooleanNode(),exit:un.Opt(r("block_pos"))},"minecraft:end_spike":{crystal_invulnerable:un.Opt(un.BooleanNode()),crystal_beam_target:un.Opt(r("block_pos")),spikes:un.ListNode(un.ObjectNode({centerX:un.Opt(un.NumberNode({integer:!0})),centerZ:un.Opt(un.NumberNode({integer:!0})),radius:un.Opt(un.NumberNode({integer:!0})),height:un.Opt(un.NumberNode({integer:!0})),guarded:un.Opt(un.BooleanNode())}))},"minecraft:fill_layer":{state:r("block_state"),height:un.NumberNode({integer:!0,min:0,max:255})},"minecraft:flower":i,"minecraft:forest_rock":{state:r("block_state")},"minecraft:fossil":{max_empty_corners_allowed:un.NumberNode({integer:!0,min:0,max:7}),fossil_structures:un.ListNode(o({validator:"resource",params:{pool:"$structure"}})),overlay_structures:un.ListNode(o({validator:"resource",params:{pool:"$structure"}})),fossil_processors:hn.Processors,overlay_processors:hn.Processors},"minecraft:geode":{blocks:un.ObjectNode({filling_provider:r("block_state_provider"),inner_layer_provider:r("block_state_provider"),alternate_inner_layer_provider:r("block_state_provider"),middle_layer_provider:r("block_state_provider"),outer_layer_provider:r("block_state_provider"),inner_placements:un.ListNode(r("block_state")),cannot_replace:o({validator:"resource",params:{pool:"$tag/block"}}),invalid_blocks:o({validator:"resource",params:{pool:"$tag/block"}})}),layers:un.ObjectNode({filling:un.Opt(un.NumberNode({min:.01,max:50})),inner_layer:un.Opt(un.NumberNode({min:.01,max:50})),middle_layer:un.Opt(un.NumberNode({min:.01,max:50})),outer_layer:un.Opt(un.NumberNode({min:.01,max:50}))}),crack:un.ObjectNode({generate_crack_chance:un.Opt(un.NumberNode({min:0,max:1})),base_crack_size:un.Opt(un.NumberNode({min:0,max:5})),crack_point_offset:un.Opt(un.NumberNode({min:0,max:10,integer:!0}))}),noise_multiplier:un.Opt(un.NumberNode({min:0,max:1})),use_potential_placements_chance:un.Opt(un.NumberNode({min:0,max:1})),use_alternate_layer0_chance:un.Opt(un.NumberNode({min:0,max:1})),placements_require_layer0_alternate:un.Opt(un.BooleanNode()),outer_wall_distance:un.Opt(fn.IntProvider({min:1,max:20})),distribution_points:un.Opt(fn.IntProvider({min:1,max:20})),point_offset:un.Opt(fn.IntProvider({min:0,max:10})),min_gen_offset:un.Opt(un.NumberNode({integer:!0})),max_gen_offset:un.Opt(un.NumberNode({integer:!0})),invalid_blocks_threshold:un.NumberNode({integer:!0})},"minecraft:glow_lichen":{search_range:un.Opt(un.NumberNode({min:1,max:64,integer:!0})),chance_of_spreading:un.Opt(un.NumberNode({min:0,max:1})),can_place_on_floor:un.Opt(un.BooleanNode()),can_place_on_ceiling:un.Opt(un.BooleanNode()),can_place_on_wall:un.Opt(un.BooleanNode()),can_be_placed_on:un.ListNode(r("block_state"))},"minecraft:growing_plant":{direction:o({enum:["up","down","north","east","south","west"]}),allow_water:un.BooleanNode(),height_distribution:un.ListNode(un.ObjectNode({weight:un.NumberNode({integer:!0}),data:fn.IntProvider()})),body_provider:r("block_state_provider"),head_provider:r("block_state_provider")},"minecraft:huge_brown_mushroom":n,"minecraft:huge_fungus":{hat_state:r("block_state"),decor_state:r("block_state"),stem_state:r("block_state"),valid_base_block:r("block_state"),planted:un.Opt(un.BooleanNode())},"minecraft:huge_red_mushroom":n,"minecraft:ice_patch":a,"minecraft:iceberg":{state:r("block_state")},"minecraft:lake":{state:r("block_state")},"minecraft:large_dripstone":{floor_to_ceiling_search_range:un.Opt(un.NumberNode({integer:!0,min:1,max:512})),column_radius:fn.IntProvider({min:0,max:60}),height_scale:fn.FloatProvider({min:0,max:20}),max_column_radius_to_cave_height_ratio:un.NumberNode({min:0,max:1}),stalactite_bluntness:fn.FloatProvider({min:.1,max:10}),stalagmite_bluntness:fn.FloatProvider({min:.1,max:10}),wind_speed:fn.FloatProvider({min:0,max:2}),min_radius_for_wind:un.NumberNode({integer:!0,min:0,max:100}),min_bluntness_for_wind:un.NumberNode({min:0,max:5})},"minecraft:nether_forest_vegetation":{state_provider:r("block_state_provider")},"minecraft:netherrack_replace_blobs":{state:r("block_state"),target:r("block_state"),radius:fn.IntProvider({min:0,max:12})},"minecraft:no_bonemeal_flower":i,"minecraft:ore":c,"minecraft:random_patch":i,"minecraft:random_boolean_selector":{feature_false:l,feature_true:l},"minecraft:random_selector":{features:un.ListNode(un.ObjectNode({chance:un.NumberNode({min:0,max:1}),feature:l})),default:l},"minecraft:replace_single_block":{targets:un.ListNode(s)},"minecraft:root_system":{required_vertical_space_for_tree:un.NumberNode({integer:!0,min:1,max:64}),root_radius:un.NumberNode({integer:!0,min:1,max:64}),root_placement_attempts:un.NumberNode({integer:!0,min:1,max:256}),root_column_max_height:un.NumberNode({integer:!0,min:1,max:4096}),hanging_root_radius:un.NumberNode({integer:!0,min:1,max:64}),hanging_roots_vertical_span:un.NumberNode({integer:!0,min:0,max:16}),hanging_root_placement_attempts:un.NumberNode({integer:!0,min:0,max:256}),allowed_vertical_water_for_tree:un.NumberNode({integer:!0,min:1,max:64}),root_replaceable:o({validator:"resource",params:{pool:"$tag/block"}}),root_state_provider:r("block_state_provider"),hanging_root_state_provider:r("block_state_provider"),feature:l},"minecraft:scattered_ore":c,"minecraft:sea_pickle":{count:fn.IntProvider({min:0,max:256})},"minecraft:seagrass":{probability:un.NumberNode({min:0,max:1})},"minecraft:simple_block":{to_place:r("block_state_provider"),place_on:un.Opt(un.ListNode(r("block_state"))),place_in:un.Opt(un.ListNode(r("block_state"))),place_under:un.Opt(un.ListNode(r("block_state")))},"minecraft:simple_random_selector":{features:un.ListNode(l)},"minecraft:small_dripstone":{max_placements:un.Opt(un.NumberNode({integer:!0,min:0,max:100})),empty_space_search_radius:un.Opt(un.NumberNode({integer:!0,min:0,max:20})),max_offset_from_origin:un.Opt(un.NumberNode({integer:!0,min:0,max:20})),chance_of_taller_dripstone:un.Opt(un.NumberNode({min:0,max:1}))},"minecraft:spring_feature":{state:r("fluid_state"),rock_count:un.NumberNode({integer:!0}),hole_count:un.NumberNode({integer:!0}),requires_block_below:un.BooleanNode(),valid_blocks:un.ListNode(o({validator:"resource",params:{pool:"block"}}))},"minecraft:tree":{ignore_vines:un.Opt(un.BooleanNode()),force_dirt:un.Opt(un.BooleanNode()),minimum_size:r("feature_size"),dirt_provider:r("block_state_provider"),sapling_provider:r("block_state_provider"),trunk_provider:r("block_state_provider"),foliage_provider:r("block_state_provider"),trunk_placer:un.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/trunk_placer_type"}}),base_height:un.NumberNode({integer:!0,min:0,max:32}),height_rand_a:un.NumberNode({integer:!0,min:0,max:24}),height_rand_b:un.NumberNode({integer:!0,min:0,max:24}),[un.Switch]:[{push:"type"}],[un.Case]:{"minecraft:bending_trunk_placer":{bend_length:fn.IntProvider({min:1,max:64}),min_height_for_leaves:un.Opt(un.NumberNode({integer:!0,min:1}))}}},{context:"trunk_placer"}),foliage_placer:un.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/foliage_placer_type"}}),radius:fn.IntProvider({min:0,max:16}),offset:fn.IntProvider({min:0,max:16}),[un.Switch]:[{push:"type"}],[un.Case]:{"minecraft:blob_foliage_placer":{height:un.NumberNode({integer:!0,min:0,max:16})},"minecraft:bush_foliage_placer":{height:un.NumberNode({integer:!0,min:0,max:16})},"minecraft:fancy_foliage_placer":{height:un.NumberNode({integer:!0,min:0,max:16})},"minecraft:jungle_foliage_placer":{height:un.NumberNode({integer:!0,min:0,max:16})},"minecraft:mega_pine_foliage_placer":{crown_height:fn.IntProvider({min:0,max:24})},"minecraft:pine_foliage_placer":{height:fn.IntProvider({min:0,max:24})},"minecraft:random_spread_foliage_placer":{foliage_height:fn.IntProvider({min:1,max:512}),leaf_placement_attempts:un.NumberNode({integer:!0,min:0,max:256})},"minecraft:spruce_foliage_placer":{trunk_height:fn.IntProvider({min:0,max:24})}}},{context:"foliage_placer",disableSwitchContext:!0}),decorators:un.ListNode(un.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/tree_decorator_type"}}),[un.Switch]:[{push:"type"}],[un.Case]:{"minecraft:alter_ground":{provider:r("block_state_provider")},"minecraft:beehive":{probability:un.NumberNode({min:0,max:1})},"minecraft:cocoa":{probability:un.NumberNode({min:0,max:1})}}},{context:"tree_decorator"}))},"minecraft:underwater_magma":{floor_search_range:un.NumberNode({integer:!0,min:0,max:512}),placement_radius_around_floor:un.NumberNode({integer:!0,min:0,max:64}),placement_probability_per_valid_position:un.NumberNode({min:0,max:1})},"minecraft:vegetation_patch":d,"minecraft:waterlogged_vegetation_patch":d}},{context:"feature"})},{context:"feature"}),{default:()=>({type:"minecraft:decorated",config:{decorator:{type:"minecraft:count",config:{count:4}},feature:{type:"minecraft:tree",config:{max_water_depth:0,ignore_vines:!0,minimum_size:{},trunk_placer:{base_height:5,height_rand_a:2,height_rand_b:0},foliage_placer:{radius:2,offset:0,height:3}}}}})})),e.register("feature_size",un.Mod(un.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/feature_size_type"}}),min_clipped_height:un.Opt(un.NumberNode({min:0,max:80})),[un.Switch]:[{push:"type"}],[un.Case]:{"minecraft:two_layers_feature_size":{limit:un.Opt(un.NumberNode({integer:!0,min:0,max:81})),lower_size:un.Opt(un.NumberNode({integer:!0,min:0,max:16})),upper_size:un.Opt(un.NumberNode({integer:!0,min:0,max:16}))},"minecraft:three_layers_feature_size":{limit:un.Opt(un.NumberNode({integer:!0,min:0,max:80})),upper_limit:un.Opt(un.NumberNode({integer:!0,min:0,max:80})),lower_size:un.Opt(un.NumberNode({integer:!0,min:0,max:16})),middle_size:un.Opt(un.NumberNode({integer:!0,min:0,max:16})),upper_size:un.Opt(un.NumberNode({integer:!0,min:0,max:16}))}}},{disableSwitchContext:!0}),{default:()=>({type:"minecraft:two_layers_feature_size"})}));const p={seed:un.NumberNode({integer:!0}),noise:r("noise_parameters"),scale:un.Mod(un.NumberNode({min:Number.MIN_VALUE}),{default:()=>1})};e.register("block_state_provider",un.Mod(un.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/block_state_provider_type"}}),[un.Switch]:[{push:"type"}],[un.Case]:{"minecraft:dual_noise_2d_provider":_(m({},p),{variety:fn.InclusiveRange({integer:!0,min:1,max:64}),slow_noise:r("noise_parameters"),slow_scale:un.Mod(un.NumberNode({min:Number.MIN_VALUE}),{default:()=>1}),states:un.ListNode(r("block_state"))}),"minecraft:noise_2d_cutoff_provider":_(m({},p),{threshold:un.NumberNode({min:-1,max:1}),high_chance:un.NumberNode({min:0,max:1}),default_state:r("block_state"),low_states:un.ListNode(r("block_state")),high_states:un.ListNode(r("block_state"))}),"minecraft:noise_2d_provider":_(m({},p),{states:un.ListNode(r("block_state"))}),"minecraft:randomized_int_state_provider":{property:o(),values:fn.IntProvider(),source:r("block_state_provider")},"minecraft:rotated_block_provider":{state:r("block_state")},"minecraft:simple_state_provider":{state:r("block_state")},"minecraft:weighted_state_provider":{entries:un.ListNode(un.Mod(un.ObjectNode({weight:un.NumberNode({integer:!0,min:1}),data:r("block_state")}),{default:()=>({data:{}})}))}}},{context:"block_state_provider"}),{default:()=>({type:"minecraft:simple_state_provider"})})),e.register("block_placer",un.Mod(un.ObjectNode({type:o({validator:"resource",params:{pool:"worldgen/block_placer_type"}}),[un.Switch]:[{push:"type"}],[un.Case]:{"minecraft:column_placer":{size:fn.IntProvider({min:0})}}},{context:"block_placer"}),{default:()=>({type:"minecraft:simple_block_placer"})}))};var bn={};Object.defineProperty(bn,"__esModule",{value:!0}),bn.initNoiseSettingsSchemas=void 0;const gn=Be,vn=Sa;bn.initNoiseSettingsSchemas=function(e,t){const r=gn.Reference.bind(void 0,e),o=gn.StringNode.bind(void 0,t);e.register("noise_settings",gn.Mod(gn.ObjectNode({bedrock_roof_position:gn.NumberNode({integer:!0}),bedrock_floor_position:gn.NumberNode({integer:!0}),sea_level:gn.NumberNode({integer:!0}),disable_mob_generation:gn.BooleanNode(),noise_caves_enabled:gn.BooleanNode(),noodle_caves_enabled:gn.BooleanNode(),aquifers_enabled:gn.BooleanNode(),deepslate_enabled:gn.BooleanNode(),ore_veins_enabled:gn.BooleanNode(),default_block:r("block_state"),default_fluid:r("block_state"),noise:gn.ObjectNode({min_y:gn.NumberNode({integer:!0,min:-2048,max:2047}),height:gn.NumberNode({integer:!0,min:0,max:4096}),density_factor:gn.NumberNode(),density_offset:gn.NumberNode(),size_horizontal:gn.NumberNode({integer:!0}),size_vertical:gn.NumberNode({integer:!0}),simplex_surface_noise:gn.BooleanNode(),random_density_offset:gn.Opt(gn.BooleanNode()),island_noise_override:gn.Opt(gn.BooleanNode()),amplified:gn.Opt(gn.BooleanNode()),use_legacy_random:gn.Opt(gn.BooleanNode()),sampling:gn.ObjectNode({xz_scale:gn.NumberNode(),y_scale:gn.NumberNode(),xz_factor:gn.NumberNode(),y_factor:gn.NumberNode()}),bottom_slide:r("noise_slider"),top_slide:r("noise_slider")}),octaves:gn.ObjectNode({temperature:r("noise_parameters"),humidity:r("noise_parameters"),continentalness:r("noise_parameters"),erosion:r("noise_parameters"),weirdness:r("noise_parameters"),shift:r("noise_parameters")}),structures:r("generator_structures")},{context:"noise_settings"}),(e=>({default:()=>vn.DefaultNoiseSettings,validate:(t,r,o,i)=>{var a,n,s,c;return(null===(a=null==(r=e.validate(t,r,o,i))?void 0:r.noise)||void 0===a?void 0:a.min_y)+(null===(n=null==r?void 0:r.noise)||void 0===n?void 0:n.height)>2047&&o.add(t.push("noise").push("height"),"error.min_y_plus_height",2047),(null===(s=null==r?void 0:r.noise)||void 0===s?void 0:s.height)%16!=0&&o.add(t.push("noise").push("height"),"error.height_multiple",16),(null===(c=null==r?void 0:r.noise)||void 0===c?void 0:c.min_y)%16!=0&&o.add(t.push("noise").push("min_y"),"error.min_y_multiple",16),r}})))),e.register("noise_slider",gn.ObjectNode({target:gn.NumberNode(),size:gn.NumberNode({integer:!0,min:0}),offset:gn.NumberNode({integer:!0})})),e.register("generator_structures",gn.ObjectNode({stronghold:gn.Opt(gn.ObjectNode({distance:gn.NumberNode({integer:!0,min:0,max:1023}),spread:gn.NumberNode({integer:!0,min:0,max:1023}),count:gn.NumberNode({integer:!0,min:1,max:4095})})),structures:gn.MapNode(o({validator:"resource",params:{pool:"worldgen/structure_feature"}}),gn.Mod(gn.ObjectNode({spacing:gn.NumberNode({integer:!0,min:0,max:4096}),separation:gn.Mod(gn.NumberNode({integer:!0,min:0,max:4096}),(e=>({validate:(t,r,o,i)=>(t.pop().push("spacing").get()<=r&&o.add(t,"error.separation_smaller_spacing"),e.validate(t,r,o,i))}))),salt:gn.NumberNode({integer:!0,min:0})},{context:"generator_structure"}),{default:()=>({spacing:10,separation:5,salt:0})}))})),e.register("generator_layer",gn.Mod(gn.ObjectNode({block:o({validator:"resource",params:{pool:"block"}}),height:gn.NumberNode({integer:!0,min:1})}),{default:()=>({block:"minecraft:stone",height:1})}))};var yn={};Object.defineProperty(yn,"__esModule",{value:!0}),yn.initStructureFeatureSchemas=void 0;const Nn=Be;yn.initStructureFeatureSchemas=function(e,t){const r=Nn.StringNode.bind(void 0,t),o=Nn.Reference.bind(void 0,e),i={start_pool:r({validator:"resource",params:{pool:"$worldgen/template_pool"}}),size:Nn.NumberNode({integer:!0})};e.register("configured_structure_feature",Nn.Mod(Nn.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/structure_feature"}}),config:Nn.ObjectNode({[Nn.Switch]:["pop",{push:"type"}],[Nn.Case]:{"minecraft:bastion_remnant":i,"minecraft:buried_treasure":{probability:Nn.NumberNode({min:0,max:1})},"minecraft:mineshaft":{type:r({enum:["normal","mesa"]}),probability:Nn.NumberNode({min:0,max:1})},"minecraft:nether_fossil":{height:o("height_provider")},"minecraft:ocean_ruin":{biome_temp:r({enum:["cold","warm"]}),large_probability:Nn.NumberNode({min:0,max:1}),cluster_probability:Nn.NumberNode({min:0,max:1})},"minecraft:pillager_outpost":i,"minecraft:ruined_portal":{portal_type:r({enum:["standard","desert","jungle","mountain","nether","ocean","swamp"]})},"minecraft:shipwreck":{is_beached:Nn.Opt(Nn.BooleanNode())},"minecraft:village":i}},{context:"structure_feature",disableSwitchContext:!0})},{context:"structure_feature"}),{default:()=>({type:"minecraft:bastion_remnant",config:{start_pool:"minecraft:bastion/starts",size:6}})}))};var On={};Object.defineProperty(On,"__esModule",{value:!0}),On.initSurfaceBuilderSchemas=void 0;const kn=Be;On.initSurfaceBuilderSchemas=function(e,t){const r=kn.StringNode.bind(void 0,t),o=kn.Reference.bind(void 0,e);e.register("configured_surface_builder",kn.Mod(kn.ObjectNode({type:r({validator:"resource",params:{pool:"worldgen/surface_builder"}}),config:kn.ObjectNode({top_material:o("block_state"),under_material:o("block_state"),underwater_material:o("block_state")},{context:"surface_builder"})},{context:"surface_builder"}),{default:()=>({type:"minecraft:default",config:{top_material:{Name:"minecraft:grass_block",Properties:{snowy:"false"}},under_material:{Name:"minecraft:dirt"},underwater_material:{Name:"minecraft:gravel"}}})}))};var wn={};Object.defineProperty(wn,"__esModule",{value:!0}),wn.initTemplatePoolSchemas=void 0;const xn=Be,jn=_n;wn.initTemplatePoolSchemas=function(e,t){const r=xn.Reference.bind(void 0,e),o=xn.StringNode.bind(void 0,t);e.register("template_pool",xn.Mod(xn.ObjectNode({fallback:o(),elements:xn.ListNode(r("template_weighted_element"))},{context:"template_pool"}),{default:()=>({fallback:"minecraft:empty",elements:[{weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}}]})})),e.register("template_weighted_element",xn.Mod(xn.ObjectNode({weight:xn.NumberNode({integer:!0,min:1}),element:r("template_element")},{category:"pool"}),{default:()=>({weight:1,element:{element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"}})})),e.register("template_element",xn.Mod(xn.ObjectNode({element_type:o({validator:"resource",params:{pool:"worldgen/structure_pool_element"}}),projection:o({enum:["rigid","terrain_matching"]}),[xn.Switch]:[{push:"element_type"}],[xn.Case]:{"minecraft:feature_pool_element":{feature:o({validator:"resource",params:{pool:"$worldgen/configured_feature"}})},"minecraft:legacy_single_pool_element":{location:o({validator:"resource",params:{pool:"$structure"}}),processors:jn.Processors},"minecraft:list_pool_element":{elements:xn.ListNode(r("template_element"))},"minecraft:single_pool_element":{location:o({validator:"resource",params:{pool:"$structure"}}),processors:jn.Processors}}},{context:"template_element",disableSwitchContext:!0}),{default:()=>({element_type:"minecraft:single_pool_element",projection:"rigid",processors:"minecraft:empty"})}))},Object.defineProperty(tn,"__esModule",{value:!0}),tn.initWorldgenSchemas=void 0;const Sn=rn,Mn=an,Pn=cn,Cn=mn,Ln=bn,Bn=_n,zn=yn,Rn=On,An=wn;tn.initWorldgenSchemas=function(e,t){Bn.initProcessorListSchemas(e,t),Sn.initBiomeSchemas(e,t),Mn.initCarverSchemas(e,t),Pn.initDecoratorSchemas(e,t),Cn.initFeatureSchemas(e,t),Ln.initNoiseSettingsSchemas(e,t),zn.initStructureFeatureSchemas(e,t),Rn.initSurfaceBuilderSchemas(e,t),An.initTemplatePoolSchemas(e,t)};var In={};Object.defineProperty(In,"__esModule",{value:!0}),In.initWorldSettingsSchemas=void 0;const Tn=Be;In.initWorldSettingsSchemas=function(e,t){const r=Tn.Reference.bind(void 0,e),o=Tn.StringNode.bind(void 0,t);e.register("world_settings",Tn.Mod(Tn.ObjectNode({generate_features:Tn.BooleanNode(),bonus_chest:Tn.BooleanNode(),seed:Tn.NumberNode({integer:!0}),dimensions:Tn.MapNode(o({validator:"resource",params:{pool:"$dimension"}}),r("dimension"))},{context:"world_settings"}),{default:()=>{const e=Math.floor(4294967296*Math.random())-2147483648;return{generate_features:!0,bonus_chest:!1,seed:e,dimensions:{"minecraft:overworld":{type:"minecraft:overworld",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:vanilla_layered",seed:e},settings:"minecraft:overworld"}},"minecraft:the_nether":{type:"minecraft:the_nether",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:multi_noise",seed:e,humidity_noise:{firstOctave:-7,amplitudes:[1,1]},altitude_noise:{firstOctave:-7,amplitudes:[1,1]},weirdness_noise:{firstOctave:-7,amplitudes:[1,1]},temperature_noise:{firstOctave:-7,amplitudes:[1,1]},biomes:[{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:0},biome:"minecraft:nether_wastes"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:0,humidity:-.5},biome:"minecraft:soul_sand_valley"},{parameters:{altitude:0,weirdness:0,offset:0,temperature:.4,humidity:0},biome:"minecraft:crimson_forest"},{parameters:{altitude:0,weirdness:0,offset:.375,temperature:0,humidity:.5},biome:"minecraft:warped_forest"},{parameters:{altitude:0,weirdness:0,offset:.175,temperature:-.5,humidity:0},biome:"minecraft:basalt_deltas"}]},settings:"minecraft:nether"}},"minecraft:the_end":{type:"minecraft:the_end",generator:{type:"minecraft:noise",seed:e,biome_source:{type:"minecraft:the_end",seed:e},settings:"minecraft:end"}}}}}}))},Object.defineProperty(wa,"__esModule",{value:!0}),wa.initSchemas=void 0;const Dn=xa,En=Sa,Fn=Ma,$n=La,Un=Ra,qn=Ta,Zn=Fa,Hn=Ha,Wn=Xa,Xn=Ja,Yn=Ga,Jn=Qa,Kn=tn,Gn=In;wa.initSchemas=function(e,t){En.initCommonSchemas(e,t),Dn.initAdvancementSchemas(e,t),Fn.initConditionSchemas(e,t),Un.initDimensionTypeSchemas(e,t),$n.initDimensionSchemas(e,t),qn.initItemModifierSchemas(e,t),Zn.initLootTableSchemas(e,t),Hn.initPackMcmetaSchemas(e,t),Wn.initPredicatesSchemas(e,t),Xn.initRecipeSchemas(e,t),Yn.initTagsSchemas(e,t),Jn.initTextComponentSchemas(e,t),Kn.initWorldgenSchemas(e,t),Gn.initWorldSettingsSchemas(e,t)};var Vn=Le&&Le.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),Qn=Le&&Le.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),es=Le&&Le.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&Vn(t,e,r);return Qn(t,e),t};Object.defineProperty(Oa,"__esModule",{value:!0});var ts=Oa.getSchemas=Oa.getCollections=void 0;const rs=Be,os=ka,is=wa;var as=Oa.lootContext=es($a);var ns=Oa.getCollections=function(){const e=new rs.CollectionRegistry;return os.initCollections(e),e};ts=Oa.getSchemas=function(e){const t=new rs.SchemaRegistry;return is.initSchemas(t,e),t};var ss=Object.freeze(Object.assign(Object.create(null),Oa,{[Symbol.toStringTag]:"Module",get getSchemas(){return ts},get getCollections(){return ns},lootContext:as,default:Oa})),cs=function(e){return(e=e||{}).circles?function(e){var t=[],r=[];return e.proto?function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return o(i,e);if(i instanceof Map)return new Map(o(Array.from(i),e));if(i instanceof Set)return new Set(o(Array.from(i),e));var a={};for(var n in t.push(i),r.push(a),i){var s=i[n];if("object"!=typeof s||null===s)a[n]=s;else if(s instanceof Date)a[n]=new Date(s);else if(s instanceof Map)a[n]=new Map(o(Array.from(s),e));else if(s instanceof Set)a[n]=new Set(o(Array.from(s),e));else if(ArrayBuffer.isView(s))a[n]=ls(s);else{var c=t.indexOf(s);a[n]=-1!==c?r[c]:e(s)}}return t.pop(),r.pop(),a}:function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return o(i,e);if(i instanceof Map)return new Map(o(Array.from(i),e));if(i instanceof Set)return new Set(o(Array.from(i),e));var a={};for(var n in t.push(i),r.push(a),i)if(!1!==Object.hasOwnProperty.call(i,n)){var s=i[n];if("object"!=typeof s||null===s)a[n]=s;else if(s instanceof Date)a[n]=new Date(s);else if(s instanceof Map)a[n]=new Map(o(Array.from(s),e));else if(s instanceof Set)a[n]=new Set(o(Array.from(s),e));else if(ArrayBuffer.isView(s))a[n]=ls(s);else{var c=t.indexOf(s);a[n]=-1!==c?r[c]:e(s)}}return t.pop(),r.pop(),a};function o(e,o){for(var i=Object.keys(e),a=new Array(i.length),n=0;n<i.length;n++){var s=i[n],c=e[s];if("object"!=typeof c||null===c)a[s]=c;else if(c instanceof Date)a[s]=new Date(c);else if(ArrayBuffer.isView(c))a[s]=ls(c);else{var l=t.indexOf(c);a[s]=-1!==l?r[l]:o(c)}}return a}}
|
|
/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */(e):e.proto?function e(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return t(r,e);if(r instanceof Map)return new Map(t(Array.from(r),e));if(r instanceof Set)return new Set(t(Array.from(r),e));var o={};for(var i in r){var a=r[i];"object"!=typeof a||null===a?o[i]=a:a instanceof Date?o[i]=new Date(a):a instanceof Map?o[i]=new Map(t(Array.from(a),e)):a instanceof Set?o[i]=new Set(t(Array.from(a),e)):ArrayBuffer.isView(a)?o[i]=ls(a):o[i]=e(a)}return o}:function e(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return t(r,e);if(r instanceof Map)return new Map(t(Array.from(r),e));if(r instanceof Set)return new Set(t(Array.from(r),e));var o={};for(var i in r)if(!1!==Object.hasOwnProperty.call(r,i)){var a=r[i];"object"!=typeof a||null===a?o[i]=a:a instanceof Date?o[i]=new Date(a):a instanceof Map?o[i]=new Map(t(Array.from(a),e)):a instanceof Set?o[i]=new Set(t(Array.from(a),e)):ArrayBuffer.isView(a)?o[i]=ls(a):o[i]=e(a)}return o};function t(e,t){for(var r=Object.keys(e),o=new Array(r.length),i=0;i<r.length;i++){var a=r[i],n=e[a];"object"!=typeof n||null===n?o[a]=n:n instanceof Date?o[a]=new Date(n):ArrayBuffer.isView(n)?o[a]=ls(n):o[a]=t(n)}return o}};function ls(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function ds(e){let t=e.length;for(;--t>=0;)e[t]=0}const ms=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_s=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ps=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),us=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fs=new Array(576);ds(fs);const hs=new Array(60);ds(hs);const bs=new Array(512);ds(bs);const gs=new Array(256);ds(gs);const vs=new Array(29);ds(vs);const ys=new Array(30);function Ns(e,t,r,o,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=o,this.max_length=i,this.has_stree=e&&e.length}let Os,ks,ws;function xs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}ds(ys);const js=e=>e<256?bs[e]:bs[256+(e>>>7)],Ss=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Ms=(e,t,r)=>{e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,Ss(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},Ps=(e,t,r)=>{Ms(e,r[2*t],r[2*t+1])},Cs=(e,t)=>{let r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1},Ls=(e,t,r)=>{const o=new Array(16);let i,a,n=0;for(i=1;i<=15;i++)o[i]=n=n+r[i-1]<<1;for(a=0;a<=t;a++){let t=e[2*a+1];0!==t&&(e[2*a]=Cs(o[t]++,t))}},Bs=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},zs=e=>{e.bi_valid>8?Ss(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Rs=(e,t,r,o)=>{const i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&o[t]<=o[r]},As=(e,t,r)=>{const o=e.heap[r];let i=r<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Rs(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Rs(t,o,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=o},Is=(e,t,r)=>{let o,i,a,n,s=0;if(0!==e.last_lit)do{o=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===o?Ps(e,i,t):(a=gs[i],Ps(e,a+256+1,t),n=ms[a],0!==n&&(i-=vs[a],Ms(e,i,n)),o--,a=js(o),Ps(e,a,r),n=_s[a],0!==n&&(o-=ys[a],Ms(e,o,n)))}while(s<e.last_lit);Ps(e,256,t)},Ts=(e,t)=>{const r=t.dyn_tree,o=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems;let n,s,c,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<a;n++)0!==r[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):r[2*n+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,r[2*c]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=o[2*c+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)As(e,r,n);c=a;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],As(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=s,r[2*c]=r[2*n]+r[2*s],e.depth[c]=(e.depth[n]>=e.depth[s]?e.depth[n]:e.depth[s])+1,r[2*n+1]=r[2*s+1]=c,e.heap[1]=c++,As(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const r=t.dyn_tree,o=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,n=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,d,m,_,p,u,f=0;for(_=0;_<=15;_++)e.bl_count[_]=0;for(r[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)d=e.heap[l],_=r[2*r[2*d+1]+1]+1,_>c&&(_=c,f++),r[2*d+1]=_,d>o||(e.bl_count[_]++,p=0,d>=s&&(p=n[d-s]),u=r[2*d],e.opt_len+=u*(_+p),a&&(e.static_len+=u*(i[2*d+1]+p)));if(0!==f){do{for(_=c-1;0===e.bl_count[_];)_--;e.bl_count[_]--,e.bl_count[_+1]+=2,e.bl_count[c]--,f-=2}while(f>0);for(_=c;0!==_;_--)for(d=e.bl_count[_];0!==d;)m=e.heap[--l],m>o||(r[2*m+1]!==_&&(e.opt_len+=(_-r[2*m+1])*r[2*m],r[2*m+1]=_),d--)}})(e,t),Ls(r,l,e.bl_count)},Ds=(e,t,r)=>{let o,i,a=-1,n=t[1],s=0,c=7,l=4;for(0===n&&(c=138,l=3),t[2*(r+1)+1]=65535,o=0;o<=r;o++)i=n,n=t[2*(o+1)+1],++s<c&&i===n||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===n?(c=138,l=3):i===n?(c=6,l=3):(c=7,l=4))},Es=(e,t,r)=>{let o,i,a=-1,n=t[1],s=0,c=7,l=4;for(0===n&&(c=138,l=3),o=0;o<=r;o++)if(i=n,n=t[2*(o+1)+1],!(++s<c&&i===n)){if(s<l)do{Ps(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(Ps(e,i,e.bl_tree),s--),Ps(e,16,e.bl_tree),Ms(e,s-3,2)):s<=10?(Ps(e,17,e.bl_tree),Ms(e,s-3,3)):(Ps(e,18,e.bl_tree),Ms(e,s-11,7));s=0,a=i,0===n?(c=138,l=3):i===n?(c=6,l=3):(c=7,l=4)}};let Fs=!1;const $s=(e,t,r,o)=>{Ms(e,0+(o?1:0),3),((e,t,r,o)=>{zs(e),o&&(Ss(e,r),Ss(e,~r)),e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r})(e,t,r,!0)};var Us={_tr_init:e=>{Fs||((()=>{let e,t,r,o,i;const a=new Array(16);for(r=0,o=0;o<28;o++)for(vs[o]=r,e=0;e<1<<ms[o];e++)gs[r++]=o;for(gs[r-1]=o,i=0,o=0;o<16;o++)for(ys[o]=i,e=0;e<1<<_s[o];e++)bs[i++]=o;for(i>>=7;o<30;o++)for(ys[o]=i<<7,e=0;e<1<<_s[o]-7;e++)bs[256+i++]=o;for(t=0;t<=15;t++)a[t]=0;for(e=0;e<=143;)fs[2*e+1]=8,e++,a[8]++;for(;e<=255;)fs[2*e+1]=9,e++,a[9]++;for(;e<=279;)fs[2*e+1]=7,e++,a[7]++;for(;e<=287;)fs[2*e+1]=8,e++,a[8]++;for(Ls(fs,287,a),e=0;e<30;e++)hs[2*e+1]=5,hs[2*e]=Cs(e,5);Os=new Ns(fs,ms,257,286,15),ks=new Ns(hs,_s,0,30,15),ws=new Ns(new Array(0),ps,0,19,7)})(),Fs=!0),e.l_desc=new xs(e.dyn_ltree,Os),e.d_desc=new xs(e.dyn_dtree,ks),e.bl_desc=new xs(e.bl_tree,ws),e.bi_buf=0,e.bi_valid=0,Bs(e)},_tr_stored_block:$s,_tr_flush_block:(e,t,r,o)=>{let i,a,n=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),Ts(e,e.l_desc),Ts(e,e.d_desc),n=(e=>{let t;for(Ds(e,e.dyn_ltree,e.l_desc.max_code),Ds(e,e.dyn_dtree,e.d_desc.max_code),Ts(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*us[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?$s(e,t,r,o):4===e.strategy||a===i?(Ms(e,2+(o?1:0),3),Is(e,fs,hs)):(Ms(e,4+(o?1:0),3),((e,t,r,o)=>{let i;for(Ms(e,t-257,5),Ms(e,r-1,5),Ms(e,o-4,4),i=0;i<o;i++)Ms(e,e.bl_tree[2*us[i]+1],3);Es(e,e.dyn_ltree,t-1),Es(e,e.dyn_dtree,r-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,n+1),Is(e,e.dyn_ltree,e.dyn_dtree)),Bs(e),o&&zs(e)},_tr_tally:(e,t,r)=>(e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(gs[r]+256+1)]++,e.dyn_dtree[2*js(t)]++),e.last_lit===e.lit_bufsize-1),_tr_align:e=>{Ms(e,2,3),Ps(e,256,fs),(e=>{16===e.bi_valid?(Ss(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var qs=(e,t,r,o)=>{let i=65535&e|0,a=e>>>16&65535|0,n=0;for(;0!==r;){n=r>2e3?2e3:r,r-=n;do{i=i+t[o++]|0,a=a+i|0}while(--n);i%=65521,a%=65521}return i|a<<16|0};const Zs=new Uint32Array((()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t})());var Hs=(e,t,r,o)=>{const i=Zs,a=o+r;e^=-1;for(let n=o;n<a;n++)e=e>>>8^i[255&(e^t[n])];return-1^e},Ws={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Xs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Ys,_tr_stored_block:Js,_tr_flush_block:Ks,_tr_tally:Gs,_tr_align:Vs}=Us,{Z_NO_FLUSH:Qs,Z_PARTIAL_FLUSH:ec,Z_FULL_FLUSH:tc,Z_FINISH:rc,Z_BLOCK:oc,Z_OK:ic,Z_STREAM_END:ac,Z_STREAM_ERROR:nc,Z_DATA_ERROR:sc,Z_BUF_ERROR:cc,Z_DEFAULT_COMPRESSION:lc,Z_FILTERED:dc,Z_HUFFMAN_ONLY:mc,Z_RLE:_c,Z_FIXED:pc,Z_DEFAULT_STRATEGY:uc,Z_UNKNOWN:fc,Z_DEFLATED:hc}=Xs,bc=(e,t)=>(e.msg=Ws[t],t),gc=e=>(e<<1)-(e>4?9:0),vc=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let yc=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask;const Nc=e=>{const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))},Oc=(e,t)=>{Ks(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Nc(e.strm)},kc=(e,t)=>{e.pending_buf[e.pending++]=t},wc=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},xc=(e,t,r,o)=>{let i=e.avail_in;return i>o&&(i=o),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),r),1===e.state.wrap?e.adler=qs(e.adler,t,i,r):2===e.state.wrap&&(e.adler=Hs(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)},jc=(e,t)=>{let r,o,i=e.max_chain_length,a=e.strstart,n=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,d=e.w_mask,m=e.prev,_=e.strstart+258;let p=l[a+n-1],u=l[a+n];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(r=t,l[r+n]===u&&l[r+n-1]===p&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<_);if(o=258-(_-a),a=_-258,o>n){if(e.match_start=t,n=o,o>=s)break;p=l[a+n-1],u=l[a+n]}}}while((t=m[t&d])>c&&0!=--i);return n<=e.lookahead?n:e.lookahead},Sc=e=>{const t=e.w_size;let r,o,i,a,n;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-262)){e.window.set(e.window.subarray(t,t+t),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,o=e.hash_size,r=o;do{i=e.head[--r],e.head[r]=i>=t?i-t:0}while(--o);o=t,r=o;do{i=e.prev[--r],e.prev[r]=i>=t?i-t:0}while(--o);a+=t}if(0===e.strm.avail_in)break;if(o=xc(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=o,e.lookahead+e.insert>=3)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=yc(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=yc(e,e.ins_h,e.window[n+3-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},Mc=(e,t)=>{let r,o;for(;;){if(e.lookahead<262){if(Sc(e),e.lookahead<262&&t===Qs)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=yc(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=jc(e,r)),e.match_length>=3)if(o=Gs(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=yc(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=yc(e,e.ins_h,e.window[e.strstart+1]);else o=Gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(o&&(Oc(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===rc?(Oc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Oc(e,!1),0===e.strm.avail_out)?1:2},Pc=(e,t)=>{let r,o,i;for(;;){if(e.lookahead<262){if(Sc(e),e.lookahead<262&&t===Qs)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=yc(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=jc(e,r),e.match_length<=5&&(e.strategy===dc||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,o=Gs(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=yc(e,e.ins_h,e.window[e.strstart+3-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,o&&(Oc(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(o=Gs(e,0,e.window[e.strstart-1]),o&&Oc(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(o=Gs(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===rc?(Oc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Oc(e,!1),0===e.strm.avail_out)?1:2};function Cc(e,t,r,o,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=o,this.func=i}const Lc=[new Cc(0,0,0,0,((e,t)=>{let r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Sc(e),0===e.lookahead&&t===Qs)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;const o=e.block_start+r;if((0===e.strstart||e.strstart>=o)&&(e.lookahead=e.strstart-o,e.strstart=o,Oc(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(Oc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===rc?(Oc(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Oc(e,!1),e.strm.avail_out),1)})),new Cc(4,4,8,4,Mc),new Cc(4,5,16,8,Mc),new Cc(4,6,32,32,Mc),new Cc(4,4,16,16,Pc),new Cc(8,16,32,32,Pc),new Cc(8,16,128,128,Pc),new Cc(8,32,128,256,Pc),new Cc(32,128,258,1024,Pc),new Cc(32,258,258,4096,Pc)];function Bc(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=hc,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),vc(this.dyn_ltree),vc(this.dyn_dtree),vc(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),vc(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),vc(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const zc=e=>{if(!e||!e.state)return bc(e,nc);e.total_in=e.total_out=0,e.data_type=fc;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=Qs,Ys(t),ic},Rc=e=>{const t=zc(e);var r;return t===ic&&((r=e.state).window_size=2*r.w_size,vc(r.head),r.max_lazy_match=Lc[r.level].max_lazy,r.good_match=Lc[r.level].good_length,r.nice_match=Lc[r.level].nice_length,r.max_chain_length=Lc[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=2,r.match_available=0,r.ins_h=0),t},Ac=(e,t,r,o,i,a)=>{if(!e)return nc;let n=1;if(t===lc&&(t=6),o<0?(n=0,o=-o):o>15&&(n=2,o-=16),i<1||i>9||r!==hc||o<8||o>15||t<0||t>9||a<0||a>pc)return bc(e,nc);8===o&&(o=9);const s=new Bc;return e.state=s,s.strm=e,s.wrap=n,s.gzhead=null,s.w_bits=o,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,Rc(e)};var Ic={deflateInit:(e,t)=>Ac(e,t,hc,15,8,uc),deflateInit2:Ac,deflateReset:Rc,deflateResetKeep:zc,deflateSetHeader:(e,t)=>e&&e.state?2!==e.state.wrap?nc:(e.state.gzhead=t,ic):nc,deflate:(e,t)=>{let r,o;if(!e||!e.state||t>oc||t<0)return e?bc(e,nc):nc;const i=e.state;if(!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==rc)return bc(e,0===e.avail_out?cc:nc);i.strm=e;const a=i.last_flush;if(i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,kc(i,31),kc(i,139),kc(i,8),i.gzhead?(kc(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),kc(i,255&i.gzhead.time),kc(i,i.gzhead.time>>8&255),kc(i,i.gzhead.time>>16&255),kc(i,i.gzhead.time>>24&255),kc(i,9===i.level?2:i.strategy>=mc||i.level<2?4:0),kc(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(kc(i,255&i.gzhead.extra.length),kc(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Hs(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(kc(i,0),kc(i,0),kc(i,0),kc(i,0),kc(i,0),kc(i,9===i.level?2:i.strategy>=mc||i.level<2?4:0),kc(i,3),i.status=113);else{let t=hc+(i.w_bits-8<<4)<<8,r=-1;r=i.strategy>=mc||i.level<2?0:i.level<6?1:6===i.level?2:3,t|=r<<6,0!==i.strstart&&(t|=32),t+=31-t%31,i.status=113,wc(i,t),0!==i.strstart&&(wc(i,e.adler>>>16),wc(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(r=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>r&&(e.adler=Hs(e.adler,i.pending_buf,i.pending-r,r)),Nc(e),r=i.pending,i.pending!==i.pending_buf_size));)kc(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>r&&(e.adler=Hs(e.adler,i.pending_buf,i.pending-r,r)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Hs(e.adler,i.pending_buf,i.pending-r,r)),Nc(e),r=i.pending,i.pending===i.pending_buf_size)){o=1;break}o=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,kc(i,o)}while(0!==o);i.gzhead.hcrc&&i.pending>r&&(e.adler=Hs(e.adler,i.pending_buf,i.pending-r,r)),0===o&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){r=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>r&&(e.adler=Hs(e.adler,i.pending_buf,i.pending-r,r)),Nc(e),r=i.pending,i.pending===i.pending_buf_size)){o=1;break}o=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,kc(i,o)}while(0!==o);i.gzhead.hcrc&&i.pending>r&&(e.adler=Hs(e.adler,i.pending_buf,i.pending-r,r)),0===o&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Nc(e),i.pending+2<=i.pending_buf_size&&(kc(i,255&e.adler),kc(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(Nc(e),0===e.avail_out)return i.last_flush=-1,ic}else if(0===e.avail_in&&gc(t)<=gc(a)&&t!==rc)return bc(e,cc);if(666===i.status&&0!==e.avail_in)return bc(e,cc);if(0!==e.avail_in||0!==i.lookahead||t!==Qs&&666!==i.status){let r=i.strategy===mc?((e,t)=>{let r;for(;;){if(0===e.lookahead&&(Sc(e),0===e.lookahead)){if(t===Qs)return 1;break}if(e.match_length=0,r=Gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Oc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===rc?(Oc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Oc(e,!1),0===e.strm.avail_out)?1:2})(i,t):i.strategy===_c?((e,t)=>{let r,o,i,a;const n=e.window;for(;;){if(e.lookahead<=258){if(Sc(e),e.lookahead<=258&&t===Qs)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,o=n[i],o===n[++i]&&o===n[++i]&&o===n[++i])){a=e.strstart+258;do{}while(o===n[++i]&&o===n[++i]&&o===n[++i]&&o===n[++i]&&o===n[++i]&&o===n[++i]&&o===n[++i]&&o===n[++i]&&i<a);e.match_length=258-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=Gs(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Oc(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===rc?(Oc(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Oc(e,!1),0===e.strm.avail_out)?1:2})(i,t):Lc[i.level].func(i,t);if(3!==r&&4!==r||(i.status=666),1===r||3===r)return 0===e.avail_out&&(i.last_flush=-1),ic;if(2===r&&(t===ec?Vs(i):t!==oc&&(Js(i,0,0,!1),t===tc&&(vc(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),Nc(e),0===e.avail_out))return i.last_flush=-1,ic}return t!==rc?ic:i.wrap<=0?ac:(2===i.wrap?(kc(i,255&e.adler),kc(i,e.adler>>8&255),kc(i,e.adler>>16&255),kc(i,e.adler>>24&255),kc(i,255&e.total_in),kc(i,e.total_in>>8&255),kc(i,e.total_in>>16&255),kc(i,e.total_in>>24&255)):(wc(i,e.adler>>>16),wc(i,65535&e.adler)),Nc(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?ic:ac)},deflateEnd:e=>{if(!e||!e.state)return nc;const t=e.state.status;return 42!==t&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?bc(e,nc):(e.state=null,113===t?bc(e,sc):ic)},deflateSetDictionary:(e,t)=>{let r=t.length;if(!e||!e.state)return nc;const o=e.state,i=o.wrap;if(2===i||1===i&&42!==o.status||o.lookahead)return nc;if(1===i&&(e.adler=qs(e.adler,t,r,0)),o.wrap=0,r>=o.w_size){0===i&&(vc(o.head),o.strstart=0,o.block_start=0,o.insert=0);let e=new Uint8Array(o.w_size);e.set(t.subarray(r-o.w_size,r),0),t=e,r=o.w_size}const a=e.avail_in,n=e.next_in,s=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,Sc(o);o.lookahead>=3;){let e=o.strstart,t=o.lookahead-2;do{o.ins_h=yc(o,o.ins_h,o.window[e+3-1]),o.prev[e&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=e,e++}while(--t);o.strstart=e,o.lookahead=2,Sc(o)}return o.strstart+=o.lookahead,o.block_start=o.strstart,o.insert=o.lookahead,o.lookahead=0,o.match_length=o.prev_length=2,o.match_available=0,e.next_in=n,e.input=s,e.avail_in=a,o.wrap=i,ic},deflateInfo:"pako deflate (from Nodeca project)"};const Tc=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Dc=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(const t in r)Tc(r,t)&&(e[t]=r[t])}}return e},Ec=e=>{let t=0;for(let o=0,i=e.length;o<i;o++)t+=e[o].length;const r=new Uint8Array(t);for(let o=0,i=0,a=e.length;o<a;o++){let t=e[o];r.set(t,i),i+=t.length}return r};let Fc=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Sd){Fc=!1}const $c=new Uint8Array(256);for(let Md=0;Md<256;Md++)$c[Md]=Md>=252?6:Md>=248?5:Md>=240?4:Md>=224?3:Md>=192?2:1;$c[254]=$c[254]=1;var Uc=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,r,o,i,a,n=e.length,s=0;for(i=0;i<n;i++)r=e.charCodeAt(i),55296==(64512&r)&&i+1<n&&(o=e.charCodeAt(i+1),56320==(64512&o)&&(r=65536+(r-55296<<10)+(o-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)r=e.charCodeAt(i),55296==(64512&r)&&i+1<n&&(o=e.charCodeAt(i+1),56320==(64512&o)&&(r=65536+(r-55296<<10)+(o-56320),i++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},qc=(e,t)=>{const r=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let o,i;const a=new Array(2*r);for(i=0,o=0;o<r;){let t=e[o++];if(t<128){a[i++]=t;continue}let n=$c[t];if(n>4)a[i++]=65533,o+=n-1;else{for(t&=2===n?31:3===n?15:7;n>1&&o<r;)t=t<<6|63&e[o++],n--;n>1?a[i++]=65533:t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&Fc)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let o=0;o<t;o++)r+=String.fromCharCode(e[o]);return r})(a,i)},Zc=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let r=t-1;for(;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+$c[e[r]]>t?r:t};var Hc=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Wc=Object.prototype.toString,{Z_NO_FLUSH:Xc,Z_SYNC_FLUSH:Yc,Z_FULL_FLUSH:Jc,Z_FINISH:Kc,Z_OK:Gc,Z_STREAM_END:Vc,Z_DEFAULT_COMPRESSION:Qc,Z_DEFAULT_STRATEGY:el,Z_DEFLATED:tl}=Xs;function rl(e){this.options=Dc({level:Qc,method:tl,chunkSize:16384,windowBits:15,memLevel:8,strategy:el},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hc,this.strm.avail_out=0;let r=Ic.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Gc)throw new Error(Ws[r]);if(t.header&&Ic.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?Uc(t.dictionary):"[object ArrayBuffer]"===Wc.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=Ic.deflateSetDictionary(this.strm,e),r!==Gc)throw new Error(Ws[r]);this._dict_set=!0}}rl.prototype.push=function(e,t){const r=this.strm,o=this.options.chunkSize;let i,a;if(this.ended)return!1;for(a=t===~~t?t:!0===t?Kc:Xc,"string"==typeof e?r.input=Uc(e):"[object ArrayBuffer]"===Wc.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(o),r.next_out=0,r.avail_out=o),(a===Yc||a===Jc)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(i=Ic.deflate(r,a),i===Vc)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),i=Ic.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Gc;if(0!==r.avail_out){if(a>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},rl.prototype.onData=function(e){this.chunks.push(e)},rl.prototype.onEnd=function(e){e===Gc&&(this.result=Ec(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ol=function(e,t){let r,o,i,a,n,s,c,l,d,m,_,p,u,f,h,b,g,v,y,N,O,k,w,x;const j=e.state;r=e.next_in,w=e.input,o=r+(e.avail_in-5),i=e.next_out,x=e.output,a=i-(t-e.avail_out),n=i+(e.avail_out-257),s=j.dmax,c=j.wsize,l=j.whave,d=j.wnext,m=j.window,_=j.hold,p=j.bits,u=j.lencode,f=j.distcode,h=(1<<j.lenbits)-1,b=(1<<j.distbits)-1;e:do{p<15&&(_+=w[r++]<<p,p+=8,_+=w[r++]<<p,p+=8),g=u[_&h];t:for(;;){if(v=g>>>24,_>>>=v,p-=v,v=g>>>16&255,0===v)x[i++]=65535&g;else{if(!(16&v)){if(0==(64&v)){g=u[(65535&g)+(_&(1<<v)-1)];continue t}if(32&v){j.mode=12;break e}e.msg="invalid literal/length code",j.mode=30;break e}y=65535&g,v&=15,v&&(p<v&&(_+=w[r++]<<p,p+=8),y+=_&(1<<v)-1,_>>>=v,p-=v),p<15&&(_+=w[r++]<<p,p+=8,_+=w[r++]<<p,p+=8),g=f[_&b];r:for(;;){if(v=g>>>24,_>>>=v,p-=v,v=g>>>16&255,!(16&v)){if(0==(64&v)){g=f[(65535&g)+(_&(1<<v)-1)];continue r}e.msg="invalid distance code",j.mode=30;break e}if(N=65535&g,v&=15,p<v&&(_+=w[r++]<<p,p+=8,p<v&&(_+=w[r++]<<p,p+=8)),N+=_&(1<<v)-1,N>s){e.msg="invalid distance too far back",j.mode=30;break e}if(_>>>=v,p-=v,v=i-a,N>v){if(v=N-v,v>l&&j.sane){e.msg="invalid distance too far back",j.mode=30;break e}if(O=0,k=m,0===d){if(O+=c-v,v<y){y-=v;do{x[i++]=m[O++]}while(--v);O=i-N,k=x}}else if(d<v){if(O+=c+d-v,v-=d,v<y){y-=v;do{x[i++]=m[O++]}while(--v);if(O=0,d<y){v=d,y-=v;do{x[i++]=m[O++]}while(--v);O=i-N,k=x}}}else if(O+=d-v,v<y){y-=v;do{x[i++]=m[O++]}while(--v);O=i-N,k=x}for(;y>2;)x[i++]=k[O++],x[i++]=k[O++],x[i++]=k[O++],y-=3;y&&(x[i++]=k[O++],y>1&&(x[i++]=k[O++]))}else{O=i-N;do{x[i++]=x[O++],x[i++]=x[O++],x[i++]=x[O++],y-=3}while(y>2);y&&(x[i++]=x[O++],y>1&&(x[i++]=x[O++]))}break}}break}}while(r<o&&i<n);y=p>>3,r-=y,p-=y<<3,_&=(1<<p)-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<n?n-i+257:257-(i-n),j.hold=_,j.bits=p};const il=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),al=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),nl=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),sl=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var cl=(e,t,r,o,i,a,n,s)=>{const c=s.bits;let l,d,m,_,p,u,f=0,h=0,b=0,g=0,v=0,y=0,N=0,O=0,k=0,w=0,x=null,j=0;const S=new Uint16Array(16),M=new Uint16Array(16);let P,C,L,B=null,z=0;for(f=0;f<=15;f++)S[f]=0;for(h=0;h<o;h++)S[t[r+h]]++;for(v=c,g=15;g>=1&&0===S[g];g--);if(v>g&&(v=g),0===g)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;b<g&&0===S[b];b++);for(v<b&&(v=b),O=1,f=1;f<=15;f++)if(O<<=1,O-=S[f],O<0)return-1;if(O>0&&(0===e||1!==g))return-1;for(M[1]=0,f=1;f<15;f++)M[f+1]=M[f]+S[f];for(h=0;h<o;h++)0!==t[r+h]&&(n[M[t[r+h]]++]=h);if(0===e?(x=B=n,u=19):1===e?(x=il,j-=257,B=al,z-=257,u=256):(x=nl,B=sl,u=-1),w=0,h=0,f=b,p=a,y=v,N=0,m=-1,k=1<<v,_=k-1,1===e&&k>852||2===e&&k>592)return 1;for(;;){P=f-N,n[h]<u?(C=0,L=n[h]):n[h]>u?(C=B[z+n[h]],L=x[j+n[h]]):(C=96,L=0),l=1<<f-N,d=1<<y,b=d;do{d-=l,i[p+(w>>N)+d]=P<<24|C<<16|L|0}while(0!==d);for(l=1<<f-1;w&l;)l>>=1;if(0!==l?(w&=l-1,w+=l):w=0,h++,0==--S[f]){if(f===g)break;f=t[r+n[h]]}if(f>v&&(w&_)!==m){for(0===N&&(N=v),p+=b,y=f-N,O=1<<y;y+N<g&&(O-=S[y+N],!(O<=0));)y++,O<<=1;if(k+=1<<y,1===e&&k>852||2===e&&k>592)return 1;m=w&_,i[m]=v<<24|y<<16|p-a|0}}return 0!==w&&(i[p+w]=f-N<<24|64<<16|0),s.bits=v,0};const{Z_FINISH:ll,Z_BLOCK:dl,Z_TREES:ml,Z_OK:_l,Z_STREAM_END:pl,Z_NEED_DICT:ul,Z_STREAM_ERROR:fl,Z_DATA_ERROR:hl,Z_MEM_ERROR:bl,Z_BUF_ERROR:gl,Z_DEFLATED:vl}=Xs,yl=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Nl(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ol=e=>{if(!e||!e.state)return fl;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,_l},kl=e=>{if(!e||!e.state)return fl;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Ol(e)},wl=(e,t)=>{let r;if(!e||!e.state)return fl;const o=e.state;return t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?fl:(null!==o.window&&o.wbits!==t&&(o.window=null),o.wrap=r,o.wbits=t,kl(e))},xl=(e,t)=>{if(!e)return fl;const r=new Nl;e.state=r,r.window=null;const o=wl(e,t);return o!==_l&&(e.state=null),o};let jl,Sl,Ml=!0;const Pl=e=>{if(Ml){jl=new Int32Array(512),Sl=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(cl(1,e.lens,0,288,jl,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;cl(2,e.lens,0,32,Sl,0,e.work,{bits:5}),Ml=!1}e.lencode=jl,e.lenbits=9,e.distcode=Sl,e.distbits=5},Cl=(e,t,r,o)=>{let i;const a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),o>=a.wsize?(a.window.set(t.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>o&&(i=o),a.window.set(t.subarray(r-o,r-o+i),a.wnext),(o-=i)?(a.window.set(t.subarray(r-o,r),0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0};var Ll={inflateReset:kl,inflateReset2:wl,inflateResetKeep:Ol,inflateInit:e=>xl(e,15),inflateInit2:xl,inflate:(e,t)=>{let r,o,i,a,n,s,c,l,d,m,_,p,u,f,h,b,g,v,y,N,O,k,w=0;const x=new Uint8Array(4);let j,S;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return fl;r=e.state,12===r.mode&&(r.mode=13),n=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,o=e.input,s=e.avail_in,l=r.hold,d=r.bits,m=s,_=c,k=_l;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;d<16;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(2&r.wrap&&35615===l){r.check=0,x[0]=255&l,x[1]=l>>>8&255,r.check=Hs(r.check,x,2,0),l=0,d=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=30;break}if((15&l)!==vl){e.msg="unknown compression method",r.mode=30;break}if(l>>>=4,d-=4,O=8+(15&l),0===r.wbits)r.wbits=O;else if(O>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<r.wbits,e.adler=r.check=1,r.mode=512&l?10:12,l=0,d=0;break;case 2:for(;d<16;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(r.flags=l,(255&r.flags)!==vl){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(x[0]=255&l,x[1]=l>>>8&255,r.check=Hs(r.check,x,2,0)),l=0,d=0,r.mode=3;case 3:for(;d<32;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}r.head&&(r.head.time=l),512&r.flags&&(x[0]=255&l,x[1]=l>>>8&255,x[2]=l>>>16&255,x[3]=l>>>24&255,r.check=Hs(r.check,x,4,0)),l=0,d=0,r.mode=4;case 4:for(;d<16;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&(x[0]=255&l,x[1]=l>>>8&255,r.check=Hs(r.check,x,2,0)),l=0,d=0,r.mode=5;case 5:if(1024&r.flags){for(;d<16;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&(x[0]=255&l,x[1]=l>>>8&255,r.check=Hs(r.check,x,2,0)),l=0,d=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p=r.length,p>s&&(p=s),p&&(r.head&&(O=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(o.subarray(a,a+p),O)),512&r.flags&&(r.check=Hs(r.check,o,p,a)),s-=p,a+=p,r.length-=p),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break e;p=0;do{O=o[a+p++],r.head&&O&&r.length<65536&&(r.head.name+=String.fromCharCode(O))}while(O&&p<s);if(512&r.flags&&(r.check=Hs(r.check,o,p,a)),s-=p,a+=p,O)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break e;p=0;do{O=o[a+p++],r.head&&O&&r.length<65536&&(r.head.comment+=String.fromCharCode(O))}while(O&&p<s);if(512&r.flags&&(r.check=Hs(r.check,o,p,a)),s-=p,a+=p,O)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;d<16;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(l!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}l=0,d=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;d<32;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}e.adler=r.check=yl(l),l=0,d=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=n,e.avail_out=c,e.next_in=a,e.avail_in=s,r.hold=l,r.bits=d,ul;e.adler=r.check=1,r.mode=12;case 12:if(t===dl||t===ml)break e;case 13:if(r.last){l>>>=7&d,d-=7&d,r.mode=27;break}for(;d<3;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}switch(r.last=1&l,l>>>=1,d-=1,3&l){case 0:r.mode=14;break;case 1:if(Pl(r),r.mode=20,t===ml){l>>>=2,d-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}l>>>=2,d-=2;break;case 14:for(l>>>=7&d,d-=7&d;d<32;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,l=0,d=0,r.mode=15,t===ml)break e;case 15:r.mode=16;case 16:if(p=r.length,p){if(p>s&&(p=s),p>c&&(p=c),0===p)break e;i.set(o.subarray(a,a+p),n),s-=p,a+=p,c-=p,n+=p,r.length-=p;break}r.mode=12;break;case 17:for(;d<14;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(r.nlen=257+(31&l),l>>>=5,d-=5,r.ndist=1+(31&l),l>>>=5,d-=5,r.ncode=4+(15&l),l>>>=4,d-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;d<3;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}r.lens[M[r.have++]]=7&l,l>>>=3,d-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,j={bits:r.lenbits},k=cl(0,r.lens,0,19,r.lencode,0,r.work,j),r.lenbits=j.bits,k){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;w=r.lencode[l&(1<<r.lenbits)-1],h=w>>>24,b=w>>>16&255,g=65535&w,!(h<=d);){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(g<16)l>>>=h,d-=h,r.lens[r.have++]=g;else{if(16===g){for(S=h+2;d<S;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(l>>>=h,d-=h,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}O=r.lens[r.have-1],p=3+(3&l),l>>>=2,d-=2}else if(17===g){for(S=h+3;d<S;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}l>>>=h,d-=h,O=0,p=3+(7&l),l>>>=3,d-=3}else{for(S=h+7;d<S;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}l>>>=h,d-=h,O=0,p=11+(127&l),l>>>=7,d-=7}if(r.have+p>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;p--;)r.lens[r.have++]=O}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,j={bits:r.lenbits},k=cl(1,r.lens,0,r.nlen,r.lencode,0,r.work,j),r.lenbits=j.bits,k){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,j={bits:r.distbits},k=cl(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,j),r.distbits=j.bits,k){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,t===ml)break e;case 20:r.mode=21;case 21:if(s>=6&&c>=258){e.next_out=n,e.avail_out=c,e.next_in=a,e.avail_in=s,r.hold=l,r.bits=d,ol(e,_),n=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,o=e.input,s=e.avail_in,l=r.hold,d=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;w=r.lencode[l&(1<<r.lenbits)-1],h=w>>>24,b=w>>>16&255,g=65535&w,!(h<=d);){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(b&&0==(240&b)){for(v=h,y=b,N=g;w=r.lencode[N+((l&(1<<v+y)-1)>>v)],h=w>>>24,b=w>>>16&255,g=65535&w,!(v+h<=d);){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}l>>>=v,d-=v,r.back+=v}if(l>>>=h,d-=h,r.back+=h,r.length=g,0===b){r.mode=26;break}if(32&b){r.back=-1,r.mode=12;break}if(64&b){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&b,r.mode=22;case 22:if(r.extra){for(S=r.extra;d<S;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,d-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;w=r.distcode[l&(1<<r.distbits)-1],h=w>>>24,b=w>>>16&255,g=65535&w,!(h<=d);){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(0==(240&b)){for(v=h,y=b,N=g;w=r.distcode[N+((l&(1<<v+y)-1)>>v)],h=w>>>24,b=w>>>16&255,g=65535&w,!(v+h<=d);){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}l>>>=v,d-=v,r.back+=v}if(l>>>=h,d-=h,r.back+=h,64&b){e.msg="invalid distance code",r.mode=30;break}r.offset=g,r.extra=15&b,r.mode=24;case 24:if(r.extra){for(S=r.extra;d<S;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,d-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===c)break e;if(p=_-c,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}p>r.wnext?(p-=r.wnext,u=r.wsize-p):u=r.wnext-p,p>r.length&&(p=r.length),f=r.window}else f=i,u=n-r.offset,p=r.length;p>c&&(p=c),c-=p,r.length-=p;do{i[n++]=f[u++]}while(--p);0===r.length&&(r.mode=21);break;case 26:if(0===c)break e;i[n++]=r.length,c--,r.mode=21;break;case 27:if(r.wrap){for(;d<32;){if(0===s)break e;s--,l|=o[a++]<<d,d+=8}if(_-=c,e.total_out+=_,r.total+=_,_&&(e.adler=r.check=r.flags?Hs(r.check,i,_,n-_):qs(r.check,i,_,n-_)),_=c,(r.flags?l:yl(l))!==r.check){e.msg="incorrect data check",r.mode=30;break}l=0,d=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;d<32;){if(0===s)break e;s--,l+=o[a++]<<d,d+=8}if(l!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}l=0,d=0}r.mode=29;case 29:k=pl;break e;case 30:k=hl;break e;case 31:return bl;case 32:default:return fl}return e.next_out=n,e.avail_out=c,e.next_in=a,e.avail_in=s,r.hold=l,r.bits=d,(r.wsize||_!==e.avail_out&&r.mode<30&&(r.mode<27||t!==ll))&&Cl(e,e.output,e.next_out,_-e.avail_out),m-=e.avail_in,_-=e.avail_out,e.total_in+=m,e.total_out+=_,r.total+=_,r.wrap&&_&&(e.adler=r.check=r.flags?Hs(r.check,i,_,e.next_out-_):qs(r.check,i,_,e.next_out-_)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===m&&0===_||t===ll)&&k===_l&&(k=gl),k},inflateEnd:e=>{if(!e||!e.state)return fl;let t=e.state;return t.window&&(t.window=null),e.state=null,_l},inflateGetHeader:(e,t)=>{if(!e||!e.state)return fl;const r=e.state;return 0==(2&r.wrap)?fl:(r.head=t,t.done=!1,_l)},inflateSetDictionary:(e,t)=>{const r=t.length;let o,i,a;return e&&e.state?(o=e.state,0!==o.wrap&&11!==o.mode?fl:11===o.mode&&(i=1,i=qs(i,t,r,0),i!==o.check)?hl:(a=Cl(e,t,r,r),a?(o.mode=31,bl):(o.havedict=1,_l))):fl},inflateInfo:"pako inflate (from Nodeca project)"};var Bl=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const zl=Object.prototype.toString,{Z_NO_FLUSH:Rl,Z_FINISH:Al,Z_OK:Il,Z_STREAM_END:Tl,Z_NEED_DICT:Dl,Z_STREAM_ERROR:El,Z_DATA_ERROR:Fl,Z_MEM_ERROR:$l}=Xs;function Ul(e){this.options=Dc({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hc,this.strm.avail_out=0;let r=Ll.inflateInit2(this.strm,t.windowBits);if(r!==Il)throw new Error(Ws[r]);if(this.header=new Bl,Ll.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Uc(t.dictionary):"[object ArrayBuffer]"===zl.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Ll.inflateSetDictionary(this.strm,t.dictionary),r!==Il)))throw new Error(Ws[r])}var ql,Zl;Ul.prototype.push=function(e,t){const r=this.strm,o=this.options.chunkSize,i=this.options.dictionary;let a,n,s;if(this.ended)return!1;for(n=t===~~t?t:!0===t?Al:Rl,"[object ArrayBuffer]"===zl.call(e)?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(o),r.next_out=0,r.avail_out=o),a=Ll.inflate(r,n),a===Dl&&i&&(a=Ll.inflateSetDictionary(r,i),a===Il?a=Ll.inflate(r,n):a===Fl&&(a=Dl));r.avail_in>0&&a===Tl&&r.state.wrap>0&&0!==e[r.next_in];)Ll.inflateReset(r),a=Ll.inflate(r,n);switch(a){case El:case Fl:case Dl:case $l:return this.onEnd(a),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||a===Tl))if("string"===this.options.to){let e=Zc(r.output,r.next_out),t=r.next_out-e,i=qc(r.output,e);r.next_out=t,r.avail_out=o-t,t&&r.output.set(r.output.subarray(e,e+t),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(a!==Il||0!==s){if(a===Tl)return a=Ll.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},Ul.prototype.onData=function(e){this.chunks.push(e)},Ul.prototype.onEnd=function(e){e===Il&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ec(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},(Zl=ql||(ql={})).UP="up",Zl.DOWN="down",Zl.NORTH="north",Zl.EAST="east",Zl.SOUTH="south",Zl.WEST="west";const Hl={[ql.UP]:[0,1,0],[ql.DOWN]:[0,-1,0],[ql.NORTH]:[0,0,-1],[ql.EAST]:[1,0,0],[ql.SOUTH]:[0,0,1],[ql.WEST]:[-1,0,0]};var Wl,Xl,Yl,Jl,Kl,Gl,Vl,Ql,ed,td,rd,od,id;function ad(e,t,r){if(!e[t])throw new Error(`Missing ${t} tag`);if(e[t].type!==r)throw new Error(`Expected ${t} to be of type ${r}, but found ${e[t].type}`);return e[t].value}!function(e){e.ALL=[e.UP,e.DOWN,e.NORTH,e.EAST,e.SOUTH,e.WEST],e.normal=function(e){return Hl[e]}}(ql||(ql={})),function(e){e.create=function(e,t,r){return[e,t,r]},e.offset=function(e,t,r,o){return[e[0]+t,e[1]+r,e[2]+o]},e.towards=function(t,r){return e.offset(t,...ql.normal(r))}}(Wl||(Wl={}));class nd{constructor(e,t={}){this.name=e,this.properties=t}getName(){return this.name}getProperties(){return this.properties}getProperty(e){return this.properties[e]}isFluid(){return"minecraft:water"===this.name||"minecraft:lava"===this.name}equals(e){return this.name===e.name&&Object.keys(this.properties).every((t=>e.properties[t]===this.properties[t]))}toString(){return 0===Object.keys(this.properties).length?this.name:`${this.name}[${Object.entries(this.properties).map((([e,t])=>e+"="+t)).join(",")}]`}static fromNbt(e){const t=ad(e.value,"Name","string"),r=function(e,t){try{return e()}catch(r){return t}}((()=>ad(e.value,"Properties","compound")),{}),o=Object.keys(r).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:ad(r,t,"string")})),{});return new nd(t,o)}static fromJson(e){var t,r;const o=null!==(t=Yl.readObject(e))&&void 0!==t?t:{},i=null!==(r=Yl.readString(o.Name))&&void 0!==r?r:"minecraft:stone",a=Yl.readMap(o.Properties,(e=>{var t;return null!==(t=Yl.readString(e))&&void 0!==t?t:""}));return new nd(i,a)}}nd.AIR=new nd("minecraft:air");class sd{constructor(e){this.minY=e,this.storage=Array(sd.SIZE),this.palette=[nd.AIR]}get minBlockY(){return this.minY<<4}index(e,t,r){return(e<<8)+(t<<4)+r}getBlockState(e,t,r){var o;const i=this.storage[this.index(e,t,r)];return null!==(o=this.palette[i])&&void 0!==o?o:nd.AIR}setBlockState(e,t,r,o){let i=this.palette.findIndex((e=>e.equals(o)));-1===i&&(i=this.palette.length,this.palette.push(o)),this.storage[this.index(e,t,r)]=i}}sd.WIDTH=16,sd.SIZE=sd.WIDTH*sd.WIDTH*sd.WIDTH;class cd{constructor(e,t,r){this.minY=e,this.height=t,this.pos=r,this.sections=Array(this.sectionsCount).fill(null)}get maxY(){return this.minY+this.height}get minSection(){return this.minY>>4}get maxSection(){return 1+(this.maxY-1>>4)}get sectionsCount(){return this.maxSection-this.minSection}getSectionIndex(e){return(e>>4)-this.minSection}getBlockState(e){var t;const[r,o,i]=e,a=this.sections[this.getSectionIndex(o)];return null!==(t=null==a?void 0:a.getBlockState(15&r,15&o,15&i))&&void 0!==t?t:nd.AIR}setBlockState(e,t){const[r,o,i]=e,a=this.getSectionIndex(o);let n=this.sections[a];if(null===n){if(t.equals(nd.AIR))return;n=this.getOrCreateSection(a)}n.setBlockState(15&r,15&o,15&i,t)}getOrCreateSection(e){return null==this.sections[e]&&(this.sections[e]=new sd(this.minSection+e)),this.sections[e]}}function ld(e){return e*e}function dd(e,t,r){return t+e*(r-t)}function md(e,t,r,o,i,a){return dd(t,dd(e,r,o),dd(e,i,a))}function _d(e,t,r){return r<0?e:r>1?t:dd(r,e,t)}function pd(e){return e*e*e*(e*(6*e-15)+10)}!function(e){e.create=function(e,t){return[e,t]},e.fromBlockPos=function(e){return[e[0]>>4,e[2]>>4]},e.fromLong=function(e){return[4294967295&Number(e),Number(e>>BigInt(32))]},e.minBlockX=function(e){return e[0]<<4},e.minBlockZ=function(e){return e[1]<<4},e.maxBlockX=function(e){return e[0]<<19},e.maxBlockZ=function(e){return e[1]<<19}}(Xl||(Xl={})),function(e){function t(e){return"object"==typeof e&&null!==e?e:void 0}e.readNumber=function(e){return"number"==typeof e?e:void 0},e.readInt=function(e){return"number"==typeof e?Math.floor(e):void 0},e.readString=function(e){return"string"==typeof e?e:void 0},e.readBoolean=function(e){return"boolean"==typeof e?e:void 0},e.readObject=t,e.readArray=function(e,t){if(Array.isArray(e))return e.map((e=>t(e)))},e.readMap=function(e,r){var o;const i=null!==(o=t(e))&&void 0!==o?o:{};return Object.fromEntries(Object.entries(i).map((([e,t])=>[e,r(t)])))},e.compose=function(e,t,r){const o=t(e);return o?r(o):void 0}}(Yl||(Yl={}));class ud{constructor(e){this.xo=256*e.nextDouble(),this.yo=256*e.nextDouble(),this.zo=256*e.nextDouble(),this.p=Array(256);for(let t=0;t<256;t+=1)this.p[t]=t;for(let t=0;t<256;t+=1){const r=e.nextInt(256-t),o=this.p[t];this.p[t]=this.p[t+r],this.p[t+r]=o}}sample2D(e,t){let r,o,i;const a=(e+t)*ud.F2,n=Math.floor(e+a),s=e-(n-(r=(n+(o=Math.floor(t+a)))*ud.G2));let c,l;s>(i=t-(o-r))?(c=1,l=0):(c=0,l=1);const d=s-c+ud.G2,m=i-l+ud.G2,_=s-1+2*ud.G2,p=i-1+2*ud.G2,u=255&n,f=255&o,h=this.P(u+this.P(f))%12,b=this.P(u+c+this.P(f+l))%12,g=this.P(u+1+this.P(f+1))%12;return 70*(this.getCornerNoise3D(h,s,i,0,.5)+this.getCornerNoise3D(b,d,m,0,.5)+this.getCornerNoise3D(g,_,p,0,.5))}sample(e,t,r){const o=.3333333333333333*(e+t+r),i=Math.floor(e+o),a=Math.floor(t+o),n=Math.floor(r+o),s=.16666666666666666*(i+a+n),c=e-(i-s),l=t-(a-s),d=r-(n-s);let m,_,p,u,f,h;c>=l?l>=d?(m=1,_=0,p=0,u=1,f=1,h=0):c>=d?(m=1,_=0,p=0,u=1,f=0,h=1):(m=0,_=0,p=1,u=1,f=0,h=1):l<d?(m=0,_=0,p=1,u=0,f=1,h=1):c<d?(m=0,_=1,p=0,u=0,f=1,h=1):(m=0,_=1,p=0,u=1,f=1,h=0);const b=c-m+.16666666666666666,g=l-_+.16666666666666666,v=d-p+.16666666666666666,y=c-u+.3333333333333333,N=l-f+.3333333333333333,O=d-h+.3333333333333333,k=c-.5,w=l-.5,x=d-.5,j=255&i,S=255&a,M=255&n,P=this.P(j+this.P(S+this.P(M)))%12,C=this.P(j+m+this.P(S+_+this.P(M+p)))%12,L=this.P(j+u+this.P(S+f+this.P(M+h)))%12,B=this.P(j+1+this.P(S+1+this.P(M+1)))%12;return 32*(this.getCornerNoise3D(P,c,l,d,.6)+this.getCornerNoise3D(C,b,g,v,.6)+this.getCornerNoise3D(L,y,N,O,.6)+this.getCornerNoise3D(B,k,w,x,.6))}P(e){return this.p[255&e]}getCornerNoise3D(e,t,r,o,i){let a,n=i-t*t-r*r-o*o;return n<0?a=0:(n*=n,a=n*n*ud.gradDot(e,t,r,o)),a}static gradDot(e,t,r,o){const i=ud.GRADIENT[15&e];return i[0]*t+i[1]*r+i[2]*o}}ud.GRADIENT=[[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0],[1,0,1],[-1,0,1],[1,0,-1],[-1,0,-1],[0,1,1],[0,-1,1],[0,1,-1],[0,-1,-1],[1,1,0],[0,-1,1],[-1,1,0],[0,-1,-1]],ud.F2=.5*(Math.sqrt(3)-1),ud.G2=(3-Math.sqrt(3))/6;class fd{constructor(e){this.xo=256*e.nextDouble(),this.yo=256*e.nextDouble(),this.zo=256*e.nextDouble(),this.p=Array(256);for(let t=0;t<256;t+=1)this.p[t]=t>127?t-256:t;for(let t=0;t<256;t+=1){const r=e.nextInt(256-t),o=this.p[t];this.p[t]=this.p[t+r],this.p[t+r]=o}}sample(e,t,r,o=0,i=0){const a=e+this.xo,n=t+this.yo,s=r+this.zo,c=Math.floor(a),l=Math.floor(n),d=Math.floor(s),m=a-c,_=n-l,p=s-d;let u=0;if(0!==o){const e=i>=0&&i<_?i:_;u=Math.floor(e/o+1e-7)*o}return this.sampleAndLerp(c,l,d,m,_-u,p,_)}sampleAndLerp(e,t,r,o,i,a,n){const s=this.P(e),c=this.P(e+1),l=this.P(s+t),d=this.P(s+t+1),m=this.P(c+t),_=this.P(c+t+1),p=ud.gradDot(this.P(l+r),o,i,a),u=ud.gradDot(this.P(m+r),o-1,i,a),f=ud.gradDot(this.P(d+r),o,i-1,a),h=ud.gradDot(this.P(_+r),o-1,i-1,a),b=ud.gradDot(this.P(l+r+1),o,i,a-1),g=ud.gradDot(this.P(m+r+1),o-1,i,a-1),v=ud.gradDot(this.P(d+r+1),o,i-1,a-1),y=ud.gradDot(this.P(_+r+1),o-1,i-1,a-1);return function(e,t,r,o,i,a,n,s,c,l,d){return dd(r,md(e,t,o,i,a,n),md(e,t,s,c,l,d))}(pd(o),pd(n),pd(a),p,u,f,h,b,g,v,y)}P(e){return 255&this.p[255&e]}}class hd{constructor(e,t,r){if(1-t<r.length)throw new Error("Positive octaves are not allowed");this.noiseLevels=Array(r.length);for(let o=-t;o>=0;o-=1)o<r.length&&0!==r[o]?this.noiseLevels[o]=new fd(e):e.consume(262);this.amplitudes=r,this.lowestFreqInputFactor=Math.pow(2,t),this.lowestFreqValueFactor=Math.pow(2,r.length-1)/(Math.pow(2,r.length)-1)}sample(e,t,r,o=0,i=0,a=!1){let n=0,s=this.lowestFreqInputFactor,c=this.lowestFreqValueFactor;for(let l=0;l<this.noiseLevels.length;l+=1){const d=this.noiseLevels[l];d&&(n+=this.amplitudes[l]*c*d.sample(hd.wrap(e*s),a?-d.yo:hd.wrap(t*s),hd.wrap(r*s),o*s,i*s)),s*=2,c/=2}return n}getOctaveNoise(e){return this.noiseLevels[this.noiseLevels.length-1-e]}static wrap(e){return e-33554432*Math.floor(e/33554432+.5)}}class bd{constructor(e){this.minLimitNoise=new hd(e,-15,[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]),this.maxLimitNoise=new hd(e,-15,[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]),this.mainNoise=new hd(e,-7,[1,1,1,1,1,0,0,0])}sample(e,t,r,o,i,a,n){let s,c=0,l=1;for(let _=0;_<8;_+=1){if(s=this.mainNoise.getOctaveNoise(_),s){const o=a*l,i=n*l,d=hd.wrap(e*o),m=hd.wrap(t*i),_=hd.wrap(r*o);c+=s.sample(d,m,_,i,t*i)/l}l/=2}c=(c/10+1)/2,l=1;let d=0,m=0;for(let _=0;_<16;_+=1){const a=o*l,n=i*l,p=hd.wrap(e*a),u=hd.wrap(t*n),f=hd.wrap(r*a);c<1&&(s=this.minLimitNoise.getOctaveNoise(_))&&(d+=s.sample(p,u,f,n,t*n)/l),c>0&&(s=this.maxLimitNoise.getOctaveNoise(_))&&(m+=s.sample(p,u,f,n,t*n)/l),l/=2}return _d(d/512,m/512,c)}}class gd{constructor(e,{firstOctave:t,amplitudes:r}){this.first=new hd(e,t,r),this.second=new hd(e,t,r);let o=1/0,i=-1/0;for(let n=0;n<r.length;n+=1)0!==r[n]&&(o=Math.min(o,n),i=Math.max(i,n));const a=.1*(1+1/(i-o+1));this.valueFactor=1/6/a}sample(e,t,r){const o=e*gd.INPUT_FACTOR,i=t*gd.INPUT_FACTOR,a=r*gd.INPUT_FACTOR;return(this.first.sample(e,t,r)+this.second.sample(o,i,a))*this.valueFactor}}gd.INPUT_FACTOR=1.0181268882175227,(Jl||(Jl={})).fromJson=function(e){var t,r,o;const i=null!==(t=Yl.readObject(e))&&void 0!==t?t:{};return{firstOctave:null!==(r=Yl.readInt(i.firstOctave))&&void 0!==r?r:0,amplitudes:null!==(o=Yl.readArray(i.amplitudes,(e=>{var t;return null!==(t=Yl.readNumber(e))&&void 0!==t?t:0})))&&void 0!==o?o:[]}};class vd{constructor(e){this.seed=BigInt(0),this.setSeed(e)}fork(){return new vd(this.nextLong())}setSeed(e){this.seed=e^vd.MULTIPLIER&vd.MODULUS_MASK}advance(){this.seed=this.seed*vd.MULTIPLIER+vd.INCREMENT&vd.MODULUS_MASK}consume(e){for(let t=0;t<e;t+=1)this.advance()}next(e){this.advance();const t=Number(this.seed>>BigInt(vd.MODULUS_BITS-e));return t>2147483647?t-4294967296:t}nextInt(e){if(void 0===e)return this.next(32);if(0==(e&e-1))return Number(BigInt(e)*BigInt(this.next(31))>>BigInt(31));let t,r;for(;(t=this.next(31))-(r=t%e)+(e-1)<0;);return r}nextLong(){return(BigInt(this.next(32))<<BigInt(32))+BigInt(this.next(32))}nextFloat(){return this.next(24)*vd.FLOAT_MULTIPLIER}nextDouble(){const e=this.next(30);return this.advance(),e*vd.DOUBLE_MULTIPLIER}}vd.MODULUS_BITS=48,vd.MODULUS_MASK=BigInt("281474976710655"),vd.MULTIPLIER=BigInt("25214903917"),vd.INCREMENT=BigInt("11"),vd.FLOAT_MULTIPLIER=1/Math.pow(2,24),vd.DOUBLE_MULTIPLIER=1/Math.pow(2,30);class yd extends vd{constructor(){super(...arguments),this.count=0}getCount(){return this.count}next(e){return this.count+=1,super.next(e)}}class Nd{constructor(e,t,r=[],o=[],i=[]){this.name=e,this.coordinate=t,this.locations=r,this.values=o,this.derivatives=i}apply(e){const t=this.coordinate(e),r=function(e,t,r){let o=t-e;for(;o>0;){const t=Math.floor(o/2),i=e+t;r(i)?o=t:(e=i+1,o-=t+1)}return e}(0,this.locations.length,(e=>t<this.locations[e]))-1,o=this.locations.length-1;if(r<0)return this.values[0](e)+this.derivatives[0]*(t-this.locations[0]);if(r===o)return this.values[o](e)+this.derivatives[o]*(t-this.locations[o]);const i=this.locations[r],a=this.locations[r+1],n=this.derivatives[r],s=this.derivatives[r+1],c=(t-i)/(a-i),l=this.values[r](e),d=this.values[r+1](e),m=n*(a-i)-(d-l),_=-s*(a-i)+(d-l);return dd(c,l,d)+c*(1-c)*dd(c,m,_)}addPoint(e,t,r=0){return this.locations.push(e),this.values.push("number"==typeof t?()=>t:t.apply.bind(t)),this.derivatives.push(r),this}}(Kl||(Kl={})).rotate=function(e,t,r){let{up:o,down:i,north:a,east:n,south:s,west:c}=e;switch(r){case 90:[a,n,s,c]=[n,s,c,a];break;case 180:[a,n,s,c]=[s,c,a,n];break;case 270:[a,n,s,c]=[c,a,n,s]}switch(t){case 90:[o,a,i,s]=[a,i,s,o];break;case 180:[o,a,i,s]=[i,s,o,a];break;case 270:[o,a,i,s]=[s,o,a,i]}return{up:o,down:i,north:a,east:n,south:s,west:c}},function(e){function t(e,t){return"number"==typeof e?new r(e,null!=t?t:e):e}e.target=function(e,t,r,o,a,n){return new i(e,t,r,o,a,n)},e.parameters=function(e,r,i,a,n,s,c){return new o(t(e),t(r),t(i),t(a),t(n),t(s),c)},e.param=t;class r{constructor(e,t){this.min=e,this.max=t}distance(e){const t=("number"==typeof e?e:e.min)-this.max,r=this.min-("number"==typeof e?e:e.max);return t>0?t:Math.max(r,0)}union(e){return new r(Math.min(this.min,e.min),Math.max(this.max,e.max))}static fromJson(e){var t;if("number"==typeof e)return new r(e,e);const[o,i]=null!==(t=Yl.readArray(e,(e=>Yl.readNumber(e))))&&void 0!==t?t:[];return new r(null!=o?o:0,null!=i?i:0)}}e.Param=r;class o{constructor(e,t,r,o,i,a,n){this.temperature=e,this.humidity=t,this.continentalness=r,this.erosion=o,this.depth=i,this.weirdness=a,this.offset=n}fittness(e){return ld(this.temperature.distance(e.temperature))+ld(this.humidity.distance(e.humidity))+ld(this.continentalness.distance(e.continentalness))+ld(this.erosion.distance(e.erosion))+ld(this.depth.distance(e.depth))+ld(this.weirdness.distance(e.weirdness))+ld(this.offset-e.offset)}space(){return[this.temperature,this.humidity,this.continentalness,this.erosion,this.depth,this.weirdness,new r(this.offset,this.offset)]}static fromJson(e){var t,i;const a=null!==(t=Yl.readObject(e))&&void 0!==t?t:{};return new o(r.fromJson(a.temperature),r.fromJson(a.humidity),r.fromJson(a.continentalness),r.fromJson(a.erosion),r.fromJson(a.depth),r.fromJson(a.weirdness),null!==(i=Yl.readInt(a.offset))&&void 0!==i?i:0)}}e.ParamPoint=o;class i{constructor(e,t,r,o,i,a){this.temperature=e,this.humidity=t,this.continentalness=r,this.erosion=o,this.depth=i,this.weirdness=a}get offset(){return 0}toArray(){return[this.temperature,this.humidity,this.continentalness,this.erosion,this.depth,this.weirdness,this.offset]}}e.TargetPoint=i,e.Parameters=class{constructor(e){this.things=e,this.index=new a(e)}find(e){return this.index.search(e,((e,t)=>e.distance(t)))}};class a{constructor(e){this.root=a.build(e.map((([e,t])=>new c(e,t))))}static build(e){if(1===e.length)return e[0];if(e.length<=a.CHILDREN_PER_NODE){const t=e.map((e=>{let t=0;for(let r=0;r<7;r+=1){const o=e.space[r];t+=Math.abs((o.min+o.max)/2)}return{key:t,node:e}})).sort(((e,t)=>e.key-t.key)).map((({node:e})=>e));return new s(t)}let t=1/0,r=-1,o=[];for(let i=0;i<7;++i){a.sort(e,i,!1),o=a.bucketize(e);let n=0;for(const e of o)n+=a.area(e.space);t>n&&(t=n,r=i)}return e=a.sort(e,r,!1),o=a.bucketize(e),o=a.sort(o,r,!0),new s(o.map((e=>a.build(e.children))))}static sort(e,t,r){return e.map((e=>{const o=e.space[t],i=(o.min+o.max)/2;return{key:r?Math.abs(i):i,node:e}})).sort(((e,t)=>e.key-t.key)).map((({node:e})=>e))}static bucketize(e){const t=[];let r=[];const o=Math.pow(10,Math.floor(Math.log(e.length-.01)/Math.log(10)));for(const i of e)r.push(i),r.length<o||(t.push(new s(r)),r=[]);return 0!==r.length&&t.push(new s(r)),t}static area(e){let t=0;for(const r of e)t+=Math.abs(r.max-r.min);return t}search(e,t){return this.root.search(e.toArray(),t).thing()}}a.CHILDREN_PER_NODE=10,e.RTree=a;class n{constructor(e){this.space=e}distance(e){let t=0;for(let r=0;r<7;r+=1)t+=ld(this.space[r].distance(e[r]));return t}}e.RNode=n;class s extends n{constructor(e){super(s.buildSpace(e)),this.children=e}static buildSpace(e){let t=[...Array(7)].map((()=>new r(1/0,-1/0)));for(const r of e)t=[...Array(7)].map(((e,o)=>t[o].union(r.space[o])));return t}search(e,t){let r=1/0,o=null;for(const i of this.children){const a=t(i,e);if(r<=a)continue;const n=i.search(e,t),s=i==n?a:t(n,e);r<=s||(r=s,o=n)}return o}}e.RSubTree=s;class c extends n{constructor(e,t){super(e.space()),this.thing=t}search(){return this}}e.RLeaf=c}(Gl||(Gl={}));class Od{constructor(e){this.biome=e}getBiome(){return this.biome}static fromJson(e){var t,r;const o=null!==(t=Yl.readObject(e))&&void 0!==t?t:{},i=null!==(r=Yl.readString(o.biome))&&void 0!==r?r:"minecraft:the_void";return new Od(i)}}class kd{constructor(e){this.parameters=e}getBiome(e,t,r,o){const i=o(e,t,r);return this.parameters.find(i)}static fromJson(e){var t,r;const o=null!==(t=Yl.readObject(e))&&void 0!==t?t:{},i=(null!==(r=Yl.readArray(o.biomes,(e=>{var t,r,o;return r=null!==(t=Yl.readObject(e))&&void 0!==t?t:{},{biome:null!==(o=Yl.readString(r.biome))&&void 0!==o?o:"minecraft:the_void",parameters:Gl.ParamPoint.fromJson(r.parameters)}})))&&void 0!==r?r:[]).map((e=>[e.parameters,()=>e.biome]));return new kd(new Gl.Parameters(i))}}!function(e){function t(e){return l.apply(e)+.015}function r(e){return d.apply(e)}function o(e){return m.apply(e)}function i(e){return 3*-(Math.abs(Math.abs(e)-.6666667)-.33333334)}e.offset=t,e.factor=r,e.peaks=o,e.peaksAndValleys=i,e.point=function(e,t,r){return{continents:e,erosion:t,weirdness:r,ridges:i(r)}},e.nearWater=function(e,t){return!(e<-.2)&&(e<-.05||Math.abs(t)<.15)},e.shape=function(e,i){return{offset:t(e),factor:r(e),peaks:o(e),nearWater:i}};const a=p("beachSpline",-.15,-.05,0,0,.1,0,-.03,!1,!1),n=p("lowSpline",-.1,-.1,.03,.1,.1,.01,-.03,!1,!1),s=p("midSpline",-.1,-.1,.03,.1,.7,.01,-.03,!0,!0),c=p("highSpline",-.05,.3,.03,.1,1,.01,.01,!0,!0),l=new Nd("offsetSampler",(e=>e.continents)).addPoint(-1.1,.044).addPoint(-1.02,-.2222).addPoint(-.51,-.2222).addPoint(-.44,-.12).addPoint(-.18,-.12).addPoint(-.16,a).addPoint(-.15,a).addPoint(-.1,n).addPoint(.25,s).addPoint(1,c),d=new Nd("Factor-Continents",(e=>e.continents)).addPoint(-.19,505).addPoint(-.15,_("erosionCoast",800,!0,"ridgeCoast-OldMountains")).addPoint(-.1,_("erosionInland",700,!0,"ridgeInland-OldMountains")).addPoint(.03,_("erosionMidInland",650,!0,"ridgeMidInland-OldMountains")).addPoint(.06,_("erosionFarInland",600,!1,"ridgeFarInland-OldMountains")),m=new Nd("Peaks",(e=>e.continents)).addPoint(.1,0).addPoint(.2,new Nd("Peaks-erosion",(e=>e.erosion)).addPoint(-.8,new Nd("Peaks-erosion-ridges",(e=>e.ridges)).addPoint(-1,0).addPoint(.2,0).addPoint(1,new Nd("Peaks-erosion-ridges-weirdness",(e=>e.weirdness)).addPoint(-.01,80).addPoint(.01,20))).addPoint(-.4,0));function _(e,t,r,o){const i=new Nd(e,(e=>e.erosion)).addPoint(-.6,t).addPoint(-.5,342).addPoint(-.35,t).addPoint(-.25,t).addPoint(-.1,342).addPoint(.03,t);if(r){const e=new Nd("weirdnessShattered",(e=>e.weirdness)).addPoint(0,t).addPoint(.1,80),r=new Nd("ridgesShattered",(e=>e.ridges)).addPoint(-.9,t).addPoint(-.69,e);i.addPoint(.35,t).addPoint(.45,r).addPoint(.55,r).addPoint(.62,t)}else{const e=new Nd(o,(e=>e.ridges)).addPoint(-.7,t).addPoint(-.15,175),r=new Nd(o,(e=>e.ridges)).addPoint(.45,t).addPoint(.7,200);i.addPoint(.05,r).addPoint(.4,r).addPoint(.45,e).addPoint(.55,e).addPoint(.58,t)}return i}function p(e,t,r,o,i,a,n,s,c,l){const d=u(dd(a,.6,1.5),l),m=u(dd(a,.6,1),l),_=u(a,l),p=b(e+"-widePlateau",t-.15,.5*a,dd(.5,.5,.5)*a,.5*a,.6*a,.5),f=b(e+"-narrowPlateau",t,n*a,o*a,.5*a,.6*a,.5),h=b(e+"-plains",t,n,n,o,i,.5),g=b(e+"-plainsFarInland",t,n,n,o,i,.5),v=new Nd(e,(e=>e.ridges)).addPoint(-1,t).addPoint(-.4,h).addPoint(0,i+.07),y=b(e+"-swamps",-.02,s,s,o,i,0),N=new Nd(e,(e=>e.erosion)).addPoint(-.85,d).addPoint(-.7,m).addPoint(-.4,_).addPoint(-.35,p).addPoint(-.1,f).addPoint(.2,h);return c&&N.addPoint(.4,g).addPoint(.45,v).addPoint(.55,v).addPoint(.58,g),N.addPoint(.7,y),N}function u(e,t){const r=new Nd(`M-spline for continentalness: ${e} ${t}`,(e=>e.ridges)),o=f(-1,e,-.7),i=f(1,e,-.7),a=.5*(1-(n=e))/(.46082947*(1-.5*(1-n)))-1.17;var n;if(-.65<a&&a<1){const t=f(-.65,e,-.7),n=f(-.75,e,-.7),s=h(o,n,-1,-.75);r.addPoint(-1,o,s),r.addPoint(-.75,n),r.addPoint(-.65,t);const c=f(a,e,-.7),l=h(c,i,a,1);r.addPoint(a-.01,c),r.addPoint(a,c,l),r.addPoint(1,i,l)}else{const e=h(o,i,-1,1);t?(r.addPoint(-1,Math.max(.2,o)),r.addPoint(0,dd(.5,o,i),e)):r.addPoint(-1,o,e),r.addPoint(1,i,e)}return r}function f(e,t,r){const o=.46082947*(e+1.17)*(1-.5*(1-t))-.5*(1-t);return e<r?Math.max(o,-.2222):Math.max(o,0)}function h(e,t,r,o){return(t-e)/(o-r)}function b(e,t,r,o,i,a,n){const s=Math.max(.5*(r-t),n),c=5*(o-r);return new Nd(e,(e=>e.ridges)).addPoint(-1,t,s).addPoint(-.4,r,Math.min(s,c)).addPoint(0,o,c).addPoint(.4,i,2*(i-o)).addPoint(1,a,.7*(a-i))}}(Vl||(Vl={}));class wd{constructor(e,t,r,o,i,a){this.cellCountY=t,this.cellCountZ=r,this.cellMinY=i,this.filler=a,this.noise000=0,this.noise001=0,this.noise100=0,this.noise101=0,this.noise010=0,this.noise011=0,this.noise110=0,this.noise111=0,this.valueXZ00=0,this.valueXZ10=0,this.valueXZ01=0,this.valueXZ11=0,this.valueZ0=0,this.valueZ1=0,this.minCellX=o[0]*e,this.minCellZ=o[1]*r,this.slice0=wd.allocateSlice(t,r),this.slice1=wd.allocateSlice(t,r)}static allocateSlice(e,t){const r=Array(t+1);for(let o=0;o<t+1;o+=1)r[o]=Array(e+1);return r}initializeForFirstCellX(){this.fillSlice(this.slice0,this.minCellX)}advanceCellX(e){this.fillSlice(this.slice1,this.minCellX+e+1)}fillSlice(e,t){for(let r=0;r<this.cellCountZ+1;r+=1)this.filler(e[r],t,this.minCellZ+r,this.cellMinY,this.cellCountY)}selectCellYZ(e,t){this.noise000=this.slice0[t][e],this.noise001=this.slice0[t+1][e],this.noise100=this.slice1[t][e],this.noise101=this.slice1[t+1][e],this.noise010=this.slice0[t][e+1],this.noise011=this.slice0[t+1][e+1],this.noise110=this.slice1[t][e+1],this.noise111=this.slice1[t+1][e+1]}updateForY(e){this.valueXZ00=dd(e,this.noise000,this.noise010),this.valueXZ10=dd(e,this.noise100,this.noise110),this.valueXZ01=dd(e,this.noise001,this.noise011),this.valueXZ11=dd(e,this.noise101,this.noise111)}updateForX(e){this.valueZ0=dd(e,this.valueXZ00,this.valueXZ10),this.valueZ1=dd(e,this.valueXZ01,this.valueXZ11)}calculateValue(e){return dd(e,this.valueZ0,this.valueZ1)}swapSlices(){[this.slice0,this.slice1]=[this.slice1,this.slice0]}}class xd{constructor(e,t,r,o,i,a,n,s){this.cellWidth=e,this.cellHeight=t,this.cellCountY=r,this.biomeSource=o,this.settings=i,this.shapeOverride=s;const c=new vd(n),l=i.useLegacyRandom?new vd(n):c.fork();this.blendedNoise=new bd(l),c.consume(8),this.temperatureNoise=new gd(new yd(n),a.temperature),this.humidityNoise=new gd(new yd(n+BigInt(1)),a.humidity),this.continentalnessNoise=new gd(new yd(n+BigInt(2)),a.continentalness),this.erosionNoise=new gd(new yd(n+BigInt(3)),a.erosion),this.weirdnessNoise=new gd(new yd(n+BigInt(4)),a.weirdness),this.offsetNoise=new gd(new yd(n+BigInt(5)),a.shift),this.mountainPeakNoise=new gd(c.fork(),{firstOctave:-16,amplitudes:[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]})}getClimate(e,t,r){const o=e+this.getOffset(e,0,r),i=t+this.getOffset(t,r,e),a=r+this.getOffset(r,e,0),n=this.temperatureNoise.sample(o,i,a),s=this.humidityNoise.sample(o,i,a),c=this.continentalnessNoise.sample(o,0,a),l=this.erosionNoise.sample(o,0,a),d=this.weirdnessNoise.sample(o,0,a),m=Vl.offset(Vl.point(c,l,d)),_=xd.computeDimensionDensity(1,-.51875,4*t)+m;return new Gl.TargetPoint(n,s,c,l,_,d)}getTerrainShape(e,t){if(this.shapeOverride)return this.shapeOverride;const r=e+this.getOffset(e,0,t),o=t+this.getOffset(t,e,0),i=this.continentalnessNoise.sample(r,0,o),a=this.erosionNoise.sample(r,0,o),n=this.weirdnessNoise.sample(r,0,o),s=Vl.point(i,a,n),c=Vl.nearWater(i,n);return Vl.shape(s,c)}getOffset(e,t,r){return 4*this.offsetNoise.sample(e,t,r)}fillNoiseColumn(e,t,r,o,i){const a=t*this.cellWidth>>2,n=r*this.cellWidth>>2,{offset:s,factor:c,peaks:l}=this.getTerrainShape(a,n),d=684.412*this.settings.sampling.xzScale,m=684.412*this.settings.sampling.yScale,_=d/this.settings.sampling.xzFactor,p=m/this.settings.sampling.yFactor;for(let u=0;u<=i;u+=1){const i=u+o,a=this.blendedNoise.sample(t,i,r,d,m,_,p),n=this.samplePeakNoise(l,t*this.cellHeight,r*this.cellHeight)/128,f=this.computeInitialDensity(i*this.cellHeight,s,c,0,n)+a;e[u]=this.applySlide(f,i)}}samplePeakNoise(e,t,r){if(0===e)return 0;const o=3e3/this.cellWidth,i=this.mountainPeakNoise.sample(t*o,0,r*o);return i>0?e*i:e/2*i}computeInitialDensity(e,t,r,o,i){const a=(xd.computeDimensionDensity(this.settings.densityFactor,this.settings.densityOffset,e,o)+t+i)*r;return a*(a>0?4:1)}applySlide(e,t){const r=t-Math.floor(this.settings.minY/this.cellHeight);if(this.settings.topSlide.size>0){const t=(this.cellCountY-r-this.settings.topSlide.offset)/this.settings.topSlide.size;e=_d(this.settings.topSlide.target,e,t)}if(this.settings.bottomSlide.size>0){const t=(r-this.settings.bottomSlide.offset)/this.settings.bottomSlide.size;e=_d(this.settings.bottomSlide.target,e,t)}return e}static computeDimensionDensity(e,t,r,o=0){return e*(1-r/128+o)+t}}class jd{constructor(e,t,r,o){this.seed=e,this.biomeSource=t,this.settings=r,this.cellHeight=r.noise.ySize<<2,this.cellWidth=r.noise.xzSize<<2,this.cellCountXZ=Math.floor(16/this.cellWidth),this.cellCountY=Math.floor(r.noise.height/this.cellHeight),this.sampler=new xd(this.cellWidth,this.cellHeight,this.cellCountY,t,r.noise,r.octaves,e,o)}fill(e){const t=Math.max(e.minY,this.settings.noise.minY),r=Math.min(e.maxY,this.settings.noise.minY+this.settings.noise.height),o=Math.floor(t/this.cellHeight),i=Math.floor((r-t)/this.cellHeight),a=Xl.minBlockX(e.pos),n=Xl.minBlockZ(e.pos),s=new wd(this.cellCountXZ,i,this.cellCountXZ,e.pos,o,this.sampler.fillNoiseColumn.bind(this.sampler)),c=Array(s);c.forEach((e=>e.initializeForFirstCellX()));for(let l=0;l<this.cellCountXZ;l+=1){c.forEach((e=>e.advanceCellX(l)));for(let t=0;t<this.cellCountXZ;t+=1){let r=e.getOrCreateSection(e.sectionsCount-1);for(let d=i-1;d>=0;d-=1){c.forEach((e=>e.selectCellYZ(d,t)));for(let i=this.cellHeight-1;i>=0;i-=1){const m=(o+d)*this.cellHeight+i,_=15&m,p=e.getSectionIndex(m);e.getSectionIndex(r.minBlockY)!==p&&(r=e.getOrCreateSection(p));const u=i/this.cellHeight;c.forEach((e=>e.updateForY(u)));for(let e=0;e<this.cellWidth;e+=1){const o=a+l*this.cellWidth+e,i=15&o,d=e/this.cellWidth;c.forEach((e=>e.updateForX(d)));for(let e=0;e<this.cellWidth;e+=1){const a=n+t*this.cellWidth+e,c=15&a,l=e/this.cellWidth,d=s.calculateValue(l),p=this.baseState(o,m,a,d);p.equals(nd.AIR)||r.setBlockState(i,_,c,p)}}}}}c.forEach((e=>e.swapSlices()))}}baseState(e,t,r,o){return(o=(o=function(e,t,r){return Math.max(t,Math.min(r,e))}(o/200,-1,1))/2-o*o*o/24)>0?this.settings.defaultBlock:t<this.settings.seaLevel?this.settings.defaultFluid:nd.AIR}}(Ql||(Ql={})).fromJson=function(e){var t,r,o,i,a,n,s,c,l,d,m,_;const p=null!==(t=Yl.readObject(e))&&void 0!==t?t:{};return{minY:null!==(r=Yl.readInt(p.min_y))&&void 0!==r?r:0,height:null!==(o=Yl.readInt(p.height))&&void 0!==o?o:256,xzSize:null!==(i=Yl.readInt(p.size_horizontal))&&void 0!==i?i:1,ySize:null!==(a=Yl.readInt(p.size_vertical))&&void 0!==a?a:1,densityFactor:null!==(n=Yl.readNumber(p.density_factor))&&void 0!==n?n:0,densityOffset:null!==(s=Yl.readNumber(p.density_offset))&&void 0!==s?s:0,sampling:ed.fromJson(p.sampling),topSlide:td.fromJson(p.top_slide),bottomSlide:td.fromJson(p.bottom_slide),useSimplexSurfaceNoise:null!==(c=Yl.readBoolean(p.simplex_surface_noise))&&void 0!==c&&c,randomDensityOffset:null!==(l=Yl.readBoolean(p.random_density_offset))&&void 0!==l&&l,islandNoiseOverride:null!==(d=Yl.readBoolean(p.island_noise_override))&&void 0!==d&&d,isAmplified:null!==(m=Yl.readBoolean(p.amplified))&&void 0!==m&&m,useLegacyRandom:null!==(_=Yl.readBoolean(p.use_legacy_random))&&void 0!==_&&_}},(ed||(ed={})).fromJson=function(e){var t,r,o,i,a;const n=null!==(t=Yl.readObject(e))&&void 0!==t?t:{};return{xzScale:null!==(r=Yl.readNumber(n.xz_scale))&&void 0!==r?r:1,yScale:null!==(o=Yl.readNumber(n.y_scale))&&void 0!==o?o:1,xzFactor:null!==(i=Yl.readNumber(n.xz_factor))&&void 0!==i?i:80,yFactor:null!==(a=Yl.readNumber(n.y_factor))&&void 0!==a?a:80}},(td||(td={})).fromJson=function(e){var t,r,o,i;const a=null!==(t=Yl.readObject(e))&&void 0!==t?t:{};return{target:null!==(r=Yl.readNumber(a.target))&&void 0!==r?r:0,size:null!==(o=Yl.readInt(a.size))&&void 0!==o?o:0,offset:null!==(i=Yl.readInt(a.offset))&&void 0!==i?i:0}},(rd||(rd={})).fromJson=function(e){var t,r,o,i,a,n,s,c,l,d;const m=null!==(t=Yl.readObject(e))&&void 0!==t?t:{};return{structures:od.fromJson(m.structures),noise:Ql.fromJson(m.noise),octaves:id.fromJson(m.octaves),defaultBlock:nd.fromJson(m.default_block),defaultFluid:nd.fromJson(m.default_fluid),bedrockRoofPosition:null!==(r=Yl.readInt(m.bedrock_roof_position))&&void 0!==r?r:0,bedrockFloorPosition:null!==(o=Yl.readInt(m.bedrock_floor_position))&&void 0!==o?o:0,seaLevel:null!==(i=Yl.readInt(m.sea_level))&&void 0!==i?i:0,disableMobGeneration:null!==(a=Yl.readBoolean(m.disable_mob_generation))&&void 0!==a&&a,aquifersEnabled:null!==(n=Yl.readBoolean(m.aquifers_enabled))&&void 0!==n&&n,noiseCavesEnabled:null!==(s=Yl.readBoolean(m.noise_caves_enabled))&&void 0!==s&&s,deepslateEnabled:null!==(c=Yl.readBoolean(m.deepslate_enabled))&&void 0!==c&&c,oreVeinsEnabled:null!==(l=Yl.readBoolean(m.ore_veins_enabled))&&void 0!==l&&l,noodleCavesEnabled:null!==(d=Yl.readBoolean(m.noodle_caves_enabled))&&void 0!==d&&d}},(od||(od={})).fromJson=function(e){var t;const r=null!==(t=Yl.readObject(e))&&void 0!==t?t:{};return{stronghold:Yl.compose(r.stronghold,Yl.readObject,(e=>{var t,r,o;return{distance:null!==(t=Yl.readInt(e.distance))&&void 0!==t?t:0,spread:null!==(r=Yl.readInt(e.spread))&&void 0!==r?r:0,count:null!==(o=Yl.readInt(e.count))&&void 0!==o?o:0}})),structures:Yl.readMap(r.structures,(e=>{var t,r,o,i,a;return r=null!==(t=Yl.readObject(e))&&void 0!==t?t:{},{spacing:null!==(o=Yl.readInt(r.spacing))&&void 0!==o?o:0,separation:null!==(i=Yl.readInt(r.separation))&&void 0!==i?i:0,salt:null!==(a=Yl.readInt(r.salt))&&void 0!==a?a:0}}))}},(id||(id={})).fromJson=function(e){var t;const r=null!==(t=Yl.readObject(e))&&void 0!==t?t:{};return{temperature:Jl.fromJson(r.temperature),humidity:Jl.fromJson(r.humidity),continentalness:Jl.fromJson(r.continentalness),erosion:Jl.fromJson(r.erosion),weirdness:Jl.fromJson(r.weirdness),shift:Jl.fromJson(r.shift)}};export{ke as A,rd as C,Xl as I,se as L,xd as M,jd as N,Od as R,vd as W,gd as X,kd as _,v as a,Be as b,Io as c,Na as d,ss as e,Q as f,V as g,hd as h,cd as i,tr as j,N as k,ve as l,Oe as m,F as n,ne as o,we as q,cs as r,Ne as s,ye as y};
|
|
//# sourceMappingURL=vendor.eb373f94.js.map
|