Files
Epicnabbo-Catalogus-Updated…/Cool-ui updated/dist/assets/vendor-BA-Z_o67.js
T
Remco Epicnabbo 1333e82922 🆙 New icons 🆙
2025-04-19 10:57:18 +02:00

1856 lines
2.4 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function RG(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(i){var n=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return s[i]}})}),t}var kD={exports:{}},qE={},xD={exports:{}},$e={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var cg=Symbol.for("react.element"),SG=Symbol.for("react.portal"),bG=Symbol.for("react.fragment"),AG=Symbol.for("react.strict_mode"),OG=Symbol.for("react.profiler"),wG=Symbol.for("react.provider"),CG=Symbol.for("react.context"),MG=Symbol.for("react.forward_ref"),NG=Symbol.for("react.suspense"),PG=Symbol.for("react.memo"),kG=Symbol.for("react.lazy"),TC=Symbol.iterator;function xG(s){return s===null||typeof s!="object"?null:(s=TC&&s[TC]||s["@@iterator"],typeof s=="function"?s:null)}var DD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},LD=Object.assign,UD={};function ff(s,e,t){this.props=s,this.context=e,this.refs=UD,this.updater=t||DD}ff.prototype.isReactComponent={};ff.prototype.setState=function(s,e){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,e,"setState")};ff.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function FD(){}FD.prototype=ff.prototype;function vO(s,e,t){this.props=s,this.context=e,this.refs=UD,this.updater=t||DD}var EO=vO.prototype=new FD;EO.constructor=vO;LD(EO,ff.prototype);EO.isPureReactComponent=!0;var IC=Array.isArray,BD=Object.prototype.hasOwnProperty,yO={current:null},GD={key:!0,ref:!0,__self:!0,__source:!0};function VD(s,e,t){var i,n={},r=null,a=null;if(e!=null)for(i in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(r=""+e.key),e)BD.call(e,i)&&!GD.hasOwnProperty(i)&&(n[i]=e[i]);var o=arguments.length-2;if(o===1)n.children=t;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];n.children=l}if(s&&s.defaultProps)for(i in o=s.defaultProps,o)n[i]===void 0&&(n[i]=o[i]);return{$$typeof:cg,type:s,key:r,ref:a,props:n,_owner:yO.current}}function DG(s,e){return{$$typeof:cg,type:s.type,key:e,ref:s.ref,props:s.props,_owner:s._owner}}function TO(s){return typeof s=="object"&&s!==null&&s.$$typeof===cg}function LG(s){var e={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(t){return e[t]})}var RC=/\/+/g;function j0(s,e){return typeof s=="object"&&s!==null&&s.key!=null?LG(""+s.key):e.toString(36)}function Op(s,e,t,i,n){var r=typeof s;(r==="undefined"||r==="boolean")&&(s=null);var a=!1;if(s===null)a=!0;else switch(r){case"string":case"number":a=!0;break;case"object":switch(s.$$typeof){case cg:case SG:a=!0}}if(a)return a=s,n=n(a),s=i===""?"."+j0(a,0):i,IC(n)?(t="",s!=null&&(t=s.replace(RC,"$&/")+"/"),Op(n,e,t,"",function(u){return u})):n!=null&&(TO(n)&&(n=DG(n,t+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(RC,"$&/")+"/")+s)),e.push(n)),1;if(a=0,i=i===""?".":i+":",IC(s))for(var o=0;o<s.length;o++){r=s[o];var l=i+j0(r,o);a+=Op(r,e,t,l,n)}else if(l=xG(s),typeof l=="function")for(s=l.call(s),o=0;!(r=s.next()).done;)r=r.value,l=i+j0(r,o++),a+=Op(r,e,t,l,n);else if(r==="object")throw e=String(s),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function Cg(s,e,t){if(s==null)return s;var i=[],n=0;return Op(s,i,"","",function(r){return e.call(t,r,n++)}),i}function UG(s){if(s._status===-1){var e=s._result;e=e(),e.then(function(t){(s._status===0||s._status===-1)&&(s._status=1,s._result=t)},function(t){(s._status===0||s._status===-1)&&(s._status=2,s._result=t)}),s._status===-1&&(s._status=0,s._result=e)}if(s._status===1)return s._result.default;throw s._result}var ms={current:null},wp={transition:null},FG={ReactCurrentDispatcher:ms,ReactCurrentBatchConfig:wp,ReactCurrentOwner:yO};function jD(){throw Error("act(...) is not supported in production builds of React.")}$e.Children={map:Cg,forEach:function(s,e,t){Cg(s,function(){e.apply(this,arguments)},t)},count:function(s){var e=0;return Cg(s,function(){e++}),e},toArray:function(s){return Cg(s,function(e){return e})||[]},only:function(s){if(!TO(s))throw Error("React.Children.only expected to receive a single React element child.");return s}};$e.Component=ff;$e.Fragment=bG;$e.Profiler=OG;$e.PureComponent=vO;$e.StrictMode=AG;$e.Suspense=NG;$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FG;$e.act=jD;$e.cloneElement=function(s,e,t){if(s==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var i=LD({},s.props),n=s.key,r=s.ref,a=s._owner;if(e!=null){if(e.ref!==void 0&&(r=e.ref,a=yO.current),e.key!==void 0&&(n=""+e.key),s.type&&s.type.defaultProps)var o=s.type.defaultProps;for(l in e)BD.call(e,l)&&!GD.hasOwnProperty(l)&&(i[l]=e[l]===void 0&&o!==void 0?o[l]:e[l])}var l=arguments.length-2;if(l===1)i.children=t;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];i.children=o}return{$$typeof:cg,type:s.type,key:n,ref:r,props:i,_owner:a}};$e.createContext=function(s){return s={$$typeof:CG,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},s.Provider={$$typeof:wG,_context:s},s.Consumer=s};$e.createElement=VD;$e.createFactory=function(s){var e=VD.bind(null,s);return e.type=s,e};$e.createRef=function(){return{current:null}};$e.forwardRef=function(s){return{$$typeof:MG,render:s}};$e.isValidElement=TO;$e.lazy=function(s){return{$$typeof:kG,_payload:{_status:-1,_result:s},_init:UG}};$e.memo=function(s,e){return{$$typeof:PG,type:s,compare:e===void 0?null:e}};$e.startTransition=function(s){var e=wp.transition;wp.transition={};try{s()}finally{wp.transition=e}};$e.unstable_act=jD;$e.useCallback=function(s,e){return ms.current.useCallback(s,e)};$e.useContext=function(s){return ms.current.useContext(s)};$e.useDebugValue=function(){};$e.useDeferredValue=function(s){return ms.current.useDeferredValue(s)};$e.useEffect=function(s,e){return ms.current.useEffect(s,e)};$e.useId=function(){return ms.current.useId()};$e.useImperativeHandle=function(s,e,t){return ms.current.useImperativeHandle(s,e,t)};$e.useInsertionEffect=function(s,e){return ms.current.useInsertionEffect(s,e)};$e.useLayoutEffect=function(s,e){return ms.current.useLayoutEffect(s,e)};$e.useMemo=function(s,e){return ms.current.useMemo(s,e)};$e.useReducer=function(s,e,t){return ms.current.useReducer(s,e,t)};$e.useRef=function(s){return ms.current.useRef(s)};$e.useState=function(s){return ms.current.useState(s)};$e.useSyncExternalStore=function(s,e,t){return ms.current.useSyncExternalStore(s,e,t)};$e.useTransition=function(){return ms.current.useTransition()};$e.version="18.3.1";xD.exports=$e;var D=xD.exports;const Bt=nr(D);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var BG=D,GG=Symbol.for("react.element"),VG=Symbol.for("react.fragment"),jG=Object.prototype.hasOwnProperty,zG=BG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,HG={key:!0,ref:!0,__self:!0,__source:!0};function zD(s,e,t){var i,n={},r=null,a=null;t!==void 0&&(r=""+t),e.key!==void 0&&(r=""+e.key),e.ref!==void 0&&(a=e.ref);for(i in e)jG.call(e,i)&&!HG.hasOwnProperty(i)&&(n[i]=e[i]);if(s&&s.defaultProps)for(i in e=s.defaultProps,e)n[i]===void 0&&(n[i]=e[i]);return{$$typeof:GG,type:s,key:r,ref:a,props:n,_owner:zG.current}}qE.Fragment=VG;qE.jsx=zD;qE.jsxs=zD;kD.exports=qE;var vt=kD.exports,HD={exports:{}},hn={},WD={exports:{}},YD={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(s){function e(H,J){var B=H.length;H.push(J);e:for(;0<B;){var $=B-1>>>1,fe=H[$];if(0<n(fe,J))H[$]=J,H[B]=fe,B=$;else break e}}function t(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var J=H[0],B=H.pop();if(B!==J){H[0]=B;e:for(var $=0,fe=H.length,xe=fe>>>1;$<xe;){var me=2*($+1)-1,De=H[me],we=me+1,it=H[we];if(0>n(De,B))we<fe&&0>n(it,De)?(H[$]=it,H[we]=B,$=we):(H[$]=De,H[me]=B,$=me);else if(we<fe&&0>n(it,B))H[$]=it,H[we]=B,$=we;else break e}}return J}function n(H,J){var B=H.sortIndex-J.sortIndex;return B!==0?B:H.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;s.unstable_now=function(){return r.now()}}else{var a=Date,o=a.now();s.unstable_now=function(){return a.now()-o}}var l=[],u=[],c=1,h=null,f=3,d=!1,_=!1,g=!1,p=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(H){for(var J=t(u);J!==null;){if(J.callback===null)i(u);else if(J.startTime<=H)i(u),J.sortIndex=J.expirationTime,e(l,J);else break;J=t(u)}}function y(H){if(g=!1,E(H),!_)if(t(l)!==null)_=!0,Y(T);else{var J=t(u);J!==null&&K(y,J.startTime-H)}}function T(H,J){_=!1,g&&(g=!1,m(N),N=-1),d=!0;var B=f;try{for(E(J),h=t(l);h!==null&&(!(h.expirationTime>J)||H&&!L());){var $=h.callback;if(typeof $=="function"){h.callback=null,f=h.priorityLevel;var fe=$(h.expirationTime<=J);J=s.unstable_now(),typeof fe=="function"?h.callback=fe:h===t(l)&&i(l),E(J)}else i(l);h=t(l)}if(h!==null)var xe=!0;else{var me=t(u);me!==null&&K(y,me.startTime-J),xe=!1}return xe}finally{h=null,f=B,d=!1}}var w=!1,C=null,N=-1,P=5,k=-1;function L(){return!(s.unstable_now()-k<P)}function j(){if(C!==null){var H=s.unstable_now();k=H;var J=!0;try{J=C(!0,H)}finally{J?z():(w=!1,C=null)}}else w=!1}var z;if(typeof v=="function")z=function(){v(j)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,G=ne.port2;ne.port1.onmessage=j,z=function(){G.postMessage(null)}}else z=function(){p(j,0)};function Y(H){C=H,w||(w=!0,z())}function K(H,J){N=p(function(){H(s.unstable_now())},J)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(H){H.callback=null},s.unstable_continueExecution=function(){_||d||(_=!0,Y(T))},s.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},s.unstable_getCurrentPriorityLevel=function(){return f},s.unstable_getFirstCallbackNode=function(){return t(l)},s.unstable_next=function(H){switch(f){case 1:case 2:case 3:var J=3;break;default:J=f}var B=f;f=J;try{return H()}finally{f=B}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=function(){},s.unstable_runWithPriority=function(H,J){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var B=f;f=H;try{return J()}finally{f=B}},s.unstable_scheduleCallback=function(H,J,B){var $=s.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?$+B:$):B=$,H){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=B+fe,H={id:c++,callback:J,priorityLevel:H,startTime:B,expirationTime:fe,sortIndex:-1},B>$?(H.sortIndex=B,e(u,H),t(l)===null&&H===t(u)&&(g?(m(N),N=-1):g=!0,K(y,B-$))):(H.sortIndex=fe,e(l,H),_||d||(_=!0,Y(T))),H},s.unstable_shouldYield=L,s.unstable_wrapCallback=function(H){var J=f;return function(){var B=f;f=J;try{return H.apply(this,arguments)}finally{f=B}}}})(YD);WD.exports=YD;var WG=WD.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var YG=D,on=WG;function W(s){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+s,t=1;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+s+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var XD=new Set,h_={};function Yu(s,e){Lc(s,e),Lc(s+"Capture",e)}function Lc(s,e){for(h_[s]=e,s=0;s<e.length;s++)XD.add(e[s])}var La=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jT=Object.prototype.hasOwnProperty,XG=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,SC={},bC={};function KG(s){return jT.call(bC,s)?!0:jT.call(SC,s)?!1:XG.test(s)?bC[s]=!0:(SC[s]=!0,!1)}function qG(s,e,t,i){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:t!==null?!t.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function $G(s,e,t,i){if(e===null||typeof e>"u"||qG(s,e,t,i))return!0;if(i)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function vs(s,e,t,i,n,r,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=t,this.propertyName=s,this.type=e,this.sanitizeURL=r,this.removeEmptyString=a}var zi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){zi[s]=new vs(s,0,!1,s,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var e=s[0];zi[e]=new vs(e,1,!1,s[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(s){zi[s]=new vs(s,2,!1,s.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){zi[s]=new vs(s,2,!1,s,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){zi[s]=new vs(s,3,!1,s.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(s){zi[s]=new vs(s,3,!0,s,null,!1,!1)});["capture","download"].forEach(function(s){zi[s]=new vs(s,4,!1,s,null,!1,!1)});["cols","rows","size","span"].forEach(function(s){zi[s]=new vs(s,6,!1,s,null,!1,!1)});["rowSpan","start"].forEach(function(s){zi[s]=new vs(s,5,!1,s.toLowerCase(),null,!1,!1)});var IO=/[\-:]([a-z])/g;function RO(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var e=s.replace(IO,RO);zi[e]=new vs(e,1,!1,s,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var e=s.replace(IO,RO);zi[e]=new vs(e,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(s){var e=s.replace(IO,RO);zi[e]=new vs(e,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(s){zi[s]=new vs(s,1,!1,s.toLowerCase(),null,!1,!1)});zi.xlinkHref=new vs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(s){zi[s]=new vs(s,1,!1,s.toLowerCase(),null,!0,!0)});function SO(s,e,t,i){var n=zi.hasOwnProperty(e)?zi[e]:null;(n!==null?n.type!==0:i||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&($G(e,t,n,i)&&(t=null),i||n===null?KG(e)&&(t===null?s.removeAttribute(e):s.setAttribute(e,""+t)):n.mustUseProperty?s[n.propertyName]=t===null?n.type===3?!1:"":t:(e=n.attributeName,i=n.attributeNamespace,t===null?s.removeAttribute(e):(n=n.type,t=n===3||n===4&&t===!0?"":""+t,i?s.setAttributeNS(i,e,t):s.setAttribute(e,t))))}var Ya=YG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mg=Symbol.for("react.element"),fh=Symbol.for("react.portal"),dh=Symbol.for("react.fragment"),bO=Symbol.for("react.strict_mode"),zT=Symbol.for("react.profiler"),KD=Symbol.for("react.provider"),qD=Symbol.for("react.context"),AO=Symbol.for("react.forward_ref"),HT=Symbol.for("react.suspense"),WT=Symbol.for("react.suspense_list"),OO=Symbol.for("react.memo"),Za=Symbol.for("react.lazy"),$D=Symbol.for("react.offscreen"),AC=Symbol.iterator;function Tf(s){return s===null||typeof s!="object"?null:(s=AC&&s[AC]||s["@@iterator"],typeof s=="function"?s:null)}var Xt=Object.assign,z0;function Ff(s){if(z0===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);z0=e&&e[1]||""}return`
`+z0+s}var H0=!1;function W0(s,e){if(!s||H0)return"";H0=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var i=u}Reflect.construct(s,[],e)}else{try{e.call()}catch(u){i=u}s.call(e.prototype)}else{try{throw Error()}catch(u){i=u}s()}}catch(u){if(u&&i&&typeof u.stack=="string"){for(var n=u.stack.split(`
`),r=i.stack.split(`
`),a=n.length-1,o=r.length-1;1<=a&&0<=o&&n[a]!==r[o];)o--;for(;1<=a&&0<=o;a--,o--)if(n[a]!==r[o]){if(a!==1||o!==1)do if(a--,o--,0>o||n[a]!==r[o]){var l=`
`+n[a].replace(" at new "," at ");return s.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",s.displayName)),l}while(1<=a&&0<=o);break}}}finally{H0=!1,Error.prepareStackTrace=t}return(s=s?s.displayName||s.name:"")?Ff(s):""}function QG(s){switch(s.tag){case 5:return Ff(s.type);case 16:return Ff("Lazy");case 13:return Ff("Suspense");case 19:return Ff("SuspenseList");case 0:case 2:case 15:return s=W0(s.type,!1),s;case 11:return s=W0(s.type.render,!1),s;case 1:return s=W0(s.type,!0),s;default:return""}}function YT(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case dh:return"Fragment";case fh:return"Portal";case zT:return"Profiler";case bO:return"StrictMode";case HT:return"Suspense";case WT:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case qD:return(s.displayName||"Context")+".Consumer";case KD:return(s._context.displayName||"Context")+".Provider";case AO:var e=s.render;return s=s.displayName,s||(s=e.displayName||e.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case OO:return e=s.displayName||null,e!==null?e:YT(s.type)||"Memo";case Za:e=s._payload,s=s._init;try{return YT(s(e))}catch{}}return null}function ZG(s){var e=s.type;switch(s.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=e.render,s=s.displayName||s.name||"",e.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return YT(e);case 8:return e===bO?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Qo(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function QD(s){var e=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function JG(s){var e=QD(s)?"checked":"value",t=Object.getOwnPropertyDescriptor(s.constructor.prototype,e),i=""+s[e];if(!s.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var n=t.get,r=t.set;return Object.defineProperty(s,e,{configurable:!0,get:function(){return n.call(this)},set:function(a){i=""+a,r.call(this,a)}}),Object.defineProperty(s,e,{enumerable:t.enumerable}),{getValue:function(){return i},setValue:function(a){i=""+a},stopTracking:function(){s._valueTracker=null,delete s[e]}}}}function Ng(s){s._valueTracker||(s._valueTracker=JG(s))}function ZD(s){if(!s)return!1;var e=s._valueTracker;if(!e)return!0;var t=e.getValue(),i="";return s&&(i=QD(s)?s.checked?"true":"false":s.value),s=i,s!==t?(e.setValue(s),!0):!1}function tm(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function XT(s,e){var t=e.checked;return Xt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??s._wrapperState.initialChecked})}function OC(s,e){var t=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;t=Qo(e.value!=null?e.value:t),s._wrapperState={initialChecked:i,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function JD(s,e){e=e.checked,e!=null&&SO(s,"checked",e,!1)}function KT(s,e){JD(s,e);var t=Qo(e.value),i=e.type;if(t!=null)i==="number"?(t===0&&s.value===""||s.value!=t)&&(s.value=""+t):s.value!==""+t&&(s.value=""+t);else if(i==="submit"||i==="reset"){s.removeAttribute("value");return}e.hasOwnProperty("value")?qT(s,e.type,t):e.hasOwnProperty("defaultValue")&&qT(s,e.type,Qo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(s.defaultChecked=!!e.defaultChecked)}function wC(s,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+s._wrapperState.initialValue,t||e===s.value||(s.value=e),s.defaultValue=e}t=s.name,t!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,t!==""&&(s.name=t)}function qT(s,e,t){(e!=="number"||tm(s.ownerDocument)!==s)&&(t==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+t&&(s.defaultValue=""+t))}var Bf=Array.isArray;function Rc(s,e,t,i){if(s=s.options,e){e={};for(var n=0;n<t.length;n++)e["$"+t[n]]=!0;for(t=0;t<s.length;t++)n=e.hasOwnProperty("$"+s[t].value),s[t].selected!==n&&(s[t].selected=n),n&&i&&(s[t].defaultSelected=!0)}else{for(t=""+Qo(t),e=null,n=0;n<s.length;n++){if(s[n].value===t){s[n].selected=!0,i&&(s[n].defaultSelected=!0);return}e!==null||s[n].disabled||(e=s[n])}e!==null&&(e.selected=!0)}}function $T(s,e){if(e.dangerouslySetInnerHTML!=null)throw Error(W(91));return Xt({},e,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function CC(s,e){var t=e.value;if(t==null){if(t=e.children,e=e.defaultValue,t!=null){if(e!=null)throw Error(W(92));if(Bf(t)){if(1<t.length)throw Error(W(93));t=t[0]}e=t}e==null&&(e=""),t=e}s._wrapperState={initialValue:Qo(t)}}function eL(s,e){var t=Qo(e.value),i=Qo(e.defaultValue);t!=null&&(t=""+t,t!==s.value&&(s.value=t),e.defaultValue==null&&s.defaultValue!==t&&(s.defaultValue=t)),i!=null&&(s.defaultValue=""+i)}function MC(s){var e=s.textContent;e===s._wrapperState.initialValue&&e!==""&&e!==null&&(s.value=e)}function tL(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function QT(s,e){return s==null||s==="http://www.w3.org/1999/xhtml"?tL(e):s==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Pg,iL=function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,i,n){MSApp.execUnsafeLocalFunction(function(){return s(e,t,i,n)})}:s}(function(s,e){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=e;else{for(Pg=Pg||document.createElement("div"),Pg.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Pg.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;e.firstChild;)s.appendChild(e.firstChild)}});function c_(s,e){if(e){var t=s.firstChild;if(t&&t===s.lastChild&&t.nodeType===3){t.nodeValue=e;return}}s.textContent=e}var Kf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},e8=["Webkit","ms","Moz","O"];Object.keys(Kf).forEach(function(s){e8.forEach(function(e){e=e+s.charAt(0).toUpperCase()+s.substring(1),Kf[e]=Kf[s]})});function sL(s,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Kf.hasOwnProperty(s)&&Kf[s]?(""+e).trim():e+"px"}function nL(s,e){s=s.style;for(var t in e)if(e.hasOwnProperty(t)){var i=t.indexOf("--")===0,n=sL(t,e[t],i);t==="float"&&(t="cssFloat"),i?s.setProperty(t,n):s[t]=n}}var t8=Xt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ZT(s,e){if(e){if(t8[s]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(W(137,s));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(W(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(W(61))}if(e.style!=null&&typeof e.style!="object")throw Error(W(62))}}function JT(s,e){if(s.indexOf("-")===-1)return typeof e.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eI=null;function wO(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var tI=null,Sc=null,bc=null;function NC(s){if(s=_g(s)){if(typeof tI!="function")throw Error(W(280));var e=s.stateNode;e&&(e=e0(e),tI(s.stateNode,s.type,e))}}function rL(s){Sc?bc?bc.push(s):bc=[s]:Sc=s}function aL(){if(Sc){var s=Sc,e=bc;if(bc=Sc=null,NC(s),e)for(s=0;s<e.length;s++)NC(e[s])}}function oL(s,e){return s(e)}function lL(){}var Y0=!1;function uL(s,e,t){if(Y0)return s(e,t);Y0=!0;try{return oL(s,e,t)}finally{Y0=!1,(Sc!==null||bc!==null)&&(lL(),aL())}}function f_(s,e){var t=s.stateNode;if(t===null)return null;var i=e0(t);if(i===null)return null;t=i[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(s=s.type,i=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!i;break e;default:s=!1}if(s)return null;if(t&&typeof t!="function")throw Error(W(231,e,typeof t));return t}var iI=!1;if(La)try{var If={};Object.defineProperty(If,"passive",{get:function(){iI=!0}}),window.addEventListener("test",If,If),window.removeEventListener("test",If,If)}catch{iI=!1}function i8(s,e,t,i,n,r,a,o,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(t,u)}catch(c){this.onError(c)}}var qf=!1,im=null,sm=!1,sI=null,s8={onError:function(s){qf=!0,im=s}};function n8(s,e,t,i,n,r,a,o,l){qf=!1,im=null,i8.apply(s8,arguments)}function r8(s,e,t,i,n,r,a,o,l){if(n8.apply(this,arguments),qf){if(qf){var u=im;qf=!1,im=null}else throw Error(W(198));sm||(sm=!0,sI=u)}}function Xu(s){var e=s,t=s;if(s.alternate)for(;e.return;)e=e.return;else{s=e;do e=s,e.flags&4098&&(t=e.return),s=e.return;while(s)}return e.tag===3?t:null}function hL(s){if(s.tag===13){var e=s.memoizedState;if(e===null&&(s=s.alternate,s!==null&&(e=s.memoizedState)),e!==null)return e.dehydrated}return null}function PC(s){if(Xu(s)!==s)throw Error(W(188))}function a8(s){var e=s.alternate;if(!e){if(e=Xu(s),e===null)throw Error(W(188));return e!==s?null:s}for(var t=s,i=e;;){var n=t.return;if(n===null)break;var r=n.alternate;if(r===null){if(i=n.return,i!==null){t=i;continue}break}if(n.child===r.child){for(r=n.child;r;){if(r===t)return PC(n),s;if(r===i)return PC(n),e;r=r.sibling}throw Error(W(188))}if(t.return!==i.return)t=n,i=r;else{for(var a=!1,o=n.child;o;){if(o===t){a=!0,t=n,i=r;break}if(o===i){a=!0,i=n,t=r;break}o=o.sibling}if(!a){for(o=r.child;o;){if(o===t){a=!0,t=r,i=n;break}if(o===i){a=!0,i=r,t=n;break}o=o.sibling}if(!a)throw Error(W(189))}}if(t.alternate!==i)throw Error(W(190))}if(t.tag!==3)throw Error(W(188));return t.stateNode.current===t?s:e}function cL(s){return s=a8(s),s!==null?fL(s):null}function fL(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var e=fL(s);if(e!==null)return e;s=s.sibling}return null}var dL=on.unstable_scheduleCallback,kC=on.unstable_cancelCallback,o8=on.unstable_shouldYield,l8=on.unstable_requestPaint,ai=on.unstable_now,u8=on.unstable_getCurrentPriorityLevel,CO=on.unstable_ImmediatePriority,_L=on.unstable_UserBlockingPriority,nm=on.unstable_NormalPriority,h8=on.unstable_LowPriority,gL=on.unstable_IdlePriority,$E=null,xr=null;function c8(s){if(xr&&typeof xr.onCommitFiberRoot=="function")try{xr.onCommitFiberRoot($E,s,void 0,(s.current.flags&128)===128)}catch{}}var Zn=Math.clz32?Math.clz32:_8,f8=Math.log,d8=Math.LN2;function _8(s){return s>>>=0,s===0?32:31-(f8(s)/d8|0)|0}var kg=64,xg=4194304;function Gf(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function rm(s,e){var t=s.pendingLanes;if(t===0)return 0;var i=0,n=s.suspendedLanes,r=s.pingedLanes,a=t&268435455;if(a!==0){var o=a&~n;o!==0?i=Gf(o):(r&=a,r!==0&&(i=Gf(r)))}else a=t&~n,a!==0?i=Gf(a):r!==0&&(i=Gf(r));if(i===0)return 0;if(e!==0&&e!==i&&!(e&n)&&(n=i&-i,r=e&-e,n>=r||n===16&&(r&4194240)!==0))return e;if(i&4&&(i|=t&16),e=s.entangledLanes,e!==0)for(s=s.entanglements,e&=i;0<e;)t=31-Zn(e),n=1<<t,i|=s[t],e&=~n;return i}function g8(s,e){switch(s){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function p8(s,e){for(var t=s.suspendedLanes,i=s.pingedLanes,n=s.expirationTimes,r=s.pendingLanes;0<r;){var a=31-Zn(r),o=1<<a,l=n[a];l===-1?(!(o&t)||o&i)&&(n[a]=g8(o,e)):l<=e&&(s.expiredLanes|=o),r&=~o}}function nI(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function pL(){var s=kg;return kg<<=1,!(kg&4194240)&&(kg=64),s}function X0(s){for(var e=[],t=0;31>t;t++)e.push(s);return e}function fg(s,e,t){s.pendingLanes|=e,e!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,e=31-Zn(e),s[e]=t}function m8(s,e){var t=s.pendingLanes&~e;s.pendingLanes=e,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=e,s.mutableReadLanes&=e,s.entangledLanes&=e,e=s.entanglements;var i=s.eventTimes;for(s=s.expirationTimes;0<t;){var n=31-Zn(t),r=1<<n;e[n]=0,i[n]=-1,s[n]=-1,t&=~r}}function MO(s,e){var t=s.entangledLanes|=e;for(s=s.entanglements;t;){var i=31-Zn(t),n=1<<i;n&e|s[i]&e&&(s[i]|=e),t&=~n}}var Et=0;function mL(s){return s&=-s,1<s?4<s?s&268435455?16:536870912:4:1}var vL,NO,EL,yL,TL,rI=!1,Dg=[],Fo=null,Bo=null,Go=null,d_=new Map,__=new Map,So=[],v8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function xC(s,e){switch(s){case"focusin":case"focusout":Fo=null;break;case"dragenter":case"dragleave":Bo=null;break;case"mouseover":case"mouseout":Go=null;break;case"pointerover":case"pointerout":d_.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":__.delete(e.pointerId)}}function Rf(s,e,t,i,n,r){return s===null||s.nativeEvent!==r?(s={blockedOn:e,domEventName:t,eventSystemFlags:i,nativeEvent:r,targetContainers:[n]},e!==null&&(e=_g(e),e!==null&&NO(e)),s):(s.eventSystemFlags|=i,e=s.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),s)}function E8(s,e,t,i,n){switch(e){case"focusin":return Fo=Rf(Fo,s,e,t,i,n),!0;case"dragenter":return Bo=Rf(Bo,s,e,t,i,n),!0;case"mouseover":return Go=Rf(Go,s,e,t,i,n),!0;case"pointerover":var r=n.pointerId;return d_.set(r,Rf(d_.get(r)||null,s,e,t,i,n)),!0;case"gotpointercapture":return r=n.pointerId,__.set(r,Rf(__.get(r)||null,s,e,t,i,n)),!0}return!1}function IL(s){var e=uu(s.target);if(e!==null){var t=Xu(e);if(t!==null){if(e=t.tag,e===13){if(e=hL(t),e!==null){s.blockedOn=e,TL(s.priority,function(){EL(t)});return}}else if(e===3&&t.stateNode.current.memoizedState.isDehydrated){s.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Cp(s){if(s.blockedOn!==null)return!1;for(var e=s.targetContainers;0<e.length;){var t=aI(s.domEventName,s.eventSystemFlags,e[0],s.nativeEvent);if(t===null){t=s.nativeEvent;var i=new t.constructor(t.type,t);eI=i,t.target.dispatchEvent(i),eI=null}else return e=_g(t),e!==null&&NO(e),s.blockedOn=t,!1;e.shift()}return!0}function DC(s,e,t){Cp(s)&&t.delete(e)}function y8(){rI=!1,Fo!==null&&Cp(Fo)&&(Fo=null),Bo!==null&&Cp(Bo)&&(Bo=null),Go!==null&&Cp(Go)&&(Go=null),d_.forEach(DC),__.forEach(DC)}function Sf(s,e){s.blockedOn===e&&(s.blockedOn=null,rI||(rI=!0,on.unstable_scheduleCallback(on.unstable_NormalPriority,y8)))}function g_(s){function e(n){return Sf(n,s)}if(0<Dg.length){Sf(Dg[0],s);for(var t=1;t<Dg.length;t++){var i=Dg[t];i.blockedOn===s&&(i.blockedOn=null)}}for(Fo!==null&&Sf(Fo,s),Bo!==null&&Sf(Bo,s),Go!==null&&Sf(Go,s),d_.forEach(e),__.forEach(e),t=0;t<So.length;t++)i=So[t],i.blockedOn===s&&(i.blockedOn=null);for(;0<So.length&&(t=So[0],t.blockedOn===null);)IL(t),t.blockedOn===null&&So.shift()}var Ac=Ya.ReactCurrentBatchConfig,am=!0;function T8(s,e,t,i){var n=Et,r=Ac.transition;Ac.transition=null;try{Et=1,PO(s,e,t,i)}finally{Et=n,Ac.transition=r}}function I8(s,e,t,i){var n=Et,r=Ac.transition;Ac.transition=null;try{Et=4,PO(s,e,t,i)}finally{Et=n,Ac.transition=r}}function PO(s,e,t,i){if(am){var n=aI(s,e,t,i);if(n===null)sy(s,e,i,om,t),xC(s,i);else if(E8(n,s,e,t,i))i.stopPropagation();else if(xC(s,i),e&4&&-1<v8.indexOf(s)){for(;n!==null;){var r=_g(n);if(r!==null&&vL(r),r=aI(s,e,t,i),r===null&&sy(s,e,i,om,t),r===n)break;n=r}n!==null&&i.stopPropagation()}else sy(s,e,i,null,t)}}var om=null;function aI(s,e,t,i){if(om=null,s=wO(i),s=uu(s),s!==null)if(e=Xu(s),e===null)s=null;else if(t=e.tag,t===13){if(s=hL(e),s!==null)return s;s=null}else if(t===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;s=null}else e!==s&&(s=null);return om=s,null}function RL(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(u8()){case CO:return 1;case _L:return 4;case nm:case h8:return 16;case gL:return 536870912;default:return 16}default:return 16}}var Oo=null,kO=null,Mp=null;function SL(){if(Mp)return Mp;var s,e=kO,t=e.length,i,n="value"in Oo?Oo.value:Oo.textContent,r=n.length;for(s=0;s<t&&e[s]===n[s];s++);var a=t-s;for(i=1;i<=a&&e[t-i]===n[r-i];i++);return Mp=n.slice(s,1<i?1-i:void 0)}function Np(s){var e=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&e===13&&(s=13)):s=e,s===10&&(s=13),32<=s||s===13?s:0}function Lg(){return!0}function LC(){return!1}function cn(s){function e(t,i,n,r,a){this._reactName=t,this._targetInst=n,this.type=i,this.nativeEvent=r,this.target=a,this.currentTarget=null;for(var o in s)s.hasOwnProperty(o)&&(t=s[o],this[o]=t?t(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Lg:LC,this.isPropagationStopped=LC,this}return Xt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Lg)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Lg)},persist:function(){},isPersistent:Lg}),e}var df={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xO=cn(df),dg=Xt({},df,{view:0,detail:0}),R8=cn(dg),K0,q0,bf,QE=Xt({},dg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:DO,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==bf&&(bf&&s.type==="mousemove"?(K0=s.screenX-bf.screenX,q0=s.screenY-bf.screenY):q0=K0=0,bf=s),K0)},movementY:function(s){return"movementY"in s?s.movementY:q0}}),UC=cn(QE),S8=Xt({},QE,{dataTransfer:0}),b8=cn(S8),A8=Xt({},dg,{relatedTarget:0}),$0=cn(A8),O8=Xt({},df,{animationName:0,elapsedTime:0,pseudoElement:0}),w8=cn(O8),C8=Xt({},df,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),M8=cn(C8),N8=Xt({},df,{data:0}),FC=cn(N8),P8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},x8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D8(s){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(s):(s=x8[s])?!!e[s]:!1}function DO(){return D8}var L8=Xt({},dg,{key:function(s){if(s.key){var e=P8[s.key]||s.key;if(e!=="Unidentified")return e}return s.type==="keypress"?(s=Np(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?k8[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:DO,charCode:function(s){return s.type==="keypress"?Np(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Np(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),U8=cn(L8),F8=Xt({},QE,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BC=cn(F8),B8=Xt({},dg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:DO}),G8=cn(B8),V8=Xt({},df,{propertyName:0,elapsedTime:0,pseudoElement:0}),j8=cn(V8),z8=Xt({},QE,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),H8=cn(z8),W8=[9,13,27,32],LO=La&&"CompositionEvent"in window,$f=null;La&&"documentMode"in document&&($f=document.documentMode);var Y8=La&&"TextEvent"in window&&!$f,bL=La&&(!LO||$f&&8<$f&&11>=$f),GC=" ",VC=!1;function AL(s,e){switch(s){case"keyup":return W8.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OL(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var _h=!1;function X8(s,e){switch(s){case"compositionend":return OL(e);case"keypress":return e.which!==32?null:(VC=!0,GC);case"textInput":return s=e.data,s===GC&&VC?null:s;default:return null}}function K8(s,e){if(_h)return s==="compositionend"||!LO&&AL(s,e)?(s=SL(),Mp=kO=Oo=null,_h=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return bL&&e.locale!=="ko"?null:e.data;default:return null}}var q8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jC(s){var e=s&&s.nodeName&&s.nodeName.toLowerCase();return e==="input"?!!q8[s.type]:e==="textarea"}function wL(s,e,t,i){rL(i),e=lm(e,"onChange"),0<e.length&&(t=new xO("onChange","change",null,t,i),s.push({event:t,listeners:e}))}var Qf=null,p_=null;function $8(s){BL(s,0)}function ZE(s){var e=mh(s);if(ZD(e))return s}function Q8(s,e){if(s==="change")return e}var CL=!1;if(La){var Q0;if(La){var Z0="oninput"in document;if(!Z0){var zC=document.createElement("div");zC.setAttribute("oninput","return;"),Z0=typeof zC.oninput=="function"}Q0=Z0}else Q0=!1;CL=Q0&&(!document.documentMode||9<document.documentMode)}function HC(){Qf&&(Qf.detachEvent("onpropertychange",ML),p_=Qf=null)}function ML(s){if(s.propertyName==="value"&&ZE(p_)){var e=[];wL(e,p_,s,wO(s)),uL($8,e)}}function Z8(s,e,t){s==="focusin"?(HC(),Qf=e,p_=t,Qf.attachEvent("onpropertychange",ML)):s==="focusout"&&HC()}function J8(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return ZE(p_)}function e7(s,e){if(s==="click")return ZE(e)}function t7(s,e){if(s==="input"||s==="change")return ZE(e)}function i7(s,e){return s===e&&(s!==0||1/s===1/e)||s!==s&&e!==e}var sr=typeof Object.is=="function"?Object.is:i7;function m_(s,e){if(sr(s,e))return!0;if(typeof s!="object"||s===null||typeof e!="object"||e===null)return!1;var t=Object.keys(s),i=Object.keys(e);if(t.length!==i.length)return!1;for(i=0;i<t.length;i++){var n=t[i];if(!jT.call(e,n)||!sr(s[n],e[n]))return!1}return!0}function WC(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function YC(s,e){var t=WC(s);s=0;for(var i;t;){if(t.nodeType===3){if(i=s+t.textContent.length,s<=e&&i>=e)return{node:t,offset:e-s};s=i}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=WC(t)}}function NL(s,e){return s&&e?s===e?!0:s&&s.nodeType===3?!1:e&&e.nodeType===3?NL(s,e.parentNode):"contains"in s?s.contains(e):s.compareDocumentPosition?!!(s.compareDocumentPosition(e)&16):!1:!1}function PL(){for(var s=window,e=tm();e instanceof s.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)s=e.contentWindow;else break;e=tm(s.document)}return e}function UO(s){var e=s&&s.nodeName&&s.nodeName.toLowerCase();return e&&(e==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||e==="textarea"||s.contentEditable==="true")}function s7(s){var e=PL(),t=s.focusedElem,i=s.selectionRange;if(e!==t&&t&&t.ownerDocument&&NL(t.ownerDocument.documentElement,t)){if(i!==null&&UO(t)){if(e=i.start,s=i.end,s===void 0&&(s=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(s,t.value.length);else if(s=(e=t.ownerDocument||document)&&e.defaultView||window,s.getSelection){s=s.getSelection();var n=t.textContent.length,r=Math.min(i.start,n);i=i.end===void 0?r:Math.min(i.end,n),!s.extend&&r>i&&(n=i,i=r,r=n),n=YC(t,r);var a=YC(t,i);n&&a&&(s.rangeCount!==1||s.anchorNode!==n.node||s.anchorOffset!==n.offset||s.focusNode!==a.node||s.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),s.removeAllRanges(),r>i?(s.addRange(e),s.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),s.addRange(e)))}}for(e=[],s=t;s=s.parentNode;)s.nodeType===1&&e.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)s=e[t],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var n7=La&&"documentMode"in document&&11>=document.documentMode,gh=null,oI=null,Zf=null,lI=!1;function XC(s,e,t){var i=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;lI||gh==null||gh!==tm(i)||(i=gh,"selectionStart"in i&&UO(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Zf&&m_(Zf,i)||(Zf=i,i=lm(oI,"onSelect"),0<i.length&&(e=new xO("onSelect","select",null,e,t),s.push({event:e,listeners:i}),e.target=gh)))}function Ug(s,e){var t={};return t[s.toLowerCase()]=e.toLowerCase(),t["Webkit"+s]="webkit"+e,t["Moz"+s]="moz"+e,t}var ph={animationend:Ug("Animation","AnimationEnd"),animationiteration:Ug("Animation","AnimationIteration"),animationstart:Ug("Animation","AnimationStart"),transitionend:Ug("Transition","TransitionEnd")},J0={},kL={};La&&(kL=document.createElement("div").style,"AnimationEvent"in window||(delete ph.animationend.animation,delete ph.animationiteration.animation,delete ph.animationstart.animation),"TransitionEvent"in window||delete ph.transitionend.transition);function JE(s){if(J0[s])return J0[s];if(!ph[s])return s;var e=ph[s],t;for(t in e)if(e.hasOwnProperty(t)&&t in kL)return J0[s]=e[t];return s}var xL=JE("animationend"),DL=JE("animationiteration"),LL=JE("animationstart"),UL=JE("transitionend"),FL=new Map,KC="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function al(s,e){FL.set(s,e),Yu(e,[s])}for(var ey=0;ey<KC.length;ey++){var ty=KC[ey],r7=ty.toLowerCase(),a7=ty[0].toUpperCase()+ty.slice(1);al(r7,"on"+a7)}al(xL,"onAnimationEnd");al(DL,"onAnimationIteration");al(LL,"onAnimationStart");al("dblclick","onDoubleClick");al("focusin","onFocus");al("focusout","onBlur");al(UL,"onTransitionEnd");Lc("onMouseEnter",["mouseout","mouseover"]);Lc("onMouseLeave",["mouseout","mouseover"]);Lc("onPointerEnter",["pointerout","pointerover"]);Lc("onPointerLeave",["pointerout","pointerover"]);Yu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yu("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),o7=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vf));function qC(s,e,t){var i=s.type||"unknown-event";s.currentTarget=t,r8(i,e,void 0,s),s.currentTarget=null}function BL(s,e){e=(e&4)!==0;for(var t=0;t<s.length;t++){var i=s[t],n=i.event;i=i.listeners;e:{var r=void 0;if(e)for(var a=i.length-1;0<=a;a--){var o=i[a],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==r&&n.isPropagationStopped())break e;qC(n,o,u),r=l}else for(a=0;a<i.length;a++){if(o=i[a],l=o.instance,u=o.currentTarget,o=o.listener,l!==r&&n.isPropagationStopped())break e;qC(n,o,u),r=l}}}if(sm)throw s=sI,sm=!1,sI=null,s}function Mt(s,e){var t=e[dI];t===void 0&&(t=e[dI]=new Set);var i=s+"__bubble";t.has(i)||(GL(e,s,2,!1),t.add(i))}function iy(s,e,t){var i=0;e&&(i|=4),GL(t,s,i,e)}var Fg="_reactListening"+Math.random().toString(36).slice(2);function v_(s){if(!s[Fg]){s[Fg]=!0,XD.forEach(function(t){t!=="selectionchange"&&(o7.has(t)||iy(t,!1,s),iy(t,!0,s))});var e=s.nodeType===9?s:s.ownerDocument;e===null||e[Fg]||(e[Fg]=!0,iy("selectionchange",!1,e))}}function GL(s,e,t,i){switch(RL(e)){case 1:var n=T8;break;case 4:n=I8;break;default:n=PO}t=n.bind(null,e,t,s),n=void 0,!iI||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),i?n!==void 0?s.addEventListener(e,t,{capture:!0,passive:n}):s.addEventListener(e,t,!0):n!==void 0?s.addEventListener(e,t,{passive:n}):s.addEventListener(e,t,!1)}function sy(s,e,t,i,n){var r=i;if(!(e&1)&&!(e&2)&&i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var o=i.stateNode.containerInfo;if(o===n||o.nodeType===8&&o.parentNode===n)break;if(a===4)for(a=i.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;a=a.return}for(;o!==null;){if(a=uu(o),a===null)return;if(l=a.tag,l===5||l===6){i=r=a;continue e}o=o.parentNode}}i=i.return}uL(function(){var u=r,c=wO(t),h=[];e:{var f=FL.get(s);if(f!==void 0){var d=xO,_=s;switch(s){case"keypress":if(Np(t)===0)break e;case"keydown":case"keyup":d=U8;break;case"focusin":_="focus",d=$0;break;case"focusout":_="blur",d=$0;break;case"beforeblur":case"afterblur":d=$0;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=UC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=b8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=G8;break;case xL:case DL:case LL:d=w8;break;case UL:d=j8;break;case"scroll":d=R8;break;case"wheel":d=H8;break;case"copy":case"cut":case"paste":d=M8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=BC}var g=(e&4)!==0,p=!g&&s==="scroll",m=g?f!==null?f+"Capture":null:f;g=[];for(var v=u,E;v!==null;){E=v;var y=E.stateNode;if(E.tag===5&&y!==null&&(E=y,m!==null&&(y=f_(v,m),y!=null&&g.push(E_(v,y,E)))),p)break;v=v.return}0<g.length&&(f=new d(f,_,null,t,c),h.push({event:f,listeners:g}))}}if(!(e&7)){e:{if(f=s==="mouseover"||s==="pointerover",d=s==="mouseout"||s==="pointerout",f&&t!==eI&&(_=t.relatedTarget||t.fromElement)&&(uu(_)||_[Ua]))break e;if((d||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,d?(_=t.relatedTarget||t.toElement,d=u,_=_?uu(_):null,_!==null&&(p=Xu(_),_!==p||_.tag!==5&&_.tag!==6)&&(_=null)):(d=null,_=u),d!==_)){if(g=UC,y="onMouseLeave",m="onMouseEnter",v="mouse",(s==="pointerout"||s==="pointerover")&&(g=BC,y="onPointerLeave",m="onPointerEnter",v="pointer"),p=d==null?f:mh(d),E=_==null?f:mh(_),f=new g(y,v+"leave",d,t,c),f.target=p,f.relatedTarget=E,y=null,uu(c)===u&&(g=new g(m,v+"enter",_,t,c),g.target=E,g.relatedTarget=p,y=g),p=y,d&&_)t:{for(g=d,m=_,v=0,E=g;E;E=eh(E))v++;for(E=0,y=m;y;y=eh(y))E++;for(;0<v-E;)g=eh(g),v--;for(;0<E-v;)m=eh(m),E--;for(;v--;){if(g===m||m!==null&&g===m.alternate)break t;g=eh(g),m=eh(m)}g=null}else g=null;d!==null&&$C(h,f,d,g,!1),_!==null&&p!==null&&$C(h,p,_,g,!0)}}e:{if(f=u?mh(u):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var T=Q8;else if(jC(f))if(CL)T=t7;else{T=J8;var w=Z8}else(d=f.nodeName)&&d.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=e7);if(T&&(T=T(s,u))){wL(h,T,t,c);break e}w&&w(s,f,u),s==="focusout"&&(w=f._wrapperState)&&w.controlled&&f.type==="number"&&qT(f,"number",f.value)}switch(w=u?mh(u):window,s){case"focusin":(jC(w)||w.contentEditable==="true")&&(gh=w,oI=u,Zf=null);break;case"focusout":Zf=oI=gh=null;break;case"mousedown":lI=!0;break;case"contextmenu":case"mouseup":case"dragend":lI=!1,XC(h,t,c);break;case"selectionchange":if(n7)break;case"keydown":case"keyup":XC(h,t,c)}var C;if(LO)e:{switch(s){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else _h?AL(s,t)&&(N="onCompositionEnd"):s==="keydown"&&t.keyCode===229&&(N="onCompositionStart");N&&(bL&&t.locale!=="ko"&&(_h||N!=="onCompositionStart"?N==="onCompositionEnd"&&_h&&(C=SL()):(Oo=c,kO="value"in Oo?Oo.value:Oo.textContent,_h=!0)),w=lm(u,N),0<w.length&&(N=new FC(N,s,null,t,c),h.push({event:N,listeners:w}),C?N.data=C:(C=OL(t),C!==null&&(N.data=C)))),(C=Y8?X8(s,t):K8(s,t))&&(u=lm(u,"onBeforeInput"),0<u.length&&(c=new FC("onBeforeInput","beforeinput",null,t,c),h.push({event:c,listeners:u}),c.data=C))}BL(h,e)})}function E_(s,e,t){return{instance:s,listener:e,currentTarget:t}}function lm(s,e){for(var t=e+"Capture",i=[];s!==null;){var n=s,r=n.stateNode;n.tag===5&&r!==null&&(n=r,r=f_(s,t),r!=null&&i.unshift(E_(s,r,n)),r=f_(s,e),r!=null&&i.push(E_(s,r,n))),s=s.return}return i}function eh(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function $C(s,e,t,i,n){for(var r=e._reactName,a=[];t!==null&&t!==i;){var o=t,l=o.alternate,u=o.stateNode;if(l!==null&&l===i)break;o.tag===5&&u!==null&&(o=u,n?(l=f_(t,r),l!=null&&a.unshift(E_(t,l,o))):n||(l=f_(t,r),l!=null&&a.push(E_(t,l,o)))),t=t.return}a.length!==0&&s.push({event:e,listeners:a})}var l7=/\r\n?/g,u7=/\u0000|\uFFFD/g;function QC(s){return(typeof s=="string"?s:""+s).replace(l7,`
`).replace(u7,"")}function Bg(s,e,t){if(e=QC(e),QC(s)!==e&&t)throw Error(W(425))}function um(){}var uI=null,hI=null;function cI(s,e){return s==="textarea"||s==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var fI=typeof setTimeout=="function"?setTimeout:void 0,h7=typeof clearTimeout=="function"?clearTimeout:void 0,ZC=typeof Promise=="function"?Promise:void 0,c7=typeof queueMicrotask=="function"?queueMicrotask:typeof ZC<"u"?function(s){return ZC.resolve(null).then(s).catch(f7)}:fI;function f7(s){setTimeout(function(){throw s})}function ny(s,e){var t=e,i=0;do{var n=t.nextSibling;if(s.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"){if(i===0){s.removeChild(n),g_(e);return}i--}else t!=="$"&&t!=="$?"&&t!=="$!"||i++;t=n}while(t);g_(e)}function Vo(s){for(;s!=null;s=s.nextSibling){var e=s.nodeType;if(e===1||e===3)break;if(e===8){if(e=s.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return s}function JC(s){s=s.previousSibling;for(var e=0;s;){if(s.nodeType===8){var t=s.data;if(t==="$"||t==="$!"||t==="$?"){if(e===0)return s;e--}else t==="/$"&&e++}s=s.previousSibling}return null}var _f=Math.random().toString(36).slice(2),Nr="__reactFiber$"+_f,y_="__reactProps$"+_f,Ua="__reactContainer$"+_f,dI="__reactEvents$"+_f,d7="__reactListeners$"+_f,_7="__reactHandles$"+_f;function uu(s){var e=s[Nr];if(e)return e;for(var t=s.parentNode;t;){if(e=t[Ua]||t[Nr]){if(t=e.alternate,e.child!==null||t!==null&&t.child!==null)for(s=JC(s);s!==null;){if(t=s[Nr])return t;s=JC(s)}return e}s=t,t=s.parentNode}return null}function _g(s){return s=s[Nr]||s[Ua],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function mh(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(W(33))}function e0(s){return s[y_]||null}var _I=[],vh=-1;function ol(s){return{current:s}}function Pt(s){0>vh||(s.current=_I[vh],_I[vh]=null,vh--)}function wt(s,e){vh++,_I[vh]=s.current,s.current=e}var Zo={},is=ol(Zo),ks=ol(!1),Cu=Zo;function Uc(s,e){var t=s.type.contextTypes;if(!t)return Zo;var i=s.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var n={},r;for(r in t)n[r]=e[r];return i&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=e,s.__reactInternalMemoizedMaskedChildContext=n),n}function xs(s){return s=s.childContextTypes,s!=null}function hm(){Pt(ks),Pt(is)}function eM(s,e,t){if(is.current!==Zo)throw Error(W(168));wt(is,e),wt(ks,t)}function VL(s,e,t){var i=s.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return t;i=i.getChildContext();for(var n in i)if(!(n in e))throw Error(W(108,ZG(s)||"Unknown",n));return Xt({},t,i)}function cm(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Zo,Cu=is.current,wt(is,s),wt(ks,ks.current),!0}function tM(s,e,t){var i=s.stateNode;if(!i)throw Error(W(169));t?(s=VL(s,e,Cu),i.__reactInternalMemoizedMergedChildContext=s,Pt(ks),Pt(is),wt(is,s)):Pt(ks),wt(ks,t)}var fa=null,t0=!1,ry=!1;function jL(s){fa===null?fa=[s]:fa.push(s)}function g7(s){t0=!0,jL(s)}function ll(){if(!ry&&fa!==null){ry=!0;var s=0,e=Et;try{var t=fa;for(Et=1;s<t.length;s++){var i=t[s];do i=i(!0);while(i!==null)}fa=null,t0=!1}catch(n){throw fa!==null&&(fa=fa.slice(s+1)),dL(CO,ll),n}finally{Et=e,ry=!1}}return null}var Eh=[],yh=0,fm=null,dm=0,An=[],On=0,Mu=null,ya=1,Ta="";function Rl(s,e){Eh[yh++]=dm,Eh[yh++]=fm,fm=s,dm=e}function zL(s,e,t){An[On++]=ya,An[On++]=Ta,An[On++]=Mu,Mu=s;var i=ya;s=Ta;var n=32-Zn(i)-1;i&=~(1<<n),t+=1;var r=32-Zn(e)+n;if(30<r){var a=n-n%5;r=(i&(1<<a)-1).toString(32),i>>=a,n-=a,ya=1<<32-Zn(e)+n|t<<n|i,Ta=r+s}else ya=1<<r|t<<n|i,Ta=s}function FO(s){s.return!==null&&(Rl(s,1),zL(s,1,0))}function BO(s){for(;s===fm;)fm=Eh[--yh],Eh[yh]=null,dm=Eh[--yh],Eh[yh]=null;for(;s===Mu;)Mu=An[--On],An[On]=null,Ta=An[--On],An[On]=null,ya=An[--On],An[On]=null}var nn=null,en=null,Ft=!1,$n=null;function HL(s,e){var t=Cn(5,null,null,0);t.elementType="DELETED",t.stateNode=e,t.return=s,e=s.deletions,e===null?(s.deletions=[t],s.flags|=16):e.push(t)}function iM(s,e){switch(s.tag){case 5:var t=s.type;return e=e.nodeType!==1||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(s.stateNode=e,nn=s,en=Vo(e.firstChild),!0):!1;case 6:return e=s.pendingProps===""||e.nodeType!==3?null:e,e!==null?(s.stateNode=e,nn=s,en=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(t=Mu!==null?{id:ya,overflow:Ta}:null,s.memoizedState={dehydrated:e,treeContext:t,retryLane:1073741824},t=Cn(18,null,null,0),t.stateNode=e,t.return=s,s.child=t,nn=s,en=null,!0):!1;default:return!1}}function gI(s){return(s.mode&1)!==0&&(s.flags&128)===0}function pI(s){if(Ft){var e=en;if(e){var t=e;if(!iM(s,e)){if(gI(s))throw Error(W(418));e=Vo(t.nextSibling);var i=nn;e&&iM(s,e)?HL(i,t):(s.flags=s.flags&-4097|2,Ft=!1,nn=s)}}else{if(gI(s))throw Error(W(418));s.flags=s.flags&-4097|2,Ft=!1,nn=s}}}function sM(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;nn=s}function Gg(s){if(s!==nn)return!1;if(!Ft)return sM(s),Ft=!0,!1;var e;if((e=s.tag!==3)&&!(e=s.tag!==5)&&(e=s.type,e=e!=="head"&&e!=="body"&&!cI(s.type,s.memoizedProps)),e&&(e=en)){if(gI(s))throw WL(),Error(W(418));for(;e;)HL(s,e),e=Vo(e.nextSibling)}if(sM(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(W(317));e:{for(s=s.nextSibling,e=0;s;){if(s.nodeType===8){var t=s.data;if(t==="/$"){if(e===0){en=Vo(s.nextSibling);break e}e--}else t!=="$"&&t!=="$!"&&t!=="$?"||e++}s=s.nextSibling}en=null}}else en=nn?Vo(s.stateNode.nextSibling):null;return!0}function WL(){for(var s=en;s;)s=Vo(s.nextSibling)}function Fc(){en=nn=null,Ft=!1}function GO(s){$n===null?$n=[s]:$n.push(s)}var p7=Ya.ReactCurrentBatchConfig;function Af(s,e,t){if(s=t.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(W(309));var i=t.stateNode}if(!i)throw Error(W(147,s));var n=i,r=""+s;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===r?e.ref:(e=function(a){var o=n.refs;a===null?delete o[r]:o[r]=a},e._stringRef=r,e)}if(typeof s!="string")throw Error(W(284));if(!t._owner)throw Error(W(290,s))}return s}function Vg(s,e){throw s=Object.prototype.toString.call(e),Error(W(31,s==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":s))}function nM(s){var e=s._init;return e(s._payload)}function YL(s){function e(m,v){if(s){var E=m.deletions;E===null?(m.deletions=[v],m.flags|=16):E.push(v)}}function t(m,v){if(!s)return null;for(;v!==null;)e(m,v),v=v.sibling;return null}function i(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function n(m,v){return m=Wo(m,v),m.index=0,m.sibling=null,m}function r(m,v,E){return m.index=E,s?(E=m.alternate,E!==null?(E=E.index,E<v?(m.flags|=2,v):E):(m.flags|=2,v)):(m.flags|=1048576,v)}function a(m){return s&&m.alternate===null&&(m.flags|=2),m}function o(m,v,E,y){return v===null||v.tag!==6?(v=fy(E,m.mode,y),v.return=m,v):(v=n(v,E),v.return=m,v)}function l(m,v,E,y){var T=E.type;return T===dh?c(m,v,E.props.children,y,E.key):v!==null&&(v.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Za&&nM(T)===v.type)?(y=n(v,E.props),y.ref=Af(m,v,E),y.return=m,y):(y=Fp(E.type,E.key,E.props,null,m.mode,y),y.ref=Af(m,v,E),y.return=m,y)}function u(m,v,E,y){return v===null||v.tag!==4||v.stateNode.containerInfo!==E.containerInfo||v.stateNode.implementation!==E.implementation?(v=dy(E,m.mode,y),v.return=m,v):(v=n(v,E.children||[]),v.return=m,v)}function c(m,v,E,y,T){return v===null||v.tag!==7?(v=yu(E,m.mode,y,T),v.return=m,v):(v=n(v,E),v.return=m,v)}function h(m,v,E){if(typeof v=="string"&&v!==""||typeof v=="number")return v=fy(""+v,m.mode,E),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Mg:return E=Fp(v.type,v.key,v.props,null,m.mode,E),E.ref=Af(m,null,v),E.return=m,E;case fh:return v=dy(v,m.mode,E),v.return=m,v;case Za:var y=v._init;return h(m,y(v._payload),E)}if(Bf(v)||Tf(v))return v=yu(v,m.mode,E,null),v.return=m,v;Vg(m,v)}return null}function f(m,v,E,y){var T=v!==null?v.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return T!==null?null:o(m,v,""+E,y);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Mg:return E.key===T?l(m,v,E,y):null;case fh:return E.key===T?u(m,v,E,y):null;case Za:return T=E._init,f(m,v,T(E._payload),y)}if(Bf(E)||Tf(E))return T!==null?null:c(m,v,E,y,null);Vg(m,E)}return null}function d(m,v,E,y,T){if(typeof y=="string"&&y!==""||typeof y=="number")return m=m.get(E)||null,o(v,m,""+y,T);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Mg:return m=m.get(y.key===null?E:y.key)||null,l(v,m,y,T);case fh:return m=m.get(y.key===null?E:y.key)||null,u(v,m,y,T);case Za:var w=y._init;return d(m,v,E,w(y._payload),T)}if(Bf(y)||Tf(y))return m=m.get(E)||null,c(v,m,y,T,null);Vg(v,y)}return null}function _(m,v,E,y){for(var T=null,w=null,C=v,N=v=0,P=null;C!==null&&N<E.length;N++){C.index>N?(P=C,C=null):P=C.sibling;var k=f(m,C,E[N],y);if(k===null){C===null&&(C=P);break}s&&C&&k.alternate===null&&e(m,C),v=r(k,v,N),w===null?T=k:w.sibling=k,w=k,C=P}if(N===E.length)return t(m,C),Ft&&Rl(m,N),T;if(C===null){for(;N<E.length;N++)C=h(m,E[N],y),C!==null&&(v=r(C,v,N),w===null?T=C:w.sibling=C,w=C);return Ft&&Rl(m,N),T}for(C=i(m,C);N<E.length;N++)P=d(C,m,N,E[N],y),P!==null&&(s&&P.alternate!==null&&C.delete(P.key===null?N:P.key),v=r(P,v,N),w===null?T=P:w.sibling=P,w=P);return s&&C.forEach(function(L){return e(m,L)}),Ft&&Rl(m,N),T}function g(m,v,E,y){var T=Tf(E);if(typeof T!="function")throw Error(W(150));if(E=T.call(E),E==null)throw Error(W(151));for(var w=T=null,C=v,N=v=0,P=null,k=E.next();C!==null&&!k.done;N++,k=E.next()){C.index>N?(P=C,C=null):P=C.sibling;var L=f(m,C,k.value,y);if(L===null){C===null&&(C=P);break}s&&C&&L.alternate===null&&e(m,C),v=r(L,v,N),w===null?T=L:w.sibling=L,w=L,C=P}if(k.done)return t(m,C),Ft&&Rl(m,N),T;if(C===null){for(;!k.done;N++,k=E.next())k=h(m,k.value,y),k!==null&&(v=r(k,v,N),w===null?T=k:w.sibling=k,w=k);return Ft&&Rl(m,N),T}for(C=i(m,C);!k.done;N++,k=E.next())k=d(C,m,N,k.value,y),k!==null&&(s&&k.alternate!==null&&C.delete(k.key===null?N:k.key),v=r(k,v,N),w===null?T=k:w.sibling=k,w=k);return s&&C.forEach(function(j){return e(m,j)}),Ft&&Rl(m,N),T}function p(m,v,E,y){if(typeof E=="object"&&E!==null&&E.type===dh&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Mg:e:{for(var T=E.key,w=v;w!==null;){if(w.key===T){if(T=E.type,T===dh){if(w.tag===7){t(m,w.sibling),v=n(w,E.props.children),v.return=m,m=v;break e}}else if(w.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Za&&nM(T)===w.type){t(m,w.sibling),v=n(w,E.props),v.ref=Af(m,w,E),v.return=m,m=v;break e}t(m,w);break}else e(m,w);w=w.sibling}E.type===dh?(v=yu(E.props.children,m.mode,y,E.key),v.return=m,m=v):(y=Fp(E.type,E.key,E.props,null,m.mode,y),y.ref=Af(m,v,E),y.return=m,m=y)}return a(m);case fh:e:{for(w=E.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){t(m,v.sibling),v=n(v,E.children||[]),v.return=m,m=v;break e}else{t(m,v);break}else e(m,v);v=v.sibling}v=dy(E,m.mode,y),v.return=m,m=v}return a(m);case Za:return w=E._init,p(m,v,w(E._payload),y)}if(Bf(E))return _(m,v,E,y);if(Tf(E))return g(m,v,E,y);Vg(m,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,v!==null&&v.tag===6?(t(m,v.sibling),v=n(v,E),v.return=m,m=v):(t(m,v),v=fy(E,m.mode,y),v.return=m,m=v),a(m)):t(m,v)}return p}var Bc=YL(!0),XL=YL(!1),_m=ol(null),gm=null,Th=null,VO=null;function jO(){VO=Th=gm=null}function zO(s){var e=_m.current;Pt(_m),s._currentValue=e}function mI(s,e,t){for(;s!==null;){var i=s.alternate;if((s.childLanes&e)!==e?(s.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),s===t)break;s=s.return}}function Oc(s,e){gm=s,VO=Th=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&e&&(Ps=!0),s.firstContext=null)}function kn(s){var e=s._currentValue;if(VO!==s)if(s={context:s,memoizedValue:e,next:null},Th===null){if(gm===null)throw Error(W(308));Th=s,gm.dependencies={lanes:0,firstContext:s}}else Th=Th.next=s;return e}var hu=null;function HO(s){hu===null?hu=[s]:hu.push(s)}function KL(s,e,t,i){var n=e.interleaved;return n===null?(t.next=t,HO(e)):(t.next=n.next,n.next=t),e.interleaved=t,Fa(s,i)}function Fa(s,e){s.lanes|=e;var t=s.alternate;for(t!==null&&(t.lanes|=e),t=s,s=s.return;s!==null;)s.childLanes|=e,t=s.alternate,t!==null&&(t.childLanes|=e),t=s,s=s.return;return t.tag===3?t.stateNode:null}var Ja=!1;function WO(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qL(s,e){s=s.updateQueue,e.updateQueue===s&&(e.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Na(s,e){return{eventTime:s,lane:e,tag:0,payload:null,callback:null,next:null}}function jo(s,e,t){var i=s.updateQueue;if(i===null)return null;if(i=i.shared,ut&2){var n=i.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),i.pending=e,Fa(s,t)}return n=i.interleaved,n===null?(e.next=e,HO(i)):(e.next=n.next,n.next=e),i.interleaved=e,Fa(s,t)}function Pp(s,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194240)!==0)){var i=e.lanes;i&=s.pendingLanes,t|=i,e.lanes=t,MO(s,t)}}function rM(s,e){var t=s.updateQueue,i=s.alternate;if(i!==null&&(i=i.updateQueue,t===i)){var n=null,r=null;if(t=t.firstBaseUpdate,t!==null){do{var a={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};r===null?n=r=a:r=r.next=a,t=t.next}while(t!==null);r===null?n=r=e:r=r.next=e}else n=r=e;t={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:r,shared:i.shared,effects:i.effects},s.updateQueue=t;return}s=t.lastBaseUpdate,s===null?t.firstBaseUpdate=e:s.next=e,t.lastBaseUpdate=e}function pm(s,e,t,i){var n=s.updateQueue;Ja=!1;var r=n.firstBaseUpdate,a=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var l=o,u=l.next;l.next=null,a===null?r=u:a.next=u,a=l;var c=s.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==a&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(r!==null){var h=n.baseState;a=0,c=u=l=null,o=r;do{var f=o.lane,d=o.eventTime;if((i&f)===f){c!==null&&(c=c.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var _=s,g=o;switch(f=e,d=t,g.tag){case 1:if(_=g.payload,typeof _=="function"){h=_.call(d,h,f);break e}h=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=g.payload,f=typeof _=="function"?_.call(d,h,f):_,f==null)break e;h=Xt({},h,f);break e;case 2:Ja=!0}}o.callback!==null&&o.lane!==0&&(s.flags|=64,f=n.effects,f===null?n.effects=[o]:f.push(o))}else d={eventTime:d,lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=d,l=h):c=c.next=d,a|=f;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;f=o,o=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(c===null&&(l=h),n.baseState=l,n.firstBaseUpdate=u,n.lastBaseUpdate=c,e=n.shared.interleaved,e!==null){n=e;do a|=n.lane,n=n.next;while(n!==e)}else r===null&&(n.shared.lanes=0);Pu|=a,s.lanes=a,s.memoizedState=h}}function aM(s,e,t){if(s=e.effects,e.effects=null,s!==null)for(e=0;e<s.length;e++){var i=s[e],n=i.callback;if(n!==null){if(i.callback=null,i=t,typeof n!="function")throw Error(W(191,n));n.call(i)}}}var gg={},Dr=ol(gg),T_=ol(gg),I_=ol(gg);function cu(s){if(s===gg)throw Error(W(174));return s}function YO(s,e){switch(wt(I_,e),wt(T_,s),wt(Dr,gg),s=e.nodeType,s){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:QT(null,"");break;default:s=s===8?e.parentNode:e,e=s.namespaceURI||null,s=s.tagName,e=QT(e,s)}Pt(Dr),wt(Dr,e)}function Gc(){Pt(Dr),Pt(T_),Pt(I_)}function $L(s){cu(I_.current);var e=cu(Dr.current),t=QT(e,s.type);e!==t&&(wt(T_,s),wt(Dr,t))}function XO(s){T_.current===s&&(Pt(Dr),Pt(T_))}var jt=ol(0);function mm(s){for(var e=s;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===s)break;for(;e.sibling===null;){if(e.return===null||e.return===s)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ay=[];function KO(){for(var s=0;s<ay.length;s++)ay[s]._workInProgressVersionPrimary=null;ay.length=0}var kp=Ya.ReactCurrentDispatcher,oy=Ya.ReactCurrentBatchConfig,Nu=0,Wt=null,Ei=null,Oi=null,vm=!1,Jf=!1,R_=0,m7=0;function Wi(){throw Error(W(321))}function qO(s,e){if(e===null)return!1;for(var t=0;t<e.length&&t<s.length;t++)if(!sr(s[t],e[t]))return!1;return!0}function $O(s,e,t,i,n,r){if(Nu=r,Wt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,kp.current=s===null||s.memoizedState===null?T7:I7,s=t(i,n),Jf){r=0;do{if(Jf=!1,R_=0,25<=r)throw Error(W(301));r+=1,Oi=Ei=null,e.updateQueue=null,kp.current=R7,s=t(i,n)}while(Jf)}if(kp.current=Em,e=Ei!==null&&Ei.next!==null,Nu=0,Oi=Ei=Wt=null,vm=!1,e)throw Error(W(300));return s}function QO(){var s=R_!==0;return R_=0,s}function ur(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oi===null?Wt.memoizedState=Oi=s:Oi=Oi.next=s,Oi}function xn(){if(Ei===null){var s=Wt.alternate;s=s!==null?s.memoizedState:null}else s=Ei.next;var e=Oi===null?Wt.memoizedState:Oi.next;if(e!==null)Oi=e,Ei=s;else{if(s===null)throw Error(W(310));Ei=s,s={memoizedState:Ei.memoizedState,baseState:Ei.baseState,baseQueue:Ei.baseQueue,queue:Ei.queue,next:null},Oi===null?Wt.memoizedState=Oi=s:Oi=Oi.next=s}return Oi}function S_(s,e){return typeof e=="function"?e(s):e}function ly(s){var e=xn(),t=e.queue;if(t===null)throw Error(W(311));t.lastRenderedReducer=s;var i=Ei,n=i.baseQueue,r=t.pending;if(r!==null){if(n!==null){var a=n.next;n.next=r.next,r.next=a}i.baseQueue=n=r,t.pending=null}if(n!==null){r=n.next,i=i.baseState;var o=a=null,l=null,u=r;do{var c=u.lane;if((Nu&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:s(i,u.action);else{var h={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=h,a=i):l=l.next=h,Wt.lanes|=c,Pu|=c}u=u.next}while(u!==null&&u!==r);l===null?a=i:l.next=o,sr(i,e.memoizedState)||(Ps=!0),e.memoizedState=i,e.baseState=a,e.baseQueue=l,t.lastRenderedState=i}if(s=t.interleaved,s!==null){n=s;do r=n.lane,Wt.lanes|=r,Pu|=r,n=n.next;while(n!==s)}else n===null&&(t.lanes=0);return[e.memoizedState,t.dispatch]}function uy(s){var e=xn(),t=e.queue;if(t===null)throw Error(W(311));t.lastRenderedReducer=s;var i=t.dispatch,n=t.pending,r=e.memoizedState;if(n!==null){t.pending=null;var a=n=n.next;do r=s(r,a.action),a=a.next;while(a!==n);sr(r,e.memoizedState)||(Ps=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),t.lastRenderedState=r}return[r,i]}function QL(){}function ZL(s,e){var t=Wt,i=xn(),n=e(),r=!sr(i.memoizedState,n);if(r&&(i.memoizedState=n,Ps=!0),i=i.queue,ZO(t3.bind(null,t,i,s),[s]),i.getSnapshot!==e||r||Oi!==null&&Oi.memoizedState.tag&1){if(t.flags|=2048,b_(9,e3.bind(null,t,i,n,e),void 0,null),Mi===null)throw Error(W(349));Nu&30||JL(t,e,n)}return n}function JL(s,e,t){s.flags|=16384,s={getSnapshot:e,value:t},e=Wt.updateQueue,e===null?(e={lastEffect:null,stores:null},Wt.updateQueue=e,e.stores=[s]):(t=e.stores,t===null?e.stores=[s]:t.push(s))}function e3(s,e,t,i){e.value=t,e.getSnapshot=i,i3(e)&&s3(s)}function t3(s,e,t){return t(function(){i3(e)&&s3(s)})}function i3(s){var e=s.getSnapshot;s=s.value;try{var t=e();return!sr(s,t)}catch{return!0}}function s3(s){var e=Fa(s,1);e!==null&&Jn(e,s,1,-1)}function oM(s){var e=ur();return typeof s=="function"&&(s=s()),e.memoizedState=e.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:S_,lastRenderedState:s},e.queue=s,s=s.dispatch=y7.bind(null,Wt,s),[e.memoizedState,s]}function b_(s,e,t,i){return s={tag:s,create:e,destroy:t,deps:i,next:null},e=Wt.updateQueue,e===null?(e={lastEffect:null,stores:null},Wt.updateQueue=e,e.lastEffect=s.next=s):(t=e.lastEffect,t===null?e.lastEffect=s.next=s:(i=t.next,t.next=s,s.next=i,e.lastEffect=s)),s}function n3(){return xn().memoizedState}function xp(s,e,t,i){var n=ur();Wt.flags|=s,n.memoizedState=b_(1|e,t,void 0,i===void 0?null:i)}function i0(s,e,t,i){var n=xn();i=i===void 0?null:i;var r=void 0;if(Ei!==null){var a=Ei.memoizedState;if(r=a.destroy,i!==null&&qO(i,a.deps)){n.memoizedState=b_(e,t,r,i);return}}Wt.flags|=s,n.memoizedState=b_(1|e,t,r,i)}function lM(s,e){return xp(8390656,8,s,e)}function ZO(s,e){return i0(2048,8,s,e)}function r3(s,e){return i0(4,2,s,e)}function a3(s,e){return i0(4,4,s,e)}function o3(s,e){if(typeof e=="function")return s=s(),e(s),function(){e(null)};if(e!=null)return s=s(),e.current=s,function(){e.current=null}}function l3(s,e,t){return t=t!=null?t.concat([s]):null,i0(4,4,o3.bind(null,e,s),t)}function JO(){}function u3(s,e){var t=xn();e=e===void 0?null:e;var i=t.memoizedState;return i!==null&&e!==null&&qO(e,i[1])?i[0]:(t.memoizedState=[s,e],s)}function h3(s,e){var t=xn();e=e===void 0?null:e;var i=t.memoizedState;return i!==null&&e!==null&&qO(e,i[1])?i[0]:(s=s(),t.memoizedState=[s,e],s)}function c3(s,e,t){return Nu&21?(sr(t,e)||(t=pL(),Wt.lanes|=t,Pu|=t,s.baseState=!0),e):(s.baseState&&(s.baseState=!1,Ps=!0),s.memoizedState=t)}function v7(s,e){var t=Et;Et=t!==0&&4>t?t:4,s(!0);var i=oy.transition;oy.transition={};try{s(!1),e()}finally{Et=t,oy.transition=i}}function f3(){return xn().memoizedState}function E7(s,e,t){var i=Ho(s);if(t={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null},d3(s))_3(e,t);else if(t=KL(s,e,t,i),t!==null){var n=gs();Jn(t,s,i,n),g3(t,e,i)}}function y7(s,e,t){var i=Ho(s),n={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null};if(d3(s))_3(e,n);else{var r=s.alternate;if(s.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var a=e.lastRenderedState,o=r(a,t);if(n.hasEagerState=!0,n.eagerState=o,sr(o,a)){var l=e.interleaved;l===null?(n.next=n,HO(e)):(n.next=l.next,l.next=n),e.interleaved=n;return}}catch{}finally{}t=KL(s,e,n,i),t!==null&&(n=gs(),Jn(t,s,i,n),g3(t,e,i))}}function d3(s){var e=s.alternate;return s===Wt||e!==null&&e===Wt}function _3(s,e){Jf=vm=!0;var t=s.pending;t===null?e.next=e:(e.next=t.next,t.next=e),s.pending=e}function g3(s,e,t){if(t&4194240){var i=e.lanes;i&=s.pendingLanes,t|=i,e.lanes=t,MO(s,t)}}var Em={readContext:kn,useCallback:Wi,useContext:Wi,useEffect:Wi,useImperativeHandle:Wi,useInsertionEffect:Wi,useLayoutEffect:Wi,useMemo:Wi,useReducer:Wi,useRef:Wi,useState:Wi,useDebugValue:Wi,useDeferredValue:Wi,useTransition:Wi,useMutableSource:Wi,useSyncExternalStore:Wi,useId:Wi,unstable_isNewReconciler:!1},T7={readContext:kn,useCallback:function(s,e){return ur().memoizedState=[s,e===void 0?null:e],s},useContext:kn,useEffect:lM,useImperativeHandle:function(s,e,t){return t=t!=null?t.concat([s]):null,xp(4194308,4,o3.bind(null,e,s),t)},useLayoutEffect:function(s,e){return xp(4194308,4,s,e)},useInsertionEffect:function(s,e){return xp(4,2,s,e)},useMemo:function(s,e){var t=ur();return e=e===void 0?null:e,s=s(),t.memoizedState=[s,e],s},useReducer:function(s,e,t){var i=ur();return e=t!==void 0?t(e):e,i.memoizedState=i.baseState=e,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:e},i.queue=s,s=s.dispatch=E7.bind(null,Wt,s),[i.memoizedState,s]},useRef:function(s){var e=ur();return s={current:s},e.memoizedState=s},useState:oM,useDebugValue:JO,useDeferredValue:function(s){return ur().memoizedState=s},useTransition:function(){var s=oM(!1),e=s[0];return s=v7.bind(null,s[1]),ur().memoizedState=s,[e,s]},useMutableSource:function(){},useSyncExternalStore:function(s,e,t){var i=Wt,n=ur();if(Ft){if(t===void 0)throw Error(W(407));t=t()}else{if(t=e(),Mi===null)throw Error(W(349));Nu&30||JL(i,e,t)}n.memoizedState=t;var r={value:t,getSnapshot:e};return n.queue=r,lM(t3.bind(null,i,r,s),[s]),i.flags|=2048,b_(9,e3.bind(null,i,r,t,e),void 0,null),t},useId:function(){var s=ur(),e=Mi.identifierPrefix;if(Ft){var t=Ta,i=ya;t=(i&~(1<<32-Zn(i)-1)).toString(32)+t,e=":"+e+"R"+t,t=R_++,0<t&&(e+="H"+t.toString(32)),e+=":"}else t=m7++,e=":"+e+"r"+t.toString(32)+":";return s.memoizedState=e},unstable_isNewReconciler:!1},I7={readContext:kn,useCallback:u3,useContext:kn,useEffect:ZO,useImperativeHandle:l3,useInsertionEffect:r3,useLayoutEffect:a3,useMemo:h3,useReducer:ly,useRef:n3,useState:function(){return ly(S_)},useDebugValue:JO,useDeferredValue:function(s){var e=xn();return c3(e,Ei.memoizedState,s)},useTransition:function(){var s=ly(S_)[0],e=xn().memoizedState;return[s,e]},useMutableSource:QL,useSyncExternalStore:ZL,useId:f3,unstable_isNewReconciler:!1},R7={readContext:kn,useCallback:u3,useContext:kn,useEffect:ZO,useImperativeHandle:l3,useInsertionEffect:r3,useLayoutEffect:a3,useMemo:h3,useReducer:uy,useRef:n3,useState:function(){return uy(S_)},useDebugValue:JO,useDeferredValue:function(s){var e=xn();return Ei===null?e.memoizedState=s:c3(e,Ei.memoizedState,s)},useTransition:function(){var s=uy(S_)[0],e=xn().memoizedState;return[s,e]},useMutableSource:QL,useSyncExternalStore:ZL,useId:f3,unstable_isNewReconciler:!1};function Xn(s,e){if(s&&s.defaultProps){e=Xt({},e),s=s.defaultProps;for(var t in s)e[t]===void 0&&(e[t]=s[t]);return e}return e}function vI(s,e,t,i){e=s.memoizedState,t=t(i,e),t=t==null?e:Xt({},e,t),s.memoizedState=t,s.lanes===0&&(s.updateQueue.baseState=t)}var s0={isMounted:function(s){return(s=s._reactInternals)?Xu(s)===s:!1},enqueueSetState:function(s,e,t){s=s._reactInternals;var i=gs(),n=Ho(s),r=Na(i,n);r.payload=e,t!=null&&(r.callback=t),e=jo(s,r,n),e!==null&&(Jn(e,s,n,i),Pp(e,s,n))},enqueueReplaceState:function(s,e,t){s=s._reactInternals;var i=gs(),n=Ho(s),r=Na(i,n);r.tag=1,r.payload=e,t!=null&&(r.callback=t),e=jo(s,r,n),e!==null&&(Jn(e,s,n,i),Pp(e,s,n))},enqueueForceUpdate:function(s,e){s=s._reactInternals;var t=gs(),i=Ho(s),n=Na(t,i);n.tag=2,e!=null&&(n.callback=e),e=jo(s,n,i),e!==null&&(Jn(e,s,i,t),Pp(e,s,i))}};function uM(s,e,t,i,n,r,a){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(i,r,a):e.prototype&&e.prototype.isPureReactComponent?!m_(t,i)||!m_(n,r):!0}function p3(s,e,t){var i=!1,n=Zo,r=e.contextType;return typeof r=="object"&&r!==null?r=kn(r):(n=xs(e)?Cu:is.current,i=e.contextTypes,r=(i=i!=null)?Uc(s,n):Zo),e=new e(t,r),s.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=s0,s.stateNode=e,e._reactInternals=s,i&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=n,s.__reactInternalMemoizedMaskedChildContext=r),e}function hM(s,e,t,i){s=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(t,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(t,i),e.state!==s&&s0.enqueueReplaceState(e,e.state,null)}function EI(s,e,t,i){var n=s.stateNode;n.props=t,n.state=s.memoizedState,n.refs={},WO(s);var r=e.contextType;typeof r=="object"&&r!==null?n.context=kn(r):(r=xs(e)?Cu:is.current,n.context=Uc(s,r)),n.state=s.memoizedState,r=e.getDerivedStateFromProps,typeof r=="function"&&(vI(s,e,r,t),n.state=s.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(e=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),e!==n.state&&s0.enqueueReplaceState(n,n.state,null),pm(s,t,n,i),n.state=s.memoizedState),typeof n.componentDidMount=="function"&&(s.flags|=4194308)}function Vc(s,e){try{var t="",i=e;do t+=QG(i),i=i.return;while(i);var n=t}catch(r){n=`
Error generating stack: `+r.message+`
`+r.stack}return{value:s,source:e,stack:n,digest:null}}function hy(s,e,t){return{value:s,source:null,stack:t??null,digest:e??null}}function yI(s,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var S7=typeof WeakMap=="function"?WeakMap:Map;function m3(s,e,t){t=Na(-1,t),t.tag=3,t.payload={element:null};var i=e.value;return t.callback=function(){Tm||(Tm=!0,MI=i),yI(s,e)},t}function v3(s,e,t){t=Na(-1,t),t.tag=3;var i=s.type.getDerivedStateFromError;if(typeof i=="function"){var n=e.value;t.payload=function(){return i(n)},t.callback=function(){yI(s,e)}}var r=s.stateNode;return r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){yI(s,e),typeof i!="function"&&(zo===null?zo=new Set([this]):zo.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),t}function cM(s,e,t){var i=s.pingCache;if(i===null){i=s.pingCache=new S7;var n=new Set;i.set(e,n)}else n=i.get(e),n===void 0&&(n=new Set,i.set(e,n));n.has(t)||(n.add(t),s=F7.bind(null,s,e,t),e.then(s,s))}function fM(s){do{var e;if((e=s.tag===13)&&(e=s.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return s;s=s.return}while(s!==null);return null}function dM(s,e,t,i,n){return s.mode&1?(s.flags|=65536,s.lanes=n,s):(s===e?s.flags|=65536:(s.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(e=Na(-1,1),e.tag=2,jo(t,e,1))),t.lanes|=1),s)}var b7=Ya.ReactCurrentOwner,Ps=!1;function ds(s,e,t,i){e.child=s===null?XL(e,null,t,i):Bc(e,s.child,t,i)}function _M(s,e,t,i,n){t=t.render;var r=e.ref;return Oc(e,n),i=$O(s,e,t,i,r,n),t=QO(),s!==null&&!Ps?(e.updateQueue=s.updateQueue,e.flags&=-2053,s.lanes&=~n,Ba(s,e,n)):(Ft&&t&&FO(e),e.flags|=1,ds(s,e,i,n),e.child)}function gM(s,e,t,i,n){if(s===null){var r=t.type;return typeof r=="function"&&!ow(r)&&r.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=r,E3(s,e,r,i,n)):(s=Fp(t.type,null,i,e,e.mode,n),s.ref=e.ref,s.return=e,e.child=s)}if(r=s.child,!(s.lanes&n)){var a=r.memoizedProps;if(t=t.compare,t=t!==null?t:m_,t(a,i)&&s.ref===e.ref)return Ba(s,e,n)}return e.flags|=1,s=Wo(r,i),s.ref=e.ref,s.return=e,e.child=s}function E3(s,e,t,i,n){if(s!==null){var r=s.memoizedProps;if(m_(r,i)&&s.ref===e.ref)if(Ps=!1,e.pendingProps=i=r,(s.lanes&n)!==0)s.flags&131072&&(Ps=!0);else return e.lanes=s.lanes,Ba(s,e,n)}return TI(s,e,t,i,n)}function y3(s,e,t){var i=e.pendingProps,n=i.children,r=s!==null?s.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},wt(Rh,qs),qs|=t;else{if(!(t&1073741824))return s=r!==null?r.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:s,cachePool:null,transitions:null},e.updateQueue=null,wt(Rh,qs),qs|=s,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=r!==null?r.baseLanes:t,wt(Rh,qs),qs|=i}else r!==null?(i=r.baseLanes|t,e.memoizedState=null):i=t,wt(Rh,qs),qs|=i;return ds(s,e,n,t),e.child}function T3(s,e){var t=e.ref;(s===null&&t!==null||s!==null&&s.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function TI(s,e,t,i,n){var r=xs(t)?Cu:is.current;return r=Uc(e,r),Oc(e,n),t=$O(s,e,t,i,r,n),i=QO(),s!==null&&!Ps?(e.updateQueue=s.updateQueue,e.flags&=-2053,s.lanes&=~n,Ba(s,e,n)):(Ft&&i&&FO(e),e.flags|=1,ds(s,e,t,n),e.child)}function pM(s,e,t,i,n){if(xs(t)){var r=!0;cm(e)}else r=!1;if(Oc(e,n),e.stateNode===null)Dp(s,e),p3(e,t,i),EI(e,t,i,n),i=!0;else if(s===null){var a=e.stateNode,o=e.memoizedProps;a.props=o;var l=a.context,u=t.contextType;typeof u=="object"&&u!==null?u=kn(u):(u=xs(t)?Cu:is.current,u=Uc(e,u));var c=t.getDerivedStateFromProps,h=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==i||l!==u)&&hM(e,a,i,u),Ja=!1;var f=e.memoizedState;a.state=f,pm(e,i,a,n),l=e.memoizedState,o!==i||f!==l||ks.current||Ja?(typeof c=="function"&&(vI(e,t,c,i),l=e.memoizedState),(o=Ja||uM(e,t,o,i,f,l,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=l),a.props=i,a.state=l,a.context=u,i=o):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{a=e.stateNode,qL(s,e),o=e.memoizedProps,u=e.type===e.elementType?o:Xn(e.type,o),a.props=u,h=e.pendingProps,f=a.context,l=t.contextType,typeof l=="object"&&l!==null?l=kn(l):(l=xs(t)?Cu:is.current,l=Uc(e,l));var d=t.getDerivedStateFromProps;(c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==h||f!==l)&&hM(e,a,i,l),Ja=!1,f=e.memoizedState,a.state=f,pm(e,i,a,n);var _=e.memoizedState;o!==h||f!==_||ks.current||Ja?(typeof d=="function"&&(vI(e,t,d,i),_=e.memoizedState),(u=Ja||uM(e,t,u,i,f,_,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,_,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,_,l)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===s.memoizedProps&&f===s.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===s.memoizedProps&&f===s.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=_),a.props=i,a.state=_,a.context=l,i=u):(typeof a.componentDidUpdate!="function"||o===s.memoizedProps&&f===s.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===s.memoizedProps&&f===s.memoizedState||(e.flags|=1024),i=!1)}return II(s,e,t,i,r,n)}function II(s,e,t,i,n,r){T3(s,e);var a=(e.flags&128)!==0;if(!i&&!a)return n&&tM(e,t,!1),Ba(s,e,r);i=e.stateNode,b7.current=e;var o=a&&typeof t.getDerivedStateFromError!="function"?null:i.render();return e.flags|=1,s!==null&&a?(e.child=Bc(e,s.child,null,r),e.child=Bc(e,null,o,r)):ds(s,e,o,r),e.memoizedState=i.state,n&&tM(e,t,!0),e.child}function I3(s){var e=s.stateNode;e.pendingContext?eM(s,e.pendingContext,e.pendingContext!==e.context):e.context&&eM(s,e.context,!1),YO(s,e.containerInfo)}function mM(s,e,t,i,n){return Fc(),GO(n),e.flags|=256,ds(s,e,t,i),e.child}var RI={dehydrated:null,treeContext:null,retryLane:0};function SI(s){return{baseLanes:s,cachePool:null,transitions:null}}function R3(s,e,t){var i=e.pendingProps,n=jt.current,r=!1,a=(e.flags&128)!==0,o;if((o=a)||(o=s!==null&&s.memoizedState===null?!1:(n&2)!==0),o?(r=!0,e.flags&=-129):(s===null||s.memoizedState!==null)&&(n|=1),wt(jt,n&1),s===null)return pI(e),s=e.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(e.mode&1?s.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=i.children,s=i.fallback,r?(i=e.mode,r=e.child,a={mode:"hidden",children:a},!(i&1)&&r!==null?(r.childLanes=0,r.pendingProps=a):r=a0(a,i,0,null),s=yu(s,i,t,null),r.return=e,s.return=e,r.sibling=s,e.child=r,e.child.memoizedState=SI(t),e.memoizedState=RI,s):ew(e,a));if(n=s.memoizedState,n!==null&&(o=n.dehydrated,o!==null))return A7(s,e,a,i,o,n,t);if(r){r=i.fallback,a=e.mode,n=s.child,o=n.sibling;var l={mode:"hidden",children:i.children};return!(a&1)&&e.child!==n?(i=e.child,i.childLanes=0,i.pendingProps=l,e.deletions=null):(i=Wo(n,l),i.subtreeFlags=n.subtreeFlags&14680064),o!==null?r=Wo(o,r):(r=yu(r,a,t,null),r.flags|=2),r.return=e,i.return=e,i.sibling=r,e.child=i,i=r,r=e.child,a=s.child.memoizedState,a=a===null?SI(t):{baseLanes:a.baseLanes|t,cachePool:null,transitions:a.transitions},r.memoizedState=a,r.childLanes=s.childLanes&~t,e.memoizedState=RI,i}return r=s.child,s=r.sibling,i=Wo(r,{mode:"visible",children:i.children}),!(e.mode&1)&&(i.lanes=t),i.return=e,i.sibling=null,s!==null&&(t=e.deletions,t===null?(e.deletions=[s],e.flags|=16):t.push(s)),e.child=i,e.memoizedState=null,i}function ew(s,e){return e=a0({mode:"visible",children:e},s.mode,0,null),e.return=s,s.child=e}function jg(s,e,t,i){return i!==null&&GO(i),Bc(e,s.child,null,t),s=ew(e,e.pendingProps.children),s.flags|=2,e.memoizedState=null,s}function A7(s,e,t,i,n,r,a){if(t)return e.flags&256?(e.flags&=-257,i=hy(Error(W(422))),jg(s,e,a,i)):e.memoizedState!==null?(e.child=s.child,e.flags|=128,null):(r=i.fallback,n=e.mode,i=a0({mode:"visible",children:i.children},n,0,null),r=yu(r,n,a,null),r.flags|=2,i.return=e,r.return=e,i.sibling=r,e.child=i,e.mode&1&&Bc(e,s.child,null,a),e.child.memoizedState=SI(a),e.memoizedState=RI,r);if(!(e.mode&1))return jg(s,e,a,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var o=i.dgst;return i=o,r=Error(W(419)),i=hy(r,i,void 0),jg(s,e,a,i)}if(o=(a&s.childLanes)!==0,Ps||o){if(i=Mi,i!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(i.suspendedLanes|a)?0:n,n!==0&&n!==r.retryLane&&(r.retryLane=n,Fa(s,n),Jn(i,s,n,-1))}return aw(),i=hy(Error(W(421))),jg(s,e,a,i)}return n.data==="$?"?(e.flags|=128,e.child=s.child,e=B7.bind(null,s),n._reactRetry=e,null):(s=r.treeContext,en=Vo(n.nextSibling),nn=e,Ft=!0,$n=null,s!==null&&(An[On++]=ya,An[On++]=Ta,An[On++]=Mu,ya=s.id,Ta=s.overflow,Mu=e),e=ew(e,i.children),e.flags|=4096,e)}function vM(s,e,t){s.lanes|=e;var i=s.alternate;i!==null&&(i.lanes|=e),mI(s.return,e,t)}function cy(s,e,t,i,n){var r=s.memoizedState;r===null?s.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:t,tailMode:n}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=t,r.tailMode=n)}function S3(s,e,t){var i=e.pendingProps,n=i.revealOrder,r=i.tail;if(ds(s,e,i.children,t),i=jt.current,i&2)i=i&1|2,e.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=e.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&vM(s,t,e);else if(s.tag===19)vM(s,t,e);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break e;for(;s.sibling===null;){if(s.return===null||s.return===e)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}i&=1}if(wt(jt,i),!(e.mode&1))e.memoizedState=null;else switch(n){case"forwards":for(t=e.child,n=null;t!==null;)s=t.alternate,s!==null&&mm(s)===null&&(n=t),t=t.sibling;t=n,t===null?(n=e.child,e.child=null):(n=t.sibling,t.sibling=null),cy(e,!1,n,t,r);break;case"backwards":for(t=null,n=e.child,e.child=null;n!==null;){if(s=n.alternate,s!==null&&mm(s)===null){e.child=n;break}s=n.sibling,n.sibling=t,t=n,n=s}cy(e,!0,t,null,r);break;case"together":cy(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Dp(s,e){!(e.mode&1)&&s!==null&&(s.alternate=null,e.alternate=null,e.flags|=2)}function Ba(s,e,t){if(s!==null&&(e.dependencies=s.dependencies),Pu|=e.lanes,!(t&e.childLanes))return null;if(s!==null&&e.child!==s.child)throw Error(W(153));if(e.child!==null){for(s=e.child,t=Wo(s,s.pendingProps),e.child=t,t.return=e;s.sibling!==null;)s=s.sibling,t=t.sibling=Wo(s,s.pendingProps),t.return=e;t.sibling=null}return e.child}function O7(s,e,t){switch(e.tag){case 3:I3(e),Fc();break;case 5:$L(e);break;case 1:xs(e.type)&&cm(e);break;case 4:YO(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,n=e.memoizedProps.value;wt(_m,i._currentValue),i._currentValue=n;break;case 13:if(i=e.memoizedState,i!==null)return i.dehydrated!==null?(wt(jt,jt.current&1),e.flags|=128,null):t&e.child.childLanes?R3(s,e,t):(wt(jt,jt.current&1),s=Ba(s,e,t),s!==null?s.sibling:null);wt(jt,jt.current&1);break;case 19:if(i=(t&e.childLanes)!==0,s.flags&128){if(i)return S3(s,e,t);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),wt(jt,jt.current),i)break;return null;case 22:case 23:return e.lanes=0,y3(s,e,t)}return Ba(s,e,t)}var b3,bI,A3,O3;b3=function(s,e){for(var t=e.child;t!==null;){if(t.tag===5||t.tag===6)s.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};bI=function(){};A3=function(s,e,t,i){var n=s.memoizedProps;if(n!==i){s=e.stateNode,cu(Dr.current);var r=null;switch(t){case"input":n=XT(s,n),i=XT(s,i),r=[];break;case"select":n=Xt({},n,{value:void 0}),i=Xt({},i,{value:void 0}),r=[];break;case"textarea":n=$T(s,n),i=$T(s,i),r=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(s.onclick=um)}ZT(t,i);var a;t=null;for(u in n)if(!i.hasOwnProperty(u)&&n.hasOwnProperty(u)&&n[u]!=null)if(u==="style"){var o=n[u];for(a in o)o.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(h_.hasOwnProperty(u)?r||(r=[]):(r=r||[]).push(u,null));for(u in i){var l=i[u];if(o=n!=null?n[u]:void 0,i.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(a in o)!o.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in l)l.hasOwnProperty(a)&&o[a]!==l[a]&&(t||(t={}),t[a]=l[a])}else t||(r||(r=[]),r.push(u,t)),t=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(r=r||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(r=r||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(h_.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Mt("scroll",s),r||o===l||(r=[])):(r=r||[]).push(u,l))}t&&(r=r||[]).push("style",t);var u=r;(e.updateQueue=u)&&(e.flags|=4)}};O3=function(s,e,t,i){t!==i&&(e.flags|=4)};function Of(s,e){if(!Ft)switch(s.tailMode){case"hidden":e=s.tail;for(var t=null;e!==null;)e.alternate!==null&&(t=e),e=e.sibling;t===null?s.tail=null:t.sibling=null;break;case"collapsed":t=s.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e||s.tail===null?s.tail=null:s.tail.sibling=null:i.sibling=null}}function Yi(s){var e=s.alternate!==null&&s.alternate.child===s.child,t=0,i=0;if(e)for(var n=s.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=s,n=n.sibling;else for(n=s.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=s,n=n.sibling;return s.subtreeFlags|=i,s.childLanes=t,e}function w7(s,e,t){var i=e.pendingProps;switch(BO(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yi(e),null;case 1:return xs(e.type)&&hm(),Yi(e),null;case 3:return i=e.stateNode,Gc(),Pt(ks),Pt(is),KO(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(s===null||s.child===null)&&(Gg(e)?e.flags|=4:s===null||s.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,$n!==null&&(kI($n),$n=null))),bI(s,e),Yi(e),null;case 5:XO(e);var n=cu(I_.current);if(t=e.type,s!==null&&e.stateNode!=null)A3(s,e,t,i,n),s.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(e.stateNode===null)throw Error(W(166));return Yi(e),null}if(s=cu(Dr.current),Gg(e)){i=e.stateNode,t=e.type;var r=e.memoizedProps;switch(i[Nr]=e,i[y_]=r,s=(e.mode&1)!==0,t){case"dialog":Mt("cancel",i),Mt("close",i);break;case"iframe":case"object":case"embed":Mt("load",i);break;case"video":case"audio":for(n=0;n<Vf.length;n++)Mt(Vf[n],i);break;case"source":Mt("error",i);break;case"img":case"image":case"link":Mt("error",i),Mt("load",i);break;case"details":Mt("toggle",i);break;case"input":OC(i,r),Mt("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!r.multiple},Mt("invalid",i);break;case"textarea":CC(i,r),Mt("invalid",i)}ZT(t,r),n=null;for(var a in r)if(r.hasOwnProperty(a)){var o=r[a];a==="children"?typeof o=="string"?i.textContent!==o&&(r.suppressHydrationWarning!==!0&&Bg(i.textContent,o,s),n=["children",o]):typeof o=="number"&&i.textContent!==""+o&&(r.suppressHydrationWarning!==!0&&Bg(i.textContent,o,s),n=["children",""+o]):h_.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&Mt("scroll",i)}switch(t){case"input":Ng(i),wC(i,r,!0);break;case"textarea":Ng(i),MC(i);break;case"select":case"option":break;default:typeof r.onClick=="function"&&(i.onclick=um)}i=n,e.updateQueue=i,i!==null&&(e.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=tL(t)),s==="http://www.w3.org/1999/xhtml"?t==="script"?(s=a.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof i.is=="string"?s=a.createElement(t,{is:i.is}):(s=a.createElement(t),t==="select"&&(a=s,i.multiple?a.multiple=!0:i.size&&(a.size=i.size))):s=a.createElementNS(s,t),s[Nr]=e,s[y_]=i,b3(s,e,!1,!1),e.stateNode=s;e:{switch(a=JT(t,i),t){case"dialog":Mt("cancel",s),Mt("close",s),n=i;break;case"iframe":case"object":case"embed":Mt("load",s),n=i;break;case"video":case"audio":for(n=0;n<Vf.length;n++)Mt(Vf[n],s);n=i;break;case"source":Mt("error",s),n=i;break;case"img":case"image":case"link":Mt("error",s),Mt("load",s),n=i;break;case"details":Mt("toggle",s),n=i;break;case"input":OC(s,i),n=XT(s,i),Mt("invalid",s);break;case"option":n=i;break;case"select":s._wrapperState={wasMultiple:!!i.multiple},n=Xt({},i,{value:void 0}),Mt("invalid",s);break;case"textarea":CC(s,i),n=$T(s,i),Mt("invalid",s);break;default:n=i}ZT(t,n),o=n;for(r in o)if(o.hasOwnProperty(r)){var l=o[r];r==="style"?nL(s,l):r==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&iL(s,l)):r==="children"?typeof l=="string"?(t!=="textarea"||l!=="")&&c_(s,l):typeof l=="number"&&c_(s,""+l):r!=="suppressContentEditableWarning"&&r!=="suppressHydrationWarning"&&r!=="autoFocus"&&(h_.hasOwnProperty(r)?l!=null&&r==="onScroll"&&Mt("scroll",s):l!=null&&SO(s,r,l,a))}switch(t){case"input":Ng(s),wC(s,i,!1);break;case"textarea":Ng(s),MC(s);break;case"option":i.value!=null&&s.setAttribute("value",""+Qo(i.value));break;case"select":s.multiple=!!i.multiple,r=i.value,r!=null?Rc(s,!!i.multiple,r,!1):i.defaultValue!=null&&Rc(s,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(s.onclick=um)}switch(t){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Yi(e),null;case 6:if(s&&e.stateNode!=null)O3(s,e,s.memoizedProps,i);else{if(typeof i!="string"&&e.stateNode===null)throw Error(W(166));if(t=cu(I_.current),cu(Dr.current),Gg(e)){if(i=e.stateNode,t=e.memoizedProps,i[Nr]=e,(r=i.nodeValue!==t)&&(s=nn,s!==null))switch(s.tag){case 3:Bg(i.nodeValue,t,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&Bg(i.nodeValue,t,(s.mode&1)!==0)}r&&(e.flags|=4)}else i=(t.nodeType===9?t:t.ownerDocument).createTextNode(i),i[Nr]=e,e.stateNode=i}return Yi(e),null;case 13:if(Pt(jt),i=e.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Ft&&en!==null&&e.mode&1&&!(e.flags&128))WL(),Fc(),e.flags|=98560,r=!1;else if(r=Gg(e),i!==null&&i.dehydrated!==null){if(s===null){if(!r)throw Error(W(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(W(317));r[Nr]=e}else Fc(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Yi(e),r=!1}else $n!==null&&(kI($n),$n=null),r=!0;if(!r)return e.flags&65536?e:null}return e.flags&128?(e.lanes=t,e):(i=i!==null,i!==(s!==null&&s.memoizedState!==null)&&i&&(e.child.flags|=8192,e.mode&1&&(s===null||jt.current&1?yi===0&&(yi=3):aw())),e.updateQueue!==null&&(e.flags|=4),Yi(e),null);case 4:return Gc(),bI(s,e),s===null&&v_(e.stateNode.containerInfo),Yi(e),null;case 10:return zO(e.type._context),Yi(e),null;case 17:return xs(e.type)&&hm(),Yi(e),null;case 19:if(Pt(jt),r=e.memoizedState,r===null)return Yi(e),null;if(i=(e.flags&128)!==0,a=r.rendering,a===null)if(i)Of(r,!1);else{if(yi!==0||s!==null&&s.flags&128)for(s=e.child;s!==null;){if(a=mm(s),a!==null){for(e.flags|=128,Of(r,!1),i=a.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),e.subtreeFlags=0,i=t,t=e.child;t!==null;)r=t,s=i,r.flags&=14680066,a=r.alternate,a===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,s=a.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),t=t.sibling;return wt(jt,jt.current&1|2),e.child}s=s.sibling}r.tail!==null&&ai()>jc&&(e.flags|=128,i=!0,Of(r,!1),e.lanes=4194304)}else{if(!i)if(s=mm(a),s!==null){if(e.flags|=128,i=!0,t=s.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Of(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!Ft)return Yi(e),null}else 2*ai()-r.renderingStartTime>jc&&t!==1073741824&&(e.flags|=128,i=!0,Of(r,!1),e.lanes=4194304);r.isBackwards?(a.sibling=e.child,e.child=a):(t=r.last,t!==null?t.sibling=a:e.child=a,r.last=a)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ai(),e.sibling=null,t=jt.current,wt(jt,i?t&1|2:t&1),e):(Yi(e),null);case 22:case 23:return rw(),i=e.memoizedState!==null,s!==null&&s.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?qs&1073741824&&(Yi(e),e.subtreeFlags&6&&(e.flags|=8192)):Yi(e),null;case 24:return null;case 25:return null}throw Error(W(156,e.tag))}function C7(s,e){switch(BO(e),e.tag){case 1:return xs(e.type)&&hm(),s=e.flags,s&65536?(e.flags=s&-65537|128,e):null;case 3:return Gc(),Pt(ks),Pt(is),KO(),s=e.flags,s&65536&&!(s&128)?(e.flags=s&-65537|128,e):null;case 5:return XO(e),null;case 13:if(Pt(jt),s=e.memoizedState,s!==null&&s.dehydrated!==null){if(e.alternate===null)throw Error(W(340));Fc()}return s=e.flags,s&65536?(e.flags=s&-65537|128,e):null;case 19:return Pt(jt),null;case 4:return Gc(),null;case 10:return zO(e.type._context),null;case 22:case 23:return rw(),null;case 24:return null;default:return null}}var zg=!1,Ji=!1,M7=typeof WeakSet=="function"?WeakSet:Set,he=null;function Ih(s,e){var t=s.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){ei(s,e,i)}else t.current=null}function AI(s,e,t){try{t()}catch(i){ei(s,e,i)}}var EM=!1;function N7(s,e){if(uI=am,s=PL(),UO(s)){if("selectionStart"in s)var t={start:s.selectionStart,end:s.selectionEnd};else e:{t=(t=s.ownerDocument)&&t.defaultView||window;var i=t.getSelection&&t.getSelection();if(i&&i.rangeCount!==0){t=i.anchorNode;var n=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{t.nodeType,r.nodeType}catch{t=null;break e}var a=0,o=-1,l=-1,u=0,c=0,h=s,f=null;t:for(;;){for(var d;h!==t||n!==0&&h.nodeType!==3||(o=a+n),h!==r||i!==0&&h.nodeType!==3||(l=a+i),h.nodeType===3&&(a+=h.nodeValue.length),(d=h.firstChild)!==null;)f=h,h=d;for(;;){if(h===s)break t;if(f===t&&++u===n&&(o=a),f===r&&++c===i&&(l=a),(d=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=d}t=o===-1||l===-1?null:{start:o,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(hI={focusedElem:s,selectionRange:t},am=!1,he=e;he!==null;)if(e=he,s=e.child,(e.subtreeFlags&1028)!==0&&s!==null)s.return=e,he=s;else for(;he!==null;){e=he;try{var _=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var g=_.memoizedProps,p=_.memoizedState,m=e.stateNode,v=m.getSnapshotBeforeUpdate(e.elementType===e.type?g:Xn(e.type,g),p);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var E=e.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(y){ei(e,e.return,y)}if(s=e.sibling,s!==null){s.return=e.return,he=s;break}he=e.return}return _=EM,EM=!1,_}function ed(s,e,t){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&s)===s){var r=n.destroy;n.destroy=void 0,r!==void 0&&AI(e,t,r)}n=n.next}while(n!==i)}}function n0(s,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&s)===s){var i=t.create;t.destroy=i()}t=t.next}while(t!==e)}}function OI(s){var e=s.ref;if(e!==null){var t=s.stateNode;switch(s.tag){case 5:s=t;break;default:s=t}typeof e=="function"?e(s):e.current=s}}function w3(s){var e=s.alternate;e!==null&&(s.alternate=null,w3(e)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(e=s.stateNode,e!==null&&(delete e[Nr],delete e[y_],delete e[dI],delete e[d7],delete e[_7])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function C3(s){return s.tag===5||s.tag===3||s.tag===4}function yM(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||C3(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function wI(s,e,t){var i=s.tag;if(i===5||i===6)s=s.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(s,e):t.insertBefore(s,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(s,t)):(e=t,e.appendChild(s)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=um));else if(i!==4&&(s=s.child,s!==null))for(wI(s,e,t),s=s.sibling;s!==null;)wI(s,e,t),s=s.sibling}function CI(s,e,t){var i=s.tag;if(i===5||i===6)s=s.stateNode,e?t.insertBefore(s,e):t.appendChild(s);else if(i!==4&&(s=s.child,s!==null))for(CI(s,e,t),s=s.sibling;s!==null;)CI(s,e,t),s=s.sibling}var Fi=null,Kn=!1;function qa(s,e,t){for(t=t.child;t!==null;)M3(s,e,t),t=t.sibling}function M3(s,e,t){if(xr&&typeof xr.onCommitFiberUnmount=="function")try{xr.onCommitFiberUnmount($E,t)}catch{}switch(t.tag){case 5:Ji||Ih(t,e);case 6:var i=Fi,n=Kn;Fi=null,qa(s,e,t),Fi=i,Kn=n,Fi!==null&&(Kn?(s=Fi,t=t.stateNode,s.nodeType===8?s.parentNode.removeChild(t):s.removeChild(t)):Fi.removeChild(t.stateNode));break;case 18:Fi!==null&&(Kn?(s=Fi,t=t.stateNode,s.nodeType===8?ny(s.parentNode,t):s.nodeType===1&&ny(s,t),g_(s)):ny(Fi,t.stateNode));break;case 4:i=Fi,n=Kn,Fi=t.stateNode.containerInfo,Kn=!0,qa(s,e,t),Fi=i,Kn=n;break;case 0:case 11:case 14:case 15:if(!Ji&&(i=t.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var r=n,a=r.destroy;r=r.tag,a!==void 0&&(r&2||r&4)&&AI(t,e,a),n=n.next}while(n!==i)}qa(s,e,t);break;case 1:if(!Ji&&(Ih(t,e),i=t.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(o){ei(t,e,o)}qa(s,e,t);break;case 21:qa(s,e,t);break;case 22:t.mode&1?(Ji=(i=Ji)||t.memoizedState!==null,qa(s,e,t),Ji=i):qa(s,e,t);break;default:qa(s,e,t)}}function TM(s){var e=s.updateQueue;if(e!==null){s.updateQueue=null;var t=s.stateNode;t===null&&(t=s.stateNode=new M7),e.forEach(function(i){var n=G7.bind(null,s,i);t.has(i)||(t.add(i),i.then(n,n))})}}function Bn(s,e){var t=e.deletions;if(t!==null)for(var i=0;i<t.length;i++){var n=t[i];try{var r=s,a=e,o=a;e:for(;o!==null;){switch(o.tag){case 5:Fi=o.stateNode,Kn=!1;break e;case 3:Fi=o.stateNode.containerInfo,Kn=!0;break e;case 4:Fi=o.stateNode.containerInfo,Kn=!0;break e}o=o.return}if(Fi===null)throw Error(W(160));M3(r,a,n),Fi=null,Kn=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(u){ei(n,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)N3(e,s),e=e.sibling}function N3(s,e){var t=s.alternate,i=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Bn(e,s),ar(s),i&4){try{ed(3,s,s.return),n0(3,s)}catch(g){ei(s,s.return,g)}try{ed(5,s,s.return)}catch(g){ei(s,s.return,g)}}break;case 1:Bn(e,s),ar(s),i&512&&t!==null&&Ih(t,t.return);break;case 5:if(Bn(e,s),ar(s),i&512&&t!==null&&Ih(t,t.return),s.flags&32){var n=s.stateNode;try{c_(n,"")}catch(g){ei(s,s.return,g)}}if(i&4&&(n=s.stateNode,n!=null)){var r=s.memoizedProps,a=t!==null?t.memoizedProps:r,o=s.type,l=s.updateQueue;if(s.updateQueue=null,l!==null)try{o==="input"&&r.type==="radio"&&r.name!=null&&JD(n,r),JT(o,a);var u=JT(o,r);for(a=0;a<l.length;a+=2){var c=l[a],h=l[a+1];c==="style"?nL(n,h):c==="dangerouslySetInnerHTML"?iL(n,h):c==="children"?c_(n,h):SO(n,c,h,u)}switch(o){case"input":KT(n,r);break;case"textarea":eL(n,r);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!r.multiple;var d=r.value;d!=null?Rc(n,!!r.multiple,d,!1):f!==!!r.multiple&&(r.defaultValue!=null?Rc(n,!!r.multiple,r.defaultValue,!0):Rc(n,!!r.multiple,r.multiple?[]:"",!1))}n[y_]=r}catch(g){ei(s,s.return,g)}}break;case 6:if(Bn(e,s),ar(s),i&4){if(s.stateNode===null)throw Error(W(162));n=s.stateNode,r=s.memoizedProps;try{n.nodeValue=r}catch(g){ei(s,s.return,g)}}break;case 3:if(Bn(e,s),ar(s),i&4&&t!==null&&t.memoizedState.isDehydrated)try{g_(e.containerInfo)}catch(g){ei(s,s.return,g)}break;case 4:Bn(e,s),ar(s);break;case 13:Bn(e,s),ar(s),n=s.child,n.flags&8192&&(r=n.memoizedState!==null,n.stateNode.isHidden=r,!r||n.alternate!==null&&n.alternate.memoizedState!==null||(sw=ai())),i&4&&TM(s);break;case 22:if(c=t!==null&&t.memoizedState!==null,s.mode&1?(Ji=(u=Ji)||c,Bn(e,s),Ji=u):Bn(e,s),ar(s),i&8192){if(u=s.memoizedState!==null,(s.stateNode.isHidden=u)&&!c&&s.mode&1)for(he=s,c=s.child;c!==null;){for(h=he=c;he!==null;){switch(f=he,d=f.child,f.tag){case 0:case 11:case 14:case 15:ed(4,f,f.return);break;case 1:Ih(f,f.return);var _=f.stateNode;if(typeof _.componentWillUnmount=="function"){i=f,t=f.return;try{e=i,_.props=e.memoizedProps,_.state=e.memoizedState,_.componentWillUnmount()}catch(g){ei(i,t,g)}}break;case 5:Ih(f,f.return);break;case 22:if(f.memoizedState!==null){RM(h);continue}}d!==null?(d.return=f,he=d):RM(h)}c=c.sibling}e:for(c=null,h=s;;){if(h.tag===5){if(c===null){c=h;try{n=h.stateNode,u?(r=n.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"):(o=h.stateNode,l=h.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=sL("display",a))}catch(g){ei(s,s.return,g)}}}else if(h.tag===6){if(c===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){ei(s,s.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===s)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===s)break e;for(;h.sibling===null;){if(h.return===null||h.return===s)break e;c===h&&(c=null),h=h.return}c===h&&(c=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Bn(e,s),ar(s),i&4&&TM(s);break;case 21:break;default:Bn(e,s),ar(s)}}function ar(s){var e=s.flags;if(e&2){try{e:{for(var t=s.return;t!==null;){if(C3(t)){var i=t;break e}t=t.return}throw Error(W(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(c_(n,""),i.flags&=-33);var r=yM(s);CI(s,r,n);break;case 3:case 4:var a=i.stateNode.containerInfo,o=yM(s);wI(s,o,a);break;default:throw Error(W(161))}}catch(l){ei(s,s.return,l)}s.flags&=-3}e&4096&&(s.flags&=-4097)}function P7(s,e,t){he=s,P3(s)}function P3(s,e,t){for(var i=(s.mode&1)!==0;he!==null;){var n=he,r=n.child;if(n.tag===22&&i){var a=n.memoizedState!==null||zg;if(!a){var o=n.alternate,l=o!==null&&o.memoizedState!==null||Ji;o=zg;var u=Ji;if(zg=a,(Ji=l)&&!u)for(he=n;he!==null;)a=he,l=a.child,a.tag===22&&a.memoizedState!==null?SM(n):l!==null?(l.return=a,he=l):SM(n);for(;r!==null;)he=r,P3(r),r=r.sibling;he=n,zg=o,Ji=u}IM(s)}else n.subtreeFlags&8772&&r!==null?(r.return=n,he=r):IM(s)}}function IM(s){for(;he!==null;){var e=he;if(e.flags&8772){var t=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Ji||n0(5,e);break;case 1:var i=e.stateNode;if(e.flags&4&&!Ji)if(t===null)i.componentDidMount();else{var n=e.elementType===e.type?t.memoizedProps:Xn(e.type,t.memoizedProps);i.componentDidUpdate(n,t.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var r=e.updateQueue;r!==null&&aM(e,r,i);break;case 3:var a=e.updateQueue;if(a!==null){if(t=null,e.child!==null)switch(e.child.tag){case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}aM(e,a,t)}break;case 5:var o=e.stateNode;if(t===null&&e.flags&4){t=o;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&t.focus();break;case"img":l.src&&(t.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var h=c.dehydrated;h!==null&&g_(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}Ji||e.flags&512&&OI(e)}catch(f){ei(e,e.return,f)}}if(e===s){he=null;break}if(t=e.sibling,t!==null){t.return=e.return,he=t;break}he=e.return}}function RM(s){for(;he!==null;){var e=he;if(e===s){he=null;break}var t=e.sibling;if(t!==null){t.return=e.return,he=t;break}he=e.return}}function SM(s){for(;he!==null;){var e=he;try{switch(e.tag){case 0:case 11:case 15:var t=e.return;try{n0(4,e)}catch(l){ei(e,t,l)}break;case 1:var i=e.stateNode;if(typeof i.componentDidMount=="function"){var n=e.return;try{i.componentDidMount()}catch(l){ei(e,n,l)}}var r=e.return;try{OI(e)}catch(l){ei(e,r,l)}break;case 5:var a=e.return;try{OI(e)}catch(l){ei(e,a,l)}}}catch(l){ei(e,e.return,l)}if(e===s){he=null;break}var o=e.sibling;if(o!==null){o.return=e.return,he=o;break}he=e.return}}var k7=Math.ceil,ym=Ya.ReactCurrentDispatcher,tw=Ya.ReactCurrentOwner,Pn=Ya.ReactCurrentBatchConfig,ut=0,Mi=null,di=null,ji=0,qs=0,Rh=ol(0),yi=0,A_=null,Pu=0,r0=0,iw=0,td=null,Ms=null,sw=0,jc=1/0,Zr=null,Tm=!1,MI=null,zo=null,Hg=!1,wo=null,Im=0,id=0,NI=null,Lp=-1,Up=0;function gs(){return ut&6?ai():Lp!==-1?Lp:Lp=ai()}function Ho(s){return s.mode&1?ut&2&&ji!==0?ji&-ji:p7.transition!==null?(Up===0&&(Up=pL()),Up):(s=Et,s!==0||(s=window.event,s=s===void 0?16:RL(s.type)),s):1}function Jn(s,e,t,i){if(50<id)throw id=0,NI=null,Error(W(185));fg(s,t,i),(!(ut&2)||s!==Mi)&&(s===Mi&&(!(ut&2)&&(r0|=t),yi===4&&bo(s,ji)),Ds(s,i),t===1&&ut===0&&!(e.mode&1)&&(jc=ai()+500,t0&&ll()))}function Ds(s,e){var t=s.callbackNode;p8(s,e);var i=rm(s,s===Mi?ji:0);if(i===0)t!==null&&kC(t),s.callbackNode=null,s.callbackPriority=0;else if(e=i&-i,s.callbackPriority!==e){if(t!=null&&kC(t),e===1)s.tag===0?g7(bM.bind(null,s)):jL(bM.bind(null,s)),c7(function(){!(ut&6)&&ll()}),t=null;else{switch(mL(i)){case 1:t=CO;break;case 4:t=_L;break;case 16:t=nm;break;case 536870912:t=gL;break;default:t=nm}t=G3(t,k3.bind(null,s))}s.callbackPriority=e,s.callbackNode=t}}function k3(s,e){if(Lp=-1,Up=0,ut&6)throw Error(W(327));var t=s.callbackNode;if(wc()&&s.callbackNode!==t)return null;var i=rm(s,s===Mi?ji:0);if(i===0)return null;if(i&30||i&s.expiredLanes||e)e=Rm(s,i);else{e=i;var n=ut;ut|=2;var r=D3();(Mi!==s||ji!==e)&&(Zr=null,jc=ai()+500,Eu(s,e));do try{L7();break}catch(o){x3(s,o)}while(!0);jO(),ym.current=r,ut=n,di!==null?e=0:(Mi=null,ji=0,e=yi)}if(e!==0){if(e===2&&(n=nI(s),n!==0&&(i=n,e=PI(s,n))),e===1)throw t=A_,Eu(s,0),bo(s,i),Ds(s,ai()),t;if(e===6)bo(s,i);else{if(n=s.current.alternate,!(i&30)&&!x7(n)&&(e=Rm(s,i),e===2&&(r=nI(s),r!==0&&(i=r,e=PI(s,r))),e===1))throw t=A_,Eu(s,0),bo(s,i),Ds(s,ai()),t;switch(s.finishedWork=n,s.finishedLanes=i,e){case 0:case 1:throw Error(W(345));case 2:Sl(s,Ms,Zr);break;case 3:if(bo(s,i),(i&130023424)===i&&(e=sw+500-ai(),10<e)){if(rm(s,0)!==0)break;if(n=s.suspendedLanes,(n&i)!==i){gs(),s.pingedLanes|=s.suspendedLanes&n;break}s.timeoutHandle=fI(Sl.bind(null,s,Ms,Zr),e);break}Sl(s,Ms,Zr);break;case 4:if(bo(s,i),(i&4194240)===i)break;for(e=s.eventTimes,n=-1;0<i;){var a=31-Zn(i);r=1<<a,a=e[a],a>n&&(n=a),i&=~r}if(i=n,i=ai()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*k7(i/1960))-i,10<i){s.timeoutHandle=fI(Sl.bind(null,s,Ms,Zr),i);break}Sl(s,Ms,Zr);break;case 5:Sl(s,Ms,Zr);break;default:throw Error(W(329))}}}return Ds(s,ai()),s.callbackNode===t?k3.bind(null,s):null}function PI(s,e){var t=td;return s.current.memoizedState.isDehydrated&&(Eu(s,e).flags|=256),s=Rm(s,e),s!==2&&(e=Ms,Ms=t,e!==null&&kI(e)),s}function kI(s){Ms===null?Ms=s:Ms.push.apply(Ms,s)}function x7(s){for(var e=s;;){if(e.flags&16384){var t=e.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var i=0;i<t.length;i++){var n=t[i],r=n.getSnapshot;n=n.value;try{if(!sr(r(),n))return!1}catch{return!1}}}if(t=e.child,e.subtreeFlags&16384&&t!==null)t.return=e,e=t;else{if(e===s)break;for(;e.sibling===null;){if(e.return===null||e.return===s)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function bo(s,e){for(e&=~iw,e&=~r0,s.suspendedLanes|=e,s.pingedLanes&=~e,s=s.expirationTimes;0<e;){var t=31-Zn(e),i=1<<t;s[t]=-1,e&=~i}}function bM(s){if(ut&6)throw Error(W(327));wc();var e=rm(s,0);if(!(e&1))return Ds(s,ai()),null;var t=Rm(s,e);if(s.tag!==0&&t===2){var i=nI(s);i!==0&&(e=i,t=PI(s,i))}if(t===1)throw t=A_,Eu(s,0),bo(s,e),Ds(s,ai()),t;if(t===6)throw Error(W(345));return s.finishedWork=s.current.alternate,s.finishedLanes=e,Sl(s,Ms,Zr),Ds(s,ai()),null}function nw(s,e){var t=ut;ut|=1;try{return s(e)}finally{ut=t,ut===0&&(jc=ai()+500,t0&&ll())}}function ku(s){wo!==null&&wo.tag===0&&!(ut&6)&&wc();var e=ut;ut|=1;var t=Pn.transition,i=Et;try{if(Pn.transition=null,Et=1,s)return s()}finally{Et=i,Pn.transition=t,ut=e,!(ut&6)&&ll()}}function rw(){qs=Rh.current,Pt(Rh)}function Eu(s,e){s.finishedWork=null,s.finishedLanes=0;var t=s.timeoutHandle;if(t!==-1&&(s.timeoutHandle=-1,h7(t)),di!==null)for(t=di.return;t!==null;){var i=t;switch(BO(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&hm();break;case 3:Gc(),Pt(ks),Pt(is),KO();break;case 5:XO(i);break;case 4:Gc();break;case 13:Pt(jt);break;case 19:Pt(jt);break;case 10:zO(i.type._context);break;case 22:case 23:rw()}t=t.return}if(Mi=s,di=s=Wo(s.current,null),ji=qs=e,yi=0,A_=null,iw=r0=Pu=0,Ms=td=null,hu!==null){for(e=0;e<hu.length;e++)if(t=hu[e],i=t.interleaved,i!==null){t.interleaved=null;var n=i.next,r=t.pending;if(r!==null){var a=r.next;r.next=n,i.next=a}t.pending=i}hu=null}return s}function x3(s,e){do{var t=di;try{if(jO(),kp.current=Em,vm){for(var i=Wt.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}vm=!1}if(Nu=0,Oi=Ei=Wt=null,Jf=!1,R_=0,tw.current=null,t===null||t.return===null){yi=1,A_=e,di=null;break}e:{var r=s,a=t.return,o=t,l=e;if(e=ji,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=o,h=c.tag;if(!(c.mode&1)&&(h===0||h===11||h===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=fM(a);if(d!==null){d.flags&=-257,dM(d,a,o,r,e),d.mode&1&&cM(r,u,e),e=d,l=u;var _=e.updateQueue;if(_===null){var g=new Set;g.add(l),e.updateQueue=g}else _.add(l);break e}else{if(!(e&1)){cM(r,u,e),aw();break e}l=Error(W(426))}}else if(Ft&&o.mode&1){var p=fM(a);if(p!==null){!(p.flags&65536)&&(p.flags|=256),dM(p,a,o,r,e),GO(Vc(l,o));break e}}r=l=Vc(l,o),yi!==4&&(yi=2),td===null?td=[r]:td.push(r),r=a;do{switch(r.tag){case 3:r.flags|=65536,e&=-e,r.lanes|=e;var m=m3(r,l,e);rM(r,m);break e;case 1:o=l;var v=r.type,E=r.stateNode;if(!(r.flags&128)&&(typeof v.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(zo===null||!zo.has(E)))){r.flags|=65536,e&=-e,r.lanes|=e;var y=v3(r,o,e);rM(r,y);break e}}r=r.return}while(r!==null)}U3(t)}catch(T){e=T,di===t&&t!==null&&(di=t=t.return);continue}break}while(!0)}function D3(){var s=ym.current;return ym.current=Em,s===null?Em:s}function aw(){(yi===0||yi===3||yi===2)&&(yi=4),Mi===null||!(Pu&268435455)&&!(r0&268435455)||bo(Mi,ji)}function Rm(s,e){var t=ut;ut|=2;var i=D3();(Mi!==s||ji!==e)&&(Zr=null,Eu(s,e));do try{D7();break}catch(n){x3(s,n)}while(!0);if(jO(),ut=t,ym.current=i,di!==null)throw Error(W(261));return Mi=null,ji=0,yi}function D7(){for(;di!==null;)L3(di)}function L7(){for(;di!==null&&!o8();)L3(di)}function L3(s){var e=B3(s.alternate,s,qs);s.memoizedProps=s.pendingProps,e===null?U3(s):di=e,tw.current=null}function U3(s){var e=s;do{var t=e.alternate;if(s=e.return,e.flags&32768){if(t=C7(t,e),t!==null){t.flags&=32767,di=t;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{yi=6,di=null;return}}else if(t=w7(t,e,qs),t!==null){di=t;return}if(e=e.sibling,e!==null){di=e;return}di=e=s}while(e!==null);yi===0&&(yi=5)}function Sl(s,e,t){var i=Et,n=Pn.transition;try{Pn.transition=null,Et=1,U7(s,e,t,i)}finally{Pn.transition=n,Et=i}return null}function U7(s,e,t,i){do wc();while(wo!==null);if(ut&6)throw Error(W(327));t=s.finishedWork;var n=s.finishedLanes;if(t===null)return null;if(s.finishedWork=null,s.finishedLanes=0,t===s.current)throw Error(W(177));s.callbackNode=null,s.callbackPriority=0;var r=t.lanes|t.childLanes;if(m8(s,r),s===Mi&&(di=Mi=null,ji=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||Hg||(Hg=!0,G3(nm,function(){return wc(),null})),r=(t.flags&15990)!==0,t.subtreeFlags&15990||r){r=Pn.transition,Pn.transition=null;var a=Et;Et=1;var o=ut;ut|=4,tw.current=null,N7(s,t),N3(t,s),s7(hI),am=!!uI,hI=uI=null,s.current=t,P7(t),l8(),ut=o,Et=a,Pn.transition=r}else s.current=t;if(Hg&&(Hg=!1,wo=s,Im=n),r=s.pendingLanes,r===0&&(zo=null),c8(t.stateNode),Ds(s,ai()),e!==null)for(i=s.onRecoverableError,t=0;t<e.length;t++)n=e[t],i(n.value,{componentStack:n.stack,digest:n.digest});if(Tm)throw Tm=!1,s=MI,MI=null,s;return Im&1&&s.tag!==0&&wc(),r=s.pendingLanes,r&1?s===NI?id++:(id=0,NI=s):id=0,ll(),null}function wc(){if(wo!==null){var s=mL(Im),e=Pn.transition,t=Et;try{if(Pn.transition=null,Et=16>s?16:s,wo===null)var i=!1;else{if(s=wo,wo=null,Im=0,ut&6)throw Error(W(331));var n=ut;for(ut|=4,he=s.current;he!==null;){var r=he,a=r.child;if(he.flags&16){var o=r.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(he=u;he!==null;){var c=he;switch(c.tag){case 0:case 11:case 15:ed(8,c,r)}var h=c.child;if(h!==null)h.return=c,he=h;else for(;he!==null;){c=he;var f=c.sibling,d=c.return;if(w3(c),c===u){he=null;break}if(f!==null){f.return=d,he=f;break}he=d}}}var _=r.alternate;if(_!==null){var g=_.child;if(g!==null){_.child=null;do{var p=g.sibling;g.sibling=null,g=p}while(g!==null)}}he=r}}if(r.subtreeFlags&2064&&a!==null)a.return=r,he=a;else e:for(;he!==null;){if(r=he,r.flags&2048)switch(r.tag){case 0:case 11:case 15:ed(9,r,r.return)}var m=r.sibling;if(m!==null){m.return=r.return,he=m;break e}he=r.return}}var v=s.current;for(he=v;he!==null;){a=he;var E=a.child;if(a.subtreeFlags&2064&&E!==null)E.return=a,he=E;else e:for(a=v;he!==null;){if(o=he,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:n0(9,o)}}catch(T){ei(o,o.return,T)}if(o===a){he=null;break e}var y=o.sibling;if(y!==null){y.return=o.return,he=y;break e}he=o.return}}if(ut=n,ll(),xr&&typeof xr.onPostCommitFiberRoot=="function")try{xr.onPostCommitFiberRoot($E,s)}catch{}i=!0}return i}finally{Et=t,Pn.transition=e}}return!1}function AM(s,e,t){e=Vc(t,e),e=m3(s,e,1),s=jo(s,e,1),e=gs(),s!==null&&(fg(s,1,e),Ds(s,e))}function ei(s,e,t){if(s.tag===3)AM(s,s,t);else for(;e!==null;){if(e.tag===3){AM(e,s,t);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(zo===null||!zo.has(i))){s=Vc(t,s),s=v3(e,s,1),e=jo(e,s,1),s=gs(),e!==null&&(fg(e,1,s),Ds(e,s));break}}e=e.return}}function F7(s,e,t){var i=s.pingCache;i!==null&&i.delete(e),e=gs(),s.pingedLanes|=s.suspendedLanes&t,Mi===s&&(ji&t)===t&&(yi===4||yi===3&&(ji&130023424)===ji&&500>ai()-sw?Eu(s,0):iw|=t),Ds(s,e)}function F3(s,e){e===0&&(s.mode&1?(e=xg,xg<<=1,!(xg&130023424)&&(xg=4194304)):e=1);var t=gs();s=Fa(s,e),s!==null&&(fg(s,e,t),Ds(s,t))}function B7(s){var e=s.memoizedState,t=0;e!==null&&(t=e.retryLane),F3(s,t)}function G7(s,e){var t=0;switch(s.tag){case 13:var i=s.stateNode,n=s.memoizedState;n!==null&&(t=n.retryLane);break;case 19:i=s.stateNode;break;default:throw Error(W(314))}i!==null&&i.delete(e),F3(s,t)}var B3;B3=function(s,e,t){if(s!==null)if(s.memoizedProps!==e.pendingProps||ks.current)Ps=!0;else{if(!(s.lanes&t)&&!(e.flags&128))return Ps=!1,O7(s,e,t);Ps=!!(s.flags&131072)}else Ps=!1,Ft&&e.flags&1048576&&zL(e,dm,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Dp(s,e),s=e.pendingProps;var n=Uc(e,is.current);Oc(e,t),n=$O(null,e,i,s,n,t);var r=QO();return e.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,xs(i)?(r=!0,cm(e)):r=!1,e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,WO(e),n.updater=s0,e.stateNode=n,n._reactInternals=e,EI(e,i,s,t),e=II(null,e,i,!0,r,t)):(e.tag=0,Ft&&r&&FO(e),ds(null,e,n,t),e=e.child),e;case 16:i=e.elementType;e:{switch(Dp(s,e),s=e.pendingProps,n=i._init,i=n(i._payload),e.type=i,n=e.tag=j7(i),s=Xn(i,s),n){case 0:e=TI(null,e,i,s,t);break e;case 1:e=pM(null,e,i,s,t);break e;case 11:e=_M(null,e,i,s,t);break e;case 14:e=gM(null,e,i,Xn(i.type,s),t);break e}throw Error(W(306,i,""))}return e;case 0:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Xn(i,n),TI(s,e,i,n,t);case 1:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Xn(i,n),pM(s,e,i,n,t);case 3:e:{if(I3(e),s===null)throw Error(W(387));i=e.pendingProps,r=e.memoizedState,n=r.element,qL(s,e),pm(e,i,null,t);var a=e.memoizedState;if(i=a.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){n=Vc(Error(W(423)),e),e=mM(s,e,i,t,n);break e}else if(i!==n){n=Vc(Error(W(424)),e),e=mM(s,e,i,t,n);break e}else for(en=Vo(e.stateNode.containerInfo.firstChild),nn=e,Ft=!0,$n=null,t=XL(e,null,i,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Fc(),i===n){e=Ba(s,e,t);break e}ds(s,e,i,t)}e=e.child}return e;case 5:return $L(e),s===null&&pI(e),i=e.type,n=e.pendingProps,r=s!==null?s.memoizedProps:null,a=n.children,cI(i,n)?a=null:r!==null&&cI(i,r)&&(e.flags|=32),T3(s,e),ds(s,e,a,t),e.child;case 6:return s===null&&pI(e),null;case 13:return R3(s,e,t);case 4:return YO(e,e.stateNode.containerInfo),i=e.pendingProps,s===null?e.child=Bc(e,null,i,t):ds(s,e,i,t),e.child;case 11:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Xn(i,n),_M(s,e,i,n,t);case 7:return ds(s,e,e.pendingProps,t),e.child;case 8:return ds(s,e,e.pendingProps.children,t),e.child;case 12:return ds(s,e,e.pendingProps.children,t),e.child;case 10:e:{if(i=e.type._context,n=e.pendingProps,r=e.memoizedProps,a=n.value,wt(_m,i._currentValue),i._currentValue=a,r!==null)if(sr(r.value,a)){if(r.children===n.children&&!ks.current){e=Ba(s,e,t);break e}}else for(r=e.child,r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){a=r.child;for(var l=o.firstContext;l!==null;){if(l.context===i){if(r.tag===1){l=Na(-1,t&-t),l.tag=2;var u=r.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}r.lanes|=t,l=r.alternate,l!==null&&(l.lanes|=t),mI(r.return,t,e),o.lanes|=t;break}l=l.next}}else if(r.tag===10)a=r.type===e.type?null:r.child;else if(r.tag===18){if(a=r.return,a===null)throw Error(W(341));a.lanes|=t,o=a.alternate,o!==null&&(o.lanes|=t),mI(a,t,e),a=r.sibling}else a=r.child;if(a!==null)a.return=r;else for(a=r;a!==null;){if(a===e){a=null;break}if(r=a.sibling,r!==null){r.return=a.return,a=r;break}a=a.return}r=a}ds(s,e,n.children,t),e=e.child}return e;case 9:return n=e.type,i=e.pendingProps.children,Oc(e,t),n=kn(n),i=i(n),e.flags|=1,ds(s,e,i,t),e.child;case 14:return i=e.type,n=Xn(i,e.pendingProps),n=Xn(i.type,n),gM(s,e,i,n,t);case 15:return E3(s,e,e.type,e.pendingProps,t);case 17:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Xn(i,n),Dp(s,e),e.tag=1,xs(i)?(s=!0,cm(e)):s=!1,Oc(e,t),p3(e,i,n),EI(e,i,n,t),II(null,e,i,!0,s,t);case 19:return S3(s,e,t);case 22:return y3(s,e,t)}throw Error(W(156,e.tag))};function G3(s,e){return dL(s,e)}function V7(s,e,t,i){this.tag=s,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(s,e,t,i){return new V7(s,e,t,i)}function ow(s){return s=s.prototype,!(!s||!s.isReactComponent)}function j7(s){if(typeof s=="function")return ow(s)?1:0;if(s!=null){if(s=s.$$typeof,s===AO)return 11;if(s===OO)return 14}return 2}function Wo(s,e){var t=s.alternate;return t===null?(t=Cn(s.tag,e,s.key,s.mode),t.elementType=s.elementType,t.type=s.type,t.stateNode=s.stateNode,t.alternate=s,s.alternate=t):(t.pendingProps=e,t.type=s.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=s.flags&14680064,t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,e=s.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=s.sibling,t.index=s.index,t.ref=s.ref,t}function Fp(s,e,t,i,n,r){var a=2;if(i=s,typeof s=="function")ow(s)&&(a=1);else if(typeof s=="string")a=5;else e:switch(s){case dh:return yu(t.children,n,r,e);case bO:a=8,n|=8;break;case zT:return s=Cn(12,t,e,n|2),s.elementType=zT,s.lanes=r,s;case HT:return s=Cn(13,t,e,n),s.elementType=HT,s.lanes=r,s;case WT:return s=Cn(19,t,e,n),s.elementType=WT,s.lanes=r,s;case $D:return a0(t,n,r,e);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case KD:a=10;break e;case qD:a=9;break e;case AO:a=11;break e;case OO:a=14;break e;case Za:a=16,i=null;break e}throw Error(W(130,s==null?s:typeof s,""))}return e=Cn(a,t,e,n),e.elementType=s,e.type=i,e.lanes=r,e}function yu(s,e,t,i){return s=Cn(7,s,i,e),s.lanes=t,s}function a0(s,e,t,i){return s=Cn(22,s,i,e),s.elementType=$D,s.lanes=t,s.stateNode={isHidden:!1},s}function fy(s,e,t){return s=Cn(6,s,null,e),s.lanes=t,s}function dy(s,e,t){return e=Cn(4,s.children!==null?s.children:[],s.key,e),e.lanes=t,e.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},e}function z7(s,e,t,i,n){this.tag=e,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=X0(0),this.expirationTimes=X0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=X0(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function lw(s,e,t,i,n,r,a,o,l){return s=new z7(s,e,t,o,l),e===1?(e=1,r===!0&&(e|=8)):e=0,r=Cn(3,null,null,e),s.current=r,r.stateNode=s,r.memoizedState={element:i,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},WO(r),s}function H7(s,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fh,key:i==null?null:""+i,children:s,containerInfo:e,implementation:t}}function V3(s){if(!s)return Zo;s=s._reactInternals;e:{if(Xu(s)!==s||s.tag!==1)throw Error(W(170));var e=s;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(xs(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(W(171))}if(s.tag===1){var t=s.type;if(xs(t))return VL(s,t,e)}return e}function j3(s,e,t,i,n,r,a,o,l){return s=lw(t,i,!0,s,n,r,a,o,l),s.context=V3(null),t=s.current,i=gs(),n=Ho(t),r=Na(i,n),r.callback=e??null,jo(t,r,n),s.current.lanes=n,fg(s,n,i),Ds(s,i),s}function o0(s,e,t,i){var n=e.current,r=gs(),a=Ho(n);return t=V3(t),e.context===null?e.context=t:e.pendingContext=t,e=Na(r,a),e.payload={element:s},i=i===void 0?null:i,i!==null&&(e.callback=i),s=jo(n,e,a),s!==null&&(Jn(s,n,a,r),Pp(s,n,a)),a}function Sm(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function OM(s,e){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var t=s.retryLane;s.retryLane=t!==0&&t<e?t:e}}function uw(s,e){OM(s,e),(s=s.alternate)&&OM(s,e)}function W7(){return null}var z3=typeof reportError=="function"?reportError:function(s){console.error(s)};function hw(s){this._internalRoot=s}l0.prototype.render=hw.prototype.render=function(s){var e=this._internalRoot;if(e===null)throw Error(W(409));o0(s,e,null,null)};l0.prototype.unmount=hw.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var e=s.containerInfo;ku(function(){o0(null,s,null,null)}),e[Ua]=null}};function l0(s){this._internalRoot=s}l0.prototype.unstable_scheduleHydration=function(s){if(s){var e=yL();s={blockedOn:null,target:s,priority:e};for(var t=0;t<So.length&&e!==0&&e<So[t].priority;t++);So.splice(t,0,s),t===0&&IL(s)}};function cw(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function u0(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function wM(){}function Y7(s,e,t,i,n){if(n){if(typeof i=="function"){var r=i;i=function(){var u=Sm(a);r.call(u)}}var a=j3(e,i,s,0,null,!1,!1,"",wM);return s._reactRootContainer=a,s[Ua]=a.current,v_(s.nodeType===8?s.parentNode:s),ku(),a}for(;n=s.lastChild;)s.removeChild(n);if(typeof i=="function"){var o=i;i=function(){var u=Sm(l);o.call(u)}}var l=lw(s,0,!1,null,null,!1,!1,"",wM);return s._reactRootContainer=l,s[Ua]=l.current,v_(s.nodeType===8?s.parentNode:s),ku(function(){o0(e,l,t,i)}),l}function h0(s,e,t,i,n){var r=t._reactRootContainer;if(r){var a=r;if(typeof n=="function"){var o=n;n=function(){var l=Sm(a);o.call(l)}}o0(e,a,s,n)}else a=Y7(t,e,s,n,i);return Sm(a)}vL=function(s){switch(s.tag){case 3:var e=s.stateNode;if(e.current.memoizedState.isDehydrated){var t=Gf(e.pendingLanes);t!==0&&(MO(e,t|1),Ds(e,ai()),!(ut&6)&&(jc=ai()+500,ll()))}break;case 13:ku(function(){var i=Fa(s,1);if(i!==null){var n=gs();Jn(i,s,1,n)}}),uw(s,1)}};NO=function(s){if(s.tag===13){var e=Fa(s,134217728);if(e!==null){var t=gs();Jn(e,s,134217728,t)}uw(s,134217728)}};EL=function(s){if(s.tag===13){var e=Ho(s),t=Fa(s,e);if(t!==null){var i=gs();Jn(t,s,e,i)}uw(s,e)}};yL=function(){return Et};TL=function(s,e){var t=Et;try{return Et=s,e()}finally{Et=t}};tI=function(s,e,t){switch(e){case"input":if(KT(s,t),e=t.name,t.type==="radio"&&e!=null){for(t=s;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var i=t[e];if(i!==s&&i.form===s.form){var n=e0(i);if(!n)throw Error(W(90));ZD(i),KT(i,n)}}}break;case"textarea":eL(s,t);break;case"select":e=t.value,e!=null&&Rc(s,!!t.multiple,e,!1)}};oL=nw;lL=ku;var X7={usingClientEntryPoint:!1,Events:[_g,mh,e0,rL,aL,nw]},wf={findFiberByHostInstance:uu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},K7={bundleType:wf.bundleType,version:wf.version,rendererPackageName:wf.rendererPackageName,rendererConfig:wf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ya.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=cL(s),s===null?null:s.stateNode},findFiberByHostInstance:wf.findFiberByHostInstance||W7,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wg.isDisabled&&Wg.supportsFiber)try{$E=Wg.inject(K7),xr=Wg}catch{}}hn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X7;hn.createPortal=function(s,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cw(e))throw Error(W(200));return H7(s,e,null,t)};hn.createRoot=function(s,e){if(!cw(s))throw Error(W(299));var t=!1,i="",n=z3;return e!=null&&(e.unstable_strictMode===!0&&(t=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onRecoverableError!==void 0&&(n=e.onRecoverableError)),e=lw(s,1,!1,null,null,t,!1,i,n),s[Ua]=e.current,v_(s.nodeType===8?s.parentNode:s),new hw(e)};hn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var e=s._reactInternals;if(e===void 0)throw typeof s.render=="function"?Error(W(188)):(s=Object.keys(s).join(","),Error(W(268,s)));return s=cL(e),s=s===null?null:s.stateNode,s};hn.flushSync=function(s){return ku(s)};hn.hydrate=function(s,e,t){if(!u0(e))throw Error(W(200));return h0(null,s,e,!0,t)};hn.hydrateRoot=function(s,e,t){if(!cw(s))throw Error(W(405));var i=t!=null&&t.hydratedSources||null,n=!1,r="",a=z3;if(t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),e=j3(e,null,s,1,t??null,n,!1,r,a),s[Ua]=e.current,v_(s),i)for(s=0;s<i.length;s++)t=i[s],n=t._getVersion,n=n(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n);return new l0(e)};hn.render=function(s,e,t){if(!u0(e))throw Error(W(200));return h0(null,s,e,!1,t)};hn.unmountComponentAtNode=function(s){if(!u0(s))throw Error(W(40));return s._reactRootContainer?(ku(function(){h0(null,null,s,!1,function(){s._reactRootContainer=null,s[Ua]=null})}),!0):!1};hn.unstable_batchedUpdates=nw;hn.unstable_renderSubtreeIntoContainer=function(s,e,t,i){if(!u0(t))throw Error(W(200));if(s==null||s._reactInternals===void 0)throw Error(W(38));return h0(s,e,t,!1,i)};hn.version="18.3.1-next-f1338f8080-20240426";function H3(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(H3)}catch(s){console.error(s)}}H3(),HD.exports=hn;var fw=HD.exports;const Sh=nr(fw);var q7,CM=fw;q7=CM.createRoot,CM.hydrateRoot;/*!
* @pixi/constants - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/constants is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var Ga;(function(s){s[s.WEBGL_LEGACY=0]="WEBGL_LEGACY",s[s.WEBGL=1]="WEBGL",s[s.WEBGL2=2]="WEBGL2"})(Ga||(Ga={}));var O_;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.WEBGL=1]="WEBGL",s[s.CANVAS=2]="CANVAS"})(O_||(O_={}));var bm;(function(s){s[s.COLOR=16384]="COLOR",s[s.DEPTH=256]="DEPTH",s[s.STENCIL=1024]="STENCIL"})(bm||(bm={}));var ge;(function(s){s[s.NORMAL=0]="NORMAL",s[s.ADD=1]="ADD",s[s.MULTIPLY=2]="MULTIPLY",s[s.SCREEN=3]="SCREEN",s[s.OVERLAY=4]="OVERLAY",s[s.DARKEN=5]="DARKEN",s[s.LIGHTEN=6]="LIGHTEN",s[s.COLOR_DODGE=7]="COLOR_DODGE",s[s.COLOR_BURN=8]="COLOR_BURN",s[s.HARD_LIGHT=9]="HARD_LIGHT",s[s.SOFT_LIGHT=10]="SOFT_LIGHT",s[s.DIFFERENCE=11]="DIFFERENCE",s[s.EXCLUSION=12]="EXCLUSION",s[s.HUE=13]="HUE",s[s.SATURATION=14]="SATURATION",s[s.COLOR=15]="COLOR",s[s.LUMINOSITY=16]="LUMINOSITY",s[s.NORMAL_NPM=17]="NORMAL_NPM",s[s.ADD_NPM=18]="ADD_NPM",s[s.SCREEN_NPM=19]="SCREEN_NPM",s[s.NONE=20]="NONE",s[s.SRC_OVER=0]="SRC_OVER",s[s.SRC_IN=21]="SRC_IN",s[s.SRC_OUT=22]="SRC_OUT",s[s.SRC_ATOP=23]="SRC_ATOP",s[s.DST_OVER=24]="DST_OVER",s[s.DST_IN=25]="DST_IN",s[s.DST_OUT=26]="DST_OUT",s[s.DST_ATOP=27]="DST_ATOP",s[s.ERASE=26]="ERASE",s[s.SUBTRACT=28]="SUBTRACT",s[s.XOR=29]="XOR"})(ge||(ge={}));var Ia;(function(s){s[s.POINTS=0]="POINTS",s[s.LINES=1]="LINES",s[s.LINE_LOOP=2]="LINE_LOOP",s[s.LINE_STRIP=3]="LINE_STRIP",s[s.TRIANGLES=4]="TRIANGLES",s[s.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",s[s.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Ia||(Ia={}));var ae;(function(s){s[s.RGBA=6408]="RGBA",s[s.RGB=6407]="RGB",s[s.RG=33319]="RG",s[s.RED=6403]="RED",s[s.RGBA_INTEGER=36249]="RGBA_INTEGER",s[s.RGB_INTEGER=36248]="RGB_INTEGER",s[s.RG_INTEGER=33320]="RG_INTEGER",s[s.RED_INTEGER=36244]="RED_INTEGER",s[s.ALPHA=6406]="ALPHA",s[s.LUMINANCE=6409]="LUMINANCE",s[s.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",s[s.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",s[s.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ae||(ae={}));var Tu;(function(s){s[s.TEXTURE_2D=3553]="TEXTURE_2D",s[s.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",s[s.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",s[s.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",s[s.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",s[s.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",s[s.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",s[s.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",s[s.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Tu||(Tu={}));var lt;(function(s){s[s.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",s[s.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",s[s.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",s[s.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",s[s.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",s[s.UNSIGNED_INT=5125]="UNSIGNED_INT",s[s.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",s[s.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",s[s.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",s[s.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",s[s.BYTE=5120]="BYTE",s[s.SHORT=5122]="SHORT",s[s.INT=5124]="INT",s[s.FLOAT=5126]="FLOAT",s[s.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",s[s.HALF_FLOAT=36193]="HALF_FLOAT"})(lt||(lt={}));var Am;(function(s){s[s.FLOAT=0]="FLOAT",s[s.INT=1]="INT",s[s.UINT=2]="UINT"})(Am||(Am={}));var tn;(function(s){s[s.NEAREST=0]="NEAREST",s[s.LINEAR=1]="LINEAR"})(tn||(tn={}));var Pa;(function(s){s[s.CLAMP=33071]="CLAMP",s[s.REPEAT=10497]="REPEAT",s[s.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Pa||(Pa={}));var Jo;(function(s){s[s.OFF=0]="OFF",s[s.POW2=1]="POW2",s[s.ON=2]="ON",s[s.ON_MANUAL=3]="ON_MANUAL"})(Jo||(Jo={}));var el;(function(s){s[s.NPM=0]="NPM",s[s.UNPACK=1]="UNPACK",s[s.PMA=2]="PMA",s[s.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",s[s.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",s[s.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",s[s.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(el||(el={}));var eo;(function(s){s[s.NO=0]="NO",s[s.YES=1]="YES",s[s.AUTO=2]="AUTO",s[s.BLEND=0]="BLEND",s[s.CLEAR=1]="CLEAR",s[s.BLIT=2]="BLIT"})(eo||(eo={}));var Om;(function(s){s[s.AUTO=0]="AUTO",s[s.MANUAL=1]="MANUAL"})(Om||(Om={}));var sn;(function(s){s.LOW="lowp",s.MEDIUM="mediump",s.HIGH="highp"})(sn||(sn={}));var ci;(function(s){s[s.NONE=0]="NONE",s[s.SCISSOR=1]="SCISSOR",s[s.STENCIL=2]="STENCIL",s[s.SPRITE=3]="SPRITE",s[s.COLOR=4]="COLOR"})(ci||(ci={}));var MM;(function(s){s[s.RED=1]="RED",s[s.GREEN=2]="GREEN",s[s.BLUE=4]="BLUE",s[s.ALPHA=8]="ALPHA"})(MM||(MM={}));var Ut;(function(s){s[s.NONE=0]="NONE",s[s.LOW=2]="LOW",s[s.MEDIUM=4]="MEDIUM",s[s.HIGH=8]="HIGH"})(Ut||(Ut={}));var Lr;(function(s){s[s.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",s[s.ARRAY_BUFFER=34962]="ARRAY_BUFFER",s[s.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Lr||(Lr={}));/*!
* @pixi/settings - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/settings is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var $7={createCanvas:function(s,e){var t=document.createElement("canvas");return t.width=s,t.height=e,t},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var s;return(s=document.baseURI)!==null&&s!==void 0?s:window.location.href},fetch:function(s,e){return fetch(s,e)}},_y=/iPhone/i,NM=/iPod/i,PM=/iPad/i,kM=/\biOS-universal(?:.+)Mac\b/i,gy=/\bAndroid(?:.+)Mobile\b/i,xM=/Android/i,th=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Yg=/Silk/i,Xr=/Windows Phone/i,DM=/\bWindows(?:.+)ARM\b/i,LM=/BlackBerry/i,UM=/BB10/i,FM=/Opera Mini/i,BM=/\b(CriOS|Chrome)(?:.+)Mobile/i,GM=/Mobile(?:.+)Firefox\b/i,VM=function(s){return typeof s<"u"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream>"u"};function Q7(s){return function(e){return e.test(s)}}function Z7(s){var e={userAgent:"",platform:"",maxTouchPoints:0};!s&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof s=="string"?e.userAgent=s:s&&s.userAgent&&(e={userAgent:s.userAgent,platform:s.platform,maxTouchPoints:s.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]<"u"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]<"u"&&(t=i[0]);var n=Q7(t),r={apple:{phone:n(_y)&&!n(Xr),ipod:n(NM),tablet:!n(_y)&&(n(PM)||VM(e))&&!n(Xr),universal:n(kM),device:(n(_y)||n(NM)||n(PM)||n(kM)||VM(e))&&!n(Xr)},amazon:{phone:n(th),tablet:!n(th)&&n(Yg),device:n(th)||n(Yg)},android:{phone:!n(Xr)&&n(th)||!n(Xr)&&n(gy),tablet:!n(Xr)&&!n(th)&&!n(gy)&&(n(Yg)||n(xM)),device:!n(Xr)&&(n(th)||n(Yg)||n(gy)||n(xM))||n(/\bokhttp\b/i)},windows:{phone:n(Xr),tablet:n(DM),device:n(Xr)||n(DM)},other:{blackberry:n(LM),blackberry10:n(UM),opera:n(FM),firefox:n(GM),chrome:n(BM),device:n(LM)||n(UM)||n(FM)||n(GM)||n(BM)},any:!1,phone:!1,tablet:!1};return r.any=r.apple.device||r.android.device||r.windows.device||r.other.device,r.phone=r.apple.phone||r.android.phone||r.windows.phone,r.tablet=r.apple.tablet||r.android.tablet||r.windows.tablet,r}var fu=Z7(globalThis.navigator);function J7(){return!fu.apple.device}function eV(s){var e=!0;if(fu.tablet||fu.phone){if(fu.apple.device){var t=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(t){var i=parseInt(t[1],10);i<11&&(e=!1)}}if(fu.android.device){var t=navigator.userAgent.match(/Android\s([0-9.]*)/);if(t){var i=parseInt(t[1],10);i<7&&(e=!1)}}}return e?s:4}var de={ADAPTER:$7,MIPMAP_TEXTURES:Jo.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Ut.NONE,SPRITE_MAX_TEXTURES:eV(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,width:800,height:600,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,antialias:!1,preserveDrawingBuffer:!1},GC_MODE:Om.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Pa.CLAMP,SCALE_MODE:tn.LINEAR,PRECISION_VERTEX:sn.HIGH,PRECISION_FRAGMENT:fu.apple.device?sn.HIGH:sn.MEDIUM,CAN_UPLOAD_SAME_BUFFER:J7(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},W3={exports:{}};(function(s){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function n(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function r(l,u,c,h,f){if(typeof c!="function")throw new TypeError("The listener must be a function");var d=new n(c,h||l,f),_=t?t+u:u;return l._events[_]?l._events[_].fn?l._events[_]=[l._events[_],d]:l._events[_].push(d):(l._events[_]=d,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new i:delete l._events[u]}function o(){this._events=new i,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],c,h;if(this._eventsCount===0)return u;for(h in c=this._events)e.call(c,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},o.prototype.listeners=function(u){var c=t?t+u:u,h=this._events[c];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,d=h.length,_=new Array(d);f<d;f++)_[f]=h[f].fn;return _},o.prototype.listenerCount=function(u){var c=t?t+u:u,h=this._events[c];return h?h.fn?1:h.length:0},o.prototype.emit=function(u,c,h,f,d,_){var g=t?t+u:u;if(!this._events[g])return!1;var p=this._events[g],m=arguments.length,v,E;if(p.fn){switch(p.once&&this.removeListener(u,p.fn,void 0,!0),m){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,c),!0;case 3:return p.fn.call(p.context,c,h),!0;case 4:return p.fn.call(p.context,c,h,f),!0;case 5:return p.fn.call(p.context,c,h,f,d),!0;case 6:return p.fn.call(p.context,c,h,f,d,_),!0}for(E=1,v=new Array(m-1);E<m;E++)v[E-1]=arguments[E];p.fn.apply(p.context,v)}else{var y=p.length,T;for(E=0;E<y;E++)switch(p[E].once&&this.removeListener(u,p[E].fn,void 0,!0),m){case 1:p[E].fn.call(p[E].context);break;case 2:p[E].fn.call(p[E].context,c);break;case 3:p[E].fn.call(p[E].context,c,h);break;case 4:p[E].fn.call(p[E].context,c,h,f);break;default:if(!v)for(T=1,v=new Array(m-1);T<m;T++)v[T-1]=arguments[T];p[E].fn.apply(p[E].context,v)}}return!0},o.prototype.on=function(u,c,h){return r(this,u,c,h,!1)},o.prototype.once=function(u,c,h){return r(this,u,c,h,!0)},o.prototype.removeListener=function(u,c,h,f){var d=t?t+u:u;if(!this._events[d])return this;if(!c)return a(this,d),this;var _=this._events[d];if(_.fn)_.fn===c&&(!f||_.once)&&(!h||_.context===h)&&a(this,d);else{for(var g=0,p=[],m=_.length;g<m;g++)(_[g].fn!==c||f&&!_[g].once||h&&_[g].context!==h)&&p.push(_[g]);p.length?this._events[d]=p.length===1?p[0]:p:a(this,d)}return this},o.prototype.removeAllListeners=function(u){var c;return u?(c=t?t+u:u,this._events[c]&&a(this,c)):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,s.exports=o})(W3);var tV=W3.exports;const c0=nr(tV);var dw={exports:{}};dw.exports=f0;dw.exports.default=f0;function f0(s,e,t){t=t||2;var i=e&&e.length,n=i?e[0]*t:s.length,r=Y3(s,0,n,t,!0),a=[];if(!r||r.next===r.prev)return a;var o,l,u,c,h,f,d;if(i&&(r=aV(s,e,r,t)),s.length>80*t){o=u=s[0],l=c=s[1];for(var _=t;_<n;_+=t)h=s[_],f=s[_+1],h<o&&(o=h),f<l&&(l=f),h>u&&(u=h),f>c&&(c=f);d=Math.max(u-o,c-l),d=d!==0?32767/d:0}return w_(r,a,t,o,l,d,0),a}function Y3(s,e,t,i,n){var r,a;if(n===LI(s,e,t,i)>0)for(r=e;r<t;r+=i)a=jM(r,s[r],s[r+1],a);else for(r=t-i;r>=e;r-=i)a=jM(r,s[r],s[r+1],a);return a&&d0(a,a.next)&&(M_(a),a=a.next),a}function xu(s,e){if(!s)return s;e||(e=s);var t=s,i;do if(i=!1,!t.steiner&&(d0(t,t.next)||zt(t.prev,t,t.next)===0)){if(M_(t),t=e=t.prev,t===t.next)break;i=!0}else t=t.next;while(i||t!==e);return e}function w_(s,e,t,i,n,r,a){if(s){!a&&r&&cV(s,i,n,r);for(var o=s,l,u;s.prev!==s.next;){if(l=s.prev,u=s.next,r?sV(s,i,n,r):iV(s)){e.push(l.i/t|0),e.push(s.i/t|0),e.push(u.i/t|0),M_(s),s=u.next,o=u.next;continue}if(s=u,s===o){a?a===1?(s=nV(xu(s),e,t),w_(s,e,t,i,n,r,2)):a===2&&rV(s,e,t,i,n,r):w_(xu(s),e,t,i,n,r,1);break}}}}function iV(s){var e=s.prev,t=s,i=s.next;if(zt(e,t,i)>=0)return!1;for(var n=e.x,r=t.x,a=i.x,o=e.y,l=t.y,u=i.y,c=n<r?n<a?n:a:r<a?r:a,h=o<l?o<u?o:u:l<u?l:u,f=n>r?n>a?n:a:r>a?r:a,d=o>l?o>u?o:u:l>u?l:u,_=i.next;_!==e;){if(_.x>=c&&_.x<=f&&_.y>=h&&_.y<=d&&bh(n,o,r,l,a,u,_.x,_.y)&&zt(_.prev,_,_.next)>=0)return!1;_=_.next}return!0}function sV(s,e,t,i){var n=s.prev,r=s,a=s.next;if(zt(n,r,a)>=0)return!1;for(var o=n.x,l=r.x,u=a.x,c=n.y,h=r.y,f=a.y,d=o<l?o<u?o:u:l<u?l:u,_=c<h?c<f?c:f:h<f?h:f,g=o>l?o>u?o:u:l>u?l:u,p=c>h?c>f?c:f:h>f?h:f,m=xI(d,_,e,t,i),v=xI(g,p,e,t,i),E=s.prevZ,y=s.nextZ;E&&E.z>=m&&y&&y.z<=v;){if(E.x>=d&&E.x<=g&&E.y>=_&&E.y<=p&&E!==n&&E!==a&&bh(o,c,l,h,u,f,E.x,E.y)&&zt(E.prev,E,E.next)>=0||(E=E.prevZ,y.x>=d&&y.x<=g&&y.y>=_&&y.y<=p&&y!==n&&y!==a&&bh(o,c,l,h,u,f,y.x,y.y)&&zt(y.prev,y,y.next)>=0))return!1;y=y.nextZ}for(;E&&E.z>=m;){if(E.x>=d&&E.x<=g&&E.y>=_&&E.y<=p&&E!==n&&E!==a&&bh(o,c,l,h,u,f,E.x,E.y)&&zt(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;y&&y.z<=v;){if(y.x>=d&&y.x<=g&&y.y>=_&&y.y<=p&&y!==n&&y!==a&&bh(o,c,l,h,u,f,y.x,y.y)&&zt(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function nV(s,e,t){var i=s;do{var n=i.prev,r=i.next.next;!d0(n,r)&&X3(n,i,i.next,r)&&C_(n,r)&&C_(r,n)&&(e.push(n.i/t|0),e.push(i.i/t|0),e.push(r.i/t|0),M_(i),M_(i.next),i=s=r),i=i.next}while(i!==s);return xu(i)}function rV(s,e,t,i,n,r){var a=s;do{for(var o=a.next.next;o!==a.prev;){if(a.i!==o.i&&_V(a,o)){var l=K3(a,o);a=xu(a,a.next),l=xu(l,l.next),w_(a,e,t,i,n,r,0),w_(l,e,t,i,n,r,0);return}o=o.next}a=a.next}while(a!==s)}function aV(s,e,t,i){var n=[],r,a,o,l,u;for(r=0,a=e.length;r<a;r++)o=e[r]*i,l=r<a-1?e[r+1]*i:s.length,u=Y3(s,o,l,i,!1),u===u.next&&(u.steiner=!0),n.push(dV(u));for(n.sort(oV),r=0;r<n.length;r++)t=lV(n[r],t);return t}function oV(s,e){return s.x-e.x}function lV(s,e){var t=uV(s,e);if(!t)return e;var i=K3(t,s);return xu(i,i.next),xu(t,t.next)}function uV(s,e){var t=e,i=s.x,n=s.y,r=-1/0,a;do{if(n<=t.y&&n>=t.next.y&&t.next.y!==t.y){var o=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(o<=i&&o>r&&(r=o,a=t.x<t.next.x?t:t.next,o===i))return a}t=t.next}while(t!==e);if(!a)return null;var l=a,u=a.x,c=a.y,h=1/0,f;t=a;do i>=t.x&&t.x>=u&&i!==t.x&&bh(n<c?i:r,n,u,c,n<c?r:i,n,t.x,t.y)&&(f=Math.abs(n-t.y)/(i-t.x),C_(t,s)&&(f<h||f===h&&(t.x>a.x||t.x===a.x&&hV(a,t)))&&(a=t,h=f)),t=t.next;while(t!==l);return a}function hV(s,e){return zt(s.prev,s,e.prev)<0&&zt(e.next,s,s.next)<0}function cV(s,e,t,i){var n=s;do n.z===0&&(n.z=xI(n.x,n.y,e,t,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==s);n.prevZ.nextZ=null,n.prevZ=null,fV(n)}function fV(s){var e,t,i,n,r,a,o,l,u=1;do{for(t=s,s=null,r=null,a=0;t;){for(a++,i=t,o=0,e=0;e<u&&(o++,i=i.nextZ,!!i);e++);for(l=u;o>0||l>0&&i;)o!==0&&(l===0||!i||t.z<=i.z)?(n=t,t=t.nextZ,o--):(n=i,i=i.nextZ,l--),r?r.nextZ=n:s=n,n.prevZ=r,r=n;t=i}r.nextZ=null,u*=2}while(a>1);return s}function xI(s,e,t,i,n){return s=(s-t)*n|0,e=(e-i)*n|0,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,s|e<<1}function dV(s){var e=s,t=s;do(e.x<t.x||e.x===t.x&&e.y<t.y)&&(t=e),e=e.next;while(e!==s);return t}function bh(s,e,t,i,n,r,a,o){return(n-a)*(e-o)>=(s-a)*(r-o)&&(s-a)*(i-o)>=(t-a)*(e-o)&&(t-a)*(r-o)>=(n-a)*(i-o)}function _V(s,e){return s.next.i!==e.i&&s.prev.i!==e.i&&!gV(s,e)&&(C_(s,e)&&C_(e,s)&&pV(s,e)&&(zt(s.prev,s,e.prev)||zt(s,e.prev,e))||d0(s,e)&&zt(s.prev,s,s.next)>0&&zt(e.prev,e,e.next)>0)}function zt(s,e,t){return(e.y-s.y)*(t.x-e.x)-(e.x-s.x)*(t.y-e.y)}function d0(s,e){return s.x===e.x&&s.y===e.y}function X3(s,e,t,i){var n=Kg(zt(s,e,t)),r=Kg(zt(s,e,i)),a=Kg(zt(t,i,s)),o=Kg(zt(t,i,e));return!!(n!==r&&a!==o||n===0&&Xg(s,t,e)||r===0&&Xg(s,i,e)||a===0&&Xg(t,s,i)||o===0&&Xg(t,e,i))}function Xg(s,e,t){return e.x<=Math.max(s.x,t.x)&&e.x>=Math.min(s.x,t.x)&&e.y<=Math.max(s.y,t.y)&&e.y>=Math.min(s.y,t.y)}function Kg(s){return s>0?1:s<0?-1:0}function gV(s,e){var t=s;do{if(t.i!==s.i&&t.next.i!==s.i&&t.i!==e.i&&t.next.i!==e.i&&X3(t,t.next,s,e))return!0;t=t.next}while(t!==s);return!1}function C_(s,e){return zt(s.prev,s,s.next)<0?zt(s,e,s.next)>=0&&zt(s,s.prev,e)>=0:zt(s,e,s.prev)<0||zt(s,s.next,e)<0}function pV(s,e){var t=s,i=!1,n=(s.x+e.x)/2,r=(s.y+e.y)/2;do t.y>r!=t.next.y>r&&t.next.y!==t.y&&n<(t.next.x-t.x)*(r-t.y)/(t.next.y-t.y)+t.x&&(i=!i),t=t.next;while(t!==s);return i}function K3(s,e){var t=new DI(s.i,s.x,s.y),i=new DI(e.i,e.x,e.y),n=s.next,r=e.prev;return s.next=e,e.prev=s,t.next=n,n.prev=t,i.next=t,t.prev=i,r.next=i,i.prev=r,i}function jM(s,e,t,i){var n=new DI(s,e,t);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function M_(s){s.next.prev=s.prev,s.prev.next=s.next,s.prevZ&&(s.prevZ.nextZ=s.nextZ),s.nextZ&&(s.nextZ.prevZ=s.prevZ)}function DI(s,e,t){this.i=s,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}f0.deviation=function(s,e,t,i){var n=e&&e.length,r=n?e[0]*t:s.length,a=Math.abs(LI(s,0,r,t));if(n)for(var o=0,l=e.length;o<l;o++){var u=e[o]*t,c=o<l-1?e[o+1]*t:s.length;a-=Math.abs(LI(s,u,c,t))}var h=0;for(o=0;o<i.length;o+=3){var f=i[o]*t,d=i[o+1]*t,_=i[o+2]*t;h+=Math.abs((s[f]-s[_])*(s[d+1]-s[f+1])-(s[f]-s[d])*(s[_+1]-s[f+1]))}return a===0&&h===0?0:Math.abs((h-a)/a)};function LI(s,e,t,i){for(var n=0,r=e,a=t-i;r<t;r+=i)n+=(s[a]-s[r])*(s[r+1]+s[a+1]),a=r;return n}f0.flatten=function(s){for(var e=s[0][0].length,t={vertices:[],holes:[],dimensions:e},i=0,n=0;n<s.length;n++){for(var r=0;r<s[n].length;r++)for(var a=0;a<e;a++)t.vertices.push(s[n][r][a]);n>0&&(i+=s[n-1].length,t.holes.push(i))}return t};var mV=dw.exports;const q3=nr(mV);var wm={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */wm.exports;(function(s,e){(function(t){var i=e&&!e.nodeType&&e,n=s&&!s.nodeType&&s,r=typeof Zi=="object"&&Zi;(r.global===r||r.window===r||r.self===r)&&(t=r);var a,o=2147483647,l=36,u=1,c=26,h=38,f=700,d=72,_=128,g="-",p=/^xn--/,m=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=l-u,T=Math.floor,w=String.fromCharCode,C;function N(B){throw new RangeError(E[B])}function P(B,$){for(var fe=B.length,xe=[];fe--;)xe[fe]=$(B[fe]);return xe}function k(B,$){var fe=B.split("@"),xe="";fe.length>1&&(xe=fe[0]+"@",B=fe[1]),B=B.replace(v,".");var me=B.split("."),De=P(me,$).join(".");return xe+De}function L(B){for(var $=[],fe=0,xe=B.length,me,De;fe<xe;)me=B.charCodeAt(fe++),me>=55296&&me<=56319&&fe<xe?(De=B.charCodeAt(fe++),(De&64512)==56320?$.push(((me&1023)<<10)+(De&1023)+65536):($.push(me),fe--)):$.push(me);return $}function j(B){return P(B,function($){var fe="";return $>65535&&($-=65536,fe+=w($>>>10&1023|55296),$=56320|$&1023),fe+=w($),fe}).join("")}function z(B){return B-48<10?B-22:B-65<26?B-65:B-97<26?B-97:l}function ne(B,$){return B+22+75*(B<26)-(($!=0)<<5)}function G(B,$,fe){var xe=0;for(B=fe?T(B/f):B>>1,B+=T(B/$);B>y*c>>1;xe+=l)B=T(B/y);return T(xe+(y+1)*B/(B+h))}function Y(B){var $=[],fe=B.length,xe,me=0,De=_,we=d,it,at,bt,At,ct,Qe,gt,ki,Ue;for(it=B.lastIndexOf(g),it<0&&(it=0),at=0;at<it;++at)B.charCodeAt(at)>=128&&N("not-basic"),$.push(B.charCodeAt(at));for(bt=it>0?it+1:0;bt<fe;){for(At=me,ct=1,Qe=l;bt>=fe&&N("invalid-input"),gt=z(B.charCodeAt(bt++)),(gt>=l||gt>T((o-me)/ct))&&N("overflow"),me+=gt*ct,ki=Qe<=we?u:Qe>=we+c?c:Qe-we,!(gt<ki);Qe+=l)Ue=l-ki,ct>T(o/Ue)&&N("overflow"),ct*=Ue;xe=$.length+1,we=G(me-At,xe,At==0),T(me/xe)>o-De&&N("overflow"),De+=T(me/xe),me%=xe,$.splice(me++,0,De)}return j($)}function K(B){var $,fe,xe,me,De,we,it,at,bt,At,ct,Qe=[],gt,ki,Ue,st;for(B=L(B),gt=B.length,$=_,fe=0,De=d,we=0;we<gt;++we)ct=B[we],ct<128&&Qe.push(w(ct));for(xe=me=Qe.length,me&&Qe.push(g);xe<gt;){for(it=o,we=0;we<gt;++we)ct=B[we],ct>=$&&ct<it&&(it=ct);for(ki=xe+1,it-$>T((o-fe)/ki)&&N("overflow"),fe+=(it-$)*ki,$=it,we=0;we<gt;++we)if(ct=B[we],ct<$&&++fe>o&&N("overflow"),ct==$){for(at=fe,bt=l;At=bt<=De?u:bt>=De+c?c:bt-De,!(at<At);bt+=l)st=at-At,Ue=l-At,Qe.push(w(ne(At+st%Ue,0))),at=T(st/Ue);Qe.push(w(ne(at,0))),De=G(fe,ki,xe==me),fe=0,++xe}++fe,++$}return Qe.join("")}function H(B){return k(B,function($){return p.test($)?Y($.slice(4).toLowerCase()):$})}function J(B){return k(B,function($){return m.test($)?"xn--"+K($):$})}if(a={version:"1.4.1",ucs2:{decode:L,encode:j},decode:Y,encode:K,toASCII:J,toUnicode:H},i&&n)if(s.exports==i)n.exports=a;else for(C in a)a.hasOwnProperty(C)&&(i[C]=a[C]);else t.punycode=a})(Zi)})(wm,wm.exports);var vV=wm.exports,gf=TypeError;const EV={},yV=Object.freeze(Object.defineProperty({__proto__:null,default:EV},Symbol.toStringTag,{value:"Module"})),TV=RG(yV);var _w=typeof Map=="function"&&Map.prototype,py=Object.getOwnPropertyDescriptor&&_w?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Cm=_w&&py&&typeof py.get=="function"?py.get:null,zM=_w&&Map.prototype.forEach,gw=typeof Set=="function"&&Set.prototype,my=Object.getOwnPropertyDescriptor&&gw?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Mm=gw&&my&&typeof my.get=="function"?my.get:null,HM=gw&&Set.prototype.forEach,IV=typeof WeakMap=="function"&&WeakMap.prototype,sd=IV?WeakMap.prototype.has:null,RV=typeof WeakSet=="function"&&WeakSet.prototype,nd=RV?WeakSet.prototype.has:null,SV=typeof WeakRef=="function"&&WeakRef.prototype,WM=SV?WeakRef.prototype.deref:null,bV=Boolean.prototype.valueOf,AV=Object.prototype.toString,OV=Function.prototype.toString,wV=String.prototype.match,pw=String.prototype.slice,Co=String.prototype.replace,CV=String.prototype.toUpperCase,YM=String.prototype.toLowerCase,$3=RegExp.prototype.test,XM=Array.prototype.concat,Cr=Array.prototype.join,MV=Array.prototype.slice,KM=Math.floor,UI=typeof BigInt=="function"?BigInt.prototype.valueOf:null,vy=Object.getOwnPropertySymbols,FI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,zc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rd=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===zc||!0)?Symbol.toStringTag:null,Q3=Object.prototype.propertyIsEnumerable,qM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(s){return s.__proto__}:null);function $M(s,e){if(s===1/0||s===-1/0||s!==s||s&&s>-1e3&&s<1e3||$3.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof s=="number"){var i=s<0?-KM(-s):KM(s);if(i!==s){var n=String(i),r=pw.call(e,n.length+1);return Co.call(n,t,"$&_")+"."+Co.call(Co.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Co.call(e,t,"$&_")}var BI=TV,QM=BI.custom,ZM=eU(QM)?QM:null,Z3={__proto__:null,double:'"',single:"'"},NV={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},_0=function s(e,t,i,n){var r=t||{};if(Jr(r,"quoteStyle")&&!Jr(Z3,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Jr(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Jr(r,"customInspect")?r.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Jr(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Jr(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return iU(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?$M(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?$M(e,u):u}var c=typeof r.depth>"u"?5:r.depth;if(typeof i>"u"&&(i=0),i>=c&&c>0&&typeof e=="object")return GI(e)?"[Array]":"[Object]";var h=qV(r,i);if(typeof n>"u")n=[];else if(tU(n,e)>=0)return"[Circular]";function f(z,ne,G){if(ne&&(n=MV.call(n),n.push(ne)),G){var Y={depth:r.depth};return Jr(r,"quoteStyle")&&(Y.quoteStyle=r.quoteStyle),s(z,Y,i+1,n)}return s(z,r,i+1,n)}if(typeof e=="function"&&!JM(e)){var d=GV(e),_=qg(e,f);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(_.length>0?" { "+Cr.call(_,", ")+" }":"")}if(eU(e)){var g=zc?Co.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):FI.call(e);return typeof e=="object"&&!zc?Cf(g):g}if(YV(e)){for(var p="<"+YM.call(String(e.nodeName)),m=e.attributes||[],v=0;v<m.length;v++)p+=" "+m[v].name+"="+J3(PV(m[v].value),"double",r);return p+=">",e.childNodes&&e.childNodes.length&&(p+="..."),p+="</"+YM.call(String(e.nodeName))+">",p}if(GI(e)){if(e.length===0)return"[]";var E=qg(e,f);return h&&!KV(E)?"["+VI(E,h)+"]":"[ "+Cr.call(E,", ")+" ]"}if(xV(e)){var y=qg(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Q3.call(e,"cause")?"{ ["+String(e)+"] "+Cr.call(XM.call("[cause]: "+f(e.cause),y),", ")+" }":y.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Cr.call(y,", ")+" }"}if(typeof e=="object"&&a){if(ZM&&typeof e[ZM]=="function"&&BI)return BI(e,{depth:c-i});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(VV(e)){var T=[];return zM&&zM.call(e,function(z,ne){T.push(f(ne,e,!0)+" => "+f(z,e))}),eN("Map",Cm.call(e),T,h)}if(HV(e)){var w=[];return HM&&HM.call(e,function(z){w.push(f(z,e))}),eN("Set",Mm.call(e),w,h)}if(jV(e))return Ey("WeakMap");if(WV(e))return Ey("WeakSet");if(zV(e))return Ey("WeakRef");if(LV(e))return Cf(f(Number(e)));if(FV(e))return Cf(f(UI.call(e)));if(UV(e))return Cf(bV.call(e));if(DV(e))return Cf(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof Zi<"u"&&e===Zi)return"{ [object globalThis] }";if(!kV(e)&&!JM(e)){var C=qg(e,f),N=qM?qM(e)===Object.prototype:e instanceof Object||e.constructor===Object,P=e instanceof Object?"":"null prototype",k=!N&&rd&&Object(e)===e&&rd in e?pw.call(ul(e),8,-1):P?"Object":"",L=N||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",j=L+(k||P?"["+Cr.call(XM.call([],k||[],P||[]),": ")+"] ":"");return C.length===0?j+"{}":h?j+"{"+VI(C,h)+"}":j+"{ "+Cr.call(C,", ")+" }"}return String(e)};function J3(s,e,t){var i=t.quoteStyle||e,n=Z3[i];return n+s+n}function PV(s){return Co.call(String(s),/"/g,"&quot;")}function Ku(s){return!rd||!(typeof s=="object"&&(rd in s||typeof s[rd]<"u"))}function GI(s){return ul(s)==="[object Array]"&&Ku(s)}function kV(s){return ul(s)==="[object Date]"&&Ku(s)}function JM(s){return ul(s)==="[object RegExp]"&&Ku(s)}function xV(s){return ul(s)==="[object Error]"&&Ku(s)}function DV(s){return ul(s)==="[object String]"&&Ku(s)}function LV(s){return ul(s)==="[object Number]"&&Ku(s)}function UV(s){return ul(s)==="[object Boolean]"&&Ku(s)}function eU(s){if(zc)return s&&typeof s=="object"&&s instanceof Symbol;if(typeof s=="symbol")return!0;if(!s||typeof s!="object"||!FI)return!1;try{return FI.call(s),!0}catch{}return!1}function FV(s){if(!s||typeof s!="object"||!UI)return!1;try{return UI.call(s),!0}catch{}return!1}var BV=Object.prototype.hasOwnProperty||function(s){return s in this};function Jr(s,e){return BV.call(s,e)}function ul(s){return AV.call(s)}function GV(s){if(s.name)return s.name;var e=wV.call(OV.call(s),/^function\s*([\w$]+)/);return e?e[1]:null}function tU(s,e){if(s.indexOf)return s.indexOf(e);for(var t=0,i=s.length;t<i;t++)if(s[t]===e)return t;return-1}function VV(s){if(!Cm||!s||typeof s!="object")return!1;try{Cm.call(s);try{Mm.call(s)}catch{return!0}return s instanceof Map}catch{}return!1}function jV(s){if(!sd||!s||typeof s!="object")return!1;try{sd.call(s,sd);try{nd.call(s,nd)}catch{return!0}return s instanceof WeakMap}catch{}return!1}function zV(s){if(!WM||!s||typeof s!="object")return!1;try{return WM.call(s),!0}catch{}return!1}function HV(s){if(!Mm||!s||typeof s!="object")return!1;try{Mm.call(s);try{Cm.call(s)}catch{return!0}return s instanceof Set}catch{}return!1}function WV(s){if(!nd||!s||typeof s!="object")return!1;try{nd.call(s,nd);try{sd.call(s,sd)}catch{return!0}return s instanceof WeakSet}catch{}return!1}function YV(s){return!s||typeof s!="object"?!1:typeof HTMLElement<"u"&&s instanceof HTMLElement?!0:typeof s.nodeName=="string"&&typeof s.getAttribute=="function"}function iU(s,e){if(s.length>e.maxStringLength){var t=s.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return iU(pw.call(s,0,e.maxStringLength),e)+i}var n=NV[e.quoteStyle||"single"];n.lastIndex=0;var r=Co.call(Co.call(s,n,"\\$1"),/[\x00-\x1f]/g,XV);return J3(r,"single",e)}function XV(s){var e=s.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+CV.call(e.toString(16))}function Cf(s){return"Object("+s+")"}function Ey(s){return s+" { ? }"}function eN(s,e,t,i){var n=i?VI(t,i):Cr.call(t,", ");return s+" ("+e+") {"+n+"}"}function KV(s){for(var e=0;e<s.length;e++)if(tU(s[e],`
`)>=0)return!1;return!0}function qV(s,e){var t;if(s.indent===" ")t=" ";else if(typeof s.indent=="number"&&s.indent>0)t=Cr.call(Array(s.indent+1)," ");else return null;return{base:t,prev:Cr.call(Array(e+1),t)}}function VI(s,e){if(s.length===0)return"";var t=`
`+e.prev+e.base;return t+Cr.call(s,","+t)+`
`+e.prev}function qg(s,e){var t=GI(s),i=[];if(t){i.length=s.length;for(var n=0;n<s.length;n++)i[n]=Jr(s,n)?e(s[n],s):""}var r=typeof vy=="function"?vy(s):[],a;if(zc){a={};for(var o=0;o<r.length;o++)a["$"+r[o]]=r[o]}for(var l in s)Jr(s,l)&&(t&&String(Number(l))===l&&l<s.length||zc&&a["$"+l]instanceof Symbol||($3.call(/[^\w$]/,l)?i.push(e(l,s)+": "+e(s[l],s)):i.push(l+": "+e(s[l],s))));if(typeof vy=="function")for(var u=0;u<r.length;u++)Q3.call(s,r[u])&&i.push("["+e(r[u])+"]: "+e(s[r[u]],s));return i}var $V=_0,QV=gf,g0=function(s,e,t){for(var i=s,n;(n=i.next)!=null;i=n)if(n.key===e)return i.next=n.next,t||(n.next=s.next,s.next=n),n},ZV=function(s,e){if(s){var t=g0(s,e);return t&&t.value}},JV=function(s,e,t){var i=g0(s,e);i?i.value=t:s.next={key:e,next:s.next,value:t}},ej=function(s,e){return s?!!g0(s,e):!1},tj=function(s,e){if(s)return g0(s,e,!0)},ij=function(){var e,t={assert:function(i){if(!t.has(i))throw new QV("Side channel does not contain "+$V(i))},delete:function(i){var n=e&&e.next,r=tj(e,i);return r&&n&&n===r&&(e=void 0),!!r},get:function(i){return ZV(e,i)},has:function(i){return ej(e,i)},set:function(i,n){e||(e={next:void 0}),JV(e,i,n)}};return t},sU=Object,sj=Error,nj=EvalError,rj=RangeError,aj=ReferenceError,oj=SyntaxError,lj=URIError,uj=Math.abs,hj=Math.floor,cj=Math.max,fj=Math.min,dj=Math.pow,_j=Math.round,gj=Number.isNaN||function(e){return e!==e},pj=gj,mj=function(e){return pj(e)||e===0?e:e<0?-1:1},vj=Object.getOwnPropertyDescriptor,Bp=vj;if(Bp)try{Bp([],"length")}catch{Bp=null}var nU=Bp,Gp=Object.defineProperty||!1;if(Gp)try{Gp({},"a",{value:1})}catch{Gp=!1}var Ej=Gp,yy,tN;function yj(){return tN||(tN=1,yy=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[t]=n;for(var r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||o.enumerable!==!0)return!1}return!0}),yy}var Ty,iN;function Tj(){if(iN)return Ty;iN=1;var s=typeof Symbol<"u"&&Symbol,e=yj();return Ty=function(){return typeof s!="function"||typeof Symbol!="function"||typeof s("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ty}var Iy,sN;function rU(){return sN||(sN=1,Iy=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Iy}var Ry,nN;function aU(){if(nN)return Ry;nN=1;var s=sU;return Ry=s.getPrototypeOf||null,Ry}var Ij="Function.prototype.bind called on incompatible ",Rj=Object.prototype.toString,Sj=Math.max,bj="[object Function]",rN=function(e,t){for(var i=[],n=0;n<e.length;n+=1)i[n]=e[n];for(var r=0;r<t.length;r+=1)i[r+e.length]=t[r];return i},Aj=function(e,t){for(var i=[],n=t,r=0;n<e.length;n+=1,r+=1)i[r]=e[n];return i},Oj=function(s,e){for(var t="",i=0;i<s.length;i+=1)t+=s[i],i+1<s.length&&(t+=e);return t},wj=function(e){var t=this;if(typeof t!="function"||Rj.apply(t)!==bj)throw new TypeError(Ij+t);for(var i=Aj(arguments,1),n,r=function(){if(this instanceof n){var c=t.apply(this,rN(i,arguments));return Object(c)===c?c:this}return t.apply(e,rN(i,arguments))},a=Sj(0,t.length-i.length),o=[],l=0;l<a;l++)o[l]="$"+l;if(n=Function("binder","return function ("+Oj(o,",")+"){ return binder.apply(this,arguments); }")(r),t.prototype){var u=function(){};u.prototype=t.prototype,n.prototype=new u,u.prototype=null}return n},Cj=wj,p0=Function.prototype.bind||Cj,mw=Function.prototype.call,Sy,aN;function oU(){return aN||(aN=1,Sy=Function.prototype.apply),Sy}var Mj=typeof Reflect<"u"&&Reflect&&Reflect.apply,Nj=p0,Pj=oU(),kj=mw,xj=Mj,Dj=xj||Nj.call(kj,Pj),Lj=p0,Uj=gf,Fj=mw,Bj=Dj,lU=function(e){if(e.length<1||typeof e[0]!="function")throw new Uj("a function is required");return Bj(Lj,Fj,e)},by,oN;function Gj(){if(oN)return by;oN=1;var s=lU,e=nU,t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var i=!!t&&e&&e(Object.prototype,"__proto__"),n=Object,r=n.getPrototypeOf;return by=i&&typeof i.get=="function"?s([i.get]):typeof r=="function"?function(o){return r(o==null?o:n(o))}:!1,by}var Ay,lN;function Vj(){if(lN)return Ay;lN=1;var s=rU(),e=aU(),t=Gj();return Ay=s?function(n){return s(n)}:e?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return e(n)}:t?function(n){return t(n)}:null,Ay}var Oy,uN;function jj(){if(uN)return Oy;uN=1;var s=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=p0;return Oy=t.call(s,e),Oy}var Ze,zj=sU,Hj=sj,Wj=nj,Yj=rj,Xj=aj,Hc=oj,Cc=gf,Kj=lj,qj=uj,$j=hj,Qj=cj,Zj=fj,Jj=dj,ez=_j,tz=mj,uU=Function,wy=function(s){try{return uU('"use strict"; return ('+s+").constructor;")()}catch{}},N_=nU,iz=Ej,Cy=function(){throw new Cc},sz=N_?function(){try{return arguments.callee,Cy}catch{try{return N_(arguments,"callee").get}catch{return Cy}}}():Cy,ih=Tj()(),Ai=Vj(),nz=aU(),rz=rU(),hU=oU(),pg=mw,uh={},az=typeof Uint8Array>"u"||!Ai?Ze:Ai(Uint8Array),Iu={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ze:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ze:ArrayBuffer,"%ArrayIteratorPrototype%":ih&&Ai?Ai([][Symbol.iterator]()):Ze,"%AsyncFromSyncIteratorPrototype%":Ze,"%AsyncFunction%":uh,"%AsyncGenerator%":uh,"%AsyncGeneratorFunction%":uh,"%AsyncIteratorPrototype%":uh,"%Atomics%":typeof Atomics>"u"?Ze:Atomics,"%BigInt%":typeof BigInt>"u"?Ze:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ze:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ze:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ze:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Hj,"%eval%":eval,"%EvalError%":Wj,"%Float16Array%":typeof Float16Array>"u"?Ze:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ze:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ze:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ze:FinalizationRegistry,"%Function%":uU,"%GeneratorFunction%":uh,"%Int8Array%":typeof Int8Array>"u"?Ze:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ze:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ze:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ih&&Ai?Ai(Ai([][Symbol.iterator]())):Ze,"%JSON%":typeof JSON=="object"?JSON:Ze,"%Map%":typeof Map>"u"?Ze:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ih||!Ai?Ze:Ai(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":zj,"%Object.getOwnPropertyDescriptor%":N_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ze:Promise,"%Proxy%":typeof Proxy>"u"?Ze:Proxy,"%RangeError%":Yj,"%ReferenceError%":Xj,"%Reflect%":typeof Reflect>"u"?Ze:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ze:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ih||!Ai?Ze:Ai(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ze:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ih&&Ai?Ai(""[Symbol.iterator]()):Ze,"%Symbol%":ih?Symbol:Ze,"%SyntaxError%":Hc,"%ThrowTypeError%":sz,"%TypedArray%":az,"%TypeError%":Cc,"%Uint8Array%":typeof Uint8Array>"u"?Ze:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ze:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ze:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ze:Uint32Array,"%URIError%":Kj,"%WeakMap%":typeof WeakMap>"u"?Ze:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ze:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ze:WeakSet,"%Function.prototype.call%":pg,"%Function.prototype.apply%":hU,"%Object.defineProperty%":iz,"%Object.getPrototypeOf%":nz,"%Math.abs%":qj,"%Math.floor%":$j,"%Math.max%":Qj,"%Math.min%":Zj,"%Math.pow%":Jj,"%Math.round%":ez,"%Math.sign%":tz,"%Reflect.getPrototypeOf%":rz};if(Ai)try{null.error}catch(s){var oz=Ai(Ai(s));Iu["%Error.prototype%"]=oz}var lz=function s(e){var t;if(e==="%AsyncFunction%")t=wy("async function () {}");else if(e==="%GeneratorFunction%")t=wy("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=wy("async function* () {}");else if(e==="%AsyncGenerator%"){var i=s("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=s("%AsyncGenerator%");n&&Ai&&(t=Ai(n.prototype))}return Iu[e]=t,t},hN={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},mg=p0,Nm=jj(),uz=mg.call(pg,Array.prototype.concat),hz=mg.call(hU,Array.prototype.splice),cN=mg.call(pg,String.prototype.replace),Pm=mg.call(pg,String.prototype.slice),cz=mg.call(pg,RegExp.prototype.exec),fz=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dz=/\\(\\)?/g,_z=function(e){var t=Pm(e,0,1),i=Pm(e,-1);if(t==="%"&&i!=="%")throw new Hc("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new Hc("invalid intrinsic syntax, expected opening `%`");var n=[];return cN(e,fz,function(r,a,o,l){n[n.length]=o?cN(l,dz,"$1"):a||r}),n},gz=function(e,t){var i=e,n;if(Nm(hN,i)&&(n=hN[i],i="%"+n[0]+"%"),Nm(Iu,i)){var r=Iu[i];if(r===uh&&(r=lz(i)),typeof r>"u"&&!t)throw new Cc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new Hc("intrinsic "+e+" does not exist!")},vw=function(e,t){if(typeof e!="string"||e.length===0)throw new Cc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Cc('"allowMissing" argument must be a boolean');if(cz(/^%?[^%]*%?$/,e)===null)throw new Hc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=_z(e),n=i.length>0?i[0]:"",r=gz("%"+n+"%",t),a=r.name,o=r.value,l=!1,u=r.alias;u&&(n=u[0],hz(i,uz([0,1],u)));for(var c=1,h=!0;c<i.length;c+=1){var f=i[c],d=Pm(f,0,1),_=Pm(f,-1);if((d==='"'||d==="'"||d==="`"||_==='"'||_==="'"||_==="`")&&d!==_)throw new Hc("property names with quotes must have matching quotes");if((f==="constructor"||!h)&&(l=!0),n+="."+f,a="%"+n+"%",Nm(Iu,a))o=Iu[a];else if(o!=null){if(!(f in o)){if(!t)throw new Cc("base intrinsic for "+e+" exists, but the property is not available.");return}if(N_&&c+1>=i.length){var g=N_(o,f);h=!!g,h&&"get"in g&&!("originalValue"in g.get)?o=g.get:o=o[f]}else h=Nm(o,f),o=o[f];h&&!l&&(Iu[a]=o)}}return o},cU=vw,fU=lU,pz=fU([cU("%String.prototype.indexOf%")]),dU=function(e,t){var i=cU(e,!!t);return typeof i=="function"&&pz(e,".prototype.")>-1?fU([i]):i},mz=vw,vg=dU,vz=_0,Ez=gf,fN=mz("%Map%",!0),yz=vg("Map.prototype.get",!0),Tz=vg("Map.prototype.set",!0),Iz=vg("Map.prototype.has",!0),Rz=vg("Map.prototype.delete",!0),Sz=vg("Map.prototype.size",!0),_U=!!fN&&function(){var e,t={assert:function(i){if(!t.has(i))throw new Ez("Side channel does not contain "+vz(i))},delete:function(i){if(e){var n=Rz(e,i);return Sz(e)===0&&(e=void 0),n}return!1},get:function(i){if(e)return yz(e,i)},has:function(i){return e?Iz(e,i):!1},set:function(i,n){e||(e=new fN),Tz(e,i,n)}};return t},bz=vw,m0=dU,Az=_0,$g=_U,Oz=gf,sh=bz("%WeakMap%",!0),wz=m0("WeakMap.prototype.get",!0),Cz=m0("WeakMap.prototype.set",!0),Mz=m0("WeakMap.prototype.has",!0),Nz=m0("WeakMap.prototype.delete",!0),Pz=sh?function(){var e,t,i={assert:function(n){if(!i.has(n))throw new Oz("Side channel does not contain "+Az(n))},delete:function(n){if(sh&&n&&(typeof n=="object"||typeof n=="function")){if(e)return Nz(e,n)}else if($g&&t)return t.delete(n);return!1},get:function(n){return sh&&n&&(typeof n=="object"||typeof n=="function")&&e?wz(e,n):t&&t.get(n)},has:function(n){return sh&&n&&(typeof n=="object"||typeof n=="function")&&e?Mz(e,n):!!t&&t.has(n)},set:function(n,r){sh&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new sh),Cz(e,n,r)):$g&&(t||(t=$g()),t.set(n,r))}};return i}:$g,kz=gf,xz=_0,Dz=ij,Lz=_U,Uz=Pz,Fz=Uz||Lz||Dz,Bz=function(){var e,t={assert:function(i){if(!t.has(i))throw new kz("Side channel does not contain "+xz(i))},delete:function(i){return!!e&&e.delete(i)},get:function(i){return e&&e.get(i)},has:function(i){return!!e&&e.has(i)},set:function(i,n){e||(e=Fz()),e.set(i,n)}};return t},Gz=String.prototype.replace,Vz=/%20/g,My={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ew={default:My.RFC3986,formatters:{RFC1738:function(s){return Gz.call(s,Vz,"+")},RFC3986:function(s){return String(s)}},RFC1738:My.RFC1738,RFC3986:My.RFC3986},jz=Ew,Ny=Object.prototype.hasOwnProperty,kl=Array.isArray,or=function(){for(var s=[],e=0;e<256;++e)s.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return s}(),zz=function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(kl(i)){for(var n=[],r=0;r<i.length;++r)typeof i[r]<"u"&&n.push(i[r]);t.obj[t.prop]=n}}},gU=function(e,t){for(var i=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(i[n]=e[n]);return i},Hz=function s(e,t,i){if(!t)return e;if(typeof t!="object"&&typeof t!="function"){if(kl(e))e.push(t);else if(e&&typeof e=="object")(i&&(i.plainObjects||i.allowPrototypes)||!Ny.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var n=e;return kl(e)&&!kl(t)&&(n=gU(e,i)),kl(e)&&kl(t)?(t.forEach(function(r,a){if(Ny.call(e,a)){var o=e[a];o&&typeof o=="object"&&r&&typeof r=="object"?e[a]=s(o,r,i):e.push(r)}else e[a]=r}),e):Object.keys(t).reduce(function(r,a){var o=t[a];return Ny.call(r,a)?r[a]=s(r[a],o,i):r[a]=o,r},n)},Wz=function(e,t){return Object.keys(t).reduce(function(i,n){return i[n]=t[n],i},e)},Yz=function(s,e,t){var i=s.replace(/\+/g," ");if(t==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},Py=1024,Xz=function(e,t,i,n,r){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),i==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var o="",l=0;l<a.length;l+=Py){for(var u=a.length>=Py?a.slice(l,l+Py):a,c=[],h=0;h<u.length;++h){var f=u.charCodeAt(h);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||r===jz.RFC1738&&(f===40||f===41)){c[c.length]=u.charAt(h);continue}if(f<128){c[c.length]=or[f];continue}if(f<2048){c[c.length]=or[192|f>>6]+or[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=or[224|f>>12]+or[128|f>>6&63]+or[128|f&63];continue}h+=1,f=65536+((f&1023)<<10|u.charCodeAt(h)&1023),c[c.length]=or[240|f>>18]+or[128|f>>12&63]+or[128|f>>6&63]+or[128|f&63]}o+=c.join("")}return o},Kz=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var r=t[n],a=r.obj[r.prop],o=Object.keys(a),l=0;l<o.length;++l){var u=o[l],c=a[u];typeof c=="object"&&c!==null&&i.indexOf(c)===-1&&(t.push({obj:a,prop:u}),i.push(c))}return zz(t),e},qz=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},$z=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Qz=function(e,t){return[].concat(e,t)},Zz=function(e,t){if(kl(e)){for(var i=[],n=0;n<e.length;n+=1)i.push(t(e[n]));return i}return t(e)},pU={arrayToObject:gU,assign:Wz,combine:Qz,compact:Kz,decode:Yz,encode:Xz,isBuffer:$z,isRegExp:qz,maybeMap:Zz,merge:Hz},mU=Bz,Vp=pU,ad=Ew,Jz=Object.prototype.hasOwnProperty,vU={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Or=Array.isArray,eH=Array.prototype.push,EU=function(s,e){eH.apply(s,Or(e)?e:[e])},tH=Date.prototype.toISOString,dN=ad.default,vi={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Vp.encode,encodeValuesOnly:!1,filter:void 0,format:dN,formatter:ad.formatters[dN],indices:!1,serializeDate:function(e){return tH.call(e)},skipNulls:!1,strictNullHandling:!1},iH=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ky={},sH=function s(e,t,i,n,r,a,o,l,u,c,h,f,d,_,g,p,m,v){for(var E=e,y=v,T=0,w=!1;(y=y.get(ky))!==void 0&&!w;){var C=y.get(e);if(T+=1,typeof C<"u"){if(C===T)throw new RangeError("Cyclic object value");w=!0}typeof y.get(ky)>"u"&&(T=0)}if(typeof c=="function"?E=c(t,E):E instanceof Date?E=d(E):i==="comma"&&Or(E)&&(E=Vp.maybeMap(E,function(B){return B instanceof Date?d(B):B})),E===null){if(a)return u&&!p?u(t,vi.encoder,m,"key",_):t;E=""}if(iH(E)||Vp.isBuffer(E)){if(u){var N=p?t:u(t,vi.encoder,m,"key",_);return[g(N)+"="+g(u(E,vi.encoder,m,"value",_))]}return[g(t)+"="+g(String(E))]}var P=[];if(typeof E>"u")return P;var k;if(i==="comma"&&Or(E))p&&u&&(E=Vp.maybeMap(E,u)),k=[{value:E.length>0?E.join(",")||null:void 0}];else if(Or(c))k=c;else{var L=Object.keys(E);k=h?L.sort(h):L}var j=l?String(t).replace(/\./g,"%2E"):String(t),z=n&&Or(E)&&E.length===1?j+"[]":j;if(r&&Or(E)&&E.length===0)return z+"[]";for(var ne=0;ne<k.length;++ne){var G=k[ne],Y=typeof G=="object"&&G&&typeof G.value<"u"?G.value:E[G];if(!(o&&Y===null)){var K=f&&l?String(G).replace(/\./g,"%2E"):String(G),H=Or(E)?typeof i=="function"?i(z,K):z:z+(f?"."+K:"["+K+"]");v.set(e,T);var J=mU();J.set(ky,v),EU(P,s(Y,H,i,n,r,a,o,l,i==="comma"&&p&&Or(E)?null:u,c,h,f,d,_,g,p,m,J))}}return P},nH=function(e){if(!e)return vi;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||vi.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=ad.default;if(typeof e.format<"u"){if(!Jz.call(ad.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=ad.formatters[i],r=vi.filter;(typeof e.filter=="function"||Or(e.filter))&&(r=e.filter);var a;if(e.arrayFormat in vU?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=vi.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var o=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:vi.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:vi.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:vi.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:vi.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?vi.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:vi.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:vi.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:vi.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:vi.encodeValuesOnly,filter:r,format:i,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:vi.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:vi.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:vi.strictNullHandling}},rH=function(s,e){var t=s,i=nH(e),n,r;typeof i.filter=="function"?(r=i.filter,t=r("",t)):Or(i.filter)&&(r=i.filter,n=r);var a=[];if(typeof t!="object"||t===null)return"";var o=vU[i.arrayFormat],l=o==="comma"&&i.commaRoundTrip;n||(n=Object.keys(t)),i.sort&&n.sort(i.sort);for(var u=mU(),c=0;c<n.length;++c){var h=n[c],f=t[h];i.skipNulls&&f===null||EU(a,sH(f,h,o,l,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,u))}var d=a.join(i.delimiter),_=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),d.length>0?_+d:""},Du=pU,jI=Object.prototype.hasOwnProperty,_N=Array.isArray,$t={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Du.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},aH=function(s){return s.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},yU=function(s,e,t){if(s&&typeof s=="string"&&e.comma&&s.indexOf(",")>-1)return s.split(",");if(e.throwOnLimitExceeded&&t>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return s},oH="utf8=%26%2310003%3B",lH="utf8=%E2%9C%93",uH=function(e,t){var i={__proto__:null},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=t.parameterLimit===1/0?void 0:t.parameterLimit,a=n.split(t.delimiter,t.throwOnLimitExceeded?r+1:r);if(t.throwOnLimitExceeded&&a.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(r===1?"":"s")+" allowed.");var o=-1,l,u=t.charset;if(t.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===lH?u="utf-8":a[l]===oH&&(u="iso-8859-1"),o=l,l=a.length);for(l=0;l<a.length;++l)if(l!==o){var c=a[l],h=c.indexOf("]="),f=h===-1?c.indexOf("="):h+1,d,_;f===-1?(d=t.decoder(c,$t.decoder,u,"key"),_=t.strictNullHandling?null:""):(d=t.decoder(c.slice(0,f),$t.decoder,u,"key"),_=Du.maybeMap(yU(c.slice(f+1),t,_N(i[d])?i[d].length:0),function(p){return t.decoder(p,$t.decoder,u,"value")})),_&&t.interpretNumericEntities&&u==="iso-8859-1"&&(_=aH(String(_))),c.indexOf("[]=")>-1&&(_=_N(_)?[_]:_);var g=jI.call(i,d);g&&t.duplicates==="combine"?i[d]=Du.combine(i[d],_):(!g||t.duplicates==="last")&&(i[d]=_)}return i},hH=function(s,e,t,i){var n=0;if(s.length>0&&s[s.length-1]==="[]"){var r=s.slice(0,-1).join("");n=Array.isArray(e)&&e[r]?e[r].length:0}for(var a=i?e:yU(e,t,n),o=s.length-1;o>=0;--o){var l,u=s[o];if(u==="[]"&&t.parseArrays)l=t.allowEmptyArrays&&(a===""||t.strictNullHandling&&a===null)?[]:Du.combine([],a);else{l=t.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,h=t.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(h,10);!t.parseArrays&&h===""?l={0:a}:!isNaN(f)&&u!==h&&String(f)===h&&f>=0&&t.parseArrays&&f<=t.arrayLimit?(l=[],l[f]=a):h!=="__proto__"&&(l[h]=a)}a=l}return a},cH=function(e,t,i,n){if(e){var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=i.depth>0&&a.exec(r),u=l?r.slice(0,l.index):r,c=[];if(u){if(!i.plainObjects&&jI.call(Object.prototype,u)&&!i.allowPrototypes)return;c.push(u)}for(var h=0;i.depth>0&&(l=o.exec(r))!==null&&h<i.depth;){if(h+=1,!i.plainObjects&&jI.call(Object.prototype,l[1].slice(1,-1))&&!i.allowPrototypes)return;c.push(l[1])}if(l){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");c.push("["+r.slice(l.index)+"]")}return hH(c,t,i,n)}},fH=function(e){if(!e)return $t;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=typeof e.charset>"u"?$t.charset:e.charset,i=typeof e.duplicates>"u"?$t.duplicates:e.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:$t.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:$t.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:$t.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:$t.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:$t.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:$t.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:$t.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:$t.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:$t.decoder,delimiter:typeof e.delimiter=="string"||Du.isRegExp(e.delimiter)?e.delimiter:$t.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:$t.depth,duplicates:i,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:$t.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:$t.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:$t.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:$t.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:$t.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},dH=function(s,e){var t=fH(e);if(s===""||s===null||typeof s>"u")return t.plainObjects?{__proto__:null}:{};for(var i=typeof s=="string"?uH(s,t):s,n=t.plainObjects?{__proto__:null}:{},r=Object.keys(i),a=0;a<r.length;++a){var o=r[a],l=cH(o,i[o],t,typeof s=="string");n=Du.merge(n,l,t)}return t.allowSparse===!0?n:Du.compact(n)},_H=rH,gH=dH,pH=Ew,mH={formats:pH,parse:gH,stringify:_H},vH=vV;function er(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var EH=/^([a-z0-9.+-]+:)/i,yH=/:[0-9]*$/,TH=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,IH=["<",">",'"',"`"," ","\r",`
`," "],RH=["{","}","|","\\","^","`"].concat(IH),zI=["'"].concat(RH),gN=["%","/","?",";","#"].concat(zI),pN=["/","?","#"],SH=255,mN=/^[+a-z0-9A-Z_-]{0,63}$/,bH=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,AH={javascript:!0,"javascript:":!0},HI={javascript:!0,"javascript:":!0},Mc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},WI=mH;function v0(s,e,t){if(s&&typeof s=="object"&&s instanceof er)return s;var i=new er;return i.parse(s,e,t),i}er.prototype.parse=function(s,e,t){if(typeof s!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof s);var i=s.indexOf("?"),n=i!==-1&&i<s.indexOf("#")?"?":"#",r=s.split(n),a=/\\/g;r[0]=r[0].replace(a,"/"),s=r.join(n);var o=s;if(o=o.trim(),!t&&s.split("#").length===1){var l=TH.exec(o);if(l)return this.path=o,this.href=o,this.pathname=l[1],l[2]?(this.search=l[2],e?this.query=WI.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var u=EH.exec(o);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,o=o.substr(u.length)}if(t||u||o.match(/^\/\/[^@/]+@[^@/]+/)){var h=o.substr(0,2)==="//";h&&!(u&&HI[u])&&(o=o.substr(2),this.slashes=!0)}if(!HI[u]&&(h||u&&!Mc[u])){for(var f=-1,d=0;d<pN.length;d++){var _=o.indexOf(pN[d]);_!==-1&&(f===-1||_<f)&&(f=_)}var g,p;f===-1?p=o.lastIndexOf("@"):p=o.lastIndexOf("@",f),p!==-1&&(g=o.slice(0,p),o=o.slice(p+1),this.auth=decodeURIComponent(g)),f=-1;for(var d=0;d<gN.length;d++){var _=o.indexOf(gN[d]);_!==-1&&(f===-1||_<f)&&(f=_)}f===-1&&(f=o.length),this.host=o.slice(0,f),o=o.slice(f),this.parseHost(),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m)for(var v=this.hostname.split(/\./),d=0,E=v.length;d<E;d++){var y=v[d];if(y&&!y.match(mN)){for(var T="",w=0,C=y.length;w<C;w++)y.charCodeAt(w)>127?T+="x":T+=y[w];if(!T.match(mN)){var N=v.slice(0,d),P=v.slice(d+1),k=y.match(bH);k&&(N.push(k[1]),P.unshift(k[2])),P.length&&(o="/"+P.join(".")+o),this.hostname=N.join(".");break}}}this.hostname.length>SH?this.hostname="":this.hostname=this.hostname.toLowerCase(),m||(this.hostname=vH.toASCII(this.hostname));var L=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+L,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),o[0]!=="/"&&(o="/"+o))}if(!AH[c])for(var d=0,E=zI.length;d<E;d++){var z=zI[d];if(o.indexOf(z)!==-1){var ne=encodeURIComponent(z);ne===z&&(ne=escape(z)),o=o.split(z).join(ne)}}var G=o.indexOf("#");G!==-1&&(this.hash=o.substr(G),o=o.slice(0,G));var Y=o.indexOf("?");if(Y!==-1?(this.search=o.substr(Y),this.query=o.substr(Y+1),e&&(this.query=WI.parse(this.query)),o=o.slice(0,Y)):e&&(this.search="",this.query={}),o&&(this.pathname=o),Mc[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var L=this.pathname||"",K=this.search||"";this.path=L+K}return this.href=this.format(),this};function OH(s){return typeof s=="string"&&(s=v0(s)),s instanceof er?s.format():er.prototype.format.call(s)}er.prototype.format=function(){var s=this.auth||"";s&&(s=encodeURIComponent(s),s=s.replace(/%3A/i,":"),s+="@");var e=this.protocol||"",t=this.pathname||"",i=this.hash||"",n=!1,r="";this.host?n=s+this.host:this.hostname&&(n=s+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(r=WI.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||r&&"?"+r||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||Mc[e])&&n!==!1?(n="//"+(n||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):n||(n=""),i&&i.charAt(0)!=="#"&&(i="#"+i),a&&a.charAt(0)!=="?"&&(a="?"+a),t=t.replace(/[?#]/g,function(o){return encodeURIComponent(o)}),a=a.replace("#","%23"),e+n+t+a+i};function wH(s,e){return v0(s,!1,!0).resolve(e)}er.prototype.resolve=function(s){return this.resolveObject(v0(s,!1,!0)).format()};er.prototype.resolveObject=function(s){if(typeof s=="string"){var e=new er;e.parse(s,!1,!0),s=e}for(var t=new er,i=Object.keys(this),n=0;n<i.length;n++){var r=i[n];t[r]=this[r]}if(t.hash=s.hash,s.href==="")return t.href=t.format(),t;if(s.slashes&&!s.protocol){for(var a=Object.keys(s),o=0;o<a.length;o++){var l=a[o];l!=="protocol"&&(t[l]=s[l])}return Mc[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}if(s.protocol&&s.protocol!==t.protocol){if(!Mc[s.protocol]){for(var u=Object.keys(s),c=0;c<u.length;c++){var h=u[c];t[h]=s[h]}return t.href=t.format(),t}if(t.protocol=s.protocol,!s.host&&!HI[s.protocol]){for(var E=(s.pathname||"").split("/");E.length&&!(s.host=E.shift()););s.host||(s.host=""),s.hostname||(s.hostname=""),E[0]!==""&&E.unshift(""),E.length<2&&E.unshift(""),t.pathname=E.join("/")}else t.pathname=s.pathname;if(t.search=s.search,t.query=s.query,t.host=s.host||"",t.auth=s.auth,t.hostname=s.hostname||s.host,t.port=s.port,t.pathname||t.search){var f=t.pathname||"",d=t.search||"";t.path=f+d}return t.slashes=t.slashes||s.slashes,t.href=t.format(),t}var _=t.pathname&&t.pathname.charAt(0)==="/",g=s.host||s.pathname&&s.pathname.charAt(0)==="/",p=g||_||t.host&&s.pathname,m=p,v=t.pathname&&t.pathname.split("/")||[],E=s.pathname&&s.pathname.split("/")||[],y=t.protocol&&!Mc[t.protocol];if(y&&(t.hostname="",t.port=null,t.host&&(v[0]===""?v[0]=t.host:v.unshift(t.host)),t.host="",s.protocol&&(s.hostname=null,s.port=null,s.host&&(E[0]===""?E[0]=s.host:E.unshift(s.host)),s.host=null),p=p&&(E[0]===""||v[0]==="")),g)t.host=s.host||s.host===""?s.host:t.host,t.hostname=s.hostname||s.hostname===""?s.hostname:t.hostname,t.search=s.search,t.query=s.query,v=E;else if(E.length)v||(v=[]),v.pop(),v=v.concat(E),t.search=s.search,t.query=s.query;else if(s.search!=null){if(y){t.host=v.shift(),t.hostname=t.host;var T=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;T&&(t.auth=T.shift(),t.hostname=T.shift(),t.host=t.hostname)}return t.search=s.search,t.query=s.query,(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!v.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var w=v.slice(-1)[0],C=(t.host||s.host||v.length>1)&&(w==="."||w==="..")||w==="",N=0,P=v.length;P>=0;P--)w=v[P],w==="."?v.splice(P,1):w===".."?(v.splice(P,1),N++):N&&(v.splice(P,1),N--);if(!p&&!m)for(;N--;N)v.unshift("..");p&&v[0]!==""&&(!v[0]||v[0].charAt(0)!=="/")&&v.unshift(""),C&&v.join("/").substr(-1)!=="/"&&v.push("");var k=v[0]===""||v[0]&&v[0].charAt(0)==="/";if(y){t.hostname=k?"":v.length?v.shift():"",t.host=t.hostname;var T=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;T&&(t.auth=T.shift(),t.hostname=T.shift(),t.host=t.hostname)}return p=p||t.host&&v.length,p&&!k&&v.unshift(""),v.length>0?t.pathname=v.join("/"):(t.pathname=null,t.path=null),(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=s.auth||t.auth,t.slashes=t.slashes||s.slashes,t.href=t.format(),t};er.prototype.parseHost=function(){var s=this.host,e=yH.exec(s);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),s=s.substr(0,s.length-e.length)),s&&(this.hostname=s)};var CH=v0,MH=wH,NH=OH;/*!
* @pixi/utils - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/utils is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var jf={parse:CH,format:NH,resolve:MH};de.RETINA_PREFIX=/@([0-9\.]+)x/;de.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var vN=!1,EN="6.5.10";function PH(s){var e;if(!vN){if(de.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var t=[`
%c %c %c PixiJS `+EN+" - ✰ "+s+` ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥
`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(e=globalThis.console).log.apply(e,t)}else globalThis.console&&globalThis.console.log("PixiJS "+EN+" - "+s+" - http://www.pixijs.com/");vN=!0}}var xy;function kH(){return typeof xy>"u"&&(xy=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:de.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!de.ADAPTER.getWebGLRenderingContext())return!1;var t=de.ADAPTER.createCanvas(),i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),n=!!(i&&i.getContextAttributes().stencil);if(i){var r=i.getExtension("WEBGL_lose_context");r&&r.loseContext()}return i=null,n}catch{return!1}}()),xy}var xH="#f0f8ff",DH="#faebd7",LH="#00ffff",UH="#7fffd4",FH="#f0ffff",BH="#f5f5dc",GH="#ffe4c4",VH="#000000",jH="#ffebcd",zH="#0000ff",HH="#8a2be2",WH="#a52a2a",YH="#deb887",XH="#5f9ea0",KH="#7fff00",qH="#d2691e",$H="#ff7f50",QH="#6495ed",ZH="#fff8dc",JH="#dc143c",eW="#00ffff",tW="#00008b",iW="#008b8b",sW="#b8860b",nW="#a9a9a9",rW="#006400",aW="#a9a9a9",oW="#bdb76b",lW="#8b008b",uW="#556b2f",hW="#ff8c00",cW="#9932cc",fW="#8b0000",dW="#e9967a",_W="#8fbc8f",gW="#483d8b",pW="#2f4f4f",mW="#2f4f4f",vW="#00ced1",EW="#9400d3",yW="#ff1493",TW="#00bfff",IW="#696969",RW="#696969",SW="#1e90ff",bW="#b22222",AW="#fffaf0",OW="#228b22",wW="#ff00ff",CW="#dcdcdc",MW="#f8f8ff",NW="#daa520",PW="#ffd700",kW="#808080",xW="#008000",DW="#adff2f",LW="#808080",UW="#f0fff0",FW="#ff69b4",BW="#cd5c5c",GW="#4b0082",VW="#fffff0",jW="#f0e68c",zW="#fff0f5",HW="#e6e6fa",WW="#7cfc00",YW="#fffacd",XW="#add8e6",KW="#f08080",qW="#e0ffff",$W="#fafad2",QW="#d3d3d3",ZW="#90ee90",JW="#d3d3d3",eY="#ffb6c1",tY="#ffa07a",iY="#20b2aa",sY="#87cefa",nY="#778899",rY="#778899",aY="#b0c4de",oY="#ffffe0",lY="#00ff00",uY="#32cd32",hY="#faf0e6",cY="#ff00ff",fY="#800000",dY="#66cdaa",_Y="#0000cd",gY="#ba55d3",pY="#9370db",mY="#3cb371",vY="#7b68ee",EY="#00fa9a",yY="#48d1cc",TY="#c71585",IY="#191970",RY="#f5fffa",SY="#ffe4e1",bY="#ffe4b5",AY="#ffdead",OY="#000080",wY="#fdf5e6",CY="#808000",MY="#6b8e23",NY="#ffa500",PY="#ff4500",kY="#da70d6",xY="#eee8aa",DY="#98fb98",LY="#afeeee",UY="#db7093",FY="#ffefd5",BY="#ffdab9",GY="#cd853f",VY="#ffc0cb",jY="#dda0dd",zY="#b0e0e6",HY="#800080",WY="#663399",YY="#ff0000",XY="#bc8f8f",KY="#4169e1",qY="#8b4513",$Y="#fa8072",QY="#f4a460",ZY="#2e8b57",JY="#fff5ee",eX="#a0522d",tX="#c0c0c0",iX="#87ceeb",sX="#6a5acd",nX="#708090",rX="#708090",aX="#fffafa",oX="#00ff7f",lX="#4682b4",uX="#d2b48c",hX="#008080",cX="#d8bfd8",fX="#ff6347",dX="#40e0d0",_X="#ee82ee",gX="#f5deb3",pX="#ffffff",mX="#f5f5f5",vX="#ffff00",EX="#9acd32",yX={aliceblue:xH,antiquewhite:DH,aqua:LH,aquamarine:UH,azure:FH,beige:BH,bisque:GH,black:VH,blanchedalmond:jH,blue:zH,blueviolet:HH,brown:WH,burlywood:YH,cadetblue:XH,chartreuse:KH,chocolate:qH,coral:$H,cornflowerblue:QH,cornsilk:ZH,crimson:JH,cyan:eW,darkblue:tW,darkcyan:iW,darkgoldenrod:sW,darkgray:nW,darkgreen:rW,darkgrey:aW,darkkhaki:oW,darkmagenta:lW,darkolivegreen:uW,darkorange:hW,darkorchid:cW,darkred:fW,darksalmon:dW,darkseagreen:_W,darkslateblue:gW,darkslategray:pW,darkslategrey:mW,darkturquoise:vW,darkviolet:EW,deeppink:yW,deepskyblue:TW,dimgray:IW,dimgrey:RW,dodgerblue:SW,firebrick:bW,floralwhite:AW,forestgreen:OW,fuchsia:wW,gainsboro:CW,ghostwhite:MW,goldenrod:NW,gold:PW,gray:kW,green:xW,greenyellow:DW,grey:LW,honeydew:UW,hotpink:FW,indianred:BW,indigo:GW,ivory:VW,khaki:jW,lavenderblush:zW,lavender:HW,lawngreen:WW,lemonchiffon:YW,lightblue:XW,lightcoral:KW,lightcyan:qW,lightgoldenrodyellow:$W,lightgray:QW,lightgreen:ZW,lightgrey:JW,lightpink:eY,lightsalmon:tY,lightseagreen:iY,lightskyblue:sY,lightslategray:nY,lightslategrey:rY,lightsteelblue:aY,lightyellow:oY,lime:lY,limegreen:uY,linen:hY,magenta:cY,maroon:fY,mediumaquamarine:dY,mediumblue:_Y,mediumorchid:gY,mediumpurple:pY,mediumseagreen:mY,mediumslateblue:vY,mediumspringgreen:EY,mediumturquoise:yY,mediumvioletred:TY,midnightblue:IY,mintcream:RY,mistyrose:SY,moccasin:bY,navajowhite:AY,navy:OY,oldlace:wY,olive:CY,olivedrab:MY,orange:NY,orangered:PY,orchid:kY,palegoldenrod:xY,palegreen:DY,paleturquoise:LY,palevioletred:UY,papayawhip:FY,peachpuff:BY,peru:GY,pink:VY,plum:jY,powderblue:zY,purple:HY,rebeccapurple:WY,red:YY,rosybrown:XY,royalblue:KY,saddlebrown:qY,salmon:$Y,sandybrown:QY,seagreen:ZY,seashell:JY,sienna:eX,silver:tX,skyblue:iX,slateblue:sX,slategray:nX,slategrey:rX,snow:aX,springgreen:oX,steelblue:lX,tan:uX,teal:hX,thistle:cX,tomato:fX,turquoise:dX,violet:_X,wheat:gX,white:pX,whitesmoke:mX,yellow:vX,yellowgreen:EX};function km(s,e){return e===void 0&&(e=[]),e[0]=(s>>16&255)/255,e[1]=(s>>8&255)/255,e[2]=(s&255)/255,e}function TU(s){var e=s.toString(16);return e="000000".substring(0,6-e.length)+e,"#"+e}function TX(s){return typeof s=="string"&&(s=yX[s.toLowerCase()]||s,s[0]==="#"&&(s=s.slice(1))),parseInt(s,16)}function IX(){for(var s=[],e=[],t=0;t<32;t++)s[t]=t,e[t]=t;s[ge.NORMAL_NPM]=ge.NORMAL,s[ge.ADD_NPM]=ge.ADD,s[ge.SCREEN_NPM]=ge.SCREEN,e[ge.NORMAL]=ge.NORMAL_NPM,e[ge.ADD]=ge.ADD_NPM,e[ge.SCREEN]=ge.SCREEN_NPM;var i=[];return i.push(e),i.push(s),i}var IU=IX();function RX(s,e){return IU[e?1:0][s]}function RU(s,e){if(e===1)return(e*255<<24)+s;if(e===0)return 0;var t=s>>16&255,i=s>>8&255,n=s&255;return t=t*e+.5|0,i=i*e+.5|0,n=n*e+.5|0,(e*255<<24)+(t<<16)+(i<<8)+n}function SX(s,e,t,i){return t=t||new Float32Array(4),t[0]=(s>>16&255)/255,t[1]=(s>>8&255)/255,t[2]=(s&255)/255,(i||i===void 0)&&(t[0]*=e,t[1]*=e,t[2]*=e),t[3]=e,t}function SU(s){if(s.BYTES_PER_ELEMENT===4)return s instanceof Float32Array?"Float32Array":s instanceof Uint32Array?"Uint32Array":"Int32Array";if(s.BYTES_PER_ELEMENT===2){if(s instanceof Uint16Array)return"Uint16Array"}else if(s.BYTES_PER_ELEMENT===1&&s instanceof Uint8Array)return"Uint8Array";return null}function xm(s){return s+=s===0?1:0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1}function yN(s){return!(s&s-1)&&!!s}function TN(s){var e=(s>65535?1:0)<<4;s>>>=e;var t=(s>255?1:0)<<3;return s>>>=t,e|=t,t=(s>15?1:0)<<2,s>>>=t,e|=t,t=(s>3?1:0)<<1,s>>>=t,e|=t,e|s>>1}function jp(s,e,t){var i=s.length,n;if(!(e>=i||t===0)){t=e+t>i?i-e:t;var r=i-t;for(n=e;n<r;++n)s[n]=s[n+t];s.length=r}}function Ah(s){return s===0?0:s<0?-1:1}var bX=0;function Lu(){return++bX}var IN={};function Ur(s,e,t){if(t===void 0&&(t=3),!IN[e]){var i=new Error().stack;typeof i>"u"?console.warn("PixiJS Deprecation Warning: ",e+`
Deprecated since v`+s):(i=i.split(`
`).splice(t).join(`
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e+`
Deprecated since v`+s),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",e+`
Deprecated since v`+s),console.warn(i))),IN[e]=!0}}var RN={},$r=Object.create(null),pl=Object.create(null),SN=function(){function s(e,t,i){this.canvas=de.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=i||de.RESOLUTION,this.resize(e,t)}return s.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},s.prototype.resize=function(e,t){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(t*this.resolution)},s.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(s.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),s}();function AX(s){var e=s.width,t=s.height,i=s.getContext("2d",{willReadFrequently:!0}),n=i.getImageData(0,0,e,t),r=n.data,a=r.length,o={top:null,left:null,right:null,bottom:null},l=null,u,c,h;for(u=0;u<a;u+=4)r[u+3]!==0&&(c=u/4%e,h=~~(u/4/e),o.top===null&&(o.top=h),(o.left===null||c<o.left)&&(o.left=c),(o.right===null||o.right<c)&&(o.right=c+1),(o.bottom===null||o.bottom<h)&&(o.bottom=h));return o.top!==null&&(e=o.right-o.left,t=o.bottom-o.top+1,l=i.getImageData(o.left,o.top,e,t)),{height:t,width:e,data:l}}var Qg;function OX(s,e){if(e===void 0&&(e=globalThis.location),s.indexOf("data:")===0)return"";e=e||globalThis.location,Qg||(Qg=document.createElement("a")),Qg.href=s;var t=jf.parse(Qg.href),i=!t.port&&e.port===""||t.port===e.port;return t.hostname!==e.hostname||!i||t.protocol!==e.protocol?"anonymous":""}function YI(s,e){var t=de.RETINA_PREFIX.exec(s);return t?parseFloat(t[1]):e!==void 0?e:1}/*!
* @pixi/extensions - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/extensions is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var od=function(){return od=Object.assign||function(e){for(var t=arguments,i,n=1,r=arguments.length;n<r;n++){i=t[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},od.apply(this,arguments)},Ni;(function(s){s.Application="application",s.RendererPlugin="renderer-webgl-plugin",s.CanvasRendererPlugin="renderer-canvas-plugin",s.Loader="loader",s.LoadParser="load-parser",s.ResolveParser="resolve-parser",s.CacheParser="cache-parser",s.DetectionParser="detection-parser"})(Ni||(Ni={}));var bN=function(s){if(typeof s=="function"||typeof s=="object"&&s.extension){if(!s.extension)throw new Error("Extension class must have an extension object");var e=typeof s.extension!="object"?{type:s.extension}:s.extension;s=od(od({},e),{ref:s})}if(typeof s=="object")s=od({},s);else throw new Error("Invalid extension type");return typeof s.type=="string"&&(s.type=[s.type]),s},Xa={_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var s=arguments,e=this,t=[],i=0;i<arguments.length;i++)t[i]=s[i];return t.map(bN).forEach(function(n){n.type.forEach(function(r){var a,o;return(o=(a=e._removeHandlers)[r])===null||o===void 0?void 0:o.call(a,n)})}),this},add:function(){for(var s=arguments,e=this,t=[],i=0;i<arguments.length;i++)t[i]=s[i];return t.map(bN).forEach(function(n){n.type.forEach(function(r){var a=e._addHandlers,o=e._queue;a[r]?a[r](n):(o[r]=o[r]||[],o[r].push(n))})}),this},handle:function(s,e,t){var i=this._addHandlers=this._addHandlers||{},n=this._removeHandlers=this._removeHandlers||{};if(i[s]||n[s])throw new Error("Extension type "+s+" already has a handler");i[s]=e,n[s]=t;var r=this._queue;return r[s]&&(r[s].forEach(function(a){return e(a)}),delete r[s]),this},handleByMap:function(s,e){return this.handle(s,function(t){e[t.name]=t.ref},function(t){delete e[t.name]})},handleByList:function(s,e){return this.handle(s,function(t){var i,n;e.includes(t.ref)||(e.push(t.ref),s===Ni.Loader&&((n=(i=t.ref).add)===null||n===void 0||n.call(i)))},function(t){var i=e.indexOf(t.ref);i!==-1&&e.splice(i,1)})}};/*!
* @pixi/runner - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/runner is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var Vi=function(){function s(e){this.items=[],this._name=e,this._aliasCount=0}return s.prototype.emit=function(e,t,i,n,r,a,o,l){if(arguments.length>8)throw new Error("max arguments reached");var u=this,c=u.name,h=u.items;this._aliasCount++;for(var f=0,d=h.length;f<d;f++)h[f][c](e,t,i,n,r,a,o,l);return h===this.items&&this._aliasCount--,this},s.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},s.prototype.add=function(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this},s.prototype.remove=function(e){var t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this},s.prototype.contains=function(e){return this.items.indexOf(e)!==-1},s.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},s.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(s.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),s}();Object.defineProperties(Vi.prototype,{dispatch:{value:Vi.prototype.emit},run:{value:Vi.prototype.emit}});/*!
* @pixi/ticker - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/ticker is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/de.TARGET_FPMS=.06;var P_;(function(s){s[s.INTERACTION=50]="INTERACTION",s[s.HIGH=25]="HIGH",s[s.NORMAL=0]="NORMAL",s[s.LOW=-25]="LOW",s[s.UTILITY=-50]="UTILITY"})(P_||(P_={}));var Dy=function(){function s(e,t,i,n){t===void 0&&(t=null),i===void 0&&(i=0),n===void 0&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=e,this.context=t,this.priority=i,this.once=n}return s.prototype.match=function(e,t){return t===void 0&&(t=null),this.fn===e&&this.context===t},s.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},s.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},s.prototype.destroy=function(e){e===void 0&&(e=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var t=this.next;return this.next=e?null:t,this.previous=null,t},s}(),to=function(){function s(){var e=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Dy(null,null,1/0),this.deltaMS=1/de.TARGET_FPMS,this.elapsedMS=1/de.TARGET_FPMS,this._tick=function(t){e._requestId=null,e.started&&(e.update(t),e.started&&e._requestId===null&&e._head.next&&(e._requestId=requestAnimationFrame(e._tick)))}}return s.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},s.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},s.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},s.prototype.add=function(e,t,i){return i===void 0&&(i=P_.NORMAL),this._addListener(new Dy(e,t,i))},s.prototype.addOnce=function(e,t,i){return i===void 0&&(i=P_.NORMAL),this._addListener(new Dy(e,t,i,!0))},s.prototype._addListener=function(e){var t=this._head.next,i=this._head;if(!t)e.connect(i);else{for(;t;){if(e.priority>t.priority){e.connect(i);break}i=t,t=t.next}e.previous||e.connect(i)}return this._startIfPossible(),this},s.prototype.remove=function(e,t){for(var i=this._head.next;i;)i.match(e,t)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(s.prototype,"count",{get:function(){if(!this._head)return 0;for(var e=0,t=this._head;t=t.next;)e++;return e},enumerable:!1,configurable:!0}),s.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},s.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},s.prototype.destroy=function(){if(!this._protected){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}},s.prototype.update=function(e){e===void 0&&(e=performance.now());var t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){var i=e-this._lastFrame|0;if(i<this._minElapsedMS)return;this._lastFrame=e-i%this._minElapsedMS}this.deltaMS=t,this.deltaTime=this.deltaMS*de.TARGET_FPMS;for(var n=this._head,r=n.next;r;)r=r.emit(this.deltaTime);n.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e},Object.defineProperty(s.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(e){var t=Math.min(this.maxFPS,e),i=Math.min(Math.max(0,t)/1e3,de.TARGET_FPMS);this._maxElapsedMS=1/i},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(e){if(e===0)this._minElapsedMS=0;else{var t=Math.max(this.minFPS,e);this._minElapsedMS=1/(t/1e3)}},enumerable:!1,configurable:!0}),Object.defineProperty(s,"shared",{get:function(){if(!s._shared){var e=s._shared=new s;e.autoStart=!0,e._protected=!0}return s._shared},enumerable:!1,configurable:!0}),Object.defineProperty(s,"system",{get:function(){if(!s._system){var e=s._system=new s;e.autoStart=!0,e._protected=!0}return s._system},enumerable:!1,configurable:!0}),s}(),wX=function(){function s(){}return s.init=function(e){var t=this;e=Object.assign({autoStart:!0,sharedTicker:!1},e),Object.defineProperty(this,"ticker",{set:function(i){this._ticker&&this._ticker.remove(this.render,this),this._ticker=i,i&&i.add(this.render,this,P_.LOW)},get:function(){return this._ticker}}),this.stop=function(){t._ticker.stop()},this.start=function(){t._ticker.start()},this._ticker=null,this.ticker=e.sharedTicker?to.shared:new to,e.autoStart&&this.start()},s.destroy=function(){if(this._ticker){var e=this._ticker;this.ticker=null,e.destroy()}},s.extension=Ni.Application,s}();/*!
* @pixi/math - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/math is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var k_=Math.PI*2,CX=180/Math.PI,MX=Math.PI/180,Ci;(function(s){s[s.POLY=0]="POLY",s[s.RECT=1]="RECT",s[s.CIRC=2]="CIRC",s[s.ELIP=3]="ELIP",s[s.RREC=4]="RREC"})(Ci||(Ci={}));var Q=function(){function s(e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.x=0,this.y=0,this.x=e,this.y=t}return s.prototype.clone=function(){return new s(this.x,this.y)},s.prototype.copyFrom=function(e){return this.set(e.x,e.y),this},s.prototype.copyTo=function(e){return e.set(this.x,this.y),e},s.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},s.prototype.set=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=e),this.x=e,this.y=t,this},s.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},s}(),Zg=[new Q,new Q,new Q,new Q],ve=function(){function s(e,t,i,n){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),this.x=Number(e),this.y=Number(t),this.width=Number(i),this.height=Number(n),this.type=Ci.RECT}return Object.defineProperty(s.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(s,"EMPTY",{get:function(){return new s(0,0,0,0)},enumerable:!1,configurable:!0}),s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height)},s.prototype.copyFrom=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},s.prototype.copyTo=function(e){return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},s.prototype.contains=function(e,t){return this.width<=0||this.height<=0?!1:e>=this.x&&e<this.x+this.width&&t>=this.y&&t<this.y+this.height},s.prototype.intersects=function(e,t){if(!t){var i=this.x<e.x?e.x:this.x,n=this.right>e.right?e.right:this.right;if(n<=i)return!1;var r=this.y<e.y?e.y:this.y,a=this.bottom>e.bottom?e.bottom:this.bottom;return a>r}var o=this.left,l=this.right,u=this.top,c=this.bottom;if(l<=o||c<=u)return!1;var h=Zg[0].set(e.left,e.top),f=Zg[1].set(e.left,e.bottom),d=Zg[2].set(e.right,e.top),_=Zg[3].set(e.right,e.bottom);if(d.x<=h.x||f.y<=h.y)return!1;var g=Math.sign(t.a*t.d-t.b*t.c);if(g===0||(t.apply(h,h),t.apply(f,f),t.apply(d,d),t.apply(_,_),Math.max(h.x,f.x,d.x,_.x)<=o||Math.min(h.x,f.x,d.x,_.x)>=l||Math.max(h.y,f.y,d.y,_.y)<=u||Math.min(h.y,f.y,d.y,_.y)>=c))return!1;var p=g*(f.y-h.y),m=g*(h.x-f.x),v=p*o+m*u,E=p*l+m*u,y=p*o+m*c,T=p*l+m*c;if(Math.max(v,E,y,T)<=p*h.x+m*h.y||Math.min(v,E,y,T)>=p*_.x+m*_.y)return!1;var w=g*(h.y-d.y),C=g*(d.x-h.x),N=w*o+C*u,P=w*l+C*u,k=w*o+C*c,L=w*l+C*c;return!(Math.max(N,P,k,L)<=w*h.x+C*h.y||Math.min(N,P,k,L)>=w*_.x+C*_.y)},s.prototype.pad=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=e),this.x-=e,this.y-=t,this.width+=e*2,this.height+=t*2,this},s.prototype.fit=function(e){var t=Math.max(this.x,e.x),i=Math.min(this.x+this.width,e.x+e.width),n=Math.max(this.y,e.y),r=Math.min(this.y+this.height,e.y+e.height);return this.x=t,this.width=Math.max(i-t,0),this.y=n,this.height=Math.max(r-n,0),this},s.prototype.ceil=function(e,t){e===void 0&&(e=1),t===void 0&&(t=.001);var i=Math.ceil((this.x+this.width-t)*e)/e,n=Math.ceil((this.y+this.height-t)*e)/e;return this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=i-this.x,this.height=n-this.y,this},s.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),i=Math.max(this.x+this.width,e.x+e.width),n=Math.min(this.y,e.y),r=Math.max(this.y+this.height,e.y+e.height);return this.x=t,this.width=i-t,this.y=n,this.height=r-n,this},s.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},s}(),NX=function(){function s(e,t,i){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),this.x=e,this.y=t,this.radius=i,this.type=Ci.CIRC}return s.prototype.clone=function(){return new s(this.x,this.y,this.radius)},s.prototype.contains=function(e,t){if(this.radius<=0)return!1;var i=this.radius*this.radius,n=this.x-e,r=this.y-t;return n*=n,r*=r,n+r<=i},s.prototype.getBounds=function(){return new ve(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},s.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},s}(),PX=function(){function s(e,t,i,n){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),this.x=e,this.y=t,this.width=i,this.height=n,this.type=Ci.ELIP}return s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height)},s.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;var i=(e-this.x)/this.width,n=(t-this.y)/this.height;return i*=i,n*=n,i+n<=1},s.prototype.getBounds=function(){return new ve(this.x-this.width,this.y-this.height,this.width,this.height)},s.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},s}(),zp=function(){function s(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];var n=Array.isArray(t[0])?t[0]:t;if(typeof n[0]!="number"){for(var r=[],a=0,o=n.length;a<o;a++)r.push(n[a].x,n[a].y);n=r}this.points=n,this.type=Ci.POLY,this.closeStroke=!0}return s.prototype.clone=function(){var e=this.points.slice(),t=new s(e);return t.closeStroke=this.closeStroke,t},s.prototype.contains=function(e,t){for(var i=!1,n=this.points.length/2,r=0,a=n-1;r<n;a=r++){var o=this.points[r*2],l=this.points[r*2+1],u=this.points[a*2],c=this.points[a*2+1],h=l>t!=c>t&&e<(u-o)*((t-l)/(c-l))+o;h&&(i=!i)}return i},s.prototype.toString=function(){return"[@pixi/math:Polygon"+("closeStroke="+this.closeStroke)+("points="+this.points.reduce(function(e,t){return e+", "+t},"")+"]")},s}(),kX=function(){function s(e,t,i,n,r){e===void 0&&(e=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),r===void 0&&(r=20),this.x=e,this.y=t,this.width=i,this.height=n,this.radius=r,this.type=Ci.RREC}return s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.radius)},s.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){var i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(t>=this.y+i&&t<=this.y+this.height-i||e>=this.x+i&&e<=this.x+this.width-i)return!0;var n=e-(this.x+i),r=t-(this.y+i),a=i*i;if(n*n+r*r<=a||(n=e-(this.x+this.width-i),n*n+r*r<=a)||(r=t-(this.y+this.height-i),n*n+r*r<=a)||(n=e-(this.x+i),n*n+r*r<=a))return!0}return!1},s.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+("width="+this.width+" height="+this.height+" radius="+this.radius+"]")},s}(),Oh=function(){function s(e,t,i,n){i===void 0&&(i=0),n===void 0&&(n=0),this._x=i,this._y=n,this.cb=e,this.scope=t}return s.prototype.clone=function(e,t){return e===void 0&&(e=this.cb),t===void 0&&(t=this.scope),new s(e,t,this._x,this._y)},s.prototype.set=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=e),(this._x!==e||this._y!==t)&&(this._x=e,this._y=t,this.cb.call(this.scope)),this},s.prototype.copyFrom=function(e){return(this._x!==e.x||this._y!==e.y)&&(this._x=e.x,this._y=e.y,this.cb.call(this.scope)),this},s.prototype.copyTo=function(e){return e.set(this._x,this._y),e},s.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},s.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(s.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),s}(),dt=function(){function s(e,t,i,n,r,a){e===void 0&&(e=1),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=1),r===void 0&&(r=0),a===void 0&&(a=0),this.array=null,this.a=e,this.b=t,this.c=i,this.d=n,this.tx=r,this.ty=a}return s.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},s.prototype.set=function(e,t,i,n,r,a){return this.a=e,this.b=t,this.c=i,this.d=n,this.tx=r,this.ty=a,this},s.prototype.toArray=function(e,t){this.array||(this.array=new Float32Array(9));var i=t||this.array;return e?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},s.prototype.apply=function(e,t){t=t||new Q;var i=e.x,n=e.y;return t.x=this.a*i+this.c*n+this.tx,t.y=this.b*i+this.d*n+this.ty,t},s.prototype.applyInverse=function(e,t){t=t||new Q;var i=1/(this.a*this.d+this.c*-this.b),n=e.x,r=e.y;return t.x=this.d*i*n+-this.c*i*r+(this.ty*this.c-this.tx*this.d)*i,t.y=this.a*i*r+-this.b*i*n+(-this.ty*this.a+this.tx*this.b)*i,t},s.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},s.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},s.prototype.rotate=function(e){var t=Math.cos(e),i=Math.sin(e),n=this.a,r=this.c,a=this.tx;return this.a=n*t-this.b*i,this.b=n*i+this.b*t,this.c=r*t-this.d*i,this.d=r*i+this.d*t,this.tx=a*t-this.ty*i,this.ty=a*i+this.ty*t,this},s.prototype.append=function(e){var t=this.a,i=this.b,n=this.c,r=this.d;return this.a=e.a*t+e.b*n,this.b=e.a*i+e.b*r,this.c=e.c*t+e.d*n,this.d=e.c*i+e.d*r,this.tx=e.tx*t+e.ty*n+this.tx,this.ty=e.tx*i+e.ty*r+this.ty,this},s.prototype.setTransform=function(e,t,i,n,r,a,o,l,u){return this.a=Math.cos(o+u)*r,this.b=Math.sin(o+u)*r,this.c=-Math.sin(o-l)*a,this.d=Math.cos(o-l)*a,this.tx=e-(i*this.a+n*this.c),this.ty=t-(i*this.b+n*this.d),this},s.prototype.prepend=function(e){var t=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){var i=this.a,n=this.c;this.a=i*e.a+this.b*e.c,this.b=i*e.b+this.b*e.d,this.c=n*e.a+this.d*e.c,this.d=n*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this},s.prototype.decompose=function(e){var t=this.a,i=this.b,n=this.c,r=this.d,a=e.pivot,o=-Math.atan2(-n,r),l=Math.atan2(i,t),u=Math.abs(o+l);return u<1e-5||Math.abs(k_-u)<1e-5?(e.rotation=l,e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=o,e.skew.y=l),e.scale.x=Math.sqrt(t*t+i*i),e.scale.y=Math.sqrt(n*n+r*r),e.position.x=this.tx+(a.x*t+a.y*n),e.position.y=this.ty+(a.x*i+a.y*r),e},s.prototype.invert=function(){var e=this.a,t=this.b,i=this.c,n=this.d,r=this.tx,a=e*n-t*i;return this.a=n/a,this.b=-t/a,this.c=-i/a,this.d=e/a,this.tx=(i*this.ty-n*r)/a,this.ty=-(e*this.ty-t*r)/a,this},s.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},s.prototype.clone=function(){var e=new s;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},s.prototype.copyTo=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},s.prototype.copyFrom=function(e){return this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty,this},s.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(s,"IDENTITY",{get:function(){return new s},enumerable:!1,configurable:!0}),Object.defineProperty(s,"TEMP_MATRIX",{get:function(){return new s},enumerable:!1,configurable:!0}),s}(),bl=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],Al=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],Ol=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],wl=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],XI=[],bU=[],Jg=Math.sign;function xX(){for(var s=0;s<16;s++){var e=[];XI.push(e);for(var t=0;t<16;t++)for(var i=Jg(bl[s]*bl[t]+Ol[s]*Al[t]),n=Jg(Al[s]*bl[t]+wl[s]*Al[t]),r=Jg(bl[s]*Ol[t]+Ol[s]*wl[t]),a=Jg(Al[s]*Ol[t]+wl[s]*wl[t]),o=0;o<16;o++)if(bl[o]===i&&Al[o]===n&&Ol[o]===r&&wl[o]===a){e.push(o);break}}for(var s=0;s<16;s++){var l=new dt;l.set(bl[s],Al[s],Ol[s],wl[s],0,0),bU.push(l)}}xX();var Vt={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(s){return bl[s]},uY:function(s){return Al[s]},vX:function(s){return Ol[s]},vY:function(s){return wl[s]},inv:function(s){return s&8?s&15:-s&7},add:function(s,e){return XI[s][e]},sub:function(s,e){return XI[s][Vt.inv(e)]},rotate180:function(s){return s^4},isVertical:function(s){return(s&3)===2},byDirection:function(s,e){return Math.abs(s)*2<=Math.abs(e)?e>=0?Vt.S:Vt.N:Math.abs(e)*2<=Math.abs(s)?s>0?Vt.E:Vt.W:e>0?s>0?Vt.SE:Vt.SW:s>0?Vt.NE:Vt.NW},matrixAppendRotationInv:function(s,e,t,i){t===void 0&&(t=0),i===void 0&&(i=0);var n=bU[Vt.inv(e)];n.tx=t,n.ty=i,s.append(n)}},AU=function(){function s(){this.worldTransform=new dt,this.localTransform=new dt,this.position=new Oh(this.onChange,this,0,0),this.scale=new Oh(this.onChange,this,1,1),this.pivot=new Oh(this.onChange,this,0,0),this.skew=new Oh(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return s.prototype.onChange=function(){this._localID++},s.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},s.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},s.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},s.prototype.updateTransform=function(e){var t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){var i=e.worldTransform,n=this.worldTransform;n.a=t.a*i.a+t.b*i.c,n.b=t.a*i.b+t.b*i.d,n.c=t.c*i.a+t.d*i.c,n.d=t.c*i.b+t.d*i.d,n.tx=t.tx*i.a+t.ty*i.c+i.tx,n.ty=t.tx*i.b+t.ty*i.d+i.ty,this._parentID=e._worldID,this._worldID++}},s.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},Object.defineProperty(s.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())},enumerable:!1,configurable:!0}),s.IDENTITY=new s,s}();/*!
* @pixi/core - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/core is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/de.PREFER_ENV=fu.any?Ga.WEBGL:Ga.WEBGL2;de.STRICT_TEXTURE_CACHE=!1;var KI=[];function OU(s,e){if(!s)return null;var t="";if(typeof s=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(s);i&&(t=i[1].toLowerCase())}for(var n=KI.length-1;n>=0;--n){var r=KI[n];if(r.test&&r.test(s,t))return new r(s,e)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var qI=function(s,e){return qI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},qI(s,e)};function Ct(s,e){qI(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var $I=function(){return $I=Object.assign||function(e){for(var t=arguments,i,n=1,r=arguments.length;n<r;n++){i=t[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},$I.apply(this,arguments)};function DX(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(s);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(s,i[n])&&(t[i[n]]=s[i[n]]);return t}var x_=function(){function s(e,t){e===void 0&&(e=0),t===void 0&&(t=0),this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new Vi("setRealSize"),this.onUpdate=new Vi("update"),this.onError=new Vi("onError")}return s.prototype.bind=function(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},s.prototype.unbind=function(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)},s.prototype.resize=function(e,t){(e!==this._width||t!==this._height)&&(this._width=e,this._height=t,this.onResize.emit(e,t))},Object.defineProperty(s.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),s.prototype.update=function(){this.destroyed||this.onUpdate.emit()},s.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty(s.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),s.prototype.style=function(e,t,i){return!1},s.prototype.dispose=function(){},s.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},s.test=function(e,t){return!1},s}(),yw=function(s){Ct(e,s);function e(t,i){var n=this,r=i||{},a=r.width,o=r.height;if(!a||!o)throw new Error("BufferResource width or height invalid");return n=s.call(this,a,o)||this,n.data=t,n}return e.prototype.upload=function(t,i,n){var r=t.gl;r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===el.UNPACK);var a=i.realWidth,o=i.realHeight;return n.width===a&&n.height===o?r.texSubImage2D(i.target,0,0,0,a,o,i.format,n.type,this.data):(n.width=a,n.height=o,r.texImage2D(i.target,0,n.internalFormat,a,o,0,i.format,n.type,this.data)),!0},e.prototype.dispose=function(){this.data=null},e.test=function(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array},e}(x_),LX={scaleMode:tn.NEAREST,format:ae.RGBA,alphaMode:el.NPM},pt=function(s){Ct(e,s);function e(t,i){t===void 0&&(t=null),i===void 0&&(i=null);var n=s.call(this)||this;i=i||{};var r=i.alphaMode,a=i.mipmap,o=i.anisotropicLevel,l=i.scaleMode,u=i.width,c=i.height,h=i.wrapMode,f=i.format,d=i.type,_=i.target,g=i.resolution,p=i.resourceOptions;return t&&!(t instanceof x_)&&(t=OU(t,p),t.internal=!0),n.resolution=g||de.RESOLUTION,n.width=Math.round((u||0)*n.resolution)/n.resolution,n.height=Math.round((c||0)*n.resolution)/n.resolution,n._mipmap=a!==void 0?a:de.MIPMAP_TEXTURES,n.anisotropicLevel=o!==void 0?o:de.ANISOTROPIC_LEVEL,n._wrapMode=h||de.WRAP_MODE,n._scaleMode=l!==void 0?l:de.SCALE_MODE,n.format=f||ae.RGBA,n.type=d||lt.UNSIGNED_BYTE,n.target=_||Tu.TEXTURE_2D,n.alphaMode=r!==void 0?r:el.UNPACK,n.uid=Lu(),n.touched=0,n.isPowerOfTwo=!1,n._refreshPOT(),n._glTextures={},n.dirtyId=0,n.dirtyStyleId=0,n.cacheId=null,n.valid=u>0&&c>0,n.textureCacheIds=[],n.destroyed=!1,n.resource=null,n._batchEnabled=0,n._batchLocation=0,n.parentTextureArray=null,n.setResource(t),n}return Object.defineProperty(e.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mipmap",{get:function(){return this._mipmap},set:function(t){this._mipmap!==t&&(this._mipmap=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(t){this._scaleMode!==t&&(this._scaleMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(t){this._wrapMode!==t&&(this._wrapMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(t,i){var n;return t!==void 0&&t!==this.scaleMode&&(this.scaleMode=t,n=!0),i!==void 0&&i!==this.mipmap&&(this.mipmap=i,n=!0),n&&this.dirtyStyleId++,this},e.prototype.setSize=function(t,i,n){return n=n||this.resolution,this.setRealSize(t*n,i*n,n)},e.prototype.setRealSize=function(t,i,n){return this.resolution=n||this.resolution,this.width=Math.round(t)/this.resolution,this.height=Math.round(i)/this.resolution,this._refreshPOT(),this.update(),this},e.prototype._refreshPOT=function(){this.isPowerOfTwo=yN(this.realWidth)&&yN(this.realHeight)},e.prototype.setResolution=function(t){var i=this.resolution;return i===t?this:(this.resolution=t,this.valid&&(this.width=Math.round(this.width*i)/t,this.height=Math.round(this.height*i)/t,this.emit("update",this)),this._refreshPOT(),this)},e.prototype.setResource=function(t){if(this.resource===t)return this;if(this.resource)throw new Error("Resource can be set only once");return t.bind(this),this.resource=t,this},e.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},e.prototype.onError=function(t){this.emit("error",this,t)},e.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete pl[this.cacheId],delete $r[this.cacheId],this.cacheId=null),this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.prototype.castToBaseTexture=function(){return this},e.from=function(t,i,n){n===void 0&&(n=de.STRICT_TEXTURE_CACHE);var r=typeof t=="string",a=null;if(r)a=t;else{if(!t._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";t._pixiId=o+"_"+Lu()}a=t._pixiId}var l=pl[a];if(r&&n&&!l)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return l||(l=new e(t,i),l.cacheId=a,e.addToCache(l,a)),l},e.fromBuffer=function(t,i,n,r){t=t||new Float32Array(i*n*4);var a=new yw(t,{width:i,height:n}),o=t instanceof Float32Array?lt.FLOAT:lt.UNSIGNED_BYTE;return new e(a,Object.assign({},LX,r||{width:i,height:n,type:o}))},e.addToCache=function(t,i){i&&(t.textureCacheIds.indexOf(i)===-1&&t.textureCacheIds.push(i),pl[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),pl[i]=t)},e.removeFromCache=function(t){if(typeof t=="string"){var i=pl[t];if(i){var n=i.textureCacheIds.indexOf(t);return n>-1&&i.textureCacheIds.splice(n,1),delete pl[t],i}}else if(t&&t.textureCacheIds){for(var r=0;r<t.textureCacheIds.length;++r)delete pl[t.textureCacheIds[r]];return t.textureCacheIds.length=0,t}return null},e._globalBatch=0,e}(c0),wU=function(s){Ct(e,s);function e(t,i){var n=this,r=i||{},a=r.width,o=r.height;n=s.call(this,a,o)||this,n.items=[],n.itemDirtyIds=[];for(var l=0;l<t;l++){var u=new pt;n.items.push(u),n.itemDirtyIds.push(-2)}return n.length=t,n._load=null,n.baseTexture=null,n}return e.prototype.initFromArray=function(t,i){for(var n=0;n<this.length;n++)t[n]&&(t[n].castToBaseTexture?this.addBaseTextureAt(t[n].castToBaseTexture(),n):t[n]instanceof x_?this.addResourceAt(t[n],n):this.addResourceAt(OU(t[n],i),n))},e.prototype.dispose=function(){for(var t=0,i=this.length;t<i;t++)this.items[t].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},e.prototype.addResourceAt=function(t,i){if(!this.items[i])throw new Error("Index "+i+" is out of bounds");return t.valid&&!this.valid&&this.resize(t.width,t.height),this.items[i].setResource(t),this},e.prototype.bind=function(t){if(this.baseTexture!==null)throw new Error("Only one base texture per TextureArray is allowed");s.prototype.bind.call(this,t);for(var i=0;i<this.length;i++)this.items[i].parentTextureArray=t,this.items[i].on("update",t.update,t)},e.prototype.unbind=function(t){s.prototype.unbind.call(this,t);for(var i=0;i<this.length;i++)this.items[i].parentTextureArray=null,this.items[i].off("update",t.update,t)},e.prototype.load=function(){var t=this;if(this._load)return this._load;var i=this.items.map(function(r){return r.resource}).filter(function(r){return r}),n=i.map(function(r){return r.load()});return this._load=Promise.all(n).then(function(){var r=t.items[0],a=r.realWidth,o=r.realHeight;return t.resize(a,o),Promise.resolve(t)}),this._load},e}(x_),UX=function(s){Ct(e,s);function e(t,i){var n=this,r=i||{},a=r.width,o=r.height,l,u;return Array.isArray(t)?(l=t,u=t.length):u=t,n=s.call(this,u,{width:a,height:o})||this,l&&n.initFromArray(l,i),n}return e.prototype.addBaseTextureAt=function(t,i){if(t.resource)this.addResourceAt(t.resource,i);else throw new Error("ArrayResource does not support RenderTexture");return this},e.prototype.bind=function(t){s.prototype.bind.call(this,t),t.target=Tu.TEXTURE_2D_ARRAY},e.prototype.upload=function(t,i,n){var r=this,a=r.length,o=r.itemDirtyIds,l=r.items,u=t.gl;n.dirtyId<0&&u.texImage3D(u.TEXTURE_2D_ARRAY,0,n.internalFormat,this._width,this._height,a,0,i.format,n.type,null);for(var c=0;c<a;c++){var h=l[c];o[c]<h.dirtyId&&(o[c]=h.dirtyId,h.valid&&u.texSubImage3D(u.TEXTURE_2D_ARRAY,0,0,0,c,h.resource.width,h.resource.height,1,i.format,n.type,h.resource.source))}return!0},e}(wU),tl=function(s){Ct(e,s);function e(t){var i=this,n=t,r=n.naturalWidth||n.videoWidth||n.width,a=n.naturalHeight||n.videoHeight||n.height;return i=s.call(this,r,a)||this,i.source=t,i.noSubImage=!1,i}return e.crossOrigin=function(t,i,n){n===void 0&&i.indexOf("data:")!==0?t.crossOrigin=OX(i):n!==!1&&(t.crossOrigin=typeof n=="string"?n:"anonymous")},e.prototype.upload=function(t,i,n,r){var a=t.gl,o=i.realWidth,l=i.realHeight;if(r=r||this.source,r instanceof HTMLImageElement){if(!r.complete||r.naturalWidth===0)return!1}else if(r instanceof HTMLVideoElement&&r.readyState<=1)return!1;return a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===el.UNPACK),!this.noSubImage&&i.target===a.TEXTURE_2D&&n.width===o&&n.height===l?a.texSubImage2D(a.TEXTURE_2D,0,0,0,i.format,n.type,r):(n.width=o,n.height=l,a.texImage2D(i.target,0,n.internalFormat,i.format,n.type,r)),!0},e.prototype.update=function(){if(!this.destroyed){var t=this.source,i=t.naturalWidth||t.videoWidth||t.width,n=t.naturalHeight||t.videoHeight||t.height;this.resize(i,n),s.prototype.update.call(this)}},e.prototype.dispose=function(){this.source=null},e}(x_),FX=function(s){Ct(e,s);function e(t){return s.call(this,t)||this}return e.test=function(t){var i=globalThis.OffscreenCanvas;return i&&t instanceof i?!0:globalThis.HTMLCanvasElement&&t instanceof HTMLCanvasElement},e}(tl),BX=function(s){Ct(e,s);function e(t,i){var n=this,r=i||{},a=r.width,o=r.height,l=r.autoLoad,u=r.linkBaseTexture;if(t&&t.length!==e.SIDES)throw new Error("Invalid length. Got "+t.length+", expected 6");n=s.call(this,6,{width:a,height:o})||this;for(var c=0;c<e.SIDES;c++)n.items[c].target=Tu.TEXTURE_CUBE_MAP_POSITIVE_X+c;return n.linkBaseTexture=u!==!1,t&&n.initFromArray(t,i),l!==!1&&n.load(),n}return e.prototype.bind=function(t){s.prototype.bind.call(this,t),t.target=Tu.TEXTURE_CUBE_MAP},e.prototype.addBaseTextureAt=function(t,i,n){if(!this.items[i])throw new Error("Index "+i+" is out of bounds");if(!this.linkBaseTexture||t.parentTextureArray||Object.keys(t._glTextures).length>0)if(t.resource)this.addResourceAt(t.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else t.target=Tu.TEXTURE_CUBE_MAP_POSITIVE_X+i,t.parentTextureArray=this.baseTexture,this.items[i]=t;return t.valid&&!this.valid&&this.resize(t.realWidth,t.realHeight),this.items[i]=t,this},e.prototype.upload=function(t,i,n){for(var r=this.itemDirtyIds,a=0;a<e.SIDES;a++){var o=this.items[a];(r[a]<o.dirtyId||n.dirtyId<i.dirtyId)&&(o.valid&&o.resource?(o.resource.upload(t,o,n),r[a]=o.dirtyId):r[a]<-1&&(t.gl.texImage2D(o.target,0,n.internalFormat,i.realWidth,i.realHeight,0,i.format,n.type,null),r[a]=-1))}return!0},e.test=function(t){return Array.isArray(t)&&t.length===e.SIDES},e.SIDES=6,e}(wU),CU=function(s){Ct(e,s);function e(t,i){var n=this;if(i=i||{},!(t instanceof HTMLImageElement)){var r=new Image;tl.crossOrigin(r,t,i.crossorigin),r.src=t,t=r}return n=s.call(this,t)||this,!t.complete&&n._width&&n._height&&(n._width=0,n._height=0),n.url=t.src,n._process=null,n.preserveBitmap=!1,n.createBitmap=(i.createBitmap!==void 0?i.createBitmap:de.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,n.alphaMode=typeof i.alphaMode=="number"?i.alphaMode:null,n.bitmap=null,n._load=null,i.autoLoad!==!1&&n.load(),n}return e.prototype.load=function(t){var i=this;return this._load?this._load:(t!==void 0&&(this.createBitmap=t),this._load=new Promise(function(n,r){var a=i.source;i.url=a.src;var o=function(){i.destroyed||(a.onload=null,a.onerror=null,i.resize(a.width,a.height),i._load=null,i.createBitmap?n(i.process()):n(i))};a.complete&&a.src?o():(a.onload=o,a.onerror=function(l){r(l),i.onError.emit(l)})}),this._load)},e.prototype.process=function(){var t=this,i=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);var n=globalThis.createImageBitmap,r=!i.crossOrigin||i.crossOrigin==="anonymous";return this._process=fetch(i.src,{mode:r?"cors":"no-cors"}).then(function(a){return a.blob()}).then(function(a){return n(a,0,0,i.width,i.height,{premultiplyAlpha:t.alphaMode===null||t.alphaMode===el.UNPACK?"premultiply":"none"})}).then(function(a){return t.destroyed?Promise.reject():(t.bitmap=a,t.update(),t._process=null,Promise.resolve(t))}),this._process},e.prototype.upload=function(t,i,n){if(typeof this.alphaMode=="number"&&(i.alphaMode=this.alphaMode),!this.createBitmap)return s.prototype.upload.call(this,t,i,n);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(s.prototype.upload.call(this,t,i,n,this.bitmap),!this.preserveBitmap){var r=!0,a=i._glTextures;for(var o in a){var l=a[o];if(l!==n&&l.dirtyId!==i.dirtyId){r=!1;break}}r&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},e.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,s.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},e.test=function(t){return typeof t=="string"||t instanceof HTMLImageElement},e}(tl),GX=function(s){Ct(e,s);function e(t,i){var n=this;return i=i||{},n=s.call(this,de.ADAPTER.createCanvas())||this,n._width=0,n._height=0,n.svg=t,n.scale=i.scale||1,n._overrideWidth=i.width,n._overrideHeight=i.height,n._resolve=null,n._crossorigin=i.crossorigin,n._load=null,i.autoLoad!==!1&&n.load(),n}return e.prototype.load=function(){var t=this;return this._load?this._load:(this._load=new Promise(function(i){if(t._resolve=function(){t.resize(t.source.width,t.source.height),i(t)},e.SVG_XML.test(t.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");t.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(t.svg)))}t._loadSvg()}),this._load)},e.prototype._loadSvg=function(){var t=this,i=new Image;tl.crossOrigin(i,this.svg,this._crossorigin),i.src=this.svg,i.onerror=function(n){t._resolve&&(i.onerror=null,t.onError.emit(n))},i.onload=function(){if(t._resolve){var n=i.width,r=i.height;if(!n||!r)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var a=n*t.scale,o=r*t.scale;(t._overrideWidth||t._overrideHeight)&&(a=t._overrideWidth||t._overrideHeight/r*n,o=t._overrideHeight||t._overrideWidth/n*r),a=Math.round(a),o=Math.round(o);var l=t.source;l.width=a,l.height=o,l._pixiId="canvas_"+Lu(),l.getContext("2d").drawImage(i,0,0,n,r,0,0,a,o),t._resolve(),t._resolve=null}}},e.getSize=function(t){var i=e.SVG_SIZE.exec(t),n={};return i&&(n[i[1]]=Math.round(parseFloat(i[3])),n[i[5]]=Math.round(parseFloat(i[7]))),n},e.prototype.dispose=function(){s.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},e.test=function(t,i){return i==="svg"||typeof t=="string"&&t.startsWith("data:image/svg+xml")||typeof t=="string"&&e.SVG_XML.test(t)},e.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,e.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,e}(tl),VX=function(s){Ct(e,s);function e(t,i){var n=this;if(i=i||{},!(t instanceof HTMLVideoElement)){var r=document.createElement("video");r.setAttribute("preload","auto"),r.setAttribute("webkit-playsinline",""),r.setAttribute("playsinline",""),typeof t=="string"&&(t=[t]);var a=t[0].src||t[0];tl.crossOrigin(r,a,i.crossorigin);for(var o=0;o<t.length;++o){var l=document.createElement("source"),u=t[o],c=u.src,h=u.mime;c=c||t[o];var f=c.split("?").shift().toLowerCase(),d=f.slice(f.lastIndexOf(".")+1);h=h||e.MIME_TYPES[d]||"video/"+d,l.src=c,l.type=h,r.appendChild(l)}t=r}return n=s.call(this,t)||this,n.noSubImage=!0,n._autoUpdate=!0,n._isConnectedToTicker=!1,n._updateFPS=i.updateFPS||0,n._msToNextUpdate=0,n.autoPlay=i.autoPlay!==!1,n._load=null,n._resolve=null,n._onCanPlay=n._onCanPlay.bind(n),n._onError=n._onError.bind(n),i.autoLoad!==!1&&n.load(),n}return e.prototype.update=function(t){if(!this.destroyed){var i=to.shared.elapsedMS*this.source.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-i),(!this._updateFPS||this._msToNextUpdate<=0)&&(s.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0)}},e.prototype.load=function(){var t=this;if(this._load)return this._load;var i=this.source;return(i.readyState===i.HAVE_ENOUGH_DATA||i.readyState===i.HAVE_FUTURE_DATA)&&i.width&&i.height&&(i.complete=!0),i.addEventListener("play",this._onPlayStart.bind(this)),i.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(i.addEventListener("canplay",this._onCanPlay),i.addEventListener("canplaythrough",this._onCanPlay),i.addEventListener("error",this._onError,!0)),this._load=new Promise(function(n){t.valid?n(t):(t._resolve=n,i.load())}),this._load},e.prototype._onError=function(t){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(t)},e.prototype._isSourcePlaying=function(){var t=this.source;return!t.paused&&!t.ended&&this._isSourceReady()},e.prototype._isSourceReady=function(){var t=this.source;return t.readyState>2},e.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(to.shared.add(this.update,this),this._isConnectedToTicker=!0)},e.prototype._onPlayStop=function(){this._isConnectedToTicker&&(to.shared.remove(this.update,this),this._isConnectedToTicker=!1)},e.prototype._onCanPlay=function(){var t=this.source;t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay);var i=this.valid;this.resize(t.videoWidth,t.videoHeight),!i&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},e.prototype.dispose=function(){this._isConnectedToTicker&&(to.shared.remove(this.update,this),this._isConnectedToTicker=!1);var t=this.source;t&&(t.removeEventListener("error",this._onError,!0),t.pause(),t.src="",t.load()),s.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(to.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(to.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(t){t!==this._updateFPS&&(this._updateFPS=t)},enumerable:!1,configurable:!0}),e.test=function(t,i){return globalThis.HTMLVideoElement&&t instanceof HTMLVideoElement||e.TYPES.indexOf(i)>-1},e.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],e.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},e}(tl),jX=function(s){Ct(e,s);function e(t){return s.call(this,t)||this}return e.test=function(t){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&t instanceof ImageBitmap},e}(tl);KI.push(CU,jX,FX,VX,GX,yw,BX,UX);var zX=function(s){Ct(e,s);function e(){return s!==null&&s.apply(this,arguments)||this}return e.prototype.upload=function(t,i,n){var r=t.gl;r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===el.UNPACK);var a=i.realWidth,o=i.realHeight;return n.width===a&&n.height===o?r.texSubImage2D(i.target,0,0,0,a,o,i.format,n.type,this.data):(n.width=a,n.height=o,r.texImage2D(i.target,0,n.internalFormat,a,o,0,i.format,n.type,this.data)),!0},e}(yw),QI=function(){function s(e,t){this.width=Math.round(e||100),this.height=Math.round(t||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Vi("disposeFramebuffer"),this.multisample=Ut.NONE}return Object.defineProperty(s.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),s.prototype.addColorTexture=function(e,t){return e===void 0&&(e=0),this.colorTextures[e]=t||new pt(null,{scaleMode:tn.NEAREST,resolution:1,mipmap:Jo.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},s.prototype.addDepthTexture=function(e){return this.depthTexture=e||new pt(new zX(null,{width:this.width,height:this.height}),{scaleMode:tn.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Jo.OFF,format:ae.DEPTH_COMPONENT,type:lt.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},s.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},s.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},s.prototype.resize=function(e,t){if(e=Math.round(e),t=Math.round(t),!(e===this.width&&t===this.height)){this.width=e,this.height=t,this.dirtyId++,this.dirtySize++;for(var i=0;i<this.colorTextures.length;i++){var n=this.colorTextures[i],r=n.resolution;n.setSize(e/r,t/r)}if(this.depthTexture){var r=this.depthTexture.resolution;this.depthTexture.setSize(e/r,t/r)}}},s.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},s.prototype.destroyDepthTexture=function(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)},s}(),MU=function(s){Ct(e,s);function e(t){t===void 0&&(t={});var i=this;if(typeof t=="number"){var n=arguments[0],r=arguments[1],a=arguments[2],o=arguments[3];t={width:n,height:r,scaleMode:a,resolution:o}}return t.width=t.width||100,t.height=t.height||100,t.multisample=t.multisample!==void 0?t.multisample:Ut.NONE,i=s.call(this,null,t)||this,i.mipmap=Jo.OFF,i.valid=!0,i.clearColor=[0,0,0,0],i.framebuffer=new QI(i.realWidth,i.realHeight).addColorTexture(0,i),i.framebuffer.multisample=t.multisample,i.maskStack=[],i.filterStack=[{}],i}return e.prototype.resize=function(t,i){this.framebuffer.resize(t*this.resolution,i*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)},e.prototype.dispose=function(){this.framebuffer.dispose(),s.prototype.dispose.call(this)},e.prototype.destroy=function(){s.prototype.destroy.call(this),this.framebuffer.destroyDepthTexture(),this.framebuffer=null},e}(pt),NU=function(){function s(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}return s.prototype.set=function(e,t,i){var n=t.width,r=t.height;if(i){var a=e.width/2/n,o=e.height/2/r,l=e.x/n+a,u=e.y/r+o;i=Vt.add(i,Vt.NW),this.x0=l+a*Vt.uX(i),this.y0=u+o*Vt.uY(i),i=Vt.add(i,2),this.x1=l+a*Vt.uX(i),this.y1=u+o*Vt.uY(i),i=Vt.add(i,2),this.x2=l+a*Vt.uX(i),this.y2=u+o*Vt.uY(i),i=Vt.add(i,2),this.x3=l+a*Vt.uX(i),this.y3=u+o*Vt.uY(i)}else this.x0=e.x/n,this.y0=e.y/r,this.x1=(e.x+e.width)/n,this.y1=e.y/r,this.x2=(e.x+e.width)/n,this.y2=(e.y+e.height)/r,this.x3=e.x/n,this.y3=(e.y+e.height)/r;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3},s.prototype.toString=function(){return"[@pixi/core:TextureUvs "+("x0="+this.x0+" y0="+this.y0+" ")+("x1="+this.x1+" y1="+this.y1+" x2="+this.x2+" ")+("y2="+this.y2+" x3="+this.x3+" y3="+this.y3)+"]"},s}(),AN=new NU;function ep(s){s.destroy=function(){},s.on=function(){},s.once=function(){},s.emit=function(){}}var Ne=function(s){Ct(e,s);function e(t,i,n,r,a,o){var l=s.call(this)||this;if(l.noFrame=!1,i||(l.noFrame=!0,i=new ve(0,0,1,1)),t instanceof e&&(t=t.baseTexture),l.baseTexture=t,l._frame=i,l.trim=r,l.valid=!1,l._uvs=AN,l.uvMatrix=null,l.orig=n||i,l._rotate=Number(a||0),a===!0)l._rotate=2;else if(l._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return l.defaultAnchor=o?new Q(o.x,o.y):new Q(0,0),l._updateID=0,l.textureCacheIds=[],t.valid?l.noFrame?t.valid&&l.onBaseTextureUpdated(t):l.frame=i:t.once("loaded",l.onBaseTextureUpdated,l),l.noFrame&&t.on("update",l.onBaseTextureUpdated,l),l}return e.prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update()},e.prototype.onBaseTextureUpdated=function(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},e.prototype.destroy=function(t){if(this.baseTexture){if(t){var i=this.baseTexture.resource;i&&i.url&&$r[i.url]&&e.removeFromCache(i.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,e.removeFromCache(this),this.textureCacheIds=null},e.prototype.clone=function(){var t=this._frame.clone(),i=this._frame===this.orig?t:this.orig.clone(),n=new e(this.baseTexture,!this.noFrame&&t,i,this.trim&&this.trim.clone(),this.rotate,this.defaultAnchor);return this.noFrame&&(n._frame=t),n},e.prototype.updateUvs=function(){this._uvs===AN&&(this._uvs=new NU),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},e.from=function(t,i,n){i===void 0&&(i={}),n===void 0&&(n=de.STRICT_TEXTURE_CACHE);var r=typeof t=="string",a=null;if(r)a=t;else if(t instanceof pt){if(!t.cacheId){var o=i&&i.pixiIdPrefix||"pixiid";t.cacheId=o+"-"+Lu(),pt.addToCache(t,t.cacheId)}a=t.cacheId}else{if(!t._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";t._pixiId=o+"_"+Lu()}a=t._pixiId}var l=$r[a];if(r&&n&&!l)throw new Error('The cacheId "'+a+'" does not exist in TextureCache.');return!l&&!(t instanceof pt)?(i.resolution||(i.resolution=YI(t)),l=new e(new pt(t,i)),l.baseTexture.cacheId=a,pt.addToCache(l.baseTexture,a),e.addToCache(l,a)):!l&&t instanceof pt&&(l=new e(t),e.addToCache(l,a)),l},e.fromURL=function(t,i){var n=Object.assign({autoLoad:!1},i==null?void 0:i.resourceOptions),r=e.from(t,Object.assign({resourceOptions:n},i),!1),a=r.baseTexture.resource;return r.baseTexture.valid?Promise.resolve(r):a.load().then(function(){return Promise.resolve(r)})},e.fromBuffer=function(t,i,n,r){return new e(pt.fromBuffer(t,i,n,r))},e.fromLoader=function(t,i,n,r){var a=new pt(t,Object.assign({scaleMode:de.SCALE_MODE,resolution:YI(i)},r)),o=a.resource;o instanceof CU&&(o.url=i);var l=new e(a);return n||(n=i),pt.addToCache(l.baseTexture,n),e.addToCache(l,n),n!==i&&(pt.addToCache(l.baseTexture,i),e.addToCache(l,i)),l.baseTexture.valid?Promise.resolve(l):new Promise(function(u){l.baseTexture.once("loaded",function(){return u(l)})})},e.addToCache=function(t,i){i&&(t.textureCacheIds.indexOf(i)===-1&&t.textureCacheIds.push(i),$r[i]&&console.warn("Texture added to the cache with an id ["+i+"] that already had an entry"),$r[i]=t)},e.removeFromCache=function(t){if(typeof t=="string"){var i=$r[t];if(i){var n=i.textureCacheIds.indexOf(t);return n>-1&&i.textureCacheIds.splice(n,1),delete $r[t],i}}else if(t&&t.textureCacheIds){for(var r=0;r<t.textureCacheIds.length;++r)$r[t.textureCacheIds[r]]===t&&delete $r[t.textureCacheIds[r]];return t.textureCacheIds.length=0,t}return null},Object.defineProperty(e.prototype,"resolution",{get:function(){return this.baseTexture.resolution},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frame",{get:function(){return this._frame},set:function(t){this._frame=t,this.noFrame=!1;var i=t.x,n=t.y,r=t.width,a=t.height,o=i+r>this.baseTexture.width,l=n+a>this.baseTexture.height;if(o||l){var u=o&&l?"and":"or",c="X: "+i+" + "+r+" = "+(i+r)+" > "+this.baseTexture.width,h="Y: "+n+" + "+a+" = "+(n+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+u+" "+h))}this.valid=r&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=t),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),e.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(e,"EMPTY",{get:function(){return e._EMPTY||(e._EMPTY=new e(new pt),ep(e._EMPTY),ep(e._EMPTY.baseTexture)),e._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(e,"WHITE",{get:function(){if(!e._WHITE){var t=de.ADAPTER.createCanvas(16,16),i=t.getContext("2d");t.width=16,t.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),e._WHITE=new e(pt.from(t)),ep(e._WHITE),ep(e._WHITE.baseTexture)}return e._WHITE},enumerable:!1,configurable:!0}),e}(c0),Pi=function(s){Ct(e,s);function e(t,i){var n=s.call(this,t,i)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Object.defineProperty(e.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(t){this.framebuffer.multisample=t},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,i,n){n===void 0&&(n=!0);var r=this.baseTexture.resolution,a=Math.round(t*r)/r,o=Math.round(i*r)/r;this.valid=a>0&&o>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=o,n&&this.baseTexture.resize(a,o),this.updateUvs()},e.prototype.setResolution=function(t){var i=this.baseTexture;i.resolution!==t&&(i.setResolution(t),this.resize(i.width,i.height,!1))},e.create=function(t){for(var i=arguments,n=[],r=1;r<arguments.length;r++)n[r-1]=i[r];return typeof t=="number"&&(Ur("6.0.0","Arguments (width, height, scaleMode, resolution) have been deprecated."),t={width:t,height:n[0],scaleMode:n[1],resolution:n[2]}),new e(new MU(t))},e}(Ne),HX=function(){function s(e){this.texturePool={},this.textureOptions=e||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}return s.prototype.createTexture=function(e,t,i){i===void 0&&(i=Ut.NONE);var n=new MU(Object.assign({width:e,height:t,resolution:1,multisample:i},this.textureOptions));return new Pi(n)},s.prototype.getOptimalTexture=function(e,t,i,n){i===void 0&&(i=1),n===void 0&&(n=Ut.NONE);var r;e=Math.ceil(e*i-1e-6),t=Math.ceil(t*i-1e-6),!this.enableFullScreen||e!==this._pixelsWidth||t!==this._pixelsHeight?(e=xm(e),t=xm(t),r=((e&65535)<<16|t&65535)>>>0,n>1&&(r+=n*4294967296)):r=n>1?-n:-1,this.texturePool[r]||(this.texturePool[r]=[]);var a=this.texturePool[r].pop();return a||(a=this.createTexture(e,t,n)),a.filterPoolKey=r,a.setResolution(i),a},s.prototype.getFilterTexture=function(e,t,i){var n=this.getOptimalTexture(e.width,e.height,t||e.resolution,i||Ut.NONE);return n.filterFrame=e.filterFrame,n},s.prototype.returnTexture=function(e){var t=e.filterPoolKey;e.filterFrame=null,this.texturePool[t].push(e)},s.prototype.returnFilterTexture=function(e){this.returnTexture(e)},s.prototype.clear=function(e){if(e=e!==!1,e)for(var t in this.texturePool){var i=this.texturePool[t];if(i)for(var n=0;n<i.length;n++)i[n].destroy(!0)}this.texturePool={}},s.prototype.setScreenSize=function(e){if(!(e.width===this._pixelsWidth&&e.height===this._pixelsHeight)){this.enableFullScreen=e.width>0&&e.height>0;for(var t in this.texturePool)if(Number(t)<0){var i=this.texturePool[t];if(i)for(var n=0;n<i.length;n++)i[n].destroy(!0);this.texturePool[t]=[]}this._pixelsWidth=e.width,this._pixelsHeight=e.height}},s.SCREEN_KEY=-1,s}(),ON=function(){function s(e,t,i,n,r,a,o){t===void 0&&(t=0),i===void 0&&(i=!1),n===void 0&&(n=lt.FLOAT),this.buffer=e,this.size=t,this.normalized=i,this.type=n,this.stride=r,this.start=a,this.instance=o}return s.prototype.destroy=function(){this.buffer=null},s.from=function(e,t,i,n,r){return new s(e,t,i,n,r)},s}(),WX=0,Zs=function(){function s(e,t,i){t===void 0&&(t=!0),i===void 0&&(i=!1),this.data=e||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=i,this.static=t,this.id=WX++,this.disposeRunner=new Vi("disposeBuffer")}return s.prototype.update=function(e){e instanceof Array&&(e=new Float32Array(e)),this.data=e||this.data,this._updateID++},s.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},s.prototype.destroy=function(){this.dispose(),this.data=null},Object.defineProperty(s.prototype,"index",{get:function(){return this.type===Lr.ELEMENT_ARRAY_BUFFER},set:function(e){this.type=e?Lr.ELEMENT_ARRAY_BUFFER:Lr.ARRAY_BUFFER},enumerable:!1,configurable:!0}),s.from=function(e){return e instanceof Array&&(e=new Float32Array(e)),new s(e)},s}(),YX={Float32Array,Uint32Array,Int32Array,Uint8Array};function XX(s,e){for(var t=0,i=0,n={},r=0;r<s.length;r++)i+=e[r],t+=s[r].length;for(var a=new ArrayBuffer(t*4),o=null,l=0,r=0;r<s.length;r++){var u=e[r],c=s[r],h=SU(c);n[h]||(n[h]=new YX[h](a)),o=n[h];for(var f=0;f<c.length;f++){var d=(f/u|0)*i+l,_=f%u;o[d+_]=c[f]}l+=u}return new Float32Array(a)}var wN={5126:4,5123:2,5121:1},KX=0,qX={Float32Array,Uint32Array,Int32Array,Uint8Array,Uint16Array},Tw=function(){function s(e,t){e===void 0&&(e=[]),t===void 0&&(t={}),this.buffers=e,this.indexBuffer=null,this.attributes=t,this.glVertexArrayObjects={},this.id=KX++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new Vi("disposeGeometry"),this.refCount=0}return s.prototype.addAttribute=function(e,t,i,n,r,a,o,l){if(i===void 0&&(i=0),n===void 0&&(n=!1),l===void 0&&(l=!1),!t)throw new Error("You must pass a buffer when creating an attribute");t instanceof Zs||(t instanceof Array&&(t=new Float32Array(t)),t=new Zs(t));var u=e.split("|");if(u.length>1){for(var c=0;c<u.length;c++)this.addAttribute(u[c],t,i,n,r);return this}var h=this.buffers.indexOf(t);return h===-1&&(this.buffers.push(t),h=this.buffers.length-1),this.attributes[e]=new ON(h,i,n,r,a,o,l),this.instanced=this.instanced||l,this},s.prototype.getAttribute=function(e){return this.attributes[e]},s.prototype.getBuffer=function(e){return this.buffers[this.getAttribute(e).buffer]},s.prototype.addIndex=function(e){return e instanceof Zs||(e instanceof Array&&(e=new Uint16Array(e)),e=new Zs(e)),e.type=Lr.ELEMENT_ARRAY_BUFFER,this.indexBuffer=e,this.buffers.indexOf(e)===-1&&this.buffers.push(e),this},s.prototype.getIndex=function(){return this.indexBuffer},s.prototype.interleave=function(){if(this.buffers.length===1||this.buffers.length===2&&this.indexBuffer)return this;var e=[],t=[],i=new Zs,n;for(n in this.attributes){var r=this.attributes[n],a=this.buffers[r.buffer];e.push(a.data),t.push(r.size*wN[r.type]/4),r.buffer=0}for(i.data=XX(e,t),n=0;n<this.buffers.length;n++)this.buffers[n]!==this.indexBuffer&&this.buffers[n].destroy();return this.buffers=[i],this.indexBuffer&&this.buffers.push(this.indexBuffer),this},s.prototype.getSize=function(){for(var e in this.attributes){var t=this.attributes[e],i=this.buffers[t.buffer];return i.data.length/(t.stride/4||t.size)}return 0},s.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},s.prototype.destroy=function(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null},s.prototype.clone=function(){for(var e=new s,t=0;t<this.buffers.length;t++)e.buffers[t]=new Zs(this.buffers[t].data.slice(0));for(var t in this.attributes){var i=this.attributes[t];e.attributes[t]=new ON(i.buffer,i.size,i.normalized,i.type,i.stride,i.start,i.instance)}return this.indexBuffer&&(e.indexBuffer=e.buffers[this.buffers.indexOf(this.indexBuffer)],e.indexBuffer.type=Lr.ELEMENT_ARRAY_BUFFER),e},s.merge=function(e){for(var t=new s,i=[],n=[],r=[],a,o=0;o<e.length;o++){a=e[o];for(var l=0;l<a.buffers.length;l++)n[l]=n[l]||0,n[l]+=a.buffers[l].data.length,r[l]=0}for(var o=0;o<a.buffers.length;o++)i[o]=new qX[SU(a.buffers[o].data)](n[o]),t.buffers[o]=new Zs(i[o]);for(var o=0;o<e.length;o++){a=e[o];for(var l=0;l<a.buffers.length;l++)i[l].set(a.buffers[l].data,r[l]),r[l]+=a.buffers[l].data.length}if(t.attributes=a.attributes,a.indexBuffer){t.indexBuffer=t.buffers[a.buffers.indexOf(a.indexBuffer)],t.indexBuffer.type=Lr.ELEMENT_ARRAY_BUFFER;for(var u=0,c=0,h=0,f=0,o=0;o<a.buffers.length;o++)if(a.buffers[o]!==a.indexBuffer){f=o;break}for(var o in a.attributes){var d=a.attributes[o];(d.buffer|0)===f&&(c+=d.size*wN[d.type]/4)}for(var o=0;o<e.length;o++){for(var _=e[o].indexBuffer.data,l=0;l<_.length;l++)t.indexBuffer.data[l+h]+=u;u+=e[o].buffers[f].data.length/c,h+=_.length}}return t},s}(),$X=function(s){Ct(e,s);function e(){var t=s.call(this)||this;return t.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2]),t}return e}(Tw),PU=function(s){Ct(e,s);function e(){var t=s.call(this)||this;return t.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),t.uvs=new Float32Array([0,0,1,0,1,1,0,1]),t.vertexBuffer=new Zs(t.vertices),t.uvBuffer=new Zs(t.uvs),t.addAttribute("aVertexPosition",t.vertexBuffer).addAttribute("aTextureCoord",t.uvBuffer).addIndex([0,1,2,0,2,3]),t}return e.prototype.map=function(t,i){var n=0,r=0;return this.uvs[0]=n,this.uvs[1]=r,this.uvs[2]=n+i.width/t.width,this.uvs[3]=r,this.uvs[4]=n+i.width/t.width,this.uvs[5]=r+i.height/t.height,this.uvs[6]=n,this.uvs[7]=r+i.height/t.height,n=i.x,r=i.y,this.vertices[0]=n,this.vertices[1]=r,this.vertices[2]=n+i.width,this.vertices[3]=r,this.vertices[4]=n+i.width,this.vertices[5]=r+i.height,this.vertices[6]=n,this.vertices[7]=r+i.height,this.invalidate(),this},e.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this},e}(Tw),QX=0,Ru=function(){function s(e,t,i){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=QX++,this.static=!!t,this.ubo=!!i,e instanceof Zs?(this.buffer=e,this.buffer.type=Lr.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Zs(new Float32Array(1)),this.buffer.type=Lr.UNIFORM_BUFFER,this.autoManage=!0))}return s.prototype.update=function(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()},s.prototype.add=function(e,t,i){if(!this.ubo)this.uniforms[e]=new s(t,i);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")},s.from=function(e,t,i){return new s(e,t,i)},s.uboFrom=function(e,t){return new s(e,t??!0,!0)},s}(),ZX=function(){function s(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=Ut.NONE,this.sourceFrame=new ve,this.destinationFrame=new ve,this.bindingSourceFrame=new ve,this.bindingDestinationFrame=new ve,this.filters=[],this.transform=null}return s.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null},s}(),tp=[new Q,new Q,new Q,new Q],Ly=new dt,JX=function(){function s(e){this.renderer=e,this.defaultFilterStack=[{}],this.texturePool=new HX,this.texturePool.setScreenSize(e.view),this.statePool=[],this.quad=new $X,this.quadUv=new PU,this.tempRect=new ve,this.activeState={},this.globalUniforms=new Ru({outputFrame:new ve,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}return s.prototype.push=function(e,t){for(var i,n,r=this.renderer,a=this.defaultFilterStack,o=this.statePool.pop()||new ZX,l=this.renderer.renderTexture,u=t[0].resolution,c=t[0].multisample,h=t[0].padding,f=t[0].autoFit,d=(i=t[0].legacy)!==null&&i!==void 0?i:!0,_=1;_<t.length;_++){var g=t[_];u=Math.min(u,g.resolution),c=Math.min(c,g.multisample),h=this.useMaxPadding?Math.max(h,g.padding):h+g.padding,f=f&&g.autoFit,d=d||((n=g.legacy)!==null&&n!==void 0?n:!0)}a.length===1&&(this.defaultFilterStack[0].renderTexture=l.current),a.push(o),o.resolution=u,o.multisample=c,o.legacy=d,o.target=e,o.sourceFrame.copyFrom(e.filterArea||e.getBounds(!0)),o.sourceFrame.pad(h);var p=this.tempRect.copyFrom(l.sourceFrame);r.projection.transform&&this.transformAABB(Ly.copyFrom(r.projection.transform).invert(),p),f?(o.sourceFrame.fit(p),(o.sourceFrame.width<=0||o.sourceFrame.height<=0)&&(o.sourceFrame.width=0,o.sourceFrame.height=0)):o.sourceFrame.intersects(p)||(o.sourceFrame.width=0,o.sourceFrame.height=0),this.roundFrame(o.sourceFrame,l.current?l.current.resolution:r.resolution,l.sourceFrame,l.destinationFrame,r.projection.transform),o.renderTexture=this.getOptimalFilterTexture(o.sourceFrame.width,o.sourceFrame.height,u,c),o.filters=t,o.destinationFrame.width=o.renderTexture.width,o.destinationFrame.height=o.renderTexture.height;var m=this.tempRect;m.x=0,m.y=0,m.width=o.sourceFrame.width,m.height=o.sourceFrame.height,o.renderTexture.filterFrame=o.sourceFrame,o.bindingSourceFrame.copyFrom(l.sourceFrame),o.bindingDestinationFrame.copyFrom(l.destinationFrame),o.transform=r.projection.transform,r.projection.transform=null,l.bind(o.renderTexture,o.sourceFrame,m),r.framebuffer.clear(0,0,0,0)},s.prototype.pop=function(){var e=this.defaultFilterStack,t=e.pop(),i=t.filters;this.activeState=t;var n=this.globalUniforms.uniforms;n.outputFrame=t.sourceFrame,n.resolution=t.resolution;var r=n.inputSize,a=n.inputPixel,o=n.inputClamp;if(r[0]=t.destinationFrame.width,r[1]=t.destinationFrame.height,r[2]=1/r[0],r[3]=1/r[1],a[0]=Math.round(r[0]*t.resolution),a[1]=Math.round(r[1]*t.resolution),a[2]=1/a[0],a[3]=1/a[1],o[0]=.5*a[2],o[1]=.5*a[3],o[2]=t.sourceFrame.width*r[2]-.5*a[2],o[3]=t.sourceFrame.height*r[3]-.5*a[3],t.legacy){var l=n.filterArea;l[0]=t.destinationFrame.width,l[1]=t.destinationFrame.height,l[2]=t.sourceFrame.x,l[3]=t.sourceFrame.y,n.filterClamp=n.inputClamp}this.globalUniforms.update();var u=e[e.length-1];if(this.renderer.framebuffer.blit(),i.length===1)i[0].apply(this,t.renderTexture,u.renderTexture,eo.BLEND,t),this.returnFilterTexture(t.renderTexture);else{var c=t.renderTexture,h=this.getOptimalFilterTexture(c.width,c.height,t.resolution);h.filterFrame=c.filterFrame;var f=0;for(f=0;f<i.length-1;++f){f===1&&t.multisample>1&&(h=this.getOptimalFilterTexture(c.width,c.height,t.resolution),h.filterFrame=c.filterFrame),i[f].apply(this,c,h,eo.CLEAR,t);var d=c;c=h,h=d}i[f].apply(this,c,u.renderTexture,eo.BLEND,t),f>1&&t.multisample>1&&this.returnFilterTexture(t.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(h)}t.clear(),this.statePool.push(t)},s.prototype.bindAndClear=function(e,t){t===void 0&&(t=eo.CLEAR);var i=this.renderer,n=i.renderTexture,r=i.state;if(e===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,e&&e.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=e.filterFrame.width,a.height=e.filterFrame.height,n.bind(e,e.filterFrame,a)}else e!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(e):this.renderer.renderTexture.bind(e,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var o=r.stateId&1||this.forceClear;(t===eo.CLEAR||t===eo.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},s.prototype.applyFilter=function(e,t,i,n){var r=this.renderer;r.state.set(e.state),this.bindAndClear(i,n),e.uniforms.uSampler=t,e.uniforms.filterGlobals=this.globalUniforms,r.shader.bind(e),e.legacy=!!e.program.attributeData.aTextureCoord,e.legacy?(this.quadUv.map(t._frame,t.filterFrame),r.geometry.bind(this.quadUv),r.geometry.draw(Ia.TRIANGLES)):(r.geometry.bind(this.quad),r.geometry.draw(Ia.TRIANGLE_STRIP))},s.prototype.calculateSpriteMatrix=function(e,t){var i=this.activeState,n=i.sourceFrame,r=i.destinationFrame,a=t._texture.orig,o=e.set(r.width,0,0,r.height,n.x,n.y),l=t.worldTransform.copyTo(dt.TEMP_MATRIX);return l.invert(),o.prepend(l),o.scale(1/a.width,1/a.height),o.translate(t.anchor.x,t.anchor.y),o},s.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},s.prototype.getOptimalFilterTexture=function(e,t,i,n){return i===void 0&&(i=1),n===void 0&&(n=Ut.NONE),this.texturePool.getOptimalTexture(e,t,i,n)},s.prototype.getFilterTexture=function(e,t,i){if(typeof e=="number"){var n=e;e=t,t=n}e=e||this.activeState.renderTexture;var r=this.texturePool.getOptimalTexture(e.width,e.height,t||e.resolution,i||Ut.NONE);return r.filterFrame=e.filterFrame,r},s.prototype.returnFilterTexture=function(e){this.texturePool.returnTexture(e)},s.prototype.emptyPool=function(){this.texturePool.clear(!0)},s.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},s.prototype.transformAABB=function(e,t){var i=tp[0],n=tp[1],r=tp[2],a=tp[3];i.set(t.left,t.top),n.set(t.left,t.bottom),r.set(t.right,t.top),a.set(t.right,t.bottom),e.apply(i,i),e.apply(n,n),e.apply(r,r),e.apply(a,a);var o=Math.min(i.x,n.x,r.x,a.x),l=Math.min(i.y,n.y,r.y,a.y),u=Math.max(i.x,n.x,r.x,a.x),c=Math.max(i.y,n.y,r.y,a.y);t.x=o,t.y=l,t.width=u-o,t.height=c-l},s.prototype.roundFrame=function(e,t,i,n,r){if(!(e.width<=0||e.height<=0||i.width<=0||i.height<=0)){if(r){var a=r.a,o=r.b,l=r.c,u=r.d;if((Math.abs(o)>1e-4||Math.abs(l)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(u)>1e-4))return}r=r?Ly.copyFrom(r):Ly.identity(),r.translate(-i.x,-i.y).scale(n.width/i.width,n.height/i.height).translate(n.x,n.y),this.transformAABB(r,e),e.ceil(t),this.transformAABB(r.invert(),e)}},s}(),Iw=function(){function s(e){this.renderer=e}return s.prototype.flush=function(){},s.prototype.destroy=function(){this.renderer=null},s.prototype.start=function(){},s.prototype.stop=function(){this.flush()},s.prototype.render=function(e){},s}(),eK=function(){function s(e){this.renderer=e,this.emptyRenderer=new Iw(e),this.currentRenderer=this.emptyRenderer}return s.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},s.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},s.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},s.prototype.copyBoundTextures=function(e,t){for(var i=this.renderer.texture.boundTextures,n=t-1;n>=0;--n)e[n]=i[n]||null,e[n]&&(e[n]._batchLocation=n)},s.prototype.boundArray=function(e,t,i,n){for(var r=e.elements,a=e.ids,o=e.count,l=0,u=0;u<o;u++){var c=r[u],h=c._batchLocation;if(h>=0&&h<n&&t[h]===c){a[u]=h;continue}for(;l<n;){var f=t[l];if(f&&f._batchEnabled===i&&f._batchLocation===l){l++;continue}a[u]=l,c._batchLocation=l,t[l]=c;break}}},s.prototype.destroy=function(){this.renderer=null},s}(),CN=0,tK=function(){function s(e){this.renderer=e,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),e.view.addEventListener("webglcontextlost",this.handleContextLost,!1),e.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}return Object.defineProperty(s.prototype,"isLost",{get:function(){return!this.gl||this.gl.isContextLost()},enumerable:!1,configurable:!0}),s.prototype.contextChange=function(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=CN++},s.prototype.initFromContext=function(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=CN++,this.renderer.runners.contextChange.emit(e)},s.prototype.initFromOptions=function(e){var t=this.createContext(this.renderer.view,e);this.initFromContext(t)},s.prototype.createContext=function(e,t){var i;if(de.PREFER_ENV>=Ga.WEBGL2&&(i=e.getContext("webgl2",t)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},s.prototype.getExtensions=function(){var e=this.gl,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,t,{colorBufferFloat:e.getExtension("EXT_color_buffer_float")})},s.prototype.handleContextLost=function(e){var t=this;e.preventDefault(),setTimeout(function(){t.gl.isContextLost()&&t.extensions.loseContext&&t.extensions.loseContext.restoreContext()},0)},s.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},s.prototype.destroy=function(){var e=this.renderer.view;this.renderer=null,e.removeEventListener("webglcontextlost",this.handleContextLost),e.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},s.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},s.prototype.validateContext=function(e){var t=e.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),t&&!t.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=i||!!e.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},s}(),iK=function(){function s(e){this.framebuffer=e,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=Ut.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return s}(),sK=new ve,nK=function(){function s(e){this.renderer=e,this.managedFramebuffers=[],this.unknownFramebuffer=new QI(10,10),this.msaaSamples=null}return s.prototype.contextChange=function(){this.disposeAll(!0);var e=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new ve,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var t=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;de.PREFER_ENV===Ga.WEBGL_LEGACY&&(t=null,i=null),t?e.drawBuffers=function(n){return t.drawBuffersWEBGL(n)}:(this.hasMRT=!1,e.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=e.getInternalformatParameter(e.RENDERBUFFER,e.RGBA8,e.SAMPLES)},s.prototype.bind=function(e,t,i){i===void 0&&(i=0);var n=this.gl;if(e){var r=e.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(e);this.current!==e&&(this.current=e,n.bindFramebuffer(n.FRAMEBUFFER,r.framebuffer)),r.mipLevel!==i&&(e.dirtyId++,e.dirtyFormat++,r.mipLevel=i),r.dirtyId!==e.dirtyId&&(r.dirtyId=e.dirtyId,r.dirtyFormat!==e.dirtyFormat?(r.dirtyFormat=e.dirtyFormat,r.dirtySize=e.dirtySize,this.updateFramebuffer(e,i)):r.dirtySize!==e.dirtySize&&(r.dirtySize=e.dirtySize,this.resizeFramebuffer(e)));for(var a=0;a<e.colorTextures.length;a++){var o=e.colorTextures[a];this.renderer.texture.unbind(o.parentTextureArray||o)}if(e.depthTexture&&this.renderer.texture.unbind(e.depthTexture),t){var l=t.width>>i,u=t.height>>i,c=l/t.width;this.setViewport(t.x*c,t.y*c,l,u)}else{var l=e.width>>i,u=e.height>>i;this.setViewport(0,0,l,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),t?this.setViewport(t.x,t.y,t.width,t.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},s.prototype.setViewport=function(e,t,i,n){var r=this.viewport;e=Math.round(e),t=Math.round(t),i=Math.round(i),n=Math.round(n),(r.width!==i||r.height!==n||r.x!==e||r.y!==t)&&(r.x=e,r.y=t,r.width=i,r.height=n,this.gl.viewport(e,t,i,n))},Object.defineProperty(s.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),s.prototype.clear=function(e,t,i,n,r){r===void 0&&(r=bm.COLOR|bm.DEPTH);var a=this.gl;a.clearColor(e,t,i,n),a.clear(r)},s.prototype.initFramebuffer=function(e){var t=this.gl,i=new iK(t.createFramebuffer());return i.multisample=this.detectSamples(e.multisample),e.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(e),e.disposeRunner.add(this),i},s.prototype.resizeFramebuffer=function(e){var t=this.gl,i=e.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(t.bindRenderbuffer(t.RENDERBUFFER,i.msaaBuffer),t.renderbufferStorageMultisample(t.RENDERBUFFER,i.multisample,t.RGBA8,e.width,e.height)),i.stencil&&(t.bindRenderbuffer(t.RENDERBUFFER,i.stencil),i.msaaBuffer?t.renderbufferStorageMultisample(t.RENDERBUFFER,i.multisample,t.DEPTH24_STENCIL8,e.width,e.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,e.width,e.height));var n=e.colorTextures,r=n.length;t.drawBuffers||(r=Math.min(r,1));for(var a=0;a<r;a++){var o=n[a],l=o.parentTextureArray||o;this.renderer.texture.bind(l,0)}e.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(e.depthTexture,0)},s.prototype.updateFramebuffer=function(e,t){var i=this.gl,n=e.glFramebuffers[this.CONTEXT_UID],r=e.colorTextures,a=r.length;i.drawBuffers||(a=Math.min(a,1)),n.multisample>1&&this.canMultisampleFramebuffer(e)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,e.width,e.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(i.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var o=[],l=0;l<a;l++){var u=r[l],c=u.parentTextureArray||u;this.renderer.texture.bind(c,0),!(l===0&&n.msaaBuffer)&&(i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+l,u.target,c._glTextures[this.CONTEXT_UID].texture,t),o.push(i.COLOR_ATTACHMENT0+l))}if(o.length>1&&i.drawBuffers(o),e.depthTexture){var h=this.writeDepthTexture;if(h){var f=e.depthTexture;this.renderer.texture.bind(f,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,f._glTextures[this.CONTEXT_UID].texture,t)}}(e.stencil||e.depth)&&!(e.depthTexture&&this.writeDepthTexture)?(n.stencil=n.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.stencil),n.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.DEPTH24_STENCIL8,e.width,e.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,e.width,e.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil)):n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null)},s.prototype.canMultisampleFramebuffer=function(e){return this.renderer.context.webGLVersion!==1&&e.colorTextures.length<=1&&!e.depthTexture},s.prototype.detectSamples=function(e){var t=this.msaaSamples,i=Ut.NONE;if(e<=1||t===null)return i;for(var n=0;n<t.length;n++)if(t[n]<=e){i=t[n];break}return i===1&&(i=Ut.NONE),i},s.prototype.blit=function(e,t,i){var n=this,r=n.current,a=n.renderer,o=n.gl,l=n.CONTEXT_UID;if(a.context.webGLVersion===2&&r){var u=r.glFramebuffers[l];if(u){if(!e){if(!u.msaaBuffer)return;var c=r.colorTextures[0];if(!c)return;u.blitFramebuffer||(u.blitFramebuffer=new QI(r.width,r.height),u.blitFramebuffer.addColorTexture(0,c)),e=u.blitFramebuffer,e.colorTextures[0]!==c&&(e.colorTextures[0]=c,e.dirtyId++,e.dirtyFormat++),(e.width!==r.width||e.height!==r.height)&&(e.width=r.width,e.height=r.height,e.dirtyId++,e.dirtySize++)}t||(t=sK,t.width=r.width,t.height=r.height),i||(i=t);var h=t.width===i.width&&t.height===i.height;this.bind(e),o.bindFramebuffer(o.READ_FRAMEBUFFER,u.framebuffer),o.blitFramebuffer(t.left,t.top,t.right,t.bottom,i.left,i.top,i.right,i.bottom,o.COLOR_BUFFER_BIT,h?o.NEAREST:o.LINEAR)}}},s.prototype.disposeFramebuffer=function(e,t){var i=e.glFramebuffers[this.CONTEXT_UID],n=this.gl;if(i){delete e.glFramebuffers[this.CONTEXT_UID];var r=this.managedFramebuffers.indexOf(e);r>=0&&this.managedFramebuffers.splice(r,1),e.disposeRunner.remove(this),t||(n.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&n.deleteRenderbuffer(i.msaaBuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},s.prototype.disposeAll=function(e){var t=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i<t.length;i++)this.disposeFramebuffer(t[i],e)},s.prototype.forceStencil=function(){var e=this.current;if(e){var t=e.glFramebuffers[this.CONTEXT_UID];if(!(!t||t.stencil)){e.stencil=!0;var i=e.width,n=e.height,r=this.gl,a=r.createRenderbuffer();r.bindRenderbuffer(r.RENDERBUFFER,a),t.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,t.multisample,r.DEPTH24_STENCIL8,i,n):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,i,n),t.stencil=a,r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a)}}},s.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new ve},s.prototype.destroy=function(){this.renderer=null},s}(),Uy={5126:4,5123:2,5121:1},rK=function(){function s(e){this.renderer=e,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}return s.prototype.contextChange=function(){this.disposeAll(!0);var e=this.gl=this.renderer.gl,t=this.renderer.context;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,t.webGLVersion!==2){var i=this.renderer.context.extensions.vertexArrayObject;de.PREFER_ENV===Ga.WEBGL_LEGACY&&(i=null),i?(e.createVertexArray=function(){return i.createVertexArrayOES()},e.bindVertexArray=function(r){return i.bindVertexArrayOES(r)},e.deleteVertexArray=function(r){return i.deleteVertexArrayOES(r)}):(this.hasVao=!1,e.createVertexArray=function(){return null},e.bindVertexArray=function(){return null},e.deleteVertexArray=function(){return null})}if(t.webGLVersion!==2){var n=e.getExtension("ANGLE_instanced_arrays");n?(e.vertexAttribDivisor=function(r,a){return n.vertexAttribDivisorANGLE(r,a)},e.drawElementsInstanced=function(r,a,o,l,u){return n.drawElementsInstancedANGLE(r,a,o,l,u)},e.drawArraysInstanced=function(r,a,o,l){return n.drawArraysInstancedANGLE(r,a,o,l)}):this.hasInstance=!1}this.canUseUInt32ElementIndex=t.webGLVersion===2||!!t.extensions.uint32ElementIndex},s.prototype.bind=function(e,t){t=t||this.renderer.shader.shader;var i=this.gl,n=e.glVertexArrayObjects[this.CONTEXT_UID],r=!1;n||(this.managedGeometries[e.id]=e,e.disposeRunner.add(this),e.glVertexArrayObjects[this.CONTEXT_UID]=n={},r=!0);var a=n[t.program.id]||this.initGeometryVao(e,t,r);this._activeGeometry=e,this._activeVao!==a&&(this._activeVao=a,this.hasVao?i.bindVertexArray(a):this.activateVao(e,t.program)),this.updateBuffers()},s.prototype.reset=function(){this.unbind()},s.prototype.updateBuffers=function(){for(var e=this._activeGeometry,t=this.renderer.buffer,i=0;i<e.buffers.length;i++){var n=e.buffers[i];t.update(n)}},s.prototype.checkCompatibility=function(e,t){var i=e.attributes,n=t.attributeData;for(var r in n)if(!i[r])throw new Error('shader and geometry incompatible, geometry missing the "'+r+'" attribute')},s.prototype.getSignature=function(e,t){var i=e.attributes,n=t.attributeData,r=["g",e.id];for(var a in i)n[a]&&r.push(a,n[a].location);return r.join("-")},s.prototype.initGeometryVao=function(e,t,i){i===void 0&&(i=!0);var n=this.gl,r=this.CONTEXT_UID,a=this.renderer.buffer,o=t.program;o.glPrograms[r]||this.renderer.shader.generateProgram(t),this.checkCompatibility(e,o);var l=this.getSignature(e,o),u=e.glVertexArrayObjects[this.CONTEXT_UID],c=u[l];if(c)return u[o.id]=c,c;var h=e.buffers,f=e.attributes,d={},_={};for(var g in h)d[g]=0,_[g]=0;for(var g in f)!f[g].size&&o.attributeData[g]?f[g].size=o.attributeData[g].size:f[g].size||console.warn("PIXI Geometry attribute '"+g+"' size cannot be determined (likely the bound shader does not have the attribute)"),d[f[g].buffer]+=f[g].size*Uy[f[g].type];for(var g in f){var p=f[g],m=p.size;p.stride===void 0&&(d[p.buffer]===m*Uy[p.type]?p.stride=0:p.stride=d[p.buffer]),p.start===void 0&&(p.start=_[p.buffer],_[p.buffer]+=m*Uy[p.type])}c=n.createVertexArray(),n.bindVertexArray(c);for(var v=0;v<h.length;v++){var E=h[v];a.bind(E),i&&E._glBuffers[r].refCount++}return this.activateVao(e,o),this._activeVao=c,u[o.id]=c,u[l]=c,c},s.prototype.disposeGeometry=function(e,t){var i;if(this.managedGeometries[e.id]){delete this.managedGeometries[e.id];var n=e.glVertexArrayObjects[this.CONTEXT_UID],r=this.gl,a=e.buffers,o=(i=this.renderer)===null||i===void 0?void 0:i.buffer;if(e.disposeRunner.remove(this),!!n){if(o)for(var l=0;l<a.length;l++){var u=a[l]._glBuffers[this.CONTEXT_UID];u&&(u.refCount--,u.refCount===0&&!t&&o.dispose(a[l],t))}if(!t){for(var c in n)if(c[0]==="g"){var h=n[c];this._activeVao===h&&this.unbind(),r.deleteVertexArray(h)}}delete e.glVertexArrayObjects[this.CONTEXT_UID]}}},s.prototype.disposeAll=function(e){for(var t=Object.keys(this.managedGeometries),i=0;i<t.length;i++)this.disposeGeometry(this.managedGeometries[t[i]],e)},s.prototype.activateVao=function(e,t){var i=this.gl,n=this.CONTEXT_UID,r=this.renderer.buffer,a=e.buffers,o=e.attributes;e.indexBuffer&&r.bind(e.indexBuffer);var l=null;for(var u in o){var c=o[u],h=a[c.buffer],f=h._glBuffers[n];if(t.attributeData[u]){l!==f&&(r.bind(h),l=f);var d=t.attributeData[u].location;if(i.enableVertexAttribArray(d),i.vertexAttribPointer(d,c.size,c.type||i.FLOAT,c.normalized,c.stride,c.start),c.instance)if(this.hasInstance)i.vertexAttribDivisor(d,1);else throw new Error("geometry error, GPU Instancing is not supported on this device")}}},s.prototype.draw=function(e,t,i,n){var r=this.gl,a=this._activeGeometry;if(a.indexBuffer){var o=a.indexBuffer.data.BYTES_PER_ELEMENT,l=o===2?r.UNSIGNED_SHORT:r.UNSIGNED_INT;o===2||o===4&&this.canUseUInt32ElementIndex?a.instanced?r.drawElementsInstanced(e,t||a.indexBuffer.data.length,l,(i||0)*o,n||1):r.drawElements(e,t||a.indexBuffer.data.length,l,(i||0)*o):console.warn("unsupported index buffer type: uint32")}else a.instanced?r.drawArraysInstanced(e,i,t||a.getSize(),n||1):r.drawArrays(e,i,t||a.getSize());return this},s.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},s.prototype.destroy=function(){this.renderer=null},s}(),aK=function(){function s(e){e===void 0&&(e=null),this.type=ci.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=de.FILTER_MULTISAMPLE,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}return Object.defineProperty(s.prototype,"filter",{get:function(){return this._filters?this._filters[0]:null},set:function(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this.pooled&&(this.maskObject=null,this.type=ci.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null},s.prototype.copyCountersOrReset=function(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)},s}();function MN(s,e,t){var i=s.createShader(e);return s.shaderSource(i,t),s.compileShader(i),i}function NN(s,e){var t=s.getShaderSource(e).split(`
`).map(function(u,c){return c+": "+u}),i=s.getShaderInfoLog(e),n=i.split(`
`),r={},a=n.map(function(u){return parseFloat(u.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(u){return u&&!r[u]?(r[u]=!0,!0):!1}),o=[""];a.forEach(function(u){t[u-1]="%c"+t[u-1]+"%c",o.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var l=t.join(`
`);o[0]=l,console.error(i),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,o),console.groupEnd()}function oK(s,e,t,i){s.getProgramParameter(e,s.LINK_STATUS)||(s.getShaderParameter(t,s.COMPILE_STATUS)||NN(s,t),s.getShaderParameter(i,s.COMPILE_STATUS)||NN(s,i),console.error("PixiJS Error: Could not initialize shader."),s.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",s.getProgramInfoLog(e)))}function Fy(s){for(var e=new Array(s),t=0;t<e.length;t++)e[t]=!1;return e}function kU(s,e){switch(s){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return Fy(2*e);case"bvec3":return Fy(3*e);case"bvec4":return Fy(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var xU={},Mf=xU;function lK(){if(Mf===xU||Mf&&Mf.isContextLost()){var s=de.ADAPTER.createCanvas(),e=void 0;de.PREFER_ENV>=Ga.WEBGL2&&(e=s.getContext("webgl2",{})),e||(e=s.getContext("webgl",{})||s.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),Mf=e}return Mf}var ip;function uK(){if(!ip){ip=sn.MEDIUM;var s=lK();if(s&&s.getShaderPrecisionFormat){var e=s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT);ip=e.precision?sn.HIGH:sn.MEDIUM}}return ip}function PN(s,e,t){if(s.substring(0,9)!=="precision"){var i=e;return e===sn.HIGH&&t!==sn.HIGH&&(i=sn.MEDIUM),"precision "+i+` float;
`+s}else if(t!==sn.HIGH&&s.substring(0,15)==="precision highp")return s.replace("precision highp","precision mediump");return s}var hK={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function DU(s){return hK[s]}var sp=null,kN={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function LU(s,e){if(!sp){var t=Object.keys(kN);sp={};for(var i=0;i<t.length;++i){var n=t[i];sp[s[n]]=kN[n]}}return sp[e]}var Nc=[{test:function(s){return s.type==="float"&&s.size===1&&!s.isArray},code:function(s){return`
if(uv["`+s+'"] !== ud["'+s+`"].value)
{
ud["`+s+'"].value = uv["'+s+`"]
gl.uniform1f(ud["`+s+'"].location, uv["'+s+`"])
}
`}},{test:function(s,e){return(s.type==="sampler2D"||s.type==="samplerCube"||s.type==="sampler2DArray")&&s.size===1&&!s.isArray&&(e==null||e.castToBaseTexture!==void 0)},code:function(s){return`t = syncData.textureCount++;
renderer.texture.bind(uv["`+s+`"], t);
if(ud["`+s+`"].value !== t)
{
ud["`+s+`"].value = t;
gl.uniform1i(ud["`+s+`"].location, t);
; // eslint-disable-line max-len
}`}},{test:function(s,e){return s.type==="mat3"&&s.size===1&&!s.isArray&&e.a!==void 0},code:function(s){return`
gl.uniformMatrix3fv(ud["`+s+'"].location, false, uv["'+s+`"].toArray(true));
`},codeUbo:function(s){return`
var `+s+"_matrix = uv."+s+`.toArray(true);
data[offset] = `+s+`_matrix[0];
data[offset+1] = `+s+`_matrix[1];
data[offset+2] = `+s+`_matrix[2];
data[offset + 4] = `+s+`_matrix[3];
data[offset + 5] = `+s+`_matrix[4];
data[offset + 6] = `+s+`_matrix[5];
data[offset + 8] = `+s+`_matrix[6];
data[offset + 9] = `+s+`_matrix[7];
data[offset + 10] = `+s+`_matrix[8];
`}},{test:function(s,e){return s.type==="vec2"&&s.size===1&&!s.isArray&&e.x!==void 0},code:function(s){return`
cv = ud["`+s+`"].value;
v = uv["`+s+`"];
if(cv[0] !== v.x || cv[1] !== v.y)
{
cv[0] = v.x;
cv[1] = v.y;
gl.uniform2f(ud["`+s+`"].location, v.x, v.y);
}`},codeUbo:function(s){return`
v = uv.`+s+`;
data[offset] = v.x;
data[offset+1] = v.y;
`}},{test:function(s){return s.type==="vec2"&&s.size===1&&!s.isArray},code:function(s){return`
cv = ud["`+s+`"].value;
v = uv["`+s+`"];
if(cv[0] !== v[0] || cv[1] !== v[1])
{
cv[0] = v[0];
cv[1] = v[1];
gl.uniform2f(ud["`+s+`"].location, v[0], v[1]);
}
`}},{test:function(s,e){return s.type==="vec4"&&s.size===1&&!s.isArray&&e.width!==void 0},code:function(s){return`
cv = ud["`+s+`"].value;
v = uv["`+s+`"];
if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)
{
cv[0] = v.x;
cv[1] = v.y;
cv[2] = v.width;
cv[3] = v.height;
gl.uniform4f(ud["`+s+`"].location, v.x, v.y, v.width, v.height)
}`},codeUbo:function(s){return`
v = uv.`+s+`;
data[offset] = v.x;
data[offset+1] = v.y;
data[offset+2] = v.width;
data[offset+3] = v.height;
`}},{test:function(s){return s.type==="vec4"&&s.size===1&&!s.isArray},code:function(s){return`
cv = ud["`+s+`"].value;
v = uv["`+s+`"];
if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
cv[3] = v[3];
gl.uniform4f(ud["`+s+`"].location, v[0], v[1], v[2], v[3])
}`}}],cK={float:`
if (cv !== v)
{
cu.value = v;
gl.uniform1f(location, v);
}`,vec2:`
if (cv[0] !== v[0] || cv[1] !== v[1])
{
cv[0] = v[0];
cv[1] = v[1];
gl.uniform2f(location, v[0], v[1])
}`,vec3:`
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
gl.uniform3f(location, v[0], v[1], v[2])
}`,vec4:`
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
cv[3] = v[3];
gl.uniform4f(location, v[0], v[1], v[2], v[3]);
}`,int:`
if (cv !== v)
{
cu.value = v;
gl.uniform1i(location, v);
}`,ivec2:`
if (cv[0] !== v[0] || cv[1] !== v[1])
{
cv[0] = v[0];
cv[1] = v[1];
gl.uniform2i(location, v[0], v[1]);
}`,ivec3:`
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
gl.uniform3i(location, v[0], v[1], v[2]);
}`,ivec4:`
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
cv[3] = v[3];
gl.uniform4i(location, v[0], v[1], v[2], v[3]);
}`,uint:`
if (cv !== v)
{
cu.value = v;
gl.uniform1ui(location, v);
}`,uvec2:`
if (cv[0] !== v[0] || cv[1] !== v[1])
{
cv[0] = v[0];
cv[1] = v[1];
gl.uniform2ui(location, v[0], v[1]);
}`,uvec3:`
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
gl.uniform3ui(location, v[0], v[1], v[2]);
}`,uvec4:`
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
cv[3] = v[3];
gl.uniform4ui(location, v[0], v[1], v[2], v[3]);
}`,bool:`
if (cv !== v)
{
cu.value = v;
gl.uniform1i(location, v);
}`,bvec2:`
if (cv[0] != v[0] || cv[1] != v[1])
{
cv[0] = v[0];
cv[1] = v[1];
gl.uniform2i(location, v[0], v[1]);
}`,bvec3:`
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
gl.uniform3i(location, v[0], v[1], v[2]);
}`,bvec4:`
if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
{
cv[0] = v[0];
cv[1] = v[1];
cv[2] = v[2];
cv[3] = v[3];
gl.uniform4i(location, v[0], v[1], v[2], v[3]);
}`,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:`
if (cv !== v)
{
cu.value = v;
gl.uniform1i(location, v);
}`,samplerCube:`
if (cv !== v)
{
cu.value = v;
gl.uniform1i(location, v);
}`,sampler2DArray:`
if (cv !== v)
{
cu.value = v;
gl.uniform1i(location, v);
}`},fK={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function dK(s,e){var t,i=[`
var v = null;
var cv = null;
var cu = null;
var t = 0;
var gl = renderer.gl;
`];for(var n in s.uniforms){var r=e[n];if(!r){!((t=s.uniforms[n])===null||t===void 0)&&t.group&&(s.uniforms[n].ubo?i.push(`
renderer.shader.syncUniformBufferGroup(uv.`+n+", '"+n+`');
`):i.push(`
renderer.shader.syncUniformGroup(uv.`+n+`, syncData);
`));continue}for(var a=s.uniforms[n],o=!1,l=0;l<Nc.length;l++)if(Nc[l].test(r,a)){i.push(Nc[l].code(n,a)),o=!0;break}if(!o){var u=r.size===1&&!r.isArray?cK:fK,c=u[r.type].replace("location",'ud["'+n+'"].location');i.push(`
cu = ud["`+n+`"];
cv = cu.value;
v = uv["`+n+`"];
`+c+";")}}return new Function("ud","uv","renderer","syncData",i.join(`
`))}var _K=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
`);function gK(s){for(var e="",t=0;t<s;++t)t>0&&(e+=`
else `),t<s-1&&(e+="if(test == "+t+".0){}");return e}function pK(s,e){if(s===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var t=e.createShader(e.FRAGMENT_SHADER);;){var i=_K.replace(/%forloop%/gi,gK(s));if(e.shaderSource(t,i),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))s=s/2|0;else break}return s}var Nf;function mK(){if(typeof Nf=="boolean")return Nf;try{var s=new Function("param1","param2","param3","return param1[param2] === param3;");Nf=s({a:"b"},"a","b")===!0}catch{Nf=!1}return Nf}var vK=`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
void main(void){
gl_FragColor *= texture2D(uSampler, vTextureCoord);
}`,EK=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void){
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}
`,yK=0,np={},Rw=function(){function s(e,t,i){i===void 0&&(i="pixi-shader"),this.id=yK++,this.vertexSrc=e||s.defaultVertexSrc,this.fragmentSrc=t||s.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.vertexSrc.substring(0,8)!=="#version"&&(i=i.replace(/\s+/g,"-"),np[i]?(np[i]++,i+="-"+np[i]):np[i]=1,this.vertexSrc="#define SHADER_NAME "+i+`
`+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+i+`
`+this.fragmentSrc,this.vertexSrc=PN(this.vertexSrc,de.PRECISION_VERTEX,sn.HIGH),this.fragmentSrc=PN(this.fragmentSrc,de.PRECISION_FRAGMENT,uK())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(s,"defaultVertexSrc",{get:function(){return EK},enumerable:!1,configurable:!0}),Object.defineProperty(s,"defaultFragmentSrc",{get:function(){return vK},enumerable:!1,configurable:!0}),s.from=function(e,t,i){var n=e+t,r=RN[n];return r||(RN[n]=r=new s(e,t,i)),r},s}(),Pc=function(){function s(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof Ru?this.uniformGroup=t:this.uniformGroup=new Ru(t):this.uniformGroup=new Ru({}),this.disposeRunner=new Vi("disposeShader")}return s.prototype.checkUniformExists=function(e,t){if(t.uniforms[e])return!0;for(var i in t.uniforms){var n=t.uniforms[i];if(n.group&&this.checkUniformExists(e,n))return!0}return!1},s.prototype.destroy=function(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()},Object.defineProperty(s.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),s.from=function(e,t,i){var n=Rw.from(e,t);return new s(n,i)},s}(),By=0,Gy=1,Vy=2,jy=3,zy=4,Hy=5,Eg=function(){function s(){this.data=0,this.blendMode=ge.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(s.prototype,"blend",{get:function(){return!!(this.data&1<<By)},set:function(e){!!(this.data&1<<By)!==e&&(this.data^=1<<By)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"offsets",{get:function(){return!!(this.data&1<<Gy)},set:function(e){!!(this.data&1<<Gy)!==e&&(this.data^=1<<Gy)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"culling",{get:function(){return!!(this.data&1<<Vy)},set:function(e){!!(this.data&1<<Vy)!==e&&(this.data^=1<<Vy)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"depthTest",{get:function(){return!!(this.data&1<<jy)},set:function(e){!!(this.data&1<<jy)!==e&&(this.data^=1<<jy)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"depthMask",{get:function(){return!!(this.data&1<<Hy)},set:function(e){!!(this.data&1<<Hy)!==e&&(this.data^=1<<Hy)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<<zy)},set:function(e){!!(this.data&1<<zy)!==e&&(this.data^=1<<zy)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"blendMode",{get:function(){return this._blendMode},set:function(e){this.blend=e!==ge.NONE,this._blendMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(e){this.offsets=!!e,this._polygonOffset=e},enumerable:!1,configurable:!0}),s.prototype.toString=function(){return"[@pixi/core:State "+("blendMode="+this.blendMode+" ")+("clockwiseFrontFace="+this.clockwiseFrontFace+" ")+("culling="+this.culling+" ")+("depthMask="+this.depthMask+" ")+("polygonOffset="+this.polygonOffset)+"]"},s.for2d=function(){var e=new s;return e.depthTest=!1,e.blend=!0,e},s}(),TK=`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
void main(void){
gl_FragColor = texture2D(uSampler, vTextureCoord);
}
`,IK=`attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
uniform vec4 inputSize;
uniform vec4 outputFrame;
vec4 filterVertexPosition( void )
{
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
}
vec2 filterTextureCoord( void )
{
return aVertexPosition * (outputFrame.zw * inputSize.zw);
}
void main(void)
{
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`,pf=function(s){Ct(e,s);function e(t,i,n){var r=this,a=Rw.from(t||e.defaultVertexSrc,i||e.defaultFragmentSrc);return r=s.call(this,a,n)||this,r.padding=0,r.resolution=de.FILTER_RESOLUTION,r.multisample=de.FILTER_MULTISAMPLE,r.enabled=!0,r.autoFit=!0,r.state=new Eg,r}return e.prototype.apply=function(t,i,n,r,a){t.applyFilter(this,i,n,r)},Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._resolution=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultVertexSrc",{get:function(){return IK},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultFragmentSrc",{get:function(){return TK},enumerable:!1,configurable:!0}),e}(Pc),RK=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
uniform mat3 otherMatrix;
varying vec2 vMaskCoord;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
}
`,SK=`varying vec2 vMaskCoord;
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform sampler2D mask;
uniform float alpha;
uniform float npmAlpha;
uniform vec4 maskClamp;
void main(void)
{
float clip = step(3.5,
step(maskClamp.x, vMaskCoord.x) +
step(maskClamp.y, vMaskCoord.y) +
step(vMaskCoord.x, maskClamp.z) +
step(vMaskCoord.y, maskClamp.w));
vec4 original = texture2D(uSampler, vTextureCoord);
vec4 masky = texture2D(mask, vMaskCoord);
float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);
original *= (alphaMul * masky.r * alpha * clip);
gl_FragColor = original;
}
`,xN=new dt,UU=function(){function s(e,t){this._texture=e,this.mapCoord=new dt,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof t>"u"?.5:t,this.isSimple=!1}return Object.defineProperty(s.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture=e,this._textureID=-1},enumerable:!1,configurable:!0}),s.prototype.multiplyUvs=function(e,t){t===void 0&&(t=e);for(var i=this.mapCoord,n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];t[n]=r*i.a+a*i.c+i.tx,t[n+1]=r*i.b+a*i.d+i.ty}return t},s.prototype.update=function(e){var t=this._texture;if(!t||!t.valid||!e&&this._textureID===t._updateID)return!1;this._textureID=t._updateID,this._updateID++;var i=t._uvs;this.mapCoord.set(i.x1-i.x0,i.y1-i.y0,i.x3-i.x0,i.y3-i.y0,i.x0,i.y0);var n=t.orig,r=t.trim;r&&(xN.set(n.width/r.width,0,0,n.height/r.height,-r.x/r.width,-r.y/r.height),this.mapCoord.append(xN));var a=t.baseTexture,o=this.uClampFrame,l=this.clampMargin/a.resolution,u=this.clampOffset;return o[0]=(t._frame.x+l+u)/a.width,o[1]=(t._frame.y+l+u)/a.height,o[2]=(t._frame.x+t._frame.width-l+u)/a.width,o[3]=(t._frame.y+t._frame.height-l+u)/a.height,this.uClampOffset[0]=u/a.realWidth,this.uClampOffset[1]=u/a.realHeight,this.isSimple=t._frame.width===a.width&&t._frame.height===a.height&&t.rotate===0,!0},s}(),bK=function(s){Ct(e,s);function e(t,i,n){var r=this,a=null;return typeof t!="string"&&i===void 0&&n===void 0&&(a=t,t=void 0,i=void 0,n=void 0),r=s.call(this,t||RK,i||SK,n)||this,r.maskSprite=a,r.maskMatrix=new dt,r}return Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(t){this._maskSprite=t,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),e.prototype.apply=function(t,i,n,r){var a=this._maskSprite,o=a._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new UU(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=t.calculateSpriteMatrix(this.maskMatrix,a).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=a.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,t.applyFilter(this,i,n,r))},e}(pf),AK=function(){function s(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return s.prototype.setMaskStack=function(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)},s.prototype.push=function(e,t){var i=t;if(!i.isMaskData){var n=this.maskDataPool.pop()||new aK;n.pooled=!0,n.maskObject=t,i=n}var r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(i.copyCountersOrReset(r),i._colorMask=r?r._colorMask:15,i.autoDetect&&this.detect(i),i._target=e,i.type!==ci.SPRITE&&this.maskStack.push(i),i.enabled)switch(i.type){case ci.SCISSOR:this.renderer.scissor.push(i);break;case ci.STENCIL:this.renderer.stencil.push(i);break;case ci.SPRITE:i.copyCountersOrReset(null),this.pushSpriteMask(i);break;case ci.COLOR:this.pushColorMask(i);break}i.type===ci.SPRITE&&this.maskStack.push(i)},s.prototype.pop=function(e){var t=this.maskStack.pop();if(!(!t||t._target!==e)){if(t.enabled)switch(t.type){case ci.SCISSOR:this.renderer.scissor.pop(t);break;case ci.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case ci.SPRITE:this.popSpriteMask(t);break;case ci.COLOR:this.popColorMask(t);break}if(t.reset(),t.pooled&&this.maskDataPool.push(t),this.maskStack.length!==0){var i=this.maskStack[this.maskStack.length-1];i.type===ci.SPRITE&&i._filters&&(i._filters[0].maskSprite=i.maskObject)}}},s.prototype.detect=function(e){var t=e.maskObject;t?t.isSprite?e.type=ci.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=ci.SCISSOR:e.type=ci.STENCIL:e.type=ci.COLOR},s.prototype.pushSpriteMask=function(e){var t,i,n=e.maskObject,r=e._target,a=e._filters;a||(a=this.alphaMaskPool[this.alphaMaskIndex],a||(a=this.alphaMaskPool[this.alphaMaskIndex]=[new bK]));var o=this.renderer,l=o.renderTexture,u,c;if(l.current){var h=l.current;u=e.resolution||h.resolution,c=(t=e.multisample)!==null&&t!==void 0?t:h.multisample}else u=e.resolution||o.resolution,c=(i=e.multisample)!==null&&i!==void 0?i:o.multisample;a[0].resolution=u,a[0].multisample=c,a[0].maskSprite=n;var f=r.filterArea;r.filterArea=n.getBounds(!0),o.filter.push(r,a),r.filterArea=f,e._filters||this.alphaMaskIndex++},s.prototype.popSpriteMask=function(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)},s.prototype.pushColorMask=function(e){var t=e._colorMask,i=e._colorMask=t&e.colorMask;i!==t&&this.renderer.gl.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)},s.prototype.popColorMask=function(e){var t=e._colorMask,i=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;i!==t&&this.renderer.gl.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)},s.prototype.destroy=function(){this.renderer=null},s}(),FU=function(){function s(e){this.renderer=e,this.maskStack=[],this.glConst=0}return s.prototype.getStackLength=function(){return this.maskStack.length},s.prototype.setMaskStack=function(e){var t=this.renderer.gl,i=this.getStackLength();this.maskStack=e;var n=this.getStackLength();n!==i&&(n===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))},s.prototype._useCurrent=function(){},s.prototype.destroy=function(){this.renderer=null,this.maskStack=null},s}(),DN=new dt,LN=[],OK=function(s){Ct(e,s);function e(t){var i=s.call(this,t)||this;return i.glConst=de.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,i}return e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._scissorCounter:0},e.prototype.calcScissorRect=function(t){var i;if(!t._scissorRectLocal){var n=t._scissorRect,r=t.maskObject,a=this.renderer,o=a.renderTexture,l=r.getBounds(!0,(i=LN.pop())!==null&&i!==void 0?i:new ve);this.roundFrameToPixels(l,o.current?o.current.resolution:a.resolution,o.sourceFrame,o.destinationFrame,a.projection.transform),n&&l.fit(n),t._scissorRectLocal=l}},e.isMatrixRotated=function(t){if(!t)return!1;var i=t.a,n=t.b,r=t.c,a=t.d;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(i)>1e-4||Math.abs(a)>1e-4)},e.prototype.testScissor=function(t){var i=t.maskObject;if(!i.isFastRect||!i.isFastRect()||e.isMatrixRotated(i.worldTransform)||e.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(t);var n=t._scissorRectLocal;return n.width>0&&n.height>0},e.prototype.roundFrameToPixels=function(t,i,n,r,a){e.isMatrixRotated(a)||(a=a?DN.copyFrom(a):DN.identity(),a.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.renderer.filter.transformAABB(a,t),t.fit(r),t.x=Math.round(t.x*i),t.y=Math.round(t.y*i),t.width=Math.round(t.width*i),t.height=Math.round(t.height*i))},e.prototype.push=function(t){t._scissorRectLocal||this.calcScissorRect(t);var i=this.renderer.gl;t._scissorRect||i.enable(i.SCISSOR_TEST),t._scissorCounter++,t._scissorRect=t._scissorRectLocal,this._useCurrent()},e.prototype.pop=function(t){var i=this.renderer.gl;t&&LN.push(t._scissorRectLocal),this.getStackLength()>0?this._useCurrent():i.disable(i.SCISSOR_TEST)},e.prototype._useCurrent=function(){var t=this.maskStack[this.maskStack.length-1]._scissorRect,i;this.renderer.renderTexture.current?i=t.y:i=this.renderer.height-t.height-t.y,this.renderer.gl.scissor(t.x,i,t.width,t.height)},e}(FU),wK=function(s){Ct(e,s);function e(t){var i=s.call(this,t)||this;return i.glConst=de.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,i}return e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0},e.prototype.push=function(t){var i=t.maskObject,n=this.renderer.gl,r=t._stencilCounter;r===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),t._stencilCounter++;var a=t._colorMask;a!==0&&(t._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilFunc(n.EQUAL,r,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),i.renderable=!0,i.render(this.renderer),this.renderer.batch.flush(),i.renderable=!1,a!==0&&(t._colorMask=a,n.colorMask((a&1)!==0,(a&2)!==0,(a&4)!==0,(a&8)!==0)),this._useCurrent()},e.prototype.pop=function(t){var i=this.renderer.gl;if(this.getStackLength()===0)i.disable(i.STENCIL_TEST);else{var n=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,r=n?n._colorMask:15;r!==0&&(n._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilOp(i.KEEP,i.KEEP,i.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,r!==0&&(n._colorMask=r,i.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)),this._useCurrent()}},e.prototype._useCurrent=function(){var t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)},e}(FU),CK=function(){function s(e){this.renderer=e,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new dt,this.transform=null}return s.prototype.update=function(e,t,i,n){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||e,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,n),this.transform&&this.projectionMatrix.append(this.transform);var r=this.renderer;r.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,r.globalUniforms.update(),r.shader.shader&&r.shader.syncUniformGroup(r.shader.shader.uniforms.globals)},s.prototype.calculateProjection=function(e,t,i,n){var r=this.projectionMatrix,a=n?-1:1;r.identity(),r.a=1/t.width*2,r.d=a*(1/t.height*2),r.tx=-1-t.x*r.a,r.ty=-a-t.y*r.d},s.prototype.setTransform=function(e){},s.prototype.destroy=function(){this.renderer=null},s}(),ml=new ve,Pf=new ve,MK=function(){function s(e){this.renderer=e,this.clearColor=e._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new ve,this.destinationFrame=new ve,this.viewportFrame=new ve}return s.prototype.bind=function(e,t,i){e===void 0&&(e=null);var n=this.renderer;this.current=e;var r,a,o;e?(r=e.baseTexture,o=r.resolution,t||(ml.width=e.frame.width,ml.height=e.frame.height,t=ml),i||(Pf.x=e.frame.x,Pf.y=e.frame.y,Pf.width=t.width,Pf.height=t.height,i=Pf),a=r.framebuffer):(o=n.resolution,t||(ml.width=n.screen.width,ml.height=n.screen.height,t=ml),i||(i=ml,i.width=t.width,i.height=t.height));var l=this.viewportFrame;l.x=i.x*o,l.y=i.y*o,l.width=i.width*o,l.height=i.height*o,e||(l.y=n.view.height-(l.y+l.height)),l.ceil(),this.renderer.framebuffer.bind(a,l),this.renderer.projection.update(i,t,o,!a),e?this.renderer.mask.setMaskStack(r.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(t),this.destinationFrame.copyFrom(i)},s.prototype.clear=function(e,t){this.current?e=e||this.current.baseTexture.clearColor:e=e||this.clearColor;var i=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,r=i.width!==n.width||i.height!==n.height;if(r){var a=this.viewportFrame,o=a.x,l=a.y,u=a.width,c=a.height;o=Math.round(o),l=Math.round(l),u=Math.round(u),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(o,l,u,c)}this.renderer.framebuffer.clear(e[0],e[1],e[2],e[3],t),r&&this.renderer.scissor.pop()},s.prototype.resize=function(){this.bind(null)},s.prototype.reset=function(){this.bind(null)},s.prototype.destroy=function(){this.renderer=null},s}();function NK(s,e,t,i,n){t.buffer.update(n)}var PK={float:`
data[offset] = v;
`,vec2:`
data[offset] = v[0];
data[offset+1] = v[1];
`,vec3:`
data[offset] = v[0];
data[offset+1] = v[1];
data[offset+2] = v[2];
`,vec4:`
data[offset] = v[0];
data[offset+1] = v[1];
data[offset+2] = v[2];
data[offset+3] = v[3];
`,mat2:`
data[offset] = v[0];
data[offset+1] = v[1];
data[offset+4] = v[2];
data[offset+5] = v[3];
`,mat3:`
data[offset] = v[0];
data[offset+1] = v[1];
data[offset+2] = v[2];
data[offset + 4] = v[3];
data[offset + 5] = v[4];
data[offset + 6] = v[5];
data[offset + 8] = v[6];
data[offset + 9] = v[7];
data[offset + 10] = v[8];
`,mat4:`
for(var i = 0; i < 16; i++)
{
data[offset + i] = v[i];
}
`},BU={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function kK(s){for(var e=s.map(function(l){return{data:l,offset:0,dataLen:0,dirty:0}}),t=0,i=0,n=0,r=0;r<e.length;r++){var a=e[r];if(t=BU[a.data.type],a.data.size>1&&(t=Math.max(t,16)*a.data.size),a.dataLen=t,i%t!==0&&i<16){var o=i%t%16;i+=o,n+=o}i+t>16?(n=Math.ceil(n/16)*16,a.offset=n,n+=t,i=t):(a.offset=n,i+=t,n+=t)}return n=Math.ceil(n/16)*16,{uboElements:e,size:n}}function xK(s,e){var t=[];for(var i in s)e[i]&&t.push(e[i]);return t.sort(function(n,r){return n.index-r.index}),t}function DK(s,e){if(!s.autoManage)return{size:0,syncFunc:NK};for(var t=xK(s.uniforms,e),i=kK(t),n=i.uboElements,r=i.size,a=[`
var v = null;
var v2 = null;
var cv = null;
var t = 0;
var gl = renderer.gl
var index = 0;
var data = buffer.data;
`],o=0;o<n.length;o++){for(var l=n[o],u=s.uniforms[l.data.name],c=l.data.name,h=!1,f=0;f<Nc.length;f++){var d=Nc[f];if(d.codeUbo&&d.test(l.data,u)){a.push("offset = "+l.offset/4+";",Nc[f].codeUbo(l.data.name,u)),h=!0;break}}if(!h)if(l.data.size>1){var _=DU(l.data.type),g=Math.max(BU[l.data.type]/16,1),p=_/g,m=(4-p%4)%4;a.push(`
cv = ud.`+c+`.value;
v = uv.`+c+`;
offset = `+l.offset/4+`;
t = 0;
for(var i=0; i < `+l.data.size*g+`; i++)
{
for(var j = 0; j < `+p+`; j++)
{
data[offset++] = v[t++];
}
offset += `+m+`;
}
`)}else{var v=PK[l.data.type];a.push(`
cv = ud.`+c+`.value;
v = uv.`+c+`;
offset = `+l.offset/4+`;
`+v+`;
`)}}return a.push(`
renderer.buffer.update(buffer);
`),{size:r,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(`
`))}}var LK=function(){function s(e,t){this.program=e,this.uniformData=t,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return s.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},s}();function UK(s,e){for(var t={},i=e.getProgramParameter(s,e.ACTIVE_ATTRIBUTES),n=0;n<i;n++){var r=e.getActiveAttrib(s,n);if(r.name.indexOf("gl_")!==0){var a=LU(e,r.type),o={type:a,name:r.name,size:DU(a),location:e.getAttribLocation(s,r.name)};t[r.name]=o}}return t}function FK(s,e){for(var t={},i=e.getProgramParameter(s,e.ACTIVE_UNIFORMS),n=0;n<i;n++){var r=e.getActiveUniform(s,n),a=r.name.replace(/\[.*?\]$/,""),o=!!r.name.match(/\[.*?\]$/),l=LU(e,r.type);t[a]={name:a,index:n,type:l,size:r.size,isArray:o,value:kU(l,r.size)}}return t}function BK(s,e){var t=MN(s,s.VERTEX_SHADER,e.vertexSrc),i=MN(s,s.FRAGMENT_SHADER,e.fragmentSrc),n=s.createProgram();if(s.attachShader(n,t),s.attachShader(n,i),s.linkProgram(n),s.getProgramParameter(n,s.LINK_STATUS)||oK(s,n,t,i),e.attributeData=UK(n,s),e.uniformData=FK(n,s),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)){var r=Object.keys(e.attributeData);r.sort(function(c,h){return c>h?1:-1});for(var a=0;a<r.length;a++)e.attributeData[r[a]].location=a,s.bindAttribLocation(n,a,r[a]);s.linkProgram(n)}s.deleteShader(t),s.deleteShader(i);var o={};for(var a in e.uniformData){var l=e.uniformData[a];o[a]={location:s.getUniformLocation(n,a),value:kU(l.type,l.size)}}var u=new LK(n,o);return u}var GK=0,rp={textureCount:0,uboCount:0},VK=function(){function s(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=GK++}return s.prototype.systemCheck=function(){if(!mK())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},s.prototype.contextChange=function(e){this.gl=e,this.reset()},s.prototype.bind=function(e,t){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;var i=e.program,n=i.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==i&&(this.program=i,this.gl.useProgram(n.program)),t||(rp.textureCount=0,rp.uboCount=0,this.syncUniformGroup(e.uniformGroup,rp)),n},s.prototype.setUniforms=function(e){var t=this.shader.program,i=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(i.uniformData,e,this.renderer)},s.prototype.syncUniformGroup=function(e,t){var i=this.getGlProgram();(!e.static||e.dirtyId!==i.uniformDirtyGroups[e.id])&&(i.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,i,t))},s.prototype.syncUniforms=function(e,t,i){var n=e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e);n(t.uniformData,e.uniforms,this.renderer,i)},s.prototype.createSyncGroups=function(e){var t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=dK(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]},s.prototype.syncUniformBufferGroup=function(e,t){var i=this.getGlProgram();if(!e.static||e.dirtyId!==0||!i.uniformGroups[e.id]){e.dirtyId=0;var n=i.uniformGroups[e.id]||this.createSyncBufferGroup(e,i,t);e.buffer.update(),n(i.uniformData,e.uniforms,this.renderer,rp,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,i.uniformBufferBindings[t])},s.prototype.createSyncBufferGroup=function(e,t,i){var n=this.renderer.gl;this.renderer.buffer.bind(e.buffer);var r=this.gl.getUniformBlockIndex(t.program,i);t.uniformBufferBindings[i]=this.shader.uniformBindCount,n.uniformBlockBinding(t.program,r,this.shader.uniformBindCount),this.shader.uniformBindCount++;var a=this.getSignature(e,this.shader.program.uniformData,"ubo"),o=this._uboCache[a];if(o||(o=this._uboCache[a]=DK(e,this.shader.program.uniformData)),e.autoManage){var l=new Float32Array(o.size/4);e.buffer.update(l)}return t.uniformGroups[e.id]=o.syncFunc,t.uniformGroups[e.id]},s.prototype.getSignature=function(e,t,i){var n=e.uniforms,r=[i+"-"];for(var a in n)r.push(a),t[a]&&r.push(t[a].type);return r.join("-")},s.prototype.getGlProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},s.prototype.generateProgram=function(e){var t=this.gl,i=e.program,n=BK(t,i);return i.glPrograms[this.renderer.CONTEXT_UID]=n,n},s.prototype.reset=function(){this.program=null,this.shader=null},s.prototype.disposeShader=function(e){this.shader===e&&(this.shader=null)},s.prototype.destroy=function(){this.renderer=null,this.destroyed=!0},s}();function jK(s,e){return e===void 0&&(e=[]),e[ge.NORMAL]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.ADD]=[s.ONE,s.ONE],e[ge.MULTIPLY]=[s.DST_COLOR,s.ONE_MINUS_SRC_ALPHA,s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.SCREEN]=[s.ONE,s.ONE_MINUS_SRC_COLOR,s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.OVERLAY]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.DARKEN]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.LIGHTEN]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.COLOR_DODGE]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.COLOR_BURN]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.HARD_LIGHT]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.SOFT_LIGHT]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.DIFFERENCE]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.EXCLUSION]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.HUE]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.SATURATION]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.COLOR]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.LUMINOSITY]=[s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.NONE]=[0,0],e[ge.NORMAL_NPM]=[s.SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA,s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.ADD_NPM]=[s.SRC_ALPHA,s.ONE,s.ONE,s.ONE],e[ge.SCREEN_NPM]=[s.SRC_ALPHA,s.ONE_MINUS_SRC_COLOR,s.ONE,s.ONE_MINUS_SRC_ALPHA],e[ge.SRC_IN]=[s.DST_ALPHA,s.ZERO],e[ge.SRC_OUT]=[s.ONE_MINUS_DST_ALPHA,s.ZERO],e[ge.SRC_ATOP]=[s.DST_ALPHA,s.ONE_MINUS_SRC_ALPHA],e[ge.DST_OVER]=[s.ONE_MINUS_DST_ALPHA,s.ONE],e[ge.DST_IN]=[s.ZERO,s.SRC_ALPHA],e[ge.DST_OUT]=[s.ZERO,s.ONE_MINUS_SRC_ALPHA],e[ge.DST_ATOP]=[s.ONE_MINUS_DST_ALPHA,s.SRC_ALPHA],e[ge.XOR]=[s.ONE_MINUS_DST_ALPHA,s.ONE_MINUS_SRC_ALPHA],e[ge.SUBTRACT]=[s.ONE,s.ONE,s.ONE,s.ONE,s.FUNC_REVERSE_SUBTRACT,s.FUNC_ADD],e}var zK=0,HK=1,WK=2,YK=3,XK=4,KK=5,qK=function(){function s(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=ge.NONE,this._blendEq=!1,this.map=[],this.map[zK]=this.setBlend,this.map[HK]=this.setOffset,this.map[WK]=this.setCullFace,this.map[YK]=this.setDepthTest,this.map[XK]=this.setFrontFace,this.map[KK]=this.setDepthMask,this.checks=[],this.defaultState=new Eg,this.defaultState.blend=!0}return s.prototype.contextChange=function(e){this.gl=e,this.blendModes=jK(e),this.set(this.defaultState),this.reset()},s.prototype.set=function(e){if(e=e||this.defaultState,this.stateId!==e.data){for(var t=this.stateId^e.data,i=0;t;)t&1&&this.map[i].call(this,!!(e.data&1<<i)),t=t>>1,i++;this.stateId=e.data}for(var i=0;i<this.checks.length;i++)this.checks[i](this,e)},s.prototype.forceState=function(e){e=e||this.defaultState;for(var t=0;t<this.map.length;t++)this.map[t].call(this,!!(e.data&1<<t));for(var t=0;t<this.checks.length;t++)this.checks[t](this,e);this.stateId=e.data},s.prototype.setBlend=function(e){this.updateCheck(s.checkBlendMode,e),this.gl[e?"enable":"disable"](this.gl.BLEND)},s.prototype.setOffset=function(e){this.updateCheck(s.checkPolygonOffset,e),this.gl[e?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},s.prototype.setDepthTest=function(e){this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST)},s.prototype.setDepthMask=function(e){this.gl.depthMask(e)},s.prototype.setCullFace=function(e){this.gl[e?"enable":"disable"](this.gl.CULL_FACE)},s.prototype.setFrontFace=function(e){this.gl.frontFace(this.gl[e?"CW":"CCW"])},s.prototype.setBlendMode=function(e){if(e!==this.blendMode){this.blendMode=e;var t=this.blendModes[e],i=this.gl;t.length===2?i.blendFunc(t[0],t[1]):i.blendFuncSeparate(t[0],t[1],t[2],t[3]),t.length===6?(this._blendEq=!0,i.blendEquationSeparate(t[4],t[5])):this._blendEq&&(this._blendEq=!1,i.blendEquationSeparate(i.FUNC_ADD,i.FUNC_ADD))}},s.prototype.setPolygonOffset=function(e,t){this.gl.polygonOffset(e,t)},s.prototype.reset=function(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)},s.prototype.updateCheck=function(e,t){var i=this.checks.indexOf(e);t&&i===-1?this.checks.push(e):!t&&i!==-1&&this.checks.splice(i,1)},s.checkBlendMode=function(e,t){e.setBlendMode(t.blendMode)},s.checkPolygonOffset=function(e,t){e.setPolygonOffset(1,t.polygonOffset)},s.prototype.destroy=function(){this.gl=null},s}(),$K=function(){function s(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=de.GC_MAX_IDLE,this.checkCountMax=de.GC_MAX_CHECK_COUNT,this.mode=de.GC_MODE}return s.prototype.postrender=function(){this.renderer.renderingToScreen&&(this.count++,this.mode!==Om.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))},s.prototype.run=function(){for(var e=this.renderer.texture,t=e.managedTextures,i=!1,n=0;n<t.length;n++){var r=t[n];!r.framebuffer&&this.count-r.touched>this.maxIdle&&(e.destroyTexture(r,!0),t[n]=null,i=!0)}if(i){for(var a=0,n=0;n<t.length;n++)t[n]!==null&&(t[a++]=t[n]);t.length=a}},s.prototype.unload=function(e){var t=this.renderer.texture,i=e._texture;i&&!i.framebuffer&&t.destroyTexture(i);for(var n=e.children.length-1;n>=0;n--)this.unload(e.children[n])},s.prototype.destroy=function(){this.renderer=null},s}();function QK(s){var e,t,i,n,r,a,o,l,u,c,h,f,d,_,g,p,m,v,E,y,T,w,C;return"WebGL2RenderingContext"in globalThis&&s instanceof globalThis.WebGL2RenderingContext?C=(e={},e[lt.UNSIGNED_BYTE]=(t={},t[ae.RGBA]=s.RGBA8,t[ae.RGB]=s.RGB8,t[ae.RG]=s.RG8,t[ae.RED]=s.R8,t[ae.RGBA_INTEGER]=s.RGBA8UI,t[ae.RGB_INTEGER]=s.RGB8UI,t[ae.RG_INTEGER]=s.RG8UI,t[ae.RED_INTEGER]=s.R8UI,t[ae.ALPHA]=s.ALPHA,t[ae.LUMINANCE]=s.LUMINANCE,t[ae.LUMINANCE_ALPHA]=s.LUMINANCE_ALPHA,t),e[lt.BYTE]=(i={},i[ae.RGBA]=s.RGBA8_SNORM,i[ae.RGB]=s.RGB8_SNORM,i[ae.RG]=s.RG8_SNORM,i[ae.RED]=s.R8_SNORM,i[ae.RGBA_INTEGER]=s.RGBA8I,i[ae.RGB_INTEGER]=s.RGB8I,i[ae.RG_INTEGER]=s.RG8I,i[ae.RED_INTEGER]=s.R8I,i),e[lt.UNSIGNED_SHORT]=(n={},n[ae.RGBA_INTEGER]=s.RGBA16UI,n[ae.RGB_INTEGER]=s.RGB16UI,n[ae.RG_INTEGER]=s.RG16UI,n[ae.RED_INTEGER]=s.R16UI,n[ae.DEPTH_COMPONENT]=s.DEPTH_COMPONENT16,n),e[lt.SHORT]=(r={},r[ae.RGBA_INTEGER]=s.RGBA16I,r[ae.RGB_INTEGER]=s.RGB16I,r[ae.RG_INTEGER]=s.RG16I,r[ae.RED_INTEGER]=s.R16I,r),e[lt.UNSIGNED_INT]=(a={},a[ae.RGBA_INTEGER]=s.RGBA32UI,a[ae.RGB_INTEGER]=s.RGB32UI,a[ae.RG_INTEGER]=s.RG32UI,a[ae.RED_INTEGER]=s.R32UI,a[ae.DEPTH_COMPONENT]=s.DEPTH_COMPONENT24,a),e[lt.INT]=(o={},o[ae.RGBA_INTEGER]=s.RGBA32I,o[ae.RGB_INTEGER]=s.RGB32I,o[ae.RG_INTEGER]=s.RG32I,o[ae.RED_INTEGER]=s.R32I,o),e[lt.FLOAT]=(l={},l[ae.RGBA]=s.RGBA32F,l[ae.RGB]=s.RGB32F,l[ae.RG]=s.RG32F,l[ae.RED]=s.R32F,l[ae.DEPTH_COMPONENT]=s.DEPTH_COMPONENT32F,l),e[lt.HALF_FLOAT]=(u={},u[ae.RGBA]=s.RGBA16F,u[ae.RGB]=s.RGB16F,u[ae.RG]=s.RG16F,u[ae.RED]=s.R16F,u),e[lt.UNSIGNED_SHORT_5_6_5]=(c={},c[ae.RGB]=s.RGB565,c),e[lt.UNSIGNED_SHORT_4_4_4_4]=(h={},h[ae.RGBA]=s.RGBA4,h),e[lt.UNSIGNED_SHORT_5_5_5_1]=(f={},f[ae.RGBA]=s.RGB5_A1,f),e[lt.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[ae.RGBA]=s.RGB10_A2,d[ae.RGBA_INTEGER]=s.RGB10_A2UI,d),e[lt.UNSIGNED_INT_10F_11F_11F_REV]=(_={},_[ae.RGB]=s.R11F_G11F_B10F,_),e[lt.UNSIGNED_INT_5_9_9_9_REV]=(g={},g[ae.RGB]=s.RGB9_E5,g),e[lt.UNSIGNED_INT_24_8]=(p={},p[ae.DEPTH_STENCIL]=s.DEPTH24_STENCIL8,p),e[lt.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[ae.DEPTH_STENCIL]=s.DEPTH32F_STENCIL8,m),e):C=(v={},v[lt.UNSIGNED_BYTE]=(E={},E[ae.RGBA]=s.RGBA,E[ae.RGB]=s.RGB,E[ae.ALPHA]=s.ALPHA,E[ae.LUMINANCE]=s.LUMINANCE,E[ae.LUMINANCE_ALPHA]=s.LUMINANCE_ALPHA,E),v[lt.UNSIGNED_SHORT_5_6_5]=(y={},y[ae.RGB]=s.RGB,y),v[lt.UNSIGNED_SHORT_4_4_4_4]=(T={},T[ae.RGBA]=s.RGBA,T),v[lt.UNSIGNED_SHORT_5_5_5_1]=(w={},w[ae.RGBA]=s.RGBA,w),v),C}var Wy=function(){function s(e){this.texture=e,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=lt.UNSIGNED_BYTE,this.internalFormat=ae.RGBA,this.samplerType=0}return s}(),ZK=function(){function s(e){this.renderer=e,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new pt,this.hasIntegerTextures=!1}return s.prototype.contextChange=function(){var e=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=QK(e);var t=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=t;for(var i=0;i<t;i++)this.boundTextures[i]=null;this.emptyTextures={};var n=new Wy(e.createTexture());e.bindTexture(e.TEXTURE_2D,n.texture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[e.TEXTURE_2D]=n,this.emptyTextures[e.TEXTURE_CUBE_MAP]=new Wy(e.createTexture()),e.bindTexture(e.TEXTURE_CUBE_MAP,this.emptyTextures[e.TEXTURE_CUBE_MAP].texture);for(var i=0;i<6;i++)e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MIN_FILTER,e.LINEAR);for(var i=0;i<this.boundTextures.length;i++)this.bind(null,i)},s.prototype.bind=function(e,t){t===void 0&&(t=0);var i=this.gl;if(e=e==null?void 0:e.castToBaseTexture(),e&&e.valid&&!e.parentTextureArray){e.touched=this.renderer.textureGC.count;var n=e._glTextures[this.CONTEXT_UID]||this.initTexture(e);this.boundTextures[t]!==e&&(this.currentLocation!==t&&(this.currentLocation=t,i.activeTexture(i.TEXTURE0+t)),i.bindTexture(e.target,n.texture)),n.dirtyId!==e.dirtyId?(this.currentLocation!==t&&(this.currentLocation=t,i.activeTexture(i.TEXTURE0+t)),this.updateTexture(e)):n.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(e),this.boundTextures[t]=e}else this.currentLocation!==t&&(this.currentLocation=t,i.activeTexture(i.TEXTURE0+t)),i.bindTexture(i.TEXTURE_2D,this.emptyTextures[i.TEXTURE_2D].texture),this.boundTextures[t]=null},s.prototype.reset=function(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var e=0;e<this.boundTextures.length;e++)this.boundTextures[e]=this.unknownTexture},s.prototype.unbind=function(e){var t=this,i=t.gl,n=t.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var r=0;r<n.length;r++)n[r]===this.unknownTexture&&this.bind(null,r)}for(var r=0;r<n.length;r++)n[r]===e&&(this.currentLocation!==r&&(i.activeTexture(i.TEXTURE0+r),this.currentLocation=r),i.bindTexture(e.target,this.emptyTextures[e.target].texture),n[r]=null)},s.prototype.ensureSamplerType=function(e){var t=this,i=t.boundTextures,n=t.hasIntegerTextures,r=t.CONTEXT_UID;if(n)for(var a=e-1;a>=0;--a){var o=i[a];if(o){var l=o._glTextures[r];l.samplerType!==Am.FLOAT&&this.renderer.texture.unbind(o)}}},s.prototype.initTexture=function(e){var t=new Wy(this.gl.createTexture());return t.dirtyId=-1,e._glTextures[this.CONTEXT_UID]=t,this.managedTextures.push(e),e.on("dispose",this.destroyTexture,this),t},s.prototype.initTextureType=function(e,t){var i,n;t.internalFormat=(n=(i=this.internalFormats[e.type])===null||i===void 0?void 0:i[e.format])!==null&&n!==void 0?n:e.format,this.webGLVersion===2&&e.type===lt.HALF_FLOAT?t.type=this.gl.HALF_FLOAT:t.type=e.type},s.prototype.updateTexture=function(e){var t=e._glTextures[this.CONTEXT_UID];if(t){var i=this.renderer;if(this.initTextureType(e,t),e.resource&&e.resource.upload(i,e,t))t.samplerType!==Am.FLOAT&&(this.hasIntegerTextures=!0);else{var n=e.realWidth,r=e.realHeight,a=i.gl;(t.width!==n||t.height!==r||t.dirtyId<0)&&(t.width=n,t.height=r,a.texImage2D(e.target,0,t.internalFormat,n,r,0,e.format,t.type,null))}e.dirtyStyleId!==t.dirtyStyleId&&this.updateTextureStyle(e),t.dirtyId=e.dirtyId}},s.prototype.destroyTexture=function(e,t){var i=this.gl;if(e=e.castToBaseTexture(),e._glTextures[this.CONTEXT_UID]&&(this.unbind(e),i.deleteTexture(e._glTextures[this.CONTEXT_UID].texture),e.off("dispose",this.destroyTexture,this),delete e._glTextures[this.CONTEXT_UID],!t)){var n=this.managedTextures.indexOf(e);n!==-1&&jp(this.managedTextures,n,1)}},s.prototype.updateTextureStyle=function(e){var t=e._glTextures[this.CONTEXT_UID];t&&((e.mipmap===Jo.POW2||this.webGLVersion!==2)&&!e.isPowerOfTwo?t.mipmap=!1:t.mipmap=e.mipmap>=1,this.webGLVersion!==2&&!e.isPowerOfTwo?t.wrapMode=Pa.CLAMP:t.wrapMode=e.wrapMode,e.resource&&e.resource.style(this.renderer,e,t)||this.setStyle(e,t),t.dirtyStyleId=e.dirtyStyleId)},s.prototype.setStyle=function(e,t){var i=this.gl;if(t.mipmap&&e.mipmap!==Jo.ON_MANUAL&&i.generateMipmap(e.target),i.texParameteri(e.target,i.TEXTURE_WRAP_S,t.wrapMode),i.texParameteri(e.target,i.TEXTURE_WRAP_T,t.wrapMode),t.mipmap){i.texParameteri(e.target,i.TEXTURE_MIN_FILTER,e.scaleMode===tn.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&e.anisotropicLevel>0&&e.scaleMode===tn.LINEAR){var r=Math.min(e.anisotropicLevel,i.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(e.target,n.TEXTURE_MAX_ANISOTROPY_EXT,r)}}else i.texParameteri(e.target,i.TEXTURE_MIN_FILTER,e.scaleMode===tn.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(e.target,i.TEXTURE_MAG_FILTER,e.scaleMode===tn.LINEAR?i.LINEAR:i.NEAREST)},s.prototype.destroy=function(){this.renderer=null},s}(),Yy=new dt,JK=function(s){Ct(e,s);function e(t,i){t===void 0&&(t=O_.UNKNOWN);var n=s.call(this)||this;return i=Object.assign({},de.RENDER_OPTIONS,i),n.options=i,n.type=t,n.screen=new ve(0,0,i.width,i.height),n.view=i.view||de.ADAPTER.createCanvas(),n.resolution=i.resolution||de.RESOLUTION,n.useContextAlpha=i.useContextAlpha,n.autoDensity=!!i.autoDensity,n.preserveDrawingBuffer=i.preserveDrawingBuffer,n.clearBeforeRender=i.clearBeforeRender,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,1],n._backgroundColorString="#000000",n.backgroundColor=i.backgroundColor||n._backgroundColor,n.backgroundAlpha=i.backgroundAlpha,i.transparent!==void 0&&(Ur("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),n.useContextAlpha=i.transparent,n.backgroundAlpha=i.transparent?0:1),n._lastObjectRendered=null,n.plugins={},n}return e.prototype.initPlugins=function(t){for(var i in t)this.plugins[i]=new t[i](this)},Object.defineProperty(e.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,i){this.view.width=Math.round(t*this.resolution),this.view.height=Math.round(i*this.resolution);var n=this.view.width/this.resolution,r=this.view.height/this.resolution;this.screen.width=n,this.screen.height=r,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=r+"px"),this.emit("resize",n,r)},e.prototype.generateTexture=function(t,i,n,r){i===void 0&&(i={}),typeof i=="number"&&(Ur("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:n,region:r});var a=i.region,o=DX(i,["region"]);r=a||t.getLocalBounds(null,!0),r.width===0&&(r.width=1),r.height===0&&(r.height=1);var l=Pi.create($I({width:r.width,height:r.height},o));return Yy.tx=-r.x,Yy.ty=-r.y,this.render(t,{renderTexture:l,clear:!1,transform:Yy,skipUpdateTransform:!!t.parent}),l},e.prototype.destroy=function(t){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=O_.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){this._backgroundColor=t,this._backgroundColorString=TU(t),km(t,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(t){this._backgroundColorRgba[3]=t},enumerable:!1,configurable:!0}),e}(c0),eq=function(){function s(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return s}(),tq=function(){function s(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}return s.prototype.destroy=function(){this.renderer=null},s.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},s.prototype.bind=function(e){var t=this,i=t.gl,n=t.CONTEXT_UID,r=e._glBuffers[n]||this.createGLBuffer(e);i.bindBuffer(e.type,r.buffer)},s.prototype.bindBufferBase=function(e,t){var i=this,n=i.gl,r=i.CONTEXT_UID;if(this.boundBufferBases[t]!==e){var a=e._glBuffers[r]||this.createGLBuffer(e);this.boundBufferBases[t]=e,n.bindBufferBase(n.UNIFORM_BUFFER,t,a.buffer)}},s.prototype.bindBufferRange=function(e,t,i){var n=this,r=n.gl,a=n.CONTEXT_UID;i=i||0;var o=e._glBuffers[a]||this.createGLBuffer(e);r.bindBufferRange(r.UNIFORM_BUFFER,t||0,o.buffer,i*256,256)},s.prototype.update=function(e){var t=this,i=t.gl,n=t.CONTEXT_UID,r=e._glBuffers[n];if(e._updateID!==r.updateID)if(r.updateID=e._updateID,i.bindBuffer(e.type,r.buffer),r.byteLength>=e.data.byteLength)i.bufferSubData(e.type,0,e.data);else{var a=e.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;r.byteLength=e.data.byteLength,i.bufferData(e.type,e.data,a)}},s.prototype.dispose=function(e,t){if(this.managedBuffers[e.id]){delete this.managedBuffers[e.id];var i=e._glBuffers[this.CONTEXT_UID],n=this.gl;e.disposeRunner.remove(this),i&&(t||n.deleteBuffer(i.buffer),delete e._glBuffers[this.CONTEXT_UID])}},s.prototype.disposeAll=function(e){for(var t=Object.keys(this.managedBuffers),i=0;i<t.length;i++)this.dispose(this.managedBuffers[t[i]],e)},s.prototype.createGLBuffer=function(e){var t=this,i=t.CONTEXT_UID,n=t.gl;return e._glBuffers[i]=new eq(n.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[i]},s}(),GU=function(s){Ct(e,s);function e(t){var i=s.call(this,O_.WEBGL,t)||this;return t=i.options,i.gl=null,i.CONTEXT_UID=0,i.runners={destroy:new Vi("destroy"),contextChange:new Vi("contextChange"),reset:new Vi("reset"),update:new Vi("update"),postrender:new Vi("postrender"),prerender:new Vi("prerender"),resize:new Vi("resize")},i.runners.contextChange.add(i),i.globalUniforms=new Ru({projectionMatrix:new dt},!0),i.addSystem(AK,"mask").addSystem(tK,"context").addSystem(qK,"state").addSystem(VK,"shader").addSystem(ZK,"texture").addSystem(tq,"buffer").addSystem(rK,"geometry").addSystem(nK,"framebuffer").addSystem(OK,"scissor").addSystem(wK,"stencil").addSystem(CK,"projection").addSystem($K,"textureGC").addSystem(JX,"filter").addSystem(MK,"renderTexture").addSystem(eK,"batch"),i.initPlugins(e.__plugins),i.multisample=void 0,t.context?i.context.initFromContext(t.context):i.context.initFromOptions({alpha:!!i.useContextAlpha,antialias:t.antialias,premultipliedAlpha:i.useContextAlpha&&i.useContextAlpha!=="notMultiplied",stencil:!0,preserveDrawingBuffer:t.preserveDrawingBuffer,powerPreference:i.options.powerPreference}),i.renderingToScreen=!0,PH(i.context.webGLVersion===2?"WebGL 2":"WebGL 1"),i.resize(i.options.width,i.options.height),i}return e.create=function(t){if(kH())return new e(t);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},e.prototype.contextChange=function(){var t=this.gl,i;if(this.context.webGLVersion===1){var n=t.getParameter(t.FRAMEBUFFER_BINDING);t.bindFramebuffer(t.FRAMEBUFFER,null),i=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.FRAMEBUFFER,n)}else{var n=t.getParameter(t.DRAW_FRAMEBUFFER_BINDING);t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),i=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,n)}i>=Ut.HIGH?this.multisample=Ut.HIGH:i>=Ut.MEDIUM?this.multisample=Ut.MEDIUM:i>=Ut.LOW?this.multisample=Ut.LOW:this.multisample=Ut.NONE},e.prototype.addSystem=function(t,i){var n=new t(this);if(this[i])throw new Error('Whoops! The name "'+i+'" is already in use');this[i]=n;for(var r in this.runners)this.runners[r].add(n);return this},e.prototype.render=function(t,i){var n,r,a,o;if(i&&(i instanceof Pi?(Ur("6.0.0","Renderer#render arguments changed, use options instead."),n=i,r=arguments[2],a=arguments[3],o=arguments[4]):(n=i.renderTexture,r=i.clear,a=i.transform,o=i.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(n||(this._lastObjectRendered=t),!o){var l=t.enableTempParent();t.updateTransform(),t.disableTempParent(l)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(r!==void 0?r:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},e.prototype.generateTexture=function(t,i,n,r){i===void 0&&(i={});var a=s.prototype.generateTexture.call(this,t,i,n,r);return this.framebuffer.blit(),a},e.prototype.resize=function(t,i){s.prototype.resize.call(this,t,i),this.runners.resize.emit(this.screen.height,this.screen.width)},e.prototype.reset=function(){return this.runners.reset.emit(),this},e.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},e.prototype.destroy=function(t){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();s.prototype.destroy.call(this,t),this.gl=null},Object.defineProperty(e.prototype,"extract",{get:function(){return Ur("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),e.registerPlugin=function(t,i){Ur("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),Xa.add({name:t,type:Ni.RendererPlugin,ref:i})},e.__plugins={},e}(JK);Xa.handleByMap(Ni.RendererPlugin,GU.__plugins);function iq(s){return GU.create(s)}var sq=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,nq=`attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
uniform vec4 inputSize;
uniform vec4 outputFrame;
vec4 filterVertexPosition( void )
{
vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
}
vec2 filterTextureCoord( void )
{
return aVertexPosition * (outputFrame.zw * inputSize.zw);
}
void main(void)
{
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`,rq=sq,aq=nq,ZI=function(){function s(){this.texArray=null,this.blend=0,this.type=Ia.TRIANGLES,this.start=0,this.size=0,this.data=null}return s}(),JI=function(){function s(){this.elements=[],this.ids=[],this.count=0}return s.prototype.clear=function(){for(var e=0;e<this.count;e++)this.elements[e]=null;this.count=0},s}(),oq=function(){function s(e){typeof e=="number"?this.rawBinaryData=new ArrayBuffer(e):e instanceof Uint8Array?this.rawBinaryData=e.buffer:this.rawBinaryData=e,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}return Object.defineProperty(s.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),s.prototype.view=function(e){return this[e+"View"]},s.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},s.sizeOf=function(e){switch(e){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(e+" isn't a valid view type")}},s}(),lq=function(s){Ct(e,s);function e(t){var i=s.call(this,t)||this;return i.shaderGenerator=null,i.geometryClass=null,i.vertexSize=null,i.state=Eg.for2d(),i.size=de.SPRITE_BATCH_SIZE*4,i._vertexCount=0,i._indexCount=0,i._bufferedElements=[],i._bufferedTextures=[],i._bufferSize=0,i._shader=null,i._packedGeometries=[],i._packedGeometryPoolSize=2,i._flushId=0,i._aBuffers={},i._iBuffers={},i.MAX_TEXTURES=1,i.renderer.on("prerender",i.onPrerender,i),t.runners.contextChange.add(i),i._dcIndex=0,i._aIndex=0,i._iIndex=0,i._attributeBuffer=null,i._indexBuffer=null,i._tempBoundTextures=[],i}return e.prototype.contextChange=function(){var t=this.renderer.gl;de.PREFER_ENV===Ga.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),de.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=pK(this.MAX_TEXTURES,t)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var i=0;i<this._packedGeometryPoolSize;i++)this._packedGeometries[i]=new this.geometryClass;this.initFlushBuffers()},e.prototype.initFlushBuffers=function(){for(var t=e._drawCallPool,i=e._textureArrayPool,n=this.size/4,r=Math.floor(n/this.MAX_TEXTURES)+1;t.length<n;)t.push(new ZI);for(;i.length<r;)i.push(new JI);for(var a=0;a<this.MAX_TEXTURES;a++)this._tempBoundTextures[a]=null},e.prototype.onPrerender=function(){this._flushId=0},e.prototype.render=function(t){t._texture.valid&&(this._vertexCount+t.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},e.prototype.buildTexturesAndDrawCalls=function(){var t=this,i=t._bufferedTextures,n=t.MAX_TEXTURES,r=e._textureArrayPool,a=this.renderer.batch,o=this._tempBoundTextures,l=this.renderer.textureGC.count,u=++pt._globalBatch,c=0,h=r[0],f=0;a.copyBoundTextures(o,n);for(var d=0;d<this._bufferSize;++d){var _=i[d];i[d]=null,_._batchEnabled!==u&&(h.count>=n&&(a.boundArray(h,o,u,n),this.buildDrawCalls(h,f,d),f=d,h=r[++c],++u),_._batchEnabled=u,_.touched=l,h.elements[h.count++]=_)}h.count>0&&(a.boundArray(h,o,u,n),this.buildDrawCalls(h,f,this._bufferSize),++c,++u);for(var d=0;d<o.length;d++)o[d]=null;pt._globalBatch=u},e.prototype.buildDrawCalls=function(t,i,n){var r=this,a=r._bufferedElements,o=r._attributeBuffer,l=r._indexBuffer,u=r.vertexSize,c=e._drawCallPool,h=this._dcIndex,f=this._aIndex,d=this._iIndex,_=c[h];_.start=this._iIndex,_.texArray=t;for(var g=i;g<n;++g){var p=a[g],m=p._texture.baseTexture,v=IU[m.alphaMode?1:0][p.blendMode];a[g]=null,i<g&&_.blend!==v&&(_.size=d-_.start,i=g,_=c[++h],_.texArray=t,_.start=d),this.packInterleavedGeometry(p,o,l,f,d),f+=p.vertexData.length/2*u,d+=p.indices.length,_.blend=v}i<n&&(_.size=d-_.start,++h),this._dcIndex=h,this._aIndex=f,this._iIndex=d},e.prototype.bindAndClearTexArray=function(t){for(var i=this.renderer.texture,n=0;n<t.count;n++)i.bind(t.elements[n],t.ids[n]),t.elements[n]=null;t.count=0},e.prototype.updateGeometry=function(){var t=this,i=t._packedGeometries,n=t._attributeBuffer,r=t._indexBuffer;de.CAN_UPLOAD_SAME_BUFFER?(i[this._flushId]._buffer.update(n.rawBinaryData),i[this._flushId]._indexBuffer.update(r),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,i[this._flushId]=new this.geometryClass),i[this._flushId]._buffer.update(n.rawBinaryData),i[this._flushId]._indexBuffer.update(r),this.renderer.geometry.bind(i[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)},e.prototype.drawBatches=function(){for(var t=this._dcIndex,i=this.renderer,n=i.gl,r=i.state,a=e._drawCallPool,o=null,l=0;l<t;l++){var u=a[l],c=u.texArray,h=u.type,f=u.size,d=u.start,_=u.blend;o!==c&&(o=c,this.bindAndClearTexArray(c)),this.state.blendMode=_,r.set(this.state),n.drawElements(h,f,n.UNSIGNED_SHORT,d*2)}},e.prototype.flush=function(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)},e.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.MAX_TEXTURES),this.renderer.shader.bind(this._shader),de.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},e.prototype.stop=function(){this.flush()},e.prototype.destroy=function(){for(var t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]&&this._packedGeometries[t].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),s.prototype.destroy.call(this)},e.prototype.getAttributeBuffer=function(t){var i=xm(Math.ceil(t/8)),n=TN(i),r=i*8;this._aBuffers.length<=n&&(this._iBuffers.length=n+1);var a=this._aBuffers[r];return a||(this._aBuffers[r]=a=new oq(r*this.vertexSize*4)),a},e.prototype.getIndexBuffer=function(t){var i=xm(Math.ceil(t/12)),n=TN(i),r=i*12;this._iBuffers.length<=n&&(this._iBuffers.length=n+1);var a=this._iBuffers[n];return a||(this._iBuffers[n]=a=new Uint16Array(r)),a},e.prototype.packInterleavedGeometry=function(t,i,n,r,a){for(var o=i.uint32View,l=i.float32View,u=r/this.vertexSize,c=t.uvs,h=t.indices,f=t.vertexData,d=t._texture.baseTexture._batchLocation,_=Math.min(t.worldAlpha,1),g=_<1&&t._texture.baseTexture.alphaMode?RU(t._tintRGB,_):t._tintRGB+(_*255<<24),p=0;p<f.length;p+=2)l[r++]=f[p],l[r++]=f[p+1],l[r++]=c[p],l[r++]=c[p+1],o[r++]=g,l[r++]=d;for(var p=0;p<h.length;p++)n[a++]=u+h[p]},e._drawCallPool=[],e._textureArrayPool=[],e}(Iw),uq=function(){function s(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},t.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(t.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}return s.prototype.generateShader=function(e){if(!this.programCache[e]){for(var t=new Int32Array(e),i=0;i<e;i++)t[i]=i;this.defaultGroupCache[e]=Ru.from({uSamplers:t},!0);var n=this.fragTemplate;n=n.replace(/%count%/gi,""+e),n=n.replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new Rw(this.vertexSrc,n)}var r={tint:new Float32Array([1,1,1,1]),translationMatrix:new dt,default:this.defaultGroupCache[e]};return new Pc(this.programCache[e],r)},s.prototype.generateSampleSrc=function(e){var t="";t+=`
`,t+=`
`;for(var i=0;i<e;i++)i>0&&(t+=`
else `),i<e-1&&(t+="if(vTextureId < "+i+".5)"),t+=`
{`,t+=`
color = texture2D(uSamplers[`+i+"], vTextureCoord);",t+=`
}`;return t+=`
`,t+=`
`,t},s}(),VU=function(s){Ct(e,s);function e(t){t===void 0&&(t=!1);var i=s.call(this)||this;return i._buffer=new Zs(null,t,!1),i._indexBuffer=new Zs(null,t,!0),i.addAttribute("aVertexPosition",i._buffer,2,!1,lt.FLOAT).addAttribute("aTextureCoord",i._buffer,2,!1,lt.FLOAT).addAttribute("aColor",i._buffer,4,!0,lt.UNSIGNED_BYTE).addAttribute("aTextureId",i._buffer,1,!0,lt.FLOAT).addIndex(i._indexBuffer),i}return e}(Tw),UN=`precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
attribute float aTextureId;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform vec4 tint;
varying vec2 vTextureCoord;
varying vec4 vColor;
varying float vTextureId;
void main(void){
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
vTextureId = aTextureId;
vColor = aColor * tint;
}
`,FN=`varying vec2 vTextureCoord;
varying vec4 vColor;
varying float vTextureId;
uniform sampler2D uSamplers[%count%];
void main(void){
vec4 color;
%forloop%
gl_FragColor = color * vColor;
}
`,hq=function(){function s(){}return s.create=function(e){var t=Object.assign({vertex:UN,fragment:FN,geometryClass:VU,vertexSize:6},e),i=t.vertex,n=t.fragment,r=t.vertexSize,a=t.geometryClass;return function(o){Ct(l,o);function l(u){var c=o.call(this,u)||this;return c.shaderGenerator=new uq(i,n),c.geometryClass=a,c.vertexSize=r,c}return l}(lq)},Object.defineProperty(s,"defaultVertexSrc",{get:function(){return UN},enumerable:!1,configurable:!0}),Object.defineProperty(s,"defaultFragmentTemplate",{get:function(){return FN},enumerable:!1,configurable:!0}),s}(),jU=hq.create();Object.assign(jU,{extension:{name:"batch",type:Ni.RendererPlugin}});/*!
* @pixi/loaders - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/loaders is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var ap=function(){function s(e,t,i){t===void 0&&(t=!1),this._fn=e,this._once=t,this._thisArg=i,this._next=this._prev=this._owner=null}return s.prototype.detach=function(){return this._owner===null?!1:(this._owner.detach(this),!0)},s}();function BN(s,e){return s._head?(s._tail._next=e,e._prev=s._tail,s._tail=e):(s._head=e,s._tail=e),e._owner=s,e}var _a=function(){function s(){this._head=this._tail=void 0}return s.prototype.handlers=function(e){e===void 0&&(e=!1);var t=this._head;if(e)return!!t;for(var i=[];t;)i.push(t),t=t._next;return i},s.prototype.has=function(e){if(!(e instanceof ap))throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.");return e._owner===this},s.prototype.dispatch=function(){for(var e=arguments,t=[],i=0;i<arguments.length;i++)t[i]=e[i];var n=this._head;if(!n)return!1;for(;n;)n._once&&this.detach(n),n._fn.apply(n._thisArg,t),n=n._next;return!0},s.prototype.add=function(e,t){if(t===void 0&&(t=null),typeof e!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return BN(this,new ap(e,!1,t))},s.prototype.once=function(e,t){if(t===void 0&&(t=null),typeof e!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return BN(this,new ap(e,!0,t))},s.prototype.detach=function(e){if(!(e instanceof ap))throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.");return e._owner!==this?this:(e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e===this._head?(this._head=e._next,e._next===null&&(this._tail=null)):e===this._tail&&(this._tail=e._prev,this._tail._next=null),e._owner=null,this)},s.prototype.detachAll=function(){var e=this._head;if(!e)return this;for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this},s}();function zU(s,e){e=e||{};for(var t={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},i=t.parser[e.strictMode?"strict":"loose"].exec(s),n={},r=14;r--;)n[t.key[r]]=i[r]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(a,o,l){o&&(n[t.q.name][o]=l)}),n}var Xy,op=null,cq=0,GN=200,fq=204,dq=1223,_q=2;function VN(){}function jN(s,e,t){e&&e.indexOf(".")===0&&(e=e.substring(1)),e&&(s[e]=t)}function Ky(s){return s.toString().replace("object ","")}var Ns=function(){function s(e,t,i){if(this._dequeue=VN,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,typeof e!="string"||typeof t!="string")throw new Error("Both name and url are required for constructing a resource.");i=i||{},this._flags=0,this._setFlag(s.STATUS_FLAGS.DATA_URL,t.indexOf("data:")===0),this.name=e,this.url=t,this.extension=this._getExtension(),this.data=null,this.crossOrigin=i.crossOrigin===!0?"anonymous":i.crossOrigin,this.timeout=i.timeout||0,this.loadType=i.loadType||this._determineLoadType(),this.xhrType=i.xhrType,this.metadata=i.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=s.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=VN,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new _a,this.onProgress=new _a,this.onComplete=new _a,this.onAfterMiddleware=new _a}return s.setExtensionLoadType=function(e,t){jN(s._loadTypeMap,e,t)},s.setExtensionXhrType=function(e,t){jN(s._xhrTypeMap,e,t)},Object.defineProperty(s.prototype,"isDataUrl",{get:function(){return this._hasFlag(s.STATUS_FLAGS.DATA_URL)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isComplete",{get:function(){return this._hasFlag(s.STATUS_FLAGS.COMPLETE)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isLoading",{get:function(){return this._hasFlag(s.STATUS_FLAGS.LOADING)},enumerable:!1,configurable:!0}),s.prototype.complete=function(){this._clearEvents(),this._finish()},s.prototype.abort=function(e){if(!this.error){if(this.error=new Error(e),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=s.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},s.prototype.load=function(e){var t=this;if(!this.isLoading){if(this.isComplete){e&&setTimeout(function(){return e(t)},1);return}else e&&this.onComplete.once(e);switch(this._setFlag(s.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),(this.crossOrigin===!1||typeof this.crossOrigin!="string")&&(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case s.LOAD_TYPE.IMAGE:this.type=s.TYPE.IMAGE,this._loadElement("image");break;case s.LOAD_TYPE.AUDIO:this.type=s.TYPE.AUDIO,this._loadSourceElement("audio");break;case s.LOAD_TYPE.VIDEO:this.type=s.TYPE.VIDEO,this._loadSourceElement("video");break;case s.LOAD_TYPE.XHR:default:typeof Xy>"u"&&(Xy=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),Xy&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},s.prototype._hasFlag=function(e){return(this._flags&e)!==0},s.prototype._setFlag=function(e,t){this._flags=t?this._flags|e:this._flags&~e},s.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},s.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(s.STATUS_FLAGS.COMPLETE,!0),this._setFlag(s.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},s.prototype._loadElement=function(e){this.metadata.loadElement?this.data=this.metadata.loadElement:e==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(e),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},s.prototype._loadSourceElement=function(e){if(this.metadata.loadElement?this.data=this.metadata.loadElement:e==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(e),this.data===null){this.abort("Unsupported element: "+e);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var t=this.metadata.mimeType,i=0;i<this.url.length;++i)this.data.appendChild(this._createSource(e,this.url[i],Array.isArray(t)?t[i]:t));else{var t=this.metadata.mimeType;this.data.appendChild(this._createSource(e,this.url,Array.isArray(t)?t[0]:t))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},s.prototype._loadXhr=function(){typeof this.xhrType!="string"&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XMLHttpRequest;this.crossOrigin==="use-credentials"&&(e.withCredentials=!0),e.open("GET",this.url,!0),e.timeout=this.timeout,this.xhrType===s.XHR_RESPONSE_TYPE.JSON||this.xhrType===s.XHR_RESPONSE_TYPE.DOCUMENT?e.responseType=s.XHR_RESPONSE_TYPE.TEXT:e.responseType=this.xhrType,e.addEventListener("error",this._boundXhrOnError,!1),e.addEventListener("timeout",this._boundXhrOnTimeout,!1),e.addEventListener("abort",this._boundXhrOnAbort,!1),e.addEventListener("progress",this._boundOnProgress,!1),e.addEventListener("load",this._boundXhrOnLoad,!1),e.send()},s.prototype._loadXdr=function(){typeof this.xhrType!="string"&&(this.xhrType=this._determineXhrType());var e=this.xhr=new globalThis.XDomainRequest;e.timeout=this.timeout||5e3,e.onerror=this._boundXhrOnError,e.ontimeout=this._boundXhrOnTimeout,e.onprogress=this._boundOnProgress,e.onload=this._boundXhrOnLoad,e.open("GET",this.url,!0),setTimeout(function(){return e.send()},1)},s.prototype._createSource=function(e,t,i){i||(i=e+"/"+this._getExtension(t));var n=document.createElement("source");return n.src=t,n.type=i,n},s.prototype._onError=function(e){this.abort("Failed to load element using: "+e.target.nodeName)},s.prototype._onProgress=function(e){e&&e.lengthComputable&&this.onProgress.dispatch(this,e.loaded/e.total)},s.prototype._onTimeout=function(){this.abort("Load timed out.")},s.prototype._xhrOnError=function(){var e=this.xhr;this.abort(Ky(e)+" Request failed. Status: "+e.status+', text: "'+e.statusText+'"')},s.prototype._xhrOnTimeout=function(){var e=this.xhr;this.abort(Ky(e)+" Request timed out.")},s.prototype._xhrOnAbort=function(){var e=this.xhr;this.abort(Ky(e)+" Request was aborted by the user.")},s.prototype._xhrOnLoad=function(){var e=this.xhr,t="",i=typeof e.status>"u"?GN:e.status;(e.responseType===""||e.responseType==="text"||typeof e.responseType>"u")&&(t=e.responseText),i===cq&&(t.length>0||e.responseType===s.XHR_RESPONSE_TYPE.BUFFER)?i=GN:i===dq&&(i=fq);var n=i/100|0;if(n===_q)if(this.xhrType===s.XHR_RESPONSE_TYPE.TEXT)this.data=t,this.type=s.TYPE.TEXT;else if(this.xhrType===s.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(t),this.type=s.TYPE.JSON}catch(o){this.abort("Error trying to parse loaded json: "+o);return}else if(this.xhrType===s.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var r=new DOMParser;this.data=r.parseFromString(t,"text/xml")}else{var a=document.createElement("div");a.innerHTML=t,this.data=a}this.type=s.TYPE.XML}catch(o){this.abort("Error trying to parse loaded xml: "+o);return}else this.data=e.response||t;else{this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL);return}this.complete()},s.prototype._determineCrossOrigin=function(e,t){if(e.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";t=t||globalThis.location,op||(op=document.createElement("a")),op.href=e;var i=zU(op.href,{strictMode:!0}),n=!i.port&&t.port===""||i.port===t.port,r=i.protocol?i.protocol+":":"";return i.host!==t.hostname||!n||r!==t.protocol?"anonymous":""},s.prototype._determineXhrType=function(){return s._xhrTypeMap[this.extension]||s.XHR_RESPONSE_TYPE.TEXT},s.prototype._determineLoadType=function(){return s._loadTypeMap[this.extension]||s.LOAD_TYPE.XHR},s.prototype._getExtension=function(e){e===void 0&&(e=this.url);var t="";if(this.isDataUrl){var i=e.indexOf("/");t=e.substring(i+1,e.indexOf(";",i))}else{var n=e.indexOf("?"),r=e.indexOf("#"),a=Math.min(n>-1?n:e.length,r>-1?r:e.length);e=e.substring(0,a),t=e.substring(e.lastIndexOf(".")+1)}return t.toLowerCase()},s.prototype._getMimeFromXhrType=function(e){switch(e){case s.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case s.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case s.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case s.XHR_RESPONSE_TYPE.JSON:return"application/json";case s.XHR_RESPONSE_TYPE.DEFAULT:case s.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},s}();(function(s){(function(e){e[e.NONE=0]="NONE",e[e.DATA_URL=1]="DATA_URL",e[e.COMPLETE=2]="COMPLETE",e[e.LOADING=4]="LOADING"})(s.STATUS_FLAGS||(s.STATUS_FLAGS={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.JSON=1]="JSON",e[e.XML=2]="XML",e[e.IMAGE=3]="IMAGE",e[e.AUDIO=4]="AUDIO",e[e.VIDEO=5]="VIDEO",e[e.TEXT=6]="TEXT"}(s.TYPE||(s.TYPE={})),function(e){e[e.XHR=1]="XHR",e[e.IMAGE=2]="IMAGE",e[e.AUDIO=3]="AUDIO",e[e.VIDEO=4]="VIDEO"}(s.LOAD_TYPE||(s.LOAD_TYPE={})),function(e){e.DEFAULT="text",e.BUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.TEXT="text"}(s.XHR_RESPONSE_TYPE||(s.XHR_RESPONSE_TYPE={})),s._loadTypeMap={gif:s.LOAD_TYPE.IMAGE,png:s.LOAD_TYPE.IMAGE,bmp:s.LOAD_TYPE.IMAGE,jpg:s.LOAD_TYPE.IMAGE,jpeg:s.LOAD_TYPE.IMAGE,tif:s.LOAD_TYPE.IMAGE,tiff:s.LOAD_TYPE.IMAGE,webp:s.LOAD_TYPE.IMAGE,tga:s.LOAD_TYPE.IMAGE,avif:s.LOAD_TYPE.IMAGE,svg:s.LOAD_TYPE.IMAGE,"svg+xml":s.LOAD_TYPE.IMAGE,mp3:s.LOAD_TYPE.AUDIO,ogg:s.LOAD_TYPE.AUDIO,wav:s.LOAD_TYPE.AUDIO,mp4:s.LOAD_TYPE.VIDEO,webm:s.LOAD_TYPE.VIDEO},s._xhrTypeMap={xhtml:s.XHR_RESPONSE_TYPE.DOCUMENT,html:s.XHR_RESPONSE_TYPE.DOCUMENT,htm:s.XHR_RESPONSE_TYPE.DOCUMENT,xml:s.XHR_RESPONSE_TYPE.DOCUMENT,tmx:s.XHR_RESPONSE_TYPE.DOCUMENT,svg:s.XHR_RESPONSE_TYPE.DOCUMENT,tsx:s.XHR_RESPONSE_TYPE.DOCUMENT,gif:s.XHR_RESPONSE_TYPE.BLOB,png:s.XHR_RESPONSE_TYPE.BLOB,bmp:s.XHR_RESPONSE_TYPE.BLOB,jpg:s.XHR_RESPONSE_TYPE.BLOB,jpeg:s.XHR_RESPONSE_TYPE.BLOB,tif:s.XHR_RESPONSE_TYPE.BLOB,tiff:s.XHR_RESPONSE_TYPE.BLOB,webp:s.XHR_RESPONSE_TYPE.BLOB,tga:s.XHR_RESPONSE_TYPE.BLOB,avif:s.XHR_RESPONSE_TYPE.BLOB,json:s.XHR_RESPONSE_TYPE.JSON,text:s.XHR_RESPONSE_TYPE.TEXT,txt:s.XHR_RESPONSE_TYPE.TEXT,ttf:s.XHR_RESPONSE_TYPE.BUFFER,otf:s.XHR_RESPONSE_TYPE.BUFFER},s.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(Ns||(Ns={}));function vl(){}function gq(s){return function(){for(var t=arguments,i=[],n=0;n<arguments.length;n++)i[n]=t[n];if(s===null)throw new Error("Callback was already called.");var r=s;s=null,r.apply(this,i)}}var pq=function(){function s(e,t){this.data=e,this.callback=t}return s}(),qy=function(){function s(e,t){var i=this;if(t===void 0&&(t=1),this.workers=0,this.saturated=vl,this.unsaturated=vl,this.empty=vl,this.drain=vl,this.error=vl,this.started=!1,this.paused=!1,this._tasks=[],this._insert=function(n,r,a){if(a&&typeof a!="function")throw new Error("task callback must be a function");if(i.started=!0,n==null&&i.idle()){setTimeout(function(){return i.drain()},1);return}var o=new pq(n,typeof a=="function"?a:vl);r?i._tasks.unshift(o):i._tasks.push(o),setTimeout(i.process,1)},this.process=function(){for(;!i.paused&&i.workers<i.concurrency&&i._tasks.length;){var n=i._tasks.shift();i._tasks.length===0&&i.empty(),i.workers+=1,i.workers===i.concurrency&&i.saturated(),i._worker(n.data,gq(i._next(n)))}},this._worker=e,t===0)throw new Error("Concurrency must not be zero");this.concurrency=t,this.buffer=t/4}return s.prototype._next=function(e){var t=this;return function(){for(var i=arguments,n=[],r=0;r<arguments.length;r++)n[r]=i[r];t.workers-=1,e.callback.apply(e,n),n[0]!=null&&t.error(n[0],e.data),t.workers<=t.concurrency-t.buffer&&t.unsaturated(),t.idle()&&t.drain(),t.process()}},s.prototype.push=function(e,t){this._insert(e,!1,t)},s.prototype.kill=function(){this.workers=0,this.drain=vl,this.started=!1,this._tasks=[]},s.prototype.unshift=function(e,t){this._insert(e,!0,t)},s.prototype.length=function(){return this._tasks.length},s.prototype.running=function(){return this.workers},s.prototype.idle=function(){return this._tasks.length+this.workers===0},s.prototype.pause=function(){this.paused!==!0&&(this.paused=!0)},s.prototype.resume=function(){if(this.paused!==!1){this.paused=!1;for(var e=1;e<=this.concurrency;e++)this.process()}},s.eachSeries=function(e,t,i,n){var r=0,a=e.length;function o(l){if(l||r===a){i&&i(l);return}n?setTimeout(function(){t(e[r++],o)},1):t(e[r++],o)}o()},s.queue=function(e,t){return new s(e,t)},s}(),$y=100,mq=/(#[\w-]+)?$/,Dm=function(){function s(e,t){var i=this;e===void 0&&(e=""),t===void 0&&(t=10),this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(l,u){return i._loadResource(l,u)},this.resources={},this.baseUrl=e,this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(l,u){return i._loadResource(l,u)},this._queue=qy.queue(this._boundLoadResource,t),this._queue.pause(),this.resources={},this.onProgress=new _a,this.onError=new _a,this.onLoad=new _a,this.onStart=new _a,this.onComplete=new _a;for(var n=0;n<s._plugins.length;++n){var r=s._plugins[n],a=r.pre,o=r.use;a&&this.pre(a),o&&this.use(o)}this._protected=!1}return s.prototype._add=function(e,t,i,n){if(this.loading&&(!i||!i.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[e])throw new Error('Resource named "'+e+'" already exists.');if(t=this._prepareUrl(t),this.resources[e]=new Ns(e,t,i),typeof n=="function"&&this.resources[e].onAfterMiddleware.once(n),this.loading){for(var r=i.parentResource,a=[],o=0;o<r.children.length;++o)r.children[o].isComplete||a.push(r.children[o]);var l=r.progressChunk*(a.length+1),u=l/(a.length+2);r.children.push(this.resources[e]),r.progressChunk=u;for(var o=0;o<a.length;++o)a[o].progressChunk=u;this.resources[e].progressChunk=u}return this._queue.push(this.resources[e]),this},s.prototype.pre=function(e){return this._beforeMiddleware.push(e),this},s.prototype.use=function(e){return this._afterMiddleware.push(e),this},s.prototype.reset=function(){this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause();for(var e in this.resources){var t=this.resources[e];t._onLoadBinding&&t._onLoadBinding.detach(),t.isLoading&&t.abort("loader reset")}return this.resources={},this},s.prototype.load=function(e){if(Ur("6.5.0","@pixi/loaders is being replaced with @pixi/assets in the next major release."),typeof e=="function"&&this.onComplete.once(e),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var t=this._queue._tasks.length,i=$y/t,n=0;n<this._queue._tasks.length;++n)this._queue._tasks[n].data.progressChunk=i;this._onStart(),this._queue.resume()}return this},Object.defineProperty(s.prototype,"concurrency",{get:function(){return this._queue.concurrency},set:function(e){this._queue.concurrency=e},enumerable:!1,configurable:!0}),s.prototype._prepareUrl=function(e){var t=zU(e,{strictMode:!0}),i;if(t.protocol||!t.path||e.indexOf("//")===0?i=e:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&e.charAt(0)!=="/"?i=this.baseUrl+"/"+e:i=this.baseUrl+e,this.defaultQueryString){var n=mq.exec(i)[0];i=i.slice(0,i.length-n.length),i.indexOf("?")!==-1?i+="&"+this.defaultQueryString:i+="?"+this.defaultQueryString,i+=n}return i},s.prototype._loadResource=function(e,t){var i=this;e._dequeue=t,qy.eachSeries(this._beforeMiddleware,function(n,r){n.call(i,e,function(){r(e.isComplete?{}:null)})},function(){e.isComplete?i._onLoad(e):(e._onLoadBinding=e.onComplete.once(i._onLoad,i),e.load())},!0)},s.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},s.prototype._onComplete=function(){this.progress=$y,this.loading=!1,this.onComplete.dispatch(this,this.resources)},s.prototype._onLoad=function(e){var t=this;e._onLoadBinding=null,this._resourcesParsing.push(e),e._dequeue(),qy.eachSeries(this._afterMiddleware,function(i,n){i.call(t,e,n)},function(){e.onAfterMiddleware.dispatch(e),t.progress=Math.min($y,t.progress+e.progressChunk),t.onProgress.dispatch(t,e),e.error?t.onError.dispatch(e.error,t,e):t.onLoad.dispatch(t,e),t._resourcesParsing.splice(t._resourcesParsing.indexOf(e),1),t._queue.idle()&&t._resourcesParsing.length===0&&t._onComplete()},!0)},s.prototype.destroy=function(){this._protected||this.reset()},Object.defineProperty(s,"shared",{get:function(){var e=s._shared;return e||(e=new s,e._protected=!0,s._shared=e),e},enumerable:!1,configurable:!0}),s.registerPlugin=function(e){return Ur("6.5.0","Loader.registerPlugin() is deprecated, use extensions.add() instead."),Xa.add({type:Ni.Loader,ref:e}),s},s._plugins=[],s}();Xa.handleByList(Ni.Loader,Dm._plugins);Dm.prototype.add=function(e,t,i,n){if(Array.isArray(e)){for(var r=0;r<e.length;++r)this.add(e[r]);return this}if(typeof e=="object"&&(i=e,n=t||i.callback||i.onComplete,t=i.url,e=i.name||i.key||i.url),typeof t!="string"&&(n=i,i=t,t=e),typeof t!="string")throw new Error("No url passed to add resource to loader.");return typeof i=="function"&&(n=i,i=null),this._add(e,t,i,n)};var vq=function(){function s(){}return s.init=function(e){e=Object.assign({sharedLoader:!1},e),this.loader=e.sharedLoader?Dm.shared:new Dm},s.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},s.extension=Ni.Application,s}(),Eq=function(){function s(){}return s.add=function(){Ns.setExtensionLoadType("svg",Ns.LOAD_TYPE.XHR),Ns.setExtensionXhrType("svg",Ns.XHR_RESPONSE_TYPE.TEXT)},s.use=function(e,t){if(e.data&&(e.type===Ns.TYPE.IMAGE||e.extension==="svg")){var i=e.data,n=e.url,r=e.name,a=e.metadata;Ne.fromLoader(i,n,r,a).then(function(o){e.texture=o,t()}).catch(t)}else t()},s.extension=Ni.Loader,s}(),yq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Tq(s){for(var e="",t=0;t<s.length;){for(var i=[0,0,0],n=[0,0,0,0],r=0;r<i.length;++r)t<s.length?i[r]=s.charCodeAt(t++)&255:i[r]=0;n[0]=i[0]>>2,n[1]=(i[0]&3)<<4|i[1]>>4,n[2]=(i[1]&15)<<2|i[2]>>6,n[3]=i[2]&63;var a=t-(s.length-1);switch(a){case 2:n[3]=64,n[2]=64;break;case 1:n[3]=64;break}for(var r=0;r<n.length;++r)e+=yq.charAt(n[r])}return e}function Iq(s,e){if(!s.data){e();return}if(s.xhr&&s.xhrType===Ns.XHR_RESPONSE_TYPE.BLOB){if(!self.Blob||typeof s.data=="string"){var t=s.xhr.getResponseHeader("content-type");if(t&&t.indexOf("image")===0){s.data=new Image,s.data.src="data:"+t+";base64,"+Tq(s.xhr.responseText),s.type=Ns.TYPE.IMAGE,s.data.onload=function(){s.data.onload=null,e()};return}}else if(s.data.type.indexOf("image")===0){var i=globalThis.URL||globalThis.webkitURL,n=i.createObjectURL(s.data);s.blob=s.data,s.data=new Image,s.data.src=n,s.type=Ns.TYPE.IMAGE,s.data.onload=function(){i.revokeObjectURL(n),s.data.onload=null,e()};return}}e()}var Rq=function(){function s(){}return s.extension=Ni.Loader,s.use=Iq,s}();Xa.add(Eq,Rq);/*!
* @pixi/spritesheet - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/spritesheet is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var Sw=function(){function s(e,t,i){i===void 0&&(i=null),this.linkedSheets=[],this._texture=e instanceof Ne?e:null,this.baseTexture=e instanceof pt?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;var n=this.baseTexture.resource;this.resolution=this._updateResolution(i||(n?n.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return s.prototype._updateResolution=function(e){e===void 0&&(e=null);var t=this.data.meta.scale,i=YI(e,null);return i===null&&(i=t!==void 0?parseFloat(t):1),i!==1&&this.baseTexture.setResolution(i),i},s.prototype.parse=function(e){var t=this;return e&&Ur("6.5.0","Spritesheet.parse callback is deprecated, use the return Promise instead."),new Promise(function(i){t._callback=function(n){e==null||e(n),i(n)},t._batchIndex=0,t._frameKeys.length<=s.BATCH_SIZE?(t._processFrames(0),t._processAnimations(),t._parseComplete()):t._nextBatch()})},s.prototype._processFrames=function(e){for(var t=e,i=s.BATCH_SIZE;t-e<i&&t<this._frameKeys.length;){var n=this._frameKeys[t],r=this._frames[n],a=r.frame;if(a){var o=null,l=null,u=r.trimmed!==!1&&r.sourceSize?r.sourceSize:r.frame,c=new ve(0,0,Math.floor(u.w)/this.resolution,Math.floor(u.h)/this.resolution);r.rotated?o=new ve(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.h)/this.resolution,Math.floor(a.w)/this.resolution):o=new ve(Math.floor(a.x)/this.resolution,Math.floor(a.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution),r.trimmed!==!1&&r.spriteSourceSize&&(l=new ve(Math.floor(r.spriteSourceSize.x)/this.resolution,Math.floor(r.spriteSourceSize.y)/this.resolution,Math.floor(a.w)/this.resolution,Math.floor(a.h)/this.resolution)),this.textures[n]=new Ne(this.baseTexture,o,c,l,r.rotated?2:0,r.anchor),Ne.addToCache(this.textures[n],n)}t++}},s.prototype._processAnimations=function(){var e=this.data.animations||{};for(var t in e){this.animations[t]=[];for(var i=0;i<e[t].length;i++){var n=e[t][i];this.animations[t].push(this.textures[n])}}},s.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},s.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*s.BATCH_SIZE),this._batchIndex++,setTimeout(function(){e._batchIndex*s.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())},0)},s.prototype.destroy=function(e){var t;e===void 0&&(e=!1);for(var i in this.textures)this.textures[i].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&((t=this._texture)===null||t===void 0||t.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]},s.BATCH_SIZE=1e3,s}(),Sq=function(){function s(){}return s.use=function(e,t){var i,n,r=this,a=e.name+"_image";if(!e.data||e.type!==Ns.TYPE.JSON||!e.data.frames||r.resources[a]){t();return}var o=(n=(i=e.data)===null||i===void 0?void 0:i.meta)===null||n===void 0?void 0:n.related_multi_packs;if(Array.isArray(o))for(var l=function(_){if(typeof _!="string")return"continue";var g=_.replace(".json",""),p=jf.resolve(e.url.replace(r.baseUrl,""),_);if(r.resources[g]||Object.values(r.resources).some(function(v){return jf.format(jf.parse(v.url))===p}))return"continue";var m={crossOrigin:e.crossOrigin,loadType:Ns.LOAD_TYPE.XHR,xhrType:Ns.XHR_RESPONSE_TYPE.JSON,parentResource:e,metadata:e.metadata};r.add(g,p,m)},u=0,c=o;u<c.length;u++){var h=c[u];l(h)}var f={crossOrigin:e.crossOrigin,metadata:e.metadata.imageMetadata,parentResource:e},d=s.getResourcePath(e,r.baseUrl);r.add(a,d,f,function(g){if(g.error){t(g.error);return}var p=new Sw(g.texture,e.data,e.url);p.parse().then(function(){e.spritesheet=p,e.textures=p.textures,t()})})},s.getResourcePath=function(e,t){return e.isDataUrl?e.data.meta.image:jf.resolve(e.url.replace(t,""),e.data.meta.image)},s.extension=Ni.Loader,s}();const Gl=class Gl{static log(...e){this.LOG_DEBUG&&console.log(this.logPrefix(),...e)}static warn(...e){this.LOG_WARN&&console.warn(this.logPrefix(),...e)}static error(...e){this.LOG_ERROR&&console.error(this.logPrefix(),...e)}static events(...e){this.LOG_EVENTS&&console.log(this.logPrefix(),...e)}static packets(...e){this.LOG_PACKETS&&console.log(this.logPrefix(),...e)}static logPrefix(){return"[Nitro]"}};Gl.LOG_DEBUG=!1,Gl.LOG_WARN=!1,Gl.LOG_ERROR=!1,Gl.LOG_EVENTS=!1,Gl.LOG_PACKETS=!1;let le=Gl;class li{constructor(e=null){if(this._length=0,this._dictionary=new Map,this._array=[],this._keys=[],e)for(const[t,i]of e.entries())this.add(t,i)}get length(){return this._length}get disposed(){return!this._dictionary}dispose(){if(!this._dictionary){for(const e of this._dictionary.keys())this._dictionary.delete(e);this._dictionary=null}this._length=0,this._array=null,this._keys=null}reset(){for(const e of this._dictionary.keys())this._dictionary.delete(e);this._length=0,this._array=[],this._keys=[]}unshift(e,t){return this._dictionary.get(e)!==null?!1:(this._dictionary.set(e,t),this._array.unshift(t),this._keys.unshift(e),this._length++,!0)}add(e,t){return this._dictionary.get(e)!==void 0?!1:(this._dictionary.set(e,t),this._array[this._length]=t,this._keys[this._length]=e,this._length++,!0)}remove(e){const t=this._dictionary.get(e);if(!t)return null;const i=this._array.indexOf(t);return i>=0&&(this._array.splice(i,1),this._keys.splice(i,1),this._length--),this._dictionary.delete(e),t}getWithIndex(e){return e<0||e>=this._length?null:this._array[e]}getKey(e){return e<0||e>=this._length?null:this._keys[e]}getKeys(){return this._keys.slice()}hasKey(e){return this._keys.indexOf(e)>-1}getValue(e){return this._dictionary.get(e)}getValues(){return this._array.slice()}hasValue(e){return this._array.indexOf(e)>-1}indexOf(e){return this._array.indexOf(e)}concatenate(e){for(const t of e._keys)this.add(t,e.getValue(t))}clone(){const e=new li;return e.concatenate(this),e}}const HU=s=>{let e="";const t=new Uint8Array(s),i=t.byteLength;for(let n=0;n<i;n++)e+=String.fromCharCode(t[n]);return window.btoa(e)};class E0{constructor(e){this._position=0,this._dataView=new DataView(e)}readBytes(e){const t=new E0(this._dataView.buffer.slice(this._position,this._position+e));return this._position+=e,t}readByte(){const e=this._dataView.getInt8(this._position);return this._position++,e}readShort(){const e=this._dataView.getInt16(this._position);return this._position+=2,e}readInt(){const e=this._dataView.getInt32(this._position);return this._position+=4,e}readFloat(){const e=this._dataView.getFloat32(this._position);return this._position+=4,e}readDouble(){const e=this._dataView.getFloat64(this._position);return this._position+=8,e}remaining(){return this._dataView.byteLength-this._position}toString(e){return new TextDecoder().decode(this._dataView.buffer)}toArrayBuffer(){return this._dataView.buffer}}class zN{constructor(){this._buffer=new Uint8Array,this._position=0}writeByte(e){const t=new Uint8Array(1);return t[0]=e,this.appendArray(t),this}writeBytes(e){const t=new Uint8Array(e);return this.appendArray(t),this}writeShort(e){const t=new Uint8Array(2);return t[0]=e>>8,t[1]=e&255,this.appendArray(t),this}writeInt(e){const t=new Uint8Array(4);return t[0]=e>>24,t[1]=e>>16,t[2]=e>>8,t[3]=e&255,this.appendArray(t),this}writeString(e,t=!0){const i=new TextEncoder().encode(e);return t?(this.writeShort(i.length),this.appendArray(i)):this.appendArray(i),this}appendArray(e){if(!e)return;const t=new Uint8Array(this.position+e.length>this._buffer.length?this.position+e.length:this._buffer.length);t.set(this._buffer),t.set(e,this.position),this._buffer=t,this.position+=e.length}getBuffer(){return this._buffer.buffer}get position(){return this._position}set position(e){this._position=e}toString(e){return new TextDecoder(e).decode(this._buffer)}}function mf(s){let e=s.length;for(;--e>=0;)s[e]=0}const bq=3,Aq=258,WU=29,Oq=256,wq=Oq+1+WU,YU=30,Cq=512,Mq=new Array((wq+2)*2);mf(Mq);const Nq=new Array(YU*2);mf(Nq);const Pq=new Array(Cq);mf(Pq);const kq=new Array(Aq-bq+1);mf(kq);const xq=new Array(WU);mf(xq);const Dq=new Array(YU);mf(Dq);const Lq=(s,e,t,i)=>{let n=s&65535|0,r=s>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do n=n+e[i++]|0,r=r+n|0;while(--a);n%=65521,r%=65521}return n|r<<16|0};var eR=Lq;const Uq=()=>{let s,e=[];for(var t=0;t<256;t++){s=t;for(var i=0;i<8;i++)s=s&1?3988292384^s>>>1:s>>>1;e[t]=s}return e},Fq=new Uint32Array(Uq()),Bq=(s,e,t,i)=>{const n=Fq,r=i+t;s^=-1;for(let a=i;a<r;a++)s=s>>>8^n[(s^e[a])&255];return s^-1};var lr=Bq,tR={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"},XU={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Gq=(s,e)=>Object.prototype.hasOwnProperty.call(s,e);var Vq=function(s){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Gq(t,i)&&(s[i]=t[i])}}return s},jq=s=>{let e=0;for(let i=0,n=s.length;i<n;i++)e+=s[i].length;const t=new Uint8Array(e);for(let i=0,n=0,r=s.length;i<r;i++){let a=s[i];t.set(a,n),n+=a.length}return t},KU={assign:Vq,flattenChunks:jq};let qU=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{qU=!1}const D_=new Uint8Array(256);for(let s=0;s<256;s++)D_[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;D_[254]=D_[254]=1;var zq=s=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(s);let e,t,i,n,r,a=s.length,o=0;for(n=0;n<a;n++)t=s.charCodeAt(n),(t&64512)===55296&&n+1<a&&(i=s.charCodeAt(n+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),n++)),o+=t<128?1:t<2048?2:t<65536?3:4;for(e=new Uint8Array(o),r=0,n=0;r<o;n++)t=s.charCodeAt(n),(t&64512)===55296&&n+1<a&&(i=s.charCodeAt(n+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),n++)),t<128?e[r++]=t:t<2048?(e[r++]=192|t>>>6,e[r++]=128|t&63):t<65536?(e[r++]=224|t>>>12,e[r++]=128|t>>>6&63,e[r++]=128|t&63):(e[r++]=240|t>>>18,e[r++]=128|t>>>12&63,e[r++]=128|t>>>6&63,e[r++]=128|t&63);return e};const Hq=(s,e)=>{if(e<65534&&s.subarray&&qU)return String.fromCharCode.apply(null,s.length===e?s:s.subarray(0,e));let t="";for(let i=0;i<e;i++)t+=String.fromCharCode(s[i]);return t};var Wq=(s,e)=>{const t=e||s.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(s.subarray(0,e));let i,n;const r=new Array(t*2);for(n=0,i=0;i<t;){let a=s[i++];if(a<128){r[n++]=a;continue}let o=D_[a];if(o>4){r[n++]=65533,i+=o-1;continue}for(a&=o===2?31:o===3?15:7;o>1&&i<t;)a=a<<6|s[i++]&63,o--;if(o>1){r[n++]=65533;continue}a<65536?r[n++]=a:(a-=65536,r[n++]=55296|a>>10&1023,r[n++]=56320|a&1023)}return Hq(r,n)},Yq=(s,e)=>{e=e||s.length,e>s.length&&(e=s.length);let t=e-1;for(;t>=0&&(s[t]&192)===128;)t--;return t<0||t===0?e:t+D_[s[t]]>e?t:e},iR={string2buf:zq,buf2string:Wq,utf8border:Yq};function Xq(){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}var Kq=Xq;const lp=16209,qq=16191;var $q=function(e,t){let i,n,r,a,o,l,u,c,h,f,d,_,g,p,m,v,E,y,T,w,C,N,P,k;const L=e.state;i=e.next_in,P=e.input,n=i+(e.avail_in-5),r=e.next_out,k=e.output,a=r-(t-e.avail_out),o=r+(e.avail_out-257),l=L.dmax,u=L.wsize,c=L.whave,h=L.wnext,f=L.window,d=L.hold,_=L.bits,g=L.lencode,p=L.distcode,m=(1<<L.lenbits)-1,v=(1<<L.distbits)-1;e:do{_<15&&(d+=P[i++]<<_,_+=8,d+=P[i++]<<_,_+=8),E=g[d&m];t:for(;;){if(y=E>>>24,d>>>=y,_-=y,y=E>>>16&255,y===0)k[r++]=E&65535;else if(y&16){T=E&65535,y&=15,y&&(_<y&&(d+=P[i++]<<_,_+=8),T+=d&(1<<y)-1,d>>>=y,_-=y),_<15&&(d+=P[i++]<<_,_+=8,d+=P[i++]<<_,_+=8),E=p[d&v];i:for(;;){if(y=E>>>24,d>>>=y,_-=y,y=E>>>16&255,y&16){if(w=E&65535,y&=15,_<y&&(d+=P[i++]<<_,_+=8,_<y&&(d+=P[i++]<<_,_+=8)),w+=d&(1<<y)-1,w>l){e.msg="invalid distance too far back",L.mode=lp;break e}if(d>>>=y,_-=y,y=r-a,w>y){if(y=w-y,y>c&&L.sane){e.msg="invalid distance too far back",L.mode=lp;break e}if(C=0,N=f,h===0){if(C+=u-y,y<T){T-=y;do k[r++]=f[C++];while(--y);C=r-w,N=k}}else if(h<y){if(C+=u+h-y,y-=h,y<T){T-=y;do k[r++]=f[C++];while(--y);if(C=0,h<T){y=h,T-=y;do k[r++]=f[C++];while(--y);C=r-w,N=k}}}else if(C+=h-y,y<T){T-=y;do k[r++]=f[C++];while(--y);C=r-w,N=k}for(;T>2;)k[r++]=N[C++],k[r++]=N[C++],k[r++]=N[C++],T-=3;T&&(k[r++]=N[C++],T>1&&(k[r++]=N[C++]))}else{C=r-w;do k[r++]=k[C++],k[r++]=k[C++],k[r++]=k[C++],T-=3;while(T>2);T&&(k[r++]=k[C++],T>1&&(k[r++]=k[C++]))}}else if(y&64){e.msg="invalid distance code",L.mode=lp;break e}else{E=p[(E&65535)+(d&(1<<y)-1)];continue i}break}}else if(y&64)if(y&32){L.mode=qq;break e}else{e.msg="invalid literal/length code",L.mode=lp;break e}else{E=g[(E&65535)+(d&(1<<y)-1)];continue t}break}}while(i<n&&r<o);T=_>>3,i-=T,_-=T<<3,d&=(1<<_)-1,e.next_in=i,e.next_out=r,e.avail_in=i<n?5+(n-i):5-(i-n),e.avail_out=r<o?257+(o-r):257-(r-o),L.hold=d,L.bits=_};const nh=15,HN=852,WN=592,YN=0,Qy=1,XN=2,Qq=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]),Zq=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]),Jq=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]),e$=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]),t$=(s,e,t,i,n,r,a,o)=>{const l=o.bits;let u=0,c=0,h=0,f=0,d=0,_=0,g=0,p=0,m=0,v=0,E,y,T,w,C,N=null,P;const k=new Uint16Array(nh+1),L=new Uint16Array(nh+1);let j=null,z,ne,G;for(u=0;u<=nh;u++)k[u]=0;for(c=0;c<i;c++)k[e[t+c]]++;for(d=l,f=nh;f>=1&&k[f]===0;f--);if(d>f&&(d=f),f===0)return n[r++]=1<<24|64<<16|0,n[r++]=1<<24|64<<16|0,o.bits=1,0;for(h=1;h<f&&k[h]===0;h++);for(d<h&&(d=h),p=1,u=1;u<=nh;u++)if(p<<=1,p-=k[u],p<0)return-1;if(p>0&&(s===YN||f!==1))return-1;for(L[1]=0,u=1;u<nh;u++)L[u+1]=L[u]+k[u];for(c=0;c<i;c++)e[t+c]!==0&&(a[L[e[t+c]]++]=c);if(s===YN?(N=j=a,P=20):s===Qy?(N=Qq,j=Zq,P=257):(N=Jq,j=e$,P=0),v=0,c=0,u=h,C=r,_=d,g=0,T=-1,m=1<<d,w=m-1,s===Qy&&m>HN||s===XN&&m>WN)return 1;for(;;){z=u-g,a[c]+1<P?(ne=0,G=a[c]):a[c]>=P?(ne=j[a[c]-P],G=N[a[c]-P]):(ne=96,G=0),E=1<<u-g,y=1<<_,h=y;do y-=E,n[C+(v>>g)+y]=z<<24|ne<<16|G|0;while(y!==0);for(E=1<<u-1;v&E;)E>>=1;if(E!==0?(v&=E-1,v+=E):v=0,c++,--k[u]===0){if(u===f)break;u=e[t+a[c]]}if(u>d&&(v&w)!==T){for(g===0&&(g=d),C+=h,_=u-g,p=1<<_;_+g<f&&(p-=k[_+g],!(p<=0));)_++,p<<=1;if(m+=1<<_,s===Qy&&m>HN||s===XN&&m>WN)return 1;T=v&w,n[T]=d<<24|_<<16|C-r|0}}return v!==0&&(n[C+v]=u-g<<24|64<<16|0),o.bits=d,0};var ld=t$;const i$=0,$U=1,QU=2,{Z_FINISH:KN,Z_BLOCK:s$,Z_TREES:up,Z_OK:Uu,Z_STREAM_END:n$,Z_NEED_DICT:r$,Z_STREAM_ERROR:Dn,Z_DATA_ERROR:ZU,Z_MEM_ERROR:JU,Z_BUF_ERROR:a$,Z_DEFLATED:qN}=XU,y0=16180,$N=16181,QN=16182,ZN=16183,JN=16184,eP=16185,tP=16186,iP=16187,sP=16188,nP=16189,Lm=16190,Kr=16191,Zy=16192,rP=16193,Jy=16194,aP=16195,oP=16196,lP=16197,uP=16198,hp=16199,cp=16200,hP=16201,cP=16202,fP=16203,dP=16204,_P=16205,eT=16206,gP=16207,pP=16208,Dt=16209,e4=16210,t4=16211,o$=852,l$=592,u$=15,h$=u$,mP=s=>(s>>>24&255)+(s>>>8&65280)+((s&65280)<<8)+((s&255)<<24);function c$(){this.strm=null,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 qu=s=>{if(!s)return 1;const e=s.state;return!e||e.strm!==s||e.mode<y0||e.mode>t4?1:0},i4=s=>{if(qu(s))return Dn;const e=s.state;return s.total_in=s.total_out=e.total=0,s.msg="",e.wrap&&(s.adler=e.wrap&1),e.mode=y0,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(o$),e.distcode=e.distdyn=new Int32Array(l$),e.sane=1,e.back=-1,Uu},s4=s=>{if(qu(s))return Dn;const e=s.state;return e.wsize=0,e.whave=0,e.wnext=0,i4(s)},n4=(s,e)=>{let t;if(qu(s))return Dn;const i=s.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Dn:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,s4(s))},r4=(s,e)=>{if(!s)return Dn;const t=new c$;s.state=t,t.strm=s,t.window=null,t.mode=y0;const i=n4(s,e);return i!==Uu&&(s.state=null),i},f$=s=>r4(s,h$);let vP=!0,tT,iT;const d$=s=>{if(vP){tT=new Int32Array(512),iT=new Int32Array(32);let e=0;for(;e<144;)s.lens[e++]=8;for(;e<256;)s.lens[e++]=9;for(;e<280;)s.lens[e++]=7;for(;e<288;)s.lens[e++]=8;for(ld($U,s.lens,0,288,tT,0,s.work,{bits:9}),e=0;e<32;)s.lens[e++]=5;ld(QU,s.lens,0,32,iT,0,s.work,{bits:5}),vP=!1}s.lencode=tT,s.lenbits=9,s.distcode=iT,s.distbits=5},a4=(s,e,t,i)=>{let n;const r=s.state;return r.window===null&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new Uint8Array(r.wsize)),i>=r.wsize?(r.window.set(e.subarray(t-r.wsize,t),0),r.wnext=0,r.whave=r.wsize):(n=r.wsize-r.wnext,n>i&&(n=i),r.window.set(e.subarray(t-i,t-i+n),r.wnext),i-=n,i?(r.window.set(e.subarray(t-i,t),0),r.wnext=i,r.whave=r.wsize):(r.wnext+=n,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=n))),0},_$=(s,e)=>{let t,i,n,r,a,o,l,u,c,h,f,d,_,g,p=0,m,v,E,y,T,w,C,N;const P=new Uint8Array(4);let k,L;const j=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(qu(s)||!s.output||!s.input&&s.avail_in!==0)return Dn;t=s.state,t.mode===Kr&&(t.mode=Zy),a=s.next_out,n=s.output,l=s.avail_out,r=s.next_in,i=s.input,o=s.avail_in,u=t.hold,c=t.bits,h=o,f=l,N=Uu;e:for(;;)switch(t.mode){case y0:if(t.wrap===0){t.mode=Zy;break}for(;c<16;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(t.wrap&2&&u===35615){t.wbits===0&&(t.wbits=15),t.check=0,P[0]=u&255,P[1]=u>>>8&255,t.check=lr(t.check,P,2,0),u=0,c=0,t.mode=$N;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((u&255)<<8)+(u>>8))%31){s.msg="incorrect header check",t.mode=Dt;break}if((u&15)!==qN){s.msg="unknown compression method",t.mode=Dt;break}if(u>>>=4,c-=4,C=(u&15)+8,t.wbits===0&&(t.wbits=C),C>15||C>t.wbits){s.msg="invalid window size",t.mode=Dt;break}t.dmax=1<<t.wbits,t.flags=0,s.adler=t.check=1,t.mode=u&512?nP:Kr,u=0,c=0;break;case $N:for(;c<16;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(t.flags=u,(t.flags&255)!==qN){s.msg="unknown compression method",t.mode=Dt;break}if(t.flags&57344){s.msg="unknown header flags set",t.mode=Dt;break}t.head&&(t.head.text=u>>8&1),t.flags&512&&t.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,t.check=lr(t.check,P,2,0)),u=0,c=0,t.mode=QN;case QN:for(;c<32;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}t.head&&(t.head.time=u),t.flags&512&&t.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,P[2]=u>>>16&255,P[3]=u>>>24&255,t.check=lr(t.check,P,4,0)),u=0,c=0,t.mode=ZN;case ZN:for(;c<16;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}t.head&&(t.head.xflags=u&255,t.head.os=u>>8),t.flags&512&&t.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,t.check=lr(t.check,P,2,0)),u=0,c=0,t.mode=JN;case JN:if(t.flags&1024){for(;c<16;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}t.length=u,t.head&&(t.head.extra_len=u),t.flags&512&&t.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,t.check=lr(t.check,P,2,0)),u=0,c=0}else t.head&&(t.head.extra=null);t.mode=eP;case eP:if(t.flags&1024&&(d=t.length,d>o&&(d=o),d&&(t.head&&(C=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(r,r+d),C)),t.flags&512&&t.wrap&4&&(t.check=lr(t.check,i,d,r)),o-=d,r+=d,t.length-=d),t.length))break e;t.length=0,t.mode=tP;case tP:if(t.flags&2048){if(o===0)break e;d=0;do C=i[r+d++],t.head&&C&&t.length<65536&&(t.head.name+=String.fromCharCode(C));while(C&&d<o);if(t.flags&512&&t.wrap&4&&(t.check=lr(t.check,i,d,r)),o-=d,r+=d,C)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=iP;case iP:if(t.flags&4096){if(o===0)break e;d=0;do C=i[r+d++],t.head&&C&&t.length<65536&&(t.head.comment+=String.fromCharCode(C));while(C&&d<o);if(t.flags&512&&t.wrap&4&&(t.check=lr(t.check,i,d,r)),o-=d,r+=d,C)break e}else t.head&&(t.head.comment=null);t.mode=sP;case sP:if(t.flags&512){for(;c<16;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(t.wrap&4&&u!==(t.check&65535)){s.msg="header crc mismatch",t.mode=Dt;break}u=0,c=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),s.adler=t.check=0,t.mode=Kr;break;case nP:for(;c<32;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}s.adler=t.check=mP(u),u=0,c=0,t.mode=Lm;case Lm:if(t.havedict===0)return s.next_out=a,s.avail_out=l,s.next_in=r,s.avail_in=o,t.hold=u,t.bits=c,r$;s.adler=t.check=1,t.mode=Kr;case Kr:if(e===s$||e===up)break e;case Zy:if(t.last){u>>>=c&7,c-=c&7,t.mode=eT;break}for(;c<3;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}switch(t.last=u&1,u>>>=1,c-=1,u&3){case 0:t.mode=rP;break;case 1:if(d$(t),t.mode=hp,e===up){u>>>=2,c-=2;break e}break;case 2:t.mode=oP;break;case 3:s.msg="invalid block type",t.mode=Dt}u>>>=2,c-=2;break;case rP:for(u>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){s.msg="invalid stored block lengths",t.mode=Dt;break}if(t.length=u&65535,u=0,c=0,t.mode=Jy,e===up)break e;case Jy:t.mode=aP;case aP:if(d=t.length,d){if(d>o&&(d=o),d>l&&(d=l),d===0)break e;n.set(i.subarray(r,r+d),a),o-=d,r+=d,l-=d,a+=d,t.length-=d;break}t.mode=Kr;break;case oP:for(;c<14;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(t.nlen=(u&31)+257,u>>>=5,c-=5,t.ndist=(u&31)+1,u>>>=5,c-=5,t.ncode=(u&15)+4,u>>>=4,c-=4,t.nlen>286||t.ndist>30){s.msg="too many length or distance symbols",t.mode=Dt;break}t.have=0,t.mode=lP;case lP:for(;t.have<t.ncode;){for(;c<3;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}t.lens[j[t.have++]]=u&7,u>>>=3,c-=3}for(;t.have<19;)t.lens[j[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,k={bits:t.lenbits},N=ld(i$,t.lens,0,19,t.lencode,0,t.work,k),t.lenbits=k.bits,N){s.msg="invalid code lengths set",t.mode=Dt;break}t.have=0,t.mode=uP;case uP:for(;t.have<t.nlen+t.ndist;){for(;p=t.lencode[u&(1<<t.lenbits)-1],m=p>>>24,v=p>>>16&255,E=p&65535,!(m<=c);){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(E<16)u>>>=m,c-=m,t.lens[t.have++]=E;else{if(E===16){for(L=m+2;c<L;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(u>>>=m,c-=m,t.have===0){s.msg="invalid bit length repeat",t.mode=Dt;break}C=t.lens[t.have-1],d=3+(u&3),u>>>=2,c-=2}else if(E===17){for(L=m+3;c<L;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}u>>>=m,c-=m,C=0,d=3+(u&7),u>>>=3,c-=3}else{for(L=m+7;c<L;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}u>>>=m,c-=m,C=0,d=11+(u&127),u>>>=7,c-=7}if(t.have+d>t.nlen+t.ndist){s.msg="invalid bit length repeat",t.mode=Dt;break}for(;d--;)t.lens[t.have++]=C}}if(t.mode===Dt)break;if(t.lens[256]===0){s.msg="invalid code -- missing end-of-block",t.mode=Dt;break}if(t.lenbits=9,k={bits:t.lenbits},N=ld($U,t.lens,0,t.nlen,t.lencode,0,t.work,k),t.lenbits=k.bits,N){s.msg="invalid literal/lengths set",t.mode=Dt;break}if(t.distbits=6,t.distcode=t.distdyn,k={bits:t.distbits},N=ld(QU,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,k),t.distbits=k.bits,N){s.msg="invalid distances set",t.mode=Dt;break}if(t.mode=hp,e===up)break e;case hp:t.mode=cp;case cp:if(o>=6&&l>=258){s.next_out=a,s.avail_out=l,s.next_in=r,s.avail_in=o,t.hold=u,t.bits=c,$q(s,f),a=s.next_out,n=s.output,l=s.avail_out,r=s.next_in,i=s.input,o=s.avail_in,u=t.hold,c=t.bits,t.mode===Kr&&(t.back=-1);break}for(t.back=0;p=t.lencode[u&(1<<t.lenbits)-1],m=p>>>24,v=p>>>16&255,E=p&65535,!(m<=c);){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(v&&!(v&240)){for(y=m,T=v,w=E;p=t.lencode[w+((u&(1<<y+T)-1)>>y)],m=p>>>24,v=p>>>16&255,E=p&65535,!(y+m<=c);){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}u>>>=y,c-=y,t.back+=y}if(u>>>=m,c-=m,t.back+=m,t.length=E,v===0){t.mode=_P;break}if(v&32){t.back=-1,t.mode=Kr;break}if(v&64){s.msg="invalid literal/length code",t.mode=Dt;break}t.extra=v&15,t.mode=hP;case hP:if(t.extra){for(L=t.extra;c<L;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}t.length+=u&(1<<t.extra)-1,u>>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=cP;case cP:for(;p=t.distcode[u&(1<<t.distbits)-1],m=p>>>24,v=p>>>16&255,E=p&65535,!(m<=c);){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(!(v&240)){for(y=m,T=v,w=E;p=t.distcode[w+((u&(1<<y+T)-1)>>y)],m=p>>>24,v=p>>>16&255,E=p&65535,!(y+m<=c);){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}u>>>=y,c-=y,t.back+=y}if(u>>>=m,c-=m,t.back+=m,v&64){s.msg="invalid distance code",t.mode=Dt;break}t.offset=E,t.extra=v&15,t.mode=fP;case fP:if(t.extra){for(L=t.extra;c<L;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}t.offset+=u&(1<<t.extra)-1,u>>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){s.msg="invalid distance too far back",t.mode=Dt;break}t.mode=dP;case dP:if(l===0)break e;if(d=f-l,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){s.msg="invalid distance too far back",t.mode=Dt;break}d>t.wnext?(d-=t.wnext,_=t.wsize-d):_=t.wnext-d,d>t.length&&(d=t.length),g=t.window}else g=n,_=a-t.offset,d=t.length;d>l&&(d=l),l-=d,t.length-=d;do n[a++]=g[_++];while(--d);t.length===0&&(t.mode=cp);break;case _P:if(l===0)break e;n[a++]=t.length,l--,t.mode=cp;break;case eT:if(t.wrap){for(;c<32;){if(o===0)break e;o--,u|=i[r++]<<c,c+=8}if(f-=l,s.total_out+=f,t.total+=f,t.wrap&4&&f&&(s.adler=t.check=t.flags?lr(t.check,n,f,a-f):eR(t.check,n,f,a-f)),f=l,t.wrap&4&&(t.flags?u:mP(u))!==t.check){s.msg="incorrect data check",t.mode=Dt;break}u=0,c=0}t.mode=gP;case gP:if(t.wrap&&t.flags){for(;c<32;){if(o===0)break e;o--,u+=i[r++]<<c,c+=8}if(t.wrap&4&&u!==(t.total&4294967295)){s.msg="incorrect length check",t.mode=Dt;break}u=0,c=0}t.mode=pP;case pP:N=n$;break e;case Dt:N=ZU;break e;case e4:return JU;case t4:default:return Dn}return s.next_out=a,s.avail_out=l,s.next_in=r,s.avail_in=o,t.hold=u,t.bits=c,(t.wsize||f!==s.avail_out&&t.mode<Dt&&(t.mode<eT||e!==KN))&&a4(s,s.output,s.next_out,f-s.avail_out),h-=s.avail_in,f-=s.avail_out,s.total_in+=h,s.total_out+=f,t.total+=f,t.wrap&4&&f&&(s.adler=t.check=t.flags?lr(t.check,n,f,s.next_out-f):eR(t.check,n,f,s.next_out-f)),s.data_type=t.bits+(t.last?64:0)+(t.mode===Kr?128:0)+(t.mode===hp||t.mode===Jy?256:0),(h===0&&f===0||e===KN)&&N===Uu&&(N=a$),N},g$=s=>{if(qu(s))return Dn;let e=s.state;return e.window&&(e.window=null),s.state=null,Uu},p$=(s,e)=>{if(qu(s))return Dn;const t=s.state;return t.wrap&2?(t.head=e,e.done=!1,Uu):Dn},m$=(s,e)=>{const t=e.length;let i,n,r;return qu(s)||(i=s.state,i.wrap!==0&&i.mode!==Lm)?Dn:i.mode===Lm&&(n=1,n=eR(n,e,t,0),n!==i.check)?ZU:(r=a4(s,e,t,t),r?(i.mode=e4,JU):(i.havedict=1,Uu))};var v$=s4,E$=n4,y$=i4,T$=f$,I$=r4,R$=_$,S$=g$,b$=p$,A$=m$,O$="pako inflate (from Nodeca project)",da={inflateReset:v$,inflateReset2:E$,inflateResetKeep:y$,inflateInit:T$,inflateInit2:I$,inflate:R$,inflateEnd:S$,inflateGetHeader:b$,inflateSetDictionary:A$,inflateInfo:O$};function w$(){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}var C$=w$;const o4=Object.prototype.toString,{Z_NO_FLUSH:M$,Z_FINISH:N$,Z_OK:L_,Z_STREAM_END:sT,Z_NEED_DICT:nT,Z_STREAM_ERROR:P$,Z_DATA_ERROR:EP,Z_MEM_ERROR:k$}=XU;function T0(s){this.options=KU.assign({chunkSize:1024*64,windowBits:15,to:""},s||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(s&&s.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Kq,this.strm.avail_out=0;let t=da.inflateInit2(this.strm,e.windowBits);if(t!==L_)throw new Error(tR[t]);if(this.header=new C$,da.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=iR.string2buf(e.dictionary):o4.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=da.inflateSetDictionary(this.strm,e.dictionary),t!==L_)))throw new Error(tR[t])}T0.prototype.push=function(s,e){const t=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let r,a,o;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?N$:M$,o4.call(s)==="[object ArrayBuffer]"?t.input=new Uint8Array(s):t.input=s,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),r=da.inflate(t,a),r===nT&&n&&(r=da.inflateSetDictionary(t,n),r===L_?r=da.inflate(t,a):r===EP&&(r=nT));t.avail_in>0&&r===sT&&t.state.wrap>0&&s[t.next_in]!==0;)da.inflateReset(t),r=da.inflate(t,a);switch(r){case P$:case EP:case nT:case k$:return this.onEnd(r),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(t.avail_out===0||r===sT))if(this.options.to==="string"){let l=iR.utf8border(t.output,t.next_out),u=t.next_out-l,c=iR.buf2string(t.output,l);t.next_out=u,t.avail_out=i-u,u&&t.output.set(t.output.subarray(l,l+u),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(r===L_&&o===0)){if(r===sT)return r=da.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};T0.prototype.onData=function(s){this.chunks.push(s)};T0.prototype.onEnd=function(s){s===L_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=KU.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg};function x$(s,e){const t=new T0(e);if(t.push(s),t.err)throw t.msg||tR[t.err];return t.result}var D$=x$,L$={inflate:D$};const{inflate:U$}=L$;var yP=U$;const u1=class u1{constructor(e){this._jsonFile=null,this._image=null,this._imageData=null,this._baseTexture=null,this.parse(e)}parse(e){const t=new E0(e);let i=t.readShort();for(;i>0;){const n=t.readShort(),r=t.readBytes(n).toString(),a=t.readInt(),o=t.readBytes(a);if(r.endsWith(".json")){const l=yP(o.toArrayBuffer());this._jsonFile=JSON.parse(u1.TEXT_DECODER.decode(l))}else{const l=yP(o.toArrayBuffer()),u=HU(l);this._baseTexture=new pt("data:image/png;base64,"+u)}i--}}get jsonFile(){return this._jsonFile}get baseTexture(){return this._baseTexture}};u1.TEXT_DECODER=new TextDecoder("utf-8");let Um=u1;class F$ extends pf{constructor(e){super(`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float gamma;
uniform float contrast;
uniform float saturation;
uniform float brightness;
uniform float red;
uniform float green;
uniform float blue;
uniform float alpha;
void main(void)
{
vec4 c = texture2D(uSampler, vTextureCoord);
if (c.a > 0.0) {
c.rgb /= c.a;
vec3 rgb = pow(c.rgb, vec3(1. / gamma));
rgb = mix(vec3(.5), mix(vec3(dot(vec3(.2125, .7154, .0721), rgb)), rgb, saturation), contrast);
rgb.r *= red;
rgb.g *= green;
rgb.b *= blue;
c.rgb = rgb * brightness;
c.rgb *= c.a;
}
gl_FragColor = c * alpha;
}`),this.gamma=1,this.saturation=1,this.contrast=1,this.brightness=1,this.red=1,this.green=1,this.blue=1,this.alpha=1,Object.assign(this,e)}apply(e,t,i,n){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,e.applyFilter(this,t,i,n)}}const B$=`
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,G$=`
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform sampler2D mask;
uniform int fromChannel;
uniform int toChannel;
void main(void) {
vec4 maskColor = texture2D(mask, vTextureCoord);
vec4 currentColor = texture2D(uSampler, vTextureCoord);
vec4 adjusted = currentColor;
if(maskColor.r == 0.0 && maskColor.g == 0.0 && maskColor.b == 0.0)
{
adjusted.a = 0.0;
}
gl_FragColor = vec4(adjusted.r, adjusted.g, adjusted.b, adjusted.a);
}`,Wh=class Wh extends pf{constructor(e,t,i){super(B$,G$,{mask:e.castToBaseTexture(),fromChannel:t,toChannel:i})}};Wh.CHANNEL_RED=0,Wh.CHANNEL_GREEN=1,Wh.CHANNEL_BLUE=2,Wh.CHANNEL_ALPHA=3;let TP=Wh;/*!
* @pixi/display - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/display is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/de.SORTABLE_CHILDREN=!1;var Fm=function(){function s(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return s.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},s.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},s.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?ve.EMPTY:(e=e||new ve(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},s.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},s.prototype.addPointMatrix=function(e,t){var i=e.a,n=e.b,r=e.c,a=e.d,o=e.tx,l=e.ty,u=i*t.x+r*t.y+o,c=n*t.x+a*t.y+l;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},s.prototype.addQuad=function(e){var t=this.minX,i=this.minY,n=this.maxX,r=this.maxY,a=e[0],o=e[1];t=a<t?a:t,i=o<i?o:i,n=a>n?a:n,r=o>r?o:r,a=e[2],o=e[3],t=a<t?a:t,i=o<i?o:i,n=a>n?a:n,r=o>r?o:r,a=e[4],o=e[5],t=a<t?a:t,i=o<i?o:i,n=a>n?a:n,r=o>r?o:r,a=e[6],o=e[7],t=a<t?a:t,i=o<i?o:i,n=a>n?a:n,r=o>r?o:r,this.minX=t,this.minY=i,this.maxX=n,this.maxY=r},s.prototype.addFrame=function(e,t,i,n,r){this.addFrameMatrix(e.worldTransform,t,i,n,r)},s.prototype.addFrameMatrix=function(e,t,i,n,r){var a=e.a,o=e.b,l=e.c,u=e.d,c=e.tx,h=e.ty,f=this.minX,d=this.minY,_=this.maxX,g=this.maxY,p=a*t+l*i+c,m=o*t+u*i+h;f=p<f?p:f,d=m<d?m:d,_=p>_?p:_,g=m>g?m:g,p=a*n+l*i+c,m=o*n+u*i+h,f=p<f?p:f,d=m<d?m:d,_=p>_?p:_,g=m>g?m:g,p=a*t+l*r+c,m=o*t+u*r+h,f=p<f?p:f,d=m<d?m:d,_=p>_?p:_,g=m>g?m:g,p=a*n+l*r+c,m=o*n+u*r+h,f=p<f?p:f,d=m<d?m:d,_=p>_?p:_,g=m>g?m:g,this.minX=f,this.minY=d,this.maxX=_,this.maxY=g},s.prototype.addVertexData=function(e,t,i){for(var n=this.minX,r=this.minY,a=this.maxX,o=this.maxY,l=t;l<i;l+=2){var u=e[l],c=e[l+1];n=u<n?u:n,r=c<r?c:r,a=u>a?u:a,o=c>o?c:o}this.minX=n,this.minY=r,this.maxX=a,this.maxY=o},s.prototype.addVertices=function(e,t,i,n){this.addVerticesMatrix(e.worldTransform,t,i,n)},s.prototype.addVerticesMatrix=function(e,t,i,n,r,a){r===void 0&&(r=0),a===void 0&&(a=r);for(var o=e.a,l=e.b,u=e.c,c=e.d,h=e.tx,f=e.ty,d=this.minX,_=this.minY,g=this.maxX,p=this.maxY,m=i;m<n;m+=2){var v=t[m],E=t[m+1],y=o*v+u*E+h,T=c*E+l*v+f;d=Math.min(d,y-r),g=Math.max(g,y+r),_=Math.min(_,T-a),p=Math.max(p,T+a)}this.minX=d,this.minY=_,this.maxX=g,this.maxY=p},s.prototype.addBounds=function(e){var t=this.minX,i=this.minY,n=this.maxX,r=this.maxY;this.minX=e.minX<t?e.minX:t,this.minY=e.minY<i?e.minY:i,this.maxX=e.maxX>n?e.maxX:n,this.maxY=e.maxY>r?e.maxY:r},s.prototype.addBoundsMask=function(e,t){var i=e.minX>t.minX?e.minX:t.minX,n=e.minY>t.minY?e.minY:t.minY,r=e.maxX<t.maxX?e.maxX:t.maxX,a=e.maxY<t.maxY?e.maxY:t.maxY;if(i<=r&&n<=a){var o=this.minX,l=this.minY,u=this.maxX,c=this.maxY;this.minX=i<o?i:o,this.minY=n<l?n:l,this.maxX=r>u?r:u,this.maxY=a>c?a:c}},s.prototype.addBoundsMatrix=function(e,t){this.addFrameMatrix(t,e.minX,e.minY,e.maxX,e.maxY)},s.prototype.addBoundsArea=function(e,t){var i=e.minX>t.x?e.minX:t.x,n=e.minY>t.y?e.minY:t.y,r=e.maxX<t.x+t.width?e.maxX:t.x+t.width,a=e.maxY<t.y+t.height?e.maxY:t.y+t.height;if(i<=r&&n<=a){var o=this.minX,l=this.minY,u=this.maxX,c=this.maxY;this.minX=i<o?i:o,this.minY=n<l?n:l,this.maxX=r>u?r:u,this.maxY=a>c?a:c}},s.prototype.pad=function(e,t){e===void 0&&(e=0),t===void 0&&(t=e),this.isEmpty()||(this.minX-=e,this.maxX+=e,this.minY-=t,this.maxY+=t)},s.prototype.addFramePad=function(e,t,i,n,r,a){e-=r,t-=a,i+=r,n+=a,this.minX=this.minX<e?this.minX:e,this.maxX=this.maxX>i?this.maxX:i,this.minY=this.minY<t?this.minY:t,this.maxY=this.maxY>n?this.maxY:n},s}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var sR=function(s,e){return sR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},sR(s,e)};function bw(s,e){sR(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var _i=function(s){bw(e,s);function e(){var t=s.call(this)||this;return t.tempDisplayObjectParent=null,t.transform=new AU,t.alpha=1,t.visible=!0,t.renderable=!0,t.cullable=!1,t.cullArea=null,t.parent=null,t.worldAlpha=1,t._lastSortedIndex=0,t._zIndex=0,t.filterArea=null,t.filters=null,t._enabledFilters=null,t._bounds=new Fm,t._localBounds=null,t._boundsID=0,t._boundsRect=null,t._localBoundsRect=null,t._mask=null,t._maskRefCount=0,t._destroyed=!1,t.isSprite=!1,t.isMask=!1,t}return e.mixin=function(t){for(var i=Object.keys(t),n=0;n<i.length;++n){var r=i[n];Object.defineProperty(e.prototype,r,Object.getOwnPropertyDescriptor(t,r))}},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),e.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},e.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},e.prototype.getBounds=function(t,i){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),i||(this._boundsRect||(this._boundsRect=new ve),i=this._boundsRect),this._bounds.getRectangle(i)},e.prototype.getLocalBounds=function(t){t||(this._localBoundsRect||(this._localBoundsRect=new ve),t=this._localBoundsRect),this._localBounds||(this._localBounds=new Fm);var i=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var r=this._bounds,a=this._boundsID;this._bounds=this._localBounds;var o=this.getBounds(!1,t);return this.parent=n,this.transform=i,this._bounds=r,this._bounds.updateID+=this._boundsID-a,o},e.prototype.toGlobal=function(t,i,n){return n===void 0&&(n=!1),n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,i)},e.prototype.toLocal=function(t,i,n,r){return i&&(t=i.toGlobal(t,n,r)),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)},e.prototype.setParent=function(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t},e.prototype.setTransform=function(t,i,n,r,a,o,l,u,c){return t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=1),r===void 0&&(r=1),a===void 0&&(a=0),o===void 0&&(o=0),l===void 0&&(l=0),u===void 0&&(u=0),c===void 0&&(c=0),this.position.x=t,this.position.y=i,this.scale.x=n||1,this.scale.y=r||1,this.rotation=a,this.skew.x=o,this.skew.y=l,this.pivot.x=u,this.pivot.y=c,this},e.prototype.destroy=function(t){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(e.prototype,"_tempDisplayObjectParent",{get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new V$),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),e.prototype.enableTempParent=function(){var t=this.parent;return this.parent=this._tempDisplayObjectParent,t},e.prototype.disableTempParent=function(t){this.parent=t},Object.defineProperty(e.prototype,"x",{get:function(){return this.position.x},set:function(t){this.transform.position.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.position.y},set:function(t){this.transform.position.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.transform.position},set:function(t){this.transform.position.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.transform.scale},set:function(t){this.transform.scale.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(t){this.transform.pivot.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"skew",{get:function(){return this.transform.skew},set:function(t){this.transform.skew.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(t){this.transform.rotation=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.transform.rotation*CX},set:function(t){this.transform.rotation=t*MX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._zIndex},set:function(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"worldVisible",{get:function(){var t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},set:function(t){if(this._mask!==t){if(this._mask){var i=this._mask.isMaskData?this._mask.maskObject:this._mask;i&&(i._maskRefCount--,i._maskRefCount===0&&(i.renderable=!0,i.isMask=!1))}if(this._mask=t,this._mask){var i=this._mask.isMaskData?this._mask.maskObject:this._mask;i&&(i._maskRefCount===0&&(i.renderable=!1,i.isMask=!0),i._maskRefCount++)}}},enumerable:!1,configurable:!0}),e}(c0),V$=function(s){bw(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.sortDirty=null,t}return e}(_i);_i.prototype.displayObjectUpdateTransform=_i.prototype.updateTransform;function j$(s,e){return s.zIndex===e.zIndex?s._lastSortedIndex-e._lastSortedIndex:s.zIndex-e.zIndex}var Va=function(s){bw(e,s);function e(){var t=s.call(this)||this;return t.children=[],t.sortableChildren=de.SORTABLE_CHILDREN,t.sortDirty=!1,t}return e.prototype.onChildrenChange=function(t){},e.prototype.addChild=function(){for(var t=arguments,i=[],n=0;n<arguments.length;n++)i[n]=t[n];if(i.length>1)for(var r=0;r<i.length;r++)this.addChild(i[r]);else{var a=i[0];a.parent&&a.parent.removeChild(a),a.parent=this,this.sortDirty=!0,a.transform._parentID=-1,this.children.push(a),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",a,this,this.children.length-1),a.emit("added",this)}return i[0]},e.prototype.addChildAt=function(t,i){if(i<0||i>this.children.length)throw new Error(t+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(i,0,t),this._boundsID++,this.onChildrenChange(i),t.emit("added",this),this.emit("childAdded",t,this,i),t},e.prototype.swapChildren=function(t,i){if(t!==i){var n=this.getChildIndex(t),r=this.getChildIndex(i);this.children[n]=i,this.children[r]=t,this.onChildrenChange(n<r?n:r)}},e.prototype.getChildIndex=function(t){var i=this.children.indexOf(t);if(i===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return i},e.prototype.setChildIndex=function(t,i){if(i<0||i>=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(t);jp(this.children,n,1),this.children.splice(i,0,t),this.onChildrenChange(i)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(){for(var t=arguments,i=[],n=0;n<arguments.length;n++)i[n]=t[n];if(i.length>1)for(var r=0;r<i.length;r++)this.removeChild(i[r]);else{var a=i[0],o=this.children.indexOf(a);if(o===-1)return null;a.parent=null,a.transform._parentID=-1,jp(this.children,o,1),this._boundsID++,this.onChildrenChange(o),a.emit("removed",this),this.emit("childRemoved",a,this,o)}return i[0]},e.prototype.removeChildAt=function(t){var i=this.getChildAt(t);return i.parent=null,i.transform._parentID=-1,jp(this.children,t,1),this._boundsID++,this.onChildrenChange(t),i.emit("removed",this),this.emit("childRemoved",i,this,t),i},e.prototype.removeChildren=function(t,i){t===void 0&&(t=0),i===void 0&&(i=this.children.length);var n=t,r=i,a=r-n,o;if(a>0&&a<=r){o=this.children.splice(n,a);for(var l=0;l<o.length;++l)o[l].parent=null,o[l].transform&&(o[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(t);for(var l=0;l<o.length;++l)o[l].emit("removed",this),this.emit("childRemoved",o[l],this,l);return o}else if(a===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},e.prototype.sortChildren=function(){for(var t=!1,i=0,n=this.children.length;i<n;++i){var r=this.children[i];r._lastSortedIndex=i,!t&&r.zIndex!==0&&(t=!0)}t&&this.children.length>1&&this.children.sort(j$),this.sortDirty=!1},e.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,i=this.children.length;t<i;++t){var n=this.children[t];n.visible&&n.updateTransform()}},e.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var t=0;t<this.children.length;t++){var i=this.children[t];if(!(!i.visible||!i.renderable))if(i.calculateBounds(),i._mask){var n=i._mask.isMaskData?i._mask.maskObject:i._mask;n?(n.calculateBounds(),this._bounds.addBoundsMask(i._bounds,n._bounds)):this._bounds.addBounds(i._bounds)}else i.filterArea?this._bounds.addBoundsArea(i._bounds,i.filterArea):this._bounds.addBounds(i._bounds)}this._bounds.updateID=this._boundsID},e.prototype.getLocalBounds=function(t,i){i===void 0&&(i=!1);var n=s.prototype.getLocalBounds.call(this,t);if(!i)for(var r=0,a=this.children.length;r<a;++r){var o=this.children[r];o.visible&&o.updateTransform()}return n},e.prototype._calculateBounds=function(){},e.prototype._renderWithCulling=function(t){var i=t.renderTexture.sourceFrame;if(i.width>0&&i.height>0){var n,r;if(this.cullArea?(n=this.cullArea,r=this.worldTransform):this._render!==e.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,r))this._render(t);else if(this.cullArea)return;for(var a=0,o=this.children.length;a<o;++a){var l=this.children[a],u=l.cullable;l.cullable=u||!this.cullArea,l.render(t),l.cullable=u}}},e.prototype.render=function(t){if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(t);else if(this.cullable)this._renderWithCulling(t);else{this._render(t);for(var i=0,n=this.children.length;i<n;++i)this.children[i].render(t)}},e.prototype.renderAdvanced=function(t){var i=this.filters,n=this._mask;if(i){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var r=0;r<i.length;r++)i[r].enabled&&this._enabledFilters.push(i[r])}var a=i&&this._enabledFilters&&this._enabledFilters.length||n&&(!n.isMaskData||n.enabled&&(n.autoDetect||n.type!==ci.NONE));if(a&&t.batch.flush(),i&&this._enabledFilters&&this._enabledFilters.length&&t.filter.push(this,this._enabledFilters),n&&t.mask.push(this,this._mask),this.cullable)this._renderWithCulling(t);else{this._render(t);for(var r=0,o=this.children.length;r<o;++r)this.children[r].render(t)}a&&t.batch.flush(),n&&t.mask.pop(this),i&&this._enabledFilters&&this._enabledFilters.length&&t.filter.pop()},e.prototype._render=function(t){},e.prototype.destroy=function(t){s.prototype.destroy.call(this),this.sortDirty=!1;var i=typeof t=="boolean"?t:t&&t.children,n=this.removeChildren(0,this.children.length);if(i)for(var r=0;r<n.length;++r)n[r].destroy(t)},Object.defineProperty(e.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(t){var i=this.getLocalBounds().width;i!==0?this.scale.x=t/i:this.scale.x=1,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(t){var i=this.getLocalBounds().height;i!==0?this.scale.y=t/i:this.scale.y=1,this._height=t},enumerable:!1,configurable:!0}),e}(_i);Va.prototype.containerUpdateTransform=Va.prototype.updateTransform;/*!
* @pixi/app - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/app is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var z$=function(){function s(){}return s.init=function(e){var t=this;Object.defineProperty(this,"resizeTo",{set:function(i){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=i,i&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){t._resizeTo&&(t.cancelResize(),t._resizeId=requestAnimationFrame(function(){return t.resize()}))},this.cancelResize=function(){t._resizeId&&(cancelAnimationFrame(t._resizeId),t._resizeId=null)},this.resize=function(){if(t._resizeTo){t.cancelResize();var i,n;if(t._resizeTo===globalThis.window)i=globalThis.innerWidth,n=globalThis.innerHeight;else{var r=t._resizeTo,a=r.clientWidth,o=r.clientHeight;i=a,n=o}t.renderer.resize(i,n)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null},s.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},s.extension=Ni.Application,s}(),l4=function(){function s(e){var t=this;this.stage=new Va,e=Object.assign({forceCanvas:!1},e),this.renderer=iq(e),s._plugins.forEach(function(i){i.init.call(t,e)})}return s.registerPlugin=function(e){Ur("6.5.0","Application.registerPlugin() is deprecated, use extensions.add()"),Xa.add({type:Ni.Application,ref:e})},s.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(s.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),s.prototype.destroy=function(e,t){var i=this,n=s._plugins.slice(0);n.reverse(),n.forEach(function(r){r.destroy.call(i)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null},s._plugins=[],s}();Xa.handleByList(Ni.Application,l4._plugins);Xa.add(z$);const Ad=class Ad extends l4{constructor(e){super(e),Ad.INSTANCE||(Ad.INSTANCE=this)}static get instance(){return this.INSTANCE||null}};Ad.INSTANCE=null;let oi=Ad;const ga=()=>{var s;return((s=oi.instance)==null?void 0:s.ticker)||null},H$=()=>{var s;return((s=ga())==null?void 0:s.FPS)||0},Pe=()=>{var s;return((s=ga())==null?void 0:s.lastTime)||0};/*!
* @pixi/filter-alpha - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/filter-alpha is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var nR=function(s,e){return nR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},nR(s,e)};function W$(s,e){nR(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Y$=`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float uAlpha;
void main(void)
{
gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
}
`,rR=function(s){W$(e,s);function e(t){t===void 0&&(t=1);var i=s.call(this,rq,Y$,{uAlpha:1})||this;return i.alpha=t,i}return Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0}),e}(pf);class WCe extends rR{}class X$ extends pt{}class Qn extends Va{}class K$ extends pf{}class Bm extends Q{}class YCe extends ve{}/*!
* @pixi/sprite - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/sprite is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var aR=function(s,e){return aR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},aR(s,e)};function q$(s,e){aR(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var kf=new Q,$$=new Uint16Array([0,1,2,0,2,3]),mt=function(s){q$(e,s);function e(t){var i=s.call(this)||this;return i._anchor=new Oh(i._onAnchorUpdate,i,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),i._texture=null,i._width=0,i._height=0,i._tint=null,i._tintRGB=null,i.tint=16777215,i.blendMode=ge.NORMAL,i._cachedTint=16777215,i.uvs=null,i.texture=t||Ne.EMPTY,i.vertexData=new Float32Array(8),i.vertexTrimmedData=null,i._transformID=-1,i._textureID=-1,i._transformTrimmedID=-1,i._textureTrimmedID=-1,i.indices=$$,i.pluginName="batch",i.isSprite=!0,i._roundPixels=de.ROUND_PIXELS,i}return e.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Ah(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Ah(this.scale.y)*this._height/this._texture.orig.height)},e.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},e.prototype.calculateVertices=function(){var t=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===t._updateID)){this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;var i=this.transform.worldTransform,n=i.a,r=i.b,a=i.c,o=i.d,l=i.tx,u=i.ty,c=this.vertexData,h=t.trim,f=t.orig,d=this._anchor,_=0,g=0,p=0,m=0;if(h?(g=h.x-d._x*f.width,_=g+h.width,m=h.y-d._y*f.height,p=m+h.height):(g=-d._x*f.width,_=g+f.width,m=-d._y*f.height,p=m+f.height),c[0]=n*g+a*m+l,c[1]=o*m+r*g+u,c[2]=n*_+a*m+l,c[3]=o*m+r*_+u,c[4]=n*_+a*p+l,c[5]=o*p+r*_+u,c[6]=n*g+a*p+l,c[7]=o*p+r*g+u,this._roundPixels)for(var v=de.RESOLUTION,E=0;E<c.length;++E)c[E]=Math.round((c[E]*v|0)/v)}},e.prototype.calculateTrimmedVertices=function(){if(!this.vertexTrimmedData)this.vertexTrimmedData=new Float32Array(8);else if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return;this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var t=this._texture,i=this.vertexTrimmedData,n=t.orig,r=this._anchor,a=this.transform.worldTransform,o=a.a,l=a.b,u=a.c,c=a.d,h=a.tx,f=a.ty,d=-r._x*n.width,_=d+n.width,g=-r._y*n.height,p=g+n.height;i[0]=o*d+u*g+h,i[1]=c*g+l*d+f,i[2]=o*_+u*g+h,i[3]=c*g+l*_+f,i[4]=o*_+u*p+h,i[5]=c*p+l*_+f,i[6]=o*d+u*p+h,i[7]=c*p+l*d+f},e.prototype._render=function(t){this.calculateVertices(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},e.prototype._calculateBounds=function(){var t=this._texture.trim,i=this._texture.orig;!t||t.width===i.width&&t.height===i.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},e.prototype.getLocalBounds=function(t){return this.children.length===0?(this._localBounds||(this._localBounds=new Fm),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),t||(this._localBoundsRect||(this._localBoundsRect=new ve),t=this._localBoundsRect),this._localBounds.getRectangle(t)):s.prototype.getLocalBounds.call(this,t)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,kf);var i=this._texture.orig.width,n=this._texture.orig.height,r=-i*this.anchor.x,a=0;return kf.x>=r&&kf.x<r+i&&(a=-n*this.anchor.y,kf.y>=a&&kf.y<a+n)},e.prototype.destroy=function(t){s.prototype.destroy.call(this,t),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null;var i=typeof t=="boolean"?t:t&&t.texture;if(i){var n=typeof t=="boolean"?t:t&&t.baseTexture;this._texture.destroy(!!n)}this._texture=null},e.from=function(t,i){var n=t instanceof Ne?t:Ne.from(t,i);return new e(n)},Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){var i=Ah(this.scale.x)||1;this.scale.x=i*t/this._texture.orig.width,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){var i=Ah(this.scale.y)||1;this.scale.y=i*t/this._texture.orig.height,this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this._anchor},set:function(t){this._anchor.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,this._tintRGB=(t>>16)+(t&65280)+((t&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||Ne.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),e}(Va);class kt extends mt{}class u4 extends Ne{}const Q$=`
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,Z$=`
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform sampler2D lut;
uniform int channel;
void main(void) {
vec4 currentColor = texture2D(uSampler, vTextureCoord);
vec4 adjusted = currentColor;
if(currentColor.a > 0.0)
{
if(channel == 0)
{
adjusted = texture2D(lut, vec2((currentColor.r * 255.0 + 0.5) / 256.0, 0.5));
} else if(channel == 1) {
adjusted = texture2D(lut, vec2((currentColor.g * 255.0 + 0.5) / 256.0, 0.5));
} else if(channel == 2) {
adjusted = texture2D(lut, vec2((currentColor.b * 255.0 + 0.5) / 256.0, 0.5));
} else if(channel == 3) {
adjusted = texture2D(lut, vec2((currentColor.a * 255.0 + 0.5) / 256.0, 0.5));
}
}
gl_FragColor = vec4(adjusted.r, adjusted.g, adjusted.b, currentColor.a);
}`,Vn=class Vn extends K${constructor(e,t=Vn.CHANNEL_RED){super(Q$,Z$),this._channel=t;let i=[];i=this.getLutForPalette(e),this._lut=X$.fromBuffer(Uint8Array.from(i),i.length/4,1,{mipmap:0,scaleMode:0}),this.uniforms.lut=this._lut,this.uniforms.channel=this._channel}getLutForPalette(e){const t=[];for(let i=0;i<e.length;i++)t[i*4+Vn.CHANNEL_RED]=e[i]>>16&255,t[i*4+Vn.CHANNEL_GREEN]=e[i]>>8&255,t[i*4+Vn.CHANNEL_BLUE]=e[i]&255,t[i*4+Vn.CHANNEL_ALPHA]=e[i]>>24&255;return t}get lut(){return this._lut}get channel(){return this._channel}};Vn.CHANNEL_RED=0,Vn.CHANNEL_GREEN=1,Vn.CHANNEL_BLUE=2,Vn.CHANNEL_ALPHA=3;let Gm=Vn;const h1=class h1{constructor(){this.RENDER_TEXTURE_POOL=new Map,this.RENDER_TEXTURE_CACHE=[]}clearCache(){this.RENDER_TEXTURE_POOL.forEach(e=>e==null?void 0:e.destroy(!0)),this.RENDER_TEXTURE_POOL.clear(),this.RENDER_TEXTURE_CACHE=[]}clearRenderTexture(e){return e?this.writeToRenderTexture(new mt(Ne.EMPTY),e):null}getTextureIdentifier(e,t,i){return`${i??h1.DEFAULT_PLANE_ID}:${e}:${t}`}createRenderTexture(e,t,i=null){if(e<0||t<0)return null;if(!i){const r=Pi.create({width:e,height:t});return this.RENDER_TEXTURE_CACHE.push(r),r}i=this.getTextureIdentifier(e,t,i);let n=this.RENDER_TEXTURE_POOL.get(i);return n||(n=Pi.create({width:e,height:t}),this.RENDER_TEXTURE_CACHE.push(n),this.RENDER_TEXTURE_POOL.set(i,n)),n}createAndFillRenderTexture(e,t,i=null,n=16777215){if(e<0||t<0)return null;const r=this.createRenderTexture(e,t,i);return this.clearAndFillRenderTexture(r,n)}createAndWriteRenderTexture(e,t,i,n=null,r=null){if(e<0||t<0)return null;const a=this.createRenderTexture(e,t,n);return this.writeToRenderTexture(i,a,!0,r)}clearAndFillRenderTexture(e,t=16777215){if(!e)return null;const i=new mt(Ne.WHITE);return i.tint=t,i.width=e.width,i.height=e.height,this.writeToRenderTexture(i,e)}writeToRenderTexture(e,t,i=!0,n=null){return!e||!t?null:(this.getRenderer().render(e,{renderTexture:t,clear:i,transform:n}),t)}getPixels(e,t=null){return this.getExtractor().pixels(e)}getRenderer(){return oi.instance.renderer}getExtractor(){return this.getRenderer().plugins.extract}};h1.DEFAULT_PLANE_ID="DEFAULT";let oR=h1;class St{static generateTexture(e,t=null,i=null,n=1){return e?(i===null&&(i=de.SCALE_MODE),this.getRenderer().generateTexture(e,{scaleMode:i,resolution:n,region:t})):null}static generateTextureFromImage(e){return e?Ne.from(e):null}static generateImage(e){return e?this.getExtractor().image(e):null}static generateImageUrl(e){return e?this.getExtractor().base64(e):null}static generateCanvas(e){return e?this.getExtractor().canvas(e):null}static clearRenderTexture(e){return e?this.writeToRenderTexture(new mt(Ne.EMPTY),e):null}static createRenderTexture(e,t){return e<0||t<0?null:Pi.create({width:e,height:t})}static createAndFillRenderTexture(e,t,i=16777215){if(e<0||t<0)return null;const n=this.createRenderTexture(e,t);return this.clearAndFillRenderTexture(n,i)}static createAndWriteRenderTexture(e,t,i,n=null){if(e<0||t<0)return null;const r=this.createRenderTexture(e,t);return this.writeToRenderTexture(i,r,!0,n)}static clearAndFillRenderTexture(e,t=16777215){if(!e)return null;const i=new mt(Ne.WHITE);return i.tint=t,i.width=e.width,i.height=e.height,this.writeToRenderTexture(i,e)}static writeToRenderTexture(e,t,i=!0,n=null){return!e||!t?null:(this.getRenderer().render(e,{renderTexture:t,clear:i,transform:n}),t)}static getPixels(e,t=null){return this.getExtractor().pixels(e)}static getRenderer(){return oi.instance.renderer}static getExtractor(){return this.getRenderer().plugins.extract}}const Vl=class Vl{static createAsset(e,t,i,n,r,a=!1,o=!1,l=!1){const u=Vl.GRAPHIC_POOL.length?Vl.GRAPHIC_POOL.pop():new Vl;return u._name=e,u._source=t||null,i?(u._texture=i,u._initialized=!1):(u._texture=null,u._initialized=!0),u._usesPalette=l,u._x=n,u._y=r,u._flipH=a,u._flipV=o,u._rectangle=null,u}recycle(){this._texture=null,Vl.GRAPHIC_POOL.push(this)}initialize(){this._initialized||!this._texture||(this._width=this._texture.width,this._height=this._texture.height,this._initialized=!0)}getImageUrl(){return St.generateImageUrl(new mt(this._texture))}get name(){return this._name}get source(){return this._source}get texture(){return this._texture}get usesPalette(){return this._usesPalette}get x(){return this._x}get y(){return this._y}get width(){return this.initialize(),this._width}get height(){return this.initialize(),this._height}get offsetX(){return this._flipH?-this._x:this._x}get offsetY(){return this._flipV?-this._y:this._y}get flipH(){return this._flipH}get flipV(){return this._flipV}get rectangle(){return this._rectangle||(this._rectangle=new ve(0,0,this.width,this.height)),this._rectangle}};Vl.GRAPHIC_POOL=[];let lR=Vl;class J${constructor(e,t,i){for(this._palette=e;this._palette.length<256;)this._palette.push([0,0,0]);this._primaryColor=t,this._secondaryColor=i}dispose(){}applyPalette(e){var a,o;const t=St.createAndWriteRenderTexture(e.width,e.height,new mt(e)),i=St.getPixels(t);for(let l=0;l<i.length;l+=4){let u=this._palette[i[l+1]];u===void 0&&(u=[0,0,0]),i[l]=u[0],i[l+1]=u[1],i[l+2]=u[2]}const n=(a=t.baseTexture._glTextures[1])==null?void 0:a.texture,r=(o=oi.instance.renderer)==null?void 0:o.gl;return r.bindTexture(r.TEXTURE_2D,n),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,t.width,t.height,0,r.RGBA,r.UNSIGNED_BYTE,i),r.bindTexture(r.TEXTURE_2D,null),t}get primaryColor(){return this._primaryColor}get secondaryColor(){return this._secondaryColor}}const Od=class Od{constructor(e,t){if(!e)throw new Error("invalid_collection");this._name=e.name,this._baseTexture=t&&t.baseTexture||null,this._data=e,this._textures=new Map,this._assets=new Map,this._palettes=new Map,this._paletteAssetNames=[],t&&this.addLibraryAsset(t.textures),this.define(e)}static removeFileExtension(e){return e.substring(0,e.lastIndexOf("."))||e}dispose(){if(this._palettes){for(const e of this._palettes.values())e.dispose();this._palettes.clear()}if(this._paletteAssetNames&&(this.disposePaletteAssets(),this._paletteAssetNames=null),this._assets){for(const e of this._assets.values())e.recycle();this._assets.clear()}}addReference(){this._referenceCount++,this._referenceTimestamp=Pe()}removeReference(){this._referenceCount--,this._referenceCount<=0&&(this._referenceCount=0,this._referenceTimestamp=Pe(),this.disposePaletteAssets(!1))}define(e){const t=e.assets,i=e.palettes;t&&this.defineAssets(t),i&&this.definePalettes(i)}defineAssets(e){if(e)for(const t in e){const i=e[t];if(!i)continue;const n=-i.x||0,r=-i.y||0;let a=!1;const o=!1,l=i.usesPalette||!1;let u=i.source||"";i.flipH&&u.length&&(a=!0),u.length||(u=t);const c=this.getLibraryAsset(u);if(!c)continue;let h=this.createAsset(t,u,c,a,o,n,r,l);if(!h){const f=this.getAsset(t);f&&f.name!==f.source&&(h=this.replaceAsset(t,u,c,a,o,n,r,l))}}}definePalettes(e){if(e)for(const t in e){const i=e[t];if(!i)continue;const n=i.id.toString();if(this._palettes.get(n))continue;let r=16777215,a=16777215,o=i.color1;o&&o.length>0&&(r=parseInt(o,16)),o=i.color2,o&&o.length>0&&(a=parseInt(o,16)),this._palettes.set(n,new J$(i.rgb,r,a))}}createAsset(e,t,i,n,r,a,o,l){if(this._assets.get(e))return!1;const u=lR.createAsset(e,t,i,a,o,n,r,l);return this._assets.set(e,u),!0}replaceAsset(e,t,i,n,r,a,o,l){const u=this._assets.get(e);return u&&(this._assets.delete(e),u.recycle()),this.createAsset(e,t,i,n,r,a,o,l)}getAsset(e){if(!e)return null;const t=this._assets.get(e);return t||null}getAssetWithPalette(e,t){const i=e+"@"+t;let n=this.getAsset(i);if(!n){if(n=this.getAsset(e),!n||!n.usesPalette)return n;const r=this.getPalette(t);if(r){const a=r.applyPalette(n.texture);a&&(this._paletteAssetNames.push(i),this.createAsset(i,n.source+"@"+t,a,n.flipH,n.flipV,n.x,n.y,!1),n=this.getAsset(i))}}return n}getTexture(e){return this._textures.get(e)}getPaletteNames(){return Array.from(this._palettes.keys())}getPaletteColors(e){const t=this.getPalette(e);return t?[t.primaryColor,t.secondaryColor]:null}getPalette(e){if(!e)return null;const t=this._palettes.get(e);return t||null}addAsset(e,t,i,n=0,r=0,a=!1,o=!1){if(!e||!t)return!1;const l=this.getLibraryAsset(e);return l?i?(l.baseTexture=t.baseTexture,l.frame=t.frame,l.trim=t.trim,l.updateUvs(),!0):!1:(this._textures.set(e,t),this.createAsset(e,e,t,a,o,n,r,!1))}disposeAsset(e){const t=this._assets.get(e);if(!t)return;this._assets.delete(e);const i=this.getLibraryAsset(t.source);i&&(this._textures.delete(t.source),i.destroy(!0)),t.recycle()}getLibraryAsset(e){if(!e)return null;e=this._name+"_"+e;const t=this._textures.get(e);return t||null}addLibraryAsset(e){if(e)for(const t in e){const i=e[t];i&&this._textures.set(Od.removeFileExtension(t),i)}}disposePaletteAssets(e=!0){if(this._paletteAssetNames&&(e||this._paletteAssetNames.length>Od.PALETTE_ASSET_DISPOSE_THRESHOLD)){for(const t of this._paletteAssetNames)this.disposeAsset(t);this._paletteAssetNames=[]}}get referenceCount(){return this._referenceCount}get referenceTimestamp(){return this._referenceTimestamp}get name(){return this._name}get baseTexture(){return this._baseTexture}get data(){return this._data}get textures(){return this._textures}get assets(){return this._assets}};Od.PALETTE_ASSET_DISPOSE_THRESHOLD=10;let Vm=Od;const c1=class c1{constructor(){this._textures=new Map,this._collections=new Map}getTexture(e){if(!e)return null;const t=this._textures.get(e);return t||null}setTexture(e,t){!e||!t||this._textures.set(e,t)}getAsset(e){if(!e)return null;for(const t of this._collections.values()){if(!t)continue;const i=t.getAsset(e);if(i)return i}return null}getCollection(e){if(!e)return null;const t=this._collections.get(e);return t||null}createCollection(e,t){if(!e)return null;const i=new Vm(e,t);if(i){for(const[n,r]of i.textures.entries())this.setTexture(n,r);this._collections.set(i.name,i)}return i}async downloadAsset(e){const t=await fetch(e);if(t.status!==200)return!1;let i="application/octet-stream";switch(t.headers.has("Content-Type")&&(i=t.headers.get("Content-Type")),i){case"application/octet-stream":{const n=await t.arrayBuffer(),r=new Um(n);await this.processAsset(r.baseTexture,r.jsonFile);break}case"image/png":case"image/jpeg":case"image/gif":{const n=await t.arrayBuffer(),r=HU(n),a=pt.from(`data:${i};base64,${r}`),o=async()=>{const l=new Ne(a);this.setTexture(e,l)};a.valid?await o():await new Promise((l,u)=>{a.once("update",async()=>(await o(),l()))});break}}return!0}async downloadAssets(e){if(!e||!e.length)return Promise.resolve(!0);try{return await Promise.all(e.map(async t=>await this.downloadAsset(t))),Promise.resolve(!0)}catch(t){return le.error(t),Promise.resolve(!1)}}async processAsset(e,t){const i=t.spritesheet;if(!e||!i||!Object.keys(i).length){this.createCollection(t,null);return}const n=async()=>{const r=new Sw(e,i);await r.parse(),this.createCollection(t,r)};e.valid?await n():await new Promise((r,a)=>{e.once("update",async()=>(await n(),r()))})}get collections(){return this._collections}};c1._INSTANCE=new c1;let uR=c1;const wn=()=>uR._INSTANCE;class eQ{constructor(e,t,i){this.name=e,this.textures=t,this.durations=i}}const f1=class f1{};f1.UNKNOWN=0,f1.BROWSER=1;let hR=f1;const wd=class wd{};wd.UNKNOWN=0,wd.FLASH=1,wd.HTML5=2;let cR=wd;const Yh=class Yh{};Yh.CONNECTION_OPENED="open",Yh.CONNECTION_CLOSED="close",Yh.CONNECTION_ERROR="error",Yh.CONNECTION_MESSAGE="message";let hr=Yh;const Cd=class Cd{static parseConfiguration(e,t=!1){if(!e)return!1;try{const i=new RegExp(/\${(.*?)}/g);for(const n in e){let r=e[n];typeof r=="string"&&(r=this.interpolate(r,i)),this._definitions.has(n)?t&&this.setValue(n,r):this.setValue(n,r)}return!0}catch(i){return le.error(i.stack),!1}}static interpolate(e,t=null){t||(t=new RegExp(/\${(.*?)}/g));const i=e.match(t);if(i&&i.length)for(const n of i){const r=this._definitions.get(this.removeInterpolateKey(n));r&&(e=e.replace(n,r))}return e}static removeInterpolateKey(e){return e.replace("${","").replace("}","")}static getValue(e,t=null){let i=this._definitions.get(e);if(i===void 0){if(this._missingKeys.indexOf(e)>=0)return t;this._missingKeys.push(e),le.warn(`Missing configuration key: ${e}`),i=t}return i}static setValue(e,t){const i=e.split(".");let n=this._config;for(let r=0;r<i.length;r++){const a=i[r].toString();if(r!==i.length-1){n[a]||(n[a]={}),n=n[a];continue}n[a]=t}this._definitions.set(e,t)}static get definitions(){return this._definitions}};Cd._definitions=new Map,Cd._config={},Cd._missingKeys=[];let Te=Cd;const ee=class ee{static getExpressionTimeout(e){switch(e=parseInt(e),e){case 1:return 5e3;case 2:return 1400;case 3:return 2e3;case 4:return 2e3;case 5:return 0;case 6:return 700;case 7:return 2e3;case 8:return 1500;case 9:return 1500;case 10:return 1500;default:return 0}}static getExpressionId(e){return ee.EXPRESSION_MAP.indexOf(e)}static getExpression(e){return e>ee.EXPRESSION_MAP.length?null:ee.EXPRESSION_MAP[e]}static getGestureId(e){return ee.GESTURE_MAP.indexOf(e)}static getGesture(e){return e>ee.GESTURE_MAP.length?null:ee.GESTURE_MAP[e]}static idToAvatarActionState(e){return e==="Lay"?"lay":e==="Float"?"float":e==="Swim"?"swim":e==="Sit"?"sit":e==="Respect"?"respect":e==="Wave"?"wave":e==="Idle"?"idle":e==="Dance"?"dance":e==="UseItem"?"usei":e==="CarryItem"?"cri":e==="Talk"?"talk":e==="Sleep"?"Sleep":e==="Move"?"mv":"std"}};ee.CARRY_OBJECT="cri",ee.DANCE="dance",ee.EFFECT="fx",ee.EXPRESSION="expression",ee.EXPRESSION_BLOW_A_KISS="blow",ee.EXPRESSION_CRY="cry",ee.EXPRESSION_IDLE="idle",ee.EXPRESSION_LAUGH="laugh",ee.EXPRESSION_RESPECT="respect",ee.EXPRESSION_RIDE_JUMP="ridejump",ee.EXPRESSION_SNOWBOARD_OLLIE="sbollie",ee.EXPRESSION_SNOWBORD_360="sb360",ee.EXPRESSION_WAVE="wave",ee.GESTURE="gest",ee.GESTURE_AGGRAVATED="agr",ee.GESTURE_SAD="sad",ee.GESTURE_SMILE="sml",ee.GESTURE_SURPRISED="srp",ee.GUIDE_STATUS="guide",ee.MUTED="muted",ee.PET_GESTURE_BLINK="eyb",ee.PET_GESTURE_CRAZY="crz",ee.PET_GESTURE_JOY="joy",ee.PET_GESTURE_MISERABLE="mis",ee.PET_GESTURE_PUZZLED="puz",ee.PET_GESTURE_TONGUE="tng",ee.PLAYING_GAME="playing_game",ee.POSTURE="posture",ee.POSTURE_FLOAT="float",ee.POSTURE_LAY="lay",ee.POSTURE_SIT="sit",ee.POSTURE_STAND="std",ee.POSTURE_SWIM="swim",ee.POSTURE_WALK="mv",ee.SIGN="sign",ee.SLEEP="sleep",ee.SNOWWAR_DIE_BACK="swdieback",ee.SNOWWAR_DIE_FRONT="swdiefront",ee.SNOWWAR_PICK="swpick",ee.SNOWWAR_RUN="swrun",ee.SNOWWAR_THROW="swthrow",ee.TALK="talk",ee.BLINK="blink",ee.TYPING="typing",ee.USE_OBJECT="usei",ee.VOTE="vote",ee.GESTURE_MAP=["",ee.GESTURE_SMILE,ee.GESTURE_AGGRAVATED,ee.GESTURE_SURPRISED,ee.GESTURE_SAD,ee.PET_GESTURE_JOY,ee.PET_GESTURE_CRAZY,ee.PET_GESTURE_TONGUE,ee.PET_GESTURE_BLINK,ee.PET_GESTURE_MISERABLE,ee.PET_GESTURE_PUZZLED],ee.EXPRESSION_MAP=["",ee.EXPRESSION_WAVE,ee.EXPRESSION_BLOW_A_KISS,ee.EXPRESSION_LAUGH,ee.EXPRESSION_CRY,ee.EXPRESSION_IDLE,ee.DANCE,ee.EXPRESSION_RESPECT,ee.EXPRESSION_SNOWBOARD_OLLIE,ee.EXPRESSION_SNOWBORD_360,ee.EXPRESSION_RIDE_JUMP];let oe=ee;const Xh=class Xh{};Xh.DIRECTION_TO_ANGLE=[45,90,135,180,225,270,315,0],Xh.DIRECTION_IS_FLIPPED=[!1,!1,!1,!1,!0,!0,!0,!1],Xh.MIN_DIRECTION=0,Xh.MAX_DIRECTION=7;let Mo=Xh;const ea=class ea{};ea.GENERIC="hd",ea.HEAD="head",ea.TORSO="torso",ea.LEGS="legs",ea.HOTLOOKS="hotlooks",ea.WARDROBE="wardrobe",ea.EFFECTS="effects";let IP=ea;const Kh=class Kh{};Kh.OWN_AVATAR_EDITOR=0,Kh.FURNITURE_AVATAR_EDITOR=1,Kh.BOT_EDITOR=2,Kh.DEV_TOOL_EDITOR=3;let RP=Kh;const Fe=class Fe{};Fe.BODY="bd",Fe.SHOES="sh",Fe.LEGS="lg",Fe.CHEST="ch",Fe.WAIST_ACCESSORY="wa",Fe.CHEST_ACCESSORY="ca",Fe.HEAD="hd",Fe.HAIR="hr",Fe.FACE_ACCESSORY="fa",Fe.EYE_ACCESSORY="ea",Fe.HEAD_ACCESSORY="ha",Fe.HEAD_ACCESSORY_EXTRA="he",Fe.COAT_CHEST="cc",Fe.CHEST_PRINT="cp",Fe.LEFT_HAND_ITEM="li",Fe.LEFT_HAND="lh",Fe.LEFT_SLEEVE="ls",Fe.RIGHT_HAND="rh",Fe.RIGHT_SLEEVE="rs",Fe.FACE="fc",Fe.EYES="ey",Fe.HAIR_BIG="hrb",Fe.RIGHT_HAND_ITEM="ri",Fe.LEFT_COAT_SLEEVE="lc",Fe.RIGHT_COAT_SLEEVE="rc",Fe.FIGURE_SETS=[Fe.SHOES,Fe.LEGS,Fe.CHEST,Fe.WAIST_ACCESSORY,Fe.CHEST_ACCESSORY,Fe.HEAD,Fe.HAIR,Fe.FACE_ACCESSORY,Fe.EYE_ACCESSORY,Fe.HEAD_ACCESSORY,Fe.HEAD_ACCESSORY_EXTRA,Fe.COAT_CHEST,Fe.CHEST_PRINT];let Es=Fe;const Md=class Md{};Md.NONE=0,Md.GUIDE=1,Md.REQUESTER=2;let Mr=Md;const d1=class d1{};d1.LARGE="h",d1.SMALL="sh";let kr=d1;const Nd=class Nd{};Nd.FULL="full",Nd.HEAD="head",Nd.BODY="body";let _s=Nd;const jl=class jl{};jl.VERTICAL="vertical",jl.SITTING="sitting",jl.HORIZONTAL="horizontal",jl.SWIM="swim",jl.SNOWWARS_HORIZONTAL="swhorizontal";let io=jl;const qh=class qh{};qh.TOOL="tool",qh.COMPONENT="component",qh.ONLINE_TOOL="online_tool",qh.LOCAL_ONLY="local_only";let SP=qh;const Xe=class Xe{};Xe.DOG=0,Xe.CAT=1,Xe.CROCODILE=2,Xe.TERRIER=3,Xe.BEAR=4,Xe.PIG=5,Xe.LION=6,Xe.RHINO=7,Xe.SPIDER=8,Xe.TURTLE=9,Xe.CHICKEN=10,Xe.FROG=11,Xe.DRAGON=12,Xe.MONSTER=13,Xe.MONKEY=14,Xe.HORSE=15,Xe.MONSTERPLANT=16,Xe.BUNNY=17,Xe.BUNNYEVIL=18,Xe.BUNNYDEPRESSED=19,Xe.BUNNYLOVE=20,Xe.PIGEONGOOD=21,Xe.PIGEONEVIL=22,Xe.DEMONMONKEY=23,Xe.BABYBEAR=24,Xe.BABYTERRIER=25,Xe.GNOME=26,Xe.LEPRECHAUN=27,Xe.KITTENBABY=28,Xe.PUPPYBABY=29,Xe.PIGLETNBABY=30,Xe.HALOOMPA=31,Xe.FOOLS=32,Xe.PTEROSAUR=33,Xe.VELOCIRAPTOR=34;let U_=Xe;const oo=class oo{};oo.NONE=0,oo.HEART=1,oo.SMILE=2,oo.BOBBA=3,oo.RELATIONSHIP_TYPES=[0,1,2,3],oo.RELATIONSHIP_NAMES=["None","Heart","Smile","Bobba"];let fR=oo;const ta=class ta{};ta.HOTEL_VIEW="hotel_view",ta.HOME_ROOM="home_room",ta.NAVIGATOR="navigator",ta.CATALOG="catalog",ta.INVENTORY="inventory",ta.ME_MENU="me_menu",ta.FRIEND_LIST="friendlist";let jm=ta;const zl=class zl{};zl.LOVE_LOCK=0,zl.CARVE_A_TREE=1,zl.FRIENDS_PORTRAIT=2,zl.WILD_WEST_WANTED=3,zl.HABBOWEEN=4;let zm=zl;const _1=class _1{};_1.CATALOG="catalog",_1.INVENTORY="inventory";let dR=_1;const F=class F{};F.OBJECT_ROOM_ID="object_room_id",F.OBJECT_ACCURATE_Z_VALUE="object_accurate_z_value",F.TILE_CURSOR_HEIGHT="tile_cursor_height",F.FIGURE="figure",F.GENDER="gender",F.OWN_USER="own_user",F.FIGURE_CAN_STAND_UP="figure_can_stand_up",F.FIGURE_VERTICAL_OFFSET="figure_vertical_offset",F.FIGURE_TALK="figure_talk",F.FIGURE_DANCE="figure_dance",F.FIGURE_SLEEP="figure_sleep",F.FIGURE_BLINK="figure_blink",F.FIGURE_EFFECT="figure_effect",F.FIGURE_CARRY_OBJECT="figure_carry_object",F.FIGURE_USE_OBJECT="figure_use_object",F.FIGURE_GESTURE="figure_gesture",F.FIGURE_POSTURE="figure_posture",F.FIGURE_POSTURE_PARAMETER="figure_posture_parameter",F.FIGURE_HIGHLIGHT_ENABLE="figure_highlight_enable",F.FIGURE_HIGHLIGHT="figure_highlight",F.FURNITURE_PURCHASER_NAME="furniture_purchaser_name",F.FURNITURE_PURCHASER_FIGURE="furniture_purchaser_figure",F.STD="std",F.FIGURE_SIGN="figure_sign",F.FIGURE_FLAT_CONTROL="figure_flat_control",F.FIGURE_IS_TYPING="figure_is_typing",F.FIGURE_IS_MUTED="figure_is_muted",F.FIGURE_GAINED_EXPERIENCE="figure_gained_experience",F.FIGURE_EXPERIENCE_TIMESTAMP="figure_experience_timestamp",F.FIGURE_NUMBER_VALUE="figure_number_value",F.FIGURE_IS_PLAYING_GAME="figure_is_playing_game",F.FIGURE_GUIDE_STATUS="figure_guide_status",F.FIGURE_EXPRESSION="figure_expression",F.HEAD_DIRECTION="head_direction",F.FURNITURE_CUSTOM_VARIABLES="furniture_custom_variables",F.FURNITURE_AUTOMATIC_STATE_INDEX="furniture_automatic_state_index",F.FURNITURE_ALWAYS_STACKABLE="furniture_always_stackable",F.FURNITURE_DISABLE_PICKING_ANIMATION="furniture_disable_picking_animation",F.FURNITURE_DATA_FORMAT="furniture_data_format",F.FURNITURE_UNIQUE_SERIAL_NUMBER="furniture_unique_serial_number",F.FURNITURE_UNIQUE_EDITION_SIZE="furniture_unique_edition_size",F.FURNITURE_CRACKABLE_STATE="furniture_crackable_state",F.FURNITURE_CRACKABLE_HITS="furniture_crackable_hits",F.FURNITURE_CRACKABLE_TARGET="furniture_crackable_target",F.FURNITURE_CREDIT_VALUE="furniture_credit_value",F.FURNITURE_DATA="furniture_data",F.FURNITURE_ITEMDATA="furniture_itemdata",F.FURNITURE_COLOR="furniture_color",F.FURNITURE_LIFT_AMOUNT="furniure_lift_amount",F.FURNITURE_GUILD_CUSTOMIZED_GUILD_ID="furniture_guild_customized_guild_id",F.FURNITURE_GUILD_CUSTOMIZED_ASSET_NAME="furniture_guild_customized_asset_name",F.FURNITURE_GUILD_CUSTOMIZED_COLOR_1="furniture_guild_customized_color_1",F.FURNITURE_GUILD_CUSTOMIZED_COLOR_2="furniture_guild_customized_color_2",F.FURNITURE_STATE_UPDATE_TIME="furniture_state_update_time",F.FURNITURE_SELECTION_DISABLED="furniture_selection_disabled",F.FURNITURE_SIZE_X="furniture_size_x",F.FURNITURE_SIZE_Y="furniture_size_y",F.FURNITURE_SIZE_Z="furniture_size_z",F.FURNITURE_CENTER_X="furniture_center_x",F.FURNITURE_CENTER_Y="furniture_center_y",F.FURNITURE_CENTER_Z="furniture_center_z",F.FURNITURE_ALLOWED_DIRECTIONS="furniture_allowed_directions",F.FURNITURE_AD_URL="furniture_ad_url",F.FURNITURE_TYPE_ID="furniture_type_id",F.FURNITURE_EXTRAS="furniture_extras",F.FURNITURE_EXPIRY_TIME="furniture_expiry_time",F.FURNITURE_EXPIRTY_TIMESTAMP="furniture_expiry_timestamp",F.FURNITURE_REAL_ROOM_OBJECT="furniture_real_room_object",F.FURNITURE_IS_STICKIE="furniture_is_stickie",F.FURNITURE_BRANDING_IMAGE_STATUS="furniture_branding_image_status",F.FURNITURE_BRANDING_IMAGE_URL="furniture_branding_image_url",F.FURNITURE_BRANDING_URL="furniture_branding_url",F.FURNITURE_BRANDING_OFFSET_X="furniture_branding_offset_x",F.FURNITURE_BRANDING_OFFSET_Y="furniture_branding_offset_y",F.FURNITURE_BRANDING_OFFSET_Z="furniture_branding_offset_z",F.FURNITURE_BRANDING_IS_ANIMATED="furniture_branding_is_animated",F.FURNITURE_BADGE_IMAGE_STATUS="furniture_badge_image_status",F.FURNITURE_BADGE_ASSET_NAME="furniture_badge_asset_name",F.FURNITURE_BADGE_VISIBLE_IN_STATE="furniture_badge_visible_in_state",F.FURNITURE_ALPHA_MULTIPLIER="furniture_alpha_multiplier",F.FURNITURE_USAGE_POLICY="furniture_usage_policy",F.FURNITURE_OWNER_ID="furniture_owner_id",F.FURNITURE_OWNER_NAME="furniture_owner_name",F.FURNITURE_ROOM_BACKGROUND_COLOR_HUE="furniture_room_background_color_hue",F.FURNITURE_ROOM_BACKGROUND_COLOR_SATURATION="furniture_room_background_color_saturation",F.FURNITURE_ROOM_BACKGROUND_COLOR_LIGHTNESS="furniture_room_background_color_lightness",F.FURNITURE_USES_PLANE_MASK="furniture_uses_plane_mask",F.FURNITURE_PLANE_MASK_TYPE="furniture_plane_mask_type",F.FURNITURE_IS_VARIABLE_HEIGHT="furniture_is_variable_height",F.FURNITURE_VOTE_MAJORITY_RESULT="furniture_vote_majority_result",F.FURNITURE_VOTE_COUNTER_COUNT="furniture_vote_counter_count",F.FURNITURE_SOUNDBLOCK_RELATIVE_ANIMATION_SPEED="furniture_soundblock_relative_animation_speed",F.FURNITURE_MANNEQUIN_NAME="furniture_mannequin_name",F.FURNITURE_MANNEQUIN_GENDER="furniture_mannequin_gender",F.FURNITURE_MANNEQUIN_FIGURE="furniture_mannequin_figure",F.FURNITURE_HIGHSCORE_SCORE_TYPE="furniture_highscore_score_type",F.FURNITURE_HIGHSCORE_CLEAR_TYPE="furniture_highscore_clear_type",F.FURNITURE_HIGHSCORE_DATA_ENTRY_COUNT="furniture_highscore_data_entry_count",F.FURNITURE_HIGHSCORE_DATA_ENTRY_BASE_USERS_="furniture_highscore_data_entry_base_users_",F.FURNITURE_HIGHSCORE_DATA_ENTRY_BASE_SCORE_="furniture_highscore_data_entry_base_score_",F.FURNITURE_INTERNAL_LINK="furniture_internal_link",F.FURNITURE_CLOTHING_BOY="furniture_clothing_boy",F.FURNITURE_CLOTHING_GIRL="furniture_clothing_girl",F.FURNITURE_PLANETSYSTEM_DATA="furniture_planetsystem_data",F.FURNITURE_FIREWORKS_DATA="furniture_fireworks_data",F.PET_PALETTE_INDEX="pet_palette_index",F.PET_COLOR="pet_color",F.PET_HEAD_ONLY="pet_head_only",F.PET_CUSTOM_LAYER_IDS="pet_custom_layer_ids",F.PET_CUSTOM_PARTS_IDS="pet_custom_part_ids",F.PET_CUSTOM_PALETTE_IDS="pet_custom_palette_ids",F.PET_IS_RIDING="pet_is_riding",F.PET_TYPE="pet_type",F.PET_ALLOWED_DIRECTIONS="pet_allowed_directions",F.RACE="race",F.ROOM_MAP_DATA="room_map_data",F.ROOM_PLANE_MASK_XML="room_plane_mask_xml",F.ROOM_FLOOR_TYPE="room_floor_type",F.ROOM_WALL_TYPE="room_wall_type",F.ROOM_LANDSCAPE_TYPE="room_landscape_type",F.ROOM_WALL_THICKNESS="room_wall_thickness",F.ROOM_FLOOR_THICKNESS="room_floor_thickness",F.ROOM_FLOOR_HOLE_UPDATE_TIME="room_floor_hole_update_time",F.ROOM_FLOOR_VISIBILITY="room_floor_visibility",F.ROOM_WALL_VISIBILITY="room_wall_visibility",F.ROOM_LANDSCAPE_VISIBILITY="room_landscape_visibility",F.ROOM_DOOR_X="room_door_x",F.ROOM_DOOR_Y="room_door_y",F.ROOM_DOOR_Z="room_door_z",F.ROOM_DOOR_DIR="room_door_dir",F.ROOM_BACKGROUND_COLOR="room_background_color",F.ROOM_COLORIZE_BG_ONLY="room_colorize_bg_only",F.ROOM_RANDOM_SEED="room_random_seed",F.ROOM_WORLD_TYPE="room_world_type",F.ROOM_SELECTED_X="room_selected_x",F.ROOM_SELECTED_Y="room_selected_y",F.ROOM_SELECTED_Z="room_selected_z",F.ROOM_SELECTED_PLANE="room_selected_plane",F.IMAGE_QUERY_SCALE="image_query_scale",F.FURNITURE_FRIENDFURNI_ENGRAVING="furniture_friendfurni_engraving_type",F.SESSION_URL_PREFIX="session_url_prefix",F.SESSION_CURRENT_USER_ID="session_current_user_id";let b=F;const z2=class z2{};z2.UNIQUE_SET=256;let _R=z2;class hl{constructor(){this._flags=0,this._uniqueNumber=0,this._uniqueSeries=0}parseWrapper(e){(this._flags&_R.UNIQUE_SET)>0&&(this._uniqueNumber=e.readInt(),this._uniqueSeries=e.readInt())}initializeFromRoomObjectModel(e){this._uniqueNumber=e.getValue(b.FURNITURE_UNIQUE_SERIAL_NUMBER),this._uniqueSeries=e.getValue(b.FURNITURE_UNIQUE_EDITION_SIZE)}writeRoomObjectModel(e){e&&(e.setValue(b.FURNITURE_UNIQUE_SERIAL_NUMBER,this._uniqueNumber),e.setValue(b.FURNITURE_UNIQUE_EDITION_SIZE,this._uniqueSeries))}getLegacyString(){return""}compare(e){return!1}get state(){const e=parseInt(this.getLegacyString());return isNaN(e)?0:e}get isUnique(){return this._uniqueSeries>0}get uniqueNumber(){return this._uniqueNumber}set uniqueNumber(e){this._uniqueNumber=e}get uniqueSeries(){return this._uniqueSeries}set uniqueSeries(e){this._uniqueSeries=e}get rarityLevel(){return-1}get flags(){return this._flags}set flags(e){this._flags=e}}const fr=class fr{};fr.LEGACY_KEY=0,fr.MAP_KEY=1,fr.STRING_KEY=2,fr.VOTE_KEY=3,fr.EMPTY_KEY=4,fr.NUMBER_KEY=5,fr.HIGHSCORE_KEY=6,fr.CRACKABLE_KEY=7;let Hr=fr;const g1=class g1 extends hl{constructor(){super(),this._state="",this._hits=0,this._target=0}parseWrapper(e){e&&(this._state=e.readString(),this._hits=e.readInt(),this._target=e.readInt(),super.parseWrapper(e))}initializeFromRoomObjectModel(e){super.initializeFromRoomObjectModel(e),this._state=e.getValue(b.FURNITURE_CRACKABLE_STATE),this._hits=e.getValue(b.FURNITURE_CRACKABLE_HITS),this._target=e.getValue(b.FURNITURE_CRACKABLE_TARGET)}writeRoomObjectModel(e){super.writeRoomObjectModel(e),e.setValue(b.FURNITURE_DATA_FORMAT,g1.FORMAT_KEY),e.setValue(b.FURNITURE_CRACKABLE_STATE,this._state),e.setValue(b.FURNITURE_CRACKABLE_HITS,this._hits),e.setValue(b.FURNITURE_CRACKABLE_TARGET,this._target)}getLegacyString(){return this._state}compare(e){return!0}get hits(){return this._hits}get target(){return this._target}};g1.FORMAT_KEY=Hr.CRACKABLE_KEY;let Hm=g1;const p1=class p1 extends hl{parseWrapper(e){e&&(this._state="",super.parseWrapper(e))}writeRoomObjectModel(e){super.writeRoomObjectModel(e),e.setValue(b.FURNITURE_DATA_FORMAT,p1.FORMAT_KEY)}getLegacyString(){return this._state}compare(e){return super.compare(e)}};p1.FORMAT_KEY=Hr.EMPTY_KEY;let Wm=p1;class bP{constructor(){this._score=-1,this._users=[]}get score(){return this._score}set score(e){this._score=e}get users(){return this._users}set users(e){this._users=e}addUsername(e){this._users.push(e)}}const m1=class m1 extends hl{constructor(){super(),this._state="",this._scoreType=-1,this._clearType=-1,this._entries=[]}parseWrapper(e){if(!e)return;this._state=e.readString(),this._scoreType=e.readInt(),this._clearType=e.readInt();let t=e.readInt();for(;t>0;){const i=new bP;i.score=e.readInt();let n=e.readInt();for(;n>0;)i.addUsername(e.readString()),n--;this._entries.push(i),t--}super.parseWrapper(e)}initializeFromRoomObjectModel(e){this._scoreType=e.getValue(b.FURNITURE_HIGHSCORE_SCORE_TYPE),this._clearType=e.getValue(b.FURNITURE_HIGHSCORE_CLEAR_TYPE),this._entries=[];const t=e.getValue(b.FURNITURE_HIGHSCORE_DATA_ENTRY_COUNT);let i=0;for(;i<t;){const n=new bP;n.score=e.getValue(b.FURNITURE_HIGHSCORE_DATA_ENTRY_BASE_SCORE_+i),n.users=e.getValue(b.FURNITURE_HIGHSCORE_DATA_ENTRY_BASE_USERS_+i),this._entries.push(n),i++}super.initializeFromRoomObjectModel(e)}writeRoomObjectModel(e){if(super.writeRoomObjectModel(e),e.setValue(b.FURNITURE_DATA_FORMAT,m1.FORMAT_KEY),e.setValue(b.FURNITURE_HIGHSCORE_SCORE_TYPE,this._scoreType),e.setValue(b.FURNITURE_HIGHSCORE_CLEAR_TYPE,this._clearType),this._entries){e.setValue(b.FURNITURE_HIGHSCORE_DATA_ENTRY_COUNT,this._entries.length);let t=0;for(;t<this._entries.length;){const i=this._entries[t];e.setValue(b.FURNITURE_HIGHSCORE_DATA_ENTRY_BASE_SCORE_+t,i.score),e.setValue(b.FURNITURE_HIGHSCORE_DATA_ENTRY_BASE_USERS_+t,i.users),t++}}}getLegacyString(){return this._state}get entries(){return this._entries}get clearType(){return this._clearType}get scoreType(){return this._scoreType}};m1.FORMAT_KEY=Hr.HIGHSCORE_KEY;let Ym=m1;const v1=class v1 extends hl{constructor(){super(),this._data=""}parseWrapper(e){e&&(this._data=e.readString(),super.parseWrapper(e))}initializeFromRoomObjectModel(e){super.initializeFromRoomObjectModel(e),this._data=e.getValue(b.FURNITURE_DATA)}writeRoomObjectModel(e){super.writeRoomObjectModel(e),e.setValue(b.FURNITURE_DATA_FORMAT,v1.FORMAT_KEY),e.setValue(b.FURNITURE_DATA,this._data)}getLegacyString(){return this._data}compare(e){return this._data===e.getLegacyString()}setString(e){this._data=e}};v1.FORMAT_KEY=Hr.LEGACY_KEY;let ps=v1;const lo=class lo extends hl{constructor(){super(),this._data={}}parseWrapper(e){if(!e)return;this._data={};const t=e.readInt();if(t)for(let i=0;i<t;i++)this._data[e.readString()]=e.readString();super.parseWrapper(e)}initializeFromRoomObjectModel(e){super.initializeFromRoomObjectModel(e),this._data=e.getValue(b.FURNITURE_DATA)||{}}writeRoomObjectModel(e){super.writeRoomObjectModel(e),e.setValue(b.FURNITURE_DATA_FORMAT,lo.FORMAT_KEY),e.setValue(b.FURNITURE_DATA,this._data)}getLegacyString(){if(!this._data)return"";const e=this._data[lo.STATE];return e??""}compare(e){return!1}getValue(e){return this._data[e]}get rarityLevel(){if(!this._data)return-1;const e=this._data[lo.RARITY];return e==null?-1:parseInt(e)}get data(){return this._data}};lo.FORMAT_KEY=Hr.MAP_KEY,lo.STATE="state",lo.RARITY="rarity";let Fu=lo;const Hl=class Hl extends hl{constructor(){super(),this._data=[]}parseWrapper(e){if(!e)return;this._data=[];const t=e.readInt();if(t)for(let i=0;i<t;i++)this._data.push(e.readInt());super.parseWrapper(e)}initializeFromRoomObjectModel(e){super.initializeFromRoomObjectModel(e),this._data=e.getValue(b.FURNITURE_DATA)}writeRoomObjectModel(e){super.writeRoomObjectModel(e),e.setValue(b.FURNITURE_DATA_FORMAT,Hl.FORMAT_KEY),e.setValue(b.FURNITURE_DATA,this._data)}getLegacyString(){return!this._data||!this._data.length?"":this._data[Hl.STATE].toString()}compare(e){if(!(e instanceof Hl))return!1;let t=0;for(;t<this._data.length;){if(t!==0){if(this._data[t]!==e.getValue(t))return!1}t++}return!0}getValue(e){if(!this._data||!this._data.length)return-1;const t=this._data[e];return t??-1}};Hl.FORMAT_KEY=Hr.NUMBER_KEY,Hl.STATE=0;let F_=Hl;const Wl=class Wl extends hl{constructor(){super(),this._data=[]}parseWrapper(e){if(!e)return;this._data=[];const t=e.readInt();if(t)for(let i=0;i<t;i++)this._data.push(e.readString());super.parseWrapper(e)}initializeFromRoomObjectModel(e){super.initializeFromRoomObjectModel(e),this._data=e.getValue(b.FURNITURE_DATA)}writeRoomObjectModel(e){super.writeRoomObjectModel(e),e.setValue(b.FURNITURE_DATA_FORMAT,Wl.FORMAT_KEY),e.setValue(b.FURNITURE_DATA,this._data)}getLegacyString(){return!this._data||!this._data.length?"":this._data[Wl.STATE]}compare(e){if(!(e instanceof Wl))return!1;let t=0;for(;t<this._data.length;){if(t!==0){if(this._data[t]!==e.getValue(t))return!1}t++}return!0}getValue(e){return this._data[e]||""}setValue(e){this._data=e}};Wl.FORMAT_KEY=Hr.STRING_KEY,Wl.STATE=0;let Wc=Wl;const E1=class E1 extends hl{constructor(){super(),this._state="",this._result=0}parseWrapper(e){e&&(this._state=e.readString(),this._result=e.readInt(),super.parseWrapper(e))}writeRoomObjectModel(e){super.writeRoomObjectModel(e),e.setValue(b.FURNITURE_DATA_FORMAT,E1.FORMAT_KEY);const t={};t.S=this._state,t.R=this._result.toString(),e.setValue(b.FURNITURE_DATA,t)}getLegacyString(){return this._state}compare(e){return!0}setString(e){this._state=e}get result(){return this._result}};E1.FORMAT_KEY=Hr.VOTE_KEY;let B_=E1;class No{static getData(e){let t=null;switch(e&255){case Hm.FORMAT_KEY:t=new Hm;break;case Wm.FORMAT_KEY:t=new Wm;break;case Ym.FORMAT_KEY:t=new Ym;break;case ps.FORMAT_KEY:t=new ps;break;case Fu.FORMAT_KEY:t=new Fu;break;case F_.FORMAT_KEY:t=new F_;break;case Wc.FORMAT_KEY:t=new Wc;break;case B_.FORMAT_KEY:t=new B_;break}return t?(t.flags=e&65280,t):null}}const uo=class uo{};uo.MINIMUM=-2,uo.ROOM=0,uo.FLOOR=10,uo.WALL=20,uo.UNIT=100,uo.CURSOR=200;let U=uo;const ie=class ie{};ie.FURNITURE_BASIC="furniture_basic",ie.FURNITURE_MULTISTATE="furniture_multistate",ie.FURNITURE_MULTIHEIGHT="furniture_multiheight",ie.FURNITURE_RANDOMSTATE="furniture_randomstate",ie.FURNITURE_PLACEHOLDER="furniture_placeholder",ie.FURNITURE_CREDIT="furniture_credit",ie.FURNITURE_STICKIE="furniture_stickie",ie.FURNITURE_PRESENT="furniture_present",ie.FURNITURE_TROPHY="furniture_trophy",ie.FURNITURE_ECOTRON_BOX="furniture_ecotron_box",ie.FURNITURE_DICE="furniture_dice",ie.FURNITURE_HOCKEY_SCORE="furniture_hockey_score",ie.FURNITURE_HABBOWHEEL="furniture_habbowheel",ie.FURNITURE_ONE_WAY_DOOR="furniture_one_way_door",ie.FURNITURE_PLANET_SYSTEM="furniture_planet_system",ie.FURNITURE_WINDOW="furniture_window",ie.FURNITURE_EXTERNAL_IMAGE_WALLITEM="furniture_external_image_wallitem",ie.FURNITURE_ROOMDIMMER="furniture_roomdimmer",ie.FURNITURE_SOUND_MACHINE="furniture_sound_machine",ie.FURNITURE_JUKEBOX="furniture_jukebox",ie.FURNITURE_CRACKABLE="furniture_crackable",ie.FURNITURE_PUSHABLE="furniture_pushable",ie.FURNITURE_CLOTHING_CHANGE="furniture_clothing_change",ie.FURNITURE_COUNTER_CLOCK="furniture_counter_clock",ie.FURNITURE_SCORE="furniture_score",ie.FURNITURE_ES="furniture_es",ie.FURNITURE_FIREWORKS="furniture_fireworks",ie.FURNITURE_SONG_DISK="furniture_song_disk",ie.FURNITURE_BB="furniture_bb",ie.FURNITURE_BG="furniture_bg",ie.FURNITURE_WELCOME_GIFT="furniture_welcome_gift",ie.FURNITURE_FLOOR_HOLE="furniture_floor_hole",ie.FURNITURE_MANNEQUIN="furniture_mannequin",ie.FURNITURE_GUILD_CUSTOMIZED="furniture_guild_customized",ie.FURNITURE_GROUP_FORUM_TERMINAL="furniture_group_forum_terminal",ie.FURNITURE_PET_CUSTOMIZATION="furniture_pet_customization",ie.FURNITURE_CUCKOO_CLOCK="furniture_cuckoo_clock",ie.FURNITURE_VOTE_COUNTER="furniture_vote_counter",ie.FURNITURE_VOTE_MAJORITY="furniture_vote_majority",ie.FURNITURE_SOUNDBLOCK="furniture_soundblock",ie.FURNITURE_RANDOM_TELEPORT="furniture_random_teleport",ie.FURNITURE_MONSTERPLANT_SEED="furniture_monsterplant_seed",ie.FURNITURE_PURCHASABLE_CLOTHING="furniture_purchasable_clothing",ie.FURNITURE_BACKGROUND_COLOR="furniture_background_color",ie.FURNITURE_MYSTERYBOX="furniture_mysterybox",ie.FURNITURE_EFFECTBOX="furniture_effectbox",ie.FURNITURE_MYSTERYTROPHY="furniture_mysterytrophy",ie.FURNITURE_ACHIEVEMENT_RESOLUTION="furniture_achievement_resolution",ie.FURNITURE_LOVELOCK="furniture_lovelock",ie.FURNITURE_WILDWEST_WANTED="furniture_wildwest_wanted",ie.FURNITURE_HWEEN_LOVELOCK="furniture_hween_lovelock",ie.FURNITURE_BADGE_DISPLAY="furniture_badge_display",ie.FURNITURE_HIGH_SCORE="furniture_high_score",ie.FURNITURE_INTERNAL_LINK="furniture_internal_link",ie.FURNITURE_CUSTOM_STACK_HEIGHT="furniture_custom_stack_height",ie.FURNITURE_YOUTUBE="furniture_youtube",ie.FURNITURE_RENTABLE_SPACE="furniture_rentable_space",ie.FURNITURE_CHANGE_STATE_WHEN_STEP_ON="furniture_change_state_when_step_on",ie.FURNITURE_VIMEO="furniture_vimeo",ie.FURNITURE_EDITABLE_INTERNAL_LINK="furniture_editable_internal_link",ie.FURNITURE_EDITABLE_ROOM_LINK="furniture_editable_room_link",ie.FURNITURE_CRAFTING_GIZMO="furniture_crafting_gizmo",ie.ROOM="room",ie.USER="user",ie.BOT="bot",ie.RENTABLE_BOT="rentable_bot",ie.PET="pet",ie.TILE_CURSOR="tile_cursor",ie.SELECTION_ARROW="selection_arrow",ie.GAME_SNOWBALL="game_snowball",ie.GAME_SNOWSPLASH="game_snowsplash";let re=ie;const ys=class ys{};ys.OBJECT_UNDEFINED="OBJECT_UNDEFINED",ys.OBJECT_MOVE="OBJECT_MOVE",ys.OBJECT_PLACE="OBJECT_PLACE",ys.OBJECT_ROTATE_POSITIVE="OBJECT_ROTATE_POSITIVE",ys.OBJECT_ROTATE_NEGATIVE="OBJECT_ROTATE_NEGATIVE",ys.OBJECT_MOVE_TO="OBJECT_MOVE_TO",ys.OBJECT_PLACE_TO="OBJECT_PLACE_TO",ys.OBJECT_PICKUP="OBJECT_PICKUP",ys.OBJECT_PICKUP_BOT="OBJECT_PICKUP_BOT",ys.OBJECT_PICKUP_PET="OBJECT_PICKUP_PET",ys.OBJECT_EJECT="OBJECT_EJECT",ys.OBJECT_SAVE_STUFF_DATA="OBJECT_SAVE_STUFF_DATA";let Ve=ys;const $h=class $h{};$h.USER=1,$h.PET=2,$h.BOT=3,$h.RENTABLE_BOT=4;let Ra=$h;const Ts=class Ts{static getTypeNumber(e){return Ts.AVATAR_TYPES[e]}static getTypeString(e){for(const t in Ts.AVATAR_TYPES)if(t&&Ts.AVATAR_TYPES[t]===e)return t;return null}static getRealType(e){switch(e){case Ts.BOT:case Ts.RENTABLE_BOT:return Ts.USER;default:return e}}};Ts.USER="user",Ts.PET="pet",Ts.BOT="bot",Ts.RENTABLE_BOT="rentable_bot",Ts.MONSTER_PLANT="monsterplant",Ts.AVATAR_TYPES={user:1,pet:2,bot:3,rentable_bot:4};let tt=Ts;const je=class je{};je.FURNITURE_STATIC="furniture_static",je.FURNITURE_ANIMATED="furniture_animated",je.FURNITURE_RESETTING_ANIMATED="furniture_resetting_animated",je.FURNITURE_POSTER="furniture_poster",je.FURNITURE_EXTERNAL_IMAGE="furniture_external_image",je.FURNITURE_HABBOWHEEL="furniture_habbowheel",je.FURNITURE_VAL_RANDOMIZER="furniture_val_randomizer",je.FURNITURE_BOTTLE="furniture_bottle",je.FURNITURE_PLANET_SYSTEM="furniture_planet_system",je.FURNITURE_QUEUE_TILE="furniture_queue_tile",je.FURNITURE_PARTY_BEAMER="furniture_party_beamer",je.FURNITURE_CUBOID="furniture_cuboid",je.FURNITURE_GIFT_WRAPPED="furniture_gift_wrapped",je.FURNITURE_GIFT_WRAPPED_FIREWORKS="furniture_gift_wrapped_fireworks",je.FURNITURE_COUNTER_CLOCK="furniture_counter_clock",je.FURNITURE_WATER_AREA="furniture_water_area",je.FURNITURE_SCORE_BOARD="furniture_score_board",je.FURNITURE_FIREWORKS="furniture_fireworks",je.FURNITURE_BB="furniture_bb",je.FURNITURE_ISOMETRIC_BB="furniture_isometric_bb",je.FURNITURE_BG="furniture_bg",je.FURNITURE_STICKIE="furniture_stickie",je.FURNITURE_MANNEQUIN="furniture_mannequin",je.FURNITURE_GUILD_CUSTOMIZED="furniture_guild_customized",je.FURNITURE_GUILD_ISOMETRIC_BADGE="furniture_guild_isometric_badge",je.FURNITURE_VOTE_COUNTER="furniture_vote_counter",je.FURNITURE_VOTE_MAJORITY="furniture_vote_majority",je.FURNITURE_SOUNDBLOCK="furniture_soundblock",je.FURNITURE_BADGE_DISPLAY="furniture_badge_display",je.FURNITURE_YOUTUBE="furniture_youtube",je.FURNITURE_BUILDER_PLACEHOLDER="furniture_builder_placeholder",je.ROOM="room",je.USER="user",je.PET_ANIMATED="pet_animated",je.BOT="bot",je.RENTABLE_BOT="rentable_bot",je.TILE_CURSOR="tile_cursor";let Z=je;const y1=class y1{constructor(e,t,i,n=null){this._id=e,this._location=t,this._targetLocation=i,this._movementType=n}get id(){return this._id}get location(){return this._location}get targetLocation(){return this._targetLocation}get movementType(){return this._movementType}};y1.MOVE="mv",y1.SLIDE="sld";let pa=y1;const T1=class T1{};T1.KICKED_OUT_OF_ROOM=4008,T1.STRIP_LOCKED_FOR_TRADING=-13001;let gR=T1;const Pd=class Pd{};Pd.OLD_IDENTITY=0,Pd.NEW_IDENTITY=1,Pd.REAL_NOOB=2;let ud=Pd;const ho=class ho{};ho.NONE=0,ho.GUEST=1,ho.GUILD_MEMBER=2,ho.GUILD_ADMIN=3,ho.ROOM_OWNER=4,ho.MODERATOR=5;let Sa=ho;const co=class co{static getLocalizationKey(e){switch(e){case co.FREE_TRADING:return"${trading.mode.free}";case co.ROOM_CONTROLLER_REQUIRED:return"${trading.mode.controller}";case co.NO_TRADING:return"${trading.mode.not.allowed}"}return""}};co.NO_TRADING=0,co.ROOM_CONTROLLER_REQUIRED=1,co.FREE_TRADING=2;let pR=co;const mn=class mn{};mn.SUPER_USER=9,mn.ADMINISTRATOR=8,mn.COMMUNITY=7,mn.PLAYER_SUPPORT=6,mn.MODERATOR=5,mn.EMPLOYEE=4,mn.BUS_PARTNER=3,mn.PARTNER=2,mn.CELEBRITY=1,mn.NONE=0;let mR=mn;var du=(s=>(s.FLOOR="S",s.WALL="I",s.EFFECT="E",s.BADGE="B",s.ROBOT="R",s.HABBO_CLUB="H",s.PET="P",s))(du||{});const kd=class kd{};kd.MATCH_ALL_PIXELS=-1,kd.MATCH_OPAQUE_PIXELS=128,kd.MATCH_NOTHING=256;let tr=kd;const Qh=class Qh{};Qh.DEFAULT=1,Qh.ROOM_PLANE=2,Qh.AVATAR=3,Qh.AVATAR_OWN=4;let Js=Qh;class h4{}class M{constructor(e=0,t=0,i=0){this._x=e,this._y=t,this._z=i,this._length=NaN}static sum(e,t){return!e||!t?null:new M(e.x+t.x,e.y+t.y,e.z+t.z)}static dif(e,t){return!e||!t?null:new M(e.x-t.x,e.y-t.y,e.z-t.z)}static product(e,t){return e?new M(e.x*t,e.y*t,e.z*t):null}static dotProduct(e,t){return!e||!t?0:e.x*t.x+e.y*t.y+e.z*t.z}static crossProduct(e,t){return!e||!t?null:new M(e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)}static scalarProjection(e,t){if(!e||!t)return-1;const i=t.length;return i>0?(e.x*t.x+e.y*t.y+e.z*t.z)/i:-1}static cosAngle(e,t){if(!e||!t)return 0;const i=e.length*t.length;return i?M.dotProduct(e,t)/i:0}static isEqual(e,t){return!(!e||!t||e.x!==t.x||e.y!==t.y||e.z!==t.z)}negate(){this._x=-this._x,this._y=-this._y,this._z=-this._z}add(e){e&&(this._x+=e.x,this._y+=e.y,this._z+=e.z,this._length=NaN)}subtract(e){e&&(this._x-=e.x,this._y-=e.y,this._z-=e.z,this._length=NaN)}multiply(e){this._x*=e,this._y*=e,this._z*=e,this._length=NaN}divide(e){e&&(this._x/=e,this._y/=e,this._z/=e,this._length=NaN)}assign(e){e&&(this._x=e.x,this._y=e.y,this._z=e.z,this._length=NaN)}get x(){return this._x}set x(e){this._x=e,this._length=NaN}get y(){return this._y}set y(e){this._y=e,this._length=NaN}get z(){return this._z}set z(e){this._z=e,this._length=NaN}get length(){return isNaN(this._length)&&(this._length=Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z)),this._length}toString(){return`[Vector3d: ${this._x}, ${this._y}, ${this._z}]`}}const jn=class jn{};jn.MOUSE_CLICK="click",jn.DOUBLE_CLICK="double_click",jn.MOUSE_MOVE="mousemove",jn.MOUSE_DOWN="mousedown",jn.MOUSE_DOWN_LONG="mousedown_long",jn.MOUSE_UP="mouseup",jn.ROLL_OVER="mouseover",jn.ROLL_OUT="mouseout",jn.RIGHT_CLICK="contextmenu";let ue=jn;const Yl=class Yl{};Yl.TOUCH_START="touchstart",Yl.TOUCH_MOVE="touchmove",Yl.TOUCH_CANCEL="touchcancel",Yl.TOUCH_END="touchend",Yl.TOUCH_LONG="touchlong";let AP=Yl;const Ti=class Ti{constructor(e){this._ordinal=e}get ordinal(){return this._ordinal}equals(e){return e&&e._ordinal==this._ordinal}};Ti.NONE=new Ti(0),Ti.WAVE=new Ti(1),Ti.BLOW=new Ti(2),Ti.LAUGH=new Ti(3),Ti.CRY=new Ti(4),Ti.IDLE=new Ti(5),Ti.JUMP=new Ti(6),Ti.RESPECT=new Ti(7);let OP=Ti;const zn=class zn{};zn.DUMMY="DUMMY",zn.FRIEND_FURNITURE="FRIEND_FURNITURE",zn.MONSTERPLANT_SEED="MONSTERPLANT_SEED",zn.MYSTERY_BOX="MYSTERY_BOX",zn.EFFECT_BOX="EFFECT_BOX",zn.MYSTERY_TROPHY="MYSTERY_TROPHY",zn.RANDOM_TELEPORT="RANDOM_TELEPORT",zn.PURCHASABLE_CLOTHING="PURCHASABLE_CLOTHING",zn.GENERIC_USABLE="GENERIC_USABLE";let Wr=zn;const Xl=class Xl{};Xl.LOVE_LOCK=0,Xl.CARVE_A_TREE=1,Xl.FRIENDS_PORTRAIT=2,Xl.WILD_WEST_WANTED=3,Xl.HABBOWEEN=4;let wP=Xl;const pe=class pe{};pe.CHAT_WIDGET="RWE_CHAT_WIDGET",pe.INFOSTAND="RWE_INFOSTAND",pe.ME_MENU="RWE_ME_MENU",pe.CHAT_INPUT_WIDGET="RWE_CHAT_INPUT_WIDGET",pe.FURNI_PLACEHOLDER="RWE_FURNI_PLACEHOLDER",pe.FURNI_CREDIT_WIDGET="RWE_FURNI_CREDIT_WIDGET",pe.FURNI_STICKIE_WIDGET="RWE_FURNI_STICKIE_WIDGET",pe.FURNI_TROPHY_WIDGET="RWE_FURNI_TROPHY_WIDGET",pe.FURNI_LOVELOCK_WIDGET="RWE_FURNI_LOVELOCK_WIDGET",pe.FURNI_PRESENT_WIDGET="RWE_FURNI_PRESENT_WIDGET",pe.FURNI_ECOTRONBOX_WIDGET="RWE_FURNI_ECOTRONBOX_WIDGET",pe.FURNI_PET_PACKAGE_WIDGET="RWE_FURNI_PET_PACKAGE_WIDGET",pe.PLAYLIST_EDITOR_WIDGET="RWE_PLAYLIST_EDITOR_WIDGET",pe.DOORBELL="RWE_DOORBELL",pe.LOADINGBAR="RWE_LOADINGBAR",pe.ROOM_QUEUE="RWE_ROOM_QUEUE",pe.ROOM_POLL="RWE_ROOM_POLL",pe.ROOM_VOTE="RWE_ROOM_VOTE",pe.USER_CHOOSER="RWE_USER_CHOOSER",pe.FURNI_CHOOSER="RWE_FURNI_CHOOSER",pe.ROOM_DIMMER="RWE_ROOM_DIMMER",pe.FRIEND_REQUEST="RWE_FRIEND_REQUEST",pe.CLOTHING_CHANGE="RWE_CLOTHING_CHANGE",pe.CONVERSION_TRACKING="RWE_CONVERSION_TRACKING",pe.USER_NOTIFICATION="RWE_USER_NOTIFICATION",pe.FRIENDS_BAR="RWE_FRIENDS_BAR",pe.PURSE_WIDGET="RWE_PURSE_WIDGET",pe.AVATAR_INFO="RWE_AVATAR_INFO",pe.WELCOME_GIFT="RWE_WELCOME_GIFT",pe.SPAMWALL_POSTIT_WIDGET="RWE_SPAMWALL_POSTIT_WIDGET",pe.EFFECTS="RWE_EFFECTS",pe.MANNEQUIN="RWE_MANNEQUIN",pe.FURNITURE_CONTEXT_MENU="RWE_FURNITURE_CONTEXT_MENU",pe.LOCATION_WIDGET="RWE_LOCATION_WIDGET",pe.CAMERA="RWE_CAMERA",pe.ROOM_THUMBNAIL_CAMERA="RWE_ROOM_THUMBNAIL_CAMERA",pe.ROOM_BACKGROUND_COLOR="RWE_ROOM_BACKGROUND_COLOR",pe.CUSTOM_USER_NOTIFICATION="RWE_CUSTOM_USER_NOTIFICATION",pe.FURNI_ACHIEVEMENT_RESOLUTION_ENGRAVING="RWE_FURNI_ACHIEVEMENT_RESOLUTION_ENGRAVING",pe.FRIEND_FURNI_CONFIRM="RWE_FRIEND_FURNI_CONFIRM",pe.FRIEND_FURNI_ENGRAVING="RWE_FRIEND_FURNI_ENGRAVING",pe.HIGH_SCORE_DISPLAY="RWE_HIGH_SCORE_DISPLAY",pe.INTERNAL_LINK="RWE_INTERNAL_LINK",pe.CUSTOM_STACK_HEIGHT="RWE_CUSTOM_STACK_HEIGHT",pe.YOUTUBE="RWE_YOUTUBE",pe.RENTABLESPACE="RWE_RENTABLESPACE",pe.VIMEO="RWE_VIMEO",pe.ROOM_TOOLS="RWE_ROOM_TOOLS",pe.EXTERNAL_IMAGE="RWE_EXTERNAL_IMAGE",pe.WORD_QUIZZ="RWE_WORD_QUIZZ",pe.UI_HELP_BUBBLE="RWE_UI_HELP_BUBBLE",pe.ROOM_LINK="RWE_ROOM_LINK",pe.CRAFTING="RWE_CRAFTING",pe.ROOMGAME_CHECKERS="RWE_GAME_CHECKERS";let Xm=pe;const ia=class ia{};ia.INFOSTAND_EXTRA_PARAM="RWEIEP_INFOSTAND_EXTRA_PARAM",ia.JUKEBOX="RWEIEP_JUKEBOX",ia.USABLE_PRODUCT="RWEIEP_USABLE_PRODUCT",ia.SONGDISK="RWEIEP_SONGDISK",ia.CRACKABLE_FURNI="RWEIEP_CRACKABLE_FURNI",ia.BRANDING_OPTIONS="RWEIEP_BRANDING_OPTIONS",ia.USABLE="RWEIEP_USABLE";let Fs=ia;const xd=class xd{};xd.NOBODY=0,xd.CONTROLLER=1,xd.EVERYBODY=2;let CP=xd;const Dd=class Dd{};Dd.NORMAL=0,Dd.GENERIC=1,Dd.BOT=2;let xl=Dd;class Bs{constructor(){this._isDisposed=!1,this._isDisposing=!1}dispose(){this._isDisposed||this._isDisposing||(this._isDisposing=!0,this.onDispose(),this._isDisposed=!0,this._isDisposing=!1)}onDispose(){}get disposed(){return this._isDisposed}get isDisposing(){return this._isDisposing}}class fn extends Bs{constructor(){super(),this._listeners=new Map}onDispose(){this.removeAllListeners(),super.onDispose()}addEventListener(e,t){if(!e||!t)return;const i=this._listeners.get(e);if(!i){this._listeners.set(e,[t]);return}i.push(t)}removeEventListener(e,t){if(!e||!t)return;const i=this._listeners.get(e);if(!(!i||!i.length)){for(const[n,r]of i.entries())if(!(!r||r!==t)){i.splice(n,1),i.length||this._listeners.delete(e);return}}}dispatchEvent(e){return e?(le.events("Dispatched Event",e.type),this.processEvent(e),!0):!1}processEvent(e){const t=this._listeners.get(e.type);if(!t||!t.length)return;const i=[];for(const n of t)n&&i.push(n);for(;i.length;){const n=i.shift();try{n(e)}catch(r){le.error(r.stack);return}}}removeAllListeners(){this._listeners.clear()}}class Yr extends Bs{constructor(){super(),this._events=new fn,this._isLoaded=!1,this._isLoading=!1}init(){this._isLoaded||this._isLoading||this.isDisposing||(this._isLoading=!0,this.onInit(),this._isLoaded=!0,this._isLoading=!1)}onInit(){}onDispose(){this._events&&this._events.dispose(),super.onDispose()}reload(){this.dispose(),this.init()}get events(){return this._events}get isLoaded(){return this._isLoaded}get isLoading(){return this._isLoading}}class tQ{constructor(e){this._value=e}get value(){return this._value}}class iQ{constructor(e,t){this._header=e,this._buffer=t}readBytes(e){return this._buffer?this._buffer.readBytes(e):null}readByte(){return this._buffer?this._buffer.readByte():-1}readBoolean(){return this.readByte()===1}readShort(){return this._buffer?this._buffer.readShort():-1}readInt(){return this._buffer?this._buffer.readInt():-1}readFloat(){return this._buffer?this._buffer.readFloat():-1}readDouble(){return this._buffer?this._buffer.readDouble():-1}readString(){const e=this.readShort();return this._buffer.readBytes(e).toString("utf8")}get header(){return this._header}get bytesAvailable(){return this._buffer&&this._buffer.remaining()>0}}class sQ{constructor(e){this._value=e}get value(){return this._value}}class nQ{encode(e,t){const i=new zN;i.writeShort(e);for(const r of t){let a=typeof r;switch(a==="object"&&(r===null?a="null":r instanceof tQ?a="byte":r instanceof sQ?a="short":r instanceof ArrayBuffer&&(a="arraybuffer")),a){case"undefined":case"null":i.writeShort(0);break;case"byte":i.writeByte(r.value);break;case"short":i.writeShort(r.value);break;case"number":i.writeInt(r);break;case"boolean":i.writeByte(r?1:0);break;case"string":r?i.writeString(r,!0):i.writeShort(0);break;case"arraybuffer":i.writeBytes(r);break}}const n=i.getBuffer();return n?new zN().writeInt(n.byteLength).writeBytes(n):null}decode(e){if(!e||!e.dataBuffer||!e.dataBuffer.byteLength)return null;const t=[];for(;e.dataBuffer.byteLength&&!(e.dataBuffer.byteLength<4);){const i=new E0(e.dataBuffer),n=i.readInt();if(n>e.dataBuffer.byteLength-4)break;const r=i.readBytes(n);t.push(new iQ(r.readShort(),r)),e.dataBuffer=e.dataBuffer.slice(n+4)}return t}}class A{constructor(e,t){this._callBack=e,this._parserClass=t,this._parser=null,this._connection=null}dispose(){this._callBack=null,this._parserClass=null,this._parser=null,this._connection=null}get callBack(){return this._callBack}get parserClass(){return this._parserClass}get parser(){return this._parser}set parser(e){this._parser=e}get connection(){return this._connection}set connection(e){this._connection=e}}class Ye{constructor(e){this._type=e}get type(){return this._type}}const Zh=class Zh extends Ye{constructor(e,t,i){super(e),this._connection=t,this._originalEvent=event}get connection(){return this._connection}get originalEvent(){return this._originalEvent}};Zh.CONNECTION_OPENED="SCE_OPEN",Zh.CONNECTION_CLOSED="SCE_CLOSED",Zh.CONNECTION_ERROR="SCE_ERROR",Zh.CONNECTION_MESSAGE="SCE_MESSAGE";let wi=Zh;const H2=class H2 extends Ye{constructor(e,t){super(e),this._library=t}get library(){return this._library}};H2.DOWNLOAD_COMPLETE="ARELE_DOWNLOAD_COMPLETE";let _u=H2;const W2=class W2{};W2.AVATAR_RENDER_READY="AVATAR_RENDER_READY";let G_=W2;const Y2=class Y2 extends Ye{constructor(e,t){super(e),this._library=t}get library(){return this._library}};Y2.DOWNLOAD_COMPLETE="ARLE_DOWNLOAD_COMPLETE";let gu=Y2;const X2=class X2 extends Ye{constructor(e){super(e)}};X2.INITIALIZED="RCWM_INITIALIZED";let Km=X2;const sa=class sa extends Ye{constructor(e,t){super(e),this._connection=t}get connection(){return this._connection}};sa.CONNECTION_ESTABLISHED="NCE_ESTABLISHED",sa.CONNECTION_CLOSED="NCE_CLOSED",sa.CONNECTION_ERROR="NCE_ERROR",sa.CONNECTION_HANDSHAKING="NCE_HANDSHAKING",sa.CONNECTION_HANDSHAKED="NCE_HANDSHAKED",sa.CONNECTION_HANDSHAKE_FAILED="NCE_HANDSHAKE_FAILED",sa.CONNECTION_AUTHENTICATED="NCE_AUTHENTICATED";let bn=sa;const I1=class I1 extends Ye{constructor(e){super(e)}};I1.LOADED="NLE_LOADED",I1.FAILED="NLE_FAILED";let wh=I1;const Ld=class Ld extends Ye{constructor(){super(Ld.SETTINGS_UPDATED)}clone(){const e=new Ld;return e._volumeSystem=this._volumeSystem,e._volumeFurni=this._volumeFurni,e._volumeTrax=this._volumeTrax,e._oldChat=this._oldChat,e._roomInvites=this._roomInvites,e._cameraFollow=this._cameraFollow,e._flags=this._flags,e._chatType=this._chatType,e}get volumeSystem(){return this._volumeSystem}set volumeSystem(e){this._volumeSystem=e}get volumeFurni(){return this._volumeFurni}set volumeFurni(e){this._volumeFurni=e}get volumeTrax(){return this._volumeTrax}set volumeTrax(e){this._volumeTrax=e}get oldChat(){return this._oldChat}set oldChat(e){this._oldChat=e}get roomInvites(){return this._roomInvites}set roomInvites(e){this._roomInvites=e}get cameraFollow(){return this._cameraFollow}set cameraFollow(e){this._cameraFollow=e}get flags(){return this._flags}set flags(e){this._flags=e}get chatType(){return this._chatType}set chatType(e){this._chatType=e}};Ld.SETTINGS_UPDATED="NSE_SETTINGS_UPDATED";let Su=Ld;const K2=class K2 extends Ye{constructor(e,t){super(e),this._sampleCode=t}get sampleCode(){return this._sampleCode}};K2.PLAY_SOUND="NSOE_PLAY_SOUND";let hd=K2;const R1=class R1 extends Ye{constructor(e){super(e)}get iconId(){return this._iconId}set iconId(e){this._iconId=e}get iconName(){return this._iconName}set iconName(e){this._iconName=e}};R1.TOOLBAR_CLICK="NTE_TOOLBAR_CLICK",R1.SELECT_OWN_AVATAR="NTE_SELECT_OWN_AVATAR";let vR=R1;const S1=class S1 extends vR{constructor(e,t,i){super(S1.ANIMATE_ICON),this._image=e,this._x=t,this._y=i}get image(){return this._image}get x(){return this._x}get y(){return this._y}};S1.ANIMATE_ICON="NTAIE_ANIMATE_ICON";let qm=S1;const na=class na extends Ye{constructor(e,t){super(e),this._roomId=t}get roomId(){return this._roomId}};na.INITIALIZED="REE_INITIALIZED",na.ENGINE_INITIALIZED="REE_ENGINE_INITIALIZED",na.OBJECTS_INITIALIZED="REE_OBJECTS_INITIALIZED",na.NORMAL_MODE="REE_NORMAL_MODE",na.GAME_MODE="REE_GAME_MODE",na.ROOM_ZOOMED="REE_ROOM_ZOOMED",na.DISPOSED="REE_DISPOSED";let ft=na;const b1=class b1 extends ft{constructor(e,t,i,n){super(b1.ROOM_COLOR,e),this._color=t,this._brightness=i,this._bgOnly=n}get color(){return this._color}get brightness(){return this._brightness}get bgOnly(){return this._bgOnly}};b1.ROOM_COLOR="REE_ROOM_COLOR";let ER=b1;const Ud=class Ud extends Ye{constructor(e,t){super(e),this._contentType=t}get contentType(){return this._contentType}};Ud.RCLE_SUCCESS="RCLE_SUCCESS",Ud.RCLE_FAILURE="RCLE_FAILURE",Ud.RCLE_CANCEL="RCLE_CANCEL";let ba=Ud;const A1=class A1 extends ft{constructor(e,t,i){super(A1.ROOM_DRAG,e),this._offsetX=t,this._offsetY=i}get offsetX(){return this._offsetX}get offsetY(){return this._offsetY}};A1.ROOM_DRAG="RDE_ROOM_DRAG";let yR=A1;const O1=class O1 extends ft{constructor(e,t,i,n,r,a){super(O1.ROOM_COLOR,e),this._state=t,this._presetId=i,this._effectId=n,this._color=r,this._brightness=a}get state(){return this._state}get presetId(){return this._presetId}get effectId(){return this._effectId}get color(){return this._color}get brightness(){return this._brightness}};O1.ROOM_COLOR="REDSE_ROOM_COLOR";let TR=O1;const ns=class ns extends ft{constructor(e,t,i,n){super(e,t),this._objectId=i,this._category=n}get objectId(){return this._objectId}get category(){return this._category}};ns.SELECTED="REOE_SELECTED",ns.DESELECTED="REOE_DESELECTED",ns.ADDED="REOE_ADDED",ns.REMOVED="REOE_REMOVED",ns.PLACED="REOE_PLACED",ns.PLACED_ON_USER="REOE_PLACED_ON_USER",ns.CONTENT_UPDATED="REOE_CONTENT_UPDATED",ns.REQUEST_MOVE="REOE_REQUEST_MOVE",ns.REQUEST_ROTATE="REOE_REQUEST_ROTATE",ns.REQUEST_MANIPULATION="REOE_REQUEST_MANIPULATION",ns.MOUSE_ENTER="REOE_MOUSE_ENTER",ns.MOUSE_LEAVE="REOE_MOUSE_LEAVE",ns.DOUBLE_CLICK="REOE_DOUBLE_CLICK";let Se=ns;class rQ extends Se{constructor(e,t,i,n,r,a,o,l,u,c,h,f,d){super(e,t,i,n),this._wallLocation="",this._x=0,this._y=0,this._z=0,this._direction=0,this._placedInRoom=!1,this._placedOnFloor=!1,this._placedOnWall=!1,this._instanceData=null,this._wallLocation=r,this._x=a,this._y=o,this._z=l,this._direction=u,this._placedInRoom=c,this._placedOnFloor=h,this._placedOnWall=f,this._instanceData=d}get wallLocation(){return this._wallLocation}get x(){return this._x}get y(){return this._y}get z(){return this._z}get direction(){return this._direction}get placedInRoom(){return this._placedInRoom}get placedOnFloor(){return this._placedOnFloor}get placedOnWall(){return this._placedOnWall}get instanceData(){return this._instanceData}}class aQ extends Se{constructor(e,t,i,n,r,a){super(e,t,i,n),this._droppedObjectId=r,this._droppedObjectCategory=a}get droppedObjectId(){return this._droppedObjectId}get droppedObjectCategory(){return this._droppedObjectCategory}}const w1=class w1 extends Se{constructor(e,t,i,n,r,a=1){super(e,t,i,n),this._soundId=r,this._pitch=a}get soundId(){return this._soundId}get pitch(){return this._pitch}};w1.PLAY_SOUND="REOPSE_PLAY_SOUND",w1.PLAY_SOUND_AT_PITCH="REOPSE_PLAY_SOUND_AT_PITCH";let Ch=w1;const Jh=class Jh extends Se{};Jh.FURNI_CLICK="RERAE_FURNI_CLICK",Jh.FURNI_DOUBLE_CLICK="RERAE_FURNI_DOUBLE_CLICK",Jh.TOOLTIP_SHOW="RERAE_TOOLTIP_SHOW",Jh.TOOLTIP_HIDE="RERAE_TOOLTIP_HIDE";let Mh=Jh;const ec=class ec extends Se{constructor(e,t,i,n,r,a=1){super(e,t,i,n),this._sampleId=r,this._pitch=a}get sampleId(){return this._sampleId}get pitch(){return this._pitch}};ec.ROOM_OBJECT_INITIALIZED="ROPSPE_ROOM_OBJECT_INITIALIZED",ec.ROOM_OBJECT_DISPOSED="ROPSPE_ROOM_OBJECT_DISPOSED",ec.PLAY_SAMPLE="ROPSPE_PLAY_SAMPLE",ec.CHANGE_PITCH="ROPSPE_CHANGE_PITCH";let $s=ec;const Je=class Je extends Se{constructor(e,t,i,n,r=null){super(e,t,i,n),this._widget=r}get widget(){return this._widget}get contextMenu(){return this._widget}};Je.OPEN_WIDGET="RETWE_OPEN_WIDGET",Je.CLOSE_WIDGET="RETWE_CLOSE_WIDGET",Je.OPEN_FURNI_CONTEXT_MENU="RETWE_OPEN_FURNI_CONTEXT_MENU",Je.CLOSE_FURNI_CONTEXT_MENU="RETWE_CLOSE_FURNI_CONTEXT_MENU",Je.REQUEST_PLACEHOLDER="RETWE_REQUEST_PLACEHOLDER",Je.REQUEST_CREDITFURNI="RETWE_REQUEST_CREDITFURNI",Je.REQUEST_STACK_HEIGHT="RETWE_REQUEST_STACK_HEIGHT",Je.REQUEST_EXTERNAL_IMAGE="RETWE_REQUEST_EXTERNAL_IMAGE",Je.REQUEST_STICKIE="RETWE_REQUEST_STICKIE",Je.REQUEST_PRESENT="RETWE_REQUEST_PRESENT",Je.REQUEST_TROPHY="RETWE_REQUEST_TROPHY",Je.REQUEST_TEASER="RETWE_REQUEST_TEASER",Je.REQUEST_ECOTRONBOX="RETWE_REQUEST_ECOTRONBOX",Je.REQUEST_DIMMER="RETWE_REQUEST_DIMMER",Je.REMOVE_DIMMER="RETWE_REMOVE_DIMMER",Je.REQUEST_CLOTHING_CHANGE="RETWE_REQUEST_CLOTHING_CHANGE",Je.REQUEST_PLAYLIST_EDITOR="RETWE_REQUEST_PLAYLIST_EDITOR",Je.REQUEST_MANNEQUIN="RETWE_REQUEST_MANNEQUIN",Je.REQUEST_MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG="ROWRE_REQUEST_MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG",Je.REQUEST_PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG="ROWRE_REQUEST_PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG",Je.REQUEST_BACKGROUND_COLOR="RETWE_REQUEST_BACKGROUND_COLOR",Je.REQUEST_MYSTERYBOX_OPEN_DIALOG="RETWE_REQUEST_MYSTERYBOX_OPEN_DIALOG",Je.REQUEST_EFFECTBOX_OPEN_DIALOG="RETWE_REQUEST_EFFECTBOX_OPEN_DIALOG",Je.REQUEST_MYSTERYTROPHY_OPEN_DIALOG="RETWE_REQUEST_MYSTERYTROPHY_OPEN_DIALOG",Je.REQUEST_ACHIEVEMENT_RESOLUTION_ENGRAVING="RETWE_REQUEST_ACHIEVEMENT_RESOLUTION_ENGRAVING",Je.REQUEST_ACHIEVEMENT_RESOLUTION_FAILED="RETWE_REQUEST_ACHIEVEMENT_RESOLUTION_FAILED",Je.REQUEST_FRIEND_FURNITURE_CONFIRM="RETWE_REQUEST_FRIEND_FURNITURE_CONFIRM",Je.REQUEST_FRIEND_FURNITURE_ENGRAVING="RETWE_REQUEST_FRIEND_FURNITURE_ENGRAVING",Je.REQUEST_BADGE_DISPLAY_ENGRAVING="RETWE_REQUEST_BADGE_DISPLAY_ENGRAVING",Je.REQUEST_HIGH_SCORE_DISPLAY="RETWE_REQUEST_HIGH_SCORE_DISPLAY",Je.REQUEST_HIDE_HIGH_SCORE_DISPLAY="RETWE_REQUEST_HIDE_HIGH_SCORE_DISPLAY",Je.REQUEST_INTERNAL_LINK="RETWE_REQUEST_INTERNAL_LINK",Je.REQUEST_ROOM_LINK="RETWE_REQUEST_ROOM_LINK",Je.REQUEST_YOUTUBE="RETWE_REQUEST_YOUTUBE";let se=Je;const C1=class C1 extends Se{constructor(e,t,i,n,r=-1,a=-1){super(e,t,i,n),this._inventoryStripId=r,this._furnitureTypeId=a}get inventoryStripId(){return this._inventoryStripId}get furnitureTypeId(){return this._furnitureTypeId}};C1.USE_PRODUCT_FROM_ROOM="REUPE_USE_PRODUCT_FROM_ROOM",C1.USE_PRODUCT_FROM_INVENTORY="REUPE_USE_PRODUCT_FROM_INVENTORY";let $m=C1;class Fn extends Ye{constructor(e,t){super(e),this._object=t}get object(){return this._object}get objectId(){return this._object?this._object.id:-1}get objectType(){return this._object?this._object.type:null}}const q2=class q2 extends Fn{constructor(e,t,i,n=!0){super(e,t),this._badgeId=i,this._groupBadge=n}get badgeId(){return this._badgeId}get groupBadge(){return this._groupBadge}};q2.LOAD_BADGE="ROBAE_LOAD_BADGE";let ir=q2;const M1=class M1 extends Fn{constructor(e,t){super(e,t)}};M1.RODRE_CURRENT_USER_ID="RODRE_CURRENT_USER_ID",M1.RODRE_URL_PREFIX="RODRE_URL_PREFIX";let Mn=M1;const N1=class N1 extends Fn{constructor(e,t,i,n,r,a){super(N1.DIMMER_STATE,e),this._state=t,this._presetId=i,this._effectId=n,this._color=r,this._brightness=a}get state(){return this._state}get presetId(){return this._presetId}get effectId(){return this._effectId}get color(){return this._color}get brightness(){return this._brightness}};N1.DIMMER_STATE="RODSUE_DIMMER_STATE";let bu=N1;const P1=class P1 extends Fn{constructor(e,t){super(e,t)}};P1.ADD_HOLE="ROFHO_ADD_HOLE",P1.REMOVE_HOLE="ROFHO_REMOVE_HOLE";let qi=P1;const xi=class xi extends Fn{};xi.DICE_OFF="ROFCAE_DICE_OFF",xi.DICE_ACTIVATE="ROFCAE_DICE_ACTIVATE",xi.USE_HABBOWHEEL="ROFCAE_USE_HABBOWHEEL",xi.STICKIE="ROFCAE_STICKIE",xi.ENTER_ONEWAYDOOR="ROFCAE_ENTER_ONEWAYDOOR",xi.SOUND_MACHINE_INIT="ROFCAE_SOUND_MACHINE_INIT",xi.SOUND_MACHINE_START="ROFCAE_SOUND_MACHINE_START",xi.SOUND_MACHINE_STOP="ROFCAE_SOUND_MACHINE_STOP",xi.SOUND_MACHINE_DISPOSE="ROFCAE_SOUND_MACHINE_DISPOSE",xi.JUKEBOX_INIT="ROFCAE_JUKEBOX_INIT",xi.JUKEBOX_START="ROFCAE_JUKEBOX_START",xi.JUKEBOX_MACHINE_STOP="ROFCAE_JUKEBOX_MACHINE_STOP",xi.JUKEBOX_DISPOSE="ROFCAE_JUKEBOX_DISPOSE",xi.MOUSE_BUTTON="ROFCAE_MOUSE_BUTTON",xi.MOUSE_ARROW="ROFCAE_MOUSE_ARROW";let X=xi;const $2=class $2 extends ft{constructor(e,t,i,n,r,a){super(e,t),this._enable=i,this._hue=n,this._saturation=r,this._lightness=a}get enable(){return this._enable}get hue(){return this._hue}get saturation(){return this._saturation}get lightness(){return this._lightness}};$2.ROOM_BACKGROUND_COLOR="ROHSLCEE_ROOM_BACKGROUND_COLOR";let Qm=$2;const Q2=class Q2 extends Fn{constructor(e,t,i,n,r,a){super(e,t),this._enable=i,this._hue=n,this._saturation=r,this._lightness=a}get enable(){return this._enable}get hue(){return this._hue}get saturation(){return this._saturation}get lightness(){return this._lightness}};Q2.ROOM_BACKGROUND_COLOR="ROHSLCEE_ROOM_BACKGROUND_COLOR";let ma=Q2;const dr=class dr extends Fn{constructor(e,t,i,n=!1,r=!1,a=!1,o=!1){super(e,t),this._eventId="",this._eventId=i,this._altKey=n,this._ctrlKey=r,this._shiftKey=a,this._buttonDown=o}get eventId(){return this._eventId}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get shiftKey(){return this._shiftKey}get buttonDown(){return this._buttonDown}get localX(){return this._localX}set localX(e){this._localX=e}get localY(){return this._localY}set localY(e){this._localY=e}get spriteOffsetX(){return this._spriteOffsetX}set spriteOffsetX(e){this._spriteOffsetX=e}get spriteOffsetY(){return this._spriteOffsetY}set spriteOffsetY(e){this._spriteOffsetY=e}};dr.CLICK="ROE_MOUSE_CLICK",dr.DOUBLE_CLICK="ROE_MOUSE_DOUBLE_CLICK",dr.MOUSE_MOVE="ROE_MOUSE_MOVE",dr.MOUSE_DOWN="ROE_MOUSE_DOWN",dr.MOUSE_DOWN_LONG="ROE_MOUSE_DOWN_LONG",dr.MOUSE_UP="ROE_MOUSE_UP",dr.MOUSE_ENTER="ROE_MOUSE_ENTER",dr.MOUSE_LEAVE="ROE_MOUSE_LEAVE";let Ee=dr;const k1=class k1 extends Fn{constructor(e,t){super(e,t)}};k1.POSITION_CHANGED="ROME_POSITION_CHANGED",k1.OBJECT_REMOVED="ROME_OBJECT_REMOVED";let es=k1;const x1=class x1 extends X{constructor(e,t,i,n=1){super(e,t),this._soundId=i,this._pitch=n}get soundId(){return this._soundId}get pitch(){return this._pitch}};x1.PLAY_SOUND="ROPSIE_PLAY_SOUND",x1.PLAY_SOUND_AT_PITCH="ROPSIE_PLAY_SOUND_AT_PITCH";let Aa=x1;const Kl=class Kl extends Fn{constructor(e,t,i="",n=""){super(e,t),this._imageUrl="",this._clickUrl="",this._imageUrl=i,this._clickUrl=n}get imageUrl(){return this._imageUrl}get clickUrl(){return this._clickUrl}};Kl.ROOM_AD_LOAD_IMAGE="RORAE_ROOM_AD_LOAD_IMAGE",Kl.ROOM_AD_FURNI_CLICK="RORAE_ROOM_AD_FURNI_CLICK",Kl.ROOM_AD_FURNI_DOUBLE_CLICK="RORAE_ROOM_AD_FURNI_DOUBLE_CLICK",Kl.ROOM_AD_TOOLTIP_SHOW="RORAE_ROOM_AD_TOOLTIP_SHOW",Kl.ROOM_AD_TOOLTIP_HIDE="RORAE_ROOM_AD_TOOLTIP_HIDE";let Rt=Kl;const tc=class tc extends Fn{constructor(e,t,i,n=1){super(e,t),this._sampleId=i,this._pitch=n}get sampleId(){return this._sampleId}get pitch(){return this._pitch}};tc.ROOM_OBJECT_INITIALIZED="ROPSPE_ROOM_OBJECT_INITIALIZED",tc.ROOM_OBJECT_DISPOSED="ROPSPE_ROOM_OBJECT_DISPOSED",tc.PLAY_SAMPLE="ROPSPE_PLAY_SAMPLE",tc.CHANGE_PITCH="ROPSPE_CHANGE_PITCH";let Zt=tc;const _r=class _r extends Se{};_r.SOUND_MACHINE_INIT="ROSM_SOUND_MACHINE_INIT",_r.SOUND_MACHINE_SWITCHED_ON="ROSM_SOUND_MACHINE_SWITCHED_ON",_r.SOUND_MACHINE_SWITCHED_OFF="ROSM_SOUND_MACHINE_SWITCHED_OFF",_r.SOUND_MACHINE_DISPOSE="ROSM_SOUND_MACHINE_DISPOSE",_r.JUKEBOX_INIT="ROSM_JUKEBOX_INIT",_r.JUKEBOX_SWITCHED_ON="ROSM_JUKEBOX_SWITCHED_ON",_r.JUKEBOX_SWITCHED_OFF="ROSM_JUKEBOX_SWITCHED_OFF",_r.JUKEBOX_DISPOSE="ROSM_JUKEBOX_DISPOSE";let Ot=_r;const D1=class D1 extends Fn{constructor(e,t,i=0){super(e,t),this._state=i}get state(){return this._state}};D1.STATE_CHANGE="ROSCE_STATE_CHANGE",D1.STATE_RANDOM="ROSCE_STATE_RANDOM";let We=D1;class Qr extends Ee{constructor(e,t,i,n,r,a,o=!1,l=!1,u=!1,c=!1){super(e,t,i,o,l,u,c),this._tileX=n,this._tileY=r,this._tileZ=a}get tileX(){return this._tileX}get tileY(){return this._tileY}get tileZ(){return this._tileZ}get tileXAsInt(){return Math.trunc(this._tileX+.499)}get tileYAsInt(){return Math.trunc(this._tileY+.499)}get tileZAsInt(){return Math.trunc(this._tileZ+.499)}}class hh extends Ee{constructor(e,t,i,n,r,a,o,l,u,c=!1,h=!1,f=!1,d=!1){super(e,t,i,c,h,f,d),this._wallLocation=new M,this._wallWd=new M,this._wallHt=new M,this._wallLocation.assign(n),this._wallWd.assign(r),this._wallHt.assign(a),this._x=o,this._y=l,this._direction=u}get wallLocation(){return this._wallLocation}get wallWidth(){return this._wallWd}get wallHeight(){return this._wallHt}get x(){return this._x}get y(){return this._y}get direction(){return this._direction}}const ze=class ze extends Fn{constructor(e,t){super(e,t)}};ze.OPEN_WIDGET="ROWRE_OPEN_WIDGET",ze.CLOSE_WIDGET="ROWRE_CLOSE_WIDGET",ze.OPEN_FURNI_CONTEXT_MENU="ROWRE_OPEN_FURNI_CONTEXT_MENU",ze.CLOSE_FURNI_CONTEXT_MENU="ROWRE_CLOSE_FURNI_CONTEXT_MENU",ze.PLACEHOLDER="ROWRE_PLACEHOLDER",ze.CREDITFURNI="ROWRE_CREDITFURNI",ze.STACK_HEIGHT="ROWRE_STACK_HEIGHT",ze.EXTERNAL_IMAGE="ROWRE_EXTERNAL_IMAGE",ze.STICKIE="ROWRE_STICKIE",ze.PRESENT="ROWRE_PRESENT",ze.TROPHY="ROWRE_TROPHY",ze.TEASER="ROWRE_TEASER",ze.ECOTRONBOX="ROWRE_ECOTRONBOX",ze.DIMMER="ROWRE_DIMMER",ze.WIDGET_REMOVE_DIMMER="ROWRE_WIDGET_REMOVE_DIMMER",ze.CLOTHING_CHANGE="ROWRE_CLOTHING_CHANGE",ze.JUKEBOX_PLAYLIST_EDITOR="ROWRE_JUKEBOX_PLAYLIST_EDITOR",ze.MANNEQUIN="ROWRE_MANNEQUIN",ze.PET_PRODUCT_MENU="ROWRE_PET_PRODUCT_MENU",ze.GUILD_FURNI_CONTEXT_MENU="ROWRE_GUILD_FURNI_CONTEXT_MENU",ze.MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG="ROWRE_MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG",ze.PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG="ROWRE_PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG",ze.BACKGROUND_COLOR="ROWRE_BACKGROUND_COLOR",ze.MYSTERYBOX_OPEN_DIALOG="ROWRE_MYSTERYBOX_OPEN_DIALOG",ze.EFFECTBOX_OPEN_DIALOG="ROWRE_EFFECTBOX_OPEN_DIALOG",ze.MYSTERYTROPHY_OPEN_DIALOG="ROWRE_MYSTERYTROPHY_OPEN_DIALOG",ze.ACHIEVEMENT_RESOLUTION_OPEN="ROWRE_ACHIEVEMENT_RESOLUTION_OPEN",ze.ACHIEVEMENT_RESOLUTION_ENGRAVING="ROWRE_ACHIEVEMENT_RESOLUTION_ENGRAVING",ze.ACHIEVEMENT_RESOLUTION_FAILED="ROWRE_ACHIEVEMENT_RESOLUTION_FAILED",ze.FRIEND_FURNITURE_CONFIRM="ROWRE_FRIEND_FURNITURE_CONFIRM",ze.FRIEND_FURNITURE_ENGRAVING="ROWRE_FRIEND_FURNITURE_ENGRAVING",ze.BADGE_DISPLAY_ENGRAVING="ROWRE_BADGE_DISPLAY_ENGRAVING",ze.HIGH_SCORE_DISPLAY="ROWRE_HIGH_SCORE_DISPLAY",ze.HIDE_HIGH_SCORE_DISPLAY="ROWRE_HIDE_HIGH_SCORE_DISPLAY",ze.INERNAL_LINK="ROWRE_INTERNAL_LINK",ze.ROOM_LINK="ROWRE_ROOM_LINK",ze.YOUTUBE="ROWRE_YOUTUBE";let x=ze;class oQ{constructor(e,t,i,n,r,a,o=0,l=0,u=!1,c=!1,h=!1,f=!1){this._type=e,this._eventId=t,this._canvasId=i,this._spriteTag=n,this._screenX=r,this._screenY=a,this._localX=o,this._localY=l,this._ctrlKey=u,this._altKey=c,this._shiftKey=h,this._buttonDown=f,this._spriteOffsetX=0,this._spriteOffsetY=0}get type(){return this._type}get eventId(){return this._eventId}get canvasId(){return this._canvasId}get spriteTag(){return this._spriteTag}get screenX(){return this._screenX}get screenY(){return this._screenY}get localX(){return this._localX}get localY(){return this._localY}get ctrlKey(){return this._ctrlKey}get altKey(){return this._altKey}get shiftKey(){return this._shiftKey}get buttonDown(){return this._buttonDown}get spriteOffsetX(){return this._spriteOffsetX}set spriteOffsetX(e){this._spriteOffsetX=e}get spriteOffsetY(){return this._spriteOffsetY}set spriteOffsetY(e){this._spriteOffsetY=e}}class lQ extends Ye{constructor(e){super(e)}}const Z2=class Z2 extends lQ{constructor(e,t){super(e),this._targetLocation=t}get targetLocation(){return this._targetLocation}};Z2.ROAME_MOVE_TO="ROAME_MOVE_TO";let Yc=Z2;const L1=class L1 extends ft{constructor(e,t,i=!1,n=!1){super(L1.ROOM_ZOOM,e),this._level=t,this._forceFlip=i,this._asDelta=n}get level(){return this._level}get forceFlip(){return this._forceFlip}get asDelta(){return this._asDelta}};L1.ROOM_ZOOM="REE_ROOM_ZOOM";let MP=L1;const U1=class U1 extends Ye{constructor(e,t){super(U1.IMAGE_READY),this._badgeId=e,this._image=t}get badgeId(){return this._badgeId}get image(){return this._image}};U1.IMAGE_READY="BIME_BADGE_IMAGE_READY";let Xc=U1;const F1=class F1 extends Ye{constructor(e,t){super(F1.MYSTERY_BOX_KEYS_UPDATE),this._boxColor=e,this._keyColor=t}get boxColor(){return this._boxColor}get keyColor(){return this._keyColor}};F1.MYSTERY_BOX_KEYS_UPDATE="mbke_update";let IR=F1;const B1=class B1 extends Ye{constructor(){super(B1.PERKS_UPDATED)}};B1.PERKS_UPDATED="PUE_perks_updated";let NP=B1;const ic=class ic extends Ye{constructor(e,t,i=!0){super(e),this._session=t,this._openLandingView=i}get session(){return this._session}get openLandingView(){return this._openLandingView}};ic.CREATED="RSE_CREATED",ic.STARTED="RSE_STARTED",ic.ENDED="RSE_ENDED",ic.ROOM_DATA="RSE_ROOM_DATA";let Ae=ic;const rs=class rs extends Ae{constructor(e,t,i,n,r,a=0,o,l=null,u=-1){super(e,t),this._objectId=i,this._message=n,this._chatType=r,this._chatColours=o,this._links=l,this._extraParam=u,this._style=a}get objectId(){return this._objectId}get message(){return this._message}get chatType(){return this._chatType}get links(){return this._links}get extraParam(){return this._extraParam}get style(){return this._style}get chatColours(){return this._chatColours}};rs.CHAT_EVENT="RSCE_CHAT_EVENT",rs.FLOOD_EVENT="RSCE_FLOOD_EVENT",rs.CHAT_TYPE_SPEAK=0,rs.CHAT_TYPE_WHISPER=1,rs.CHAT_TYPE_SHOUT=2,rs.CHAT_TYPE_RESPECT=3,rs.CHAT_TYPE_PETRESPECT=4,rs.CHAT_TYPE_HAND_ITEM_RECEIVED=5,rs.CHAT_TYPE_PETTREAT=6,rs.CHAT_TYPE_PETREVIVE=7,rs.CHAT_TYPE_PET_REBREED_FERTILIZE=8,rs.CHAT_TYPE_PET_SPEED_FERTILIZE=9,rs.CHAT_TYPE_MUTE_REMAINING=10;let yt=rs;const G1=class G1 extends Ae{constructor(e,t,i,n,r,a){super(G1.CONFIRM_PET_BREEDING,e),this._nestId=t,this._pet1=i,this._pet2=n,this._rarityCategories=r,this._resultPetTypeId=a}get nestId(){return this._nestId}get pet1(){return this._pet1}get pet2(){return this._pet2}get rarityCategories(){return this._rarityCategories}get resultPetTypeId(){return this._resultPetTypeId}};G1.CONFIRM_PET_BREEDING="RSPFUE_CONFIRM_PET_BREEDING";let RR=G1;const V1=class V1 extends Ae{constructor(e,t,i){super(V1.RSPFUE_CONFIRM_PET_BREEDING_RESULT,e),this._breedingNestStuffId=t,this._result=i}get breedingNestStuffId(){return this._breedingNestStuffId}get result(){return this._result}};V1.RSPFUE_CONFIRM_PET_BREEDING_RESULT="RSPFUE_CONFIRM_PET_BREEDING_RESULT";let SR=V1;const j1=class j1 extends Ae{constructor(e,t,i){super(j1.RSDE_DANCE,e),this._roomIndex=t,this._danceId=i}get roomIndex(){return this._roomIndex}get danceId(){return this._danceId}};j1.RSDE_DANCE="RSDE_DANCE";let bR=j1;class uQ{constructor(e,t,i,n){this._id=e,this._type=t,this._color=i,this._brightness=n}get id(){return this._id}get type(){return this._type}get color(){return this._color}get brightness(){return this._brightness}}const J2=class J2 extends Ae{constructor(e,t){super(e,t),this._selectedPresetId=0,this._presets=[]}storePreset(e,t,i,n){this._presets[e-1]=new uQ(e,t,i,n)}getPreset(e){return e<0||e>=this._presets.length?null:this._presets[e]}get presetCount(){return this._presets.length}get selectedPresetId(){return this._selectedPresetId}set selectedPresetId(e){this._selectedPresetId=e}};J2.ROOM_DIMMER_PRESETS="RSDPE_PRESETS";let Zm=J2;const Fd=class Fd extends Ae{constructor(e,t,i){super(e,t),this._userName="",this._userName=i}get userName(){return this._userName}};Fd.DOORBELL="RSDE_DOORBELL",Fd.RSDE_REJECTED="RSDE_REJECTED",Fd.RSDE_ACCEPTED="RSDE_ACCEPTED";let Po=Fd;const Is=class Is extends Ae{constructor(e,t,i=null){super(e,t),this._message=i}get message(){return this._message}};Is.RSEME_KICKED="RSEME_KICKED",Is.RSEME_PETS_FORBIDDEN_IN_HOTEL="RSEME_PETS_FORBIDDEN_IN_HOTEL",Is.RSEME_PETS_FORBIDDEN_IN_FLAT="RSEME_PETS_FORBIDDEN_IN_FLAT",Is.RSEME_MAX_PETS="RSEME_MAX_PETS",Is.RSEME_MAX_NUMBER_OF_OWN_PETS="RSEME_MAX_NUMBER_OF_OWN_PETS",Is.RSEME_NO_FREE_TILES_FOR_PET="RSEME_NO_FREE_TILES_FOR_PET",Is.RSEME_SELECTED_TILE_NOT_FREE_FOR_PET="RSEME_SELECTED_TILE_NOT_FREE_FOR_PET",Is.RSEME_BOTS_FORBIDDEN_IN_HOTEL="RSEME_BOTS_FORBIDDEN_IN_HOTEL",Is.RSEME_BOTS_FORBIDDEN_IN_FLAT="RSEME_BOTS_FORBIDDEN_IN_FLAT",Is.RSEME_BOT_LIMIT_REACHED="RSEME_BOT_LIMIT_REACHED",Is.RSEME_SELECTED_TILE_NOT_FREE_FOR_BOT="RSEME_SELECTED_TILE_NOT_FREE_FOR_BOT",Is.RSEME_BOT_NAME_NOT_ACCEPTED="RSEME_BOT_NAME_NOT_ACCEPTED";let Ui=Is;const z1=class z1 extends Ae{constructor(e,t,i,n,r){super(z1.FAVOURITE_GROUP_UPDATE,e),this._roomIndex=t,this._habboGroupId=i,this._habboGroupName=r,this._status=n}get roomIndex(){return this._roomIndex}get habboGroupId(){return this._habboGroupId}get habboGroupName(){return this._habboGroupName}get status(){return this._status}};z1.FAVOURITE_GROUP_UPDATE="RSFGUE_FAVOURITE_GROUP_UPDATE";let AR=z1;const H1=class H1 extends Ae{constructor(e,t,i,n){super(H1.RSFRE_FRIEND_REQUEST,e),this._requestId=0,this._userId=0,this._requestId=t,this._userId=i,this._userName=n}get requestId(){return this._requestId}get userId(){return this._userId}get userName(){return this._userName}};H1.RSFRE_FRIEND_REQUEST="RSFRE_FRIEND_REQUEST";let OR=H1;const W1=class W1 extends Ae{constructor(e,t,i){super(W1.NEST_BREEDING_SUCCESS,e),this._petId=t,this._rarityCategory=i}get rarityCategory(){return this._rarityCategory}get petId(){return this._petId}};W1.NEST_BREEDING_SUCCESS="RSPFUE_NEST_BREEDING_SUCCESS";let wR=W1;const Y1=class Y1 extends Ae{constructor(e,t,i,n){super(Y1.PET_BREEDING,e),this._state=t,this._ownPetId=i,this._otherPetId=n}get state(){return this._state}get ownPetId(){return this._ownPetId}get otherPetId(){return this._otherPetId}};Y1.PET_BREEDING="RSPFUE_PET_BREEDING";let CR=Y1;const X1=class X1 extends Ae{constructor(e,t,i){super(X1.PET_BREEDING_RESULT,e),this._resultData=t,this._otherResultData=i}get resultData(){return this._resultData}get otherResultData(){return this._otherResultData}};X1.PET_BREEDING_RESULT="RSPFUE_PET_BREEDING_RESULT";let MR=X1;const K1=class K1 extends Ae{constructor(e,t,i,n){super(K1.PET_COMMANDS,e),this._petId=t,this._allCommandIds=i,this._enabledCommandIds=n}get id(){return this._petId}get commands(){return this._allCommandIds}get enabledCommands(){return this._enabledCommandIds}};K1.PET_COMMANDS="RSPIUE_ENABLED_PET_COMMANDS";let PP=K1;const q1=class q1 extends Ae{constructor(e,t,i){super(q1.PET_FIGURE_UPDATE,e),this._petId=t,this._figure=i}get id(){return this._petId}get figure(){return this._figure}};q1.PET_FIGURE_UPDATE="RSPFUE_PET_FIGURE_UPDATE";let NR=q1;const $1=class $1 extends Ae{constructor(e,t){super($1.PET_INFO,e),this._petInfo=t}get petInfo(){return this._petInfo}};$1.PET_INFO="RSPIUE_PET_INFO";let PR=$1;const Q1=class Q1 extends Ae{constructor(e,t,i){super(Q1.PET_LEVEL_UPDATE,e),this._petId=t,this._level=i}get petId(){return this._petId}get level(){return this._level}};Q1.PET_LEVEL_UPDATE="RSPLUE_PET_LEVEL_UPDATE";let kR=Q1;const Z1=class Z1 extends Ae{constructor(e,t,i,n,r,a){super(e,t),this._objectId=-1,this._nameValidationStatus=0,this._nameValidationInfo=null,this._objectId=i,this._figureData=n,this._nameValidationStatus=r,this._nameValidationInfo=a}get objectId(){return this._objectId}get figureData(){return this._figureData}get nameValidationStatus(){return this._nameValidationStatus}get nameValidationInfo(){return this._nameValidationInfo}};Z1.RSOPPE_OPEN_PET_PACKAGE_REQUESTED="RSOPPE_OPEN_PET_PACKAGE_REQUESTED",Z1.RSOPPE_OPEN_PET_PACKAGE_RESULT="RSOPPE_OPEN_PET_PACKAGE_RESULT";let Nh=Z1;const J1=class J1 extends Ae{constructor(e,t,i,n,r,a){super(J1.PET_STATUS_UPDATE,e),this._petId=t,this._canBreed=i,this._canHarvest=n,this._canRevive=r,this._hasBreedingPermission=a}get petId(){return this._petId}get canBreed(){return this._canBreed}get canHarvest(){return this._canHarvest}get canRevive(){return this._canRevive}get hasBreedingPermission(){return this._hasBreedingPermission}};J1.PET_STATUS_UPDATE="RSPFUE_PET_STATUS_UPDATE";let xR=J1;const Bd=class Bd extends Ae{constructor(e,t,i){super(e,t),this._id=-1,this._numQuestions=0,this._startMessage="",this._endMessage="",this._questionArray=null,this._npsPoll=!1,this._id=i}get id(){return this._id}get headline(){return this._headline}set headline(e){this._headline=e}get summary(){return this._summary}set summary(e){this._summary=e}get numQuestions(){return this._numQuestions}set numQuestions(e){this._numQuestions=e}get startMessage(){return this._startMessage}set startMessage(e){this._startMessage=e}get endMessage(){return this._endMessage}set endMessage(e){this._endMessage=e}get questionArray(){return this._questionArray}set questionArray(e){this._questionArray=e}get npsPoll(){return this._npsPoll}set npsPoll(e){this._npsPoll=e}};Bd.OFFER="RSPE_POLL_OFFER",Bd.ERROR="RSPE_POLL_ERROR",Bd.CONTENT="RSPE_POLL_CONTENT";let so=Bd;const eC=class eC extends Ae{constructor(e,t,i,n,r,a,o,l,u){super(e,t),this._classId=0,this._itemType="",this._placedItemId=0,this._placedItemType="",this._classId=i,this._itemType=n,this._productCode=r,this._placedItemId=a,this._placedItemType=o,this._placedInRoom=l,this._petFigureString=u}get classId(){return this._classId}get itemType(){return this._itemType}get productCode(){return this._productCode}get placedItemId(){return this._placedItemId}get placedInRoom(){return this._placedInRoom}get placedItemType(){return this._placedItemType}get petFigureString(){return this._petFigureString}};eC.RSPE_PRESENT_OPENED="RSPE_PRESENT_OPENED";let Jm=eC;const tC=class tC extends Ae{constructor(e,t){super(e,t)}};tC.RSDUE_ALLOW_PETS="RSDUE_ALLOW_PETS";let ev=tC;const fo=class fo extends Ae{constructor(e,t,i,n=!1){super(fo.QUEUE_STATUS,e),this._name=t,this._target=i,this._queues=new Map,this._isActive=n}get isActive(){return this._isActive}get queueSetName(){return this._name}get queueSetTarget(){return this._target}get queueTypes(){return Array.from(this._queues.keys())}getQueueSize(e){return this._queues.get(e)}addQueue(e,t){this._queues.set(e,t)}};fo.QUEUE_STATUS="RSQE_QUEUE_STATUS",fo.QUEUE_TYPE_CLUB="c",fo.QUEUE_TYPE_NORMAL="d",fo.QUEUE_TARGET_VISITOR=2,fo.QUEUE_TARGET_SPECTATOR=1;let kP=fo;const iC=class iC extends Ae{constructor(e,t){super(e,t)}};iC.SPECTATOR_MODE="RSSME_SPECTATOR_MODE";let tv=iC;const eE=class eE extends Ae{constructor(e,t,i){super(eE.RSUBE_BADGES,e),this._userId=0,this._badges=[],this._userId=t,this._badges=i}get userId(){return this._userId}get badges(){return this._badges}};eE.RSUBE_BADGES="RSUBE_BADGES";let DR=eE;const tE=class tE extends Ae{constructor(e,t){super(tE.USER_DATA_UPDATED,e),this._addedUsers=t}get addedUsers(){return this._addedUsers}};tE.USER_DATA_UPDATED="RMUDUE_USER_DATA_UPDATED";let LR=tE;const iE=class iE extends Ae{constructor(e,t,i,n,r,a,o,l,u){super(iE.USER_FIGURE,e),this._roomIndex=0,this._figure="",this._gender="",this._customInfo="",this._roomIndex=t,this._figure=i,this._gender=n,this._customInfo=r,this._achievementScore=a,this._backgroundId=o,this._standId=l,this._overlayId=u}get roomIndex(){return this._roomIndex}get figure(){return this._figure}get gender(){return this._gender}get customInfo(){return this._customInfo}get activityPoints(){return this._achievementScore}get backgroundId(){return this._backgroundId}get standId(){return this._standId}get overlayId(){return this._overlayId}};iE.USER_FIGURE="RSUBE_FIGURE";let UR=iE;const sE=class sE extends Ye{constructor(e,t){super(sE.UTRE_USER_TAGS_RECEIVED),this._userId=e,this._tags=t}get userId(){return this._userId}get tags(){return this._tags}};sE.UTRE_USER_TAGS_RECEIVED="UTRE_USER_TAGS_RECEIVED";let xP=sE;const nE=class nE extends Ae{constructor(e,t,i,n,r=null,a=0){super(e,t),this._question="",this._SafeStr_7654=0,this._choices=[],this._SafeStr_7651=[],this._question=i,this._choices=n,this._SafeStr_7651=r,this._SafeStr_7651==null&&(this._SafeStr_7651=[]),this._SafeStr_7654=a}get question(){return this._question}get choices(){return this._choices.slice()}get _SafeStr_4173(){return this._SafeStr_7651.slice()}get _SafeStr_4174(){return this._SafeStr_7654}};nE.VOTE_QUESTION="RSPE_VOTE_QUESTION",nE.VOTE_RESULT="RSPE_VOTE_RESULT";let iv=nE;const Gd=class Gd extends Ae{constructor(e,t,i=-1){super(e,t),this._id=-1,this._pollType=null,this._pollId=-1,this._questionId=-1,this._duration=-1,this._question=null,this._userId=-1,this._id=i}get id(){return this._id}get pollType(){return this._pollType}set pollType(e){this._pollType=e}get pollId(){return this._pollId}set pollId(e){this._pollId=e}get questionId(){return this._questionId}set questionId(e){this._questionId=e}get duration(){return this._duration}set duration(e){this._duration=e}get question(){return this._question}set question(e){this._question=e}get userId(){return this._userId}set userId(e){this._userId=e}get value(){return this._value}set value(e){this._value=e}get answerCounts(){return this._answerCounts}set answerCounts(e){this._answerCounts=e}};Gd.QUESTION="RWPUW_NEW_QUESTION",Gd.FINISHED="RWPUW_QUESION_FINSIHED",Gd.ANSWERED="RWPUW_QUESTION_ANSWERED";let no=Gd;const rE=class rE extends Ye{constructor(e){super(rE.UPDATED),this._uiFlags=e}get uiFlags(){return this._uiFlags}};rE.UPDATED="APUE_UPDATED";let FR=rE;const aE=class aE extends Ye{constructor(e){super(aE.UNUE_NAME_UPDATED),this._name=e}get name(){return this._name}};aE.UNUE_NAME_UPDATED="unue_name_updated";let sv=aE;class hQ{constructor(){this._messageIdByEvent=new Map,this._messageIdByComposer=new Map,this._messageInstancesById=new Map}dispose(){this._messageIdByEvent.clear(),this._messageIdByComposer.clear(),this._messageInstancesById.clear()}registerMessages(e){for(const[t,i]of e.events)this.registerMessageEventClass(t,i);for(const[t,i]of e.composers)this.registerMessageComposerClass(t,i)}registerMessageEventClass(e,t){!e||!t||this._messageIdByEvent.set(t,e)}registerMessageComposerClass(e,t){!e||!t||this._messageIdByComposer.set(t,e)}registerMessageEvent(e){if(!e)return;const t=this.getEventId(e);if(!t)return;let i=this._messageInstancesById.get(t);(!i||!i.length)&&(i=[],this._messageInstancesById.set(t,i)),i.push(e)}removeMessageEvent(e){if(!e)return;const t=this.getEventId(e);if(!t)return;const i=this._messageInstancesById.get(t);if(i){for(const[n,r]of i.entries())if(r&&r===e){i.splice(n,1),i.length===0&&this._messageInstancesById.delete(t),r.dispose();return}}}getEvents(e){if(!e)return;const t=this._messageInstancesById.get(e);if(t)return t}getEventId(e){if(!e)return-1;const t=e instanceof A?e.constructor:e,i=this._messageIdByEvent.get(t);return i||-1}getComposerId(e){if(!e)return-1;const t=this._messageIdByComposer.get(e.constructor);return t||-1}}class cQ extends fn{constructor(e,t){super(),this._communicationManager=e,this._stateListener=t,this._socket=null,this._messages=new hQ,this._codec=new nQ,this._dataBuffer=null,this._isReady=!1,this._pendingClientMessages=[],this._pendingServerMessages=[],this._isAuthenticated=!1,this.onOpen=this.onOpen.bind(this),this.onClose=this.onClose.bind(this),this.onError=this.onError.bind(this),this.onMessage=this.onMessage.bind(this)}init(e){this._stateListener&&this._stateListener.connectionInit(e),this.createSocket(e)}onDispose(){super.onDispose(),this.destroySocket(),this._communicationManager=null,this._stateListener=null,this._messages=null,this._codec=null,this._dataBuffer=null}onReady(){this._isReady||(this._isReady=!0,this._pendingServerMessages&&this._pendingServerMessages.length&&this.processWrappers(...this._pendingServerMessages),this._pendingClientMessages&&this._pendingClientMessages.length&&this.send(...this._pendingClientMessages),this._pendingServerMessages=[],this._pendingClientMessages=[])}createSocket(e){e&&(this.destroySocket(),this._dataBuffer=new ArrayBuffer(0),this._socket=new WebSocket(e),this._socket.binaryType="arraybuffer",this._socket.addEventListener(hr.CONNECTION_OPENED,this.onOpen),this._socket.addEventListener(hr.CONNECTION_CLOSED,this.onClose),this._socket.addEventListener(hr.CONNECTION_ERROR,this.onError),this._socket.addEventListener(hr.CONNECTION_MESSAGE,this.onMessage))}destroySocket(){this._socket&&(this._socket.removeEventListener(hr.CONNECTION_OPENED,this.onOpen),this._socket.removeEventListener(hr.CONNECTION_CLOSED,this.onClose),this._socket.removeEventListener(hr.CONNECTION_ERROR,this.onError),this._socket.removeEventListener(hr.CONNECTION_MESSAGE,this.onMessage),this._socket.readyState===WebSocket.OPEN&&this._socket.close(),le.error("Bye Bye connection."),this._socket=null)}onOpen(e){this.dispatchConnectionEvent(wi.CONNECTION_OPENED,e)}onClose(e){this.dispatchConnectionEvent(wi.CONNECTION_CLOSED,e)}onError(e){this.dispatchConnectionEvent(wi.CONNECTION_ERROR,e)}onMessage(e){e&&(this._dataBuffer=this.concatArrayBuffers(this._dataBuffer,e.data),this.processReceivedData())}dispatchConnectionEvent(e,t){this.dispatchEvent(new wi(e,this,t))}authenticated(){this._isAuthenticated=!0}send(...e){if(this.disposed||!e)return!1;if(e=[...e],this._isAuthenticated&&!this._isReady)return this._pendingClientMessages||(this._pendingClientMessages=[]),this._pendingClientMessages.push(...e),!1;for(const t of e){if(!t)continue;const i=this._messages.getComposerId(t);if(i===-1){le.packets("Unknown Composer",t.constructor.name);continue}const n=t.getMessageArray(),r=this._codec.encode(i,n);if(!r){le.packets("Encoding Failed",t.constructor.name);continue}le.packets("OutgoingComposer",i,t.constructor.name,n),this.write(r.getBuffer())}return!0}write(e){this._socket.readyState===WebSocket.OPEN&&this._socket.send(e)}processReceivedData(){try{this.processData()}catch(e){le.error(e)}}processData(){const e=this.splitReceivedMessages();if(!(!e||!e.length)){if(this._isAuthenticated&&!this._isReady){this._pendingServerMessages||(this._pendingServerMessages=[]),this._pendingServerMessages.push(...e);return}this.processWrappers(...e)}}processWrappers(...e){if(!(!e||!e.length))for(const t of e){if(!t)continue;const i=this.getMessagesForWrapper(t);!i||!i.length||(le.packets("IncomingMessage",t.header,i[0].constructor.name,i[0].parser),this.handleMessages(...i))}}splitReceivedMessages(){return!this._dataBuffer||!this._dataBuffer.byteLength?null:this._codec.decode(this)}concatArrayBuffers(e,t){const i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),e.byteLength),i.buffer}getMessagesForWrapper(e){if(!e)return null;const t=this._messages.getEvents(e.header);if(!t||!t.length){le.packets("IncomingMessage",e.header,"UNREGISTERED",e);return}try{const i=new t[0].parserClass;if(!i||!i.flush()||!i.parse(e))return null;for(const n of t)n.parser=i}catch(i){return le.error("Error parsing message",i,t[0].constructor.name),null}return t}handleMessages(...e){e=[...e];for(const t of e)t&&(t.connection=this,t.callBack&&t.callBack(t))}registerMessages(e){e&&this._messages.registerMessages(e)}addMessageEvent(e){!e||!this._messages||this._messages.registerMessageEvent(e)}removeMessageEvent(e){!e||!this._messages||this._messages.removeMessageEvent(e)}get isAuthenticated(){return this._isAuthenticated}get dataBuffer(){return this._dataBuffer}set dataBuffer(e){this._dataBuffer=e}}class fQ extends Bs{constructor(){super(),this._connections=[]}onDispose(){if(!(!this._connections||!this._connections.length))for(const e of this._connections.values())e&&e.dispose()}createConnection(e=null){const t=new cQ(this,e);if(t)return this._connections.push(t),t}update(e){let t=0;for(;t<this._connections.length;){const i=this._connections[t];if(i.processReceivedData(),this.disposed)return;i.disposed?this._connections.splice(t,1):t++}}}const oE=class oE extends Ye{constructor(e){super(e)}};oE.LOADED="NCE_LOADED",oE.FAILED="NCE_FAILED";let Ao=oE;class dQ extends Yr{constructor(){super(),this._definitions=new Map,this._config=[],this._pendingUrls=[],this._missingKeys=[],this.onConfigurationLoaded=this.onConfigurationLoaded.bind(this)}onInit(){Te.parseConfiguration(this.getDefaultConfig(),!0),this._pendingUrls=Te.getValue("config.urls").slice(),this.loadNextConfiguration()}loadNextConfiguration(){if(!this._pendingUrls.length){this.dispatchConfigurationEvent(Ao.LOADED);return}this.loadConfigurationFromUrl(this._pendingUrls[0])}loadConfigurationFromUrl(e){if(!e||e===""){this.dispatchConfigurationEvent(Ao.FAILED);return}fetch(e).then(t=>t.json()).then(t=>this.onConfigurationLoaded(t,e)).catch(t=>this.onConfigurationFailed(t))}onConfigurationLoaded(e,t){if(e){if(Te.parseConfiguration(e)){const i=this._pendingUrls.indexOf(t);i>=0&&this._pendingUrls.splice(i,1),this.loadNextConfiguration();return}this.dispatchConfigurationEvent(Ao.FAILED)}}onConfigurationFailed(e){this.dispatchConfigurationEvent(Ao.FAILED)}dispatchConfigurationEvent(e){this.events&&this.events.dispatchEvent(new Ao(e))}getDefaultConfig(){return NitroConfig}}const _o=class _o{static sayHello(){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){const e=[`
%c %c %c Nitro ${_o.UI_VERSION} - Renderer ${_o.RENDERER_VERSION} %c %c %c https://discord.nitrodev.co %c %c
`,"background: #ffffff; padding:5px 0;","background: #ffffff; padding:5px 0;","color: #ffffff; background: #000000; padding:5px 0;","background: #ffffff; padding:5px 0;","background: #ffffff; padding:5px 0;","background: #000000; padding:5px 0;","background: #ffffff; padding:5px 0;","background: #ffffff; padding:5px 0;"];self.console.log(...e)}else self.console&&self.console.log(`Nitro ${_o.UI_VERSION} - Renderer ${_o.RENDERER_VERSION} `)}};_o.RENDERER_VERSION="1.6.6",_o.UI_VERSION="";let nv=_o;class _Q extends Bs{constructor(){super(),nv.sayHello(),this._configuration=new dQ,this._communication=new fQ}onDispose(){this._communication&&(this._communication.dispose(),this._communication=null)}get configuration(){return this._configuration}get communication(){return this._communication}}class gQ{constructor(e){this._id=parseInt(e.id),this._value=parseInt(e.id),this._prevents=e.prevents||[],this._preventHeadTurn=e.preventHeadTurn||!1,this._isAnimated=!0,e.animated!==void 0&&e.animated===!1&&(this._isAnimated=!1)}get id(){return this._id}get value(){return this._value}get prevents(){return this._prevents}get preventHeadTurn(){return this._preventHeadTurn}get isAnimated(){return this._isAnimated}}class pQ{constructor(e){if(this._id=e.id,this._state=e.state,this._precedence=e.precedence,this._activePartSet=e.activePartSet,this._assetPartDefinition=e.assetPartDefinition,this._lay=e.lay,this._geometryType=e.geometryType,this._isMain=e.main||!1,this._isDefault=e.isDefault||!1,this._isAnimation=e.animation||!1,this._startFromFrameZero=e.startFromFrameZero||!1,this._prevents=e.prevents||[],this._preventHeadTurn=e.preventHeadTurn||!1,this._types=new Map,this._params=new Map,this._defaultParameterValue="",this._canvasOffsets=null,e.params&&e.params.length>0)for(const t of e.params)t&&(t.id==="default"?this._defaultParameterValue=t.value:this._params.set(t.id,t.value));if(e.types&&e.types.length>0)for(const t of e.types){if(!t)continue;const i=new gQ(t);this._types.set(i.id,i)}}setOffsets(e,t,i){this._canvasOffsets||(this._canvasOffsets=new Map);let n=this._canvasOffsets.get(e);n||(n=new Map,this._canvasOffsets.set(e,n)),n.set(t,i)}getOffsets(e,t){if(!this._canvasOffsets)return null;const i=this._canvasOffsets.get(e);return i?i.get(t):null}getType(e){if(!e)return null;const t=this._types.get(parseInt(e));return t||null}getParameterValue(e){if(!e)return"";const t=this._params.get(e);return t||this._defaultParameterValue}getPrevents(e){return this._prevents.concat(this.getTypePrevents(e))}getTypePrevents(e){if(!e)return[];const t=this._types.get(parseInt(e));return t?t.prevents:[]}getPreventHeadTurn(e){if(!e)return this._preventHeadTurn;const t=this.getType(e);return t?t.preventHeadTurn:this._preventHeadTurn}isAnimated(e){if(!e)return!0;const t=this.getType(e);return t?t.isAnimated:!0}get id(){return this._id}get state(){return this._state}get precedence(){return this._precedence}get activePartSet(){return this._activePartSet}get assetPartDefinition(){return this._assetPartDefinition}get lay(){return this._lay}get geometryType(){return this._geometryType}get isMain(){return this._isMain}get isDefault(){return this._isDefault}get isAnimation(){return this._isAnimation}get startFromFrameZero(){return this._startFromFrameZero}get prevents(){return this._prevents}get preventHeadTurn(){return this._preventHeadTurn}get params(){return this._params}}class BR{constructor(e,t="",i=0){this._actionType=e||"",this._actionParameter=t||"",this._definition=null,this._startFrame=i||0,this._overridingAction=null}dispose(){this._actionType=null,this._actionParameter=null,this._definition=null}get id(){return this._definition?this._definition.id+"_"+this._actionParameter:""}get actionType(){return this._actionType}get actionParameter(){return this._actionParameter}set actionParameter(e){this._actionParameter=e}get definition(){return this._definition}set definition(e){this._definition=e}get startFrame(){return this._startFrame}get overridingAction(){return this._overridingAction}set overridingAction(e){this._overridingAction=e}}class mQ{constructor(e,t){this._assets=e,this._actions=new Map,this._defaultAction=null,this.updateActions(t)}updateActions(e){if(e){for(const t of e.actions){if(!t||!t.state)continue;const i=new pQ(t);this._actions.set(i.state,i)}e.actionOffsets&&this.parseActionOffsets(e.actionOffsets)}}parseActionOffsets(e){if(!(!e||!e.length))for(const t of e){const i=this._actions.get(t.action);if(i)for(const n of t.offsets){const r=n.size||"",a=n.direction;if(r===""||a===void 0)continue;const o=n.x||0,l=n.y||0,u=n.z||0;i.setOffsets(r,a,[o,l,u])}}}getActionDefinition(e){if(!e)return null;for(const t of this._actions.values())if(!(!t||t.id!==e))return t;return null}getActionDefinitionWithState(e){const t=this._actions.get(e);return t||null}getDefaultAction(){if(this._defaultAction)return this._defaultAction;for(const e of this._actions.values())if(!(!e||!e.isDefault))return this._defaultAction=e,e;return null}getCanvasOffsets(e,t,i){let n=[];for(const r of e){if(!r)continue;const a=this._actions.get(r.actionType),o=a&&a.getOffsets(t,i);o&&(n=o)}return n}sortActions(e){if(!e)return null;e=this.filterActions(e);const t=[];for(const i of e){if(!i)continue;const n=this._actions.get(i.actionType);n&&(i.definition=n,t.push(i))}return t.sort(this.sortByPrecedence),t}filterActions(e){let t=[];const i=[];for(const n of e){if(!n)continue;const r=this._actions.get(n.actionType);r&&(t=t.concat(r.getPrevents(n.actionParameter)))}for(const n of e){if(!n)continue;let r=n.actionType;n.actionType==="fx"&&(r=r+("."+n.actionParameter)),!(t.indexOf(r)>=0)&&i.push(n)}return i}sortByPrecedence(e,t){if(!e||!t)return 0;const i=e.definition.precedence,n=t.definition.precedence;return i<n?1:i>n?-1:0}}class vQ{constructor(e,t){this._name=e,this._link=t.link,this._flipH=t.flipH,this._flipV=t.flipV}get name(){return this._name}get link(){return this._link}get flipH(){return this._flipH}get flipV(){return this._flipV}}class EQ{constructor(e,t){this._avatarRenderManager=e,this._aliases=new Map,this._assets=t,this._missingAssetNames=[]}dispose(){this._assets=null,this._aliases=null}reset(){this.init()}init(){for(const e of this._assets.collections.values()){if(!e)continue;const t=e.data&&e.data.aliases;if(t)for(const i in t){const n=t[i];n&&this._aliases.set(i,new vQ(i,n))}}}hasAlias(e){return!!this._aliases.get(e)}getAssetName(e){let t=e,i=5;for(;this.hasAlias(t)&&i>=0;)t=this._aliases.get(t).link,i--;return t}getAsset(e){if(!this._assets)return null;e=this.getAssetName(e);const t=this._assets.getAsset(e);return t||null}}class yQ{constructor(e){this._id=e.id||"",this._align=e.align||"",this._base=e.base||"",this._ink=e.ink||0,this._blend=0;const t=e.blend;t&&t.length>0&&(this._blend=parseInt(t),this._blend>1&&(this._blend=this._blend/100))}get id(){return this._id}get align(){return this._align}get base(){return this._base}get ink(){return this._ink}get blend(){return this._blend}get isBlended(){return this._blend!==1}}const lE=class lE{constructor(e,t,i){if(this._id=e.id,this._animationFrame=e.frame||0,this._dx=e.dx||0,this._dy=e.dy||0,this._dz=e.dz||0,this._directionOffset=e.dd||0,this._type=t,this._base=e.base||"",this._items=new Map,e.items)for(const n of e.items)this._items.set(n.id,n.base);this._base!==""&&this.baseAsInt().toString(),i&&(this._action=new BR(i.state,this.base),this._action.definition=i)}get items(){return this._items}baseAsInt(){let e=0,t=0;for(;t<this._base.length;)e=e+this._base.charCodeAt(t),t++;return e}get id(){return this._id}get animationFrame(){return this._animationFrame}get dx(){return this._dx}get dy(){return this._dy}get dz(){return this._dz}get dd(){return this._directionOffset}get type(){return this._type}get base(){return this._base}get action(){return this._action}};lE.BODYPART="bodypart",lE.FX="fx";let qn=lE;class TQ{constructor(e){this._ink=e.ink;let t=e.foreground,i=e.background;t=t.replace("#",""),i=i.replace("#",""),this._foreGround=parseInt(t,16),this._backGround=parseInt(i,16),this._colorTransform=null,this._rgb=parseInt(t,16),this._r=this._rgb>>16&255,this._g=this._rgb>>8&255,this._b=this._rgb>>0&255,this._redMultiplier=this._r/255*1,this._greenMultiplier=this._g/255*1,this._blueMultiplier=this._b/255*1,this._alphaMultiplier=1,this._paletteIsGrayscale=!0,this._ink===37&&(this._alphaMultiplier=.5,this._paletteIsGrayscale=!1),this._colorTransform=new F$({red:this._r/255,green:this._g/255,blue:this._b/255,alpha:this._alphaMultiplier}),this._colorMap=this.generatePaletteMapForGrayscale(this._backGround,this._foreGround)}get ink(){return this._ink}get colorTransform(){return this._colorTransform}get reds(){return this._colorMap.get("reds")}get greens(){return this._colorMap.get("greens")}get blues(){return this._colorMap.get("blues")}get alphas(){return this._colorMap.get("alphas")}get paletteIsGrayscale(){return this._paletteIsGrayscale}generatePaletteMapForGrayscale(e,t){const i=e>>24&255,n=e>>16&255,r=e>>8&255,a=e>>0&255,o=t>>24&255,l=t>>16&255,u=t>>8&255,c=t>>0&255,h=(o-i)/255,f=(l-n)/255,d=(u-r)/255,_=(c-a)/255,g=new Map,p=[],m=[],v=[];let E=i,y=n,T=r,w=a;for(let C=0;C<256;C++)y==n&&T==r&&w==a&&(E=0),E=E+h,y=y+f,T=T+d,w=w+_,p.push(E<<24|y<<16|T<<8|w),m.push(E<<24|y<<16|T<<8|w),v.push(E<<24|y<<16|T<<8|w);return g.set("alphas",p),g.set("reds",p),g.set("greens",m),g.set("blues",v),g}}class IQ{constructor(e){this._offset=e.offset}get offset(){return this._offset}}class RQ{constructor(e,t){this._animation=e,this._id=t.id,this._ink=t.ink,this._member=t.member,this._hasStaticY=!!t.staticY,this._hasDirections=!!t.directions,this._dx=[],this._dy=[],this._dz=[];const i=t.directionList;if(i&&i.length)for(const n of i){const r=n.id;r!==void 0&&(this._dx[r]=n.dx||0,this._dy[r]=n.dy||0,this._dz[r]=n.dz||0)}}getDirectionOffsetX(e){return e<this._dx.length?this._dx[e]:0}getDirectionOffsetY(e){return e<this._dy.length?this._dy[e]:0}getDirectionOffsetZ(e){return e<this._dz.length?this._dz[e]:0}get animation(){return this._animation}get id(){return this._id}get ink(){return this._ink}get member(){return this._member}get hasDirections(){return this._hasDirections}get hasStaticY(){return this._hasStaticY}}const sc=class sc{constructor(e,t){if(this._id=t.name,this._description=this._id,this._frames=[],this._spriteData=null,this._avatarData=null,this._directionData=null,this._removeData=null,this._addData=null,this._overriddenActions=null,this._overrideFrames=null,this._resetOnToggle=t.resetOnToggle||!1,t.sprites&&t.sprites.length){this._spriteData=[];for(const i of t.sprites)this._spriteData.push(new RQ(this,i))}if(t.avatars&&t.avatars.length&&(this._avatarData=new TQ(t.avatars[0])),t.directions&&t.directions.length&&(this._directionData=new IQ(t.directions[0])),t.removes&&t.removes.length){this._removeData=[];for(const i of t.removes)this._removeData.push(i.id)}if(t.adds&&t.adds.length){this._addData=[];for(const i of t.adds)this._addData.push(new yQ(i))}if(t.overrides&&t.overrides.length){this._overrideFrames=new Map,this._overriddenActions=new Map;for(const i of t.overrides){const n=i.name,r=i.override;this._overriddenActions.set(r,n);const a=[];this.parseFrames(a,i.frames,e),this._overrideFrames.set(n,a)}}this.parseFrames(this._frames,t.frames,e)}parseFrames(e,t,i){if(!(!t||!t.length))for(const n of t){let r=1;n.repeats&&n.repeats>1&&(r=n.repeats);let a=0;for(;a<r;){const o=[];if(n.bodyparts&&n.bodyparts.length)for(const l of n.bodyparts){const u=i.getActionDefinition(l.action),c=new qn(l,qn.BODYPART,u);o.push(c)}if(n.fxs&&n.fxs.length)for(const l of n.fxs){const u=i.getActionDefinition(l.action),c=new qn(l,qn.FX,u);o.push(c)}e.push(o),a++}}}frameCount(e=null){if(!e)return this._frames.length;if(this._overrideFrames){const t=this._overrideFrames.get(e);if(t)return t.length}return 0}hasOverriddenActions(){return this._overriddenActions?this._overriddenActions.size>0:!1}overriddenActionNames(){if(!this._overriddenActions)return null;const e=[];for(const t of this._overriddenActions.keys())e.push(t);return e}overridingAction(e){return this._overriddenActions?this._overriddenActions.get(e):null}getFrame(e,t=null){e<0&&(e=0);let i=[];if(!t)this._frames.length>0&&(i=this._frames[e%this._frames.length]);else{const n=this._overrideFrames.get(t);n&&n.length>0&&(i=n[e%n.length])}return i}getAnimatedBodyPartIds(e,t=null){const i=[];for(const n of this.getFrame(e,t))if(n.type===qn.BODYPART)i.push(n.id);else if(n.type===qn.FX&&this._addData&&this._addData.length)for(const r of this._addData)r.id===n.id&&i.push(r.align);return i}getLayerData(e,t,i=null){for(const n of this.getFrame(e,i)){if(n.id===t)return n;if(n.type===qn.FX&&this._addData&&this._addData.length){for(const r of this._addData)if(r.align===t&&r.id===n.id)return n}}return null}hasAvatarData(){return this._avatarData!==null}hasDirectionData(){return this._directionData!==null}hasAddData(){return this._addData!==null}getAddData(e){if(this._addData){for(const t of this._addData)if(t.id===e)return t}return null}get id(){return this._id}get spriteData(){return this._spriteData||sc.EMPTY_ARRAY}get avatarData(){return this._avatarData}get directionData(){return this._directionData}get removeData(){return this._removeData||sc.EMPTY_ARRAY}get addData(){return this._addData||sc.EMPTY_ARRAY}toString(){return this._description}get resetOnToggle(){return this._resetOnToggle}};sc.EMPTY_ARRAY=[];let GR=sc;class SQ{constructor(){this._animations=new Map}registerAnimation(e,t){if(!t)return!1;const i=t[Object.keys(t)[0]],n=new GR(e,i);return this._animations.set(i.name,n),!0}getAnimation(e){const t=this._animations.get(e);return t||null}getLayerData(e,t,i){const n=this.getAnimation(e);return n?n.getLayerData(t,i):null}get animations(){return this._animations}}const Rs=class Rs extends fn{constructor(e,t,i,n){super(),this._state=Rs.NOT_LOADED,this._libraryName=e,this._revision=t,this._downloadUrl=n,this._assets=i,this._downloadUrl=this._downloadUrl.replace(/%libname%/gi,this._libraryName),this._downloadUrl=this._downloadUrl.replace(/%revision%/gi,this._revision),this._assets.getCollection(this._libraryName)&&(this._state=Rs.LOADED)}async downloadAsset(){if(!this._assets||this._state===Rs.LOADING||this._state===Rs.LOADED)return;if(this._assets.getCollection(this._libraryName)){this._state=Rs.LOADED,this.dispatchEvent(new gu(gu.DOWNLOAD_COMPLETE,this));return}this._state=Rs.LOADING,await this._assets.downloadAsset(this._downloadUrl)&&(this._state=Rs.LOADED,this.dispatchEvent(new gu(gu.DOWNLOAD_COMPLETE,this)))}get libraryName(){return this._libraryName}get isLoaded(){return this._state===Rs.LOADED}};Rs.DOWNLOAD_COMPLETE="AADL_DOWNLOAD_COMPLETE",Rs.NOT_LOADED=0,Rs.LOADING=1,Rs.LOADED=2;let VR=Rs;const ql=class ql extends fn{constructor(e,t){super(),this._assets=e,this._structure=t,this._missingMandatoryLibs=Te.getValue("avatar.mandatory.libraries"),this._figureMap=new Map,this._pendingContainers=[],this._figureListeners=new Map,this._incompleteFigures=new Map,this._pendingDownloadQueue=[],this._currentDownloads=[],this._libraryNames=[],this._isReady=!1,this.onLibraryLoaded=this.onLibraryLoaded.bind(this),this.onAvatarRenderReady=this.onAvatarRenderReady.bind(this),this.loadFigureMap(),this._structure.renderManager.events.addEventListener(G_.AVATAR_RENDER_READY,this.onAvatarRenderReady)}loadFigureMap(){const e=Te.getValue("avatar.figuremap.url");fetch(e).then(t=>t.json()).then(t=>{this.processFigureMap(t.libraries),this.processMissingLibraries(),this._isReady=!0,this.dispatchEvent(new Ye(ql.DOWNLOADER_READY))}).catch(t=>le.error(t))}processFigureMap(e){if(e)for(const t of e){if(!t)continue;const i=t.id,n=t.revision||"";if(this._libraryNames.indexOf(i)>=0)continue;this._libraryNames.push(i);const r=new VR(i,n,this._assets,Te.getValue("avatar.asset.url"));if(r.addEventListener(gu.DOWNLOAD_COMPLETE,this.onLibraryLoaded),t.parts==null){console.error("Missing parts for "+i,t);continue}for(const a of t.parts){const o=a.id,u=a.type+":"+o;let c=this._figureMap.get(u);c||(c=[]),c.push(r),this._figureMap.set(u,c)}}}onAvatarRenderReady(e){if(e){for(const[t,i]of this._pendingContainers)this.downloadAvatarFigure(t,i);this._pendingContainers=[]}}onLibraryLoaded(e){if(!e||!e.library)return;const t=[];for(const[n,r]of this._incompleteFigures.entries()){let a=!0;for(const o of r)if(!(!o||o.isLoaded)){a=!1;break}if(a){t.push(n);const o=this._figureListeners.get(n);if(o)for(const l of o)!l||l.disposed||l.resetFigure(n);this._figureListeners.delete(n),this.dispatchEvent(new Ye(ql.LIBRARY_LOADED))}}for(const n of t)n&&this._incompleteFigures.delete(n);let i=0;for(;i<this._currentDownloads.length;){const n=this._currentDownloads[i];n&&n.libraryName===e.library.libraryName&&this._currentDownloads.splice(i,1),i++}}processMissingLibraries(){const e=this._missingMandatoryLibs.slice();for(const t of e){if(!t)continue;const i=this._figureMap.get(t);if(i)for(const n of i)n&&this.downloadLibrary(n)}}isAvatarFigureContainerReady(e){return!this._isReady||!this._structure.renderManager.isReady?!1:!this.getAvatarFigurePendingLibraries(e).length}getAvatarFigurePendingLibraries(e){const t=[];if(!e||!this._structure)return t;const i=this._structure.figureData;if(!i)return t;const n=e.getPartTypeIds();for(const r of n){const a=i.getSetType(r);if(!a)continue;const o=a.getPartSet(e.getPartSetId(r));if(o)for(const l of o.parts){if(!l)continue;const u=l.type+":"+l.id,c=this._figureMap.get(u);if(c!==void 0)for(const h of c)!h||h.isLoaded||t.indexOf(h)>=0||t.push(h)}}return t}downloadAvatarFigure(e,t){if(!this._isReady||!this._structure.renderManager.isReady){this._pendingContainers.push([e,t]);return}const i=e.getFigureString(),n=this.getAvatarFigurePendingLibraries(e);if(n&&n.length){if(t&&!t.disposed){let r=this._figureListeners.get(i);r||(r=[],this._figureListeners.set(i,r)),r.push(t)}this._incompleteFigures.set(i,n);for(const r of n)r&&this.downloadLibrary(r)}else t&&!t.disposed&&t.resetFigure(i)}downloadLibrary(e){!e||e.isLoaded||this._pendingDownloadQueue.indexOf(e)>=0||this._currentDownloads.indexOf(e)>=0||(this._pendingDownloadQueue.push(e),this.processDownloadQueue())}processDownloadQueue(){for(;this._pendingDownloadQueue.length;)this._pendingDownloadQueue[0].downloadAsset(),this._currentDownloads.push(this._pendingDownloadQueue.shift())}};ql.DOWNLOADER_READY="AADM_DOWNLOADER_READY",ql.LIBRARY_LOADED="AADM_LIBRARY_LOADED",ql.MAX_DOWNLOADS=2;let Dl=ql;class Hp{constructor(e){this._parts=new Map,this.parseFigure(e)}getPartTypeIds(){return this.partSets().keys()}hasPartType(e){return!!this.partSets().get(e)}getPartSetId(e){const t=this.partSets().get(e);return t?t.get("setid"):0}getPartColorIds(e){const t=this.partSets().get(e);return t?t.get("colorids"):null}updatePart(e,t,i){const n=new Map;n.set("type",e),n.set("setid",t),n.set("colorids",i);const r=this.partSets();r.delete(e),r.set(e,n)}removePart(e){this.partSets().delete(e)}getFigureString(){const e=[];for(const t of this.partSets().keys()){if(!t)continue;let i=[];i.push(t),i.push(this.getPartSetId(t)),i=i.concat(this.getPartColorIds(t)),e.push(i.join("-"))}return e.join(".")}partSets(){return this._parts||(this._parts=new Map),this._parts}parseFigure(e){e||(e="");for(const t of e.split(".")){const i=t.split("-");if(i.length>=2){const n=i[0],r=parseInt(i[1]),a=[];let o=2;for(;o<i.length;)a.push(parseInt(i[o])),o++;this.updatePart(n,r,a)}}}}/*!
* @pixi/filter-color-matrix - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/filter-color-matrix is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var jR=function(s,e){return jR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},jR(s,e)};function bQ(s,e){jR(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var AQ=`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float m[20];
uniform float uAlpha;
void main(void)
{
vec4 c = texture2D(uSampler, vTextureCoord);
if (uAlpha == 0.0) {
gl_FragColor = c;
return;
}
// Un-premultiply alpha before applying the color matrix. See issue #3539.
if (c.a > 0.0) {
c.rgb /= c.a;
}
vec4 result;
result.r = (m[0] * c.r);
result.r += (m[1] * c.g);
result.r += (m[2] * c.b);
result.r += (m[3] * c.a);
result.r += m[4];
result.g = (m[5] * c.r);
result.g += (m[6] * c.g);
result.g += (m[7] * c.b);
result.g += (m[8] * c.a);
result.g += m[9];
result.b = (m[10] * c.r);
result.b += (m[11] * c.g);
result.b += (m[12] * c.b);
result.b += (m[13] * c.a);
result.b += m[14];
result.a = (m[15] * c.r);
result.a += (m[16] * c.g);
result.a += (m[17] * c.b);
result.a += (m[18] * c.a);
result.a += m[19];
vec3 rgb = mix(c.rgb, result.rgb, uAlpha);
// Premultiply alpha again.
rgb *= result.a;
gl_FragColor = vec4(rgb, result.a);
}
`,rv=function(s){bQ(e,s);function e(){var t=this,i={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return t=s.call(this,aq,AQ,i)||this,t.alpha=1,t}return e.prototype._loadMatrix=function(t,i){i===void 0&&(i=!1);var n=t;i&&(this._multiply(n,this.uniforms.m,t),n=this._colorMatrix(n)),this.uniforms.m=n},e.prototype._multiply=function(t,i,n){return t[0]=i[0]*n[0]+i[1]*n[5]+i[2]*n[10]+i[3]*n[15],t[1]=i[0]*n[1]+i[1]*n[6]+i[2]*n[11]+i[3]*n[16],t[2]=i[0]*n[2]+i[1]*n[7]+i[2]*n[12]+i[3]*n[17],t[3]=i[0]*n[3]+i[1]*n[8]+i[2]*n[13]+i[3]*n[18],t[4]=i[0]*n[4]+i[1]*n[9]+i[2]*n[14]+i[3]*n[19]+i[4],t[5]=i[5]*n[0]+i[6]*n[5]+i[7]*n[10]+i[8]*n[15],t[6]=i[5]*n[1]+i[6]*n[6]+i[7]*n[11]+i[8]*n[16],t[7]=i[5]*n[2]+i[6]*n[7]+i[7]*n[12]+i[8]*n[17],t[8]=i[5]*n[3]+i[6]*n[8]+i[7]*n[13]+i[8]*n[18],t[9]=i[5]*n[4]+i[6]*n[9]+i[7]*n[14]+i[8]*n[19]+i[9],t[10]=i[10]*n[0]+i[11]*n[5]+i[12]*n[10]+i[13]*n[15],t[11]=i[10]*n[1]+i[11]*n[6]+i[12]*n[11]+i[13]*n[16],t[12]=i[10]*n[2]+i[11]*n[7]+i[12]*n[12]+i[13]*n[17],t[13]=i[10]*n[3]+i[11]*n[8]+i[12]*n[13]+i[13]*n[18],t[14]=i[10]*n[4]+i[11]*n[9]+i[12]*n[14]+i[13]*n[19]+i[14],t[15]=i[15]*n[0]+i[16]*n[5]+i[17]*n[10]+i[18]*n[15],t[16]=i[15]*n[1]+i[16]*n[6]+i[17]*n[11]+i[18]*n[16],t[17]=i[15]*n[2]+i[16]*n[7]+i[17]*n[12]+i[18]*n[17],t[18]=i[15]*n[3]+i[16]*n[8]+i[17]*n[13]+i[18]*n[18],t[19]=i[15]*n[4]+i[16]*n[9]+i[17]*n[14]+i[18]*n[19]+i[19],t},e.prototype._colorMatrix=function(t){var i=new Float32Array(t);return i[4]/=255,i[9]/=255,i[14]/=255,i[19]/=255,i},e.prototype.brightness=function(t,i){var n=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(n,i)},e.prototype.tint=function(t,i){var n=t>>16&255,r=t>>8&255,a=t&255,o=[n/255,0,0,0,0,0,r/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(o,i)},e.prototype.greyscale=function(t,i){var n=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(n,i)},e.prototype.blackAndWhite=function(t){var i=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.hue=function(t,i){t=(t||0)/180*Math.PI;var n=Math.cos(t),r=Math.sin(t),a=Math.sqrt,o=1/3,l=a(o),u=n+(1-n)*o,c=o*(1-n)-l*r,h=o*(1-n)+l*r,f=o*(1-n)+l*r,d=n+o*(1-n),_=o*(1-n)-l*r,g=o*(1-n)-l*r,p=o*(1-n)+l*r,m=n+o*(1-n),v=[u,c,h,0,0,f,d,_,0,0,g,p,m,0,0,0,0,0,1,0];this._loadMatrix(v,i)},e.prototype.contrast=function(t,i){var n=(t||0)+1,r=-.5*(n-1),a=[n,0,0,0,r,0,n,0,0,r,0,0,n,0,r,0,0,0,1,0];this._loadMatrix(a,i)},e.prototype.saturate=function(t,i){t===void 0&&(t=0);var n=t*2/3+1,r=(n-1)*-.5,a=[n,r,r,0,0,r,n,r,0,0,r,r,n,0,0,0,0,0,1,0];this._loadMatrix(a,i)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(t){var i=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.sepia=function(t){var i=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.technicolor=function(t){var i=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.polaroid=function(t){var i=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.toBGR=function(t){var i=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.kodachrome=function(t){var i=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.browni=function(t){var i=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.vintage=function(t){var i=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.colorTone=function(t,i,n,r,a){t=t||.2,i=i||.15,n=n||16770432,r=r||3375104;var o=(n>>16&255)/255,l=(n>>8&255)/255,u=(n&255)/255,c=(r>>16&255)/255,h=(r>>8&255)/255,f=(r&255)/255,d=[.3,.59,.11,0,0,o,l,u,t,0,c,h,f,i,0,o-c,l-h,u-f,0,0];this._loadMatrix(d,a)},e.prototype.night=function(t,i){t=t||.1;var n=[t*-2,-t,0,0,0,-t,0,t,0,0,0,t,t*2,0,0,0,0,0,1,0];this._loadMatrix(n,i)},e.prototype.predator=function(t,i){var n=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(n,i)},e.prototype.lsd=function(t){var i=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(i,t)},e.prototype.reset=function(){var t=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(t,!1)},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0}),e}(pf);rv.prototype.grayscale=rv.prototype.greyscale;class OQ{constructor(){this._cache=new Map,this.setLastAccessTime(Pe())}dispose(){if(this.debugInfo("[dispose]"),!!this._cache){for(const e of this._cache.values())e&&e.dispose();this._cache.clear()}}getDirectionCache(e){const t=this._cache.get(e.toString());return t||null}updateDirectionCache(e,t){this._cache.set(e.toString(),t)}setLastAccessTime(e){this._lastAccessTime=e}getLastAccessTime(){return this._lastAccessTime}debugInfo(e){}}class DP{constructor(){this._cache=new Map}setAction(e,t){this._currentAction||(this._currentAction=e);const i=this.getActionCache(this._currentAction);i&&i.setLastAccessTime(t),this._currentAction=e}dispose(){if(!this._disposed){if(!this._cache)return;this.disposeActions(0,2147483647),this._cache.clear(),this._cache=null,this._disposed=!0}}disposeActions(e,t){if(!(!this._cache||this._disposed))for(const[i,n]of this._cache.entries()){if(!n)continue;const r=n.getLastAccessTime();t-r>=e&&(n.dispose(),this._cache.delete(i))}}getAction(){return this._currentAction}setDirection(e){this._currentDirection=e}getDirection(){return this._currentDirection}getActionCache(e=null){return this._currentAction?(e||(e=this._currentAction),e.overridingAction?this._cache.get(e.overridingAction):this._cache.get(e.id)):null}updateActionCache(e,t){e.overridingAction?this._cache.set(e.overridingAction,t):this._cache.set(e.id,t)}debugInfo(e){}}class wQ{constructor(e,t,i){this._image=e,this._regPoint=t,this._offset=new Q(0,0),this._regPoint=t,this._isCacheable=i,this.cleanPoints()}dispose(){this._image&&this._image.destroy({children:!0}),this._image=null,this._regPoint=null,this._offset=null}cleanPoints(){}setRegPoint(e){this._regPoint=e,this.cleanPoints()}get image(){return this._image}set image(e){this._image&&this._image!==e&&this._image.destroy({children:!0}),this._image=e}get regPoint(){const e=this._regPoint.clone();return e.x+=this._offset.x,e.y+=this._offset.y,e}set offset(e){this._offset=e,this.cleanPoints()}get isCacheable(){return this._isCacheable}}class CQ{constructor(e){this._partList=e,this._images=new Map}dispose(){for(const e of this._images.values())e&&e.dispose();this._images=null}getPartList(){return this._partList}getImageContainer(e){const t=this._images.get(this.getCacheKey(e));return t||null}updateImageContainer(e,t){const i=this.getCacheKey(t),n=this._images.get(i);n&&n.dispose(),this._images.set(i,e)}getCacheKey(e){let t="";for(const i of this._partList)t+=i.getCacheableKey(e)+"/";return t}debugInfo(e){}}class LP{constructor(e,t,i,n,r,a=null){this._texture=e,this._container=a,this._rect=t,this._regPoint=i,this._flipH=n,this._colorTransform=r,n&&(this._regPoint.x=-this._regPoint.x+t.width)}dispose(){this._texture=null,this._regPoint=null,this._colorTransform=null}get texture(){return this._texture}get container(){return this._container}get rect(){return this._rect}get regPoint(){return this._regPoint}get flipH(){return this._flipH}get colorTransform(){return this._colorTransform}get offsetRect(){return new ve(-this._regPoint.x,-this._regPoint.y,this._rect.width,this._rect.height)}}const sC=class sC{constructor(e,t,i,n){this._structure=e,this._avatar=t,this._assets=i,this._scale=n,this._cache=new Map,this._canvas=null,this._disposed=!1,this._unionImages=[],this._matrix=new dt,this._serverRenderData=[]}dispose(){if(!this._disposed){if(this._structure=null,this._avatar=null,this._assets=null,this._canvas=null,this._disposed=!0,this._cache){for(const e of this._cache.values())e&&e.dispose();this._cache=null}if(this._unionImages){for(const e of this._unionImages)e&&e.dispose();this._unionImages=[]}}}disposeInactiveActions(e=6e4){const t=Pe();if(this._cache)for(const i of this._cache.values())i&&i.disposeActions(e,t)}resetBodyPartCache(e){if(this._cache)for(const t of this._cache.values())t&&t.setAction(e,0)}setDirection(e,t){const i=this._structure.getBodyPartsUnordered(e);if(i)for(const n of i){const r=this.getBodyPartCache(n);r&&r.setDirection(t)}}setAction(e,t){const i=this._structure.getActiveBodyPartIds(e,this._avatar);for(const n of i){const r=this.getBodyPartCache(n);r&&r.setAction(e,t)}}setGeometryType(e){if(this._geometryType!==e){if(this._geometryType===io.SITTING&&e===io.VERTICAL||this._geometryType===io.VERTICAL&&e===io.SITTING||this._geometryType===io.SNOWWARS_HORIZONTAL&&(e=io.SNOWWARS_HORIZONTAL)){this._geometryType=e,this._canvas=null;return}this.disposeInactiveActions(0),this._geometryType=e,this._canvas=null}}getImageContainer(e,t,i=!1){let n=this.getBodyPartCache(e);n||(n=new DP,this._cache.set(e,n));let r=n.getDirection(),a=n.getAction(),o=t;a.definition.startFromFrameZero&&(o-=a.startFrame);let l=a,u=[],c=new Map;const h=new Q;if(!(!a||!a.definition)&&a.definition.isAnimation){let p=r;const m=this._structure.getAnimation(a.definition.state+"."+a.actionParameter),v=t-a.startFrame;if(m){const E=m.getLayerData(v,e,a.overridingAction);E&&(p=r+E.dd,E.dd<0?p<0?p=8+p:p>7&&(p=8-p):p<0?p=p+8:p>7&&(p=p-8),this._scale===kr.LARGE?(h.x=E.dx,h.y=E.dy):(h.x=E.dx/2,h.y=E.dy/2),o=E.animationFrame,E.action&&(a=E.action),E.type===qn.BODYPART?(E.action!=null&&(l=E.action),r=p):E.type===qn.FX&&(r=p),c=E.items),u=m.removeData}}let f=n.getActionCache(l);(!f||i)&&(f=new OQ,n.updateActionCache(l,f));let d=f.getDirectionCache(r);if(!d||i){const p=this._structure.getParts(e,this._avatar.getFigure(),l,this._geometryType,r,u,this._avatar,c);d=new CQ(p),f.updateDirectionCache(r,d)}let _=d.getImageContainer(o);if(!_||i){const p=d.getPartList();if(_=this.renderBodyPart(r,p,o,a,i),_&&!i)_.isCacheable&&d.updateImageContainer(_,o);else return null}const g=this._structure.getFrameBodyPartOffset(l,r,o,e);return h.x+=g.x,h.y+=g.y,_.offset=h,_}getServerRenderData(){return this._serverRenderData=[],this._serverRenderData}getBodyPartCache(e){let t=this._cache.get(e);return t||(t=new DP,this._cache.set(e,t)),t}renderBodyPart(e,t,i,n,r=!1){if(!t||!t.length||!this._canvas&&(this._canvas=this._structure.getCanvas(this._scale,this._geometryType),!this._canvas))return null;const a=Mo.DIRECTION_IS_FLIPPED[e]||!1;let o=n.definition.assetPartDefinition,l=!0,u=t.length-1;for(;u>=0;){const _=t[u];let g=16777215;if(!(e==7&&(_.partType==="fc"||_.partType==="ey"))&&!(_.partType==="ri"&&!_.partId)){const p=_.partId,m=_.getFrameDefinition(i);let v=_.partType,E=0;m?(E=m.number,m.assetPartDefinition&&m.assetPartDefinition!==""&&(o=m.assetPartDefinition)):E=_.getFrameIndex(i);let y=e,T=!1;a&&(o==="wav"&&(v===Es.LEFT_HAND||v===Es.LEFT_SLEEVE||v===Es.LEFT_COAT_SLEEVE)||o==="drk"&&(v===Es.RIGHT_HAND||v===Es.RIGHT_SLEEVE||v===Es.RIGHT_COAT_SLEEVE)||o==="blw"&&v===Es.RIGHT_HAND||o==="sig"&&v===Es.LEFT_HAND||o==="respect"&&v===Es.LEFT_HAND||v===Es.RIGHT_HAND_ITEM||v===Es.LEFT_HAND_ITEM||v===Es.CHEST_PRINT?T=!0:(e===4?y=2:e===5?y=1:e===6&&(y=0),_.flippedPartType!==v&&(v=_.flippedPartType)));let w=this._scale+"_"+o+"_"+v+"_"+p+"_"+y+"_"+E,C=this._assets.getAsset(w);if(C||(w=this._scale+"_std_"+v+"_"+p+"_"+y+"_0",C=this._assets.getAsset(w)),C){const N=C.texture;if(!N||!N.valid||!N.baseTexture)l=!1;else{_.isColorable&&_.color&&(g=_.color.rgb);const P=new Q(-C.x,-C.y);if(T&&(P.x=P.x+(this._scale===kr.LARGE?65:31)),r){const k=new h4;k.name=this._assets.getAssetName(w),k.x=-P.x-33,k.y=-P.y,k.z=this._serverRenderData.length*-1e-4,k.width=C.rectangle.width,k.height=C.rectangle.height,k.flipH=T,o==="lay"&&(k.x=k.x+53),a&&(k.flipH=!k.flipH,k.flipH?k.x=-k.x-N.width:k.x=k.x+65),_.isColorable&&(k.color=`${g}`),this._serverRenderData.push(k)}this._unionImages.push(new LP(N,C.rectangle,P,T,g))}}}u--}if(!this._unionImages.length)return null;const c=this.createUnionImage(this._unionImages,a),h=this._scale===kr.LARGE?this._canvas.height-16:this._canvas.height-8,f=new Q(-c.regPoint.x,h-c.regPoint.y);a&&o!=="lay"&&(f.x=f.x+(this._scale===kr.LARGE?67:31));let d=this._unionImages.length-1;for(;d>=0;){const _=this._unionImages.pop();_&&_.dispose(),d--}return new wQ(c.container,f,l)}convertColorToHex(e){let t=(e*255).toString(16);return t.length<2&&(t="0"+t),t}createUnionImage(e,t){const i=new ve;for(const o of e)o&&i.enlarge(o.offsetRect);const n=new Q(-i.x,-i.y),r=new Qn,a=new kt(Ne.EMPTY);a.width=i.width,a.height=i.height,r.addChild(a);for(const o of e){if(!o)continue;const l=o.texture,u=o.colorTransform,c=!(t&&o.flipH)&&(t||o.flipH),h=n.clone();h.x-=o.regPoint.x,h.y-=o.regPoint.y,t&&(h.x=r.width-(h.x+o.rect.width)),c?(this._matrix.a=-1,this._matrix.tx=o.rect.x+o.rect.width+h.x,this._matrix.ty=h.y-o.rect.y):(this._matrix.a=1,this._matrix.tx=h.x-o.rect.x,this._matrix.ty=h.y-o.rect.y);const f=new kt(l);f.tint=u,f.transform.setFromMatrix(this._matrix),r.addChild(f)}return new LP(null,r.getLocalBounds(),n,t,null,r)}};sC.DEFAULT_MAX_CACHE_STORAGE_TIME_MS=6e4;let zR=sC;const gi=class gi{constructor(e,t,i,n,r,a=null){this._frameCounter=0,this._directionOffset=0,this._isAnimating=!1,this._animationHasResetOnToggle=!1,this._actionsSorted=!1,this._fullImageCacheSize=5,this._isCachedImage=!1,this._useFullImageCache=!1,this._effectIdInUse=-1,this._cachedBodyPartsDirection=-1,this._cachedBodyPartsGeometryType=null,this._cachedBodyPartsAvatarSet=null,this._canvasOffsets=[],this._actions=[],this._cachedBodyParts=[],this._changes=!0,this._disposed=!1,this._effectManager=r,this._structure=e,this._assets=t,this._scale=n,this._effectListener=a,this._scale==null&&(this._scale=kr.LARGE),i==null&&(i=new Hp("hr-893-45.hd-180-2.ch-210-66.lg-270-82.sh-300-91.wa-2007-.ri-1-")),this._figure=i,this._cache=new zR(this._structure,this,this._assets,this._scale),this.setDirection(gi.DEFAULT_AVATAR_SET,gi.DEFAULT_DIRECTION),this._actions=[],this._defaultAction=new BR(oe.POSTURE_STAND),this._defaultAction.definition=this._structure.getActionDefinition(gi.DEFAULT_ACTION),this.resetActions(),this._fullImageCache=new li,this._animationFrameCount=0}getServerRenderData(){return this.getAvatarPartsForCamera(_s.FULL),this._cache.getServerRenderData()}dispose(){if(!this._disposed){if(this._structure=null,this._assets=null,this._mainAction=null,this._figure=null,this._avatarSpriteData=null,this._actions=null,this._image&&(this._image.destroy(),this._image=null),this._cache&&(this._cache.dispose(),this._cache=null),this._fullImageCache){for(const e of this._fullImageCache.getValues())e&&e.destroy();this._fullImageCache=null}this._image=null,this._canvasOffsets=null,this._disposed=!0}}get disposed(){return this._disposed}getFigure(){return this._figure}getScale(){return this._scale}getPartColor(e){return this._structure.getPartColor(this._figure,e)}setDirection(e,t){t=t+this._directionOffset,t<Mo.MIN_DIRECTION&&(t=Mo.MAX_DIRECTION+(t+1)),t>Mo.MAX_DIRECTION&&(t=t-(Mo.MAX_DIRECTION+1)),this._structure.isMainAvatarSet(e)&&(this._mainDirection=t),(e===_s.HEAD||e===_s.FULL)&&(e===_s.HEAD&&this.isHeadTurnPreventedByAction()&&(t=this._mainDirection),this._headDirection=t),this._cache.setDirection(e,t),this._changes=!0}setDirectionAngle(e,t){this.setDirection(e,Math.floor(t/45))}getSprites(){return this._sprites}getCanvasOffsets(){return this._canvasOffsets}getLayerData(e){return this._structure.getBodyPartData(e.animation.id,this._frameCounter,e.id)}updateAnimationByFrames(e=1){this._frameCounter+=e,this._changes=!0}resetAnimationFrameCounter(){this._frameCounter=0,this._changes=!0}getBodyParts(e,t,i){return(i!=this._cachedBodyPartsDirection||t!=this._cachedBodyPartsGeometryType||e!=this._cachedBodyPartsAvatarSet)&&(this._cachedBodyPartsDirection=i,this._cachedBodyPartsGeometryType=t,this._cachedBodyPartsAvatarSet=e,this._cachedBodyParts=this._structure.getBodyParts(e,t,i)),this._cachedBodyParts}getAvatarPartsForCamera(e){if(this._mainAction===null||this._structure.getCanvas(this._scale,this._mainAction.definition.geometryType)===null)return;const i=this.getBodyParts(e,this._mainAction.definition.geometryType,this._mainDirection);for(let n=i.length-1;n>=0;n--){const r=i[n];this._cache.getImageContainer(r,this._frameCounter,!0)}}getImage(e,t,i=1,n=!0){if(!this._changes)return this._image;if(!this._mainAction)return null;this._actionsSorted||this.endActionAppends();const r=this._structure.getCanvas(this._scale,this._mainAction.definition.geometryType);if(!r)return null;this._image&&(this._image.width!==r.width||this._image.height!==r.height)&&(this._reusableTexture&&(this._reusableTexture.destroy(!0),this._reusableTexture=null),this._image=null,this._isCachedImage=!1);const a=this.getBodyParts(e,this._mainAction.definition.geometryType,this._mainDirection);this._image=null;const o=new Qn;let l=!0,u=a.length-1;for(;u>=0;){const c=a[u],h=this._cache.getImageContainer(c,this._frameCounter);if(h){const f=h.image;if(!f)return o.destroy({children:!0}),null;l=l&&h.isCacheable;const d=h.regPoint.clone();if(d){d.x+=r.offset.x,d.y+=r.offset.y,d.x+=r.regPoint.x,d.y+=r.regPoint.y;const _=new Qn;_.addChild(f),_&&(_.position.set(d.x,d.y),o.addChild(_))}}u--}return this._avatarSpriteData&&(o.filters||(o.filters=[]),this._avatarSpriteData.colorTransform&&o.filters.push(this._avatarSpriteData.colorTransform),this._avatarSpriteData.paletteIsGrayscale&&(this.convertToGrayscale(o),o.filters.push(new Gm(this._avatarSpriteData.reds,Gm.CHANNEL_RED)))),n?(this._reusableTexture?(oi.instance.renderer.render(o,{renderTexture:this._reusableTexture,clear:!0}),this._reusableTexture.baseTexture.hitMap=null):this._reusableTexture=St.generateTexture(o,new ve(0,0,r.width,r.height)),this._reusableTexture?(this._image=this._reusableTexture,this._changes=!1,this._image):null):St.generateTexture(o,new ve(0,0,r.width,r.height))}applyPalette(e,t=[],i=[],n=[]){const r=St.generateCanvas(e),a=r.getContext("2d"),o=a.getImageData(0,0,r.width,r.height),l=o.data;for(let c=0;c<l.length;c+=4){if(t.length==256){let h=t[l[c]];h===void 0&&(h=0),l[c]=h>>16&255,l[c+1]=h>>8&255,l[c+2]=h&255}if(i.length==256){let h=i[l[c+1]];h===void 0&&(h=0),l[c]=h>>16&255,l[c+1]=h>>8&255,l[c+2]=h&255}if(n.length==256){let h=i[l[c+2]];h===void 0&&(h=0),l[c]=h>>16&255,l[c+1]=h>>8&255,l[c+2]=h&255}}a.putImageData(o,0,0);const u=new mt(Ne.from(r));return oi.instance.renderer.render(u,{renderTexture:e,clear:!0}),e}getImageAsSprite(e,t=1){if(!this._mainAction)return null;this._actionsSorted||this.endActionAppends();const i=this._structure.getCanvas(this._scale,this._mainAction.definition.geometryType);if(!i)return null;const n=this.getBodyParts(e,this._mainAction.definition.geometryType,this._mainDirection),r=new kt,a=new kt(Ne.EMPTY);a.width=i.width,a.height=i.height,r.addChild(a);let o=n.length-1;for(;o>=0;){const l=n[o],u=this._cache.getImageContainer(l,this._frameCounter);if(u){const c=u.image;if(!c)return r.destroy({children:!0}),null;const h=u.regPoint.clone();if(h){h.x+=i.offset.x,h.y+=i.offset.y,h.x+=i.regPoint.x,h.y+=i.regPoint.y;const f=new Qn;f.addChild(c),f.position.set(h.x,h.y),r.addChild(f)}}o--}return r}getCroppedImage(e,t=1){if(!this._mainAction)return null;this._actionsSorted||this.endActionAppends();const i=this._structure.getCanvas(this._scale,this._mainAction.definition.geometryType);if(!i)return null;const n=this.getBodyParts(e,this._mainAction.definition.geometryType,this._mainDirection),r=new Qn;let a=n.length-1;for(;a>=0;){const u=n[a],c=this._cache.getImageContainer(u,this._frameCounter);if(c){const h=c.image;if(!h)return r.destroy({children:!0}),null;const f=c.regPoint.clone();if(f){f.x+=i.offset.x,f.y+=i.offset.y,f.x+=i.regPoint.x,f.y+=i.regPoint.y;const d=new Qn;d.addChild(h),d&&(d.position.set(f.x,f.y),r.addChild(d))}}a--}const o=St.generateTexture(r,new ve(0,0,i.width,i.height)),l=St.generateImage(o);return l||null}getFullImage(e){const t=this._fullImageCache.getValue(e);return t?(t.valid||(this._fullImageCache.remove(e),t.destroy(!0)),t):null}cacheFullImage(e,t){const i=this._fullImageCache.getValue(e);if(i&&(this._fullImageCache.remove(e),i.destroy(!0)),this._fullImageCache.length===this._fullImageCacheSize){const n=this._fullImageCache.getKey(0);n&&this._fullImageCache.remove(n).destroy(!0)}this._fullImageCache.add(e,t)}getAsset(e){return this._assets.getAsset(e)}getDirection(){return this._mainDirection}initActionAppends(){this._actions=[],this._actionsSorted=!1,this._currentActionsString="",this._useFullImageCache=!1}endActionAppends(){if(this.sortActions()){for(const e of this._sortedActions)e.actionType===oe.EFFECT&&(this._effectManager.isAvatarEffectReady(parseInt(e.actionParameter))||this._effectManager.downloadAvatarEffect(parseInt(e.actionParameter),this));this.resetActions(),this.setActionsToParts()}}appendAction(e,...t){let i="";switch(this._actionsSorted=!1,t&&t.length>0&&(i=t[0]),i!=null&&(i=i.toString()),e){case oe.POSTURE:switch(i){case oe.POSTURE_LAY:case oe.POSTURE_WALK:case oe.POSTURE_STAND:case oe.POSTURE_SWIM:case oe.POSTURE_FLOAT:case oe.POSTURE_SIT:case oe.SNOWWAR_RUN:case oe.SNOWWAR_DIE_FRONT:case oe.SNOWWAR_DIE_BACK:case oe.SNOWWAR_PICK:case oe.SNOWWAR_THROW:(i===oe.POSTURE_LAY||i===oe.POSTURE_LAY||i===oe.POSTURE_LAY)&&(i===oe.POSTURE_LAY&&(this._mainDirection==0?this.setDirection(_s.FULL,4):this.setDirection(_s.FULL,2)),this._useFullImageCache=!0,this._useFullImageCache=!0),this.addActionData(i);break}break;case oe.GESTURE:switch(i){case oe.GESTURE_AGGRAVATED:case oe.GESTURE_SAD:case oe.GESTURE_SMILE:case oe.GESTURE_SURPRISED:this.addActionData(i);break}break;case oe.EFFECT:case oe.DANCE:case oe.TALK:case oe.EXPRESSION_WAVE:case oe.SLEEP:case oe.SIGN:case oe.EXPRESSION_RESPECT:case oe.EXPRESSION_BLOW_A_KISS:case oe.EXPRESSION_LAUGH:case oe.EXPRESSION_CRY:case oe.EXPRESSION_IDLE:case oe.EXPRESSION_SNOWBOARD_OLLIE:case oe.EXPRESSION_SNOWBORD_360:case oe.EXPRESSION_RIDE_JUMP:i===oe.EFFECT&&(i==="33"||i==="34"||i==="35"||i==="36"||i==="38"||i==="39")&&(this._useFullImageCache=!0),this.addActionData(e,i);break;case oe.CARRY_OBJECT:case oe.USE_OBJECT:{const n=this._structure.getActionDefinitionWithState(e);n&&(i=n.getParameterValue(i)),this.addActionData(e,i);break}}return!0}addActionData(e,t=""){let i;this._actions||(this._actions=[]);let n=0;for(;n<this._actions.length;){if(i=this._actions[n],i.actionType==e&&i.actionParameter==t)return;n++}this._actions.push(new BR(e,t,this._frameCounter))}isAnimating(){return this._isAnimating||this._animationFrameCount>1}resetActions(){return this._animationHasResetOnToggle=!1,this._isAnimating=!1,this._sprites=[],this._avatarSpriteData=null,this._directionOffset=0,this._structure.removeDynamicItems(this),this._mainAction=this._defaultAction,this._mainAction.definition=this._defaultAction.definition,this.resetBodyPartCache(this._defaultAction),!0}isHeadTurnPreventedByAction(){let e,t;if(this._sortedActions==null)return!1;for(const i of this._sortedActions)e=this._structure.getActionDefinitionWithState(i.actionType),e!=null&&e.getPreventHeadTurn(i.actionParameter)&&(t=!0);return t}sortActions(){let e,t,i;if(this._currentActionsString="",this._sortedActions=this._structure.sortActions(this._actions),this._animationFrameCount=this._structure.maxFrames(this._sortedActions),!this._sortedActions)this._canvasOffsets=[0,0,0],this._lastActionsString!==""&&(i=!0,this._lastActionsString="");else{this._canvasOffsets=this._structure.getCanvasOffsets(this._sortedActions,this._scale,this._mainDirection);for(const n of this._sortedActions)if(this._currentActionsString=this._currentActionsString+(n.actionType+n.actionParameter),n.actionType===oe.EFFECT){const r=parseInt(n.actionParameter);this._effectIdInUse!==r&&(e=!0),this._effectIdInUse=r,t=!0}t||(this._effectIdInUse>-1&&(e=!0),this._effectIdInUse=-1),e&&this._cache.disposeInactiveActions(0),this._lastActionsString!=this._currentActionsString&&(i=!0,this._lastActionsString=this._currentActionsString)}return this._actionsSorted=!0,i}setActionsToParts(){if(!this._sortedActions==null)return;const e=Pe(),t=[];for(const i of this._sortedActions)t.push(i.actionType);for(const i of this._sortedActions)if(i&&i.definition&&i.definition.isAnimation){const n=this._structure.getAnimation(i.definition.state+"."+i.actionParameter);if(n&&n.hasOverriddenActions()){const r=n.overriddenActionNames();if(r)for(const a of r)t.indexOf(a)>=0&&(i.overridingAction=n.overridingAction(a))}n&&n.resetOnToggle&&(this._animationHasResetOnToggle=!0)}for(const i of this._sortedActions)if(!(!i||!i.definition)&&(i.definition.isAnimation&&i.actionParameter===""&&(i.actionParameter="1"),this.setActionToParts(i,e),i.definition.isAnimation)){this._isAnimating=i.definition.isAnimated(i.actionParameter);const n=this._structure.getAnimation(i.definition.state+"."+i.actionParameter);n&&(this._sprites=this._sprites.concat(n.spriteData),n.hasDirectionData()&&(this._directionOffset=n.directionData.offset),n.hasAvatarData()&&(this._avatarSpriteData=n.avatarData))}}setActionToParts(e,t){e==null||e.definition==null||e.definition.assetPartDefinition!=""&&(e.definition.isMain&&(this._mainAction=e,this._cache.setGeometryType(e.definition.geometryType)),this._cache.setAction(e,t),this._changes=!0)}resetBodyPartCache(e){e&&e.definition.assetPartDefinition!==""&&(e.definition.isMain&&(this._mainAction=e,this._cache.setGeometryType(e.definition.geometryType)),this._cache.resetBodyPartCache(e),this._changes=!0)}get avatarSpriteData(){return this._avatarSpriteData}convertToGrayscale(e,t="CHANNELS_EQUAL"){let i=.33,n=.33,r=.33;switch(t){case gi.CHANNELS_UNIQUE:i=.3,n=.59,r=.11;break;case gi.CHANNELS_RED:i=1,n=0,r=0;break;case gi.CHANNELS_GREEN:i=0,n=1,r=0;break;case gi.CHANNELS_BLUE:i=0,n=0,r=1;break;case gi.CHANNELS_DESATURATED:i=.3086,n=.6094,r=.082;break}const a=new rv;return a.matrix=[i,n,r,0,0,i,n,r,0,0,i,n,r,0,0,0,0,0,1,0],e.filters.push(a),e}errorThis(e){}logThis(e){}isPlaceholder(){return!1}forceActionUpdate(){this._lastActionsString=""}get animationHasResetOnToggle(){return this._animationHasResetOnToggle}get mainAction(){return this._mainAction.actionType}resetEffect(e){e===this._effectIdInUse&&(this.resetActions(),this.setActionsToParts(),this._animationHasResetOnToggle=!0,this._changes=!0,this._effectListener&&this._effectListener.resetEffect(e))}};gi.CHANNELS_EQUAL="CHANNELS_EQUAL",gi.CHANNELS_UNIQUE="CHANNELS_UNIQUE",gi.CHANNELS_RED="CHANNELS_RED",gi.CHANNELS_GREEN="CHANNELS_GREEN",gi.CHANNELS_BLUE="CHANNELS_BLUE",gi.CHANNELS_DESATURATED="CHANNELS_DESATURATED",gi.DEFAULT_ACTION="Default",gi.DEFAULT_DIRECTION=2,gi.DEFAULT_AVATAR_SET=_s.FULL;let av=gi;class Wp{constructor(e){this._number=e.number,this._assetPartDefinition=e.assetPartDefinition||null}get number(){return this._number}get assetPartDefinition(){return this._assetPartDefinition}}class MQ{constructor(e){if(this._frames=[],e.frames&&e.frames.length>0)for(const t of e.frames){if(!t)continue;this._frames.push(new Wp(t));let i=t.repeats||0;if(i>1)for(;--i>0;)this._frames.push(this._frames[this._frames.length-1])}}get frames(){return this._frames}}const nc=class nc{constructor(e){if(this._id=e.id,this._actionParts=new Map,this._bodyPartOffsets=new Map,this._frameCount=0,this._frameIndexes=[],e.parts&&e.parts.length>0)for(const t of e.parts){if(!t)continue;const i=new MQ(t);this._actionParts.set(t.setType,i),this._frameCount=Math.max(this._frameCount,i.frames.length)}if(e.offsets&&e.offsets.frames&&e.offsets.frames.length>0)for(const t of e.offsets.frames){if(!t)continue;const i=t.id;this._frameCount=Math.max(this._frameCount,i);const n=new Map;if(this._bodyPartOffsets.set(i,n),t.directions&&t.directions.length>0)for(const r of t.directions){if(!r)continue;const a=r.id,o=new Map;if(n.set(a,o),r.bodyParts&&r.bodyParts.length>0)for(const l of r.bodyParts){if(!l)continue;const u=l.id;let c=0,h=0;l.dx!==void 0&&(c=l.dx),l.dy!==void 0&&(h=l.dy),o.set(u,new Q(c,h))}}if(this._frameIndexes.push(i),t.repeats!==void 0){let r=t.repeats||0;if(r>1)for(;--r>0;)this._frameIndexes.push(i)}}}getPart(e){if(!e)return null;const t=this._actionParts.get(e);return t||null}getFrameBodyPartOffset(e,t,i){const n=t%this._frameIndexes.length,r=this._frameIndexes[n],a=this._bodyPartOffsets.get(r);if(!a)return nc.DEFAULT_OFFSET;const o=a.get(e);if(!o)return nc.DEFAULT_OFFSET;const l=o.get(i);return l||nc.DEFAULT_OFFSET}get id(){return this._id}get parts(){return this._actionParts}get frameCount(){return this._frameCount}};nc.DEFAULT_OFFSET=new Q(0,0);let V_=nc;class NQ{constructor(){this._actions=new Map}parse(e){if(e&&e.length>0)for(const t of e){if(!t)continue;const i=new V_(t);this._actions.set(i.id,i)}return!0}appendJSON(e){for(const t of e.action)this._actions.set(t.id,new V_(t));return!0}getAction(e){const t=this._actions.get(e.id);return t||null}getFrameCount(e){const t=this.getAction(e);return t?t.frameCount:0}}class PQ{constructor(e,t){this._id=e.id,this._width=e.width,this._height=e.height,this._offset=new Q(e.dx,e.dy),t==kr.LARGE?this._regPoint=new Q((this._width-64)/2,0):this._regPoint=new Q((this._width-32)/2,0)}get width(){return this._width}get height(){return this._height}get offset(){return this._offset}get id(){return this._id}get regPoint(){return this._regPoint}}const uE=class uE extends fn{constructor(e,t){super(),this._dataReceiver=t,this.download(e)}download(e){fetch(e).then(t=>t.json()).then(t=>{this._dataReceiver&&this._dataReceiver.appendJSON(t),this.dispatchEvent(new Ye(uE.AVATAR_STRUCTURE_DONE))}).catch(t=>le.error(t))}};uE.AVATAR_STRUCTURE_DONE="AVATAR_STRUCTURE_DONE";let ov=uE;class kQ{constructor(e){if(!e)throw new Error("invalid_data");this._id=e.id,this._type=e.type,this._index=e.index,this._colorLayerIndex=e.colorindex,this._paletteMapId=-1,this._breed=-1}dispose(){}get id(){return this._id}get type(){return this._type}get breed(){return this._breed}get index(){return this._index}get colorLayerIndex(){return this._colorLayerIndex}get paletteMap(){return this._paletteMapId}}class xQ{constructor(e,t){if(!e||!t)throw new Error("invalid_data");this._id=t.id,this._type=e,this._gender=t.gender,this._clubLevel=t.club,this._isColorable=t.colorable,this._isSelectable=t.selectable,this._parts=[],this._hiddenLayers=[],this._isPreSelectable=t.preselectable,this._isSellable=t.sellable;for(const i of t.parts){const n=new kQ(i),r=this.getPartIndex(n);r!==-1?this._parts.splice(r,0,n):this._parts.push(n)}if(t.hiddenLayers)for(const i of t.hiddenLayers)this._hiddenLayers.push(i.partType)}dispose(){for(const e of this._parts)e.dispose();this._parts=null,this._hiddenLayers=null}getPartIndex(e){const t=this._parts.length;if(!t)return-1;for(let i=0;i<t;i++){const n=this._parts[i];if(n&&!(n.type!==e.type||n.index>e.index))return i}return-1}getPart(e,t){for(const i of this._parts)if(!(i.type!==e||i.id!==t))return i;return null}get id(){return this._id}get type(){return this._type}get gender(){return this._gender}get clubLevel(){return this._clubLevel}get isColorable(){return this._isColorable}get isSelectable(){return this._isSelectable}get parts(){return this._parts}get hiddenLayers(){return this._hiddenLayers}get isPreSelectable(){return this._isPreSelectable}get isSellable(){return this._isSellable}}class DQ{constructor(e){if(!e)throw new Error("invalid_data");this._id=e.id,this._index=e.index,this._clubLevel=e.club||0,this._isSelectable=e.selectable,this._rgb=parseInt("0x"+e.hexCode,16)}get id(){return this._id}get index(){return this._index}get clubLevel(){return this._clubLevel}get isSelectable(){return this._isSelectable}get rgb(){return this._rgb}}class UP{constructor(e){if(!e)throw new Error("invalid_data");this._id=e.id,this._colors=new li,this.append(e)}append(e){for(const t of e.colors){const i=new DQ(t);this._colors.add(t.id.toString(),i)}}getColor(e){return e===void 0||e<0?null:this._colors.getValue(e.toString())||null}get id(){return this._id}get colors(){return this._colors}}class rT{constructor(e){if(!e)throw new Error("invalid_data");this._type=e.type,this._paletteId=e.paletteId,this._isMandatory={},this._isMandatory.F=[e.mandatory_f_0,e.mandatory_f_1],this._isMandatory.M=[e.mandatory_m_0,e.mandatory_m_1],this._partSets=new li,this.append(e)}dispose(){for(const e of this._partSets.getValues())e.dispose();this._partSets=null}cleanUp(e){for(const t of e.sets){const i=t.id.toString(),n=this._partSets.getValue(i);n&&(n.dispose(),this._partSets.remove(i))}}append(e){if(!(!e||!e.sets))for(const t of e.sets)this._partSets.add(t.id.toString(),new xQ(this._type,t))}getDefaultPartSet(e){for(const t of this._partSets.getValues())if(t&&t.clubLevel===0&&(t.gender===e||t.gender==="U"))return t;return null}getPartSet(e){return this._partSets.getValue(e.toString())}get type(){return this._type}get paletteID(){return this._paletteId}isMandatory(e,t){return this._isMandatory[e.toUpperCase()][Math.min(t,1)]}optionalFromClubLevel(e){return this._isMandatory[e.toUpperCase()].indexOf(!1)}get partSets(){return this._partSets}}class LQ{constructor(){this._palettes=new Map,this._setTypes=new Map}dispose(){}parse(e){if(!e)return!1;for(const t of e.palettes){const i=new UP(t);i&&this._palettes.set(i.id.toString(),i)}for(const t of e.setTypes){const i=new rT(t);i&&this._setTypes.set(i.type,i)}return!0}injectJSON(e){for(const t of e.setTypes){const i=this._setTypes.get(t.type);i?i.cleanUp(t):this._setTypes.set(t.type,new rT(t))}this.appendJSON(e)}appendJSON(e){if(!e)return!1;for(const t of e.palettes){const i=t.id.toString(),n=this._palettes.get(i);n?n.append(t):this._palettes.set(i,new UP(t))}for(const t of e.setTypes){const i=t.type,n=this._setTypes.get(i);n?n.append(t):this._setTypes.set(i,new rT(t))}return!1}getMandatorySetTypeIds(e,t){const i=[];for(const n of this._setTypes.values())!n||!n.isMandatory(e,t)||i.push(n.type);return i}getDefaultPartSet(e,t){const i=this._setTypes.get(e);return i?i.getDefaultPartSet(t):null}getSetType(e){return this._setTypes.get(e)||null}getPalette(e){return this._palettes.get(e.toString())||null}getFigurePartSet(e){for(const t of this._setTypes.values()){const i=t.getPartSet(e);if(i)return i}return null}}class FP{constructor(e){if(this._id=e.id,this._parts=[],e.activeParts&&e.activeParts.length>0)for(const t of e.activeParts)t&&this._parts.push(t.setType)}get parts(){return this._parts}}class aT{constructor(e){if(!e)throw new Error("invalid_data");this._setType=e.setType,this._flippedSetType=e.flippedSetType||null,this._removeSetType=e.removeSetType||null,this._appendToFigure=!1,this._staticId=-1}hasStaticId(){return this._staticId>=0}get staticId(){return this._staticId}set staticId(e){this._staticId=e}get setType(){return this._setType}get flippedSetType(){return this._flippedSetType}set flippedSetType(e){this._flippedSetType=e}get removeSetType(){return this._removeSetType}get appendToFigure(){return this._appendToFigure}set appendToFigure(e){this._appendToFigure=e}}class UQ{constructor(){this._parts=new Map,this._activePartSets=new Map}parse(e){if(e.partSet&&e.partSet.length>0)for(const t of e.partSet)t&&this._parts.set(t.setType,new aT(t));if(e.activePartSets&&e.activePartSets.length>0)for(const t of e.activePartSets)t&&this._activePartSets.set(t.id,new FP(t));return!0}appendJSON(e){if(e.partSet&&e.partSet.length>0)for(const t of e.partSet)t&&this._parts.set(t.setType,new aT(t));if(e.activePartSets&&e.activePartSets.length>0)for(const t of e.activePartSets)t&&this._activePartSets.set(t.id,new FP(t));return!1}getActiveParts(e){const t=this._activePartSets.get(e.activePartSet);return t?t.parts:[]}getPartDefinition(e){const t=this._parts.get(e);return t||null}addPartDefinition(e){const t=e.setType;let i=this._parts.get(t);return i||(i=new aT(e),this._parts.set(t,i)),i}getActivePartSet(e){const t=this._activePartSets.get(e.activePartSet);return t||null}get parts(){return this._parts}get activePartSets(){return this._activePartSets}}class oT{constructor(e,t,i,n,r,a,o,l,u="",c=!1,h=1){this._bodyPartId=e,this._partType=t,this._partId=i,this._color=n,this._frames=r,this._action=a,this._isColorable=o,this._paletteMapId=l,this._flippedPartType=u,this._isBlendable=c,this._blendTransform=null,this._partType==="ey"&&(this._isColorable=!1)}getFrameIndex(e){if(!this._frames||!this._frames.length)return 0;const t=e%this._frames.length;return this._frames[t]instanceof Wp?this._frames[t].number:t}getFrameDefinition(e){const t=e%this._frames.length;return this._frames&&this._frames.length>t&&this._frames[t]instanceof Wp?this._frames[t]:null}getCacheableKey(e){const t=e%this._frames.length;if(this._frames&&this._frames.length>t&&this._frames[t]instanceof Wp){const i=this._frames[t];return this.partId+":"+i.assetPartDefinition+":"+i.number}return this.partId+":"+t}get bodyPartId(){return this._bodyPartId}get partType(){return this._partType}get partId(){return this._partId}get color(){return this._color}get action(){return this._action}get isColorable(){return this._isColorable}set isColorable(e){this._isColorable=e}get paletteMapId(){return this._paletteMapId}get flippedPartType(){return this._flippedPartType}get isBlendable(){return this._isBlendable}toString(){return[this._bodyPartId,this._partType,this._partId].join(":")}}const _e=class _e{constructor(){this._gender="M",this._avatarEffectType=-1}loadAvatarData(e,t){this._data=new Map,this._colors=new Map,this._gender=t,this.parseFigureString(e)}dispose(){this._data=null,this._colors=null,this._isDisposed=!0}get disposed(){return this._isDisposed}parseFigureString(e){if(e)for(const t of e.split(".")){const i=t.split("-");if(i.length>0){const n=i[0],r=parseInt(i[1]),a=[];let o=2;for(;o<i.length;)a.push(parseInt(i[o])),o++;a.length||a.push(0),this.savePartSetId(n,r,!1),this.savePartSetColourId(n,a,!1)}}}hasSetType(e){return!!this._data.get(e)}getPartSetId(e){return this.hasSetType(e)?this._data.get(e):-1}getColourIds(e){return this._colors.get(e)?this._colors.get(e):[]}getFigureString(){let e="";const t=[];for(const[n,r]of this._data.entries()){let a=n+"-"+r;const o=this._colors.get(n);if(o)for(const l of o)a=a+("-"+l);t.push(a)}let i=0;for(;i<t.length;)e=e+t[i],i<t.length-1&&(e=e+"."),i++;return e}savePartData(e,t,i,n=!1){this.savePartSetId(e,t,n),this.savePartSetColourId(e,i,n)}savePartSetId(e,t,i=!0){switch(e){case _e.HD:case _e.HAIR:case _e.HAT:case _e.HEAD_ACCESSORIES:case _e.EARRINGS:case _e.EYE_ACCESSORIES:case _e.FACE_ACCESSORIES:case _e.SHIRT:case _e.JACKET:case _e.CHEST_ACCESSORIES:case _e.PURSES:case _e.BACKPACKS:case _e.CHEST_PRINTS:case _e.TROUSERS:case _e.SHOES:case _e.TROUSER_ACCESSORIES:t>=0?this._data.set(e,t):this._data.delete(e)}}savePartSetColourId(e,t,i=!0){switch(e){case _e.HD:case _e.HAIR:case _e.HAT:case _e.HEAD_ACCESSORIES:case _e.EARRINGS:case _e.EYE_ACCESSORIES:case _e.FACE_ACCESSORIES:case _e.SHIRT:case _e.JACKET:case _e.CHEST_ACCESSORIES:case _e.PURSES:case _e.BACKPACKS:case _e.CHEST_PRINTS:case _e.TROUSERS:case _e.SHOES:case _e.TROUSER_ACCESSORIES:this._colors.set(e,t);return}}getFigureStringWithFace(e){const t=[_e.HD];let i="";const n=[];for(const a of t){const o=this._colors.get(a);if(o){let l=this._data.get(a);a===_e.HD&&(l=e);let u=a+"-"+l;if(l>=0){let c=0;for(;c<o.length;)u=u+("-"+o[c]),c++}n.push(u)}}let r=0;for(;r<n.length;)i=i+n[r],r<n.length-1&&(i=i+"."),r++;return i}get gender(){return this._gender}};_e.MALE="M",_e.FEMALE="F",_e.UNISEX="U",_e.SCALE="h",_e.STD="std",_e.DEFAULT_FRAME="0",_e.HD="hd",_e.HAIR="hr",_e.HAT="ha",_e.HEAD_ACCESSORIES="he",_e.EARRINGS="er",_e.EYE_ACCESSORIES="ea",_e.FACE_ACCESSORIES="fa",_e.JACKET="cc",_e.SHIRT="ch",_e.CHEST_ACCESSORIES="ca",_e.PURSES="pu",_e.BACKPACKS="bp",_e.CHEST_PRINTS="cp",_e.TROUSERS="lg",_e.SHOES="sh",_e.TROUSER_ACCESSORIES="wa",_e.BLOCKED_FX_TYPES=[28,29,30,33,34,35,36,37,38,39,40,41,42,43,68];let HR=_e;class XCe{constructor(e){this._data=[],this._maxSize=e,this._index=0}reset(){this._data=[],this._index=0}addValue(e){this._data.length<this._maxSize?this._data.push(e):this._data[this._index]=e,this._index=(this._index+1)%this._maxSize}getMax(){let e=Number.MIN_VALUE,t=0;for(;t<this._maxSize;)this._data[t]>e&&(e=this._data[t]),t++;return e}getMin(){let e=Number.MAX_VALUE,t=0;for(;t<this._maxSize;)this._data[t]<e&&(e=this._data[t]),t++;return e}}class ui{constructor(e,t){this._location=e,this._direction=t}get location(){return this._location}get direction(){return this._direction}}class I0 extends Bs{constructor(){super(),this._object=null,this._events=null,this._time=0}initialize(e){}onDispose(){this._object=null}update(e){this._time=e}processUpdateMessage(e){!e||!this._object||(this._object.setLocation(e.location),this._object.setDirection(e.direction))}getEventTypes(){return[]}mergeTypes(e,t){const i=e.concat();for(const n of t)!n||i.indexOf(n)>=0||i.push(n);return i}mouseEvent(e,t){}useObject(){}setObject(e){if(this._object!==e){if(this._object&&this._object.setLogic(null),!e){this.dispose(),this._object=null;return}this._object=e,this._object.setLogic(this)}}tearDown(){}get object(){return this._object}get eventDispatcher(){return this._events}set eventDispatcher(e){this._events=e}get widget(){return null}get contextMenu(){return null}get time(){return this._time}}class c4{constructor(){this._map=new Map,this._updateCounter=0}dispose(){this._map.clear(),this._updateCounter=0}getValue(e){return this._map.get(e)}setValue(e,t){this._map.has(e)&&this._map.get(e)===t||(this._map.set(e,t),this._updateCounter++)}removeKey(e){e&&(this._map.delete(e),this._updateCounter++)}get updateCounter(){return this._updateCounter}}const hE=class hE extends Bs{constructor(e,t,i){super(),this._id=e,this._instanceId=hE.OBJECT_COUNTER++,this._type=i,this._model=new c4,this._location=new M,this._direction=new M,this._states=[],this._visualization=null,this._logic=null,this._pendingLogicMessages=[],this._updateCounter=0,this._isReady=!1;let n=t-1;for(;n>=0;)this._states[n]=0,n--}onDispose(){this._pendingLogicMessages=[],this.setVisualization(null),this.setLogic(null),this._model&&this._model.dispose(),super.onDispose()}getLocation(){return this._location}setLocation(e){e&&(e.x===this._location.x&&e.y===this._location.y&&e.z===this._location.z||(this._location.x=e.x,this._location.y=e.y,this._location.z=e.z,this._updateCounter++))}getDirection(){return this._direction}setDirection(e){e&&(e.x===this._direction.x&&e.y===this._direction.y&&e.z===this._direction.z||(this._direction.x=(e.x%360+360)%360,this._direction.y=(e.y%360+360)%360,this._direction.z=(e.z%360+360)%360,this._updateCounter++))}getState(e=0){return e>=0&&e<this._states.length?this._states[e]:-1}setState(e,t=0){return t>=0&&t<this._states.length?(this._states[t]!==e&&(this._states[t]=e,this._updateCounter++),!0):!1}setVisualization(e){this._visualization!==e&&(this._visualization&&this._visualization.dispose(),this._visualization=e,this._visualization&&(this._visualization.object=this))}setLogic(e){if(this._logic===e)return;const t=this._logic;if(t&&(this._logic=null,t.setObject(null)),this._logic=e,this._logic)for(this._logic.setObject(this);this._pendingLogicMessages.length;){const i=this._pendingLogicMessages.shift();this._logic.processUpdateMessage(i)}}processUpdateMessage(e){if(this._logic)return this._logic.processUpdateMessage(e);this._pendingLogicMessages.push(e)}tearDown(){this._logic&&this._logic.tearDown()}get id(){return this._id}get instanceId(){return this._instanceId}get type(){return this._type}get model(){return this._model}get visualization(){return this._visualization}get mouseHandler(){return this._logic}get logic(){return this._logic}get location(){return this._location}get direction(){return this._direction}get updateCounter(){return this._updateCounter}set updateCounter(e){this._updateCounter=e}get isReady(){return this._isReady}set isReady(e){this._isReady=e}};hE.OBJECT_COUNTER=0;let WR=hE;const cE=class cE{constructor(){this._id=cE.SPRITE_COUNTER++,this._name="",this._type="",this._spriteType=Js.DEFAULT,this._texture=null,this._container=null,this._width=0,this._height=0,this._offsetX=0,this._offsetY=0,this._flipH=!1,this._flipV=!1,this._direction=0,this._alpha=255,this._blendMode=ge.NORMAL,this._color=16777215,this._relativeDepth=0,this._varyingDepth=!1,this._libraryAssetName="",this._clickHandling=!1,this._visible=!0,this._tag="",this._posture=null,this._alphaTolerance=tr.MATCH_OPAQUE_PIXELS,this._filters=[],this._updateCounter=0,this._updateContainer=!1}dispose(){this._texture=null,this._width=0,this._height=0}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name!==e&&(this._name=e,this._updateCounter++)}get type(){return this._type}set type(e){this._type=e}get spriteType(){return this._spriteType}set spriteType(e){this._spriteType=e}get texture(){return this._texture}set texture(e){this._texture!==e&&(e&&(this._width=e.width,this._height=e.height),this._texture=e,this._updateCounter++)}get container(){return this._container}set container(e){this._container!==e&&(this.texture=Ne.EMPTY,e&&(this._width=e.width,this._height=e.height),this._container=e,this._updateCounter++,this._updateContainer=!0)}get width(){return this._width}get height(){return this._height}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX!==e&&(this._offsetX=e,this._updateCounter++)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY!==e&&(this._offsetY=e,this._updateCounter++)}get flipH(){return this._flipH}set flipH(e){this._flipH!==e&&(this._flipH=e,this._updateCounter++)}get flipV(){return this._flipV}set flipV(e){this._flipV!==e&&(this._flipV=e,this._updateCounter++)}get direction(){return this._direction}set direction(e){this._direction=e}get alpha(){return this._alpha}set alpha(e){e=e&255,this._alpha!==e&&(this._alpha=e,this._updateCounter++)}get blendMode(){return this._blendMode}set blendMode(e){this._blendMode!==e&&(this._blendMode=e,this._updateCounter++)}get color(){return this._color}set color(e){e=e&16777215,this._color!==e&&(this._color=e,this._updateCounter++)}get relativeDepth(){return this._relativeDepth}set relativeDepth(e){this._relativeDepth!==e&&(this._relativeDepth=e,this._updateCounter++)}get varyingDepth(){return this._varyingDepth}set varyingDepth(e){e!==this._varyingDepth&&(this._varyingDepth=e,this._updateCounter++)}get libraryAssetName(){return this._libraryAssetName}set libraryAssetName(e){this._libraryAssetName=e}get clickHandling(){return this._clickHandling}set clickHandling(e){this._clickHandling=e}get visible(){return this._visible}set visible(e){this._visible!==e&&(this._visible=e,this._updateCounter++)}get tag(){return this._tag}set tag(e){this._tag!==e&&(this._tag=e,this._updateCounter++)}get posture(){return this._posture}set posture(e){this._posture!==e&&(this._posture=e,this._updateCounter++)}get alphaTolerance(){return this._alphaTolerance}set alphaTolerance(e){this._alphaTolerance!==e&&(this._alphaTolerance=e,this._updateCounter++)}get filters(){return this._filters}set filters(e){this._filters=e,this._updateCounter++}get updateCounter(){return this._updateCounter}get updateContainer(){return this._updateContainer}set updateContainer(e){this._updateContainer=e}};cE.SPRITE_COUNTER=0;let lv=cE;const fE=class fE{constructor(){this._id=fE.VISUALIZATION_COUNTER++,this._object=null,this._asset=null,this._sprites=[],this._scale=-1,this._updateObjectCounter=-1,this._updateModelCounter=-1,this._updateSpriteCounter=-1}initialize(e){return!1}update(e,t,i,n){}reset(){this._scale=-1}dispose(){if(this._sprites){for(;this._sprites.length;){const e=this._sprites[0];e&&e.dispose(),this._sprites.pop()}this._sprites=null}this._object=null,this._asset=null}getSprite(e){return e>=0&&e<this._sprites.length?this._sprites[e]:null}getSpriteList(){return null}createSprite(){return this.createSpriteAtIndex(this._sprites.length)}createSpriteAtIndex(e){const t=new lv;return e>=this._sprites.length?this._sprites.push(t):this._sprites.splice(e,0,t),t}createSprites(e){for(;this._sprites.length>e;){const t=this._sprites[this._sprites.length-1];t&&t.dispose(),this._sprites.pop()}for(;this._sprites.length<e;)this._sprites.push(new lv)}get image(){return this.getImage(0,-1)}getImage(e,t){const i=this.getBoundingRectangle();if(i.width*i.height===0)return null;const n=this.totalSprites,r=[];let a=0;for(;a<n;){const u=this.getSprite(a);u&&u.visible&&u.texture&&r.push(u),a++}r.sort((u,c)=>c.relativeDepth-u.relativeDepth);const o=new Qn;for(a=0;a<r.length;){const u=r[a],c=u.texture;if(c){const h=new kt(c);h.alpha=u.alpha/255,h.tint=u.color,h.x=u.offsetX,h.y=u.offsetY,h.blendMode=u.blendMode,h.filters=u.filters,u.flipH&&(h.scale.x=-1),u.flipV&&(h.scale.y=-1),o.addChild(h)}a++}const l=St.generateTexture(o);return l||null}getBoundingRectangle(){const e=this.totalSprites,t=new ve;let i=0;for(;i<e;){const n=this.getSprite(i);if(n&&n.texture&&n.visible){const r=n.flipH?-n.width+n.offsetX:n.offsetX,a=n.flipV?-n.height+n.offsetY:n.offsetY,o=new Q(r,a);i===0?(t.x=o.x,t.y=o.y,t.width=n.width,t.height=n.height):(o.x<t.x&&(t.x=o.x),o.y<t.y&&(t.y=o.y),o.x+n.width>t.right&&(t.width=o.x+n.width-t.x),o.y+n.height>t.bottom&&(t.height=o.y+n.height-t.y))}i++}return t}get instanceId(){return this._id}get object(){return this._object}set object(e){this._object=e}get asset(){return this._asset}set asset(e){this._asset&&this._asset.removeReference(),this._asset=e,this._asset&&this._asset.addReference()}get sprites(){return this._sprites}get totalSprites(){return this._sprites.length}get updateObjectCounter(){return this._updateObjectCounter}set updateObjectCounter(e){this._updateObjectCounter=e}get updateModelCounter(){return this._updateModelCounter}set updateModelCounter(e){this._updateModelCounter=e}get updateSpriteCounter(){return this._updateSpriteCounter}set updateSpriteCounter(e){this._updateSpriteCounter=e}get spriteCount(){return this._sprites.length}};fE.VISUALIZATION_COUNTER=0;let Kc=fE;class FQ{constructor(e){this._roomObjectVariableAccurateZ=e||"",this._location=new M,this._screenLocation=new M,this._locationChanged=!1,this._geometryUpdateId=-1,this._objectUpdateId=-1}dispose(){this._screenLocation=null}updateLocation(e,t){if(!e||!t)return null;let i=!1;const n=e.getLocation();if((t.updateId!==this._geometryUpdateId||e.updateCounter!==this._objectUpdateId)&&(this._objectUpdateId=e.updateCounter,(t.updateId!==this._geometryUpdateId||n.x!==this._location.x||n.y!==this._location.y||n.z!==this._location.z)&&(this._geometryUpdateId=t.updateId,this._location.assign(n),i=!0)),this._locationChanged=i,this._locationChanged){const r=t.getScreenPosition(n);if(!r)return null;const a=e.model.getValue(this._roomObjectVariableAccurateZ);if(isNaN(a)||a===0){const o=new M(Math.round(n.x),Math.round(n.y),n.z);if(o.x!==n.x||o.y!==n.y){const l=t.getScreenPosition(o);this._screenLocation.assign(r),l&&(this._screenLocation.z=l.z)}else this._screenLocation.assign(r)}else this._screenLocation.assign(r);this._screenLocation.x=Math.round(this._screenLocation.x),this._screenLocation.y=Math.round(this._screenLocation.y)}return this._screenLocation}get locationChanged(){return this._locationChanged}}class BQ{constructor(){this._sprites=[],this._updateId1=-1,this._updateId2=-1,this._isEmpty=!1}get spriteCount(){return this._sprites.length}get isEmpty(){return this._isEmpty}dispose(){this.setSpriteCount(0)}addSprite(e){this._sprites.push(e)}getSprite(e){return this._sprites[e]}get sprites(){return this._sprites}needsUpdate(e,t){return e===this._updateId1&&t===this._updateId2?!1:(this._updateId1=e,this._updateId2=t,!0)}setSpriteCount(e){if(e<this._sprites.length){let t=e;for(;t<this._sprites.length;){const i=this._sprites[t];i&&i.dispose(),t++}this._sprites.splice(e,this._sprites.length-e)}this._isEmpty=!this._sprites.length}}class GQ{constructor(e){this._location=new FQ(e),this._sprites=new BQ}get location(){return this._location}get sprites(){return this._sprites}dispose(){this._location&&(this._location.dispose(),this._location=null),this._sprites&&(this._sprites.dispose(),this._sprites=null)}get objectId(){return this._objectId}set objectId(e){this._objectId=e}}const Vd=class Vd{constructor(e){this._data=new Map,this._roomObjectVariableAccurateZ=e}dispose(){if(this._data){for(const[e,t]of this._data.entries())t&&(this._data.delete(e),t.dispose());this._data=null}}getObjectCache(e){let t=this._data.get(e);return t||(t=new GQ(this._roomObjectVariableAccurateZ),this._data.set(e,t)),t}removeObjectCache(e){const t=this._data.get(e);t&&(this._data.delete(e),t.dispose())}getSortableSpriteList(){const e=[];for(const t of this._data.values()){if(!t)continue;const i=t.sprites&&t.sprites.sprites;if(!(!i||!i.length)){for(const n of i)if(n&&n.sprite.spriteType!==Js.ROOM_PLANE&&n.sprite.name!==""){const r=new h4;r.objectId=t.objectId,r.x=n.x,r.y=n.y,r.z=n.z,r.name=n.sprite.name||"",r.flipH=n.sprite.flipH,r.alpha=n.sprite.alpha,r.color=n.sprite.color.toString(),r.blendMode=n.sprite.blendMode.toString(),r.width=n.sprite.width,r.height=n.sprite.height,r.type=n.sprite.type,r.posture=n.sprite.posture;const a=this.isSkewedSprite(n.sprite);a&&(r.skew=n.sprite.direction%4===0?-.5:.5),(a||n.name.indexOf("%image.library.url%")>=0||n.name.indexOf("%group.badge.url%")>=0)&&r.width<=Vd.MAX_SIZE_FOR_AVG_COLOR&&r.height<=Vd.MAX_SIZE_FOR_AVG_COLOR&&n.sprite.name.indexOf("external_image_wallitem")===0&&(r.frame=!0),e.push(r)}}}return!e||!e.length?null:e}isSkewedSprite(e){return e.type?e.type.indexOf("external_image_wallitem")===0&&e.tag==="THUMBNAIL"||e.type.indexOf("guild_forum")===0&&e.tag==="THUMBNAIL":!1}getPlaneSortableSprites(){const e=[];for(const t of this._data.values())for(const i of t.sprites.sprites)i.sprite.spriteType===Js.ROOM_PLANE&&e.push(i);return e}};Vd.MAX_SIZE_FOR_AVG_COLOR=200;let YR=Vd;/*!
* @pixi/graphics - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/graphics is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var va;(function(s){s.MITER="miter",s.BEVEL="bevel",s.ROUND="round"})(va||(va={}));var ko;(function(s){s.BUTT="butt",s.ROUND="round",s.SQUARE="square"})(ko||(ko={}));var j_={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(s,e){if(e===void 0&&(e=20),!this.adaptive||!s||isNaN(s))return e;var t=Math.ceil(s/this.maxLength);return t<this.minSegments?t=this.minSegments:t>this.maxSegments&&(t=this.maxSegments),t}},f4=function(){function s(){this.color=16777215,this.alpha=1,this.texture=Ne.WHITE,this.matrix=null,this.visible=!1,this.reset()}return s.prototype.clone=function(){var e=new s;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},s.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=Ne.WHITE,this.matrix=null,this.visible=!1},s.prototype.destroy=function(){this.texture=null,this.matrix=null},s}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var XR=function(s,e){return XR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},XR(s,e)};function Aw(s,e){XR(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function BP(s,e){var t,i;e===void 0&&(e=!1);var n=s.length;if(!(n<6)){for(var r=0,a=0,o=s[n-2],l=s[n-1];a<n;a+=2){var u=s[a],c=s[a+1];r+=(u-o)*(c+l),o=u,l=c}if(!e&&r>0||e&&r<=0)for(var h=n/2,a=h+h%2;a<n;a+=2){var f=n-a-2,d=n-a-1,_=a,g=a+1;t=[s[_],s[f]],s[f]=t[0],s[_]=t[1],i=[s[g],s[d]],s[d]=i[0],s[g]=i[1]}}}var d4={build:function(s){s.points=s.shape.points.slice()},triangulate:function(s,e){var t=s.points,i=s.holes,n=e.points,r=e.indices;if(t.length>=6){BP(t,!1);for(var a=[],o=0;o<i.length;o++){var l=i[o];BP(l.points,!0),a.push(t.length/2),t=t.concat(l.points)}var u=q3(t,a,2);if(!u)return;for(var c=n.length/2,o=0;o<u.length;o+=3)r.push(u[o]+c),r.push(u[o+1]+c),r.push(u[o+2]+c);for(var o=0;o<t.length;o++)n.push(t[o])}}},uv={build:function(s){var e=s.points,t,i,n,r,a,o;if(s.type===Ci.CIRC){var l=s.shape;t=l.x,i=l.y,a=o=l.radius,n=r=0}else if(s.type===Ci.ELIP){var u=s.shape;t=u.x,i=u.y,a=u.width,o=u.height,n=r=0}else{var c=s.shape,h=c.width/2,f=c.height/2;t=c.x+h,i=c.y+f,a=o=Math.max(0,Math.min(c.radius,Math.min(h,f))),n=h-a,r=f-o}if(!(a>=0&&o>=0&&n>=0&&r>=0)){e.length=0;return}var d=Math.ceil(2.3*Math.sqrt(a+o)),_=d*8+(n?4:0)+(r?4:0);if(e.length=_,_!==0){if(d===0){e.length=8,e[0]=e[6]=t+n,e[1]=e[3]=i+r,e[2]=e[4]=t-n,e[5]=e[7]=i-r;return}var g=0,p=d*4+(n?2:0)+2,m=p,v=_;{var E=n+a,y=r,T=t+E,w=t-E,C=i+y;if(e[g++]=T,e[g++]=C,e[--p]=C,e[--p]=w,r){var N=i-y;e[m++]=w,e[m++]=N,e[--v]=N,e[--v]=T}}for(var P=1;P<d;P++){var k=Math.PI/2*(P/d),E=n+Math.cos(k)*a,y=r+Math.sin(k)*o,T=t+E,w=t-E,C=i+y,N=i-y;e[g++]=T,e[g++]=C,e[--p]=C,e[--p]=w,e[m++]=w,e[m++]=N,e[--v]=N,e[--v]=T}{var E=n,y=r+o,T=t+E,w=t-E,C=i+y,N=i-y;e[g++]=T,e[g++]=C,e[--v]=N,e[--v]=T,n&&(e[g++]=w,e[g++]=C,e[--v]=N,e[--v]=w)}}},triangulate:function(s,e){var t=s.points,i=e.points,n=e.indices;if(t.length!==0){var r=i.length/2,a=r,o,l;if(s.type!==Ci.RREC){var u=s.shape;o=u.x,l=u.y}else{var c=s.shape;o=c.x+c.width/2,l=c.y+c.height/2}var h=s.matrix;i.push(s.matrix?h.a*o+h.c*l+h.tx:o,s.matrix?h.b*o+h.d*l+h.ty:l),r++,i.push(t[0],t[1]);for(var f=2;f<t.length;f+=2)i.push(t[f],t[f+1]),n.push(r++,a,r);n.push(a+1,a,r)}}},VQ={build:function(s){var e=s.shape,t=e.x,i=e.y,n=e.width,r=e.height,a=s.points;a.length=0,a.push(t,i,t+n,i,t+n,i+r,t,i+r)},triangulate:function(s,e){var t=s.points,i=e.points,n=i.length/2;i.push(t[0],t[1],t[2],t[3],t[6],t[7],t[4],t[5]),e.indices.push(n,n+1,n+2,n+1,n+2,n+3)}};function rh(s,e,t){var i=e-s;return s+i*t}function fp(s,e,t,i,n,r,a){a===void 0&&(a=[]);for(var o=20,l=a,u=0,c=0,h=0,f=0,d=0,_=0,g=0,p=0;g<=o;++g)p=g/o,u=rh(s,t,p),c=rh(e,i,p),h=rh(t,n,p),f=rh(i,r,p),d=rh(u,h,p),_=rh(c,f,p),!(g===0&&l[l.length-2]===d&&l[l.length-1]===_)&&l.push(d,_);return l}var jQ={build:function(s){if(qc.nextRoundedRectBehavior){uv.build(s);return}var e=s.shape,t=s.points,i=e.x,n=e.y,r=e.width,a=e.height,o=Math.max(0,Math.min(e.radius,Math.min(r,a)/2));t.length=0,o?(fp(i,n+o,i,n,i+o,n,t),fp(i+r-o,n,i+r,n,i+r,n+o,t),fp(i+r,n+a-o,i+r,n+a,i+r-o,n+a,t),fp(i+o,n+a,i,n+a,i,n+a-o,t)):t.push(i,n,i+r,n,i+r,n+a,i,n+a)},triangulate:function(s,e){if(qc.nextRoundedRectBehavior){uv.triangulate(s,e);return}for(var t=s.points,i=e.points,n=e.indices,r=i.length/2,a=q3(t,null,2),o=0,l=a.length;o<l;o+=3)n.push(a[o]+r),n.push(a[o+1]+r),n.push(a[o+2]+r);for(var o=0,l=t.length;o<l;o++)i.push(t[o],t[++o])}};function GP(s,e,t,i,n,r,a,o){var l=s-t*n,u=e-i*n,c=s+t*r,h=e+i*r,f,d;a?(f=i,d=-t):(f=-i,d=t);var _=l+f,g=u+d,p=c+f,m=h+d;return o.push(_,g),o.push(p,m),2}function El(s,e,t,i,n,r,a,o){var l=t-s,u=i-e,c=Math.atan2(l,u),h=Math.atan2(n-s,r-e);o&&c<h?c+=Math.PI*2:!o&&c>h&&(h+=Math.PI*2);var f=c,d=h-c,_=Math.abs(d),g=Math.sqrt(l*l+u*u),p=(15*_*Math.sqrt(g)/Math.PI>>0)+1,m=d/p;if(f+=m,o){a.push(s,e),a.push(t,i);for(var v=1,E=f;v<p;v++,E+=m)a.push(s,e),a.push(s+Math.sin(E)*g,e+Math.cos(E)*g);a.push(s,e),a.push(n,r)}else{a.push(t,i),a.push(s,e);for(var v=1,E=f;v<p;v++,E+=m)a.push(s+Math.sin(E)*g,e+Math.cos(E)*g),a.push(s,e);a.push(n,r),a.push(s,e)}return p*2}function zQ(s,e){var t=s.shape,i=s.points||t.points.slice(),n=e.closePointEps;if(i.length!==0){var r=s.lineStyle,a=new Q(i[0],i[1]),o=new Q(i[i.length-2],i[i.length-1]),l=t.type!==Ci.POLY||t.closeStroke,u=Math.abs(a.x-o.x)<n&&Math.abs(a.y-o.y)<n;if(l){i=i.slice(),u&&(i.pop(),i.pop(),o.set(i[i.length-2],i[i.length-1]));var c=(a.x+o.x)*.5,h=(o.y+a.y)*.5;i.unshift(c,h),i.push(c,h)}var f=e.points,d=i.length/2,_=i.length,g=f.length/2,p=r.width/2,m=p*p,v=r.miterLimit*r.miterLimit,E=i[0],y=i[1],T=i[2],w=i[3],C=0,N=0,P=-(y-w),k=E-T,L=0,j=0,z=Math.sqrt(P*P+k*k);P/=z,k/=z,P*=p,k*=p;var ne=r.alignment,G=(1-ne)*2,Y=ne*2;l||(r.cap===ko.ROUND?_+=El(E-P*(G-Y)*.5,y-k*(G-Y)*.5,E-P*G,y-k*G,E+P*Y,y+k*Y,f,!0)+2:r.cap===ko.SQUARE&&(_+=GP(E,y,P,k,G,Y,!0,f))),f.push(E-P*G,y-k*G),f.push(E+P*Y,y+k*Y);for(var K=1;K<d-1;++K){E=i[(K-1)*2],y=i[(K-1)*2+1],T=i[K*2],w=i[K*2+1],C=i[(K+1)*2],N=i[(K+1)*2+1],P=-(y-w),k=E-T,z=Math.sqrt(P*P+k*k),P/=z,k/=z,P*=p,k*=p,L=-(w-N),j=T-C,z=Math.sqrt(L*L+j*j),L/=z,j/=z,L*=p,j*=p;var H=T-E,J=y-w,B=T-C,$=N-w,fe=H*B+J*$,xe=J*B-$*H,me=xe<0;if(Math.abs(xe)<.001*Math.abs(fe)){f.push(T-P*G,w-k*G),f.push(T+P*Y,w+k*Y),fe>=0&&(r.join===va.ROUND?_+=El(T,w,T-P*G,w-k*G,T-L*G,w-j*G,f,!1)+4:_+=2,f.push(T-L*Y,w-j*Y),f.push(T+L*G,w+j*G));continue}var De=(-P+E)*(-k+w)-(-P+T)*(-k+y),we=(-L+C)*(-j+w)-(-L+T)*(-j+N),it=(H*we-B*De)/xe,at=($*De-J*we)/xe,bt=(it-T)*(it-T)+(at-w)*(at-w),At=T+(it-T)*G,ct=w+(at-w)*G,Qe=T-(it-T)*Y,gt=w-(at-w)*Y,ki=Math.min(H*H+J*J,B*B+$*$),Ue=me?G:Y,st=ki+Ue*Ue*m,ot=bt<=st;ot?r.join===va.BEVEL||bt/m>v?(me?(f.push(At,ct),f.push(T+P*Y,w+k*Y),f.push(At,ct),f.push(T+L*Y,w+j*Y)):(f.push(T-P*G,w-k*G),f.push(Qe,gt),f.push(T-L*G,w-j*G),f.push(Qe,gt)),_+=2):r.join===va.ROUND?me?(f.push(At,ct),f.push(T+P*Y,w+k*Y),_+=El(T,w,T+P*Y,w+k*Y,T+L*Y,w+j*Y,f,!0)+4,f.push(At,ct),f.push(T+L*Y,w+j*Y)):(f.push(T-P*G,w-k*G),f.push(Qe,gt),_+=El(T,w,T-P*G,w-k*G,T-L*G,w-j*G,f,!1)+4,f.push(T-L*G,w-j*G),f.push(Qe,gt)):(f.push(At,ct),f.push(Qe,gt)):(f.push(T-P*G,w-k*G),f.push(T+P*Y,w+k*Y),r.join===va.ROUND?me?_+=El(T,w,T+P*Y,w+k*Y,T+L*Y,w+j*Y,f,!0)+2:_+=El(T,w,T-P*G,w-k*G,T-L*G,w-j*G,f,!1)+2:r.join===va.MITER&&bt/m<=v&&(me?(f.push(Qe,gt),f.push(Qe,gt)):(f.push(At,ct),f.push(At,ct)),_+=2),f.push(T-L*G,w-j*G),f.push(T+L*Y,w+j*Y),_+=2)}E=i[(d-2)*2],y=i[(d-2)*2+1],T=i[(d-1)*2],w=i[(d-1)*2+1],P=-(y-w),k=E-T,z=Math.sqrt(P*P+k*k),P/=z,k/=z,P*=p,k*=p,f.push(T-P*G,w-k*G),f.push(T+P*Y,w+k*Y),l||(r.cap===ko.ROUND?_+=El(T-P*(G-Y)*.5,w-k*(G-Y)*.5,T-P*G,w-k*G,T+P*Y,w+k*Y,f,!1)+2:r.cap===ko.SQUARE&&(_+=GP(T,w,P,k,G,Y,!1,f)));for(var Hi=e.indices,Ge=j_.epsilon*j_.epsilon,K=g;K<_+g-2;++K)E=f[K*2],y=f[K*2+1],T=f[(K+1)*2],w=f[(K+1)*2+1],C=f[(K+2)*2],N=f[(K+2)*2+1],!(Math.abs(E*(w-N)+T*(N-y)+C*(y-w))<Ge)&&Hi.push(K,K+1,K+2)}}function HQ(s,e){var t=0,i=s.shape,n=s.points||i.points,r=i.type!==Ci.POLY||i.closeStroke;if(n.length!==0){var a=e.points,o=e.indices,l=n.length/2,u=a.length/2,c=u;for(a.push(n[0],n[1]),t=1;t<l;t++)a.push(n[t*2],n[t*2+1]),o.push(c,c+1),c++;r&&o.push(c,u)}}function VP(s,e){s.lineStyle.native?HQ(s,e):zQ(s,e)}var jP=function(){function s(){}return s.curveTo=function(e,t,i,n,r,a){var o=a[a.length-2],l=a[a.length-1],u=l-t,c=o-e,h=n-t,f=i-e,d=Math.abs(u*f-c*h);if(d<1e-8||r===0)return(a[a.length-2]!==e||a[a.length-1]!==t)&&a.push(e,t),null;var _=u*u+c*c,g=h*h+f*f,p=u*h+c*f,m=r*Math.sqrt(_)/d,v=r*Math.sqrt(g)/d,E=m*p/_,y=v*p/g,T=m*f+v*c,w=m*h+v*u,C=c*(v+E),N=u*(v+E),P=f*(m+y),k=h*(m+y),L=Math.atan2(N-w,C-T),j=Math.atan2(k-w,P-T);return{cx:T+e,cy:w+t,radius:r,startAngle:L,endAngle:j,anticlockwise:c*h>f*u}},s.arc=function(e,t,i,n,r,a,o,l,u){for(var c=o-a,h=j_._segmentsCount(Math.abs(c)*r,Math.ceil(Math.abs(c)/k_)*40),f=c/(h*2),d=f*2,_=Math.cos(f),g=Math.sin(f),p=h-1,m=p%1/p,v=0;v<=p;++v){var E=v+m*v,y=f+a+d*E,T=Math.cos(y),w=-Math.sin(y);u.push((_*T+g*w)*r+i,(_*-w+g*T)*r+n)}},s}(),WQ=function(){function s(){}return s.curveLength=function(e,t,i,n,r,a,o,l){for(var u=10,c=0,h=0,f=0,d=0,_=0,g=0,p=0,m=0,v=0,E=0,y=0,T=e,w=t,C=1;C<=u;++C)h=C/u,f=h*h,d=f*h,_=1-h,g=_*_,p=g*_,m=p*e+3*g*h*i+3*_*f*r+d*o,v=p*t+3*g*h*n+3*_*f*a+d*l,E=T-m,y=w-v,T=m,w=v,c+=Math.sqrt(E*E+y*y);return c},s.curveTo=function(e,t,i,n,r,a,o){var l=o[o.length-2],u=o[o.length-1];o.length-=2;var c=j_._segmentsCount(s.curveLength(l,u,e,t,i,n,r,a)),h=0,f=0,d=0,_=0,g=0;o.push(l,u);for(var p=1,m=0;p<=c;++p)m=p/c,h=1-m,f=h*h,d=f*h,_=m*m,g=_*m,o.push(d*l+3*f*m*e+3*h*_*i+g*r,d*u+3*f*m*t+3*h*_*n+g*a)},s}(),YQ=function(){function s(){}return s.curveLength=function(e,t,i,n,r,a){var o=e-2*i+r,l=t-2*n+a,u=2*i-2*e,c=2*n-2*t,h=4*(o*o+l*l),f=4*(o*u+l*c),d=u*u+c*c,_=2*Math.sqrt(h+f+d),g=Math.sqrt(h),p=2*h*g,m=2*Math.sqrt(d),v=f/g;return(p*_+g*f*(_-m)+(4*d*h-f*f)*Math.log((2*g+v+_)/(v+m)))/(4*p)},s.curveTo=function(e,t,i,n,r){for(var a=r[r.length-2],o=r[r.length-1],l=j_._segmentsCount(s.curveLength(a,o,e,t,i,n)),u=0,c=0,h=1;h<=l;++h){var f=h/l;u=a+(e-a)*f,c=o+(t-o)*f,r.push(u+(e+(i-e)*f-u)*f,c+(t+(n-t)*f-c)*f)}},s}(),XQ=function(){function s(){this.reset()}return s.prototype.begin=function(e,t,i){this.reset(),this.style=e,this.start=t,this.attribStart=i},s.prototype.end=function(e,t){this.attribSize=t-this.attribStart,this.size=e-this.start},s.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},s}(),yl,lT=(yl={},yl[Ci.POLY]=d4,yl[Ci.CIRC]=uv,yl[Ci.ELIP]=uv,yl[Ci.RECT]=VQ,yl[Ci.RREC]=jQ,yl),zP=[],dp=[],HP=function(){function s(e,t,i,n){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=null),this.points=[],this.holes=[],this.shape=e,this.lineStyle=i,this.fillStyle=t,this.matrix=n,this.type=e.type}return s.prototype.clone=function(){return new s(this.shape,this.fillStyle,this.lineStyle,this.matrix)},s.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},s}(),ah=new Q,KQ=function(s){Aw(e,s);function e(){var t=s.call(this)||this;return t.closePointEps=1e-4,t.boundsPadding=0,t.uvsFloat32=null,t.indicesUint16=null,t.batchable=!1,t.points=[],t.colors=[],t.uvs=[],t.indices=[],t.textureIds=[],t.graphicsData=[],t.drawCalls=[],t.batchDirty=-1,t.batches=[],t.dirty=0,t.cacheDirty=-1,t.clearDirty=0,t.shapeIndex=0,t._bounds=new Fm,t.boundsDirty=-1,t}return Object.defineProperty(e.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var t=0;t<this.drawCalls.length;t++)this.drawCalls[t].texArray.clear(),dp.push(this.drawCalls[t]);this.drawCalls.length=0;for(var t=0;t<this.batches.length;t++){var i=this.batches[t];i.reset(),zP.push(i)}this.batches.length=0},e.prototype.clear=function(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(t,i,n,r){i===void 0&&(i=null),n===void 0&&(n=null),r===void 0&&(r=null);var a=new HP(t,i,n,r);return this.graphicsData.push(a),this.dirty++,this},e.prototype.drawHole=function(t,i){if(i===void 0&&(i=null),!this.graphicsData.length)return null;var n=new HP(t,null,null,i),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this},e.prototype.destroy=function(){s.prototype.destroy.call(this);for(var t=0;t<this.graphicsData.length;++t)this.graphicsData[t].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null},e.prototype.containsPoint=function(t){for(var i=this.graphicsData,n=0;n<i.length;++n){var r=i[n];if(r.fillStyle.visible&&r.shape&&(r.matrix?r.matrix.applyInverse(t,ah):ah.copyFrom(t),r.shape.contains(ah.x,ah.y))){var a=!1;if(r.holes)for(var o=0;o<r.holes.length;o++){var l=r.holes[o];if(l.shape.contains(ah.x,ah.y)){a=!0;break}}if(!a)return!0}}return!1},e.prototype.updateBatches=function(){if(!this.graphicsData.length){this.batchable=!0;return}if(this.validateBatching()){this.cacheDirty=this.dirty;var t=this.uvs,i=this.graphicsData,n=null,r=null;this.batches.length>0&&(n=this.batches[this.batches.length-1],r=n.style);for(var a=this.shapeIndex;a<i.length;a++){this.shapeIndex++;var o=i[a],l=o.fillStyle,u=o.lineStyle,c=lT[o.type];c.build(o),o.matrix&&this.transformPoints(o.points,o.matrix),(l.visible||u.visible)&&this.processHoles(o.holes);for(var h=0;h<2;h++){var f=h===0?l:u;if(f.visible){var d=f.texture.baseTexture,_=this.indices.length,g=this.points.length/2;d.wrapMode=Pa.REPEAT,h===0?this.processFill(o):this.processLine(o);var p=this.points.length/2-g;p!==0&&(n&&!this._compareStyles(r,f)&&(n.end(_,g),n=null),n||(n=zP.pop()||new XQ,n.begin(f,_,g),this.batches.push(n),r=f),this.addUvs(this.points,t,f.texture,g,p,f.matrix))}}}var m=this.indices.length,v=this.points.length/2;if(n&&n.end(m,v),this.batches.length===0){this.batchable=!0;return}var E=v>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&E===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=E?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},e.prototype._compareStyles=function(t,i){return!(!t||!i||t.texture.baseTexture!==i.texture.baseTexture||t.color+t.alpha!==i.color+i.alpha||!!t.native!=!!i.native)},e.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var t=0,i=this.graphicsData.length;t<i;t++){var n=this.graphicsData[t],r=n.fillStyle,a=n.lineStyle;if(r&&!r.texture.baseTexture.valid||a&&!a.texture.baseTexture.valid)return!1}return!0},e.prototype.packBatches=function(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);for(var t=this.batches,i=0,n=t.length;i<n;i++)for(var r=t[i],a=0;a<r.size;a++){var o=r.start+a;this.indicesUint16[o]=this.indicesUint16[o]-r.attribStart}},e.prototype.isBatchable=function(){if(this.points.length>65535*2)return!1;for(var t=this.batches,i=0;i<t.length;i++)if(t[i].style.native)return!1;return this.points.length<e.BATCHABLE_SIZE*2},e.prototype.buildDrawCalls=function(){for(var t=++pt._globalBatch,i=0;i<this.drawCalls.length;i++)this.drawCalls[i].texArray.clear(),dp.push(this.drawCalls[i]);this.drawCalls.length=0;var n=this.colors,r=this.textureIds,a=dp.pop();a||(a=new ZI,a.texArray=new JI),a.texArray.count=0,a.start=0,a.size=0,a.type=Ia.TRIANGLES;var o=0,l=null,u=0,c=!1,h=Ia.TRIANGLES,f=0;this.drawCalls.push(a);for(var i=0;i<this.batches.length;i++){var d=this.batches[i],_=8,g=d.style,p=g.texture.baseTexture;c!==!!g.native&&(c=!!g.native,h=c?Ia.LINES:Ia.TRIANGLES,l=null,o=_,t++),l!==p&&(l=p,p._batchEnabled!==t&&(o===_&&(t++,o=0,a.size>0&&(a=dp.pop(),a||(a=new ZI,a.texArray=new JI),this.drawCalls.push(a)),a.start=f,a.size=0,a.texArray.count=0,a.type=h),p.touched=1,p._batchEnabled=t,p._batchLocation=o,p.wrapMode=Pa.REPEAT,a.texArray.elements[a.texArray.count++]=p,o++)),a.size+=d.size,f+=d.size,u=p._batchLocation,this.addColors(n,g.color,g.alpha,d.attribSize,d.attribStart),this.addTextureIds(r,u,d.attribSize,d.attribStart)}pt._globalBatch=t,this.packAttributes()},e.prototype.packAttributes=function(){for(var t=this.points,i=this.uvs,n=this.colors,r=this.textureIds,a=new ArrayBuffer(t.length*3*4),o=new Float32Array(a),l=new Uint32Array(a),u=0,c=0;c<t.length/2;c++)o[u++]=t[c*2],o[u++]=t[c*2+1],o[u++]=i[c*2],o[u++]=i[c*2+1],l[u++]=n[c],o[u++]=r[c];this._buffer.update(a),this._indexBuffer.update(this.indicesUint16)},e.prototype.processFill=function(t){if(t.holes.length)d4.triangulate(t,this);else{var i=lT[t.type];i.triangulate(t,this)}},e.prototype.processLine=function(t){VP(t,this);for(var i=0;i<t.holes.length;i++)VP(t.holes[i],this)},e.prototype.processHoles=function(t){for(var i=0;i<t.length;i++){var n=t[i],r=lT[n.type];r.build(n),n.matrix&&this.transformPoints(n.points,n.matrix)}},e.prototype.calculateBounds=function(){var t=this._bounds;t.clear(),t.addVertexData(this.points,0,this.points.length),t.pad(this.boundsPadding,this.boundsPadding)},e.prototype.transformPoints=function(t,i){for(var n=0;n<t.length/2;n++){var r=t[n*2],a=t[n*2+1];t[n*2]=i.a*r+i.c*a+i.tx,t[n*2+1]=i.b*r+i.d*a+i.ty}},e.prototype.addColors=function(t,i,n,r,a){a===void 0&&(a=0);var o=(i>>16)+(i&65280)+((i&255)<<16),l=RU(o,n);t.length=Math.max(t.length,a+r);for(var u=0;u<r;u++)t[a+u]=l},e.prototype.addTextureIds=function(t,i,n,r){r===void 0&&(r=0),t.length=Math.max(t.length,r+n);for(var a=0;a<n;a++)t[r+a]=i},e.prototype.addUvs=function(t,i,n,r,a,o){o===void 0&&(o=null);for(var l=0,u=i.length,c=n.frame;l<a;){var h=t[(r+l)*2],f=t[(r+l)*2+1];if(o){var d=o.a*h+o.c*f+o.tx;f=o.b*h+o.d*f+o.ty,h=d}l++,i.push(h/c.width,f/c.height)}var _=n.baseTexture;(c.width<_.width||c.height<_.height)&&this.adjustUvs(i,n,u,a)},e.prototype.adjustUvs=function(t,i,n,r){for(var a=i.baseTexture,o=1e-6,l=n+r*2,u=i.frame,c=u.width/a.width,h=u.height/a.height,f=u.x/u.width,d=u.y/u.height,_=Math.floor(t[n]+o),g=Math.floor(t[n+1]+o),p=n+2;p<l;p+=2)_=Math.min(_,Math.floor(t[p]+o)),g=Math.min(g,Math.floor(t[p+1]+o));f-=_,d-=g;for(var p=n;p<l;p+=2)t[p]=(t[p]+f)*c,t[p+1]=(t[p+1]+d)*h},e.BATCHABLE_SIZE=100,e}(VU),qQ=function(s){Aw(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.width=0,t.alignment=.5,t.native=!1,t.cap=ko.BUTT,t.join=va.MITER,t.miterLimit=10,t}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t},e.prototype.reset=function(){s.prototype.reset.call(this),this.color=0,this.alignment=.5,this.width=0,this.native=!1},e}(f4),$Q=new Float32Array(3),uT={},qc=function(s){Aw(e,s);function e(t){t===void 0&&(t=null);var i=s.call(this)||this;return i.shader=null,i.pluginName="batch",i.currentPath=null,i.batches=[],i.batchTint=-1,i.batchDirty=-1,i.vertexData=null,i._fillStyle=new f4,i._lineStyle=new qQ,i._matrix=null,i._holeMode=!1,i.state=Eg.for2d(),i._geometry=t||new KQ,i._geometry.refCount++,i._transformID=-1,i.tint=16777215,i.blendMode=ge.NORMAL,i}return Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return this.finishPoly(),new e(this._geometry)},Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fillStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._lineStyle},enumerable:!1,configurable:!0}),e.prototype.lineStyle=function(t,i,n,r,a){return t===void 0&&(t=null),i===void 0&&(i=0),n===void 0&&(n=1),r===void 0&&(r=.5),a===void 0&&(a=!1),typeof t=="number"&&(t={width:t,color:i,alpha:n,alignment:r,native:a}),this.lineTextureStyle(t)},e.prototype.lineTextureStyle=function(t){t=Object.assign({width:0,texture:Ne.WHITE,color:t&&t.texture?16777215:0,alpha:1,matrix:null,alignment:.5,native:!1,cap:ko.BUTT,join:va.MITER,miterLimit:10},t),this.currentPath&&this.startPoly();var i=t.width>0&&t.alpha>0;return i?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:i},t)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var t=this.currentPath.points,i=this.currentPath.points.length;i>2&&(this.drawShape(this.currentPath),this.currentPath=new zp,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[i-2],t[i-1]))}else this.currentPath=new zp,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(t,i){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=i,this},e.prototype.lineTo=function(t,i){this.currentPath||this.moveTo(0,0);var n=this.currentPath.points,r=n[n.length-2],a=n[n.length-1];return(r!==t||a!==i)&&n.push(t,i),this},e.prototype._initCurve=function(t,i){t===void 0&&(t=0),i===void 0&&(i=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[t,i]):this.moveTo(t,i)},e.prototype.quadraticCurveTo=function(t,i,n,r){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),YQ.curveTo(t,i,n,r,a),this},e.prototype.bezierCurveTo=function(t,i,n,r,a,o){return this._initCurve(),WQ.curveTo(t,i,n,r,a,o,this.currentPath.points),this},e.prototype.arcTo=function(t,i,n,r,a){this._initCurve(t,i);var o=this.currentPath.points,l=jP.curveTo(t,i,n,r,a,o);if(l){var u=l.cx,c=l.cy,h=l.radius,f=l.startAngle,d=l.endAngle,_=l.anticlockwise;this.arc(u,c,h,f,d,_)}return this},e.prototype.arc=function(t,i,n,r,a,o){if(o===void 0&&(o=!1),r===a)return this;!o&&a<=r?a+=k_:o&&r<=a&&(r+=k_);var l=a-r;if(l===0)return this;var u=t+Math.cos(r)*n,c=i+Math.sin(r)*n,h=this._geometry.closePointEps,f=this.currentPath?this.currentPath.points:null;if(f){var d=Math.abs(f[f.length-2]-u),_=Math.abs(f[f.length-1]-c);d<h&&_<h||f.push(u,c)}else this.moveTo(u,c),f=this.currentPath.points;return jP.arc(u,c,t,i,n,r,a,o,f),this},e.prototype.beginFill=function(t,i){return t===void 0&&(t=0),i===void 0&&(i=1),this.beginTextureFill({texture:Ne.WHITE,color:t,alpha:i})},e.prototype.beginTextureFill=function(t){t=Object.assign({texture:Ne.WHITE,color:16777215,alpha:1,matrix:null},t),this.currentPath&&this.startPoly();var i=t.alpha>0;return i?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:i},t)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(t,i,n,r){return this.drawShape(new ve(t,i,n,r))},e.prototype.drawRoundedRect=function(t,i,n,r,a){return this.drawShape(new kX(t,i,n,r,a))},e.prototype.drawCircle=function(t,i,n){return this.drawShape(new NX(t,i,n))},e.prototype.drawEllipse=function(t,i,n,r){return this.drawShape(new PX(t,i,n,r))},e.prototype.drawPolygon=function(){for(var t=arguments,i=[],n=0;n<arguments.length;n++)i[n]=t[n];var r,a=!0,o=i[0];o.points?(a=o.closeStroke,r=o.points):Array.isArray(i[0])?r=i[0]:r=i;var l=new zp(r);return l.closeStroke=a,this.drawShape(l),this},e.prototype.drawShape=function(t){return this._holeMode?this._geometry.drawHole(t,this._matrix):this._geometry.drawShape(t,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this},e.prototype.clear=function(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this},e.prototype.isFastRect=function(){var t=this._geometry.graphicsData;return t.length===1&&t[0].shape.type===Ci.RECT&&!t[0].matrix&&!t[0].holes.length&&!(t[0].lineStyle.visible&&t[0].lineStyle.width)},e.prototype._render=function(t){this.finishPoly();var i=this._geometry;i.updateBatches(),i.batchable?(this.batchDirty!==i.batchDirty&&this._populateBatches(),this._renderBatched(t)):(t.batch.flush(),this._renderDirect(t))},e.prototype._populateBatches=function(){var t=this._geometry,i=this.blendMode,n=t.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=t.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(t.points);for(var r=0;r<n;r++){var a=t.batches[r],o=a.style.color,l=new Float32Array(this.vertexData.buffer,a.attribStart*4*2,a.attribSize*2),u=new Float32Array(t.uvsFloat32.buffer,a.attribStart*4*2,a.attribSize*2),c=new Uint16Array(t.indicesUint16.buffer,a.start*2,a.size),h={vertexData:l,blendMode:i,indices:c,uvs:u,_batchRGB:km(o),_tintRGB:o,_texture:a.style.texture,alpha:a.style.alpha,worldAlpha:1};this.batches[r]=h}},e.prototype._renderBatched=function(t){if(this.batches.length){t.batch.setObjectRenderer(t.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(var i=0,n=this.batches.length;i<n;i++){var r=this.batches[i];r.worldAlpha=this.worldAlpha*r.alpha,t.plugins[this.pluginName].render(r)}}},e.prototype._renderDirect=function(t){var i=this._resolveDirectShader(t),n=this._geometry,r=this.tint,a=this.worldAlpha,o=i.uniforms,l=n.drawCalls;o.translationMatrix=this.transform.worldTransform,o.tint[0]=(r>>16&255)/255*a,o.tint[1]=(r>>8&255)/255*a,o.tint[2]=(r&255)/255*a,o.tint[3]=a,t.shader.bind(i),t.geometry.bind(n,i),t.state.set(this.state);for(var u=0,c=l.length;u<c;u++)this._renderDrawCallDirect(t,n.drawCalls[u])},e.prototype._renderDrawCallDirect=function(t,i){for(var n=i.texArray,r=i.type,a=i.size,o=i.start,l=n.count,u=0;u<l;u++)t.texture.bind(n.elements[u],u);t.geometry.draw(r,a,o)},e.prototype._resolveDirectShader=function(t){var i=this.shader,n=this.pluginName;if(!i){if(!uT[n]){for(var r=t.plugins[n].MAX_TEXTURES,a=new Int32Array(r),o=0;o<r;o++)a[o]=o;var l={tint:new Float32Array([1,1,1,1]),translationMatrix:new dt,default:Ru.from({uSamplers:a},!0)},u=t.plugins[n]._shader.program;uT[n]=new Pc(u,l)}i=uT[n]}return i},e.prototype._calculateBounds=function(){this.finishPoly();var t=this._geometry;if(t.graphicsData.length){var i=t.bounds,n=i.minX,r=i.minY,a=i.maxX,o=i.maxY;this._bounds.addFrame(this.transform,n,r,a,o)}},e.prototype.containsPoint=function(t){return this.worldTransform.applyInverse(t,e._TEMP_POINT),this._geometry.containsPoint(e._TEMP_POINT)},e.prototype.calculateTints=function(){if(this.batchTint!==this.tint){this.batchTint=this.tint;for(var t=km(this.tint,$Q),i=0;i<this.batches.length;i++){var n=this.batches[i],r=n._batchRGB,a=t[0]*r[0]*255,o=t[1]*r[1]*255,l=t[2]*r[2]*255,u=(a<<16)+(o<<8)+(l|0);n._tintRGB=(u>>16)+(u&65280)+((u&255)<<16)}}},e.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var i=this.transform.worldTransform,n=i.a,r=i.b,a=i.c,o=i.d,l=i.tx,u=i.ty,c=this._geometry.points,h=this.vertexData,f=0,d=0;d<c.length;d+=2){var _=c[d],g=c[d+1];h[f++]=n*_+a*g+l,h[f++]=o*g+r*_+u}}},e.prototype.closePath=function(){var t=this.currentPath;return t&&(t.closeStroke=!0,this.finishPoly()),this},e.prototype.setMatrix=function(t){return this._matrix=t,this},e.prototype.beginHole=function(){return this.finishPoly(),this._holeMode=!0,this},e.prototype.endHole=function(){return this.finishPoly(),this._holeMode=!1,this},e.prototype.destroy=function(t){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,s.prototype.destroy.call(this,t)},e.nextRoundedRectBehavior=!1,e._TEMP_POINT=new Q,e}(Va);const gr=class gr{static hex2rgb(e,t=[]){return t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t}static hex2rgba(e,t=[]){return t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t[3]=e&255,t}static rgb2hex(e){return(e[0]*255<<16)+(e[1]*255<<8)+(e[2]*255|0)}static rgba2hex(e){return(e[0]*255<<16)+(e[1]*255<<8)+(e[2]*255|0)+(e[3]|0)}static rgbStringToHex(e){const t=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return"#"+gr.getHex(t[1])+gr.getHex(t[2])+gr.getHex(t[3])}static getHex(e){return isNaN(e)?"00":gr.HEX_DIGITS[(e-e%16)/16]+gr.HEX_DIGITS[e%16]}static int2rgb(e){e>>>=0;const t=e&255,i=(e&65280)>>>8;return"rgba("+[(e&16711680)>>>16,i,t,1].join(",")+")"}static rgbToHSL(e){const t=(e>>16&255)/255,i=(e>>8&255)/255,n=(e&255)/255,r=Math.max(t,i,n),a=Math.min(t,i,n),o=r-a;let l=0,u=0,c=0;o==0?l=0:r==t?i>n?l=60*(i-n)/o:l=60*(i-n)/o+360:r==i?l=60*(n-t)/o+120:r==n&&(l=60*(t-i)/o+240),u=.5*(r+a),o==0?c=0:u<=.5?c=o/u*.5:c=o/(1-u)*.5;const h=Math.round(l/360*255),f=Math.round(c*255),d=Math.round(u*255);return(h<<16)+(f<<8)+d}static hslToRGB(e){let t,i,n,r,a;const o=(e>>16&255)/255,l=(e>>8&255)/255,u=(e&255)/255;let c=0,h=0,f=0;l>0?(t=0,i=0,u<.5?t=u*(1+l):t=u+l-u*l,i=2*u-t,n=o+1/3,r=o,a=o-1/3,n<0?n=n+1:n>1&&n--,r<0?r=r+1:r>1&&r--,a<0?a=a+1:a>1&&a--,n*6<1?c=i+(t-i)*6*n:n*2<1?c=t:n*3<2?c=i+(t-i)*6*(2/3-n):c=i,r*6<1?h=i+(t-i)*6*r:r*2<1?h=t:r*3<2?h=i+(t-i)*6*(2/3-r):h=i,a*6<1?f=i+(t-i)*6*a:a*2<1?f=t:a*3<2?f=i+(t-i)*6*(2/3-a):f=i):(c=u,h=u,f=u);const d=Math.round(c*255),_=Math.round(h*255),g=Math.round(f*255);return(d<<16)+(_<<8)+g}static rgb2xyz(e){let t=(e>>16&255)/255,i=(e>>8&255)/255,n=(e>>0&255)/255;return t>.04045?t=Math.pow((t+.055)/1.055,2.4):t=t/12.92,i>.04045?i=Math.pow((i+.055)/1.055,2.4):i=i/12.92,n>.04045?n=Math.pow((n+.055)/1.055,2.4):n=n/12.92,t=t*100,i=i*100,n=n*100,new M(t*.4124+i*.3576+n*.1805,t*.2126+i*.7152+n*.0722,t*.0193+i*.1192+n*.9505)}static xyz2CieLab(e){let t=e.x/95.047,i=e.y/100,n=e.z/108.883;return t>.008856?t=Math.pow(t,1/3):t=7.787*t+16/116,i>.008856?i=Math.pow(i,1/3):i=7.787*i+16/116,n>.008856?n=Math.pow(n,1/3):n=7.787*n+16/116,new M(116*i-16,500*(t-i),200*(i-n))}static rgb2CieLab(e){return gr.xyz2CieLab(gr.rgb2xyz(e))}static colorize(e,t){if(t===4294967295)return e;let i=t>>16&255,n=t>>8&255,r=t&255;return i=(e>>16&255)*i/255,n=(e>>8&255)*n/255,r=(e&255)*r/255,(e&&4278190080)|i<<16|n<<8|r}};gr.HEX_DIGITS=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];let z_=gr;class WP{constructor(e){e<0&&(e=0),this._reservedNumbers=[],this._freeNumbers=[];let t=0;for(;t<e;)this._freeNumbers.push(t),t++}dispose(){this._reservedNumbers=null,this._freeNumbers=null}reserveNumber(){if(this._freeNumbers.length>0){const e=this._freeNumbers.pop();return this._reservedNumbers.push(e),e}return-1}freeNumber(e){const t=this._reservedNumbers.indexOf(e);t>=0&&(this._reservedNumbers.splice(t,1),this._freeNumbers.push(e))}}class QQ{static getFlipHBitmapData(e){if(!e)return null;const t=St.createRenderTexture(e.width,e.height),i=new dt;return i.scale(-1,1),i.translate(e.width,0),oi.instance.renderer.render(new mt(e),{renderTexture:t,clear:!0,transform:i}),t}static getFlipVBitmapData(e){if(!e)return null;const t=new dt;t.scale(1,-1),t.translate(0,e.height);const i=new qc;return i.beginTextureFill({texture:e,matrix:t}).drawRect(0,0,e.width,e.height).endFill(),St.generateTexture(i)}static getFlipHVBitmapData(e){if(!e)return null;const t=new dt;t.scale(-1,-1),t.translate(e.width,e.height);const i=new qc;return i.beginTextureFill({texture:e,matrix:t}).drawRect(0,0,e.width,e.height).endFill(),St.generateTexture(i)}}const Oe=class Oe{static init(e,t){Oe._currentDelta=0,Oe._startDelayMs=e,Oe._effectDurationMs=t,Oe._initializationTimeMs=Pe(),Oe._state=Oe.STATE_START_DELAY}static turnVisualizationOn(){if(Oe._state===Oe.STATE_NOT_INITIALIZED||Oe._state===Oe.STATE_OVER)return;const e=Pe()-Oe._initializationTimeMs;if(e>Oe._startDelayMs+Oe._effectDurationMs){Oe._state=Oe.STATE_OVER;return}if(Oe._visualizationOn=!0,e<Oe._startDelayMs){Oe._state=Oe.STATE_START_DELAY;return}Oe._state=Oe.STATE_RUNNING,Oe._currentDelta=(e-Oe._startDelayMs)/Oe._effectDurationMs}static turnVisualizationOff(){Oe._visualizationOn=!1}static isVisualizationOn(){return Oe._visualizationOn&&Oe.isRunning()}static isRunning(){return Oe._state===Oe.STATE_START_DELAY||Oe._state===Oe.STATE_RUNNING}static getDelta(e=0,t=1){return Math.min(Math.max(Oe._currentDelta,e),t)}static get totalRunningTime(){return Oe._startDelayMs+Oe._effectDurationMs}};Oe.STATE_NOT_INITIALIZED=0,Oe.STATE_START_DELAY=1,Oe.STATE_RUNNING=2,Oe.STATE_OVER=3,Oe._state=Oe.STATE_NOT_INITIALIZED,Oe._visualizationOn=!1,Oe._currentDelta=0,Oe._initializationTimeMs=0,Oe._startDelayMs=20*1e3,Oe._effectDurationMs=2e3;let Pr=Oe;const pr=class pr{constructor(e,t,i,n=null){this._updateId=0,this._scale=1,this._x_scale=1,this._y_scale=1,this._z_scale=1,this._x_scale_internal=1,this._y_scale_internal=1,this._z_scale_internal=1,this._clipNear=-500,this._clipFar=500,this._displacements=null,this.scale=e,this._x=new M,this._y=new M,this._z=new M,this._directionAxis=new M,this._location=new M,this._direction=new M,this._depth=new M,this._x_scale_internal=1,this._y_scale_internal=1,this.x_scale=1,this.y_scale=1,this._z_scale_internal=Math.sqrt(1/2)/Math.sqrt(3/4),this.z_scale=1,this.location=new M(i.x,i.y,i.z),this.direction=new M(t.x,t.y,t.z),n!=null?this.setDepthVector(n):this.setDepthVector(t),this._displacements=new Map}static getIntersectionVector(e,t,i,n){const r=M.dotProduct(t,n);if(Math.abs(r)<1e-5)return null;const a=M.dif(e,i),o=-M.dotProduct(n,a)/r;return M.sum(e,M.product(t,o))}get updateId(){return this._updateId}get scale(){return this._scale/Math.sqrt(.5)}set scale(e){e<=1&&(e=1),e=e*Math.sqrt(.5),e!=this._scale&&(this._scale=e,this._updateId++)}get directionAxis(){return this._directionAxis}get location(){return this._location.assign(this._loc),this._location.x=this._location.x*this._x_scale,this._location.y=this._location.y*this._y_scale,this._location.z=this._location.z*this._z_scale,this._location}set location(e){if(e==null)return;this._loc==null&&(this._loc=new M);const t=this._loc.x,i=this._loc.y,n=this._loc.z;this._loc.assign(e),this._loc.x=this._loc.x/this._x_scale,this._loc.y=this._loc.y/this._y_scale,this._loc.z=this._loc.z/this._z_scale,(this._loc.x!=t||this._loc.y!=i||this._loc.z!=n)&&this._updateId++}get direction(){return this._direction}set direction(e){let t,i,n,r,a;if(e==null)return;this._dir==null&&(this._dir=new M);const o=this._dir.x,l=this._dir.y,u=this._dir.z;this._dir.assign(e),this._direction.assign(e),(this._dir.x!=o||this._dir.y!=l||this._dir.z!=u)&&this._updateId++;const c=new M(0,1,0),h=new M(0,0,1),f=new M(1,0,0),d=e.x/180*Math.PI,_=e.y/180*Math.PI,g=e.z/180*Math.PI,p=Math.cos(d),m=Math.sin(d),v=M.sum(M.product(c,p),M.product(f,-m)),E=new M(h.x,h.y,h.z),y=M.sum(M.product(c,m),M.product(f,p)),T=Math.cos(_),w=Math.sin(_),C=new M(v.x,v.y,v.z),N=M.sum(M.product(E,T),M.product(y,w)),P=M.sum(M.product(E,-w),M.product(y,T));g!=0?(t=Math.cos(g),i=Math.sin(g),n=M.sum(M.product(C,t),M.product(N,i)),r=M.sum(M.product(C,-i),M.product(N,t)),a=new M(P.x,P.y,P.z),this._x.assign(n),this._y.assign(r),this._z.assign(a),this._directionAxis.assign(this._z)):(this._x.assign(C),this._y.assign(N),this._z.assign(P),this._directionAxis.assign(this._z))}set x_scale(e){this._x_scale!=e*this._x_scale_internal&&(this._x_scale=e*this._x_scale_internal,this._updateId++)}set y_scale(e){this._y_scale!=e*this._y_scale_internal&&(this._y_scale=e*this._y_scale_internal,this._updateId++)}set z_scale(e){this._z_scale!=e*this._z_scale_internal&&(this._z_scale=e*this._z_scale_internal,this._updateId++)}dispose(){this._x=null,this._y=null,this._z=null,this._loc=null,this._dir=null,this._directionAxis=null,this._location=null,this._displacements!=null&&(this._displacements.clear(),this._displacements=null)}setDisplacement(e,t){let i,n;e==null||t==null||this._displacements!=null&&(i=Math.trunc(Math.round(e.x))+"_"+Math.trunc(Math.round(e.y))+"_"+Math.trunc(Math.round(e.z)),this._displacements.delete(i),n=new M,n.assign(t),this._displacements.set(i,n),this._updateId++)}getDisplacenent(e){let t;return this._displacements!=null?(t=Math.trunc(Math.round(e.x))+"_"+Math.trunc(Math.round(e.y))+"_"+Math.trunc(Math.round(e.z)),this._displacements.get(t)):null}setDepthVector(e){let t,i,n;const r=new M(0,1,0),a=new M(0,0,1),o=new M(1,0,0),l=e.x/180*Math.PI,u=e.y/180*Math.PI,c=e.z/180*Math.PI,h=Math.cos(l),f=Math.sin(l),d=M.sum(M.product(r,h),M.product(o,-f)),_=new M(a.x,a.y,a.z),g=M.sum(M.product(r,f),M.product(o,h)),p=Math.cos(u),m=Math.sin(u),v=new M(d.x,d.y,d.z),E=M.sum(M.product(_,p),M.product(g,m)),y=M.sum(M.product(_,-m),M.product(g,p));c!=0?(t=Math.cos(c),i=Math.sin(c),M.sum(M.product(v,t),M.product(E,i)),M.sum(M.product(v,-i),M.product(E,t)),n=new M(y.x,y.y,y.z),this._depth.assign(n)):this._depth.assign(y),this._updateId++}adjustLocation(e,t){if(e==null||this._z==null)return;const i=M.product(this._z,-t),n=new M(e.x+i.x,e.y+i.y,e.z+i.z);this.location=n}getCoordinatePosition(e){if(e==null)return null;const t=M.scalarProjection(e,this._x),i=M.scalarProjection(e,this._y),n=M.scalarProjection(e,this._z);return new M(t,i,n)}getScreenPosition(e){let t=M.dif(e,this._loc);t.x=t.x*this._x_scale,t.y=t.y*this._y_scale,t.z=t.z*this._z_scale;let i=M.scalarProjection(t,this._depth);if(i<this._clipNear||i>this._clipFar)return null;let n=M.scalarProjection(t,this._x),r=-M.scalarProjection(t,this._y);n=n*this._scale,r=r*this._scale;const a=this.getDisplacenent(e);return a!=null&&(t=M.dif(e,this._loc),t.add(a),t.x=t.x*this._x_scale,t.y=t.y*this._y_scale,t.z=t.z*this._z_scale,i=M.scalarProjection(t,this._depth)),t.x=n,t.y=r,t.z=i,t}getScreenPoint(e){const t=this.getScreenPosition(e);return t==null?null:new Q(t.x,t.y)}getPlanePosition(e,t,i,n){let r,a;const o=e.x/this._scale,l=-e.y/this._scale,u=M.product(this._x,o);u.add(M.product(this._y,l));const c=new M(this._loc.x*this._x_scale,this._loc.y*this._y_scale,this._loc.z*this._z_scale);c.add(u);const h=this._z,f=new M(t.x*this._x_scale,t.y*this._y_scale,t.z*this._z_scale),d=new M(i.x*this._x_scale,i.y*this._y_scale,i.z*this._z_scale),_=new M(n.x*this._x_scale,n.y*this._y_scale,n.z*this._z_scale),g=M.crossProduct(d,_),p=new M;return p.assign(pr.getIntersectionVector(c,h,f,g)),p!=null?(p.subtract(f),r=M.scalarProjection(p,i)/d.length*i.length,a=M.scalarProjection(p,n)/_.length*n.length,new Q(r,a)):null}performZoom(){this.isZoomedIn()?this.scale=pr.SCALE_ZOOMED_OUT:this.scale=pr.SCALE_ZOOMED_IN}isZoomedIn(){return this.scale==pr.SCALE_ZOOMED_IN}performZoomOut(){this.scale=pr.SCALE_ZOOMED_OUT}performZoomIn(){this.scale=pr.SCALE_ZOOMED_IN}};pr.SCALE_ZOOMED_IN=64,pr.SCALE_ZOOMED_OUT=32;let Bu=pr;const jd=class jd{static makeRoomPreviewerId(e){return(e&65535)+jd.PREVIEW_ROOM_ID_BASE}static isRoomPreviewerId(e){return e>=jd.PREVIEW_ROOM_ID_BASE}};jd.PREVIEW_ROOM_ID_BASE=2147418112;let hv=jd;const vn=class vn{static init(e,t){this._SafeStr_4513=0,this._SafeStr_4515=e,this._SafeStr_4516=t,this._SafeStr_4514=Pe(),this._SafeStr_448=1}static turnVisualizationOn(){if(this._SafeStr_448===0||this._SafeStr_448===3)return;this._SafeStr_4524||(this._SafeStr_4524=setTimeout(()=>this.turnVisualizationOff(),this._SafeStr_4516));const e=Pe()-this._SafeStr_4514;if(e>this._SafeStr_4515+this._SafeStr_4516){this._SafeStr_448=3;return}if(this._SafeStr_4512=!0,e<this._SafeStr_4515){this._SafeStr_448=1;return}this._SafeStr_448=2,this._SafeStr_4513=(e-this._SafeStr_4515)/this._SafeStr_4516}static turnVisualizationOff(){this._SafeStr_4512=!1,clearTimeout(this._SafeStr_4524),this._SafeStr_4524=null}static isVisualizationOn(){return this._SafeStr_4512&&this.isRunning()}static isRunning(){return this._SafeStr_448===1||this._SafeStr_448===2}};vn.STATE_NOT_INITIALIZED=0,vn.STATE_START_DELAY=1,vn.STATE_RUNNING=2,vn.STATE_OVER=3,vn._SafeStr_448=0,vn._SafeStr_4512=!1,vn._SafeStr_4513=0,vn._SafeStr_4514=0,vn._SafeStr_4515=2e4,vn._SafeStr_4516=5e3;let KR=vn;const Hn=class Hn{static init(e,t){this._SafeStr_4513=0,this._SafeStr_4515=e,this._SafeStr_4516=t,this._SafeStr_4514=Pe(),this._SafeStr_448=1}static turnVisualizationOn(){if(this._SafeStr_448===0||this._SafeStr_448===3)return;this._SafeStr_4524||(this._SafeStr_4524=setTimeout(()=>this.turnVisualizationOff(),this._SafeStr_4516));const e=Pe()-this._SafeStr_4514;if(e>this._SafeStr_4515+this._SafeStr_4516){this._SafeStr_448=3;return}if(this._SafeStr_4512=!0,e<this._SafeStr_4515){this._SafeStr_448=1;return}this._SafeStr_448=2,this._SafeStr_4513=(e-this._SafeStr_4515)/this._SafeStr_4516}static turnVisualizationOff(){this._SafeStr_4512=!1,clearTimeout(this._SafeStr_4524),this._SafeStr_4524=null}static isVisualizationOn(){return this._SafeStr_4512&&this.isRunning()}static isRunning(){return this._SafeStr_448===1||this._SafeStr_448===2}};Hn.STATE_NOT_INITIALIZED=0,Hn.STATE_START_DELAY=1,Hn.STATE_RUNNING=2,Hn.STATE_OVER=3,Hn._SafeStr_448=0,Hn._SafeStr_4512=!1,Hn._SafeStr_4514=0,Hn._SafeStr_4515=2e4,Hn._SafeStr_4516=5e3;let cv=Hn;class ZQ{static hex2int(e){return parseInt(e,16)}static inkToBlendMode(e){return e=="ADD"||e==33?ge.ADD:e=="SUBTRACT"?ge.SUBTRACT:e=="DARKEN"?ge.DARKEN:ge.NORMAL}}class fv extends mt{constructor(e=null){super(e),this._offsetX=0,this._offsetY=0,this._tag="",this._alphaTolerance=128,this._varyingDepth=!1,this._clickHandling=!1,this._pairedSpriteId=-1,this._pairedSpriteUpdateCounter=-1}needsUpdate(e,t){return this._pairedSpriteId===e&&this._pairedSpriteUpdateCounter===t?!1:(this._pairedSpriteId=e,this._pairedSpriteUpdateCounter=t,!0)}calculateVertices(){this.texture.orig&&super.calculateVertices()}setTexture(e){e||(e=Ne.EMPTY),e!==this.texture&&(e===Ne.EMPTY&&(this._pairedSpriteId=-1,this._pairedSpriteUpdateCounter=-1),this.texture=e)}containsPoint(e){return fv.containsPoint(this,e)}static containsPoint(e,t){if(!e||!t||e.alphaTolerance>255||!(e instanceof mt))return!1;if(e.texture===Ne.EMPTY||e.blendMode!==ge.NORMAL)return;const i=e.texture,n=i.baseTexture;if(!i||!n||!n.valid)return!1;const r=t.x*e.scale.x,a=t.y*e.scale.y;if(!e.getLocalBounds().contains(r,a)||!n.hitMap&&!fv.generateHitMap(n))return!1;const o=n.hitMap;let l=r+i.frame.x,u=a+i.frame.y;i.trim&&(l-=i.trim.x,u-=i.trim.y),l=Math.round(l)*n.resolution,u=Math.round(u)*n.resolution;const c=l+u*n.realWidth,h=c%32,f=c/32|0;return(o[f]&1<<h)!==0}static generateHitMap(e){if(!e)return!1;const t=new Ne(e),i=new mt(t),n=St.getPixels(i),r=e.width,a=e.height,o=new Uint32Array(Math.ceil(r*a/32)),l=tr.MATCH_OPAQUE_PIXELS;for(let u=0;u<r*a;u++){const c=u%32,h=u/32|0;n[u*4+3]>=l&&(o[h]=o[h]|1<<c)}return e.hitMap=o,i.destroy(),t.destroy(),!0}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e}get tag(){return this._tag}set tag(e){this._tag=e}get alphaTolerance(){return this._alphaTolerance}set alphaTolerance(e){this._alphaTolerance=e}get varyingDepth(){return this._varyingDepth}set varyingDepth(e){this._varyingDepth=e}get clickHandling(){return this._clickHandling}set clickHandling(e){this._clickHandling=e}}class JQ{constructor(){this._objectId="",this._spriteTag=""}get objectId(){return this._objectId}set objectId(e){this._objectId=e}get spriteTag(){return this._spriteTag}set spriteTag(e){this._spriteTag=e}}const dE=class dE{constructor(){this._name="",this._sprite=null,this._x=0,this._y=0,this._z=0}dispose(){this._z=-dE.Z_INFINITY,this._sprite=null}get name(){return this._name}set name(e){this._name=e}get sprite(){return this._sprite}set sprite(e){this._sprite=e}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}};dE.Z_INFINITY=1e8;let qR=dE;class eZ{constructor(e,t,i,n,r){this._SafeStr_4507=!1,this._rotation=0,this._rotationOrigin=null,this._rotationRodLength=0,this._SafeStr_795=0,this._id=t,this._container=e,this._geometry=new Bu(r,new M(-135,30,0),new M(11,11,5),new M(-135,.5,0)),this._animationFPS=ce.instance.getConfiguration("system.fps.animation",24),this._renderTimestamp=0,this._totalTimeRunning=0,this._lastFrame=0,this._master=null,this._display=null,this._mask=null,this._sortableSprites=[],this._spriteCount=0,this._activeSpriteCount=0,this._spritePool=[],this._skipObjectUpdate=!1,this._runningSlow=!1,this._width=0,this._height=0,this._renderedWidth=0,this._renderedHeight=0,this._screenOffsetX=0,this._screenOffsetY=0,this._mouseLocation=new Q,this._mouseOldX=0,this._mouseOldY=0,this._mouseCheckCount=0,this._mouseSpriteWasHit=!1,this._mouseActiveObjects=new Map,this._eventCache=new Map,this._eventId=0,this._scale=1,this._restrictsScaling=!1,this._noSpriteVisibilityChecking=!1,this._usesExclusionRectangles=!1,this._usesMask=!0,this._canvasUpdated=!1,this._objectCache=new YR(this._container.roomObjectVariableAccurateZ),this._mouseListener=null,this.setupCanvas(),this.initialize(i,n)}setupCanvas(){if(this._master||(this._master=new kt,this._master.interactiveChildren=!1),!this._display){const e=new Qn;this._master.addChild(e),this._display=e}}dispose(){if(this.cleanSprites(0,!0),this._geometry&&(this._geometry.dispose(),this._geometry=null),this._mask&&(this._mask=null),this._objectCache&&(this._objectCache.dispose(),this._objectCache=null),this._master){for(;this._master.children.length;)this._master.removeChildAt(0).destroy();this._master.parent&&this._master.parent.removeChild(this._master),this._master.destroy(),this._master=null}if(this._display=null,this._sortableSprites=[],this._mouseActiveObjects&&(this._mouseActiveObjects.clear(),this._mouseActiveObjects=null),this._spritePool){for(const e of this._spritePool)this.cleanSprite(e,!0);this._spritePool=[]}this._eventCache&&(this._eventCache.clear(),this._eventCache=null),this._mouseListener=null}initialize(e,t){if(e=e<1?1:e,t=t<1?1:t,this._usesMask&&(this._mask?this._mask.clear().beginFill(16711680).drawRect(0,0,e,t).endFill():(this._mask=new qc().beginFill(16711680).drawRect(0,0,e,t).endFill(),this._master&&(this._master.addChild(this._mask),this._display&&(this._display.mask=this._mask)))),this._master){if(this._master.hitArea){const i=this._master.hitArea;i.width=e,i.height=t}else this._master.hitArea=new ve(0,0,e,t);if(this._master.filterArea){const i=this._master.filterArea;i.width=e,i.height=t}else this._master.filterArea=new ve(0,0,e,t)}this._width=e,this._height=t}setMask(e){e&&!this._usesMask?(this._usesMask=!0,this._mask&&this._mask.parent!==this._master&&(this._master.addChild(this._mask),this._display.mask=this._mask)):!e&&this._usesMask&&(this._usesMask=!1,this._mask&&this._mask.parent===this._master&&(this._master.removeChild(this._mask),this._display.mask=null))}setScale(e,t=null,i=null,n=!1,r=!1){!this._master||!this._display||this._restrictsScaling&&!n||(t||(t=new Q(this._width/2,this._height/2)),i||(i=t),t=this._display.toLocal(t),r?this._scale*=e:this._scale=e,this.screenOffsetX=i.x-t.x*this._scale,this.screenOffsetY=i.y-t.y*this._scale)}render(e,t=!1){if(this._canvasUpdated=!1,this._totalTimeRunning+=ga().deltaTime,this._totalTimeRunning===this._renderTimestamp||(e===-1&&(e=this._renderTimestamp+1),!this._container||!this._geometry))return;(this._width!==this._renderedWidth||this._height!==this._renderedHeight)&&(t=!0),(this._display.x!==this._screenOffsetX||this._display.y!==this._screenOffsetY)&&(this._display.position.set(this._screenOffsetX,this._screenOffsetY),t=!0),this._display.scale.x!==this._scale&&(this._display.scale.set(this._scale),t=!0),this.doMagic();const i=Math.round(this._totalTimeRunning/(60/this._animationFPS));let n=!1;i!==this._lastFrame&&(this._lastFrame=i,n=!0);let r=0;const a=this._container.objects;if(a.size)for(const l of a.values())l&&(r=r+this.renderObject(l,l.instanceId.toString(),e,t,n,r));this._sortableSprites.sort((l,u)=>u.z-l.z),r<this._sortableSprites.length&&this._sortableSprites.splice(r);let o=0;for(;o<r;){const l=this._sortableSprites[o];l&&l.sprite&&this.renderSprite(o,l),o++}this.cleanSprites(r),(t||n)&&(this._canvasUpdated=!0),this._renderTimestamp=this._totalTimeRunning,this._renderedWidth=this._width,this._renderedHeight=this._height}skipSpriteVisibilityChecking(){this._noSpriteVisibilityChecking=!0,this.render(-1,!0)}resumeSpriteVisibilityChecking(){this._noSpriteVisibilityChecking=!1}getSortableSpriteList(){return this._objectCache.getSortableSpriteList()}getPlaneSortableSprites(){return this._objectCache.getPlaneSortableSprites()}removeFromCache(e){this._objectCache.removeObjectCache(e)}renderObject(e,t,i,n,r,a){if(!e)return 0;const o=e.visualization;if(!o)return this.removeFromCache(t),0;const l=this.getCacheItem(t);l.objectId=e.instanceId;const u=l.location,c=l.sprites,h=u.updateLocation(e,this._geometry);if(!h)return this.removeFromCache(t),0;if(r&&o.update(this._geometry,i,!c.isEmpty||n,this._skipObjectUpdate&&this._runningSlow),u.locationChanged&&(n=!0),!c.needsUpdate(o.instanceId,o.updateSpriteCounter)&&!n)return c.spriteCount;let f=h.x,d=h.y,_=h.z;f>0?_=_+f*12e-8:_=_+-f*12e-8,f=f+Math.trunc(this._width/2),d=d+Math.trunc(this._height/2);let g=0;for(const p of o.sprites.values()){if(!p||!p.visible)continue;const m=p.texture,v=m&&m.baseTexture;if(!m||!v)continue;const E=f+p.offsetX+this._screenOffsetX,y=d+p.offsetY+this._screenOffsetY;if(p.flipH){const w=f+-(m.width+-p.offsetX)+this._screenOffsetX;if(!this.isSpriteVisible(w,y,m.width,m.height))continue}else if(p.flipV){const w=d+-(m.height+-p.offsetY)+this._screenOffsetY;if(!this.isSpriteVisible(E,w,m.width,m.height))continue}else if(!this.isSpriteVisible(E,y,m.width,m.height))continue;let T=c.getSprite(g);T||(T=new qR,c.addSprite(T),this._sortableSprites.push(T),T.name=t),T.sprite=p,(p.spriteType===Js.AVATAR||p.spriteType===Js.AVATAR_OWN)&&(T.sprite.libraryAssetName="avatar_"+e.id),T.x=E-this._screenOffsetX,T.y=y-this._screenOffsetY,T.z=_+p.relativeDepth+37e-12*a,g++,a++}return c.setSpriteCount(g),this._canvasUpdated=!0,g}getExtendedSprite(e){if(e<0||e>=this._spriteCount)return null;const t=this._display.getChildAt(e);return t||null}getExtendedSpriteIdentifier(e){return e?e.name:""}renderSprite(e,t){if(e>=this._spriteCount)return this.createAndAddSprite(t),!0;if(!t)return!1;const i=t.sprite,n=this.getExtendedSprite(e);if(!i||!n)return!1;if(n.varyingDepth!==i.varyingDepth)return n.varyingDepth&&!i.varyingDepth?(this._display.removeChildAt(e),this._spritePool.push(n),this.renderSprite(e,t)):(this.createAndAddSprite(t,e),!0);if(n.needsUpdate(i.id,i.updateCounter)||Pr.isVisualizationOn()){n.tag=i.tag,n.alphaTolerance=i.alphaTolerance,n.name=t.name,n.varyingDepth=i.varyingDepth,n.clickHandling=i.clickHandling,n.filters=i.filters;const r=i.alpha/255;n.alpha!==r&&(n.alpha=r),n.tint!==i.color&&(n.tint=i.color),n.blendMode!==i.blendMode&&(n.blendMode=i.blendMode),n.texture!==i.texture&&n.setTexture(i.texture),i.updateContainer&&(n.children.length===1&&n.removeChildAt(0),n.addChild(i.container),i.updateContainer=!1),i.flipH?n.scale.x!==-1&&(n.scale.x=-1):n.scale.x!==1&&(n.scale.x=1),i.flipV?n.scale.y!==-1&&(n.scale.y=-1):n.scale.y!==1&&(n.scale.y=1),this.updateEnterRoomEffect(n,i)}return n.x!==t.x&&(n.x=t.x),n.y!==t.y&&(n.y=t.y),n.offsetX=i.offsetX,n.offsetY=i.offsetY,!0}createAndAddSprite(e,t=-1){const i=e.sprite;if(!i)return;let n=null;this._spritePool.length>0&&(n=this._spritePool.pop()),n||(n=new fv),n.children.length&&n.removeChildren(),n.tag=i.tag,n.alphaTolerance=i.alphaTolerance,n.alpha=i.alpha/255,n.tint=i.color,n.x=e.x,n.y=e.y,n.offsetX=i.offsetX,n.offsetY=i.offsetY,n.name=i.name,n.varyingDepth=i.varyingDepth,n.clickHandling=i.clickHandling,n.blendMode=i.blendMode,n.filters=i.filters,n.setTexture(i.texture),i.updateContainer&&(n.addChild(i.container),i.updateContainer=!1),i.flipH&&(n.scale.x=-1),i.flipV&&(n.scale.y=-1),this.updateEnterRoomEffect(n,i),t<0||t>=this._spriteCount?(this._display.addChild(n),this._spriteCount++):this._display.addChildAt(n,t),this._activeSpriteCount++}cleanSprites(e,t=!1){if(this._display){if(e<0&&(e=0),e<this._activeSpriteCount||!this._activeSpriteCount){let i=this._spriteCount-1;for(;i>=e;)this.cleanSprite(this.getExtendedSprite(i),t),i--}this._activeSpriteCount=e}}updateEnterRoomEffect(e,t){if(!(!Pr.isVisualizationOn()||!t))switch(t.spriteType){case Js.AVATAR_OWN:return;case Js.ROOM_PLANE:e.alpha=Pr.getDelta(.9);return;case Js.AVATAR:e.alpha=Pr.getDelta(.5);return;default:e.alpha=Pr.getDelta(.1)}}cleanSprite(e,t){e&&(t?(e.parent&&e.parent.removeChild(e),e.destroy({children:!0})):e.setTexture(null))}update(){this._mouseCheckCount,this._mouseCheckCount=0,this._eventId++}setMouseListener(e){this._mouseListener=e}getCacheItem(e){return this._objectCache.getObjectCache(e)}isSpriteVisible(e,t,i,n){return!!(this._noSpriteVisibilityChecking||(e=(e-this._screenOffsetX)*this._scale+this._screenOffsetX,t=(t-this._screenOffsetY)*this._scale+this._screenOffsetY,i=i*this._scale,n=n*this._scale,e<this._width&&e+i>=0&&t<this._height&&t+n>=0&&!this._usesExclusionRectangles))}handleMouseEvent(e,t,i,n,r,a,o){return e=e-this._screenOffsetX,t=t-this._screenOffsetY,this._mouseLocation.x=e/this._scale,this._mouseLocation.y=t/this._scale,this._mouseCheckCount>0&&i==ue.MOUSE_MOVE?this._mouseSpriteWasHit:(this._mouseSpriteWasHit=this.checkMouseHits(Math.trunc(e/this._scale),Math.trunc(t/this._scale),i,n,r,a,o),this._mouseCheckCount++,this._mouseSpriteWasHit)}checkMouseHits(e,t,i,n=!1,r=!1,a=!1,o=!1){const l=[];let u=!1,c=null,h=this._activeSpriteCount-1;for(;h>=0;){const _=this.getExtendedSprite(h);if(_&&_.containsPoint(new Q(e-_.x,t-_.y))&&!(_.clickHandling&&(i===ue.MOUSE_CLICK||i===ue.DOUBLE_CLICK))){const g=this.getExtendedSpriteIdentifier(_);if(l.indexOf(g)===-1){const p=_.tag;let m=this._mouseActiveObjects.get(g);m&&m.spriteTag!==p&&(c=this.createMouseEvent(0,0,0,0,ue.ROLL_OUT,m.spriteTag,n,r,a,o),this.bufferMouseEvent(c,g)),i===ue.MOUSE_MOVE&&(!m||m.spriteTag!==p)?c=this.createMouseEvent(e,t,e-_.x,t-_.y,ue.ROLL_OVER,p,n,r,a,o):(c=this.createMouseEvent(e,t,e-_.x,t-_.y,i,p,n,r,a,o),c.spriteOffsetX=_.offsetX,c.spriteOffsetY=_.offsetY),m||(m=new JQ,m.objectId=g,this._mouseActiveObjects.set(g,m)),m.spriteTag=p,(i!==ue.MOUSE_MOVE||e!==this._mouseOldX||t!==this._mouseOldY)&&this.bufferMouseEvent(c,g),l.push(g)}u=!0}h--}const f=[];for(const _ of this._mouseActiveObjects.keys())_&&f.push(_);let d=0;for(;d<f.length;){const _=f[d];l.indexOf(_)>=0&&(f[d]=null),d++}for(d=0;d<f.length;){const _=f[d];if(_!==null){const g=this._mouseActiveObjects.get(_);g&&this._mouseActiveObjects.delete(_);const p=this.createMouseEvent(0,0,0,0,ue.ROLL_OUT,g.spriteTag,n,r,a,o);this.bufferMouseEvent(p,_)}d++}return this.processMouseEvents(),this._mouseOldX=e,this._mouseOldY=t,u}createMouseEvent(e,t,i,n,r,a,o,l,u,c){const h=e-this._width/2,f=t-this._height/2,d=`canvas_${this._id}`;return new oQ(r,d+"_"+this._eventId,d,a,h,f,i,n,l,o,u,c)}bufferMouseEvent(e,t){!e||!this._eventCache||(this._eventCache.delete(t),this._eventCache.set(t,e))}processMouseEvents(){if(!(!this._container||!this._eventCache)){for(const[e,t]of this._eventCache.entries()){if(!this._eventCache)return;if(!t)continue;const i=this._container.getRoomObject(parseInt(e));if(i)if(this._mouseListener)this._mouseListener.processRoomCanvasMouseEvent(t,i,this._geometry);else{const n=i.mouseHandler;n&&n.mouseEvent(t,this._geometry)}}this._eventCache&&this._eventCache.clear()}}getDisplayAsTexture(){this._noSpriteVisibilityChecking=!0;const e=this._scale,t=this._screenOffsetX,i=this._screenOffsetY;this.setScale(1,null,null,!0),this._screenOffsetX=0,this._screenOffsetY=0,this.render(-1,!0),this._display.mask=null;const n=this._display.getBounds(),r=Pi.create({width:this._display.width,height:this._display.height});return oi.instance.renderer.render(this._display,{renderTexture:r,clear:!0,transform:new dt(1,0,0,1,-n.x,-n.y)}),this._display.mask=this._mask,this._noSpriteVisibilityChecking=!1,this.setScale(e,null,null,!0),this._screenOffsetX=t,this._screenOffsetY=i,r}doMagic(){const e=this.geometry;if(this._rotation!==0){let t=this._effectDirection;e.direction=new M(t.x+this._rotation,t.y,t.z),t=e.direction,e.setDepthVector(new M(t.x,t.y,5));const i=new M;i.assign(this._rotationOrigin),i.x=i.x+this._rotationRodLength*Math.cos((t.x+180)/180*3.14159265358979)*Math.cos(t.y/180*3.14159265358979),i.y=i.y+this._rotationRodLength*Math.sin((t.x+180)/180*3.14159265358979)*Math.cos(t.y/180*3.14159265358979),i.z=i.z+this._rotationRodLength*Math.sin(t.y/180*3.14159265358979),e.location=i,this._effectLocation=new M,this._effectLocation.assign(i),this._effectDirection=new M,this._effectDirection.assign(e.direction)}if(cv.isVisualizationOn()&&!this._SafeStr_4507?this.changeShaking():!cv.isVisualizationOn()&&this._SafeStr_4507&&this.changeShaking(),KR.isVisualizationOn()&&this.changeRotation(),this._SafeStr_4507){this._SafeStr_795++;const t=this._effectDirection,i=M.sum(t,new M(Math.sin(this._SafeStr_795*5/180*3.14159265358979)*2,Math.sin(this._SafeStr_795/180*3.14159265358979)*5,Math.sin(this._SafeStr_795*10/180*3.14159265358979)*2));e.direction=i}else this._SafeStr_795=0,e.direction=this._effectDirection}changeShaking(){if(this._SafeStr_4507=!this._SafeStr_4507,this._SafeStr_4507){const e=this.geometry.direction;this._effectDirection=new M(e.x,e.y,e.z)}}changeRotation(){if(this._SafeStr_4507)return;const e=this.geometry;if(e){if(this._rotation===0){const t=e.location,i=e.directionAxis;this._effectLocation=new M,this._effectLocation.assign(t),this._effectDirection=new M,this._effectDirection.assign(e.direction);const n=Bu.getIntersectionVector(t,i,new M(0,0,0),new M(0,0,1));n!==null&&(this._rotationOrigin=new M(n.x,n.y,n.z),this._rotationRodLength=M.dif(n,t).length,this._rotation=1);return}this._rotation=0,e.location=this._effectLocation,e.direction=this._effectDirection,e.setDepthVector(new M(this._effectDirection.x,this._effectDirection.y,5))}}moveLeft(){if(this._rotation!==0){this._rotation===1?this._rotation=-1:this._rotation=this._rotation-1;return}const e=this.geometry,t=(e.direction.x-90)/180*3.14159265358979;e.location=M.sum(e.location,new M(Math.cos(t)*Math.sqrt(2),Math.sin(t)*Math.sqrt(2)))}moveRight(){if(this._rotation!==0){this._rotation===-1?this._rotation=1:this._rotation=this._rotation+1;return}const e=this.geometry,t=(e.direction.x+90)/180*3.14159265358979;e.location=M.sum(e.location,new M(Math.cos(t)*Math.sqrt(2),Math.sin(t)*Math.sqrt(2)))}moveUp(){if(this._rotation!==0)return;const e=this.geometry,t=e.direction.x/180*3.14159265358979;e.location=M.sum(e.location,new M(Math.cos(t)*Math.sqrt(2),Math.sin(t)*Math.sqrt(2)))}moveDown(){if(this._rotation!==0)return;const e=this.geometry,t=(e.direction.x+180)/180*3.14159265358979;e.location=M.sum(e.location,new M(Math.cos(t)*Math.sqrt(2),Math.sin(t)*Math.sqrt(2)))}get id(){return this._id}get geometry(){return this._geometry}get master(){return this._master}get display(){return this._display}get screenOffsetX(){return this._screenOffsetX}set screenOffsetX(e){e=Math.trunc(e),this._mouseLocation.x=this._mouseLocation.x-(e-this._screenOffsetX),this._screenOffsetX=e}get screenOffsetY(){return this._screenOffsetY}set screenOffsetY(e){e=Math.trunc(e),this._mouseLocation.y=this._mouseLocation.y-(e-this._screenOffsetY),this._screenOffsetY=e}get scale(){return this._scale}get width(){return this._width*this._scale}get height(){return this._height*this._scale}get restrictsScaling(){return this._restrictsScaling}set restrictsScaling(e){this._restrictsScaling=e}get canvasUpdated(){return this._canvasUpdated}set canvasUpdated(e){this._canvasUpdated=e}}class tZ{constructor(){this._objects=new Map,this._canvases=new Map,this._disposed=!1,this._roomObjectVariableAccurateZ=null}dispose(){if(!this._disposed){if(this._canvases){for(const[e,t]of this._canvases.entries())this._canvases.delete(e),t&&t.dispose();this._canvases=null}this._objects&&(this._objects=null),this._disposed=!0}}reset(){this._objects.clear()}getInstanceId(e){return e?e.instanceId:-1}getRoomObject(e){return this._objects.get(e)}addObject(e){e&&this._objects.set(this.getInstanceId(e),e)}removeObject(e){const t=this.getInstanceId(e);this._objects.delete(t);for(const i of this._canvases.values()){if(!i)continue;i.removeFromCache(t.toString())}}render(e,t=!1){if(!(!this._canvases||!this._canvases.size))for(const i of this._canvases.values())i&&i.render(e,t)}update(e,t=!1){if(!(!this._canvases||!this._canvases.size)){this.render(e,t);for(const i of this._canvases.values())i&&i.update()}}getCanvas(e){const t=this._canvases.get(e);return t||null}createCanvas(e,t,i,n){const r=this._canvases.get(e);if(r)return r.initialize(t,i),r.geometry&&(r.geometry.scale=n),r;const a=this.createSpriteCanvas(e,t,i,n);if(a)return this._canvases.set(e,a),a}createSpriteCanvas(e,t,i,n){return new eZ(this,e,t,i,n)}removeCanvas(e){const t=this._canvases.get(e);t&&(this._canvases.delete(e),t.dispose())}get objects(){return this._objects}get disposed(){return this._disposed}get roomObjectVariableAccurateZ(){return this._roomObjectVariableAccurateZ}set roomObjectVariableAccurateZ(e){this._roomObjectVariableAccurateZ=e}}class iZ{createRenderer(){return new tZ}}class sZ extends Bs{constructor(e,t){super(),this._id=e,this._container=t,this._renderer=null,this._managers=new Map,this._updateCategories=[],this._model=new c4}onDispose(){this.removeAllManagers(),this.destroyRenderer(),this._container=null,this._model.dispose()}setRenderer(e){if(e!==this._renderer&&(this._renderer&&this.destroyRenderer(),this._renderer=e,!!this._renderer&&(this._renderer.reset(),this._managers.size)))for(const t of this._managers.values()){if(!t)continue;const i=t.objects;if(i.length)for(const n of i.getValues())n&&this._renderer.addObject(n)}}destroyRenderer(){this._renderer&&(this._renderer.dispose(),this._renderer=null)}getManager(e){const t=this._managers.get(e);return t||null}getManagerOrCreate(e){let t=this.getManager(e);return t||(t=this._container.createRoomObjectManager(e),t?(this._managers.set(e,t),t):null)}getTotalObjectsForManager(e){const t=this.getManager(e);return t?t.totalObjects:0}getRoomObject(e,t){const i=this.getManager(t);if(!i)return null;const n=i.getObject(e);return n||null}getRoomObjectsForCategory(e){const t=this.getManager(e);return t?t.objects.getValues():[]}getRoomObjectByIndex(e,t){const i=this.getManager(t);if(!i)return null;const n=i.getObjectByIndex(e);return n||null}createRoomObject(e,t,i,n){const r=this.getManagerOrCreate(n);if(!r)return null;const a=r.createObject(e,t,i);return a?(this._renderer&&this._renderer.addObject(a),a):null}createRoomObjectAndInitalize(e,t,i){return this._container?this._container.createRoomObjectAndInitalize(this._id,e,t,i):null}removeRoomObject(e,t){const i=this.getManager(t);if(!i)return;const n=i.getObject(e);n&&(n.tearDown(),this._renderer&&this._renderer.removeObject(n),i.removeObject(e))}removeAllManagers(){for(const e of this._managers.values())if(e){if(this._renderer){const t=e.objects;if(t.length)for(const i of t.getValues())i&&this._renderer.removeObject(i)}e.dispose()}this._managers.clear()}addUpdateCategory(e){this._updateCategories.indexOf(e)>=0||this._updateCategories.push(e)}removeUpdateCategory(e){const t=this._updateCategories.indexOf(e);t!==-1&&this._updateCategories.splice(t,1)}update(e,t=!1){for(const i of this._updateCategories){const n=this.getManager(i);if(!n)continue;const r=n.objects;if(r.length)for(const a of r.getValues()){if(!a)continue;const o=a.logic;o&&o.update(e)}}this._renderer&&this._renderer.update(e,t)}hasUninitializedObjects(){for(const e of this._managers.values())if(e){for(const t of e.objects.getValues())if(t&&!t.isReady)return!0}return!1}get id(){return this._id}get container(){return this._container}get renderer(){return this._renderer}get managers(){return this._managers}get model(){return this._model}}const zd=class zd{constructor(e,t,i,n,r,a,o){this._layerTags=[],this._primaryColor=e&16777215,this._secondaryColor=t&16777215,this._breed=i,this._tag=n>-1&&n<zd.COLOR_TAGS.length?zd.COLOR_TAGS[n]:"",this._id=r,this._isMaster=a,this._layerTags=o}get primaryColor(){return this._primaryColor}get secondaryColor(){return this._secondaryColor}get breed(){return this._breed}get tag(){return this._tag}get id(){return this._id}get isMaster(){return this._isMaster}get layerTags(){return this._layerTags}};zd.COLOR_TAGS=["Null","Black","White","Grey","Red","Orange","Pink","Green","Lime","Blue","Light-Blue","Dark-Blue","Yellow","Brown","Dark-Brown","Beige","Cyan","Purple","Gold"];let $R=zd;const et=class et{constructor(){this._stateEvents=null,this._sessionDataManager=null,this._waitingForSessionDataManager=!1,this._iconListener=null,this._collections=new Map,this._gifCollections=new Map,this._images=new Map,this._events=new Map,this._activeObjects={},this._activeObjectTypes=new Map,this._activeObjectTypeIds=new Map,this._objectTypeAdUrls=new Map,this._wallItems={},this._wallItemTypes=new Map,this._wallItemTypeIds=new Map,this._furniRevisions=new Map,this._pets={},this._petColors=new Map,this._objectAliases=new Map,this._objectOriginalNames=new Map,this._pendingContentTypes=[],this._dataInitialized=!1}initialize(e){this._stateEvents=e,this.setFurnitureData();for(const[t,i]of Te.getValue("pet.types").entries())this._pets[i]=t}dispose(){}setSessionDataManager(e){this._sessionDataManager=e,this._waitingForSessionDataManager&&(this._waitingForSessionDataManager=!1,this.setFurnitureData())}loadFurnitureData(){this.setFurnitureData()}setFurnitureData(){if(!this._sessionDataManager){this._waitingForSessionDataManager=!0;return}const e=this._sessionDataManager.getAllFurnitureData(this);e&&(this._sessionDataManager.removePendingFurniDataListener(this),this.processFurnitureData(e),this._stateEvents.dispatchEvent(new Ye(et.LOADER_READY)))}processFurnitureData(e){if(e)for(const t of e){if(!t)continue;const i=t.id;let n=t.className;t.hasIndexedColor&&(n=n+"*"+t.colorIndex);const r=t.revision,a=t.adUrl;a&&a.length>0&&this._objectTypeAdUrls.set(n,a);let o=t.className;t.type===du.FLOOR?(this._activeObjectTypes.set(i,n),this._activeObjectTypeIds.set(n,i),this._activeObjects[o]||(this._activeObjects[o]=1)):t.type===du.WALL&&(o==="post.it"&&(n="post_it",o="post_it"),o==="post.it.vd"&&(n="post_it_vd",o="post_id_vd"),this._wallItemTypes.set(i,n),this._wallItemTypeIds.set(n,i),this._wallItems[o]||(this._wallItems[o]=1));const l=this._furniRevisions.get(o);r>l&&(this._furniRevisions.delete(o),this._furniRevisions.set(o,r))}}getFurnitureFloorNameForTypeId(e){const t=this._activeObjectTypes.get(e);return this.removeColorIndex(t)}getFurnitureWallNameForTypeId(e,t=null){let i=this._wallItemTypes.get(e);return i==="poster"&&t!==null&&(i=i+t),this.removeColorIndex(i)}getFurnitureFloorColorIndex(e){const t=this._activeObjectTypes.get(e);return t?this.getColorIndexFromName(t):-1}getFurnitureWallColorIndex(e){const t=this._wallItemTypes.get(e);return t?this.getColorIndexFromName(t):-1}getColorIndexFromName(e){if(!e)return-1;const t=e.indexOf("*");return t===-1?0:parseInt(e.substr(t+1))}removeColorIndex(e){if(!e)return null;const t=e.indexOf("*");return t===-1?e:e.substr(0,t)}getRoomObjectAdUrl(e){const t=this._objectTypeAdUrls.get(e);return t||""}getPetColorResult(e,t){const i=this._petColors.get(e);return i?i.get(t):null}getPetColorResultsForTag(e,t){const i=this._petColors.get(e),n=[];if(i)for(const r of i.values())r.tag===t&&n.push(r);return n}getCollection(e){if(!e)return null;const t=this._collections.get(e);if(!t){const i=wn().getCollection(e);return i?(this._collections.set(e,i),i):null}return t}getGifCollection(e){return e&&this._gifCollections.get(e)||null}getImage(e){if(!e)return null;const t=this._images.get(e);if(!t)return null;const i=new Image;return i.src=t.src,i}addAssetToCollection(e,t,i,n=!0){const r=this.getCollection(e);return r?r.addAsset(t,i,n,0,0,!1,!1):!1}createGifCollection(e,t,i){if(!e||!t||!i)return null;const n=new eQ(e,t,i);return this._gifCollections.set(e,n),n}createCollection(e,t){if(!e||!t)return null;const i=new Vm(e,t);this._collections.set(i.name,i);const n=this._pets[i.name];if(n!==void 0){const r=i.getPaletteNames(),a=new Map;for(const o of r){const l=i.getPalette(o),u=e.palettes[o],c=l.primaryColor,h=l.secondaryColor,f=u.breed!==void 0?u.breed:0,d=u.colorTag!==void 0?u.colorTag:-1,_=u.master!==void 0?u.master:!1,g=u.tags!==void 0?u.tags:[];a.set(parseInt(o),new $R(c,h,f,d,o,_,g))}this._petColors.set(n,a)}}getPlaceholderName(e){switch(this.getCategoryForType(e)){case U.FLOOR:return et.PLACE_HOLDER;case U.WALL:return et.PLACE_HOLDER_WALL;default:return this._pets[e]!==void 0?et.PLACE_HOLDER_PET:et.PLACE_HOLDER_DEFAULT}}getCategoryForType(e){return e?this._activeObjects[e]!==void 0?U.FLOOR:this._wallItems[e]!==void 0?U.WALL:this._pets[e]!==void 0?U.UNIT:e.indexOf("poster")===0?U.WALL:e==="room"?U.ROOM:e===tt.USER||e===tt.PET||e===tt.BOT||e===tt.RENTABLE_BOT?U.UNIT:e===et.TILE_CURSOR||e===et.SELECTION_ARROW?U.CURSOR:U.MINIMUM:U.MINIMUM}getPetNameForType(e){return Te.getValue("pet.types")[e]||null}isLoaderType(e){return e=tt.getRealType(e),e!==Z.USER}downloadImage(e,t,i,n=null){let r=null,a=[];if(t&&t.indexOf(",")>=0&&(r=t,t=r.split(",")[0]),r?a=this.getAssetUrls(r,i,!0):a=this.getAssetUrls(t,i,!0),a&&a.length){const o=a[0],l=new Image;return l.src=o,l.onload=()=>{l.onerror=null,this._images.set([t,i].join("_"),l),this._iconListener.onRoomContentLoaded(e,[t,i].join("_"),!0)},l.onerror=()=>{l.onload=null,le.error("Failed to download asset",o),this._iconListener.onRoomContentLoaded(e,[t,i].join("_"),!1)},!0}return!1}async downloadAsset(e,t){var n;const i=(n=this.getAssetUrls(e))==null?void 0:n[0];if(!(!i||!i.length)&&!(this._pendingContentTypes.indexOf(e)>=0||this.getOrRemoveEventDispatcher(e))){this._pendingContentTypes.push(e),this._events.set(e,t);try{const r=await fetch(i);let a="application/octet-stream";switch(r.headers.has("Content-Type")&&(a=r.headers.get("Content-Type")),a){case"application/octet-stream":{const o=new Um(await r.arrayBuffer());await this.processAsset(o.baseTexture,o.jsonFile);const l=this._events.get(e);if(!l)return;l.dispatchEvent(new ba(ba.RCLE_SUCCESS,e));break}default:throw new Error}}catch{t.dispatchEvent(new ba(ba.RCLE_FAILURE,e))}}}async processAsset(e,t){const i=t.spritesheet;if(!e||!i||!Object.keys(i).length){this.createCollection(t,null);return}const n=async()=>{const r=new Sw(e,i);await r.parse(),this.createCollection(t,r)};e.valid?await n():await new Promise((r,a)=>{e.once("update",async()=>(await n(),r()))})}setAssetAliasName(e,t){this._objectAliases.set(e,t),this._objectOriginalNames.set(t,e)}getAssetAliasName(e){const t=this._objectAliases.get(e);return t||e}getAssetOriginalName(e){const t=this._objectOriginalNames.get(e);return t||e}getAssetUrls(e,t=null,i=!1){switch(e){case et.PLACE_HOLDER:return[this.getAssetUrlWithGenericBase(et.PLACE_HOLDER)];case et.PLACE_HOLDER_WALL:return[this.getAssetUrlWithGenericBase(et.PLACE_HOLDER_WALL)];case et.PLACE_HOLDER_PET:return[this.getAssetUrlWithGenericBase(et.PLACE_HOLDER_PET)];case et.ROOM:return[this.getAssetUrlWithGenericBase("room")];case et.TILE_CURSOR:return[this.getAssetUrlWithGenericBase(et.TILE_CURSOR)];case et.SELECTION_ARROW:return[this.getAssetUrlWithGenericBase(et.SELECTION_ARROW)];default:{const n=this.getCategoryForType(e);if(n===U.FLOOR||n===U.WALL){const r=this.getAssetAliasName(e);let a=i?this.getAssetUrlWithFurniIconBase(r):this.getAssetUrlWithFurniBase(e);if(i){const o=t&&t!==""&&this._activeObjectTypeIds.has(r+"*"+t);a=a.replace(/%param%/gi,o?"_"+t:"")}return[a]}return n===U.UNIT?[this.getAssetUrlWithPetBase(e)]:null}}}getAssetIconUrl(e,t){let i=null,n=[];return e&&e.indexOf(",")>=0&&(i=e,e=i.split(",")[0]),i?n=this.getAssetUrls(i,t,!0):n=this.getAssetUrls(e,t,!0),n&&n.length?n[0]:null}getAssetUrlWithGenericBase(e){return Te.getValue("generic.asset.url").replace(/%libname%/gi,e)}getAssetUrlWithFurniBase(e){return Te.getValue("furni.asset.url").replace(/%libname%/gi,e)}getAssetUrlWithFurniIconBase(e){return Te.getValue("furni.asset.icon.url").replace(/%libname%/gi,e)}getAssetUrlWithPetBase(e){return Te.getValue("pet.asset.url").replace(/%libname%/gi,e)}setRoomObjectRoomId(e,t){const i=e&&e.model;i&&i.setValue(b.OBJECT_ROOM_ID,t)}getOrRemoveEventDispatcher(e,t=!1){const i=this._events.get(e);return t&&this._events.delete(e),i}setIconListener(e){this._iconListener=e}};et.PLACE_HOLDER="place_holder",et.PLACE_HOLDER_WALL="place_holder_wall",et.PLACE_HOLDER_PET="place_holder_pet",et.PLACE_HOLDER_DEFAULT=et.PLACE_HOLDER,et.ROOM="room",et.TILE_CURSOR="tile_cursor",et.SELECTION_ARROW="selection_arrow",et.LOADER_READY="RCL_LOADER_READY",et.MANDATORY_LIBRARIES=[et.PLACE_HOLDER,et.PLACE_HOLDER_WALL,et.PLACE_HOLDER_PET,et.ROOM,et.TILE_CURSOR,et.SELECTION_ARROW];let kc=et;class nZ{constructor(){this._objects=new li,this._objectsPerType=new li}dispose(){this.removeAllObjects()}getObject(e){const t=this._objects.getValue(e);return t||null}getObjectByIndex(e){const t=this._objects.getWithIndex(e);return t||null}createObject(e,t,i){const n=new WR(e,t,i);return this.addObject(e,i,n)}addObject(e,t,i){if(this._objects.getValue(e))return i.dispose(),null;this._objects.add(e,i);const n=this.getTypeMap(t);return n&&n.add(e,i),i}removeObject(e){const t=this._objects.remove(e);if(t){const i=this.getTypeMap(t.type);i&&i.remove(t.id),t.dispose()}}removeAllObjects(){let e=0;for(;e<this._objects.length;){const t=this._objects.getWithIndex(e);t&&t.dispose(),e++}for(this._objects.reset(),e=0;e<this._objectsPerType.length;){const t=this._objectsPerType.getWithIndex(e);t&&t.dispose(),e++}this._objectsPerType.reset()}getTypeMap(e,t=!0){let i=this._objectsPerType.getValue(e);return!i&&t&&(i=new li,this._objectsPerType.add(e,i)),i}get objects(){return this._objects}get totalObjects(){return this._objects.length}}const as=class as extends Yr{constructor(e,t,i){super(),this._state=as.ROOM_MANAGER_LOADED,this._rooms=new Map,this._contentLoader=null,this._updateCategories=[],this._listener=e,this._visualizationFactory=t,this._logicFactory=i,this._initialLoadList=[],this._pendingContentTypes=[],this._skipContentProcessing=!1,this._disposed=!1,this.onRoomContentLoadedEvent=this.onRoomContentLoadedEvent.bind(this),this.events.addEventListener(ba.RCLE_SUCCESS,this.onRoomContentLoadedEvent),this.events.addEventListener(ba.RCLE_FAILURE,this.onRoomContentLoadedEvent),this.events.addEventListener(ba.RCLE_CANCEL,this.onRoomContentLoadedEvent)}onInit(){if(this._state>=as.ROOM_MANAGER_INITIALIZING||!this._contentLoader)return;const e=kc.MANDATORY_LIBRARIES;for(const t of e)t&&this._initialLoadList.indexOf(t)===-1&&(this._contentLoader.downloadAsset(t,this.events),this._initialLoadList.push(t));this._state=as.ROOM_MANAGER_INITIALIZING}getRoomInstance(e){const t=this._rooms.get(e);return t||null}createRoomInstance(e){if(this._rooms.get(e))return null;const t=new sZ(e,this);if(this._rooms.set(t.id,t),this._updateCategories.length)for(const i of this._updateCategories)t.addUpdateCategory(i);return t}removeRoomInstance(e){const t=this._rooms.get(e);return t?(this._rooms.delete(e),t.dispose(),!0):!1}createRoomObjectAndInitalize(e,t,i,n){const r=this.getRoomInstance(e);if(!r)return null;let a=i,o=i,l=i,u=null,c=!1;if(this._contentLoader.isLoaderType(i)){if(u=this._contentLoader.getCollection(i),!u&&(c=!0,this._contentLoader.downloadAsset(i,this.events),l=this._contentLoader.getPlaceholderName(i),u=this._contentLoader.getCollection(l),!u))return null;a=u.data.visualizationType,o=u.data.logicType}const h=r.createRoomObject(t,1,i,n);if(!h)return null;if(this._visualizationFactory){const f=this._visualizationFactory.getVisualization(a);if(!f)return r.removeRoomObject(t,n),null;f.asset=u;const d=this._visualizationFactory.getVisualizationData(l,a,u&&u.data||null);if(!d||!f.initialize(d))return r.removeRoomObject(t,n),null;h.setVisualization(f)}if(this._logicFactory){const f=this._logicFactory.getLogic(o);h.setLogic(f),f&&f.initialize(u&&u.data||null)}return c||(h.isReady=!0),this._contentLoader.setRoomObjectRoomId(h,e),h}reinitializeRoomObjectsByType(e){if(!e||!this._contentLoader||!this._visualizationFactory||!this._logicFactory)return;const t=this._contentLoader.getCollection(e);if(!t)return;const i=t.data.visualizationType,n=t.data.logicType,r=this._visualizationFactory.getVisualizationData(e,i,t.data);for(const a of this._rooms.values())if(a){for(const[o,l]of a.managers.entries())if(l)for(const u of l.objects.getValues()){if(!u||u.type!==e)continue;const c=this._visualizationFactory.getVisualization(i);if(c)if(c.asset=t,!r||!c.initialize(r))l.removeObject(u.id);else{u.setVisualization(c);const h=this._logicFactory.getLogic(n);u.setLogic(h),h&&h.initialize(t.data),u.isReady=!0,this._listener&&this._listener.objectInitialized(a.id,u.id,o)}else l.removeObject(u.id)}}}addUpdateCategory(e){if(!(this._updateCategories.indexOf(e)>=0)&&(this._updateCategories.push(e),!!this._rooms.size))for(const i of this._rooms.values())i&&i.addUpdateCategory(e)}removeUpdateCategory(e){const t=this._updateCategories.indexOf(e);if(t!==-1&&(this._updateCategories.splice(t,1),!!this._rooms.size))for(const i of this._rooms.values())i&&i.removeUpdateCategory(e)}setContentLoader(e){this._contentLoader&&this._contentLoader.dispose(),this._contentLoader=e}processPendingContentTypes(e){if(this._skipContentProcessing){this._skipContentProcessing=!1;return}for(;this._pendingContentTypes.length;){const t=this._pendingContentTypes.shift();if(!this._contentLoader.getCollection(t)){this._listener&&this._listener.initalizeTemporaryObjectsByType(t,!1),le.log("Invalid Collection",t);continue}this.reinitializeRoomObjectsByType(t),this._listener&&this._listener.initalizeTemporaryObjectsByType(t,!0),this._initialLoadList.length>0&&this.removeFromInitialLoad(t)}}removeFromInitialLoad(e){if(!(!e||this._state===as.ROOM_MANAGER_ERROR))if(this._contentLoader||(this._state=as.ROOM_MANAGER_ERROR),this._contentLoader.getCollection(e)){const t=this._initialLoadList.indexOf(e);t>=0&&this._initialLoadList.splice(t,1),this._initialLoadList.length||(this._state=as.ROOM_MANAGER_INITIALIZED,this._listener&&this._listener.onRoomEngineInitalized(!0))}else this._state=as.ROOM_MANAGER_ERROR,this._listener&&this._listener.onRoomEngineInitalized(!1)}onRoomContentLoadedEvent(e){if(!this._contentLoader)return;const t=e.contentType;this._pendingContentTypes.indexOf(t)>=0||this._pendingContentTypes.push(t)}update(e,t=!1){if(this.processPendingContentTypes(e),!!this._rooms.size)for(const i of this._rooms.values())i&&i.update(e,t)}createRoomObjectManager(e){return new nZ}get rooms(){return this._rooms}get disposed(){return this._disposed}};as.ROOM_MANAGER_ERROR=-1,as.ROOM_MANAGER_LOADING=0,as.ROOM_MANAGER_LOADED=1,as.ROOM_MANAGER_INITIALIZING=2,as.ROOM_MANAGER_INITIALIZED=3,as.CONTENT_PROCESSING_TIME_LIMIT_MILLISECONDS=40;let QR=as;class rZ{constructor(e,t=-1,i=null,n=null,r=null){this._minLevel=-1,this._texture=null,this._colorMatrix=null,this._blendMode=null,this._name=e,this._minLevel=t,this._texture=i,this._colorMatrix=n,this._blendMode=r}get name(){return this._name}get texture(){return this._texture}set texture(e){this._texture=e}get colorMatrix(){return this._colorMatrix}set colorMatrix(e){this._colorMatrix=e}get blendMode(){return this._blendMode}set blendMode(e){this._blendMode=e}get minLevel(){return this._minLevel}}class aZ{constructor(){this._effects=new Map,this._events=new fn,this._isLoaded=!1}init(){if(this._isLoaded)return;this._isLoaded=!0;const e=Te.getValue("image.library.url")+"Habbo-Stories/",t=Te.getValue("camera.available.effects");for(const i of t){if(!i.enabled)continue;const n=new rZ(i.name,i.minLevel);i.colorMatrix.length?n.colorMatrix=i.colorMatrix:(n.texture=Ne.from(e+i.name+".png"),n.blendMode=i.blendMode),this._effects.set(n.name,n)}this.events.dispatchEvent(new Km(Km.INITIALIZED))}applyEffects(e,t,i){const n=new Qn,r=new kt(e);n.addChild(r),i&&r.scale.set(2);for(const a of t){const o=a.effect;if(o)if(o.colorMatrix){const l=new rv;l.matrix=o.colorMatrix,l.alpha=a.alpha,r.filters||(r.filters=[]),r.filters.push(l)}else{const l=new kt(o.texture);l.alpha=a.alpha,l.blendMode=o.blendMode,n.addChild(l)}}return St.generateImage(n)}get effects(){return this._effects}get events(){return this._events}get isLoaded(){return this._isLoaded}}class KCe{constructor(e,t){this._effect=e,this._alpha=t}get effect(){return this._effect}get alpha(){return this._alpha}}class oZ{flush(){return this._canShowInterstitial=!1,!0}parse(e){return e?(this._canShowInterstitial=e.readBoolean(),!0):!1}get canShowInterstitial(){return this._canShowInterstitial}}class lZ{flush(){return this._errorCode=0,this._filteredText=null,!0}parse(e){return e?(this._errorCode=e.readInt(),this._filteredText=e.readString(),!0):!1}get errorCode(){return this._errorCode}get filteredText(){return this._filteredText}}class uZ{flush(){return this._isOpen=!1,this._onShutdown=!1,this._isAuthenticUser=!1,!0}parse(e){return e?(this._isOpen=e.readBoolean(),this._onShutdown=e.readBoolean(),e.bytesAvailable&&(this._isAuthenticUser=e.readBoolean()),!0):!1}get isOpen(){return this._isOpen}get onShutdown(){return this._onShutdown}get isAuthenticUser(){return this._isAuthenticUser}}class hZ{flush(){return this._isOpen=!1,this._minutesUntilChange=0,!0}parse(e){return e?(this._isOpen=e.readInt()>0,this._minutesUntilChange=e.readInt(),!0):!1}get isOpen(){return this._isOpen}get minutesUntilChange(){return this._minutesUntilChange}}class cZ{flush(){return this._openHour=0,this._openMinute=0,!0}parse(e){return e?(this._openHour=e.readInt(),this._openMinute=e.readInt(),!0):!1}get openHour(){return this._openHour}get openMinute(){return this._openMinute}}class fZ{flush(){return this._openHour=0,this._openMinute=0,this._userThrownOutAtClose=!1,!0}parse(e){return e?(this._openHour=e.readInt(),this._openMinute=e.readInt(),this._userThrownOutAtClose=e.readBoolean(),!0):!1}get openHour(){return this._openHour}get openMinute(){return this._openMinute}get userThrowOutAtClose(){return this._userThrownOutAtClose}}class dZ{flush(){return this._minutes=0,!0}parse(e){return e?(this._minutes=e.readInt(),!0):!1}get openMinute(){return this._minutes}}class _Z{flush(){return this._isInMaintenance=!1,this._minutesUntilMaintenance=0,this._duration=15,!0}parse(e){return e?(this._isInMaintenance=e.readBoolean(),this._minutesUntilMaintenance=e.readInt(),e.bytesAvailable&&(this._duration=e.readInt()),!0):!1}get isInMaintenance(){return this._isInMaintenance}get minutesUntilMaintenance(){return this._minutesUntilMaintenance}get duration(){return this._duration}}class gZ{flush(){return this._resultCode=-1,this._name="",this._nameSuggestions=[],!0}parse(e){if(!e)return!1;this._resultCode=e.readInt(),this._name=e.readString();let t=e.readInt();for(;t>0;)this._nameSuggestions.push(e.readString()),t--;return!0}get resultCode(){return this._resultCode}get name(){return this._name}get nameSuggestions(){return this._nameSuggestions}}class pZ{flush(){return this._resultCode=-1,this._name="",this._nameSuggestions=[],!0}parse(e){if(!e)return!1;this._resultCode=e.readInt(),this._name=e.readString();let t=e.readInt();for(;t>0;)this._nameSuggestions.push(e.readString()),t--;return!0}get resultCode(){return this._resultCode}get name(){return this._name}get nameSuggestions(){return this._nameSuggestions}}class mZ{flush(){return this._figure="",this._gender="",!0}parse(e){return e?(this._figure=e.readString(),this._gender=e.readString(),this._gender&&(this._gender=this._gender.toUpperCase()),!0):!1}get figure(){return this._figure}get gender(){return this._gender}}class vZ{constructor(e){this._slotId=e.readInt(),this._figureString=e.readString(),this._gender=e.readString()}get slotId(){return this._slotId}get figureString(){return this._figureString}get gender(){return this._gender}}class EZ{flush(){return this._state=0,this._outfits=[],!0}parse(e){if(!e)return!1;this._state=e.readInt();let t=e.readInt();for(;t>0;)this._outfits.push(new vZ(e)),t--;return!0}get state(){return this._state}get outfits(){return this._outfits}}class Ow{constructor(e){if(!e)throw new Error("invalid_parser");this._id=e.readInt(),this._name=e.readString(),this._motto=e.readString(),this._gender=e.readString(),this._figure=e.readString()}get id(){return this._id}get name(){return this._name}get motto(){return this._motto}get figure(){return this._figure}get gender(){return this._gender}}class yZ{flush(){return this._item=null,this._openInventory=!1,!0}parse(e){return e?(this._item=new Ow(e),this._openInventory=e.readBoolean(),!0):!1}get item(){return this._item}openInventory(){return this._openInventory}}class TZ{flush(){return this._items=null,!0}parse(e){this._items=new Map;let t=e.readInt();for(;t>0;){const i=new Ow(e);this._items.set(i.id,i),t--}return!0}get items(){return this._items}}class IZ{flush(){return this._boughtAsGift=!1,this._item=null,!0}parse(e){return e?(this._boughtAsGift=e.readBoolean(),this._item=new Ow(e),!0):!1}get boughtAsGift(){return this._boughtAsGift}get item(){return this._item}}class RZ{flush(){return this._itemId=0,!0}parse(e){return e?(this._itemId=e.readInt(),!0):!1}get itemId(){return this._itemId}}class SZ{constructor(e){this._name=e.readString(),this._id=e.readInt(),this._consequence=e.readString()}get name(){return this._name}get id(){return this._id}get consequence(){return this._consequence}}class bZ{constructor(e){this._topics=[],this._name=e.readString();let t=e.readInt();for(;t>0;)this._topics.push(new SZ(e)),t--}dispose(){this._disposed||(this._disposed=!0,this._topics=null)}get disposed(){return this._disposed}get name(){return this._name}get topics(){return this._topics}}class AZ{constructor(e){this._tradeLockInfo="",this._machineBanInfo="",this._name=e.readString(),this._sanctionLengthInHours=e.readInt(),this._probationDays=e.readInt(),this._avatarOnly=e.readBoolean(),e.bytesAvailable&&(this._tradeLockInfo=e.readString()),e.bytesAvailable&&(this._machineBanInfo=e.readString())}get name(){return this._name}get sanctionLengthInHours(){return this._sanctionLengthInHours}get avatarOnly(){return this._avatarOnly}get tradeLockInfo(){return this._tradeLockInfo}get machineBanInfo(){return this._machineBanInfo}}class OZ{flush(){return this._issueId=-1,this._accountId=1,this._sanctionType=null,!0}parse(e){return e?(this._issueId=e.readInt(),this._accountId=e.readInt(),this._sanctionType=new AZ(e),!0):!1}get issueId(){return this._issueId}get accountId(){return this._accountId}get sanctionType(){return this._sanctionType}}class wZ{flush(){return this._callForHelpCategories=null,!0}parse(e){if(!e)return!1;this._callForHelpCategories=[];let t=e.readInt();for(;t>0;)this._callForHelpCategories.push(new bZ(e)),t--;return!0}get callForHelpCategories(){return this._callForHelpCategories}}class CZ{flush(){return this._isSanctionNew=!1,this._isSanctionActive=!1,this._sanctionName=null,this._sanctionLengthHours=0,this._sanctionReason=null,this._sanctionCreationTime=null,this._probationHoursLeft=0,this._nextSanctionName=null,this._nextSanctionLengthHours=0,this._hasCustomMute=!1,this._tradeLockExpiryTime=null,!0}parse(e){return e?(this._isSanctionNew=e.readBoolean(),this._isSanctionActive=e.readBoolean(),this._sanctionName=e.readString(),this._sanctionLengthHours=e.readInt(),e.readInt(),this._sanctionReason=e.readString(),this._sanctionCreationTime=e.readString(),this._probationHoursLeft=e.readInt(),this._nextSanctionName=e.readString(),this._nextSanctionLengthHours=e.readInt(),e.readInt(),this._hasCustomMute=e.readBoolean(),e.bytesAvailable&&(this._tradeLockExpiryTime=e.readString()),!0):!1}get isSanctionNew(){return this._isSanctionNew}get isSanctionActive(){return this._isSanctionActive}get sanctionName(){return this._sanctionName}get sanctionLengthHours(){return this._sanctionLengthHours}get sanctionReason(){return this._sanctionReason}get sanctionCreationTime(){return this._sanctionCreationTime}get probationHoursLeft(){return this._probationHoursLeft}get nextSanctionName(){return this._nextSanctionName}get nextSanctionLengthHours(){return this._nextSanctionLengthHours}get hasCustomMute(){return this._hasCustomMute}get tradeLockExpiryTime(){return this._tradeLockExpiryTime}}class MZ{constructor(){this._ok=!1,this._secondsToWait=0}flush(){return this._ok=!1,this._secondsToWait=0,this._extraDataId=null,!0}parse(e){return e?(this._ok=e.readBoolean(),this._secondsToWait=e.readInt(),this._ok&&e.bytesAvailable&&(this._extraDataId=e.readString()),!0):!1}get ok(){return this._ok}get secondsToWait(){return this._secondsToWait}get extraDataId(){return this._extraDataId}}class NZ{flush(){return!0}parse(e){return!!e}}class PZ{flush(){return this._roomType=null,this._roomId=-1,!0}parse(e){return e?(this._roomType=e.readString(),this._roomId=e.readInt(),!0):!1}get roomType(){return this._roomType}get roomId(){return this._roomId}}class kZ{flush(){return this._url="",!0}parse(e){return e?(this._url=e.readString(),!0):!1}get url(){return this._url}}class xZ{constructor(){this._ok=!1,this._errorReason=null}flush(){return this._ok=!1,this._errorReason=null,!0}parse(e){return e?(this._ok=e.readBoolean(),this._errorReason=e.readString(),!0):!1}get ok(){return this._ok}get errorReason(){return this._errorReason}}class DZ{constructor(){this._creditPrice=0,this._ducketPrice=0,this._publishDucketPrice=0}flush(){return this._creditPrice=0,this._ducketPrice=0,this._publishDucketPrice=0,!0}parse(e){return e?(this._creditPrice=e.readInt(),this._ducketPrice=e.readInt(),e.bytesAvailable&&(this._publishDucketPrice=e.readInt()),!0):!1}get creditPrice(){return this._creditPrice}get ducketPrice(){return this._ducketPrice}get publishDucketPrice(){return this._publishDucketPrice}}class LZ{constructor(){this._ok=!0,this._renderLimitHit=!1}flush(){return this._ok=!0,this._renderLimitHit=!1,!0}parse(e){return e?(e.bytesAvailable&&(this._ok=e.readBoolean(),this._renderLimitHit=e.readBoolean()),!0):!1}get ok(){return this._ok}get isRenderLimitHit(){return this._renderLimitHit}}class ww{parse(e){if(!e)return!1;this._campaignName=e.readString(),this._campaignImage=e.readString(),this._currentDay=e.readInt(),this._campaignDays=e.readInt(),this._openedDays=[];let t=e.readInt();for(let i=0;i<t;i++)this._openedDays.push(e.readInt());this._missedDays=[],t=e.readInt();for(let i=0;i<t;i++)this._missedDays.push(e.readInt());return!0}clone(){const e=new ww;return e.campaignDays=this._campaignDays,e.campaignImage=this._campaignImage,e.campaignName=this._campaignName,e.currentDay=this._currentDay,e.missedDays=this._missedDays,e.openedDays=this._openedDays,e}get campaignName(){return this._campaignName}set campaignName(e){this._campaignName=e}get campaignImage(){return this._campaignImage}set campaignImage(e){this._campaignImage=e}get currentDay(){return this._currentDay}set currentDay(e){this._currentDay=e}get campaignDays(){return this._campaignDays}set campaignDays(e){this._campaignDays=e}get openedDays(){return this._openedDays}set openedDays(e){this._openedDays=e}get missedDays(){return this._missedDays}set missedDays(e){this._missedDays=e}}class UZ{flush(){return this._calendarData=null,!0}parse(e){return e?(this._calendarData=new ww,this._calendarData.parse(e),!0):!1}get calendarData(){return this._calendarData}}class FZ{flush(){return this._doorOpened=!1,this._productName=null,this._customImage=null,this._furnitureClassName=null,!0}parse(e){return e?(this._doorOpened=e.readBoolean(),this._productName=e.readString(),this._customImage=e.readString(),this._furnitureClassName=e.readString(),!0):!1}get doorOpened(){return this._doorOpened}get productName(){return this._productName}get customImage(){return this._customImage}get furnitureClassName(){return this._furnitureClassName}}class BZ{flush(){return this._totalCoinsForBonus=-1,this._coinsStillRequiredToBuy=-1,this._productType="",this._productClassId=-1,!0}parse(e){return e?(this._productType=e.readString(),this._productClassId=e.readInt(),this._totalCoinsForBonus=e.readInt(),this._coinsStillRequiredToBuy=e.readInt(),!0):!1}get totalCoinsForBonus(){return this._totalCoinsForBonus}get coinsStillRequiredToBuy(){return this._coinsStillRequiredToBuy}get productType(){return this._productType}get productClassId(){return this._productClassId}}class GZ{flush(){return this._furniCount=0,!0}parse(e){return e?(this._furniCount=e.readInt(),!0):!1}get furniCount(){return this._furniCount}}class VZ{flush(){return this._secondsLeft=0,this._furniLimit=0,this._maxFurniLimit=0,this._secondsLeftWithGrace=0,!0}parse(e){return e?(this._secondsLeft=e.readInt(),this._furniLimit=e.readInt(),this._maxFurniLimit=e.readInt(),e.bytesAvailable?this._secondsLeftWithGrace=e.readInt():this._secondsLeftWithGrace=this._secondsLeft,!0):!1}get secondsLeft(){return this._secondsLeft}get furniLimit(){return this._furniLimit}get maxFurniLimit(){return this._maxFurniLimit}get secondsLeftWithGrace(){return this._secondsLeftWithGrace}}class jZ{constructor(e){this._maxPurchaseSize=e.readInt(),this._bundleSize=e.readInt(),this._bundleDiscountSize=e.readInt(),this._bonusThreshold=e.readInt(),this._additionalBonusDiscountThresholdQuantities=[];let t=e.readInt();for(;t>0;)this._additionalBonusDiscountThresholdQuantities.push(e.readInt()),t--}get maxPurchaseSize(){return this._maxPurchaseSize}get bundleSize(){return this._bundleSize}get bundleDiscountSize(){return this._bundleDiscountSize}get bonusThreshold(){return this._bonusThreshold}get additionalBonusDiscountThresholdQuantities(){return this._additionalBonusDiscountThresholdQuantities}}class zZ{flush(){return this._bundleDiscountRuleset=null,!0}parse(e){return e?(this._bundleDiscountRuleset=new jZ(e),!0):!1}get bundleDiscountRuleset(){return this._bundleDiscountRuleset}}class Cw{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._visible=!1,this._icon=0,this._pageId=-1,this._pageName=null,this._localization=null,this._children=[],this._offerIds=[],!0}parse(e){if(!e)return!1;this._visible=e.readBoolean(),this._icon=e.readInt(),this._pageId=e.readInt(),this._pageName=e.readString(),this._localization=e.readString();let t=e.readInt();for(;t>0;)this._offerIds.push(e.readInt()),t--;let i=e.readInt();for(;i>0;)this._children.push(new Cw(e)),i--;return!0}get visible(){return this._visible}get icon(){return this._icon}get pageId(){return this._pageId}get pageName(){return this._pageName}get localization(){return this._localization}get children(){return this._children}get offerIds(){return this._offerIds}}class HZ{flush(){return this._root=null,!0}parse(e){return e?(this._root=new Cw(e),this._newAdditionsAvailable=e.readBoolean(),this._catalogType=e.readString(),!0):!1}get root(){return this._root}get newAdditionsAvailable(){return this._newAdditionsAvailable}get catalogType(){return this._catalogType}}class WZ{constructor(e){this._images=[],this._texts=[];let t=e.readInt();for(;t>0;)this._images.push(e.readString()),t--;let i=e.readInt();for(;i>0;)this._texts.push(e.readString()),i--}get images(){return this._images}get texts(){return this._texts}}class YZ{flush(){return this._pageName=null,this._pageId=0,this._secondsToExpiry=0,this._image=null,!0}parse(e){return e?(this._pageId=e.readInt(),this._pageName=e.readString(),this._secondsToExpiry=e.readInt(),this._image=e.readString(),!0):!1}get pageName(){return this._pageName}get pageId(){return this._pageId}get secondsToExpiry(){return this._secondsToExpiry}get image(){return this._image}}const $l=class $l{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._productType=null,this._furniClassId=-1,this._extraParam=null,this._productCount=0,this._uniqueLimitedItem=!1,this._uniqueLimitedItemSeriesSize=0,this._uniqueLimitedItemsLeft=0,!0}parse(e){switch(this._productType=e.readString(),this._productType){case $l.B:return this._extraParam=e.readString(),this._productCount=1,!0;default:return this._furniClassId=e.readInt(),this._extraParam=e.readString(),this._productCount=e.readInt(),this._uniqueLimitedItem=e.readBoolean(),this._uniqueLimitedItem&&(this._uniqueLimitedItemSeriesSize=e.readInt(),this._uniqueLimitedItemsLeft=e.readInt()),!0}}get productType(){return this._productType}get furniClassId(){return this._furniClassId}get extraParam(){return this._extraParam}get productCount(){return this._productCount}get uniqueLimitedItem(){return this._uniqueLimitedItem}get uniqueLimitedSeriesSize(){return this._uniqueLimitedItemSeriesSize}get uniqueLimitedItemsLeft(){return this._uniqueLimitedItemsLeft}};$l.I="i",$l.S="s",$l.E="e",$l.B="b";let $c=$l;class R0{constructor(e){this._offerId=e.readInt(),this._localizationId=e.readString(),this._rent=e.readBoolean(),this._priceCredits=e.readInt(),this._priceActivityPoints=e.readInt(),this._priceActivityPointsType=e.readInt(),this._giftable=e.readBoolean(),this._products=[];let t=e.readInt();for(;t>0;)this._products.push(new $c(e)),t--;this._clubLevel=e.readInt(),this._bundlePurchaseAllowed=e.readBoolean(),this._isPet=e.readBoolean(),this._previewImage=e.readString()}get offerId(){return this._offerId}get localizationId(){return this._localizationId}get rent(){return this._rent}get priceCredits(){return this._priceCredits}get priceActivityPoints(){return this._priceActivityPoints}get priceActivityPointsType(){return this._priceActivityPointsType}get clubLevel(){return this._clubLevel}get giftable(){return this._giftable}get bundlePurchaseAllowed(){return this._bundlePurchaseAllowed}get isPet(){return this._isPet}get previewImage(){return this._previewImage}get products(){return this._products}}const go=class go{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._type=-1,this._position=null,this._itemName=null,this._itemPromoImage=null,this._catalogPageLocation=null,this._productCode=null,this._productOfferId=0,this._expirationTime=0,!0}parse(e){if(!e)return!1;switch(this._position=e.readInt(),this._itemName=e.readString(),this._itemPromoImage=e.readString(),this._type=e.readInt(),this._type){case go.ITEM_CATALOGUE_PAGE:this._catalogPageLocation=e.readString();break;case go.ITEM_PRODUCT_OFFER:this._productOfferId=e.readInt();break;case go.ITEM_IAP:this._productCode=e.readString();break}const t=e.readInt();return this._expirationTime=t>0?t*1e3+Pe():0,!0}get type(){return this._type}get position(){return this._position}get itemName(){return this._itemName}get itemPromoImage(){return this._itemPromoImage}get catalogPageLocation(){return this._catalogPageLocation}get productCode(){return this._productCode}get productOfferId(){return this._productOfferId}get expirationTime(){return this._expirationTime}};go.ITEM_CATALOGUE_PAGE=0,go.ITEM_PRODUCT_OFFER=1,go.ITEM_IAP=2;let ZR=go;class XZ{flush(){return this._pageId=-1,this._catalogType=null,this._layoutCode=null,this._localization=null,this._offers=[],this._offerId=-1,this._acceptSeasonCurrencyAsCredits=!1,this._frontPageItems=[],!0}parse(e){if(!e)return!1;this._pageId=e.readInt(),this._catalogType=e.readString(),this._layoutCode=e.readString(),this._localization=new WZ(e);let t=e.readInt();for(;t>0;)this._offers.push(new R0(e)),t--;if(this._offerId=e.readInt(),this._acceptSeasonCurrencyAsCredits=e.readBoolean(),e.bytesAvailable){let i=e.readInt();for(;i>0;)this._frontPageItems.push(new ZR(e)),i--}return!0}get pageId(){return this._pageId}get catalogType(){return this._catalogType}get layoutCode(){return this._layoutCode}get localization(){return this._localization}get offers(){return this._offers}get offerId(){return this._offerId}get acceptSeasonCurrencyAsCredits(){return this._acceptSeasonCurrencyAsCredits}get frontPageItems(){return this._frontPageItems}}class KZ{flush(){return this._pageName=null,this._secondsToExpiry=0,this._image=null,!0}parse(e){return e?(this._pageName=e.readString(),this._secondsToExpiry=e.readInt(),this._image=e.readString(),!0):!1}get pageName(){return this._pageName}get secondsToExpiry(){return this._secondsToExpiry}get image(){return this._image}}class qZ{flush(){return this._instantlyRefreshCatalogue=!1,this._newFurniDataHash=null,!0}parse(e){return e?(this._instantlyRefreshCatalogue=e.readBoolean(),e.bytesAvailable&&(this._newFurniDataHash=e.readString()),!0):!1}get instantlyRefreshCatalogue(){return this._instantlyRefreshCatalogue}get newFurniDataHash(){return this._newFurniDataHash}}class $Z{constructor(e){this._offerId=e.readInt(),this._isVip=e.readBoolean(),this._daysRequired=e.readInt(),this._isSelectable=e.readBoolean()}get offerId(){return this._offerId}get isVip(){return this._isVip}get isSelectable(){return this._isSelectable}get daysRequired(){return this._daysRequired}}class QZ{flush(){return!0}parse(e){if(!e)return!1;this._offers=[],this._giftData=new Map,this._daysUntilNextGift=e.readInt(),this._giftsAvailable=e.readInt();const t=e.readInt();for(let n=0;n<t;n++)this._offers.push(new R0(e));const i=e.readInt();for(let n=0;n<i;n++){const r=new $Z(e);this._giftData.set(r.offerId,r)}return!0}get offers(){return this._offers}get daysUntilNextGift(){return this._daysUntilNextGift}get giftsAvailable(){return this._giftsAvailable}set giftsAvailable(e){this._giftsAvailable=e}getOfferExtraData(e){return e?this._giftData.get(e):null}get giftData(){return this._giftData}}class ZZ{flush(){return this._productCode=null,this._products=[],!0}parse(e){if(!e)return!1;this._productCode=e.readString();let t=e.readInt();for(;t>0;)this._products.push(new $c(e)),t--;return!0}get productCode(){return this._productCode}get products(){return this._products}}class _4{constructor(e){if(!e)throw new Error("invalid_wrapper");this._offerId=e.readInt(),this._productCode=e.readString(),e.readBoolean(),this._priceCredits=e.readInt(),this._priceActivityPoints=e.readInt(),this._priceActivityPointsType=e.readInt(),this._vip=e.readBoolean(),this._months=e.readInt(),this._extraDays=e.readInt(),this._giftable=e.readBoolean(),this._daysLeftAfterPurchase=e.readInt(),this._year=e.readInt(),this._month=e.readInt(),this._day=e.readInt()}get offerId(){return this._offerId}get productCode(){return this._productCode}get priceCredits(){return this._priceCredits}get priceActivityPoints(){return this._priceActivityPoints}get priceActivityPointsType(){return this._priceActivityPointsType}get vip(){return this._vip}get months(){return this._months}get extraDays(){return this._extraDays}get daysLeftAfterPurchase(){return this._daysLeftAfterPurchase}get year(){return this._year}get month(){return this._month}get day(){return this._day}get giftable(){return this._giftable}}class JZ extends _4{constructor(e){super(e),this._originalPrice=e.readInt(),this._originalActivityPointPrice=e.readInt(),this._originalActivityPointType=e.readInt(),this._subscriptionDaysLeft=e.readInt()}get originalPrice(){return this._originalPrice*this.months}get originalActivityPointPrice(){return this._originalActivityPointPrice*this.months}get originalActivityPointType(){return this._originalActivityPointType}get discountCreditAmount(){return this._originalPrice*this.months-this.priceCredits}get discountActivityPointAmount(){return this.originalActivityPointPrice*this.months-this.priceActivityPoints}get subscriptionDaysLeft(){return this._subscriptionDaysLeft}}class eJ{flush(){return this._available=!1,this._pricePointUrl=null,this._market=null,this._lengthInDays=0,!0}parse(e){return e?(this._pricePointUrl=e.readString(),this._pricePointUrl!==""&&(this._available=!0),this._market=e.readString(),this._lengthInDays=e.readInt(),!0):!1}get available(){return this._available}get pricePointUrl(){return this._pricePointUrl}get market(){return this._market}get lengthInDays(){return this._lengthInDays}}class tJ{constructor(e){this._stuffId=e.readInt(),this._charges=e.readInt(),this._SafeStr_6935=e.readInt(),this._SafeStr_6936=e.readInt(),this._SafeStr_6518=e.readInt(),this._SafeStr_7875=e.readInt()}get stuffId(){return this._stuffId}get charges(){return this._charges}get _SafeStr_5946(){return this._SafeStr_6935}get _SafeStr_5944(){return this._SafeStr_6936}get _SafeStr_7876(){return this._SafeStr_7875}get _SafeStr_5945(){return this._SafeStr_6518}}class iJ{flush(){return this._fireworkChargeData=null,!0}parse(e){return e?(this._fireworkChargeData=new tJ(e),!0):!1}get fireworkChargeData(){return this._fireworkChargeData}}class sJ{flush(){return!0}parse(e){return!!e}}class nJ{constructor(){this._isEnabled=!1,this._price=null,this._giftWrappers=null,this._boxTypes=null,this._ribbonTypes=null,this._giftFurnis=null}flush(){return this._boxTypes=null,this._giftFurnis=null,this._giftWrappers=null,this._ribbonTypes=null,this._isEnabled=null,this._price=null,!0}parse(e){if(!e)return!1;const t=[],i=[],n=[],r=[];this._isEnabled=e.readBoolean(),this._price=e.readInt();let a=e.readInt(),o=0;for(;o<a;)t.push(e.readInt()),o++;for(a=e.readInt(),o=0;o<a;)i.push(e.readInt()),o++;for(a=e.readInt(),o=0;o<a;)n.push(e.readInt()),o++;for(a=e.readInt(),o=0;o<a;)r.push(e.readInt()),o++;return this._giftWrappers=t,this._ribbonTypes=n,this._giftFurnis=r,this._boxTypes=i,!0}get giftWrappers(){return this._giftWrappers}get ribbonTypes(){return this._ribbonTypes}get giftFurnis(){return this._giftFurnis}get boxTypes(){return this._boxTypes}get isEnabled(){return this._isEnabled}get price(){return this._price}}class rJ{flush(){return this._offer=null,!0}parse(e){return e?(this._offer=new JZ(e),!0):!1}get offer(){return this._offer}}class aJ{flush(){return this._offers=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._offers.push(new _4(e)),t--;return!0}get offers(){return this._offers}}class oJ{flush(){return this._offerId=0,this._isGiftable=!1,!0}parse(e){return e?(this._offerId=e.readInt(),this._isGiftable=e.readBoolean(),!0):!1}get offerId(){return this._offerId}get isGiftable(){return this._isGiftable}}class lJ{flush(){return!0}parse(e){return!!e}}class uJ{flush(){return this._appearsInSeconds=-1,this._pageId=-1,this._offerId=-1,this._productType="",!0}parse(e){return e?(this._appearsInSeconds=e.readInt(),this._pageId=e.readInt(),this._offerId=e.readInt(),this._productType=e.readString(),!0):!1}get appearsInSeconds(){return this._appearsInSeconds}get pageId(){return this._pageId}get offerId(){return this._offerId}get productType(){return this._productType}}class hJ{constructor(){this._notEnoughCredits=!1,this._notEnoughActivityPoints=!1,this._activityPointType=0}flush(){return this._notEnoughCredits=!1,this._notEnoughActivityPoints=!1,this._activityPointType=0,!0}parse(e){return e?(this._notEnoughCredits=e.readBoolean(),this._notEnoughActivityPoints=e.readBoolean(),e.bytesAvailable&&(this._activityPointType=e.readInt()),!0):!1}get notEnoughCredits(){return this._notEnoughCredits}get notEnoughActivityPoints(){return this._notEnoughActivityPoints}get activityPointType(){return this._activityPointType}}class cJ{flush(){return this._offer=null,!0}parse(e){return e?(this._offer=new R0(e),!0):!1}get offer(){return this._offer}}class fJ{flush(){return this._code=0,!0}parse(e){return e?(this._code=e.readInt(),!0):!1}get code(){return this._code}}class dJ{flush(){return this._code=0,!0}parse(e){return e?(this._code=e.readInt(),!0):!1}get code(){return this._code}}class _J{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._offerId=-1,this._localizationId=null,this._rent=!1,this._priceCredits=0,this._priceActivityPoints=0,this._priceActivityPointsType=0,this._clubLevel=0,this._giftable=!1,this._bundlePurchaseAllowed=!1,this._products=[],!0}parse(e){if(!e)return!1;this._offerId=e.readInt(),this._localizationId=e.readString(),this._rent=e.readBoolean(),this._priceCredits=e.readInt(),this._priceActivityPoints=e.readInt(),this._priceActivityPointsType=e.readInt(),this._giftable=e.readBoolean();let t=e.readInt();for(;t>0;)this._products.push(new $c(e)),t--;return this._clubLevel=e.readInt(),this._bundlePurchaseAllowed=e.readBoolean(),!0}get offerId(){return this._offerId}get localizationId(){return this._localizationId}get rent(){return this._rent}get priceCredits(){return this._priceCredits}get priceActivityPoints(){return this._priceActivityPoints}get priceActivityPointsType(){return this._priceActivityPointsType}get clubLevel(){return this._clubLevel}get giftable(){return this._giftable}get bundlePurchaseAllowed(){return this._bundlePurchaseAllowed}get products(){return this._products}}class gJ{flush(){return this._offer=null,!0}parse(e){return e?(this._offer=new _J(e),!0):!1}get offer(){return this._offer}}class pJ{flush(){return this._clubLevel=0,this._securityLevel=0,this._isAmbassador=!1,!0}parse(e){return e?(this._clubLevel=e.readInt(),this._securityLevel=e.readInt(),this._isAmbassador=e.readBoolean(),!0):!1}get clubLevel(){return this._clubLevel}get securityLevel(){return this._securityLevel}get isAmbassador(){return this._isAmbassador}}const _E=class _E{flush(){return!0}parse(e){return e?(this._status=e.readInt(),!0):!1}get status(){return this._status}};_E.SAFETY_LOCK_STATUS_LOCKED=0,_E.SAFETY_LOCK_STATUS_UNLOCKED=1;let dv=_E;class mJ{flush(){return this._result=-1,this._validationInfo="",!0}parse(e){return e?(this._result=e.readInt(),this._validationInfo=e.readString(),!0):!1}get result(){return this._result}get validationInfo(){return this._validationInfo}}const nC=class nC{flush(){return this._result=-1,!0}parse(e){return e?(this._result=e.readInt(),!0):!1}get result(){return this._result}};nC.EMAIL_STATUS_OK=0;let JR=nC;class vJ{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._relationshipStatusType=fR.NONE,this._friendCount=0,this._randomFriendId=0,this._randomFriendFigure=null,this._randomFriendName=null,!0}parse(e){return e?(this._relationshipStatusType=e.readInt(),this._friendCount=e.readInt(),this._randomFriendId=e.readInt(),this._randomFriendName=e.readString(),this._randomFriendFigure=e.readString(),!0):!1}get relationshipStatusType(){return this._relationshipStatusType}get friendCount(){return this._friendCount}get randomFriendId(){return this._randomFriendId}get randomFriendName(){return this._randomFriendName}get randomFriendFigure(){return this._randomFriendFigure}}class EJ{flush(){return this._userId=0,this._relationshipStatusMap=null,!0}parse(e){if(!e)return!1;this._userId=e.readInt(),this._relationshipStatusMap=new li;const t=e.readInt();for(let i=0;i<t;i++){const n=new vJ(e);this._relationshipStatusMap.add(n.relationshipStatusType,n)}return!0}get userId(){return this._userId}get relationshipStatusMap(){return this._relationshipStatusMap}}class yJ{flush(){return this._userId=null,this._badges=[],!0}parse(e){if(!e)return!1;this._userId=e.readInt();let t=e.readInt();for(;t>0;){e.readInt();const i=e.readString();this._badges.push(i),t--}return!0}get userId(){return this._userId}get badges(){return this._badges}}class TJ{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._userId=0,this._username=null,this._figure=null,this._gender=null,this._motto=null,this._realName=null,this._directMail=!1,this._respectsReceived=0,this._respectsRemaining=0,this._respectsPetRemaining=0,this._streamPublishingAllowed=!1,this._lastAccessDate=null,this._canChangeName=!1,this._safetyLocked=!1,!0}parse(e){return e?(this._userId=e.readInt(),this._username=e.readString(),this._figure=e.readString(),this._gender=e.readString(),this._motto=e.readString(),this._realName=e.readString(),this._directMail=e.readBoolean(),this._respectsReceived=e.readInt(),this._respectsRemaining=e.readInt(),this._respectsPetRemaining=e.readInt(),this._streamPublishingAllowed=e.readBoolean(),this._lastAccessDate=e.readString(),this._canChangeName=e.readBoolean(),this._safetyLocked=e.readBoolean(),!0):!1}get userId(){return this._userId}get username(){return this._username}get figure(){return this._figure}get gender(){return this._gender}get motto(){return this._motto}get realName(){return this._realName}get directMail(){return this._directMail}get respectsReceived(){return this._respectsReceived}get respectsRemaining(){return this._respectsRemaining}get respectsPetRemaining(){return this._respectsPetRemaining}get streamPublishingAllowed(){return this._streamPublishingAllowed}get lastAccessedDate(){return this._lastAccessDate}get canChangeName(){return this._canChangeName}get safetyLocked(){return this._safetyLocked}}class IJ{flush(){return this._userInfo=null,!0}parse(e){return!(!e||(this._userInfo=new TJ(e),!this._userInfo))}get userInfo(){return this._userInfo}}class RJ{flush(){return this._webId=-1,this._id=-1,this._newName="",!0}parse(e){return e?(this._webId=e.readInt(),this._id=e.readInt(),this._newName=e.readString(),!0):!1}get webId(){return this._webId}get id(){return this._id}get newName(){return this._newName}}class g4{constructor(e){this._groupId=e.readInt(),this._groupName=e.readString(),this._badgeCode=e.readString(),this._colorA=e.readString(),this._colorB=e.readString(),this._favourite=e.readBoolean(),this._ownerId=e.readInt(),this._hasForum=e.readBoolean()}get groupId(){return this._groupId}get groupName(){return this._groupName}get badgeCode(){return this._badgeCode}get colorA(){return this._colorA}get colorB(){return this._colorB}get favourite(){return this._favourite}get ownerId(){return this._ownerId}get hasForum(){return this._hasForum}}class SJ{flush(){return this._id=0,this._username=null,this._figure=null,this._motto=null,this._registration=null,this._achievementPoints=0,this._friendsCount=0,this._isMyFriend=!1,this._requestSent=!1,this._isOnline=!1,this._groups=[],this._secondsSinceLastVisit=0,this._openProfileWindow=!1,!0}parse(e){if(!e)return!1;this._id=e.readInt(),this._username=e.readString(),this._figure=e.readString(),this._motto=e.readString(),this._registration=e.readString(),this._achievementPoints=e.readInt(),this._friendsCount=e.readInt(),this._isMyFriend=e.readBoolean(),this._requestSent=e.readBoolean(),this._isOnline=e.readBoolean();const t=e.readInt();for(let i=0;i<t;i++)this._groups.push(new g4(e));return this._secondsSinceLastVisit=e.readInt(),this._openProfileWindow=e.readBoolean(),!0}get id(){return this._id}get username(){return this._username}get figure(){return this._figure}get motto(){return this._motto}get registration(){return this._registration}get achievementPoints(){return this._achievementPoints}get friendsCount(){return this._friendsCount}get isMyFriend(){return this._isMyFriend}get requestSent(){return this._requestSent}get isOnline(){return this._isOnline}get groups(){return this._groups}get secondsSinceLastVisit(){return this._secondsSinceLastVisit}get openProfileWindow(){return this._openProfileWindow}}class bJ{flush(){return this._volumeSystem=0,this._volumeFurni=0,this._volumeTrax=0,this._oldChat=!1,this._roomInvites=!1,this._cameraFollow=!1,this._flags=0,this._chatType=0,!0}parse(e){return e?(this._volumeSystem=e.readInt(),this._volumeFurni=e.readInt(),this._volumeTrax=e.readInt(),this._oldChat=e.readBoolean(),this._roomInvites=e.readBoolean(),this._cameraFollow=e.readBoolean(),this._flags=e.readInt(),this._chatType=e.readInt(),!0):!1}get volumeSystem(){return this._volumeSystem}get volumeFurni(){return this._volumeFurni}get volumeTrax(){return this._volumeTrax}get oldChat(){return this._oldChat}get roomInvites(){return this._roomInvites}get cameraFollow(){return this._cameraFollow}get flags(){return this._flags}get chatType(){return this._chatType}}class AJ{flush(){return this._roomUnitId=-1,this._tags=[],!0}parse(e){if(!e)return!1;this._roomUnitId=e.readInt();let t=e.readInt();for(;t>0;)this._tags.push(e.readString()),t--;return!0}get roomUnitId(){return this._roomUnitId}get tags(){return this._tags}}class OJ{flush(){return this._email=null,this._isVerified=!1,this._allowChange=!1,!0}parse(e){return e?(this._email=e.readString(),this._isVerified=e.readBoolean(),this._allowChange=e.readBoolean(),!0):!1}get email(){return this._email}get isVerified(){return this._isVerified}get allowChange(){return this._allowChange}}class wJ{flush(){return this._userId=-1,!0}parse(e){return e?(this._userId=e.readInt(),!0):!1}get userId(){return this._userId}}class CJ{flush(){return this._groupId=-1,!0}parse(e){return e?(this._groupId=e.readInt(),!0):!1}get groupId(){return this._groupId}}class MJ{flush(){return this._groupId=-1,this._requester=null,!0}parse(e){return e?(this._groupId=e.readInt(),this._requester=new gb(e),!0):!1}get groupId(){return this._groupId}get requester(){return this._requester}}const rC=class rC{flush(){return this._reason=-1,!0}parse(e){return e?(this._reason=e.readInt(),!0):!1}get reason(){return this._reason}};rC.INSUFFICIENT_SUBSCRIPTION_LEVEL=2;let eS=rC;class NJ{flush(){return this._guildId=-1,this._reason=-1,!0}parse(e){return e?(this._guildId=e.readInt(),this._reason=e.readInt(),!0):!1}get guildId(){return this._guildId}get reason(){return this._reason}}class PJ{flush(){return this._groups=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._groups.push(new g4(e)),t--;return!0}get groups(){return this._groups}}class kJ{flush(){return this._badges=new Map,!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;){const i=e.readInt(),n=e.readString();this._badges.set(i,n),t--}return!0}get badges(){return this._badges}}const aC=class aC{flush(){return this._reason=-1,!0}parse(e){return e?(this._reason=e.readInt(),!0):!1}get reason(){return this._reason}};aC.INSUFFICIENT_SUBSCRIPTION_LEVEL=4;let tS=aC;class xJ{flush(){return this._ignoredUsers=[],!0}parse(e){if(!e)return!1;this._ignoredUsers=[];let t=e.readInt();for(;t>0;)this._ignoredUsers.push(e.readString()),t--;return!0}get ignoredUsers(){return this._ignoredUsers}}class DJ{flush(){return this._result=-1,this._name=null,!0}parse(e){return e?(this._result=e.readInt(),this._name=e.readString(),!0):!1}get result(){return this._result}get name(){return this._name}}class LJ{flush(){return this._link=null,!0}parse(e){return e?(this._link=e.readString(),!0):!1}get link(){return this._link}}class UJ{flush(){return this._credits=null,!0}parse(e){return e?(this._credits=e.readString(),!0):!1}get credits(){return this._credits}}class FJ{flush(){return this._currencies=new Map,!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._currencies.set(e.readInt(),e.readInt()),t--;return!0}get currencies(){return this._currencies}}const rc=class rc{flush(){return this._productName=null,this._daysToPeriodEnd=0,this._memberPeriods=0,this._periodsSubscribedAhead=0,this._responseType=0,this._hasEverBeenMember=!1,this._isVip=!1,this._pastClubDays=0,this._pastVipDays=0,this._minutesUntilExpiration=0,this._minutesSinceLastModified=0,!0}parse(e){return e?(this._productName=e.readString(),this._daysToPeriodEnd=e.readInt(),this._memberPeriods=e.readInt(),this._periodsSubscribedAhead=e.readInt(),this._responseType=e.readInt(),this._hasEverBeenMember=e.readBoolean(),this._isVip=e.readBoolean(),this._pastClubDays=e.readInt(),this._pastVipDays=e.readInt(),this._minutesUntilExpiration=e.readInt(),e.bytesAvailable&&(this._minutesSinceLastModified=e.readInt()),!0):!1}get productName(){return this._productName}get daysToPeriodEnd(){return this._daysToPeriodEnd}get memberPeriods(){return this._memberPeriods}get periodsSubscribedAhead(){return this._periodsSubscribedAhead}get responseType(){return this._responseType}get hasEverBeenMember(){return this._hasEverBeenMember}get isVip(){return this._isVip}get pastClubDays(){return this._pastClubDays}get pastVipDays(){return this._pastVipDays}get minutesUntilExpiration(){return this._minutesUntilExpiration}get minutesSinceLastModified(){return this._minutesSinceLastModified}};rc.RESPONSE_TYPE_LOGIN=1,rc.RESPONSE_TYPE_PURCHASE=2,rc.RESPONSE_TYPE_DISCOUNT_AVAILABLE=3,rc.RESPONSE_TYPE_CITIZENSHIP_DISCOUNT=4;let iS=rc;const ac=class ac{constructor(e){if(this._unseen=0,!e)throw new Error("invalid_parser");this._achievementId=e.readInt(),this._level=e.readInt(),this._badgeId=e.readString(),this._scoreAtStartOfLevel=e.readInt(),this._scoreLimit=Math.max(1,e.readInt()),this._levelRewardPoints=e.readInt(),this._levelRewardPointType=e.readInt(),this._currentPoints=e.readInt(),this._finalLevel=e.readBoolean(),this._category=e.readString(),this._subCategory=e.readString(),this._levelCount=e.readInt(),this._displayMethod=e.readInt()}get achievementId(){return this._achievementId}get badgeId(){return this._badgeId}get level(){return this._level}get scoreAtStartOfLevel(){return this._scoreAtStartOfLevel}get scoreLimit(){return this._scoreLimit-this._scoreAtStartOfLevel}get levelRewardPoints(){return this._levelRewardPoints}get levelRewardPointType(){return this._levelRewardPointType}get currentPoints(){return this._currentPoints-this._scoreAtStartOfLevel}get finalLevel(){return this._finalLevel}get category(){return this._category}get subCategory(){return this._subCategory}get levelCount(){return this._levelCount}get firstLevelAchieved(){return this._level>1||this._finalLevel}setMaxProgress(){this._currentPoints=this._scoreLimit}get displayMethod(){return this._displayMethod}get progress(){return this._currentPoints}get toNextProgress(){return this._scoreLimit}set unseen(e){this._unseen=e}get unseen(){return this._unseen}reset(e){this._achievementId=e._achievementId,this._level=e._level,this._badgeId=e._badgeId,this._scoreAtStartOfLevel=e._scoreAtStartOfLevel,this._scoreLimit=e._scoreLimit,this._levelRewardPoints=e._levelRewardPoints,this._levelRewardPointType=e._levelRewardPointType,this._currentPoints=e._currentPoints,this._finalLevel=e._finalLevel,this._category=e.category,this._subCategory=e._subCategory,this._levelCount=e._levelCount,this._displayMethod=e._displayMethod}};ac.DISPLAY_METHOD_OBSOLETE=-1,ac.DISPLAY_METHOD_SHOW_LEVEL_PROGRESS=0,ac.DISPLAY_METHOD_NEVER_SHOW_PROGRESS=1,ac.DISPLAY_METHOD_SHOW_TOTAL_PROGRESS=2;let _v=ac;class BJ{flush(){return this._achievement=null,!0}parse(e){return e?(this._achievement=new _v(e),!0):!1}get achievement(){return this._achievement}}const gE=class gE{constructor(e){this._achievementId=e.readInt(),this._level=e.readInt(),this._badgeId=e.readString(),this._requiredLevel=e.readInt(),this._state=e.readInt()}dispose(){this._achievementId=0,this._level=0,this._badgeId="",this._requiredLevel=0}get achievementId(){return this._achievementId}get level(){return this._level}get badgeId(){return this._badgeId}get requiredLevel(){return this._requiredLevel}get enabled(){return this._state===gE.STATE_SELECTABLE}get state(){return this._state}};gE.STATE_SELECTABLE=0;let sS=gE;class GJ{flush(){return this._achievements=[],this._defaultCategory=null,!0}parse(e){if(!e)return!1;this._achievements=[];let t=e.readInt();for(;t>0;)this._achievements.push(new _v(e)),t--;return this._defaultCategory=e.readString(),!0}get achievements(){return this._achievements}get defaultCategory(){return this._defaultCategory}}class VJ{flush(){return this._score=0,!0}parse(e){return e?(this._score=e.readInt(),!0):!1}get score(){return this._score}}class jJ{get type(){return this._type}set type(e){this._type=e}get subType(){return this._subType}set subType(e){this._subType=e}get duration(){return this._duration}set duration(e){this._duration=e}get inactiveEffectsInInventory(){return this._inactiveEffectsInInventory}set inactiveEffectsInInventory(e){this._inactiveEffectsInInventory=e}get secondsLeftIfActive(){return this._secondsLeftIfActive}set secondsLeftIfActive(e){this._secondsLeftIfActive=e}get isPermanent(){return this._permanent}set isPermanent(e){this._permanent=e}}class zJ{flush(){return this._type=0,this._duration=0,this._isPermanent=!1,!0}parse(e){return e?(this._type=e.readInt(),this._duration=e.readInt(),this._isPermanent=e.readBoolean(),!0):!1}get type(){return this._type}get duration(){return this._duration}get isPermanent(){return this._isPermanent}}class HJ{flush(){return this._type=0,this._subType=0,this._duration=0,this._permanent=!1,!0}parse(e){return e?(this._type=e.readInt(),this._subType=e.readInt(),this._duration=e.readInt(),this._permanent=e.readBoolean(),!0):!1}get type(){return this._type}get subType(){return this._subType}get duration(){return this._duration}get isPermanent(){return this._permanent}}class WJ{flush(){return this._type=0,!0}parse(e){return e?(this._type=e.readInt(),!0):!1}get type(){return this._type}}class YJ{flush(){return this._type=0,!0}parse(e){return e?(this._type=e.readInt(),!0):!1}get type(){return this._type}}class XJ{flush(){return this._effects=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;){const i=new jJ;i.type=e.readInt(),i.subType=e.readInt(),i.duration=e.readInt(),i.inactiveEffectsInInventory=e.readInt(),i.secondsLeftIfActive=e.readInt(),i.isPermanent=e.readBoolean(),this._effects.push(i),t--}return!0}get effects(){return this._effects}}class KJ{constructor(e,t){if(!t)throw new Error("invalid_parser");this._badgeId="ACH_"+e+t.readInt(),this._limit=t.readInt()}get badgeId(){return this._badgeId}get limit(){return this._limit}}class qJ{flush(){return this._data=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;){const i=e.readString(),n=e.readInt();let r=0;for(;r<n;)this._data.push(new KJ(i,e)),r++;t--}return!0}get data(){return this._data}}class $J{flush(){return this._badgeId=0,this._badgeCode=null,!0}parse(e){return e?(this._badgeId=e.readInt(),this._badgeCode=e.readString(),!0):!1}get badgeId(){return this._badgeId}get badgeCode(){return this._badgeCode}}class QJ{flush(){return this._allBadgeCodes=[],this._activeBadgeCodes=null,this._badgeIds=null,!0}parse(e){if(!e)return!1;this._allBadgeCodes=[],this._activeBadgeCodes=[],this._badgeIds=new li;let t=e.readInt();for(;t>0;){const i=e.readInt(),n=e.readString();this._badgeIds.add(n,i),this._allBadgeCodes.push(n),t--}for(t=e.readInt();t>0;){e.readInt();const i=e.readString();this._activeBadgeCodes.push(i),t--}return!0}getBadgeId(e){return this._badgeIds.getValue(e)}getAllBadgeCodes(){return this._allBadgeCodes}getActiveBadgeCodes(){return this._activeBadgeCodes}}class ZJ{flush(){return!0}parse(e){return e?(this._requestCode=e.readString(),this._fulfilled=e.readBoolean(),!0):!1}get requestCode(){return this._requestCode}get fulfilled(){return this._fulfilled}}class JJ{flush(){return this._figureSetIds=[],this._boundFurnitureNames=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._figureSetIds.push(e.readInt()),t--;let i=e.readInt();for(;i>0;)this._boundFurnitureNames.push(e.readString()),i--;return!0}get figureSetIds(){return this._figureSetIds}get boundsFurnitureNames(){return this._boundFurnitureNames}}const oc=class oc{flush(){return this._reason=0,this._parameter="",!0}parse(e){return e?(this._reason=e.readInt(),this._parameter=e.readString(),!0):!1}get reason(){return this._reason}get parameter(){return this._parameter}};oc.REASON_FULL=1,oc.REASON_CLOSED=2,oc.REASON_QUEUE_ERROR=3,oc.REASON_BANNED=4;let nS=oc;class eee{flush(){return this._userName=null,!0}parse(e){return e?(this._userName=e.readString(),!0):!1}get userName(){return this._userName}}class tee{flush(){return!0}parse(e){return!!e}}class iee{flush(){return!0}parse(e){return!!e}}class see{flush(){return this._controllerLevel=Sa.NONE,!0}parse(e){return e?(this._controllerLevel=e.readInt(),!0):!1}get controllerLevel(){return this._controllerLevel}}class nee{flush(){return!0}parse(e){return!!e}}class ree{flush(){return this._roomId=0,!0}parse(e){return e?(this._roomId=e.readInt(),!0):!1}get roomId(){return this._roomId}}class aee{flush(){return this._botId=-1,this._commandId=-1,this._data="",!0}parse(e){return e?(this._botId=e.readInt(),this._commandId=e.readInt(),this._data=e.readString(),!0):!1}get botId(){return this._botId}get commandId(){return this._commandId}get data(){return this._data}}class oee{flush(){return this._botId=-1,!0}parse(e){return e?(this._botId=e.readInt(),!0):!1}get botId(){return this._botId}}class lee{constructor(e){this._id=e.readInt(),this._data=e.readString()}get id(){return this._id}get data(){return this._data}}class uee{flush(){return this._botId=-1,this._skillList=[],!0}parse(e){if(!e)return!1;this._botId=e.readInt();let t=e.readInt();for(;t>0;)this._skillList.push(new lee(e)),t--;return!0}get botId(){return this._botId}get skillList(){return this._skillList}}class hee{constructor(e){this._userId=e.readInt(),this._userName=e.readString()}get userId(){return this._userId}get userName(){return this._userName}}class cee{flush(){return this._roomId=0,this._bannedUsers=[],!0}parse(e){if(!e)return!1;this._roomId=e.readInt();let t=e.readInt();for(;t>0;)this._bannedUsers.push(new hee(e)),t--;return!0}get roomId(){return this._roomId}get bannedUsers(){return this._bannedUsers}}class fee{constructor(e){this._userId=e.readInt(),this._userName=e.readString()}get userId(){return this._userId}get userName(){return this._userName}get selected(){return this._selected}set selected(e){this._selected=e}}class dee{flush(){return this._roomId=0,this._data=null,!0}parse(e){return e?(this._roomId=e.readInt(),this._data=new fee(e),!0):!1}get roomId(){return this._roomId}get data(){return this._data}}class _ee{flush(){return this._roomId=0,this._userId=0,!0}parse(e){return e?(this._roomId=e.readInt(),this._userId=e.readInt(),!0):!1}get roomId(){return this._roomId}get userId(){return this._userId}}class gee{flush(){return this._roomId=0,this._users=new Map,!0}parse(e){if(!e)return!1;this._roomId=e.readInt();let t=e.readInt();for(;t>0;){const i=e.readInt(),n=e.readString();this._users.set(i,n),t--}return!0}get roomId(){return this._roomId}get users(){return this._users}}class pee{flush(){return!0}parse(e){return e?(this._isMuted=e.readBoolean(),!0):!1}get isMuted(){return this._isMuted}}class mee{flush(){return this._roomId=0,!0}parse(e){return e?(this._roomId=e.readInt(),!0):!1}get roomId(){return this._roomId}}const js=class js{constructor(e){if(!e)throw new Error("invalid_wrapper");this._mode=e.readInt(),this._weight=e.readInt(),this._speed=e.readInt(),this._distance=e.readInt(),this._protection=e.readInt()}get mode(){return this._mode}get weight(){return this._weight}get speed(){return this._speed}get distance(){return this._distance}get protection(){return this._protection}};js.CHAT_MODE_FREE_FLOW=0,js.CHAT_MODE_LINE_BY_LINE=1,js.CHAT_BUBBLE_WIDTH_WIDE=0,js.CHAT_BUBBLE_WIDTH_NORMAL=1,js.CHAT_BUBBLE_WIDTH_THIN=2,js.CHAT_SCROLL_SPEED_FAST=0,js.CHAT_SCROLL_SPEED_NORMAL=1,js.CHAT_SCROLL_SPEED_SLOW=2,js.FLOOD_FILTER_STRICT=0,js.FLOOD_FILTER_NORMAL=1,js.FLOOD_FILTER_LOOSE=2;let H_=js;const Hd=class Hd{constructor(e){this._allowMute=e.readInt(),this._allowKick=e.readInt(),this._allowBan=e.readInt()}get allowMute(){return this._allowMute}get allowKick(){return this._allowKick}get allowBan(){return this._allowBan}};Hd.MODERATION_LEVEL_NONE=0,Hd.MODERATION_LEVEL_USER_WITH_RIGHTS=1,Hd.MODERATION_LEVEL_ALL=2;let gv=Hd;const Ii=class Ii{constructor(){this._roomId=-1,this._name=null,this._description=null,this._doorMode=Ii.DOORMODE_OPEN,this._categoryId=-1,this._maximumVisitors=0,this._maximumVisitorsLimit=0,this._tags=[],this._tradeMode=Ii.TRADEMODE_NOT_ALLOWED,this._allowPets=!1,this._allowFoodConsume=!1,this._allowWalkThrough=!1,this._hideWalls=!1,this._wallThickness=0,this._floorThickness=0,this._controllersById=new Map,this._controllerList=null,this._highlightedUserId=-1,this._bannedUsersById=new Map,this._bannedUsersList=null,this._roomModerationSettings=null,this._chatSettings=null,this._allowNavigatorDynamicCats=!1}static from(e){const t=new Ii;return t._roomId=e._roomId,t._name=e._name,t._description=e._description,t._doorMode=e._doorMode,t._categoryId=e._categoryId,t._maximumVisitors=e._maximumVisitors,t._maximumVisitorsLimit=e._maximumVisitorsLimit,t._tags=e._tags,t._tradeMode=e._tradeMode,t._allowPets=e._allowPets,t._allowFoodConsume=e._allowFoodConsume,t._allowWalkThrough=e._allowWalkThrough,t._hideWalls=e._hideWalls,t._wallThickness=e._wallThickness,t._floorThickness=e._floorThickness,t._controllersById=e._controllersById,t._controllerList=e._controllerList,t._highlightedUserId=e._highlightedUserId,t._bannedUsersById=e._bannedUsersById,t._bannedUsersList=e._bannedUsersList,t._roomModerationSettings=e._roomModerationSettings,t._chatSettings=e._chatSettings,t._allowNavigatorDynamicCats=e._allowNavigatorDynamicCats,t}static getDoorModeLocalizationKey(e){switch(e){case Ii.DOORMODE_OPEN:return"${navigator.door.mode.open}";case Ii.DOORMODE_CLOSED:return"${navigator.door.mode.closed}";case Ii.DOORMODE_PASSWORD:return"${navigator.door.mode.password}";case Ii.DOORMODE_INVISIBLE:return"${navigator.door.mode.invisible}";case Ii.DOORMODE_NOOBS_ONLY:return"${navigator.door.mode.noobs_only}"}return""}get tradeMode(){return this._tradeMode}set tradeMode(e){this._tradeMode=e}get allowPets(){return this._allowPets}set allowPets(e){this._allowPets=e}get allowFoodConsume(){return this._allowFoodConsume}set allowFoodConsume(e){this._allowFoodConsume=e}get allowWalkThrough(){return this._allowWalkThrough}set allowWalkThrough(e){this._allowWalkThrough=e}get hideWalls(){return this._hideWalls}set hideWalls(e){this._hideWalls=e}get wallThickness(){return this._wallThickness}set wallThickness(e){this._wallThickness=e}get floorThickness(){return this._floorThickness}set floorThickness(e){this._floorThickness=e}get roomId(){return this._roomId}set roomId(e){this._roomId=e}get name(){return this._name}set name(e){this._name=e}get description(){return this._description}set description(e){this._description=e}get doorMode(){return this._doorMode}set doorMode(e){this._doorMode=e}get categoryId(){return this._categoryId}set categoryId(e){this._categoryId=e}get maximumVisitors(){return this._maximumVisitors}set maximumVisitors(e){this._maximumVisitors=e}get maximumVisitorsLimit(){return this._maximumVisitorsLimit}set maximumVisitorsLimit(e){this._maximumVisitorsLimit=e}get tags(){return this._tags}set tags(e){this._tags=e}setFlatController(e,t){this._controllersById.set(e,t),this._controllerList=null,this._highlightedUserId=e}get roomModerationSettings(){return this._roomModerationSettings}set roomModerationSettings(e){this._roomModerationSettings=e}get controllersById(){return this._controllersById}set controllersById(e){this._controllersById=e}get controllerList(){if(!this._controllerList){this._controllerList=[];for(const e of this._controllersById.values())this._controllerList.push(e);this._controllerList.sort((e,t)=>e.userName.localeCompare(t.userName))}return this._controllerList}get highlightedUserId(){return this._highlightedUserId}setBannedUser(e,t){this._bannedUsersById.set(e,t),this._bannedUsersList=null}get bannedUsersById(){return this._bannedUsersById}get bannedUsersList(){if(!this._bannedUsersList){this._bannedUsersList=[];for(const e of this._bannedUsersById.values())this._bannedUsersList.push(e);this._bannedUsersList.sort((e,t)=>e.userName.localeCompare(t.userName))}return this._bannedUsersList}get chatSettings(){return this._chatSettings}set chatSettings(e){this._chatSettings=e}get allowNavigatorDynamicCats(){return this._allowNavigatorDynamicCats}set allowNavigatorDynamicCats(e){this._allowNavigatorDynamicCats=e}};Ii.DOORMODE_OPEN=0,Ii.DOORMODE_CLOSED=1,Ii.DOORMODE_PASSWORD=2,Ii.DOORMODE_INVISIBLE=3,Ii.DOORMODE_NOOBS_ONLY=4,Ii.TRADEMODE_NOT_ALLOWED=0,Ii.TRADEMODE_WITH_CONTROLLER=1,Ii.TRADEMODE_ALLOWED=2;let rS=Ii;class vee{flush(){return this._roomSettingsData=null,!0}parse(e){if(!e)return!1;this._roomSettingsData=new rS,this._roomSettingsData.roomId=e.readInt(),this._roomSettingsData.name=e.readString(),this._roomSettingsData.description=e.readString(),this._roomSettingsData.doorMode=e.readInt(),this._roomSettingsData.categoryId=e.readInt(),this._roomSettingsData.maximumVisitors=e.readInt(),this._roomSettingsData.maximumVisitorsLimit=e.readInt(),this._roomSettingsData.tags=[];let t=e.readInt();for(;t>0;)this._roomSettingsData.tags.push(e.readString()),t--;return this._roomSettingsData.tradeMode=e.readInt(),this._roomSettingsData.allowPets=e.readInt()===1,this._roomSettingsData.allowFoodConsume=e.readInt()===1,this._roomSettingsData.allowWalkThrough=e.readInt()===1,this._roomSettingsData.hideWalls=e.readInt()===1,this._roomSettingsData.wallThickness=e.readInt(),this._roomSettingsData.floorThickness=e.readInt(),this._roomSettingsData.chatSettings=new H_(e),this._roomSettingsData.allowNavigatorDynamicCats=e.readBoolean(),this._roomSettingsData.roomModerationSettings=new gv(e),!0}get data(){return this._roomSettingsData}}class Eee{flush(){return this._roomId=0,this._code=0,!0}parse(e){return e?(this._roomId=e.readInt(),this._code=e.readInt(),!0):!1}get roomId(){return this._roomId}get code(){return this._code}}class yee{flush(){return this._roomId=0,!0}parse(e){return e?(this._roomId=e.readInt(),!0):!1}get roomId(){return this._roomId}}const os=class os{flush(){return this._roomId=0,this._code=0,this._message=null,!0}parse(e){return e?(this._roomId=e.readInt(),this._code=e.readInt(),this._message=e.readString(),!0):!1}get roomId(){return this._roomId}get code(){return this._code}get message(){return this._message}};os.ERROR_ROOM_NOT_FOUND=1,os.ERROR_NOT_OWNER=2,os.ERROR_INVALID_DOOR_MODE=3,os.ERROR_INVALID_USER_LIMIT=4,os.ERROR_INVALID_PASSWORD=5,os.ERROR_INVALID_CATEGORY=6,os.ERROR_INVALID_NAME=7,os.ERROR_UNACCEPTABLE_NAME=8,os.ERROR_INVALID_DESCRIPTION=9,os.ERROR_UNACCEPTABLE_DESCRIPTION=10,os.ERROR_INVALID_TAG=11,os.ERROR_NON_USER_CHOOSABLE_TAG=12,os.ERROR_TOO_MANY_CHARACTERS_IN_TAG=13;let aS=os;class Tee{flush(){return this._selectionType=0,!0}parse(e){return e?(this._selectionType=e.readInt(),!0):!1}get selectionType(){return this._selectionType}}class Iee{flush(){return this._roomId=0,this._userId=0,!0}parse(e){return e?(this._roomId=e.readInt(),this._userId=e.readInt(),!0):!1}get roomId(){return this._roomId}get userId(){return this._userId}}class Ree{flush(){return this._chat=null,!0}parse(e){return e?(this._chat=new H_(e),!0):!1}get chat(){return this._chat}}const pi=class pi{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._roomId=0,this._roomName=null,this._ownerId=0,this._ownerName=null,this._doorMode=0,this._userCount=0,this._maxUserCount=0,this._description=null,this._tradeMode=2,this._score=0,this._ranking=0,this._categoryId=0,this._totalStars=0,this._groupId=0,this._groupName=null,this._groupBadge=null,this._tags=[],this._bitMask=0,this._thumbnail=null,this._allowPets=!1,this._showOwner=!0,this._displayAd=!1,this._adName=null,this._adDescription=null,this._adExpiresIn=0,this._allInRoomMuted=!1,this._canMute=!1,this._officialRoomPicRef=null,!0}parse(e){return e?(this._roomId=e.readInt(),this._roomName=e.readString(),this._ownerId=e.readInt(),this._ownerName=e.readString(),this._doorMode=e.readInt(),this._userCount=e.readInt(),this._maxUserCount=e.readInt(),this._description=e.readString(),this._tradeMode=e.readInt(),this._score=e.readInt(),this._ranking=e.readInt(),this._categoryId=e.readInt(),this.parseTags(e),this.parseBitMask(e),!0):!1}parseTags(e){if(!e)return!1;this._tags=[];let t=e.readInt();for(;t>0;)this._tags.push(e.readString()),t--;return!0}parseBitMask(e){return e?(this._bitMask=e.readInt(),this._bitMask&pi.THUMBNAIL_BITMASK&&(this._officialRoomPicRef=e.readString()),this._bitMask&pi.GROUPDATA_BITMASK&&(this._groupId=e.readInt(),this._groupName=e.readString(),this._groupBadge=e.readString()),this._bitMask&pi.ROOMAD_BITMASK&&(this._adName=e.readString(),this._adDescription=e.readString(),this._adExpiresIn=e.readInt()),this._showOwner=(this._bitMask&pi.SHOWOWNER_BITMASK)>0,this._allowPets=(this._bitMask&pi.ALLOW_PETS_BITMASK)>0,this._displayAd=(this._bitMask&pi.DISPLAY_ROOMAD_BITMASK)>0,this._thumbnail=null,!0):!1}get roomId(){return this._roomId}get roomName(){return this._roomName}set roomName(e){this._roomName=e}get ownerId(){return this._ownerId}get ownerName(){return this._ownerName}get doorMode(){return this._doorMode}get userCount(){return this._userCount}get maxUserCount(){return this._maxUserCount}get description(){return this._description}get tradeMode(){return this._tradeMode}get score(){return this._score}get ranking(){return this._ranking}get categoryId(){return this._categoryId}get tags(){return this._tags}get officialRoomPicRef(){return this._officialRoomPicRef}get habboGroupId(){return this._groupId}get groupName(){return this._groupName}get groupBadgeCode(){return this._groupBadge}get roomAdName(){return this._adName}get roomAdDescription(){return this._adDescription}get roomAdExpiresInMin(){return this._adExpiresIn}get showOwner(){return this._showOwner}get allowPets(){return this._allowPets}get displayRoomEntryAd(){return this._displayAd}get canMute(){return this._canMute}set canMute(e){this._canMute=e}get allInRoomMuted(){return this._allInRoomMuted}set allInRoomMuted(e){this._allInRoomMuted=e}};pi.THUMBNAIL_BITMASK=1,pi.GROUPDATA_BITMASK=2,pi.ROOMAD_BITMASK=4,pi.SHOWOWNER_BITMASK=8,pi.ALLOW_PETS_BITMASK=16,pi.DISPLAY_ROOMAD_BITMASK=32,pi.OPEN_STATE=0,pi.DOORBELL_STATE=1,pi.PASSWORD_STATE=2,pi.INVISIBLE_STATE=3,pi.NOOB_STATE=4;let Qc=pi;class See{flush(){return this._roomId=0,this._isOwner=!1,!0}parse(e){return e?(this._roomId=e.readInt(),this._isOwner=e.readBoolean(),!0):!1}get roomId(){return this._roomId}get isOwner(){return this._isOwner}}class bee{flush(){return this._totalLikes=0,this._canLike=!1,!0}parse(e){return e?(this._totalLikes=e.readInt(),this._canLike=e.readBoolean(),!0):!1}get totalLikes(){return this._totalLikes}get canLike(){return this._canLike}}class Aee{flush(){return this._roomIndex=-1,this._groupId=-1,this._status=0,this._groupName=null,!0}parse(e){return e?(this._roomIndex=e.readInt(),this._groupId=e.readInt(),this._status=e.readInt(),this._groupName=e.readString(),!0):!1}get roomIndex(){return this._roomIndex}get groupId(){return this._groupId}get status(){return this._status}get groupName(){return this._groupName}}class Oee{constructor(e,t,i){this._id=0,this._state=0,this._id=e,this._state=t,this._data=i}get id(){return this._id}get state(){return this._state}get data(){return this._data}}class wee{flush(){return this._code=0,!0}parse(e){return e?(this._code=e.readInt(),!0):!1}get count(){return this._code}}class Cee{flush(){return this._itemId=0,this._value=0,!0}parse(e){return e?(this._itemId=e.readInt(),this._value=e.readInt(),!0):!1}get itemId(){return this._itemId}get value(){return this._value}}class cl{flush(){return this._itemId=0,this._data=null,!0}parse(e){return e?(this._itemId=parseInt(e.readString()),this._data=cl.parseObjectData(e),!0):!1}static parseObjectData(e){if(!e)return null;const t=No.getData(e.readInt());return t?(t.parseWrapper(e),t):null}get furnitureId(){return this._itemId}get objectData(){return this._data}}class Mw{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._itemId=0,this._spriteId=0,this._spriteName=null,this._x=0,this._y=0,this._direction=0,this._z=0,this._stackHeight=0,this._extra=0,this._data=null,this._state=0,this._expires=0,this._usagePolicy=0,this._userId=0,this._username=null,!0}parse(e){return e?(this._itemId=e.readInt(),this._spriteId=e.readInt(),this._x=e.readInt(),this._y=e.readInt(),this._direction=e.readInt()%8*45,this._z=parseFloat(e.readString()),this._stackHeight=parseFloat(e.readString()),this._extra=e.readInt(),this._data=cl.parseObjectData(e),this._state=parseFloat(this._data&&this._data.getLegacyString())||0,this._expires=e.readInt(),this._usagePolicy=e.readInt(),this._userId=e.readInt(),this._username=null,this._spriteId<0&&(this._spriteName=e.readString()),!0):!1}get itemId(){return this._itemId}get spriteId(){return this._spriteId}get x(){return this._x}get y(){return this._y}get direction(){return this._direction}get z(){return isNaN(this._z)?0:this._z}get stackHeight(){return isNaN(this._stackHeight)?0:this._stackHeight}get extra(){return this._extra}get data(){return this._data}get state(){return this._state}get expires(){return this._expires}get usagePolicy(){return this._usagePolicy}get userId(){return this._userId}get username(){return this._username}set username(e){this._username=e}get spriteName(){return this._spriteName}set spriteName(e){this._spriteName=e}}class Mee{flush(){return this._item=null,!0}parse(e){return e?(this._item=new Mw(e),this._item.username=e.readString(),!0):!1}get item(){return this._item}}class Nee{flush(){return this._owners=new Map,this._items=[],!0}parse(e){if(!e||!this.parseOwners(e))return!1;let t=e.readInt();for(;t>0;){const i=new Mw(e);if(!i)continue;const n=this._owners.get(i.userId);n&&(i.username=n),this._items.push(i),t--}return!0}parseOwners(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._owners.set(e.readInt(),e.readString()),t--;return!0}get owners(){return this._owners}get items(){return this._items}}class Pee{flush(){return this._itemId=0,this._isExpired=!0,this._userId=0,this._delay=0,!0}parse(e){return e?(this._itemId=parseInt(e.readString()),this._isExpired=e.readBoolean(),this._userId=e.readInt(),this._delay=e.readInt(),!0):!1}get itemId(){return this._itemId}get isExpired(){return this._isExpired}get userId(){return this._userId}get delay(){return this._delay}}class kee{flush(){return this._item=null,!0}parse(e){return e?(this._item=new Mw(e),!0):!1}get item(){return this._item}}class xee{flush(){return this._isWallItem=!1,this._furniTypeName=null,this._buyout=!1,this._priceInCredits=-1,this._priceInActivityPoints=-1,this._activityPointType=-1,!0}parse(e){return e?(this._isWallItem=e.readBoolean(),this._furniTypeName=e.readString(),this._buyout=e.readBoolean(),this._priceInCredits=e.readInt(),this._priceInActivityPoints=e.readInt(),this._activityPointType=e.readInt(),!0):!1}get isWallItem(){return this._isWallItem}get furniTypeName(){return this._furniTypeName}get buyout(){return this._buyout}get priceInCredits(){return this._priceInCredits}get priceInActivityPoints(){return this._priceInActivityPoints}get activityPointType(){return this._activityPointType}}class Dee{flush(){return this._aliases=new Map,!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._aliases.set(e.readString(),e.readString()),t--;return!0}get aliases(){return this._aliases}}class Lee{flush(){return this._furniId=-1,this._height=0,!0}parse(e){return e?(this._furniId=e.readInt(),this._height=e.readInt()/100,!0):!1}get furniId(){return this._furniId}get height(){return this._height}}class Uee{flush(){return this._objectId=0,this._guildId=0,this._guildName=null,this._guildHomeRoomId=0,this._userIsMember=!1,this._guildHasReadableForum=!1,!0}parse(e){return e?(this._objectId=e.readInt(),this._guildId=e.readInt(),this._guildName=e.readString(),this._guildHomeRoomId=e.readInt(),this._userIsMember=e.readBoolean(),this._guildHasReadableForum=e.readBoolean(),!0):!1}get objectId(){return this._objectId}get guildId(){return this._guildId}get guildName(){return this._guildName}get guildHomeRoomId(){return this._guildHomeRoomId}get userIsMember(){return this._userIsMember}get guildHasReadableForum(){return this._guildHasReadableForum}}class Fee{flush(){return this._itemId=0,this._data="",!0}parse(e){return e?(this._itemId=parseInt(e.readString()),this._data=e.readString(),!0):!1}get furnitureId(){return this._itemId}get data(){return this._data}}class Bee{get furniId(){return this._furniId}flush(){return this._furniId=-1,!0}parse(e){return this._furniId=e.readInt(),!0}}class Gee{get furniId(){return this._furniId}flush(){return this._furniId=-1,!0}parse(e){return this._furniId=e.readInt(),!0}}class Vee{get furniId(){return this._furniId}get start(){return this._start}flush(){return this._furniId=-1,this._start=!1,!0}parse(e){return this._furniId=e.readInt(),this._start=e.readBoolean(),!0}}class jee{flush(){return this._itemId=0,this._state=0,!0}parse(e){return e?(this._itemId=e.readInt(),this._state=e.readInt(),!0):!1}get itemId(){return this._itemId}get state(){return this._state}}class zee{flush(){return!0}parse(e){return e?(this._reason=e.readInt(),!0):!1}get reason(){return this._reason}}class Hee{flush(){return!0}parse(e){return e?(this._expiryTime=e.readInt(),!0):!1}get expiryTime(){return this._expiryTime}}const En=class En{flush(){return this._rented=!1,this._renterId=-1,this._renterName=null,this._canRent=!1,this._canRentErrorCode=-1,this._timeRemaining=-1,this._price=-1,!0}parse(e){return e?(this._rented=e.readBoolean(),this._canRentErrorCode=e.readInt(),this._canRent=this._canRentErrorCode===0,this._renterId=e.readInt(),this._renterName=e.readString(),this._timeRemaining=e.readInt(),this._price=e.readInt(),this._rented||(this._renterId=-1,this._renterName=""),!0):!1}get rented(){return this._rented}get renterId(){return this._renterId}get renterName(){return this._renterName}get canRent(){return this._canRent}get price(){return this._price}get timeRemaining(){return this._timeRemaining}get canRentErrorCode(){return this._canRentErrorCode}};En.SPACE_ALREADY_RENTED=100,En.SPACE_EXTEND_NOT_RENTED=101,En.SPACE_EXTEND_NOT_RENTED_BY_YOU=102,En.CAN_RENT_ONLY_ONE_SPACE=103,En.NOT_ENOUGH_CREDITS=200,En.NOT_ENOUGH_PIXELS=201,En.CANT_RENT_NO_PERMISSION=202,En.CANT_RENT_NO_HABBO_CLUB=203,En.CANT_RENT=300,En.CANT_RENT_GENERIC=400;let oS=En;class Wee{flush(){return this._itemId=-1,this._location="",!0}parse(e){return e?(this._itemId=e.readInt(),this._location=e.readString(),!0):!1}get itemId(){return this._itemId}get location(){return this._location}}class Yee{constructor(e,t,i,n){this.id=e,this.type=t,this.color=i,this.brightness=n}}class Xee{constructor(){this._selectedPresetId=0,this._presets=[]}flush(){return this._presets=[],!0}parse(e){const t=e.readInt();this._selectedPresetId=e.readInt();for(let i=0;i<t;i++){const n=e.readInt(),r=e.readInt(),a=parseInt(e.readString().substr(1),16),o=e.readInt();this._presets.push(new Yee(n,r,a,o))}return!0}getPreset(e){return e<0||e>=this.presetCount?null:this._presets[e]}get presetCount(){return this._presets.length}get selectedPresetId(){return this._selectedPresetId}}class Kee{flush(){return this._roomId=-1,this._roomName=null,this._messageCount=-1,!0}parse(e){return e?(this._roomId=e.readInt(),this._roomName=e.readString(),this._messageCount=e.readInt(),!0):!1}get roomId(){return this._roomId}get roomName(){return this._roomName}get messageCount(){return this._messageCount}}class Nw{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._itemId=0,this._spriteId=0,this._location=null,this._stuffData=null,this._state=0,this._secondsToExpiration=0,this._usagePolicy=-1,this._userId=0,this._username=null,this._width=0,this._height=0,this._localX=0,this._localY=0,this._y=0,this._z=0,this._direction=null,this._isOldFormat=!1,!0}parse(e){if(!e)return!1;this._itemId=parseInt(e.readString()),this._spriteId=e.readInt(),this._location=e.readString(),this._stuffData=e.readString(),this._secondsToExpiration=e.readInt(),this._usagePolicy=e.readInt(),this._userId=e.readInt(),this._username=null;const t=parseFloat(this._stuffData);if(isNaN(t)||(this._state=Math.trunc(t)),this._location.indexOf(":")===0){this._isOldFormat=!1;let i=this._location.split(" ");if(i.length>=3){let n=i[0],r=i[1];const a=i[2];if(n.length>3&&r.length>2&&(n=n.substr(3),r=r.substr(2),i=n.split(","),i.length>=2)){const o=parseInt(i[0]),l=parseInt(i[1]);if(i=r.split(","),i.length>=2){const u=parseInt(i[0]),c=parseInt(i[1]);this._width=o,this._height=l,this._localX=u,this._localY=c,this._direction=a}}}}else this._isOldFormat=!0;return!0}get itemId(){return this._itemId}get spriteId(){return this._spriteId}get wallPosition(){return this._location}get stuffData(){return this._stuffData}get state(){return this._state}get secondsToExpiration(){return this._secondsToExpiration}get usagePolicy(){return this._usagePolicy}get userId(){return this._userId}get username(){return this._username}set username(e){this._username=e}get width(){return this._width}get height(){return this._height}get localX(){return this._localX}get localY(){return this._localY}get direction(){return this._direction}get isOldFormat(){return this._isOldFormat}}class qee{flush(){return this._item=null,!0}parse(e){return e?(this._item=new Nw(e),this._item.username=e.readString(),!0):!1}get item(){return this._item}}class $ee{flush(){return this._owners=new Map,this._items=[],!0}parse(e){if(!e||!this.parseOwners(e))return!1;let t=e.readInt();for(;t>0;){const i=new Nw(e);if(!i)continue;const n=this._owners.get(i.userId);n&&(i.username=n),this._items.push(i),t--}return!0}parseOwners(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._owners.set(e.readInt(),e.readString()),t--;return!0}get owners(){return this._owners}get items(){return this._items}}class Qee{flush(){return this._itemId=0,this._userId=0,!0}parse(e){return e?(this._itemId=parseInt(e.readString()),this._userId=e.readInt(),!0):!1}get itemId(){return this._itemId}get userId(){return this._userId}}class Zee{flush(){return this._item=null,!0}parse(e){return e?(this._item=new Nw(e),!0):!1}get item(){return this._item}}class Jee{flush(){return this._email=null,this._isVerified=!1,this._allowChange=!1,this._furniId=-1,this._requestedByUser=!1,!0}parse(e){return e?(this._email=e.readString(),this._isVerified=e.readBoolean(),this._allowChange=e.readBoolean(),this._furniId=e.readInt(),this._requestedByUser=e.readBoolean(),!0):!1}get email(){return this._email}get isVerified(){return this._isVerified}get allowChange(){return this._allowChange}get furniId(){return this._furniId}get requestedByUser(){return this._requestedByUser}}class ete{parse(e){return this._furniId=e.readInt(),this._commandId=e.readInt(),!0}flush(){return this._furniId=-1,this._commandId=-1,!0}get furniId(){return this._furniId}get commandId(){return this._commandId}}class tte{constructor(e,t,i){this._video=e,this._title=t,this._description=i}get video(){return this._video}get title(){return this._title}get description(){return this._description}}class ite{flush(){return this._furniId=-1,this._playlists=null,this._selectedPlaylistId=null,!0}parse(e){this._furniId=e.readInt();const t=e.readInt();this._playlists=[];for(let i=0;i<t;i++)this._playlists.push(new tte(e.readString(),e.readString(),e.readString()));return this._selectedPlaylistId=e.readString(),!0}get furniId(){return this._furniId}get playlists(){return this._playlists}get selectedPlaylistId(){return this._selectedPlaylistId}}class ste{flush(){return!0}parse(e){return this._furniId=e.readInt(),this._videoId=e.readString(),this._startAtSeconds=e.readInt(),this._endAtSeconds=e.readInt(),this._state=e.readInt(),!0}get furniId(){return this._furniId}get videoId(){return this._videoId}get state(){return this._state}get startAtSeconds(){return this._startAtSeconds}get endAtSeconds(){return this._endAtSeconds}}class nte{flush(){return this._objects=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;){const i=e.readInt(),n=cl.parseObjectData(e),r=parseFloat(n.getLegacyString());this._objects.push(new Oee(i,r,n)),t--}return!0}get objects(){return this._objects}}class rte{flush(){return this._rollerId=0,this._itemsRolling=[],this._unitRolling=null,!0}parse(e){if(!e)return!1;const t=e.readInt(),i=e.readInt(),n=e.readInt(),r=e.readInt();let a=e.readInt();for(;a>0;){const h=e.readInt(),f=parseFloat(e.readString()),d=parseFloat(e.readString()),_=new pa(h,new M(t,i,f),new M(n,r,d));this._itemsRolling.push(_),a--}if(this._rollerId=e.readInt(),!e.bytesAvailable)return!0;const o=e.readInt(),l=e.readInt(),u=parseFloat(e.readString()),c=parseFloat(e.readString());switch(o){case 0:break;case 1:this._unitRolling=new pa(l,new M(t,i,u),new M(n,r,c),pa.MOVE);break;case 2:this._unitRolling=new pa(l,new M(t,i,u),new M(n,r,c),pa.SLIDE);break}return!0}get rollerId(){return this._rollerId}get itemsRolling(){return this._itemsRolling}get unitRolling(){return this._unitRolling}}const Wd=class Wd{flush(){return this._model=null,this._width=0,this._height=0,this._wallHeight=-1,this._heightMap=[],this._scale=64,this._model=null,!0}parse(e){if(!e)return!1;const t=e.readBoolean(),i=e.readInt(),n=e.readString();return this.parseExplicitly(n,i,t)}parseModel(e,t,i=!0){return this.parseExplicitly(e,t,i)}parseExplicitly(e,t,i=!0){this._scale=i?32:64,this._wallHeight=t,this._model=e;const n=this._model.split("\r"),r=n.length;let a=0,o=0;for(;o<r;){const l=n[o];l.length>a&&(a=l.length),o++}for(this._heightMap=[],o=0;o<r;){const l=[];let u=0;for(;u<a;)l.push(Wd.TILE_BLOCKED),u++;this._heightMap.push(l),o++}for(this._width=a,this._height=r,o=0;o<r;){const l=this._heightMap[o],u=n[o];if(u.length>0){let c=0;for(;c<u.length;){const h=u.charAt(c);let f=Wd.TILE_BLOCKED;h!=="x"&&h!=="X"&&(f=parseInt(h,36)),l[c]=f,c++}}o++}return!0}getHeight(e,t){if(e<0||e>=this._width||t<0||t>=this._height)return-110;const i=this._heightMap[t];if(i===void 0)return-110;const n=i[e];return n===void 0?-110:n}get model(){return this._model}get width(){return this._width}get height(){return this._height}get heightMap(){return this._heightMap}get wallHeight(){return this._wallHeight}get scale(){return this._scale}};Wd.TILE_BLOCKED=-110;let pv=Wd;class ate{flush(){return this._x=0,this._y=0,this._direction=0,!0}parse(e){return e?(this._x=e.readInt(),this._y=e.readInt(),this._direction=e.readInt(),!0):!1}get x(){return this._x}get y(){return this._y}get direction(){return this._direction}}class Yo{static decodeTileHeight(e){return e<0?-1:(e&16383)/256}static decodeIsStackingBlocked(e){return!!(e&16384)}static decodeIsRoomTile(e){return e>=0}getTileHeight(e,t){return e<0||e>=this._width||t<0||t>=this._height?-1:Yo.decodeTileHeight(this._heights[t*this._width+e])}getStackingBlocked(e,t){return e<0||e>=this._width||t<0||t>=this._height?!0:Yo.decodeIsStackingBlocked(this._heights[t*this._width+e])}isRoomTile(e,t){return e<0||e>=this._width||t<0||t>=this._height?!1:Yo.decodeIsRoomTile(this._heights[t*this._width+e])}flush(){return this._width=0,this._height=0,this._heights=[],!0}parse(e){if(!e)return!1;this._width=e.readInt();const t=e.readInt();this._height=t/this._width;let i=0;for(;i<t;)this._heights[i]=e.readShort(),i++;return!0}get width(){return this._width}get height(){return this._height}get heights(){return this._heights}}class ote{flush(){return this._wrapper=null,this._count=0,this._x=0,this._y=0,this._value=0,!0}tileHeight(){return Yo.decodeTileHeight(this._value)}isStackingBlocked(){return Yo.decodeIsStackingBlocked(this._value)}isRoomTile(){return Yo.decodeIsRoomTile(this._value)}next(){return this._count?(this._count--,this._x=this._wrapper.readByte(),this._y=this._wrapper.readByte(),this._value=this._wrapper.readShort(),!0):!1}parse(e){return e?(this._wrapper=e,this._count=e.readByte(),!0):!1}get x(){return this._x}get y(){return this._y}get height(){return this._value}}class lte{flush(){return this._blockedTilesMap=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;){const i=e.readInt(),n=e.readInt();this._blockedTilesMap[n]||(this._blockedTilesMap[n]=[]),this._blockedTilesMap[n][i]=!0,t--}return!0}get blockedTilesMap(){return this._blockedTilesMap}}class ute{flush(){return this._floorType=null,this._wallType=null,this._landscapeType=null,this._landscapeAnimation=null,!0}parse(e){if(!e)return!1;const t=e.readString(),i=e.readString();switch(t){case"floor":this._floorType=i;break;case"wallpaper":this._wallType=i;break;case"landscape":this._landscapeType=i;break;case"landscapeanim":this._landscapeAnimation=i;break}return!0}get floorType(){return this._floorType}get wallType(){return this._wallType}get landscapeType(){return this._landscapeType}get landscapeAnimation(){return this._landscapeAnimation}}class hte{flush(){return this._name=null,this._roomId=0,!0}parse(e){return e?(this._name=e.readString(),this._roomId=e.readInt(),!0):!1}get name(){return this._name}get roomId(){return this._roomId}}class cte{flush(){return this._hideWalls=!1,this._thicknessWall=0,this._thicknessFloor=0,!0}parse(e){if(!e)return!1;this._hideWalls=e.readBoolean();let t=e.readInt(),i=e.readInt();return t=t<-2?-2:t>1?1:t,i=i<-2?-2:i>1?1:i,this._thicknessWall=Math.pow(2,t),this._thicknessFloor=Math.pow(2,i),!0}get hideWalls(){return this._hideWalls}get thicknessWall(){return this._thicknessWall}get thicknessFloor(){return this._thicknessFloor}}class YP{constructor(e){if(!e)throw new Error("invalid_wrapper");this._webId=e.readInt(),this._name=e.readString(),this._level=e.readInt(),this._figure=e.readString(),this._owner=e.readString()}dispose(){this._webId=0,this._name="",this._level=0,this._figure="",this._owner=""}get webId(){return this._webId}get name(){return this._name}get level(){return this._level}get figure(){return this._figure}get owner(){return this._owner}}class XP{constructor(e){this._stuffId=e.readInt(),this._classId=e.readInt(),this._productCode=e.readString(),this._userId=e.readInt(),this._userName=e.readString(),this._rarityLevel=e.readInt(),this._hasMutation=e.readBoolean()}get stuffId(){return this._stuffId}get classId(){return this._classId}get productCode(){return this._productCode}get userId(){return this._userId}get userName(){return this._userName}get rarityLevel(){return this._rarityLevel}get hasMutation(){return this._hasMutation}}class fte{flush(){return this._resultData=null,this._otherResultData=null,!0}parse(e){return e?(this._resultData=new XP(e),this._otherResultData=new XP(e),!0):!1}get resultData(){return this._resultData}get otherResultData(){return this._otherResultData}}class dte{flush(){return this._petId=-1,this._roomIndex=-1,this._gainedExperience=0,!0}parse(e){return e?(this._petId=e.readInt(),this._roomIndex=e.readInt(),this._gainedExperience=e.readInt(),!0):!1}get petId(){return this._petId}get roomIndex(){return this._roomIndex}get gainedExperience(){return this._gainedExperience}}class _te{flush(){return!0}parse(e){return e?(this._roomIndex=e.readInt(),this._petId=e.readInt(),this._figureData=new kw(e),this._hasSaddle=e.readBoolean(),this._isRiding=e.readBoolean(),!0):!1}get roomIndex(){return this._roomIndex}get petId(){return this._petId}get figureData(){return this._figureData}get hasSaddle(){return this._hasSaddle}get isRiding(){return this._isRiding}}class gte{flush(){return this._id=-1,this._skillThresholds=[],!0}parse(e){if(!e)return!1;this._id=e.readInt(),this._name=e.readString(),this._level=e.readInt(),this._maximumLevel=e.readInt(),this._experience=e.readInt(),this._levelExperienceGoal=e.readInt(),this._energy=e.readInt(),this._maximumEnergy=e.readInt(),this._happyness=e.readInt(),this._maximumHappyness=e.readInt(),this._respect=e.readInt(),this._ownerId=e.readInt(),this._age=e.readInt(),this._ownerName=e.readString(),this._rarityLevel=e.readInt(),this._saddle=e.readBoolean(),this._rider=e.readBoolean();let t=e.readInt();for(;t>0;)this._skillThresholds.push(e.readInt()),t--;return this._skillThresholds.sort(),this._publiclyRideable=e.readInt(),this._breedable=e.readBoolean(),this._fullyGrown=e.readBoolean(),this._dead=e.readBoolean(),this._unknownRarity=e.readInt(),this._maximumTimeToLive=e.readInt(),this._remainingTimeToLive=e.readInt(),this._remainingGrowTime=e.readInt(),this._publiclyBreedable=e.readBoolean(),!0}get id(){return this._id}get name(){return this._name}get level(){return this._level}get maximumLevel(){return this._maximumLevel}get experience(){return this._experience}get energy(){return this._energy}get happyness(){return this._happyness}get levelExperienceGoal(){return this._levelExperienceGoal}get maximumEnergy(){return this._maximumEnergy}get maximumHappyness(){return this._maximumHappyness}get respect(){return this._respect}get ownerId(){return this._ownerId}get ownerName(){return this._ownerName}get age(){return this._age}get rarityLevel(){return this._rarityLevel}get saddle(){return this._saddle}get rider(){return this._rider}get breedable(){return this._breedable}get fullyGrown(){return this._fullyGrown}get dead(){return this._dead}get maximumTimeToLive(){return this._maximumTimeToLive}get remainingTimeToLive(){return this._remainingTimeToLive}get remainingGrowTime(){return this._remainingGrowTime}get skillTresholds(){return this._skillThresholds}get publiclyRideable(){return this._publiclyRideable}get unknownRarity(){return this._unknownRarity}get publiclyBreedable(){return this._publiclyBreedable}}class pte{flush(){return this._roomIndex=-1,this._petId=-1,this._canBreed=!1,this._canHarvest=!1,this._canRevive=!1,this._hasBreedingPermission=!1,!0}parse(e){return e?(this._roomIndex=e.readInt(),this._petId=e.readInt(),this._canBreed=e.readBoolean(),this._canHarvest=e.readBoolean(),this._canRevive=e.readBoolean(),this._hasBreedingPermission=e.readBoolean(),!0):!1}get roomIndex(){return this._roomIndex}get petId(){return this._petId}get canBreed(){return this._canBreed}get canHarvest(){return this._canHarvest}get canRevive(){return this._canRevive}get hasBreedingPermission(){return this._hasBreedingPermission}}class mte{constructor(e){if(!e)throw new Error("invalid_wrapper");this._chance=e.readInt(),this._breeds=[];let t=e.readInt();for(;t>0;)this._breeds.push(e.readInt()),t--}dispose(){this._chance=-1,this._breeds=[]}get chance(){return this._chance}get breeds(){return this._breeds}}class vte{flush(){return this._isPlaying=!1,!0}parse(e){return e?(this._isPlaying=e.readBoolean(),!0):!1}get isPlaying(){return this._isPlaying}}class Ete{flush(){return!0}parse(e){return!0}}class yte{flush(){return this._seconds=0,!0}parse(e){return e?(this._seconds=e.readInt(),!0):!1}get seconds(){return this._seconds}}class Tte{flush(){return this._seconds=0,!0}parse(e){return e?(this._seconds=e.readInt(),!0):!1}get seconds(){return this._seconds}}class Pw{flush(){return this._roomIndex=null,this._message=null,this._gesture=0,this._bubble=0,this._urls=[],this._chatColours=null,this._messageLength=0,!0}parse(e){return e?(this._roomIndex=e.readInt(),this._message=e.readString(),this._gesture=e.readInt(),this._bubble=e.readInt(),this.parseUrls(e),this._chatColours=e.readString(),this._messageLength=e.readInt(),!0):!1}parseUrls(e){if(!e)return!1;this._urls=[];let t=e.readInt();for(;t>0;)this._urls.push(e.readString()),t--;return!0}get roomIndex(){return this._roomIndex}get message(){return this._message}get gesture(){return this._gesture}get bubble(){return this._bubble}get urls(){return this._urls}get chatColours(){return this._chatColours}get messageLength(){return this._messageLength}}class Ite{flush(){return this._unitId=null,this._isTyping=!1,!0}parse(e){return e?(this._unitId=e.readInt(),this._isTyping=e.readInt()===1,!0):!1}get unitId(){return this._unitId}get isTyping(){return this._isTyping}}class Rte{flush(){return this._unitId=null,this._danceId=0,!0}parse(e){return e?(this._unitId=e.readInt(),this._danceId=e.readInt(),!0):!1}get unitId(){return this._unitId}get danceId(){return this._danceId}}class Ste{flush(){return this._unitId=null,this._effectId=0,this._delay=0,!0}parse(e){return e?(this._unitId=e.readInt(),this._effectId=e.readInt(),this._delay=e.readInt(),!0):!1}get unitId(){return this._unitId}get effectId(){return this._effectId}get delay(){return this._delay}}class bte{flush(){return this._unitId=null,this._expression=0,!0}parse(e){return e?(this._unitId=e.readInt(),this._expression=e.readInt(),!0):!1}get unitId(){return this._unitId}get expression(){return this._expression}}class Ate{flush(){return this._unitId=null,this._handId=0,!0}parse(e){return e?(this._unitId=e.readInt(),this._handId=e.readInt(),!0):!1}get unitId(){return this._unitId}get handId(){return this._handId}}class Ote{flush(){return this._giverUserId=-1,this._handItemType=-1,!0}parse(e){return e?(this._giverUserId=e.readInt(),this._handItemType=e.readInt(),!0):!1}get giverUserId(){return this._giverUserId}get handItemType(){return this._handItemType}}class wte{flush(){return this._unitId=null,this._isIdle=!1,!0}parse(e){return e?(this._unitId=e.readInt(),this._isIdle=e.readBoolean(),!0):!1}get unitId(){return this._unitId}get isIdle(){return this._isIdle}}class Cte{flush(){return this._unitId=null,this._figure=null,this._gender="M",this._motto=null,this._achievementScore=0,this._backgroundId=0,this._standId=0,this._overlayId=0,!0}parse(e){return e?(this._unitId=e.readInt(),this._figure=e.readString(),this._gender=e.readString().toLocaleUpperCase(),this._motto=e.readString(),this._achievementScore=e.readInt(),this._backgroundId=e.readInt(),this._standId=e.readInt(),this._overlayId=e.readInt(),!0):!1}get unitId(){return this._unitId}get figure(){return this._figure}get gender(){return this._gender}get motto(){return this._motto}get achievementScore(){return this._achievementScore}get backgroundId(){return this._backgroundId}get standId(){return this._standId}get overlayId(){return this._overlayId}}class Mte{flush(){return this._unitId=null,this._value=0,!0}parse(e){return e?(this._unitId=e.readInt(),this._value=e.readInt(),!0):!1}get unitId(){return this._unitId}get value(){return this._value}}const pE=class pE{constructor(e){this._roomIndex=0,this._x=0,this._y=0,this._z=0,this._dir=0,this._name="",this._userType=0,this._sex="",this._figure="",this._custom="",this._activityPoints=0,this._background=0,this._stand=0,this._overlay=0,this._webID=0,this._groupID=0,this._groupStatus=0,this._groupName="",this._subType="",this._ownerId=0,this._ownerName="",this._rarityLevel=0,this._hasSaddle=!1,this._isRiding=!1,this._canBreed=!1,this._canHarvest=!1,this._canRevive=!1,this._hasBreedingPermission=!1,this._petLevel=0,this._petPosture="",this._botSkills=[],this._isModerator=!1,this._isReadOnly=!1,this._roomIndex=e}setReadOnly(){this._isReadOnly=!0}get roomIndex(){return this._roomIndex}get x(){return this._x}set x(e){this._isReadOnly||(this._x=e)}get y(){return this._y}set y(e){this._isReadOnly||(this._y=e)}get z(){return this._z}set z(e){this._isReadOnly||(this._z=e)}get dir(){return this._dir}set dir(e){this._isReadOnly||(this._dir=e)}get name(){return this._name}set name(e){this._isReadOnly||(this._name=e)}get userType(){return this._userType}set userType(e){this._isReadOnly||(this._userType=e)}get sex(){return this._sex}set sex(e){this._isReadOnly||(this._sex=e)}get figure(){return this._figure}set figure(e){this._isReadOnly||(this._figure=e)}get custom(){return this._custom}set custom(e){this._isReadOnly||(this._custom=e)}get activityPoints(){return this._activityPoints}set activityPoints(e){this._isReadOnly||(this._activityPoints=e)}get background(){return this._background}set background(e){this._background=e}get stand(){return this._stand}set stand(e){this._stand=e}get overlay(){return this._overlay}set overlay(e){this._overlay=e}get webID(){return this._webID}set webID(e){this._isReadOnly||(this._webID=e)}get groupID(){return this._groupID}set groupID(e){this._isReadOnly||(this._groupID=e)}get groupName(){return this._groupName}set groupName(e){this._isReadOnly||(this._groupName=e)}get groupStatus(){return this._groupStatus}set groupStatus(e){this._isReadOnly||(this._groupStatus=e)}get subType(){return this._subType}set subType(e){this._isReadOnly||(this._subType=e)}get ownerId(){return this._ownerId}set ownerId(e){this._isReadOnly||(this._ownerId=e)}get ownerName(){return this._ownerName}set ownerName(e){this._isReadOnly||(this._ownerName=e)}get rarityLevel(){return this._rarityLevel}set rarityLevel(e){this._isReadOnly||(this._rarityLevel=e)}get hasSaddle(){return this._hasSaddle}set hasSaddle(e){this._isReadOnly||(this._hasSaddle=e)}get isRiding(){return this._isRiding}set isRiding(e){this._isReadOnly||(this._isRiding=e)}get canBreed(){return this._canBreed}set canBreed(e){this._isReadOnly||(this._canBreed=e)}get canHarvest(){return this._canHarvest}set canHarvest(e){this._isReadOnly||(this._canHarvest=e)}get canRevive(){return this._canRevive}set canRevive(e){this._isReadOnly||(this._canRevive=e)}get hasBreedingPermission(){return this._hasBreedingPermission}set hasBreedingPermission(e){this._isReadOnly||(this._hasBreedingPermission=e)}get petLevel(){return this._petLevel}set petLevel(e){this._isReadOnly||(this._petLevel=e)}get petPosture(){return this._petPosture}set petPosture(e){this._isReadOnly||(this._petPosture=e)}get botSkills(){return this._botSkills}set botSkills(e){this._botSkills=e}get isModerator(){return this._isModerator}set isModerator(e){this._isReadOnly||(this._isModerator=e)}};pE.M="M",pE.F="F";let Ph=pE;class Nte{flush(){return this._users=[],!0}parse(e){if(!e)return!1;this._users=[];const t=e.readInt();let i=0;for(;i<t;){const n=e.readInt(),r=e.readString(),a=e.readString(),o=e.readInt(),l=e.readInt(),u=e.readInt();let c=e.readString();const h=e.readInt(),f=e.readInt(),d=e.readInt(),_=parseFloat(e.readString()),g=e.readInt(),p=e.readInt(),m=new Ph(h);if(m.dir=g,m.name=r,m.custom=a,m.background=o,m.stand=l,m.overlay=u,m.x=f,m.y=d,m.z=_,this._users.push(m),p===1){m.webID=n,m.userType=Ra.USER,m.sex=this.resolveSex(e.readString()),m.groupID=e.readInt(),m.groupStatus=e.readInt(),m.groupName=e.readString();const v=e.readString();v!==""&&(c=this.convertSwimFigure(v,c,m.sex)),m.figure=c,m.activityPoints=e.readInt(),m.isModerator=e.readBoolean()}else if(p===2)m.userType=Ra.PET,m.figure=c,m.webID=n,m.subType=e.readInt().toString(),m.ownerId=e.readInt(),m.ownerName=e.readString(),m.rarityLevel=e.readInt(),m.hasSaddle=e.readBoolean(),m.isRiding=e.readBoolean(),m.canBreed=e.readBoolean(),m.canHarvest=e.readBoolean(),m.canRevive=e.readBoolean(),m.hasBreedingPermission=e.readBoolean(),m.petLevel=e.readInt(),m.petPosture=e.readString();else if(p===3)m.userType=Ra.BOT,m.webID=h*-1,c.indexOf("/")===-1?m.figure=c:m.figure="hr-100-.hd-180-1.ch-876-66.lg-270-94.sh-300-64",m.sex=Ph.M;else if(p===4){m.userType=Ra.RENTABLE_BOT,m.webID=n,m.sex=this.resolveSex(e.readString()),m.figure=c,m.ownerId=e.readInt(),m.ownerName=e.readString();const v=e.readInt();if(v){const E=[];let y=0;for(;y<v;)E.push(e.readShort()),y++;m.botSkills=E}}i++}return!0}resolveSex(e){return e.substr(0,1).toLowerCase()==="f"?Ph.F:Ph.M}convertSwimFigure(e,t,i){const n=t.split(".");let r=1,a=1,o=1;const l=1e4;let u=0;for(;u<n.length;){const d=n[u].split("-");d.length>2&&d[0]==="hd"&&(r=parseInt(d[2])),u++}const c=["238,238,238","250,56,49","253,146,160","42,199,210","53,51,44","239,255,146","198,255,152","255,146,90","157,89,126","182,243,255","109,255,51","51,120,201","255,182,49","223,161,233","249,251,50","202,175,143","197,198,197","71,98,61","138,131,97","255,140,51","84,198,39","30,108,153","152,79,136","119,200,255","255,192,142","60,75,135","124,44,71","215,255,227","143,63,28","255,99,147","31,155,121","253,255,51"],h=e.split("=");if(h.length>1){const f=h[1].split("/");f[0];const d=f[1];i==="F"?o=10010:o=10011;const _=c.indexOf(d);a=l+_+1}return t+(".bds-10001-"+r+".ss-"+o+"-"+a)}get users(){return this._users}}class Pte{flush(){return this._unitId=null,!0}parse(e){return e?(this._unitId=parseInt(e.readString()),!0):!1}get unitId(){return this._unitId}}class kte{constructor(e,t){this._action=e,this._value=t}get action(){return this._action}get value(){return this._value}}class xte{constructor(e,t,i,n,r,a,o,l=0,u=0,c=0,h,f,d){this._id=e,this._x=t,this._y=i,this._z=n,this._height=r,this._headDirection=a,this._direction=o,this._targetX=l,this._targetY=u,this._targetZ=c,this._didMove=h,this._canStandUp=f,this._actions=d||[]}get id(){return this._id}get x(){return this._x}get y(){return this._y}get z(){return this._z}get height(){return this._height}get headDirection(){return this._headDirection}get direction(){return this._direction}get targetX(){return this._targetX}get targetY(){return this._targetY}get targetZ(){return this._targetZ}get didMove(){return this._didMove}get canStandUp(){return this._canStandUp}get actions(){return this._actions}}class Dte{flush(){return this._statuses=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;){const i=this.parseStatus(e);if(!i){t--;continue}this._statuses.push(i),t--}return!0}parseStatus(e){if(!e)return null;const t=e.readInt(),i=e.readInt(),n=e.readInt(),r=parseFloat(e.readString()),a=e.readInt()%8*45,o=e.readInt()%8*45,l=e.readString();let u=0,c=0,h=0,f=0,d=!1,_=!1;if(l){const g=l.split("/"),p=[];for(const m of g){const v=m.split(" ");if(v[0]!==""&&v.length>=2){switch(v[0]){case"mv":{const E=v[1].split(",");E.length>=3&&(u=parseInt(E[0]),c=parseInt(E[1]),h=parseFloat(E[2]),_=!0);break}case"sit":{const E=parseFloat(v[1]);v.length>=3&&(d=v[2]==="1"),f=E;break}case"lay":{const E=parseFloat(v[1]);f=Math.abs(E);break}}p.push(new kte(v[0],v[1]))}}this._statuses.push(new xte(t,i,n,r,f,a,o,u,c,h,_,d,p))}}get statuses(){return this._statuses}}const lc=class lc{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._rentable=!1,this._itemId=0,this._furniType=null,this._ref=0,this._spriteId=0,this._category=0,this._stuffData=null,this._isGroupable=!1,this._isRecyclable=!1,this._tradable=!1,this._sellable=!1,this._secondsToExpiration=0,this._extra=0,this._flatId=0,this._isWallItem=!1,this._hasRentPeriodStarted=!1,this._expirationTimeStamp=0,this._slotId="",this._songId=-1,!0}parse(e){return e?(this._itemId=e.readInt(),this._furniType=e.readString(),this._ref=e.readInt(),this._spriteId=e.readInt(),this._category=e.readInt(),this._stuffData=cl.parseObjectData(e),this._isRecyclable=e.readBoolean(),this._tradable=e.readBoolean(),this._isGroupable=e.readBoolean(),this._sellable=e.readBoolean(),this._secondsToExpiration=e.readInt(),this._expirationTimeStamp=Pe(),this.secondsToExpiration>-1?this._rentable=!0:(this._rentable=!1,this._secondsToExpiration=-1),this._hasRentPeriodStarted=e.readBoolean(),this._flatId=e.readInt(),this._isWallItem=this._furniType===lc.WALL_ITEM,this._furniType===lc.FLOOR_ITEM&&(this._slotId=e.readString(),this._extra=e.readInt()),!0):!1}get itemId(){return this._itemId}get furniType(){return this._furniType}get ref(){return this._ref}get spriteId(){return this._spriteId}get category(){return this._category}get stuffData(){return this._stuffData}get isGroupable(){return this._isGroupable}get isRecycleable(){return this._isRecyclable}get tradable(){return this._tradable}get sellable(){return this._sellable}get secondsToExpiration(){return this._secondsToExpiration}get flatId(){return this._flatId}get slotId(){return this._slotId}get songId(){return this._songId}get extra(){return this._extra}get rentable(){return this._rentable}get isWallItem(){return this._isWallItem}get hasRentPeriodStarted(){return this._hasRentPeriodStarted}get expirationTimeStamp(){return this._expirationTimeStamp}get creationDay(){return 0}get creationMonth(){return 0}get creationYear(){return 0}get isExternalImageFurni(){return this._furniType.indexOf("external_image")!==-1}};lc.WALL_ITEM="I",lc.FLOOR_ITEM="S";let mv=lc;class Lte{flush(){return this._items=[],!0}parse(e){return e?(this._items.push(new mv(e)),!0):!1}get items(){return this._items}}class Ute{flush(){return!0}parse(e){return!!e}}class Fte{flush(){return this._totalFragments=0,this._fragmentNumber=0,this._fragment=new Map,!0}parse(e){if(!e)return!1;this._totalFragments=e.readInt(),this._fragmentNumber=e.readInt();let t=e.readInt();for(;t>0;){const i=new mv(e);i&&this._fragment.set(i.itemId,i),t--}return!0}get totalFragments(){return this._totalFragments}get fragmentNumber(){return this._fragmentNumber}get fragment(){return this._fragment}}class Bte{flush(){return this._itemId=0,!0}parse(e){return e?(this._itemId=e.readInt(),!0):!1}get itemId(){return this._itemId}}class Gte{flush(){return this._itemId=0,this._itemsLeft=0,!0}parse(e){return e?(this._itemId=e.readInt(),this._itemsLeft=e.readInt(),!0):!1}get itemId(){return this._itemId}get itemsLeft(){return this._itemsLeft}}class Vte{flush(){return this._itemType="",this._classId=0,this._productCode="",!0}parse(e){return e?(this._itemType=e.readString(),this._classId=e.readInt(),this._productCode=e.readString(),this._placedItemId=e.readInt(),this._placedItemType=e.readString(),this._placedInRoom=e.readBoolean(),this._petFigureString=e.readString(),!0):!1}get itemType(){return this._itemType}get classId(){return this._classId}get productCode(){return this._productCode}get placedItemId(){return this._placedItemId}get placedItemType(){return this._placedItemType}get placedInRoom(){return this._placedInRoom}get petFigureString(){return this._petFigureString}}class jte{flush(){this._nestId=0,this._pet1&&(this._pet1.dispose(),this._pet1=null),this._pet2&&(this._pet2.dispose(),this._pet2=null);for(const e of this._rarityCategories)e&&e.dispose();return this._rarityCategories=[],!0}parse(e){if(!e)return!1;this._nestId=e.readInt(),this._pet1=new YP(e),this._pet2=new YP(e);let t=e.readInt();for(;t>0;)this._rarityCategories.push(new mte(e)),t--;return this._resultPetType=e.readInt(),!0}get nestId(){return this._nestId}get pet1(){return this._pet1}get pet2(){return this._pet2}get rarityCategories(){return this._rarityCategories}get resultPetType(){return this._resultPetType}}class zte{flush(){return this._breedingNestStuffId=0,this._result=0,!0}parse(e){return e?(this._breedingNestStuffId=e.readInt(),this._result=e.readInt(),!0):!1}get breedingNestStuffId(){return this._breedingNestStuffId}get result(){return this._result}}class Hte{flush(){return this._petId=-1,this._rarityCategory=-1,!0}parse(e){return this._petId=e.readInt(),this._rarityCategory=e.readInt(),!0}get rarityCategory(){return this._rarityCategory}get petId(){return this._petId}}class kw{constructor(e){this._typeId=e.readInt(),this._paletteId=e.readInt(),this._color=e.readString(),this._breedId=e.readInt(),this._customParts=[],this._customPartCount=e.readInt();let t=0;for(;t<this._customPartCount;)this._customParts.push(e.readInt()),this._customParts.push(e.readInt()),this._customParts.push(e.readInt()),t++}get typeId(){return this._typeId}get paletteId(){return this._paletteId}get color(){return this._color}get breedId(){return this._breedId}get figuredata(){let e=this.typeId+" "+this.paletteId+" "+this.color;e=e+(" "+this.custompartCount);for(const t of this.customParts)e=e+(" "+t);return e}get customParts(){return this._customParts}get custompartCount(){return this._customPartCount}}class S0{constructor(e){if(!e)throw new Error("invalid_wrapper");this._id=e.readInt(),this._name=e.readString(),this._figureData=new kw(e),this._level=e.readInt()}get id(){return this._id}get name(){return this._name}get typeId(){return this._figureData.typeId}get paletteId(){return this._figureData.paletteId}get color(){return this._figureData.color}get breedId(){return this._figureData.breedId}get customPartCount(){return this._figureData.custompartCount}get figureString(){return this._figureData.figuredata}get figureData(){return this._figureData}get level(){return this._level}}class Wte{flush(){return this._pet=null,this._boughtAsGift=!1,!0}parse(e){return this._pet=new S0(e),this._boughtAsGift=e.readBoolean(),!0}get pet(){return this._pet}get boughtAsGift(){return this._boughtAsGift}}const Yd=class Yd{flush(){return this._state=0,this._ownPetId=0,this._otherPetId=0,!0}parse(e){return e?(this._state=e.readInt(),this._ownPetId=e.readInt(),this._otherPetId=e.readInt(),!0):!1}get state(){return this._state}get ownPetId(){return this._ownPetId}get otherPetId(){return this._otherPetId}};Yd.STATE_CANCEL=1,Yd.STATE_ACCEPT=2,Yd.STATE_REQUEST=3;let lS=Yd;class Yte{flush(){return this._fragment=null,!0}parse(e){this._totalFragments=e.readInt(),this._fragmentNumber=e.readInt();let t=e.readInt();for(this._fragment=new Map;t>0;){const i=new S0(e);this._fragment.set(i.id,i),t--}return!0}get totalFragments(){return this._totalFragments}get fragmentNumber(){return this._fragmentNumber}get fragment(){return this._fragment}}class Xte{flush(){return this._boughtAsGift=!1,this._pet=null,!0}parse(e){return this._boughtAsGift=e.readBoolean(),this._pet=new S0(e),!0}get boughtAsGift(){return this._boughtAsGift}get pet(){return this._pet}}class Kte{flush(){return!0}parse(e){return e?(this._petId=e.readInt(),!0):!1}get petId(){return this._petId}}class qte{constructor(e){this._itemId=e.readInt(),this._furniType=e.readString().toUpperCase(),this._ref=e.readInt(),this._spriteId=e.readInt(),this._category=e.readInt(),this._isGroupable=e.readBoolean(),this._stuffData=cl.parseObjectData(e),this._secondsToExpiration=-1,this._expirationTimeStamp=Pe(),this._hasRentPeriodStarted=!1,this._creationDay=e.readInt(),this._creationMonth=e.readInt(),this._creationYear=e.readInt(),this._extra=this.furniType==="S"?e.readInt():-1,this._flatId=-1,this._rentable=!1,this._isWallItem=this._furniType==="I"}get itemId(){return this._itemId}get furniType(){return this._furniType}get ref(){return this._ref}get spriteId(){return this._spriteId}get category(){return this._category}get stuffData(){return this._stuffData}get extra(){return this._extra}get secondsToExpiration(){return this._secondsToExpiration}get creationDay(){return this._creationDay}get creationMonth(){return this._creationMonth}get creationYear(){return this._creationYear}get isGroupable(){return this._isGroupable}get songId(){return this._extra}get flatId(){return this._flatId}get rentable(){return this._rentable}get isWallItem(){return this._isWallItem}get hasRentPeriodStarted(){return this._hasRentPeriodStarted}get expirationTimeStamp(){return this._expirationTimeStamp}get isRecycleable(){return!0}get tradable(){return!0}get sellable(){return!0}get slotId(){return null}get isExternalImageFurni(){return this._furniType.indexOf("external_image")!==-1}}class $te{flush(){return this._userID=-1,this._userAccepts=!1,!0}parse(e){return e?(this._userID=e.readInt(),this._userAccepts=e.readInt()>0,!0):!1}get userID(){return this._userID}get userAccepts(){return this._userAccepts}}const oC=class oC{flush(){return!0}parse(e){return e?(this._userId=e.readInt(),this._reason=e.readInt(),!0):!1}get userID(){return this._userId}get reason(){return this._reason}};oC.ERROR_WHILE_COMMIT=1;let uS=oC;class Qte{flush(){return!0}parse(e){return!!e}}class Zte{flush(){return!0}parse(e){return!!e}}class Jte{flush(){return this._firstUserID=-1,this._firstUserItemArray=null,this._firstUserNumItems=0,this._firstUserNumCredits=0,this._secondUserID=-1,this._secondUserItemArray=null,this._secondUserNumItems=0,this._secondUserNumCredits=0,!0}parse(e){return!e||(this._firstUserID=e.readInt(),this._firstUserItemArray=[],!this.parseItems(e,this._firstUserItemArray))||(this._firstUserNumItems=e.readInt(),this._firstUserNumCredits=e.readInt(),this._secondUserID=e.readInt(),this._secondUserItemArray=[],!this.parseItems(e,this._secondUserItemArray))?!1:(this._secondUserNumItems=e.readInt(),this._secondUserNumCredits=e.readInt(),!0)}parseItems(e,t){let i=e.readInt();for(;i>0;)t.push(new qte(e)),i--;return!0}get firstUserID(){return this._firstUserID}get firstUserItemArray(){return this._firstUserItemArray}get firstUserNumItems(){return this._firstUserNumItems}get firstUserNumCredits(){return this._firstUserNumCredits}get secondUserID(){return this._secondUserID}get secondUserItemArray(){return this._secondUserItemArray}get secondUserNumItems(){return this._secondUserNumItems}get secondUserNumCredits(){return this._secondUserNumCredits}}class eie{flush(){return!0}parse(e){return!!e}}class tie{flush(){return!0}parse(e){return!!e}}const mE=class mE{flush(){return!0}parse(e){return e?(this._reason=e.readInt(),this._otherUserName=e.readString(),!0):!1}get reason(){return this._reason}get otherUserName(){return this._otherUserName}};mE.REASON_YOU_ARE_ALREADY_TRADING=7,mE.REASON_OTHER_USER_ALREADY_TRADING=8;let hS=mE;class iie{flush(){return this._userId=-1,this._userCanTrade=!1,this._otherUserId=-1,this._otherUserCanTrade=!1,!0}parse(e){return e?(this._userId=e.readInt(),this._userCanTrade=e.readInt()===1,this._otherUserId=e.readInt(),this._otherUserCanTrade=e.readInt()===1,!0):!1}get userID(){return this._userId}get userCanTrade(){return this._userCanTrade}get otherUserID(){return this._otherUserId}get otherUserCanTrade(){return this._otherUserCanTrade}}class sie{flush(){return!0}parse(e){return!!e}}class nie{flush(){return!0}parse(e){return!!e}}class rie{flush(){return this._respect=0,this._petOwnerId=0,this._petData=null,!0}parse(e){return e?(this._respect=e.readInt(),this._petOwnerId=e.readInt(),this._petData=new S0(e),!0):!1}get respect(){return this._respect}get petOwnerId(){return this._petOwnerId}get petData(){return this._petData}get isTreat(){return this._petData.typeId===U_.MONSTERPLANT}}class aie{flush(){return this._petId=0,this._userId=0,this._supplementType=0,!0}parse(e){return e?(this._petId=e.readInt(),this._userId=e.readInt(),this._supplementType=e.readInt(),!0):!1}get petId(){return this._petId}get userId(){return this._userId}get supplementType(){return this._supplementType}}const Ql=class Ql{};Ql.WATER=0,Ql.LIGHT=1,Ql.REVIVE=2,Ql.REBREED_FERTILIZER=3,Ql.SPEED_FERTILIZER=4;let cd=Ql;class oie{flush(){return this._userId=0,this._respectsReceived=0,!0}parse(e){return e?(this._userId=e.readInt(),this._respectsReceived=e.readInt(),!0):!1}get userId(){return this._userId}get respectsReceived(){return this._respectsReceived}}class lie{constructor(e,t,i){this._hasControllers=!1,this._roomId=e,this._roomName=t,this._hasControllers=i}get roomId(){return this._roomId}get roomName(){return this._roomName}get hasControllers(){return this._hasControllers}}class uie{constructor(e){this._currentHcStreak=e.readInt(),this._firstSubscriptionDate=e.readString(),this._kickbackPercentage=e.readDouble(),this._totalCreditsMissed=e.readInt(),this._totalCreditsRewarded=e.readInt(),this._totalCreditsSpent=e.readInt(),this._creditRewardForStreakBonus=e.readInt(),this._creditRewardForMonthlySpent=e.readInt(),this._timeUntilPayday=e.readInt()}get currentHcStreak(){return this._currentHcStreak}get firstSubscriptionDate(){return this._firstSubscriptionDate}get kickbackPercentage(){return this._kickbackPercentage}get totalCreditsMissed(){return this._totalCreditsMissed}get totalCreditsRewarded(){return this._totalCreditsRewarded}get totalCreditsSpent(){return this._totalCreditsSpent}get creditRewardForStreakBonus(){return this._creditRewardForStreakBonus}get creditRewardForMonthlySpent(){return this._creditRewardForMonthlySpent}get timeUntilPayday(){return this._timeUntilPayday}}class hie{flush(){return this._data=null,!0}parse(e){return this._data=new uie(e),!0}get data(){return this._data}}class cie{flush(){return this._looks=new Map,!0}parse(e){if(!e)return!1;e.readInt();let t=e.readInt();for(;t>0;){const i=e.readInt(),n=e.readString(),r=e.readString();this._looks.set(i,[n,r]),t--}return!0}get looks(){return this._looks}}class fie{flush(){return this._result=-1,!0}parse(e){return e?(this._result=e.readInt(),!0):!1}get result(){return this._result}}class die{flush(){return this._isVip=!1,this._rooms=[],!0}parse(e){if(!e)return!1;this._isVip=e.readBoolean();let t=e.readInt();for(;t>0;)this._rooms.push(new lie(e.readInt(),e.readString(),e.readBoolean())),t--;return!0}get isVip(){return this._isVip}get rooms(){return this._rooms}}class _ie{flush(){return this._pageId=-1,this._data=null,!0}parse(e){return e?(this._pageId=e.readInt(),this._data=new R0(e),!0):!1}get pageId(){return this._pageId}get data(){return this._data}}class gie{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._type=-1,this._breedId=-1,this._paletteId=-1,this._sellable=!1,this._rare=!1,!0}parse(e){return e?(this._type=e.readInt(),this._breedId=e.readInt(),this._paletteId=e.readInt(),this._sellable=e.readBoolean(),this._rare=e.readBoolean(),!0):!1}get type(){return this._type}get breedId(){return this._breedId}get paletteId(){return this._paletteId}get sellable(){return this._sellable}get rare(){return this._rare}}class pie{flush(){return this._productCode="",this._palettes=[],!0}parse(e){if(!e)return!1;this._productCode=e.readString();let t=e.readInt();for(;t>0;)this._palettes.push(new gie(e)),t--;return!0}get productCode(){return this._productCode}get palettes(){return this._palettes}}class mie{constructor(e){this._trackingState=e.readInt(),this._id=e.readInt(),this._identifier=e.readString(),this._productCode=e.readString(),this._priceInCredits=e.readInt(),this._priceInActivityPoints=e.readInt(),this._activityPointType=e.readInt(),this._purchaseLimit=e.readInt();const t=e.readInt();this._expirationTime=t>0?t*1e3+Date.now():0,this._title=e.readString(),this._description=e.readString(),this._imageUrl=e.readString(),this._iconImageUrl=e.readString(),this._type=e.readInt(),this._subProductCodes=[];let i=e.readInt();for(;i>0;)this._subProductCodes.push(e.readString()),i--;return this}populate(e){e&&(this._id=e.id,this._identifier=e.identifier,this._type=e.type,this._title=e.title,this._description=e.description,this._imageUrl=e.imageUrl,this._iconImageUrl=e.iconImageUrl,this._productCode=e.productCode,this._purchaseLimit=e.purchaseLimit,this._expirationTime=e.expirationTime,this._priceInCredits=e.priceInCredits,this._priceInActivityPoints=e.priceInActivityPoints,this._activityPointType=e.activityPointType,this._subProductCodes=e.subProductCodes,this._trackingState=e.trackingState)}purchase(e){this._purchaseLimit=this._purchaseLimit-e}get id(){return this._id}get identifier(){return this._identifier}get type(){return this._type}get title(){return this._title}get description(){return this._description}get imageUrl(){return this._imageUrl}get iconImageUrl(){return this._iconImageUrl}get productCode(){return this._productCode}get purchaseLimit(){return this._purchaseLimit}get expirationTime(){return this._expirationTime}get priceInCredits(){return this._priceInCredits}get priceInActivityPoints(){return this._priceInActivityPoints}get activityPointType(){return this._activityPointType}get subProductCodes(){return this._subProductCodes}get trackingState(){return this._trackingState}}class vie{flush(){return!0}parse(e){return!!e}}class Eie{flush(){return this._data=null,!0}parse(e){return e?(this._data=new mie(e),!0):!1}get data(){return this._data}}class yie{constructor(){this._errorCode=""}flush(){return this._errorCode="",!0}parse(e){return e?(this._errorCode=e.readString(),!0):!1}get errorCode(){return this._errorCode}}class Tie{constructor(){this._productName="",this._productDescription=""}flush(){return this._productDescription="",this._productName="",!0}parse(e){return e?(this._productDescription=e.readString(),this._productName=e.readString(),!0):!1}get productName(){return this._productName}get productDescription(){return this._productDescription}}class Iie{flush(){return!0}parse(e){return!!e}}const ra=class ra{flush(){return this._goalId=0,this._goalCode=null,this._result=0,this._requiredFurnis=null,this._missingFurnis=null,!0}parse(e){this._goalId=e.readInt(),this._goalCode=e.readString(),this._result=e.readInt(),this._requiredFurnis=[];let t=e.readInt();for(;t>0;)this._requiredFurnis.push(e.readString()),t--;for(t=e.readInt();t>0;)this._missingFurnis[e.readString()]="",t--;return!0}get goalId(){return this._goalId}get goalCode(){return this._goalCode}get result(){return this._result}get requiredFurnis(){return this._requiredFurnis}isMissing(e){return!!this._missingFurnis[e]}};ra.SUBMITTED=0,ra.ASK_FOR_SUBMIT=1,ra.ASK_FOR_CONFIRM=2,ra.PREREQUISITES_NOT_MET=3,ra.ROOM_DOOR_NOT_OPEN=4,ra.ROOM_TOO_OLD=5,ra.ASK_FOR_ACCEPT_RULES=6;let cS=ra;const Xd=class Xd{};Xd.ALLOWED=0,Xd.REQUIRED_PERK_MISSING=1,Xd.REQUIRED_BADGE_MISSING=2;let fS=Xd;class Rie{flush(){return this._goalId=0,this._goalCode=null,this._resultCode=0,this._votesRemaining=0,!0}parse(e){return this._goalId=e.readInt(),this._goalCode=e.readString(),this._resultCode=e.readInt(),this._votesRemaining=e.readInt(),!0}get goalId(){return this._goalId}get goalCode(){return this._goalCode}get isVotingAllowedForUser(){return this._resultCode===fS.ALLOWED}get votesRemaining(){return this._votesRemaining}get resultCode(){return this._resultCode}}class Sie{flush(){return this._schedulingStr=null,this._code=null,!0}parse(e){return this._schedulingStr=e.readString(),this._code=e.readString(),!0}get schedulingStr(){return this._schedulingStr}get code(){return this._code}}class bie{flush(){return this._isPartOf=!1,this._targetId=0,!0}parse(e){return this._isPartOf=e.readBoolean(),this._targetId=e.readInt(),!0}get isPartOf(){return this._isPartOf}get targetId(){return this._targetId}}class Aie{flush(){return!0}parse(e){return!0}}class Oie{flush(){return this._timeStr=null,this._secondsUntil=0,!0}parse(e){return this._timeStr=e.readString(),this._secondsUntil=e.readInt(),!0}get timeStr(){return this._timeStr}get secondsUntil(){return this._secondsUntil}}class p4{constructor(e){this._recipeName=e.readString(),this._itemName=e.readString()}get recipeName(){return this._recipeName}get itemName(){return this._itemName}}class wie{constructor(){this._recipes=[],this._ingredients=[]}flush(){return this._recipes=[],this._ingredients=[],!0}parse(e){if(!e)return!1;const t=e.readInt();for(let n=0;n<t;n++)this._recipes.push(new p4(e));const i=e.readInt();for(let n=0;n<i;n++)this._ingredients.push(e.readString());return!0}get recipes(){return this._recipes}get ingredients(){return this._ingredients}isActive(){return this._recipes.length>0||this._ingredients.length>0}}class Cie{constructor(e){this._count=e.readInt(),this._itemName=e.readString()}get count(){return this._count}get itemName(){return this._itemName}}class Mie{constructor(){this._ingredients=[]}parse(e){if(!e)return!1;const t=e.readInt();for(let i=0;i<t;i++)this._ingredients.push(new Cie(e));return!0}flush(){return this._ingredients=[],!0}get ingredients(){return this._ingredients}}class Nie{parse(e){return e?(this._count=e.readInt(),this._hasRecipes=e.readBoolean(),!0):!1}flush(){return this._count=0,this._hasRecipes=!1,!0}get count(){return this._count}get hasRecipes(){return this._hasRecipes}}class Pie{parse(e){return e?(this._success=e.readBoolean(),this._success&&(this._result=new p4(e)),!0):!1}flush(){return this._success=!1,!0}get success(){return this._success}get result(){return this._result}}class kie{flush(){return!0}parse(e){return!!e}}class xie{constructor(e){if(!e)throw new Error("invalid_wrapper");this._senderId=e.readInt(),this._errorCode=e.readInt()}get senderId(){return this._senderId}get errorCode(){return this._errorCode}}class Die{flush(){return this._failuers=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._failuers.push(new xie(e)),t--;return!0}get failures(){return this._failuers}}class Lie{flush(){return this._success=!1,!0}parse(e){return e?(this._success=e.readBoolean(),!0):!1}get success(){return this._success}}class Uie{flush(){return this._errorCode=0,!0}parse(e){return e?(this._errorCode=e.readInt(),!0):!1}get errorCode(){return this._errorCode}}class m4{constructor(e){if(!e)throw new Error("invalid_wrapper");this._id=e.readInt(),this._name=e.readString()}get id(){return this._id}get name(){return this._name}}class dS{constructor(e){if(!e)throw new Error("invalid_wrapper");this._id=e.readInt(),this._name=e.readString(),this._gender=e.readInt(),this._online=e.readBoolean(),this._followingAllowed=e.readBoolean(),this._figure=e.readString(),this._categoryId=e.readInt(),this._motto=e.readString(),this._realName=e.readString(),this._lastAccess=e.readString(),this._persistedMessageUser=e.readBoolean(),this._vipMember=e.readBoolean(),this._pocketHabboUser=e.readBoolean(),this._relationshipStatus=e.readShort()}get id(){return this._id}get name(){return this._name}get gender(){return this._gender}get online(){return this._online}get followingAllowed(){return this._followingAllowed}get figure(){return this._figure}get categoryId(){return this._categoryId}get motto(){return this._motto}get lastAccess(){return this._lastAccess}get realName(){return this._realName}get persistedMessageUser(){return this._persistedMessageUser}get vipMember(){return this._vipMember}get pocketHabboUser(){return this._pocketHabboUser}get relationshipStatus(){return this._relationshipStatus}}class Fie{flush(){return this._totalFragments=0,this._fragmentNumber=0,this._fragment=[],!0}parse(e){if(!e)return!1;this._totalFragments=e.readInt(),this._fragmentNumber=e.readInt();let t=e.readInt();for(;t>0;)this._fragment.push(new dS(e)),t--;return!0}get totalFragments(){return this._totalFragments}get fragmentNumber(){return this._fragmentNumber}get fragment(){return this._fragment}}class Bie{flush(){return this._categories=[],this._removedFriendIds=[],this._addedFriends=[],this._updatedFriends=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._categories.push(new m4(e)),t--;let i=e.readInt();for(;i>0;){const n=e.readInt();n===-1?this._removedFriendIds.push(e.readInt()):n===0?this._updatedFriends.push(new dS(e)):n===1&&this._addedFriends.push(new dS(e)),i--}return!0}get categories(){return this._categories}get removedFriendIds(){return this._removedFriendIds}get addedFriends(){return this._addedFriends}get updatedFriends(){return this._updatedFriends}}class Gie{flush(){return this._typeCode=-1,this._avatarId=0,this._message=null,!0}parse(e){return e?(this._typeCode=e.readInt(),this._avatarId=e.readInt(),this._message=e.readString(),!0):!1}get typeCode(){return this._typeCode}get avatarId(){return this._avatarId}get message(){return this._message}}class v4{constructor(e){if(!e)throw new Error("invalid_wrapper");this._requestId=e.readInt(),this._requesterName=e.readString(),this._figureString=e.readString(),this._requesterUserId=this._requestId}get requestId(){return this._requestId}get requesterName(){return this._requesterName}get requesterUserId(){return this._requesterUserId}get figureString(){return this._figureString}}class Vie{flush(){return this._totalRequests=0,this._requests=[],!0}parse(e){if(!e)return!1;this._totalRequests=e.readInt();let t=e.readInt();for(;t>0;)this._requests.push(new v4(e)),t--;return!0}get totalRequests(){return this._totalRequests}get requests(){return this._requests}}class KP{constructor(e){if(!e)throw new Error("invalid_wrapper");this._avatarId=e.readInt(),this._avatarName=e.readString(),this._avatarMotto=e.readString(),this._isAvatarOnline=e.readBoolean(),this._canFollow=e.readBoolean(),this._lastOnlineData=e.readString(),this._avatarGender=e.readInt(),this._avatarFigure=e.readString(),this._realName=e.readString()}get avatarId(){return this._avatarId}get avatarName(){return this._avatarName}get avatarMotto(){return this._avatarMotto}get isAvatarOnline(){return this._isAvatarOnline}get canFollow(){return this._canFollow}get avatarGender(){return this._avatarGender}get avatarFigure(){return this._avatarFigure}get lastOnlineData(){return this._lastOnlineData}get realName(){return this._realName}}class jie{flush(){return this._friends=[],this._others=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._friends.push(new KP(e)),t--;let i=e.readInt();for(;i>0;)this._others.push(new KP(e)),i--;return!0}get friends(){return this._friends}get others(){return this._others}}class zie{flush(){return this._errorCode=0,this._userId=0,this._message=null,!0}parse(e){return e?(this._errorCode=e.readInt(),this._userId=e.readInt(),this._message=e.readString(),!0):!1}get errorCode(){return this._errorCode}get userId(){return this._userId}get message(){return this._message}}class Hie{flush(){return this._clientMessageId=0,this._errorCode=0,!0}parse(e){return e?(this._clientMessageId=e.readInt(),this._errorCode=e.readInt(),!0):!1}get clientMessageId(){return this._clientMessageId}get errorCode(){return this._errorCode}}class Wie{flush(){return this._userFriendLimit=0,this._normalFriendLimit=0,this._extendedFriendLimit=0,this._categories=[],!0}parse(e){if(!e)return!1;this._userFriendLimit=e.readInt(),this._normalFriendLimit=e.readInt(),this._extendedFriendLimit=e.readInt();let t=e.readInt();for(;t>0;)this._categories.push(new m4(e)),t--;return!0}get userFriendLimit(){return this._userFriendLimit}get normalFriendLimit(){return this._normalFriendLimit}get extendedFriendLimit(){return this._extendedFriendLimit}get categories(){return this._categories}}class Yie{flush(){return!0}parse(e){return!!e}}class Xie{flush(){return this._count=0,!0}parse(e){return e?(this._count=e.readInt(),!0):!1}get count(){return this._count}}class Kie{flush(){return this._senderId=0,this._messageText=null,this._secondsSinceSent=0,this._extraData=null,!0}parse(e){return e?(this._senderId=e.readInt(),this._messageText=e.readString(),this._secondsSinceSent=e.readInt(),e.bytesAvailable&&(this._extraData=e.readString()),!0):!1}get senderId(){return this._senderId}get messageText(){return this._messageText}get secondsSinceSent(){return this._secondsSinceSent}get extraData(){return this._extraData}}class qie{flush(){return this._request=null,!0}parse(e){return e?(this._request=new v4(e),!0):!1}get request(){return this._request}}class $ie{flush(){return this._errorCode=0,this._failedRecipients=[],!0}parse(e){if(!e)return!1;this._errorCode=e.readInt();let t=e.readInt();for(;t>0;)this._failedRecipients.push(e.readInt()),t--;return!0}get errorCode(){return this._errorCode}get failedRecipients(){return this._failedRecipients}}class Qie{flush(){return this._senderId=0,this._messageText=null,!0}parse(e){return e?(this._senderId=e.readInt(),this._messageText=e.readString(),!0):!1}get senderId(){return this._senderId}get messageText(){return this._messageText}}class Zie{flush(){return!0}parse(e){return e?(this._gameTypeId=e.readInt(),this._freeGamesLeft=e.readInt(),this._gamesPlayedTotal=e.readInt(),!0):!1}get gameTypeId(){return this._gameTypeId}get freeGamesLeft(){return this._freeGamesLeft}get gamesPlayedTotal(){return this._gamesPlayedTotal}get hasUnlimitedGames(){return this._freeGamesLeft==-1}}const uc=class uc{flush(){return this._status=-1,this._blockLength=-1,this._gamesPlayed=-1,this._freeGamesLeft=-1,!0}parse(e){return e?(this._status=e.readInt(),this._blockLength=e.readInt(),this._gamesPlayed=e.readInt(),this._freeGamesLeft=e.readInt(),!0):!1}get status(){return this._status}get blockLength(){return this._blockLength}get gamesPlayed(){return this._gamesPlayed}get freeGamesLeft(){return this._freeGamesLeft}get hasUnlimitedGames(){return this._freeGamesLeft==-1}};uc.STATUS_OK=0,uc.STATUS_FAILED_REASON_UNKNOWN=1,uc.STATUS_FAILED_REASON_GAME_DIRECTORY_IS_NOT_AVAILABLE=2,uc.STATUS_FAILED_REASON_HOTEL_IS_CLOSED=3;let _S=uc;class Jie{flush(){return this._position=-1,!0}parse(e){return e?(this._position=e.readInt(),!0):!1}get position(){return this._position}}const mr=class mr{flush(){return this._reason=-1,!0}parse(e){return e?(this._reason=e.readInt(),!0):!1}get reason(){return this._reason}};mr.KICKED=1,mr.DUPLICATE_MACHINEID=2,mr.INVITATION_REQUIRED=3,mr.NO_SPACE_IN_TEAM=4,mr.TEAM_NOT_FOUND=5,mr.USER_HAS_ACTIVE_INSTANCE=6,mr.USER_HAS_PENDING_INSTANCE_REQUEST=7,mr.USER_HAS_NO_FREE_GAMES_LEFT=8;let gS=mr;const vE=class vE{flush(){return this._reason=-1,!0}parse(e){return e?(this._reason=e.readInt(),!0):!1}get reason(){return this._reason}};vE.NOT_ENOUGH_PLAYERS=1,vE.GAME_HAS_NO_OWNER=2;let pS=vE;class ese{flush(){return!0}parse(e){return!!e}}class tse{flush(){return this._userId=-1,!0}parse(e){return e?(this._userId=e.readInt(),!0):!1}get userId(){return this._userId}}class ise{flush(){return!0}parse(e){return e?(this._stuffCode=e.readString(),this._badgeCode=e.readString(),!0):!1}get stuffCode(){return this._stuffCode}get badgeCode(){return this._badgeCode}}class sse{flush(){return this._stuffId=-1,this._achievementId=0,this._requiredLevelBadgeCode="",this._userProgress=0,this._totalProgress=0,this._endTime=0,!0}parse(e){return e?(this._stuffId=e.readInt(),this._achievementId=e.readInt(),this._requiredLevelBadgeCode=e.readString(),this._userProgress=e.readInt(),this._totalProgress=e.readInt(),this._endTime=e.readInt(),!0):!1}get stuffId(){return this._stuffId}get achievementId(){return this._achievementId}get requiredLevelBadgeCode(){return this._requiredLevelBadgeCode}get userProgress(){return this._userProgress}get totalProgress(){return this._totalProgress}get endTime(){return this._endTime}}class nse{flush(){return!0}parse(e){if(!e)return!1;this._stuffId=e.readInt();const t=e.readInt();let i=0;for(;i<t;)this._achievements.push(new sS(e)),i++;return this._endTime=e.readInt(),!0}get stuffId(){return this._stuffId}get achievements(){return this._achievements}get endTime(){return this._endTime}}class rse{constructor(e,t,i,n){this._gameTypeId=e,this._achievementId=t,this._achievementName=i,this._levels=n}get gameTypeId(){return this._gameTypeId}get achievementId(){return this._achievementId}get achievementName(){return this._achievementName}get levels(){return this._levels}}class ase{flush(){return!0}parse(e){if(!e)return!1;this._achievements=[];const t=e.readInt();let i=0;for(;i<t;){const n=e.readInt(),r=e.readInt();let a=0;for(;a<r;){const o=e.readInt(),l=e.readString(),u=e.readInt();this._achievements.push(new rse(n,o,l,u)),a++}i++}return!0}get achievements(){return this._achievements}}class ose{constructor(e,t,i,n,r,a){this._gameId=e,this._gameNameId=t,this._bgColor=i,this._textColor=n,this._assetUrl=r,this._supportUrl=a}get gameId(){return this._gameId}get gameNameId(){return this._gameNameId}get bgColor(){return this._bgColor}get textColor(){return this._textColor}get assetUrl(){return this._assetUrl}get supportUrl(){return this._supportUrl}}class lse{flush(){return!0}parse(e){return e?(this._gameTypeId=e.readInt(),this._inviterId=e.readInt(),!0):!1}get gameTypeId(){return this._gameTypeId}get inviterId(){return this._inviterId}}class use{flush(){return!0}parse(e){if(!e)return!1;this._games=[];const t=e.readInt();for(let i=0;i<t;i++){const n=e.readInt(),r=e.readString(),a=e.readString();let o=parseInt(a,16);o=o|4278190080;const l=e.readString();let u=parseInt(l,16);u=u|4278190080;const c=e.readString(),h=e.readString();this._games.push(new ose(n,r,o,u,c,h))}return!0}get games(){return this._games}}const hc=class hc{flush(){return!0}parse(e){return e?(this._gameTypeId=e.readInt(),this._status=e.readInt(),!0):!1}get gameTypeId(){return this._gameTypeId}get isOk(){return this._status==hc.OK}get isInMaintenance(){return this._status==hc.MAINTENANCE}};hc.OK=0,hc.MAINTENANCE=1;let mS=hc;class hse{flush(){return!0}parse(e){return e?(this._gameTypeId=e.readInt(),!0):!1}get gameTypeId(){return this._gameTypeId}}const lC=class lC{flush(){return!0}parse(e){return e?(this._gameTypeId=e.readInt(),this._reason=e.readInt(),!0):!1}get gameTypeId(){return this._gameTypeId}get reason(){return this._reason}};lC.DUPLICATE_MACHINEID=1;let vS=lC;class cse{flush(){return!0}parse(e){return e?(this._gameTypeId=e.readInt(),!0):!1}get gameTypeId(){return this._gameTypeId}}class fse{flush(){return!0}parse(e){if(!e)return!1;this._gameTypeId=e.readInt(),this._gameClientId=e.readString(),this._url=e.readString(),this._quality=e.readString(),this._scaleMode=e.readString(),this._frameRate=e.readInt(),this._minMajorVersion=e.readInt(),this._minMinorVersion=e.readInt(),this._params=new Map;const t=e.readInt();let i=0;for(;i<t;)this._params.set(e.readString(),e.readString()),i++;return!0}get gameTypeId(){return this._gameTypeId}get url(){return this._url}get quality(){return this._quality}get scaleMode(){return this._scaleMode}get frameRate(){return this._frameRate}get minMajorVersion(){return this._minMajorVersion}get minMinorVersion(){return this._minMinorVersion}get params(){return this._params}get gameClientId(){return this._gameClientId}}class dse{flush(){return this._gameTypeId=0,this._url=null,this._gameClientId=null,!0}parse(e){return e?(this._gameTypeId=e.readInt(),this._gameClientId=e.readString(),this._url=e.readString(),!0):!1}get gameTypeId(){return this._gameTypeId}get url(){return this._url}get gameClientId(){return this._gameClientId}}class _se{flush(){return!0}parse(e){return e?(this._gameTypeId=e.readInt(),this._gameClientId=e.readString(),!0):!1}get gameTypeId(){return this._gameTypeId}get gameClientId(){return this._gameClientId}}class gse{flush(){return!0}parse(e){return!!e}}class b0{flush(){return this._year=-1,this._week=-1,this._maxOffset=-1,this._currentOffset=-1,this._minutesUntilReset=-1,!0}parse(e){return e?(this._year=e.readInt(),this._week=e.readInt(),this._maxOffset=e.readInt(),this._currentOffset=e.readInt(),this._minutesUntilReset=e.readInt(),!0):!1}get year(){return this._year}get week(){return this._week}get maxOffset(){return this._maxOffset}get currentOffset(){return this._currentOffset}get minutesUntilReset(){return this._minutesUntilReset}}class pse{constructor(e){this._name=e.readString(),this._figure=e.readString(),this._gender=e.readString(),this._rank=e.readInt(),this._score=e.readInt()}get name(){return this._name}get figure(){return this._figure}get gender(){return this._gender}get rank(){return this._rank}get score(){return this._score}}class mse{flush(){return this._gameTypeId=-1,this._products=[],this._minutesUntilNextWeek=0,this._rewardingOn=!0,!0}parse(e){if(!e)return!1;this._gameTypeId=e.readInt();let t=e.readInt();for(;t>0;)this._products.push(new $c(e)),t--;return this._minutesUntilNextWeek=e.readInt(),this._rewardingOn=e.readBoolean(),!0}get gameTypeId(){return this._gameTypeId}get products(){return this._products}get minutesUntilNextWeek(){return this._minutesUntilNextWeek}get rewardingOn(){return this._rewardingOn}}class vse{flush(){return this._gameTypeId=-1,this._winners=[],!0}parse(e){if(!e)return!1;this._gameTypeId=e.readInt();let t=e.readInt();for(;t>0;)this._winners.push(new pse(e)),t--;return!0}get gameTypeId(){return this._gameTypeId}get winners(){return this._winners}}class Ese{flush(){return this._errorCode=0,!0}parse(e){return e?(this._errorCode=e.readInt(),!0):!1}get errorCode(){return this._errorCode}}class yse{flush(){return this._phoneStatusCode=-1,this._millisecondsToAllowProcessReset=-1,!0}parse(e){return e?(this._phoneStatusCode=e.readInt(),this._collectionStatusCode=e.readInt(),this._millisecondsToAllowProcessReset=e.readInt(),!0):!1}get phoneStatusCode(){return this._phoneStatusCode}get collectionStatusCode(){return this._collectionStatusCode}get millisecondsToAllowProcessReset(){return this._millisecondsToAllowProcessReset}}class Tse{flush(){return this._resultCode=-1,!0}parse(e){return e?(this._resultCode=e.readInt(),this._millisToAllowProcessReset=e.readInt(),!0):!1}get resultCode(){return this._resultCode}get millisToAllowProcessReset(){return this._millisToAllowProcessReset}}class Ise{flush(){return this._resultCode=-1,this._millisecondsToAllowProcessReset=-1,!0}parse(e){return e?(this._resultCode=e.readInt(),this._millisecondsToAllowProcessReset=e.readInt(),!0):!1}get resultCode(){return this._resultCode}get millisToAllowProcessReset(){return this._millisecondsToAllowProcessReset}}class Rse{flush(){return this._bases=new Map,this._symbols=new Map,this._partColors=new Map,this._colorsA=new Map,this._colorsB=new Map,!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;){const o=e.readInt(),l=e.readString(),u=e.readString();this._bases.set(o,[l,u]),t--}let i=e.readInt();for(;i>0;){const o=e.readInt(),l=e.readString(),u=e.readString();this._symbols.set(o,[l,u]),i--}let n=e.readInt();for(;n>0;){const o=e.readInt(),l=e.readString();this._partColors.set(o,l),n--}let r=e.readInt();for(;r>0;){const o=e.readInt(),l=e.readString();this._colorsA.set(o,l),r--}let a=e.readInt();for(;a>0;){const o=e.readInt(),l=e.readString();this._colorsB.set(o,l),a--}return!0}get bases(){return this._bases}get symbols(){return this._symbols}get partColors(){return this._partColors}get colorsA(){return this._colorsA}get colorsB(){return this._colorsB}}class Sse{flush(){return this._groupCost=0,this._availableRooms=new Map,!0}parse(e){if(!e)return!1;this._groupCost=e.readInt();let t=e.readInt();for(;t>0;){const i=e.readInt(),n=e.readString();e.readBoolean(),this._availableRooms.set(i,n),t--}return!0}get groupCost(){return this._groupCost}get availableRooms(){return this._availableRooms}}class bse{flush(){return this._userId=0,this._furnitureCount=0,!0}parse(e){return e?(this._userId=e.readInt(),this._furnitureCount=e.readInt(),!0):!1}get userId(){return this._userId}get furnitureCount(){return this._furnitureCount}}class Ase{flush(){return this._id=0,this._type=0,this._title=null,this._description=null,this._badge=null,this._roomId=0,this._roomName=null,this._membershipType=0,this._membersCount=0,this._isFavorite=!1,this._createdAt=null,this._isOwner=!1,this._isAdmin=!1,this._ownerName=null,this._flag=!1,this._canMembersDecorate=!1,this._pendingRequestsCount=0,!0}parse(e){return e?(this._id=e.readInt(),e.readBoolean(),this._type=e.readInt(),this._title=e.readString(),this._description=e.readString(),this._badge=e.readString(),this._roomId=e.readInt(),this._roomName=e.readString(),this._membershipType=e.readInt(),this._membersCount=e.readInt(),this._isFavorite=e.readBoolean(),this._createdAt=e.readString(),this._isOwner=e.readBoolean(),this._isAdmin=e.readBoolean(),this._ownerName=e.readString(),this._flag=e.readBoolean(),this._canMembersDecorate=e.readBoolean(),this._pendingRequestsCount=e.readInt(),!0):!1}get id(){return this._id}get type(){return this._type}get title(){return this._title}get description(){return this._description}get badge(){return this._badge}get roomId(){return this._roomId}get roomName(){return this._roomName}get membershipType(){return this._membershipType}get membersCount(){return this._membersCount}get isFavorite(){return this._isFavorite}get createdAt(){return this._createdAt}get isOwner(){return this._isOwner}get isAdmin(){return this._isAdmin}get ownerName(){return this._ownerName}get flag(){return this._flag}get canMembersDecorate(){return this._canMembersDecorate}get pendingRequestsCount(){return this._pendingRequestsCount}}class Ose{constructor(e){this.isBase=e,this.key=0,this.color=0,this.position=4}get code(){return this.key===0?null:(this.isBase?"b":"s")+(this.key<100?"0":"")+(this.key<10?"0":"")+this.key+(this.color<10?"0":"")+this.color+this.position}}const Zl=class Zl{};Zl.OWNER=0,Zl.ADMIN=1,Zl.MEMBER=2,Zl.REQUESTED=3,Zl.DELETED=4;let qP=Zl;class wse{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._rank=-1,this._id=0,this._name=null,this._figure=null,this._joinedAt=null,!0}parse(e){return e?(this._rank=e.readInt(),this._id=e.readInt(),this._name=e.readString(),this._figure=e.readString(),this._joinedAt=e.readString(),!0):!1}get id(){return this._id}get name(){return this._name}get figure(){return this._figure}get rank(){return this._rank}get joinedAt(){return this._joinedAt}}class Cse{flush(){return this._groupId=0,this._groupTitle=null,this._roomId=0,this._badge=null,this._totalMembersCount=0,this._result=[],this._admin=!1,this._pageSize=0,this._pageIndex=0,this._level=0,this._query=null,!0}parse(e){if(!e)return!1;this._groupId=e.readInt(),this._groupTitle=e.readString(),this._roomId=e.readInt(),this._badge=e.readString(),this._totalMembersCount=e.readInt();let t=e.readInt();for(;t>0;)this._result.push(new wse(e)),t--;return this._admin=e.readBoolean(),this._pageSize=e.readInt(),this._pageIndex=e.readInt(),this._level=e.readInt(),this._query=e.readString(),!0}get groupId(){return this._groupId}get groupTitle(){return this._groupTitle}get roomId(){return this._roomId}get badge(){return this._badge}get totalMembersCount(){return this._totalMembersCount}get result(){return this._result}get admin(){return this._admin}get pageSize(){return this._pageSize}get pageIndex(){return this._pageIndex}get level(){return this._level}get query(){return this._query}}class Mse{flush(){return this._roomId=0,this._groupId=0,!0}parse(e){return e?(this._roomId=e.readInt(),this._groupId=e.readInt(),!0):!1}get roomId(){return this._roomId}get guildId(){return this._groupId}}class Nse{flush(){return this._roomId=0,this._roomName=null,this._id=0,this._title=null,this._description=null,this._colorA=0,this._colorB=0,this._state=0,this._canMembersDecorate=!1,this._badgeParts=new Map,this._badgeCode=null,this._membersCount=0,!0}parse(e){if(!e)return!1;e.readInt()===1&&(this._roomId=e.readInt(),this._roomName=e.readString(),e.readBoolean()),e.readBoolean(),this._id=e.readInt(),this._title=e.readString(),this._description=e.readString(),e.readInt(),this._colorA=e.readInt(),this._colorB=e.readInt(),this._state=e.readInt(),this._canMembersDecorate=e.readInt()===0,e.readBoolean(),e.readString();const i=e.readInt();for(let n=0;n<i;n++){const r=new Ose(n===0);r.key=e.readInt(),r.color=e.readInt(),r.position=e.readInt(),r.key===0&&(r.position=4),this._badgeParts.set(n,r)}return this._badgeCode=e.readString(),this._membersCount=e.readInt(),!0}get roomId(){return this._roomId}get roomName(){return this._roomName}get id(){return this._id}get title(){return this._title}get description(){return this._description}get colorA(){return this._colorA}get colorB(){return this._colorB}get state(){return this._state}get canMembersDecorate(){return this._canMembersDecorate}get badgeParts(){return this._badgeParts}get badgeCode(){return this._badgeCode}get membersCount(){return this._membersCount}}class Pse{flush(){return!0}parse(e){return this._groupId=e.readInt(),!0}get groupId(){return this._groupId}}class W_{static parse(e){return this.fillFromMessage(new W_,e)}static fillFromMessage(e,t){return e._groupId=t.readInt(),e._name=t.readString(),e._description=t.readString(),e._icon=t.readString(),e._totalThreads=t.readInt(),e._leaderboardScore=t.readInt(),e._totalMessages=t.readInt(),e._unreadMessages=t.readInt(),e._lastMessageId=t.readInt(),e._lastMessageAuthorId=t.readInt(),e._lastMessageAuthorName=t.readString(),e._lastMessageTimeAsSecondsAgo=t.readInt(),e}get groupId(){return this._groupId}get name(){return this._name}get description(){return this._description}get icon(){return this._icon}get totalThreads(){return this._totalThreads}get leaderboardScore(){return this._leaderboardScore}get totalMessages(){return this._totalMessages}get unreadMessages(){return this._unreadMessages}get lastMessageId(){return this._lastMessageId}get lastMessageAuthorId(){return this._lastMessageAuthorId}get lastMessageAuthorName(){return this._lastMessageAuthorName}get lastMessageTimeAsSecondsAgo(){return this._lastMessageTimeAsSecondsAgo}updateFrom(e){this._totalThreads=e._totalThreads,this._totalMessages=e._totalMessages,this._unreadMessages=e._unreadMessages,this._lastMessageAuthorId=e._lastMessageAuthorId,this._lastMessageAuthorName=e._lastMessageAuthorName,this._lastMessageId=e._lastMessageId,this._lastMessageTimeAsSecondsAgo=e._lastMessageTimeAsSecondsAgo}get lastReadMessageId(){return this._totalMessages-this._unreadMessages}set lastReadMessageId(e){this._unreadMessages=this._totalMessages-e,this._unreadMessages<0&&(this._unreadMessages=0)}addNewThread(e){this._lastMessageAuthorId=e.lastUserId,this._lastMessageAuthorName=e.lastUserName,this._lastMessageId=e.lastMessageId,this._lastMessageTimeAsSecondsAgo=e.lastCommentTime,this._totalThreads++,this._totalMessages++,this._unreadMessages=0}}class xw extends W_{static parse(e){const t=new xw;return W_.fillFromMessage(t,e),t._readPermissions=e.readInt(),t._postMessagePermissions=e.readInt(),t._postThreadPermissions=e.readInt(),t._moderatePermissions=e.readInt(),t._readPermissionError=e.readString(),t._postMessagePermissionError=e.readString(),t._postThreadPermissionError=e.readString(),t._moderatePermissionError=e.readString(),t._reportPermissionError=e.readString(),t._canChangeSettings=e.readBoolean(),t._isStaff=e.readBoolean(),t}get readPermissions(){return this._readPermissions}get postMessagePermissions(){return this._postMessagePermissions}get postThreadPermissions(){return this._postThreadPermissions}get moderatePermissions(){return this._moderatePermissions}get hasReadPermissionError(){return this._readPermissionError.length===0}get canReport(){return!0}get hasPostMessagePermissionError(){return this._postMessagePermissionError.length===0}get hasPostThreadPermissionError(){return this._postThreadPermissionError.length===0}get hasModeratePermissionError(){return this._moderatePermissionError.length===0}get canChangeSettings(){return this._canChangeSettings}get isStaf(){return this._isStaff}get readPermissionError(){return this._readPermissionError}get postMessagePermissionError(){return this._postMessagePermissionError}get postThreadPermissionError(){return this._postThreadPermissionError}get moderatePermissionError(){return this._moderatePermissionError}get reportPermissionError(){return this._reportPermissionError}}class kse{flush(){return this._extendedForumData=null,!0}parse(e){return e?(this._extendedForumData=xw.parse(e),!0):!1}get extendedForumData(){return this._extendedForumData}}class xse{flush(){return this._listCode=-1,this._totalAmount=0,this._startIndex=-1,this._amount=0,this._forums=[],!0}parse(e){if(!e)return!1;this._listCode=e.readInt(),this._totalAmount=e.readInt(),this._startIndex=e.readInt(),this._amount=e.readInt(),this._forums=[];let t=0;for(;t<this._amount;)this._forums.push(W_.parse(e)),t++;return!0}get listCode(){return this._listCode}get totalAmount(){return this._totalAmount}get startIndex(){return this._startIndex}get amount(){return this._amount}get forums(){return this._forums}}class yg{static parse(e){const t=new yg;return t._threadId=e.readInt(),t._authorId=e.readInt(),t._authorName=e.readString(),t._header=e.readString(),t._isPinned=e.readBoolean(),t._isLocked=e.readBoolean(),t._creationTimeAsSecondsAgo=e.readInt(),t._totalMessages=e.readInt(),t._unreadMessagesCount=e.readInt(),t._lastMessageId=e.readInt(),t._lastUserId=e.readInt(),t._lastUserName=e.readString(),t._lastCommentTime=e.readInt(),t._state=e.readByte(),t._adminId=e.readInt(),t._adminName=e.readString(),t._adminOperationTimeAsSecondsAgo=e.readInt(),t}get adminOperationTimeAsSecondsAgo(){return this._adminOperationTimeAsSecondsAgo}set adminOperationTimeAsSecondsAgo(e){this._adminOperationTimeAsSecondsAgo=e}get lastCommentTime(){return this._lastCommentTime}set lastCommentTime(e){this._lastCommentTime=e}get threadId(){return this._threadId}set threadId(e){this._threadId=e}get authorId(){return this._authorId}set authorId(e){this._authorId=e}get authorName(){return this._authorName}set authorName(e){this._authorName=e}get creationTimeAsSecondsAgo(){return this._creationTimeAsSecondsAgo}set creationTimeAsSecondsAgo(e){this._creationTimeAsSecondsAgo=e}get header(){return this._header}set header(e){this._header=e}get lastMessageId(){return this._lastMessageId}set lastMessageId(e){this._lastMessageId=e}get lastUserId(){return this._lastUserId}set lastUserId(e){this._lastUserId=e}get lastUserName(){return this._lastUserName}set lastUserName(e){this._lastUserName=e}get totalMessages(){return this._totalMessages}set totalMessages(e){this._totalMessages=e}get unreadMessagesCount(){return this._unreadMessagesCount}set unreadMessagesCount(e){this._unreadMessagesCount=e}get state(){return this._state}set state(e){this._state=e}get adminId(){return this._adminId}set adminId(e){this._adminId=e}get adminName(){return this._adminName}set adminName(e){this._adminName=e}get isPinned(){return this._isPinned}set isPinned(e){this._isPinned=e}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked=e}}class Dse{flush(){return this._groupId=-1,this._startIndex=-1,this._amount=0,this._threads=[],!0}parse(e){if(!e)return!1;this._groupId=e.readInt(),this._startIndex=e.readInt(),this._amount=e.readInt(),this._threads=[];let t=0;for(;t<this._amount;)this._threads.push(yg.parse(e)),t++;return!0}get groupId(){return this._groupId}get startIndex(){return this._startIndex}get amount(){return this._amount}get threads(){return this._threads}}class Tg{static parse(e){const t=new Tg;return t._messageId=e.readInt(),t._messageIndex=e.readInt(),t._authorId=e.readInt(),t._authorName=e.readString(),t._authorFigure=e.readString(),t._creationTime=e.readInt(),t._messageText=e.readString(),t._state=e.readByte(),t._adminId=e.readInt(),t._adminName=e.readString(),t._adminOperationTimeAsSeccondsAgo=e.readInt(),t._authorPostCount=e.readInt(),t}get state(){return this._state}set state(e){this._state=e}get adminId(){return this._adminId}set adminId(e){this._adminId=e}get adminName(){return this._adminName}set adminName(e){this._adminName=e}get adminOperationTimeAsSeccondsAgo(){return this._adminOperationTimeAsSeccondsAgo}set adminOperationTimeAsSeccondsAgo(e){this._adminOperationTimeAsSeccondsAgo=e}get messageId(){return this._messageId}set messageId(e){this._messageId=e}get creationTime(){return this._creationTime}set creationTime(e){this._creationTime=e}get authorName(){return this._authorName}set authorName(e){this._authorName=e}get authorFigure(){return this._authorFigure}set authorFigure(e){this._authorFigure=e}get threadId(){return this._threadId}set threadId(e){this._threadId=e}get messageIndex(){return this._messageIndex}set messageIndex(e){this._messageIndex=e}set groupID(e){this._groupId=e}get groupId(){return this._groupId}get authorId(){return this._authorId}set authorId(e){this._authorId=e}get messageText(){return this._messageText}set messageText(e){this._messageText=e}get authorPostCount(){return this._authorPostCount}set authorPostCount(e){this._authorPostCount=e}}class Lse{flush(){return this._groupId=-1,this._threadId=-1,this._message=null,!0}parse(e){return e?(this._groupId=e.readInt(),this._threadId=e.readInt(),this._message=Tg.parse(e),!0):!1}get groupId(){return this._groupId}get threadId(){return this._threadId}get message(){return this._message}}class Use{flush(){return this._groupId=-1,this._thread=null,!0}parse(e){return e?(this._groupId=e.readInt(),this._thread=yg.parse(e),!0):!1}get groupId(){return this._groupId}get thread(){return this._thread}}class Fse{flush(){return this._groupId=-1,this._threadId=-1,this._startIndex=-1,this._amount=0,this._messages=[],!0}parse(e){if(!e)return!1;this._groupId=e.readInt(),this._threadId=e.readInt(),this._startIndex=e.readInt(),this._amount=e.readInt(),this._messages=[];let t=0;for(;t<this._amount;){const i=Tg.parse(e);i.groupID=this._groupId,i.threadId=this._threadId,this._messages.push(i),t++}return!0}get groupId(){return this._groupId}get threadId(){return this._threadId}get startIndex(){return this._startIndex}get amount(){return this._amount}get messages(){return this._messages}}class Bse{flush(){return this._count=0,!0}parse(e){return e?(this._count=e.readInt(),!0):!1}get count(){return this._count}}class Gse{flush(){return this._groupId=-1,this._threadId=-1,this._message=null,!0}parse(e){return e?(this._groupId=e.readInt(),this._threadId=e.readInt(),this._message=Tg.parse(e),!0):!1}get groupId(){return this._groupId}get threadId(){return this._threadId}get message(){return this._message}}class Vse{flush(){return this._groupId=-1,this._thread=null,!0}parse(e){return e?(this._groupId=e.readInt(),this._thread=yg.parse(e),!0):!1}get groupId(){return this._groupId}get thread(){return this._thread}}class jse{constructor(){this._encryptedPublicKey=null,this._serverClientEncryption=!1}flush(){return!0}parse(e){return e?(this._encryptedPublicKey=e.readString(),e.bytesAvailable&&(this._serverClientEncryption=e.readBoolean()),!0):!1}get encryptedPublicKey(){return this._encryptedPublicKey}get serverClientEncryption(){return this._serverClientEncryption}}class zse{flush(){return this._reason=-1,!0}parse(e){return e?(this._reason=0,e.bytesAvailable&&(this._reason=e.readInt()),!0):!1}get reason(){return this._reason}}class Hse{flush(){return this._accounts&&(this._accounts=new Map),!0}parse(e){if(!e)return!1;this._accounts=new Map;let t=e.readInt();for(;t>0;)this._accounts.set(e.readInt(),e.readString()),t--;return!0}get accounts(){return this._accounts}}class Wse{flush(){return!0}parse(e){return e?(this._encryptedPrime=e.readString(),this._encryptedGenerator=e.readString(),!0):!1}get encryptedPrime(){return this._encryptedPrime}get encryptedGenerator(){return this._encryptedGenerator}}class Yse{flush(){return this._noobnessLevel=0,!0}parse(e){return e?(this._noobnessLevel=e.readInt(),!0):!1}get noobnessLevel(){return this._noobnessLevel}}class Xse{flush(){return!0}parse(e){return e?(this._infoUrl=e.readString(),!0):!1}get infoUrl(){return this._infoUrl}}class Kse{flush(){return!0}parse(e){return!0}}class qse{flush(){return this._calls=[],!0}parse(e){this._calls=[];const t=e.readInt();for(let i=0;i<t;i++){const n=e.readString(),r=e.readString(),a=e.readString();this._calls.push({callId:n,timeStamp:r,message:a})}return!0}get pendingCalls(){return this._calls}get count(){return this._calls.length}}class $se{flush(){return this._message=null,!0}parse(e){return this._message=e.readString(),!0}get message(){return this._message}}class Qse{flush(){return this._resultType=0,this._messageText=null,!0}parse(e){return e?(this._resultType=e.readInt(),this._messageText=e.readString(),!0):!1}get resultType(){return this._resultType}get messageText(){return this._messageText}}class Zse{flush(){return!0}parse(e){return!0}}class Jse{flush(){return this._acceptanceTimeout=-1,!0}parse(e){return this._acceptanceTimeout=e.readInt(),!0}get acceptanceTimeout(){return this._acceptanceTimeout}}class ene{flush(){return this._winningVoteCode=-1,this._ownVoteCode=-1,this._finalStatus=null,!0}parse(e){this._finalStatus=[],this._winningVoteCode=e.readInt(),this._ownVoteCode=e.readInt();const t=e.readInt();for(let i=0;i<t;i++)this._finalStatus.push(e.readInt());return!0}get winningVoteCode(){return this._winningVoteCode}get ownVoteCode(){return this._ownVoteCode}get finalStatus(){return this._finalStatus}}class tne{flush(){return!0}parse(e){return this._votingTimeout=e.readInt(),this._chatRecord=e.readString(),!0}get votingTimeout(){return this._votingTimeout}get chatRecord(){return this._chatRecord}}const po=class po{flush(){return this._status=null,!0}parse(e){this._status=[];const t=e.readInt();for(let i=0;i<t;i++)this._status.push(e.readInt());return!0}get status(){return this._status}};po.AWAITING_VOTE=0,po.VOTED_OK=1,po.VOTED_BAD=2,po.VOTED_VERY_BAD=3,po.NO_VOTE=4,po.FINDING_NEW_VOTER=5;let ES=po;class ine{flush(){return this._onDuty=!1,this._guidesOnDuty=0,this._helpersOnDuty=0,this._guardiansOnDuty=0,!0}parse(e){return e?(this._onDuty=e.readBoolean(),this._guidesOnDuty=e.readInt(),this._helpersOnDuty=e.readInt(),this._guardiansOnDuty=e.readInt(),!0):!1}get onDuty(){return this._onDuty}get guidesOnDuty(){return this._guidesOnDuty}get helpersOnDuty(){return this._helpersOnDuty}get guardiansOnDuty(){return this._guardiansOnDuty}}class sne{constructor(e,t,i,n,r,a,o){this._type=e,this._secondsAgo=t,this._isGuide=i,this._otherPartyName=n,this._otherPartyFigure=r,this._description=a,this._roomName=o}get type(){return this._type}set type(e){this._type=e}get secondsAgo(){return this._secondsAgo}set secondsAgo(e){this._secondsAgo=e}get isGuide(){return this._isGuide}set isGuide(e){this._isGuide=e}get otherPartyName(){return this._otherPartyName}set otherPartyName(e){this._otherPartyName=e}get otherPartyFigure(){return this._otherPartyFigure}set otherPartyFigure(e){this._otherPartyFigure=e}get description(){return this._description}set description(e){this._description=e}get roomName(){return this._roomName}set roomName(e){this._roomName=e}}const cc=class cc{flush(){return this._statusCode=0,this._pendingTicket=null,!0}parse(e){return e?(this._statusCode=e.readInt(),this._pendingTicket=new sne(e.readInt(),e.readInt(),e.readBoolean(),e.readString(),e.readString(),e.readString(),e.readString()),!0):!1}get statusCode(){return this._statusCode}get pendingTicket(){return this._pendingTicket}};cc.GUIDE_REPORTING_STATUS_OK=0,cc.GUIDE_REPORTING_STATUS_PENDING_TICKET=1,cc.GUIDE_REPORTING_STATUS_ABUSIVE=2,cc.GUIDE_REPORTING_STATUS_REPORTING_TOO_QUICKLY=3;let yS=cc;class nne{flush(){return this._asGuide=!1,this._helpRequestType=0,this._helpRequestDescription=null,this._roleSpecificWaitTime=0,!0}parse(e){return e?(this._asGuide=e.readBoolean(),this._helpRequestType=e.readInt(),this._helpRequestDescription=e.readString(),this._roleSpecificWaitTime=e.readInt(),!0):!1}get asGuide(){return this._asGuide}get helpRequestType(){return this._helpRequestType}get helpRequestDescription(){return this._helpRequestDescription}get roleSpecificWaitTime(){return this._roleSpecificWaitTime}}class rne{flush(){return!0}parse(e){return!!e}}class ane{flush(){return this._endReason=0,!0}parse(e){return e?(this._endReason=e.readInt(),!0):!1}get endReason(){return this._endReason}}const Jl=class Jl{flush(){return this._errorCode=0,!0}parse(e){return e?(this._errorCode=e.readInt(),!0):!1}get errorCode(){return this._errorCode}};Jl.ERROR_GENERIC=0,Jl.ERROR_GUIDES_REJECT=1,Jl.ERROR_NOT_ENOUGH_GUIDES=2,Jl.ERROR_NOT_ENOUGH_VOTES=3,Jl.ERROR_NO_CHATLOG_FOUND=4;let TS=Jl;class one{flush(){return this._roomId=0,this._roomName=null,!0}parse(e){return e?(this._roomId=e.readInt(),this._roomName=e.readString(),!0):!1}get roomId(){return this._roomId}get roomName(){return this._roomName}}class lne{flush(){return this._chatMessage=null,this._senderId=0,!0}parse(e){return e?(this._chatMessage=e.readString(),this._senderId=e.readInt(),!0):!1}get chatMessage(){return this._chatMessage}get senderId(){return this._senderId}}class une{flush(){return this._isTyping=!1,!0}parse(e){return e?(this._isTyping=e.readBoolean(),!0):!1}get isTyping(){return this._isTyping}}class hne{flush(){return this._requesterRoomId=0,!0}parse(e){return e?(this._requesterRoomId=e.readInt(),!0):!1}get requesterRoomId(){return this._requesterRoomId}}class cne{flush(){return this._requesterUserId=0,this._requesterName=null,this._requesterFigure=null,this._guideUserId=0,this._guideName=null,this._guideFigure=null,!0}parse(e){return e?(this._requesterUserId=e.readInt(),this._requesterName=e.readString(),this._requesterFigure=e.readString(),this._guideUserId=e.readInt(),this._guideName=e.readString(),this._guideFigure=e.readString(),!0):!1}get requesterUserId(){return this._requesterUserId}get requesterName(){return this._requesterName}get requesterFigure(){return this._requesterFigure}get guideUserId(){return this._guideUserId}get guideName(){return this._guideName}get guideFigure(){return this._guideFigure}}const fc=class fc{flush(){return this._result=0,!0}parse(e){return e?(this._result=e.readInt(),!0):!1}get result(){return this._result}};fc.CREATION_RESULT_OK=0,fc.CREATION_RESULT_UNABLE_TO_REPORT=1,fc.CREATION_RESULT_NO_CHATLOG_FOUND=2,fc.CREATION_RESULT_BULLY_ALREADY_REPORTED=3;let IS=fc;const Kd=class Kd{flush(){return this._resolution=0,!0}parse(e){return e?(this._resolution=e.readInt(),!0):!1}get resolution(){return this._resolution}};Kd.RESOLUTION_GUARDIANS_TOOK_ACTION=0,Kd.RESOLUTION_FORWARDED_TO_MODERATORS=1,Kd.RESOLUTION_REPORTER_IS_ABUSIVE=2;let RS=Kd;class fne{flush(){return!0}parse(e){return!!e}}class dne{flush(){return this._closeReason=0,this._messageText="",!0}parse(e){return e?(this._closeReason=e.readInt(),this._messageText=e.readString(),!0):!1}get closeReason(){return this._closeReason}get messageText(){return this._messageText}}class _ne{flush(){return this._quizCode=null,this._questionIds=[],!0}parse(e){if(!e)return!1;this._quizCode=e.readString();const t=e.readInt();this._questionIds=[];for(let i=0;i<t;i++)this._questionIds.push(e.readInt());return!0}get quizCode(){return this._quizCode}get questionIds(){return this._questionIds}}class gne{flush(){return this._quizCode=null,this._questionIdsForWrongAnswers=[],!0}parse(e){if(!e)return!1;this._quizCode=e.readString();const t=e.readInt();this._questionIdsForWrongAnswers=[];for(let i=0;i<t;i++)this._questionIdsForWrongAnswers.push(e.readInt());return!0}get quizCode(){return this._quizCode}get questionIdsForWrongAnswers(){return this._questionIdsForWrongAnswers}}const qd=class qd{constructor(e){this._id=e.readInt(),this._title=e.readString(),this._bodyText=e.readString(),this._buttonText=e.readString(),this._linkType=e.readInt(),this._linkContent=e.readString(),this._imageUrl=e.readString()}get id(){return this._id}get title(){return this._title}get bodyText(){return this._bodyText}get buttonText(){return this._buttonText}get linkType(){return this._linkType}get linkContent(){return this._linkContent}get imageUrl(){return this._imageUrl}};qd.LINK_TYPE_URL=0,qd.LINK_TYPE_INTERNAL=1,qd.LINK_TYPE_NO_LINK=2;let SS=qd;class pne{flush(){return this._articles=[],!0}parse(e){if(!e)return!1;const t=e.readInt();for(let i=0;i<t;i++)this._articles.push(new SS(e));return!0}get articles(){return this._articles}}class mne{flush(){return!0}parse(e){return e?(this._acknowledged=e.readBoolean(),!0):!1}get acknowledged(){return this._acknowledged}}class vne{flush(){return this._newOfferId=-1,this._newPrice=0,this._requestedOfferId=-1,!0}parse(e){return e?(this._result=e.readInt(),this._newOfferId=e.readInt(),this._newPrice=e.readInt(),this._requestedOfferId=e.readInt(),!0):!1}get result(){return this._result}get offerId(){return this._newOfferId}get newPrice(){return this._newPrice}get requestedOfferId(){return this._requestedOfferId}}class Ene{flush(){return this._offerId=0,this._success=!1,!0}parse(e){return e?(this._offerId=e.readInt(),this._success=e.readBoolean(),!0):!1}get offerId(){return this._offerId}get success(){return this._success}}class yne{flush(){return this._tokenCount=0,this._result=0,!0}parse(e){return e?(this._result=e.readInt(),this._tokenCount=e.readInt(),!0):!1}get tokenCount(){return this._tokenCount}get resultCode(){return this._result}}class Tne{flush(){return this._enabled=!1,this._commission=0,this._credits=0,this._advertisements=0,this._maximumPrice=0,this._minimumPrice=0,this._offerTime=0,this._displayTime=0,!0}parse(e){return e?(this._enabled=e.readBoolean(),this._commission=e.readInt(),this._credits=e.readInt(),this._advertisements=e.readInt(),this._minimumPrice=e.readInt(),this._maximumPrice=e.readInt(),this._offerTime=e.readInt(),this._displayTime=e.readInt(),!0):!1}get enabled(){return this._enabled}get commission(){return this._commission}get credits(){return this._credits}get advertisements(){return this._advertisements}get minimumPrice(){return this._minimumPrice}get maximumPrice(){return this._maximumPrice}get offerTime(){return this._offerTime}get displayTime(){return this._displayTime}}class Ine{flush(){return this._result=0,!0}parse(e){return e?(this._result=e.readInt(),!0):!1}get result(){return this._result}}class Rne{flush(){return this._averagePrice=0,this._currentOfferCount=0,this._historyLength=0,this._dayOffsets=[],this._averagePrices=[],this._soldAmounts=[],this._furniTypeId=0,this._furniCategoryId=0,!0}parse(e){if(!e)return!1;this._averagePrice=e.readInt(),this._currentOfferCount=e.readInt(),this._historyLength=e.readInt();let t=e.readInt();for(;t>0;)this._dayOffsets.push(e.readInt()),this._averagePrices.push(e.readInt()),this._soldAmounts.push(e.readInt()),t--;return this._furniCategoryId=e.readInt(),this._furniTypeId=e.readInt(),!0}get averagePrice(){return this._averagePrice}get offerCount(){return this._currentOfferCount}get historyLength(){return this._historyLength}get dayOffsets(){return this._dayOffsets}get averagePrices(){return this._averagePrices}get soldAmounts(){return this._soldAmounts}get furniTypeId(){return this._furniTypeId}get furniCategoryId(){return this._furniCategoryId}}class E4{constructor(e,t,i,n,r,a,o,l,u,c=-1){this._timeLeftMinutes=-1,this._offerId=e,this._furniId=t,this._furniType=i,this._extraData=n,this._stuffData=r,this._price=a,this._status=o,this._timeLeftMinutes=l,this._averagePrice=u,this._offerCount=c}get offerId(){return this._offerId}get furniId(){return this._furniId}get furniType(){return this._furniType}get extraData(){return this._extraData}get stuffData(){return this._stuffData}get price(){return this._price}get status(){return this._status}get timeLeftMinutes(){return this._timeLeftMinutes}get averagePrice(){return this._averagePrice}get offerCount(){return this._offerCount}get isUniqueLimitedItem(){return this.stuffData!=null&&this.stuffData.uniqueSeries>0}}const EE=class EE{constructor(e,t,i,n,r,a,o,l,u=-1){this._timeLeftMinutes=-1,this._offerId=e,this._furniId=t,this._furniType=i,this._extraData=n,this._stuffData=r,this._price=a,this._status=o,this._averagePrice=l,this._offerCount=u}get offerId(){return this._offerId}set offerId(e){this._offerId=e}get furniId(){return this._furniId}get furniType(){return this._furniType}get extraData(){return this._extraData}get stuffData(){return this._stuffData}get price(){return this._price}set price(e){this._price=e}get averagePrice(){return this._averagePrice}get image(){return this._image}set image(e){this._image=e}get imageCallback(){return this._imageCallback}set imageCallback(e){this._imageCallback=e}get status(){return this._status}get timeLeftMinutes(){return this._timeLeftMinutes}set timeLeftMinutes(e){this._timeLeftMinutes=e}get offerCount(){return this._offerCount}set offerCount(e){this._offerCount=e}get isUniqueLimitedItem(){return this.stuffData&&this.stuffData.uniqueSeries>0}};EE.TYPE_LANDSCAPE=1,EE.TYPE_FLOOR=2;let $P=EE;const aa=class aa{constructor(){this.MAX_LIST_LENGTH=500}flush(){return this._offers=[],this._totalItemsFound=0,!0}parse(e){if(!e)return!1;const t=e.readInt();let i=0;for(;i<t;){const n=e.readInt(),r=e.readInt();let a=e.readInt(),o=-1,l="",u=null;a===aa.FURNITYPE_STUFF?(o=e.readInt(),u=cl.parseObjectData(e)):a===aa.FURNITYPE_WALL?(o=e.readInt(),l=e.readString()):a==aa.FAKE_FURNITYPE_UNIQUE&&(o=e.readInt(),u=No.getData(ps.FORMAT_KEY),u.uniqueNumber=e.readInt(),u.uniqueSeries=e.readInt(),a=aa.FURNITYPE_STUFF);const c=e.readInt(),h=e.readInt(),f=e.readInt(),d=e.readInt(),_=new E4(n,o,a,l,u,c,r,h,f,d);i<this.MAX_LIST_LENGTH&&this._offers.push(_),i++}return this._totalItemsFound=e.readInt(),!0}get offers(){return this._offers}get totalItemsFound(){return this._totalItemsFound}};aa.FURNITYPE_STUFF=1,aa.FURNITYPE_WALL=2,aa.FAKE_FURNITYPE_UNIQUE=3;let bS=aa;const yE=class yE{flush(){return this._offers=[],!0}parse(e){if(!e)return!1;this._offers=[],this._creditsWaiting=e.readInt();const t=e.readInt();for(let i=0;i<t;i++){const n=e.readInt(),r=e.readInt();let a=e.readInt(),o,l,u;a==1?(o=e.readInt(),u=this.getStuffData(e)):a==2?(o=e.readInt(),l=e.readString()):a==3&&(o=e.readInt(),u=No.getData(ps.FORMAT_KEY),u.uniqueNumber=e.readInt(),u.uniqueSeries=e.readInt(),a=1);const c=e.readInt(),h=e.readInt(),f=e.readInt(),d=new E4(n,o,a,l,u,c,r,h,f);i<yE.MAX_LIST_LENGTH&&this._offers.push(d)}return!0}get offers(){return this._offers}get creditsWaiting(){return this._creditsWaiting}getStuffData(e){const t=e.readInt(),i=No.getData(t);return i.parseWrapper(e),i}};yE.MAX_LIST_LENGTH=500;let AS=yE;class Sne{constructor(e,t,i,n,r){this._timestamp=e,this._habboId=t,this._username=i,this._message=n,this._hasHighlighting=r}get timestamp(){return this._timestamp}get userId(){return this._habboId}get userName(){return this._username}get message(){return this._message}get hasHighlighting(){return this._hasHighlighting}}const oa=class oa{constructor(e){this._context=new Map,this._chatlog=[],this._recordType=e.readByte();const t=e.readShort();for(let n=0;n<t;n++){const r=e.readString(),a=e.readByte();switch(a){case 0:this._context.set(r,e.readBoolean());break;case 1:this._context.set(r,e.readInt());break;case 2:this._context.set(r,e.readString());break;default:throw new Error("Unknown data type "+a)}}const i=e.readShort();for(let n=0;n<i;n++){const r=e.readString(),a=e.readInt(),o=e.readString(),l=e.readString(),u=e.readBoolean();this._chatlog.push(new Sne(r,a,o,l,u))}}get recordType(){return this._recordType}get context(){return this._context}get chatlog(){return this._chatlog}get roomId(){return this.getInt("roomId")}get roomName(){return this._context.get("roomName")}get groupId(){return this.getInt("groupId")}get threadId(){return this.getInt("threadId")}get messageId(){return this.getInt("messageId")}getInt(e){const t=this._context.get(e);return t||0}};oa.TYPE_SIMPLE=0,oa.TYPE_ROOM_CHAT=1,oa.TYPE_IM_SESSION=2,oa.TYPE_DISCUSSION_THREAD=3,oa.TYPE_DISCUSSION_MESSAGE=4,oa.TYPE_SELFIE=5,oa.TYPE_PHOTO=6;let Y_=oa;class bne{constructor(e){this._issueId=e.readInt(),this._callerUserId=e.readInt(),this._reportedUserId=e.readInt(),this._chatRecordId=e.readInt(),this._chatRecord=new Y_(e)}get issueId(){return this._issueId}get callerUserId(){return this._callerUserId}get reportedUserId(){return this._reportedUserId}get chatRecordId(){return this._chatRecordId}get chatRecord(){return this._chatRecord}}class Ane{flush(){return this._data=null,!0}parse(e){return e?(this._data=new bne(e),!0):!1}get data(){return this._data}}class One{flush(){return!0}parse(e){return this._issueId=parseInt(e.readString()),!0}get issueId(){return this._issueId}}const $d=class $d{constructor(e,t,i,n,r,a,o,l,u,c,h,f,d,_,g,p){this._disposed=!1,this._issueId=e,this._state=t,this._categoryId=i,this._reportedCategoryId=n,this._issueAgeInMilliseconds=r,this._priority=a,this._groupingId=o,this._reporterUserId=l,this._reporterUserName=u,this._reportedUserId=c,this._reportedUserName=h,this._pickerUserId=f,this._pickerUserName=d,this._message=_,this._chatRecordId=g,this._patterns=p,this._creationTimeInMilliseconds=Pe()}get issueId(){return this._issueId}get state(){return this._state}get categoryId(){return this._categoryId}get reportedCategoryId(){return this._reportedCategoryId}get issueAgeInMilliseconds(){return this._issueAgeInMilliseconds}get priority(){return this._priority}get groupingId(){return this._groupingId}get reporterUserId(){return this._reporterUserId}get reporterUserName(){return this._reporterUserName}get reportedUserId(){return this._reportedUserId}get reportedUserName(){return this._reportedUserName}get pickerUserId(){return this._pickerUserId}get pickerUserName(){return this._pickerUserName}get message(){return this._message}get chatRecordId(){return this._chatRecordId}get patterns(){return this._patterns}dispose(){if(!this.disposed){for(const e of this._patterns)e.dispose();this._patterns=[],this._disposed=!0}}get disposed(){return this._disposed}getOpenTime(e){const i=(this._issueAgeInMilliseconds+e-this._creationTimeInMilliseconds)/1e3/60,n=i%60,r=i/60,a=(n<10?"0":"")+n;return(r<10?"0":"")+r+":"+a}};$d.STATE_OPEN=1,$d.STATE_PICKED=2,$d.STATE_CLOSED=3;let vv=$d;class wne{constructor(e){this._disposed=!1,this._pattern=e.readString(),this._startIndex=e.readInt(),this._endIndex=e.readInt()}dispose(){this._disposed=!0,this._pattern="",this._startIndex=-1,this._endIndex=-1}get disposed(){return this._disposed}get pattern(){return this._pattern}get startIndex(){return this._startIndex}get endIndex(){return this._endIndex}}class y4{get issueData(){return this._issueData}flush(){return this._issueData=null,!0}parse(e){const t=e.readInt(),i=e.readInt(),n=e.readInt(),r=e.readInt(),a=e.readInt(),o=e.readInt(),l=e.readInt(),u=e.readInt(),c=e.readString(),h=e.readInt(),f=e.readString(),d=e.readInt(),_=e.readString(),g=e.readString(),p=e.readInt(),m=e.readInt(),v=[];for(let E=0;E<m;E++)v.push(new wne(e));return this._issueData=new vv(t,i,n,r,a,o,l,u,c,h,f,d,_,g,p,v),!0}}class Cne{flush(){return this._issues=null,!0}parse(e){this._issues=[];const t=e.readInt();for(let i=0;i<t;i++){const n=e.readInt(),r=e.readInt(),a=e.readString(),o=new vv(n,0,0,0,0,0,0,0,null,0,null,r,a,null,0,[]);this._issues.push(o)}return this._retryEnabled=e.readBoolean(),this._retryCount=e.readInt(),!0}get issues(){return this._issues}get retryEnabled(){return this._retryEnabled}get retryCount(){return this._retryCount}}class Mne{flush(){return this._message="",this._url=null,!0}parse(e){return e?(this._message=e.readString(),this._url=e.readString(),!0):!1}get message(){return this._message}get url(){return this._url}}class Nne{flush(){return this._userId=-1,this._success=!1,!0}parse(e){return this._userId=e.readInt(),this._success=e.readBoolean(),!0}get userId(){return this._userId}get success(){return this._success}}class Pne{constructor(e){this._disposed=!1;const t=new y4;this._issues=[],this._messageTemplates=[],this._roomMessageTemplates=[];let i=e.readInt(),n=0;for(;n<i;)t.parse(e)&&this._issues.push(t.issueData),n++;for(i=e.readInt(),n=0;n<i;)this._messageTemplates.push(e.readString()),n++;for(i=e.readInt(),n=0;n<i;)e.readString(),n++;for(this._cfhPermission=e.readBoolean(),this._chatlogsPermission=e.readBoolean(),this._alertPermission=e.readBoolean(),this._kickPermission=e.readBoolean(),this._banPermission=e.readBoolean(),this._roomAlertPermission=e.readBoolean(),this._roomKickPermission=e.readBoolean(),i=e.readInt(),n=0;n<i;)this._roomMessageTemplates.push(e.readString()),n++}dispose(){this._disposed||(this._disposed=!0,this._messageTemplates=null,this._roomMessageTemplates=null,this._issues=null)}get disposed(){return this._disposed}get messageTemplates(){return this._messageTemplates}get roomMessageTemplates(){return this._roomMessageTemplates}get issues(){return this._issues}get cfhPermission(){return this._cfhPermission}get chatlogsPermission(){return this._chatlogsPermission}get alertPermission(){return this._alertPermission}get kickPermission(){return this._kickPermission}get banPermission(){return this._banPermission}get roomAlertPermission(){return this._roomAlertPermission}get roomKickPermission(){return this._roomKickPermission}}class kne{constructor(){this._data=null}flush(){return this._data=null,!0}parse(e){return this._data=new Pne(e),!0}get data(){return this._data}}class xne{flush(){return this._message="",this._url="",!0}parse(e){return e?(this._message=e.readString(),this._url=e.readString(),!0):!1}get message(){return this._message}get url(){return this._url}}class Dne{constructor(e){if(this._tags=[],this._exists=e.readBoolean(),!this.exists)return;this._name=e.readString(),this._desc=e.readString();const t=e.readInt();for(let i=0;i<t;i++)this._tags.push(e.readString())}get name(){return this._name}get desc(){return this._desc}get tags(){return this._tags}get exists(){return this._exists}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._tags=null)}}class Lne{constructor(e){this._flatId=e.readInt(),this._userCount=e.readInt(),this._ownerInRoom=e.readBoolean(),this._ownerId=e.readInt(),this._ownerName=e.readString(),this._room=new Dne(e)}get flatId(){return this._flatId}get userCount(){return this._userCount}get ownerInRoom(){return this._ownerInRoom}get ownerId(){return this._ownerId}get ownerName(){return this._ownerName}get room(){return this._room}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._room!=null&&(this._room.dispose(),this._room=null))}}class Une{flush(){return this._data=null,!0}parse(e){return e?(this._data=new Lne(e),!0):!1}get data(){return this._data}}class Fne{flush(){return this._windowX=0,this._windowY=0,this._windowWidth=0,this._windowHeight=0,!0}parse(e){return this._windowX=e.readInt(),this._windowY=e.readInt(),this._windowWidth=e.readInt(),this._windowHeight=e.readInt(),!0}get windowX(){return this._windowX}get windowY(){return this._windowY}get windowWidth(){return this._windowWidth}get windowHeight(){return this._windowHeight}}class Bne{constructor(e){this._lastSanctionTime="",this._sanctionAgeHours=0,this._userId=e.readInt(),this._userName=e.readString(),this._figure=e.readString(),this._registrationAgeInMinutes=e.readInt(),this._minutesSinceLastLogin=e.readInt(),this._online=e.readBoolean(),this._cfhCount=e.readInt(),this._abusiveCfhCount=e.readInt(),this._cautionCount=e.readInt(),this._banCount=e.readInt(),this._tradingLockCount=e.readInt(),this._tradingExpiryDate=e.readString(),this._lastPurchaseDate=e.readString(),this._identityId=e.readInt(),this._identityRelatedBanCount=e.readInt(),this._primaryEmailAddress=e.readString(),this._userClassification=e.readString(),e.bytesAvailable&&(this._lastSanctionTime=e.readString(),this._sanctionAgeHours=e.readInt())}get userId(){return this._userId}get userName(){return this._userName}get figure(){return this._figure}get registrationAgeInMinutes(){return this._registrationAgeInMinutes}get minutesSinceLastLogin(){return this._minutesSinceLastLogin}get online(){return this._online}get cfhCount(){return this._cfhCount}get abusiveCfhCount(){return this._abusiveCfhCount}get cautionCount(){return this._cautionCount}get banCount(){return this._banCount}get tradingLockCount(){return this._tradingLockCount}get tradingExpiryDate(){return this._tradingExpiryDate}get lastPurchaseDate(){return this._lastPurchaseDate}get identityId(){return this._identityId}get identityRelatedBanCount(){return this._identityRelatedBanCount}get primaryEmailAddress(){return this._primaryEmailAddress}get userClassification(){return this._userClassification}get lastSanctionTime(){return this._lastSanctionTime}get sanctionAgeHours(){return this._sanctionAgeHours}}class Gne{flush(){return this._data=null,!0}parse(e){return e?(this._data=new Bne(e),!0):!1}get data(){return this._data}}class Vne{flush(){return this._data=null,!0}parse(e){return e?(this._data=new Y_(e),!0):!1}get data(){return this._data}}class jne{constructor(e){this._roomId=e.readInt(),this._roomName=e.readString(),this._enterHour=e.readInt(),this._enterMinute=e.readInt()}get roomId(){return this._roomId}get roomName(){return this._roomName}get enterHour(){return this._enterHour}get enterMinute(){return this._enterMinute}}class zne{constructor(e){this._rooms=[],this._userId=e.readInt(),this._userName=e.readString();const t=e.readInt();let i=0;for(;i<t;)this._rooms.push(new jne(e)),i++}get userId(){return this._userId}get userName(){return this._userName}get rooms(){return this._rooms}}class Hne{flush(){return!0}parse(e){return this._data=new zne(e),!0}get data(){return this._data}}class Wne{flush(){return this._message="",!0}parse(e){return e?(this._message=e.readString(),!0):!1}get message(){return this._message}}class Yne{constructor(e){this._roomChatlogs=[],this._userId=e.readInt(),this._username=e.readString();const t=e.readInt();for(let i=0;i<t;i++)this._roomChatlogs.push(new Y_(e))}get userId(){return this._userId}get username(){return this._username}get roomChatlogs(){return this._roomChatlogs}}class Xne{flush(){return this._data=null,!0}parse(e){return e?(this._data=new Yne(e),!0):!1}get data(){return this._data}}class Kne{flush(){return!0}parse(e){return!!e}}class qne{flush(){return!0}parse(e){return e?(this._contentType=e.readString(),this._classId=e.readInt(),!0):!1}get contentType(){return this._contentType}get classId(){return this._classId}}class $ne{flush(){return this._boxColor=null,this._keyColor=null,!0}parse(e){return e?(this._boxColor=e.readString(),this._keyColor=e.readString(),!0):!1}get boxColor(){return this._boxColor}get keyColor(){return this._keyColor}}class Qne{flush(){return!0}parse(e){return!!e}}class Zne{flush(){return this._canCreate=!1,this._errorCode=0,!0}parse(e){return e?(this._canCreate=e.readBoolean(),this._errorCode=e.readInt(),!0):!1}get canCreate(){return this._canCreate}get errorCode(){return this._errorCode}}const TE=class TE{flush(){return!0}parse(e){return e?(this._resultCode=e.readInt(),this._roomLimit=e.readInt(),!0):!1}get resultCode(){return this._resultCode}get roomLimit(){return this._roomLimit}};TE.CREATION_ALLOWED=0,TE.ROOM_LIMIT_REACHED=1;let OS=TE;class Jne{constructor(e){this._categoryToCurrentUserCountMap=new Map,this._categoryToMaxUserCountMap=new Map;const t=e.readInt();for(let i=0;i<t;i++){const n=e.readInt(),r=e.readInt(),a=e.readInt();this._categoryToCurrentUserCountMap.set(n,r),this._categoryToMaxUserCountMap.set(n,a)}}get categoryToCurrentUserCountMap(){return this._categoryToCurrentUserCountMap}get categoryToMaxUserCountMap(){return this._categoryToMaxUserCountMap}}class ere{constructor(e,t=0,i=0){this._goalId=t,this._pageIndex=i,e&&(this._goalId=e.readInt(),this._pageIndex=e.readInt(),this._pageCount=e.readInt())}get goalId(){return this._goalId}get pageIndex(){return this._pageIndex}get pageCount(){return this._pageCount}}const la=class la{constructor(e){this._index=e.readInt(),this._popupCaption=e.readString(),this._popupDesc=e.readString(),this._showDetails=e.readInt()==1,this._picText=e.readString(),this._picRef=e.readString(),this._folderId=e.readInt(),this._userCount=e.readInt(),this._type=e.readInt(),this._type==la.TYPE_TAG?this._tag=e.readString():this._type==la.TYPE_GUEST_ROOM?this._guestRoomData=new Qc(e):this._open=e.readBoolean()}dispose(){this._disposed||(this._disposed=!0,this._guestRoomData!=null&&(this._guestRoomData.flush(),this._guestRoomData=null))}get disposed(){return this._disposed}get type(){return this._type}get index(){return this._index}get popupCaption(){return this._popupCaption}get popupDesc(){return this._popupDesc}get showDetails(){return this._showDetails}get picText(){return this._picText}get picRef(){return this._picRef}get folderId(){return this._folderId}get tag(){return this._tag}get userCount(){return this._userCount}get guestRoomData(){return this._guestRoomData}get open(){return this._open}toggleOpen(){this._open=!this._open}get maxUsers(){return this.type==la.TYPE_TAG?0:this.type==la.TYPE_GUEST_ROOM?this._guestRoomData.maxUserCount:0}};la.TYPE_TAG=1,la.TYPE_GUEST_ROOM=2,la.TYPE_FOLDER=4;let wS=la;class tre{constructor(e){this._rooms=[],this._searchType=e.readInt(),this._searchParam=e.readString();const t=e.readInt();for(let n=0;n<t;n++)this._rooms.push(new Qc(e));e.readBoolean()&&(this._ad=new wS(e))}dispose(){if(!this._disposed){if(this._disposed=!0,this._rooms!=null)for(const e of this._rooms)e.flush();this._ad!=null&&(this._ad.dispose(),this._ad=null),this._rooms=null}}get disposed(){return this._disposed}get searchType(){return this._searchType}get searchParam(){return this._searchParam}get rooms(){return this._rooms}get ad(){return this._ad}}class T4{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._id=-1,this._code=null,this._filter=null,this._localization=null,!0}parse(e){return e?(this._id=e.readInt(),this._code=e.readString(),this._filter=e.readString(),this._localization=e.readString(),!0):!1}get id(){return this._id}get code(){return this._code}get filter(){return this._filter}get localization(){return this._localization}}class ire{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._code=null,this._data=null,this._action=-1,this._closed=!1,this._mode=-1,this._rooms=[],!0}parse(e){if(!e)return!1;this._code=e.readString(),this._data=e.readString(),this._action=e.readInt(),this._closed=e.readBoolean(),this._mode=e.readInt();let t=e.readInt();for(;t>0;)this._rooms.push(new Qc(e)),t--;return!0}get code(){return this._code}get data(){return this._data}get action(){return this._action}get closed(){return this._closed}get mode(){return this._mode}get rooms(){return this._rooms}}class sre{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._code=null,this._data=null,this._results=[],!0}parse(e){if(!e)return!1;this._code=e.readString(),this._data=e.readString();let t=e.readInt();for(;t>0;)this._results.push(new ire(e)),t--;return!0}get code(){return this._code}get data(){return this._data}get results(){return this._results}}class nre{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._code=null,this._savedSearches=[],!0}parse(e){if(!e)return!1;this._code=e.readString();let t=e.readInt();for(;t>0;)this._savedSearches.push(new T4(e)),t--;return!0}get code(){return this._code}get savedSearches(){return this._savedSearches}}class rre{constructor(e){this._adId=e.readInt(),this._ownerAvatarId=e.readInt(),this._ownerAvatarName=e.readString(),this._flatId=e.readInt(),this._eventType=e.readInt(),this._eventName=e.readString(),this._eventDescription=e.readString();const t=e.readInt(),i=e.readInt(),n=new Date;let r=n.getTime();const a=t*60*1e3;r=r-a;const o=new Date(r);this._creationTime=o.getDate()+"-"+o.getMonth()+"-"+o.getFullYear()+" "+o.getHours()+":"+o.getMinutes();let l=n.getTime();const u=i*60*1e3;l=l+u,this._expirationDate=new Date(l),this._categoryId=e.readInt()}dispose(){this._disposed||(this._disposed=!0)}get disposed(){return this._disposed}get adId(){return this._adId}get ownerAvatarId(){return this._ownerAvatarId}get ownerAvatarName(){return this._ownerAvatarName}get flatId(){return this._flatId}get categoryId(){return this._categoryId}get eventType(){return this._eventType}get eventName(){return this._eventName}get eventDescription(){return this._eventDescription}get creationTime(){return this._creationTime}get expirationDate(){return this._expirationDate}}class are{flush(){return!0}parse(e){return e?(this._data=new Jne(e),!0):!1}get data(){return this._data}}class ore{flush(){return!0}parse(e){return e?(this._data=new ere(e),!0):!1}get data(){return this._data}}class lre{flush(){return!0}parse(e){return e?(this._globalId=e.readString(),this._convertedId=e.readInt(),!0):!1}get globalId(){return this._globalId}get convertedId(){return this._convertedId}}class ure{flush(){return this._userName=null,!0}parse(e){return e?(this._userName=e.readString(),!0):!1}get userName(){return this._userName}}class hre{flush(){return!0}parse(e){return e?(this._flatId=e.readInt(),this._added=e.readBoolean(),!0):!1}get flatId(){return this._flatId}get added(){return this._added}}class cre{flush(){return!0}parse(e){if(!e)return!1;this._favouriteRoomIds=[],this._limit=e.readInt();const t=e.readInt();for(let i=0;i<t;i++)this._favouriteRoomIds.push(e.readInt());return!0}get limit(){return this._limit}get favoriteRoomIds(){return this._favouriteRoomIds}}class fre{flush(){return this._userName=null,!0}parse(e){return e?(this._userName=e.readString(),!0):!1}get userName(){return this._userName}}class dre{flush(){return this._roomId=-1,this._roomName=null,!0}parse(e){return e?(this._roomId=e.readInt(),this._roomName=e.readString(),!0):!1}get roomId(){return this._roomId}get roomName(){return this._roomName}}class _re{flush(){return this._roomEnter=!1,this._roomForward=!1,this._data=null,this._staffPick=!1,this._isGroupMember=!1,this._moderation=null,this._chat=null,!0}parse(e){return e?(this._roomEnter=e.readBoolean(),this._data=new Qc(e),this._roomForward=e.readBoolean(),this._staffPick=e.readBoolean(),this._isGroupMember=e.readBoolean(),this.data.allInRoomMuted=e.readBoolean(),this._moderation=new gv(e),this.data.canMute=e.readBoolean(),this._chat=new H_(e),!0):!1}get roomEnter(){return this._roomEnter}get roomForward(){return this._roomForward}get data(){return this._data}get staffPick(){return this._staffPick}get isGroupMember(){return this._isGroupMember}get moderation(){return this._moderation}get chat(){return this._chat}}class gre{flush(){return!0}parse(e){return e?(this._data=new tre(e),!0):!1}get data(){return this._data}}class pre{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._id=-1,this._name=null,this._visible=!1,this._automatic=!1,this._automaticCategoryKey=null,this._globalCategoryKey=null,this._staffOnly=!1,!0}parse(e){return e?(this._id=e.readInt(),this._name=e.readString(),this._visible=e.readBoolean(),this._automatic=e.readBoolean(),this._automaticCategoryKey=e.readString(),this._globalCategoryKey=e.readString(),this._staffOnly=e.readBoolean(),!0):!1}get id(){return this._id}get name(){return this._name}get visible(){return this._visible}get automatic(){return this._automatic}get automaticCategoryKey(){return this._automaticCategoryKey}get globalCategoryKey(){return this._globalCategoryKey}get staffOnly(){return this._staffOnly}}class mre{flush(){return this._categories=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._categories.push(e.readString()),t--;return!0}get categories(){return this._categories}}class vre{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._id=-1,this._name=null,this._visible=!1,!0}parse(e){return e?(this._id=e.readInt(),this._name=e.readString(),this._visible=e.readBoolean(),!0):!1}get id(){return this._id}get name(){return this._name}get visible(){return this._visible}}class Ere{flush(){return this._homeRoomId=-1,this._roomIdToEnter=-1,!0}parse(e){return e?(this._homeRoomId=e.readInt(),this._roomIdToEnter=e.readInt(),!0):!1}get homeRoomId(){return this._homeRoomId}get roomIdToEnter(){return this._roomIdToEnter}}class yre{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._roomId=-1,this._areaId=-1,this._image=null,this._caption=null,!0}parse(e){return e?(this._roomId=e.readInt(),this._areaId=e.readInt(),this._image=e.readString(),this._caption=e.readString(),!0):!1}get roomId(){return this._roomId}get areaId(){return this._areaId}get image(){return this._image}get caption(){return this._caption}}class Tre{flush(){return this._rooms=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._rooms.push(new yre(e)),t--;return!0}get rooms(){return this._rooms}}class Ire{flush(){return this._topLevelContexts=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._topLevelContexts.push(new nre(e)),t--;return!0}get topLevelContexts(){return this._topLevelContexts}}class Rre{flush(){return!0}parse(e){return!!e}}class Sre{flush(){return this._searches=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._searches.push(new T4(e)),t--;return!0}get searches(){return this._searches}}class bre{flush(){return this._result=null,!0}parse(e){return e?(this._result=new sre(e),!0):!1}get result(){return this._result}}class Are{flush(){return this._windowX=0,this._windowY=0,this._windowWidth=0,this._windowHeight=0,this._leftPanelHidden=!1,this._resultsMode=0,!0}parse(e){return e?(this._windowX=e.readInt(),this._windowY=e.readInt(),this._windowWidth=e.readInt(),this._windowHeight=e.readInt(),this._leftPanelHidden=e.readBoolean(),this._resultsMode=e.readInt(),!0):!1}get windowX(){return this._windowX}get windowY(){return this._windowY}get windowWidth(){return this._windowWidth}get windowHeight(){return this._windowHeight}get leftPanelHidden(){return this._leftPanelHidden}get resultsMode(){return this._resultsMode}}class Ore{constructor(e){this._tagName=e.readString(),this._userCount=e.readInt()}get tagName(){return this._tagName}get userCount(){return this._userCount}}class wre{constructor(e){if(!e)throw new Error("invalid_wrapper");this.flush(),this.parse(e)}flush(){return this._tags=[],!0}parse(e){if(!e)return!1;this._tags=[];const t=e.readInt();let i=0;for(;i<t;)this._tags.push(new Ore(e)),i++;return!0}get tags(){return this._tags}}class Cre{flush(){return this._data=null,!0}parse(e){return e?(this._data=new wre(e),!0):!1}get data(){return this._data}}class Mre{flush(){return!0}parse(e){return!0}}class Nre{flush(){return!0}parse(e){return this._data=new rre(e),!0}get data(){return this._data}}class Pre{flush(){return this._words=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._words.push(e.readString()),t--;return!0}get words(){return this._words}}class kre{flush(){return this._roomId=0,!0}parse(e){return e?(this._roomId=e.readInt(),!0):!1}get roomId(){return this._roomId}}class xre{flush(){return!0}parse(e){return this._flatId=e.readInt(),this._resultCode=e.readInt(),!0}get flatId(){return this._flatId}get resultCode(){return this._resultCode}}class Dre{flush(){return this._categories=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._categories.push(new vre(e)),t--;return!0}get categories(){return this._categories}}class Lre{flush(){return this._categories=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._categories.push(new pre(e)),t--;return!0}get categories(){return this._categories}}class Ure{constructor(e){this._badgeCode="",this._removedBadgeCode="",this._type=e.readInt(),this._level=e.readInt(),this._badgeId=e.readInt(),this._badgeCode=e.readString(),this._points=e.readInt(),this._levelRewardPoints=e.readInt(),this._levelRewardPointType=e.readInt(),this._bonusPoints=e.readInt(),this._achievementID=e.readInt(),this._removedBadgeCode=e.readString(),this._category=e.readString(),this._showDialogToUser=e.readBoolean()}get type(){return this._type}get level(){return this._level}get points(){return this._points}get levelRewardPoints(){return this._levelRewardPoints}get levelRewardPointType(){return this._levelRewardPointType}get bonusPoints(){return this._bonusPoints}get badgeId(){return this._badgeId}get badgeCode(){return this._badgeCode}get removedBadgeCode(){return this._removedBadgeCode}get achievementID(){return this._achievementID}get category(){return this._category}get showDialogToUser(){return this._showDialogToUser}}class Fre{flush(){return this._data=null,!0}parse(e){return e?(this._data=new Ure(e),!0):!1}get data(){return this._data}}class Bre{flush(){return this._amount=0,this._amountChanged=0,this._type=-1,!0}parse(e){return e?(this._amount=e.readInt(),this._amountChanged=e.readInt(),this._type=e.readInt(),!0):!1}get amount(){return this._amount}get amountChanged(){return this._amountChanged}get type(){return this._type}}class Gre{flush(){return this._errorCode=-1,!0}parse(e){return e?(this._errorCode=e.readInt(),!0):!1}get errorCode(){return this._errorCode}}class Vre{flush(){return this._numGifts=0,!0}parse(e){return e?(this._numGifts=e.readInt(),!0):!1}get numGifts(){return this._numGifts}}class jre{flush(){return this._errorCode=0,this._messageId=0,this._timestamp=null,!0}parse(e){return e?(this._messageId=e.readInt(),this._errorCode=e.readInt(),this._timestamp=e.readString(),!0):!1}get errorCode(){return this._errorCode}get messageId(){return this._messageId}get timestamp(){return this._timestamp}}class zre{flush(){return this._key=null,!0}parse(e){return e?(this._key=e.readString(),!0):!1}get key(){return this._key}}class Hre{flush(){return this._message=null,!0}parse(e){return e?(this._message=e.readString(),!0):!1}get message(){return this._message}}class Wre{flush(){return this._enabled=!1,!0}parse(e){return e?(this._enabled=e.readBoolean(),!0):!1}get enabled(){return this._enabled}}class Yre{flush(){return this._messages=[],!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;)this._messages.push(e.readString()),t--;return!0}get messages(){return this._messages}}class Xre{flush(){return this._type=null,this._parameters=new Map,!0}parse(e){if(!e)return!1;this._type=e.readString();let t=e.readInt();for(;t>0;)this._parameters.set(e.readString(),e.readString()),t--;return!0}get type(){return this._type}get parameters(){return this._parameters}}class Kre{flush(){return this._contentType=null,this._classId=0,this._name=null,this._description=null,!0}parse(e){return e?(this._contentType=e.readString(),this._classId=e.readInt(),this._name=e.readString(),this._description=e.readString(),!0):!1}get contentType(){return this._contentType}get classId(){return this._classId}get name(){return this._name}get description(){return this._description}}class qre{flush(){return this._petId=-1,this._petName=null,this._level=0,this._figureData=null,!0}parse(e){return e?(this._petId=e.readInt(),this._petName=e.readString(),this._level=e.readInt(),this._figureData=new kw(e),!0):!1}get petId(){return this._petId}get petName(){return this._petName}get level(){return this._level}get figureData(){return this._figureData}}class $re{flush(){return this._errorCode=-1,!0}parse(e){return e?(this._errorCode=e.readInt(),!0):!1}get errorCode(){return this._errorCode}}class Qre{flush(){return!0}parse(e){return!0}}class Zre{flush(){return this._alertMessage=null,!0}parse(e){return e?(this._alertMessage=e.readString(),e.bytesAvailable&&(this._titleMessage=e.readString()),!0):!1}get alertMessage(){return this._alertMessage}get titleMessage(){return this._titleMessage}}class Jre{flush(){return this._items=new li,!0}parse(e){if(!e)return!1;let t=e.readInt();for(;t>0;){const i=e.readInt();let n=e.readInt();const r=[];for(;n>0;)r.push(e.readInt()),n--;this._items.add(i,r),t--}return!0}getItemsByCategory(e){return this._items.getValue(e)}get categories(){return this._items.getKeys()}}class eae{constructor(e,t,i){this._code=e,this._errorMessage=t,this._isAllowed=i}get code(){return this._code}get errorMessage(){return this._errorMessage}get isAllowed(){return this._isAllowed}}const Ss=class Ss{};Ss.USE_GUIDE_TOOL="USE_GUIDE_TOOL",Ss.GIVE_GUIDE_TOUR="GIVE_GUIDE_TOUR",Ss.JUDGE_CHAT_REVIEWS="JUDGE_CHAT_REVIEWS",Ss.VOTE_IN_COMPETITIONS="VOTE_IN_COMPETITIONS",Ss.CALL_ON_HELPERS="CALL_ON_HELPERS",Ss.CITIZEN="CITIZEN",Ss.TRADE="TRADE",Ss.HEIGHTMAP_EDITOR_BETA="HEIGHTMAP_EDITOR_BETA",Ss.BUILDER_AT_WORK="BUILDER_AT_WORK",Ss.NAVIGATOR_ROOM_THUMBNAIL_CAMERA="NAVIGATOR_ROOM_THUMBNAIL_CAMERA",Ss.CAMERA="CAMERA",Ss.MOUSE_ZOOM="MOUSE_ZOOM";let QP=Ss;class tae{flush(){return this._perks=[],!0}parse(e){if(!e)return!1;this._perks=[];const t=e.readInt();for(let i=0;i<t;i++)this._perks.push(new eae(e.readString(),e.readString(),e.readBoolean()));return!0}isAllowed(e){let t=!1;for(const i of this._perks)if(i.code===e){t=i.isAllowed;break}return t}get perks(){return this._perks}}class iae{flush(){return this._objectId=-1,this._figureData=null,!0}parse(e){return this._objectId=e.readInt(),e.bytesAvailable&&(this._figureData=new Hv(e.readString())),!0}get objectId(){return this._objectId}get figureData(){return this._figureData}}class sae{flush(){return this._objectId=0,this._nameValidationStatus=0,this._nameValidationInfo=null,!0}parse(e){return this._objectId=e.readInt(),this._nameValidationStatus=e.readInt(),this._nameValidationInfo=e.readString(),!0}get objectId(){return this._objectId}get nameValidationStatus(){return this._nameValidationStatus}get nameValidationInfo(){return this._nameValidationInfo}}class nae{flush(){return this._roomIndex=-1,this._petId=-1,this._level=-1,!0}parse(e){return this._roomIndex=e.readInt(),this._petId=e.readInt(),this._level=e.readInt(),!0}get roomIndex(){return this._roomIndex}get petId(){return this._petId}get level(){return this._level}}class rae{flush(){return this._currentAge=-1,this._requiredAge=-1,!0}parse(e){return this._currentAge=e.readInt(),this._requiredAge=e.readInt(),!0}get currentAge(){return this._currentAge}get requiredAge(){return this._requiredAge}}class aae{flush(){return this._petId=-1,this._commands=[],this._enabledCommands=[],!0}parse(e){this._petId=e.readInt();let t=e.readInt();for(;t>0;)this._commands.push(e.readInt()),t--;let i=e.readInt();for(;i>0;)this._enabledCommands.push(e.readInt()),i--;return!0}get petId(){return this._petId}get commands(){return this._commands}get enabledCommands(){return this._enabledCommands}}class oae{constructor(e,t,i){this._value=e,this._choiceText=t,this._choiceType=i}get value(){return this._value}set value(e){this._value=e}get choiceText(){return this._choiceText}set choiceText(e){this._choiceText=e}get choiceType(){return this._choiceType}set choiceType(e){this._choiceType=e}}class lae{constructor(){this._children=[],this._questionChoices=[]}get questionId(){return this._questionId}set questionId(e){this._questionId=e}get questionType(){return this._questionType}set questionType(e){this._questionType=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get questionText(){return this._questionText}set questionText(e){this._questionText=e}get questionCategory(){return this._questionCategory}set questionCategory(e){this._questionCategory=e}get questionAnswerType(){return this._questionAnswerType}set questionAnswerType(e){this._questionAnswerType=e}get questionAnswerCount(){return this._questionAnswerCount}set questionAnswerCount(e){this._questionAnswerCount=e}get children(){return this._children}set children(e){this._children=e}get questionChoices(){return this._questionChoices}set questionChoices(e){this._questionChoices=e}}class uae{constructor(){this._id=-1,this._startMessage="",this._endMessage="",this._numQuestions=0,this._questionArray=[],this._npsPoll=!1}flush(){return this._id=-1,this._startMessage="",this._endMessage="",this._numQuestions=0,this._questionArray=[],!0}parse(e){this._id=e.readInt(),this._startMessage=e.readString(),this._endMessage=e.readString(),this._numQuestions=e.readInt();for(let t=0;t<this._numQuestions;t++){const i=this.parsePollQuestion(e),n=e.readInt();for(let r=0;r<n;r++)i.children.push(this.parsePollQuestion(e));this._questionArray.push(i)}return this._npsPoll=e.readBoolean(),!0}parsePollQuestion(e){const t=new lae;if(t.questionId=e.readInt(),t.sortOrder=e.readInt(),t.questionType=e.readInt(),t.questionText=e.readString(),t.questionCategory=e.readInt(),t.questionAnswerType=e.readInt(),t.questionAnswerCount=e.readInt(),t.questionType==1||t.questionType==2)for(let i=0;i<t.questionAnswerCount;i++)t.questionChoices.push(new oae(e.readString(),e.readString(),e.readInt()));return t}get id(){return this._id}get startMessage(){return this._startMessage}get endMessage(){return this._endMessage}get numQuestions(){return this._numQuestions}get questionArray(){return this._questionArray}get npsPoll(){return this._npsPoll}}class hae{flush(){throw!0}parse(e){return!0}}class cae{constructor(){this._id=-1,this._type="",this._headline="",this._summary=""}flush(){return this._id=-1,this._type="",this._summary="",!0}parse(e){return this._id=e.readInt(),this._type=e.readString(),this._headline=e.readString(),this._summary=e.readString(),!0}get id(){return this._id}get type(){return this._type}get headline(){return this._headline}get summary(){return this._summary}}class fae{flush(){return this._userId=-1,this._value="",this._answerCounts=null,!0}parse(e){this._userId=e.readInt(),this._value=e.readString(),this._answerCounts=new Map;const t=e.readInt();for(let i=0;i<t;i++){const n=e.readString(),r=e.readInt();this._answerCounts.set(n,r)}return!0}get userId(){return this._userId}get value(){return this._value}get answerCounts(){return this._answerCounts}}class dae{flush(){return this._questionId=-1,this._answerCounts=null,!0}parse(e){this._questionId=e.readInt(),this._answerCounts=new Map;const t=e.readInt();for(let i=0;i<t;i++){const n=e.readString(),r=e.readInt();this._answerCounts.set(n,r)}return!0}get questionId(){return this._questionId}get answerCounts(){return this._answerCounts}}class _ae{constructor(){this._pollType=null,this._pollId=-1,this._questionId=-1,this._duration=-1,this._question=null}flush(){return this._pollType=null,this._pollId=-1,this._questionId=-1,this._duration=-1,this._question=null,!0}parse(e){this._pollType=e.readString(),this._pollId=e.readInt(),this._questionId=e.readInt(),this._duration=e.readInt();const t=e.readInt(),i=e.readInt(),n=e.readInt(),r=e.readString();if(this._question={id:t,number:i,type:n,content:r},this._question.type==1||this._question.type==2){this._question.selection_min=e.readInt();const a=e.readInt();this._question.selections=[],this._question.selection_values=[],this._question.selection_count=a,this._question.selection_max=a;for(let o=0;o<a;o++)this._question.selection_values.push(e.readString()),this._question.selections.push(e.readString())}return!0}get pollType(){return this._pollType}get pollId(){return this._pollId}get questionId(){return this._questionId}get duration(){return this._duration}get question(){return this._question}}class gae{flush(){return this._question=null,this._choices=[],!0}parse(e){this._question=e.readString(),this._choices=[];const t=e.readInt();let i=0;for(;i<t;)this._choices.push(e.readString()),i++;return!0}get question(){return this._question}get choices(){return this._choices.slice()}}class pae{constructor(e){this._rewardUserLimits=[],this._hasGoalExpired=e.readBoolean(),this._personalContributionScore=e.readInt(),this._personalContributionRank=e.readInt(),this._communityTotalScore=e.readInt(),this._communityHighestAchievedLevel=e.readInt(),this._scoreRemainingUntilNextLevel=e.readInt(),this._percentCompletionTowardsNextLevel=e.readInt(),this._goalCode=e.readString(),this._timeRemainingInSeconds=e.readInt();const t=e.readInt();for(let i=0;i<t;i++)this._rewardUserLimits.push(e.readInt())}dispose(){this._rewardUserLimits=null}get disposed(){return this._rewardUserLimits==null}get hasGoalExpired(){return this._hasGoalExpired}get personalContributionScore(){return this._personalContributionScore}get personalContributionRank(){return this._personalContributionRank}get communityTotalScore(){return this._communityTotalScore}get communityHighestAchievedLevel(){return this._communityHighestAchievedLevel}get scoreRemainingUntilNextLevel(){return this._scoreRemainingUntilNextLevel}get percentCompletionTowardsNextLevel(){return this._percentCompletionTowardsNextLevel}get timeRemainingInSeconds(){return this._timeRemainingInSeconds}get rewardUserLimits(){return this._rewardUserLimits}get goalCode(){return this._goalCode}}class mae{constructor(e){this._communityGoalId=e.readInt(),this._communityGoalCode=e.readString(),this._userRank=e.readInt(),this._rewardCode=e.readString(),this._badge=e.readBoolean(),this._localizedName=e.readString()}get communityGoalId(){return this._communityGoalId}get communityGoalCode(){return this._communityGoalCode}get userRank(){return this._userRank}get rewardCode(){return this._rewardCode}get badge(){return this._badge}get localizedName(){return this._localizedName}}class vae{flush(){return this._prizes=[],!0}parse(e){if(!e)return!1;const t=e.readInt();for(let i=0;i<t;i++)this._prizes.push(new mae(e));return!0}get prizes(){return this._prizes}}class Eae{constructor(e){this._userId=e.readInt(),this._userName=e.readString(),this._figure=e.readString(),this._rank=e.readInt(),this._currentScore=e.readInt()}get userId(){return this._userId}get userName(){return this._userName}get figure(){return this._figure}get rank(){return this._rank}get currentScore(){return this._currentScore}}class yae{constructor(e){this._hof=[],this._goalCode=e.readString();const t=e.readInt();for(let i=0;i<t;i++)this._hof.push(new Eae(e))}dispose(){this._hof=null}get disposed(){return this._hof==null}get hof(){return this._hof}get goalCode(){return this._goalCode}}class Tae{flush(){return this._data=null,!0}parse(e){return e?(this._data=new yae(e),!0):!1}get data(){return this._data}}class Iae{flush(){return this._data=null,!0}parse(e){return e?(this._data=new pae(e),!0):!1}get data(){return this._data}}class Rae{flush(){return this._state=-1,this._userCount=-1,this._userCountGoal=-1,!0}parse(e){return e?(this._state=e.readInt(),this._userCount=e.readInt(),this._userCountGoal=e.readInt(),!0):!1}get state(){return this._state}get userCount(){return this._userCount}get userCountGoal(){return this._userCountGoal}}class Sae{flush(){return this._imageUri="",!0}parse(e){return e?(this._imageUri=e.readString(),!0):!1}get imageUri(){return this._imageUri}}class bae{flush(){return!0}parse(e){return e?(this._expired=e.readBoolean(),!0):!1}get expired(){return this._expired}}class $u{constructor(e){this._receiveTime=new Date,this._campaignCode=e.readString(),this._completedQuestsInCampaign=e.readInt(),this._questCountInCampaign=e.readInt(),this._activityPointType=e.readInt(),this._id=e.readInt(),this._accepted=e.readBoolean(),this._type=e.readString(),this._imageVersion=e.readString(),this._rewardCurrencyAmount=e.readInt(),this._localizationCode=e.readString(),this._completedSteps=e.readInt(),this._totalSteps=e.readInt(),this._sortOrder=e.readInt(),this._catalogPageName=e.readString(),this._chainCode=e.readString(),this._easy=e.readBoolean()}static getCampaignLocalizationKeyForCode(e){return"quests."+e}get campaignCode(){return this._campaignCode}get localizationCode(){return this._localizationCode}get completedQuestsInCampaign(){return this._completedQuestsInCampaign}get questCountInCampaign(){return this._questCountInCampaign}get activityPointType(){return this._activityPointType}set accepted(e){this._accepted=e}get accepted(){return this._accepted}set id(e){this._id=e}get id(){return this._id}get type(){return this._type}get imageVersion(){return this._imageVersion}get rewardCurrencyAmount(){return this._rewardCurrencyAmount}get completedSteps(){return this._completedSteps}get totalSteps(){return this._totalSteps}get isCompleted(){return this._completedSteps==this._totalSteps}set waitPeriodSeconds(e){this._waitPeriodSeconds=e}get waitPeriodSeconds(){if(this._waitPeriodSeconds<1)return 0;const t=new Date().getTime()-this._receiveTime.getTime();return Math.max(0,this._waitPeriodSeconds-Math.floor(t/1e3))}getCampaignLocalizationKey(){return $u.getCampaignLocalizationKeyForCode(this.campaignCode)}getQuestLocalizationKey(){return this.getCampaignLocalizationKey()+"."+this._localizationCode}get completedCampaign(){return this._id<1}get lastQuestInCampaign(){return this._completedQuestsInCampaign>=this._questCountInCampaign}get receiveTime(){return this._receiveTime}get sortOrder(){return this._sortOrder}get catalogPageName(){return this._catalogPageName}get chainCode(){return this._chainCode}get easy(){return this._easy}}class Aae{flush(){return this._questData=null,!0}parse(e){return e?(this._questData=new $u(e),this._showDialog=e.readBoolean(),!0):!1}get questData(){return this._questData}get showDialog(){return this._showDialog}}class Oae{flush(){return this._quest=null,!0}parse(e){return e?(e.readBoolean()&&(this._quest=new $u(e),this._easyQuestCount=e.readInt(),this._hardQuestCount=e.readInt()),!0):!1}get quest(){return this._quest}get easyQuestCount(){return this._easyQuestCount}get hardQuestCount(){return this._hardQuestCount}}class wae{flush(){return this._quest=null,!0}parse(e){return e?(this._quest=new $u(e),!0):!1}get quest(){return this._quest}}class Cae{flush(){return this._quests=[],!0}parse(e){if(!e)return!1;const t=e.readInt();for(let i=0;i<t;i++)this._quests.push(new $u(e));return this._openWindow=e.readBoolean(),!0}get quests(){return this._quests}get openWindow(){return this._openWindow}}class Mae{flush(){return this._quests=[],!0}parse(e){if(!e)return!1;const t=e.readInt();for(let i=0;i<t;i++)this._quests.push(new $u(e));return!0}get quests(){return this._quests}}class Nae{flush(){return this._recyclerFinishedStatus=-1,this._prizeId=0,!0}parse(e){return e?(this._recyclerFinishedStatus=e.readInt(),this._prizeId=e.readInt(),!0):!1}get recyclerFinishedStatus(){return this._recyclerFinishedStatus}get prizeId(){return this._prizeId}}class Pae{flush(){return this._recyclerStatus=-1,this._recyclerTimeoutSeconds=0,!0}parse(e){return e?(this._recyclerStatus=e.readInt(),this._recyclerTimeoutSeconds=e.readInt(),!0):!1}get recyclerStatus(){return this._recyclerStatus}get recyclerTimeoutSeconds(){return this._recyclerTimeoutSeconds}}class Dw{constructor(e){this._stuffIds=[],this._intParams=[],this._stuffTypeSelectionEnabled=e.readBoolean(),this._furniLimit=e.readInt();let t=e.readInt();for(;t>0;)this._stuffIds.push(e.readInt()),t--;for(this._stuffTypeId=e.readInt(),this._id=e.readInt(),this._stringParam=e.readString(),t=e.readInt();t>0;)this._intParams.push(e.readInt()),t--;this._stuffTypeSelectionCode=e.readInt()}getBoolean(e){return this._intParams[e]===1}get stuffTypeSelectionEnabled(){return this._stuffTypeSelectionEnabled}get stuffTypeSelectionCode(){return this._stuffTypeSelectionCode}set stuffTypeSelectionCode(e){this._stuffTypeSelectionCode=e}get maximumItemSelectionCount(){return this._furniLimit}get selectedItems(){return this._stuffIds}get id(){return this._id}get stringData(){return this._stringParam}get intData(){return this._intParams}get code(){return 0}get spriteId(){return this._stuffTypeId}}class kae extends Dw{constructor(e){super(e),this._type=e.readInt()}get type(){return this._type}get code(){return this._type}}class xae extends Dw{constructor(e){super(e),this._conflictingActions=[],this._triggerConf=e.readInt();let t=e.readInt();for(;t>0;)this._conflictingActions.push(e.readInt()),t--}get code(){return this._triggerConf}get conflictingActions(){return this._conflictingActions}}class Dae extends Dw{constructor(e){super(e),this._conflictingTriggers=[],this._type=e.readInt(),this._delayInPulses=e.readInt();let t=e.readInt();for(;t>0;)this._conflictingTriggers.push(e.readInt()),t--}get type(){return this._type}get code(){return this._type}get delayInPulses(){return this._delayInPulses}get conflictingTriggers(){return this._conflictingTriggers}}class Lae{flush(){return this._definition=null,!0}parse(e){return e?(this._definition=new Dae(e),!0):!1}get definition(){return this._definition}}class Uae{flush(){return this._definition=null,!0}parse(e){return e?(this._definition=new kae(e),!0):!1}get definition(){return this._definition}}class Fae{flush(){return this._definition=null,!0}parse(e){return e?(this._definition=new xae(e),!0):!1}get definition(){return this._definition}}class Bae{flush(){return this._stuffId=0,!0}parse(e){return e?(this._stuffId=e.readInt(),!0):!1}get stuffId(){return this._stuffId}}class Gae{flush(){return this._reason=0,!0}parse(e){return e?(this._reason=e.readInt(),!0):!1}get reason(){return this._reason}}class Vae{flush(){return!0}parse(e){return!!e}}class jae{flush(){return this._info=null,!0}parse(e){return e?(this._info=e.readString(),!0):!1}get info(){return this._info}}class zae{flush(){return!0}parse(e){return!!e}}class Hae{flush(){return!0}parse(e){return!0}}class Wae{constructor(){this._songDisks=new li}flush(){return this._songDisks.reset(),this._maxLength=0,!0}parse(e){this._maxLength=e.readInt();const t=e.readInt();for(let i=0;i<t;i++)this._songDisks.add(e.readInt(),e.readInt());return!0}get songDisks(){return this._songDisks}get maxLength(){return this._maxLength}}class Yae{flush(){return this._currentSongId=-1,this._currentPosition=-1,this._nextSongId=-1,this._nextPosition=-1,this._syncCount=-1,!0}parse(e){return this._currentSongId=e.readInt(),this._currentPosition=e.readInt(),this._nextSongId=e.readInt(),this._nextPosition=e.readInt(),this._syncCount=e.readInt(),!0}get currentSongId(){return this._currentSongId}get currentPosition(){return this._currentPosition}get nextSongId(){return this._nextSongId}get nextPosition(){return this._nextPosition}get syncCount(){return this._syncCount}}class Xae{flush(){return this._songId=0,this._officialSongId="",!0}parse(e){return this._officialSongId=e.readString(),this._songId=e.readInt(),!0}get songId(){return this._songId}get officialSongId(){return this._officialSongId}}class A0{constructor(e,t,i,n){this._startPlayHead=0,this._id=e,this._length=t,this._name=i,this._creator=n}get id(){return this._id}get length(){return this._length}get name(){return this._name}get creator(){return this._creator}get startPlayHeadPos(){return this._startPlayHead}set startPlayHeadPos(e){this._startPlayHead=e}}class Kae{flush(){return this._synchronizationCount=-1,this._playlist=[],!0}parse(e){this._synchronizationCount=e.readInt();const t=e.readInt();for(let i=0;i<t;i++)this._playlist.push(new A0(e.readInt(),e.readInt(),e.readString(),e.readString()));return!0}get synchronizationCount(){return this._synchronizationCount}get playList(){return this._playlist}}class qae{flush(){return this._entry=null,!0}parse(e){return this._entry=new A0(e.readInt(),e.readInt(),e.readString(),e.readString()),!0}get entry(){return this._entry}}class $ae extends A0{constructor(e,t,i,n,r){super(e,t,i,n),this._data="",this._data=r}get data(){return this._data}}class Qae{flush(){return this._songs=[],!0}parse(e){const t=e.readInt();for(let i=0;i<t;i++){const n=e.readInt();e.readString();const r=e.readString(),a=e.readString(),o=e.readInt(),l=e.readString(),u=new $ae(n,o,r,l,a);this._songs.push(u)}return!0}get songs(){return this._songs}}class Zae{constructor(){this._songDiskInventory=new li}flush(){return this._songDiskInventory.reset(),!0}parse(e){const t=e.readInt();for(let i=0;i<t;i++)this._songDiskInventory.add(e.readInt(),e.readInt());return!0}getDiskId(e){return e>=0&&e<this._songDiskInventory.length?this._songDiskInventory.getKey(e):-1}getSongId(e){return e>=0&&e<this._songDiskInventory.length?this._songDiskInventory.getWithIndex(e):-1}get songDiskCount(){return this._songDiskInventory.length}}class Jae{flush(){return this._talentTrackName=null,this._level=-1,this._rewardPerks=[],this._rewardProducts=[],!0}parse(e){if(!e)return!1;let t=0;this._talentTrackName=e.readString(),this._level=e.readInt();const i=e.readInt();for(;t<i;)this._rewardPerks.push(new noe(e)),t++;const n=e.readInt();if(t<n)for(let r=0;r<n;r++){const a=e.readString(),o=e.readInt();this._rewardProducts.push(new I4(a,o)),t++}return!0}get talentTrackName(){return this._talentTrackName}get level(){return this._level}get rewardPerks(){return this._rewardPerks}get rewardProducts(){return this._rewardProducts}}class eoe{constructor(e,t,i,n,r){this._level=e,this._state=t,this._tasks=i,this._rewardPerks=n,this._rewardProducts=r}get level(){return this._level}get state(){return this._state}get tasks(){return this._tasks}get perks(){return this._rewardPerks}get items(){return this._rewardProducts}}class toe{flush(){return this._talentTrackName=null,this._level=-1,this._maxLevel=-1,!0}parse(e){return e?(this._talentTrackName=e.readString(),this._level=e.readInt(),this._maxLevel=e.readInt(),!0):!1}get talentTrackName(){return this._talentTrackName}get level(){return this._level}get maxLevel(){return this._maxLevel}}class I4{constructor(e,t){this._productCode=e,this._vipDays=t}get productCode(){return this._productCode}get vipDays(){return this._vipDays}}class ioe{constructor(e,t,i,n,r,a){this._id=e,this._requiredLevel=t,this._badgeCode=i,this._state=n,this._currentScore=r,this._totalScore=a}get id(){return this._id}get requiredLevel(){return this._requiredLevel}get badgeCode(){return this._badgeCode}get state(){return this._state}get currentScore(){return this._currentScore}get totalScore(){return this._totalScore}}class soe{flush(){return this._type=null,this._levels=null,!0}parse(e){if(!e)return!1;this._type=e.readString(),this._levels=[];const t=e.readInt();for(let i=0;i<t;i++){const n=e.readInt(),r=e.readInt(),a=[],o=e.readInt();for(let f=0;f<o;f++){const d=e.readInt(),_=e.readInt(),g=e.readString(),p=e.readInt(),m=e.readInt(),v=e.readInt();a.push(new ioe(d,_,g,p,m,v))}const l=[],u=e.readInt();for(let f=0;f<u;f++)l.push(e.readString());const c=[],h=e.readInt();for(let f=0;f<h;f++){const d=e.readString(),_=e.readInt();c.push(new I4(d,_))}this._levels.push(new eoe(n,r,a,l,c))}return!0}get type(){return this._type}get levels(){return this._levels}}class noe{constructor(e){this._perkId=e.readInt()}get perkId(){return this._perkId}}class roe{flush(){return this._classifiedUsersNames&&(this._classifiedUsersNames=new Map),this._classifiedUsersClass&&(this._classifiedUsersClass=new Map),!0}parse(e){if(!e)return!1;let t,i,n,r=e.readInt();for(this._classifiedUsersNames=new Map,this._classifiedUsersClass=new Map;r>0;)t=e.readInt(),i=e.readString(),n=e.readString(),this._classifiedUsersNames.set(t,i),this._classifiedUsersClass.set(t,n),r--;return!0}get classifiedUsernameMap(){return this._classifiedUsersNames}get classifiedUserTypeMap(){return this._classifiedUsersClass}}class aoe extends A{constructor(e){super(e,oZ)}getParser(){return this.parser}}class ooe extends A{constructor(e){super(e,lZ)}getParser(){return this.parser}}class R4 extends A{constructor(e){super(e,uZ)}getParser(){return this.parser}}class loe extends A{constructor(e){super(e,hZ)}getParser(){return this.parser}}class uoe extends A{constructor(e){super(e,cZ)}getParser(){return this.parser}}class hoe extends A{constructor(e){super(e,fZ)}getParser(){return this.parser}}class coe extends A{constructor(e){super(e,dZ)}getParser(){return this.parser}}class foe extends A{constructor(e){super(e,_Z)}getParser(){return this.parser}}const vr=class vr extends A{constructor(e){super(e,gZ)}getParser(){return this.parser}};vr.NAME_OK=0,vr.ERROR_NAME_REQUIRED=1,vr.ERROR_NAME_TOO_SHORT=2,vr.ERROR_NAME_TOO_LONG=3,vr.ERROR_NAME_NOT_VALID=4,vr.ERROR_NAME_IN_USE=5,vr.ERROR_NAME_CHANGE_NOT_ALLOWED=6,vr.ERROR_MERGE_HOTEL_DOWN=7;let X_=vr;class doe extends A{constructor(e){super(e,pZ)}getParser(){return this.parser}}class S4 extends A{constructor(e){super(e,mZ)}getParser(){return this.parser}}class _oe extends A{constructor(e){super(e,EZ)}getParser(){return this.parser}}class goe extends A{constructor(e){super(e,yZ)}getParser(){return this.parser}}class poe extends A{constructor(e){super(e,TZ)}getParser(){return this.parser}}class moe extends A{constructor(e){super(e,IZ)}getParser(){return this.parser}}class voe extends A{constructor(e){super(e,RZ)}getParser(){return this.parser}}class Eoe extends A{constructor(e){super(e,OZ)}getParser(){return this.parser}}class yoe extends A{constructor(e){super(e,wZ)}getParser(){return this.parser}}class Toe extends A{constructor(e){super(e,CZ)}getParser(){return this.parser}}class Ioe extends A{constructor(e){super(e,MZ)}getParser(){return this.parser}}class Roe extends A{constructor(e){super(e,NZ)}getParser(){return this.parser}}class Soe extends A{constructor(e){super(e,PZ)}getParser(){return this.parser}}class boe extends A{constructor(e){super(e,kZ)}getParser(){return this.parser}}class Aoe extends A{constructor(e){super(e,xZ)}getParser(){return this.parser}}class Ooe extends A{constructor(e){super(e,DZ)}getParser(){return this.parser}}class woe extends A{constructor(e){super(e,LZ)}getParser(){return this.parser}}class Coe extends A{constructor(e){super(e,UZ)}getParser(){return this.parser}}class Moe extends A{constructor(e){super(e,FZ)}getParser(){return this.parser}}class Noe extends A{constructor(e){super(e,BZ)}getParser(){return this.parser}}class Poe extends A{constructor(e){super(e,GZ)}getParser(){return this.parser}}class koe extends A{constructor(e){super(e,VZ)}getParser(){return this.parser}}class xoe extends A{constructor(e){super(e,zZ)}getParser(){return this.parser}}class Doe extends A{constructor(e){super(e,YZ)}getParser(){return this.parser}}class Loe extends A{constructor(e){super(e,XZ)}getParser(){return this.parser}}class Uoe extends A{constructor(e){super(e,HZ)}getParser(){return this.parser}}class Foe extends A{constructor(e){super(e,KZ)}getParser(){return this.parser}}class Boe extends A{constructor(e){super(e,qZ)}getParser(){return this.parser}}class Goe extends A{constructor(e){super(e,QZ)}getParser(){return this.parser}}class Voe extends A{constructor(e){super(e,ZZ)}getParser(){return this.parser}}class joe extends A{constructor(e){super(e,eJ)}getParser(){return this.parser}}class zoe extends A{constructor(e){super(e,iJ)}getParser(){return this.parser}}class Hoe extends A{constructor(e){super(e,sJ)}getParser(){return this.parser}}class Woe extends A{constructor(e){super(e,nJ)}getParser(){return this.parser}}class Yoe extends A{constructor(e){super(e,rJ)}getParser(){return this.parser}}class Xoe extends A{constructor(e){super(e,aJ)}getParser(){return this.parser}}class Koe extends A{constructor(e){super(e,oJ)}getParser(){return this.parser}}class qoe extends A{constructor(e){super(e,lJ)}getParser(){return this.parser}}class $oe extends A{constructor(e){super(e,uJ)}getParser(){return this.parser}}class Qoe extends A{constructor(e){super(e,hJ)}getParser(){return this.parser}}class Zoe extends A{constructor(e){super(e,cJ)}getParser(){return this.parser}}class Joe extends A{constructor(e){super(e,fJ)}getParser(){return this.parser}}class ele extends A{constructor(e){super(e,dJ)}getParser(){return this.parser}}class tle extends A{constructor(e){super(e,gJ)}getParser(){return this.parser}}class ile extends A{constructor(e){super(e,die)}getParser(){return this.parser}}class sle extends A{constructor(e){super(e,_ie)}getParser(){return this.parser}}class nle extends A{constructor(e){super(e,pie)}getParser(){return this.parser}}class rle extends A{constructor(e){super(e,Eie)}getParser(){return this.parser}}class ale extends A{constructor(e){super(e,vie)}getParser(){return this.parser}}class ole extends A{constructor(e){super(e,yie)}getParser(){return this.parser}}class lle extends A{constructor(e){super(e,Tie)}getParser(){return this.parser}}class b4 extends A{constructor(e){super(e,Iie)}getParser(){return this.parser}}class ule extends A{constructor(e){super(e,cS)}getParser(){return this.parser}}class hle extends A{constructor(e){super(e,Rie)}getParser(){return this.parser}}class cle extends A{constructor(e){super(e,Sie)}getParser(){return this.parser}}class fle extends A{constructor(e){super(e,bie)}getParser(){return this.parser}}class dle extends A{constructor(e){super(e,Aie)}getParser(){return this.parser}}class _le extends A{constructor(e){super(e,Oie)}getParser(){return this.parser}}class gle extends A{constructor(e){super(e,wie)}getParser(){return this.parser}}class ple extends A{constructor(e){super(e,Mie)}getParser(){return this.parser}}class mle extends A{constructor(e){super(e,Nie)}getParser(){return this.parser}}class vle extends A{constructor(e){super(e,Pie)}getParser(){return this.parser}}class CS extends A{constructor(e){super(e,kie)}getParser(){return this.parser}}class Ele extends A{constructor(e){super(e,Die)}getParser(){return this.parser}}class yle extends A{constructor(e){super(e,Lie)}getParser(){return this.parser}}class Tle extends A{constructor(e){super(e,Uie)}getParser(){return this.parser}}class Ile extends A{constructor(e){super(e,Fie)}getParser(){return this.parser}}class Rle extends A{constructor(e){super(e,Bie)}getParser(){return this.parser}}class Sle extends A{constructor(e){super(e,Gie)}getParser(){return this.parser}}class ble extends A{constructor(e){super(e,Vie)}getParser(){return this.parser}}class Ale extends A{constructor(e){super(e,jie)}getParser(){return this.parser}}class Ole extends A{constructor(e){super(e,zie)}getParser(){return this.parser}}class wle extends A{constructor(e){super(e,Hie)}getParser(){return this.parser}}class Cle extends A{constructor(e){super(e,Wie)}getParser(){return this.parser}}class Mle extends A{constructor(e){super(e,Yie)}getParser(){return this.parser}}class Nle extends A{constructor(e){super(e,Xie)}getParser(){return this.parser}}class Ple extends A{constructor(e){super(e,Kie)}getParser(){return this.parser}}class A4 extends A{constructor(e){super(e,qie)}getParser(){return this.parser}}class kle extends A{constructor(e){super(e,$ie)}getParser(){return this.parser}}class xle extends A{constructor(e){super(e,Qie)}getParser(){return this.parser}}class Dle extends A{constructor(e){super(e,Zie)}getParser(){return this.parser}}class Lle extends A{constructor(e){super(e,_S)}getParser(){return this.parser}}class Ule extends A{constructor(e){super(e,Jie)}getParser(){return this.parser}}class Fle extends A{constructor(e){super(e,gS)}getParser(){return this.parser}}class Ble extends A{constructor(e){super(e,pS)}getParser(){return this.parser}}class Gle extends A{constructor(e){super(e,ese)}getParser(){return this.parser}}class Vle extends A{constructor(e){super(e,tse)}getParser(){return this.parser}}class jle extends A{constructor(e){super(e,ise)}getParser(){return this.parser}}class zle extends A{constructor(e){super(e,sse)}getParser(){return this.parser}}class Hle extends A{constructor(e){super(e,nse)}getParser(){return this.parser}}class Wle extends A{constructor(e){super(e,ase)}getParser(){return this.parser}}class Yle extends A{constructor(e){super(e,lse)}getParser(){return this.parser}}class Xle extends A{constructor(e){super(e,use)}getParser(){return this.parser}}class Kle extends A{constructor(e){super(e,mS)}getParser(){return this.parser}}class qle extends A{constructor(e){super(e,hse)}getParser(){return this.parser}}class $le extends A{constructor(e){super(e,vS)}getParser(){return this.parser}}class Qle extends A{constructor(e){super(e,cse)}getParser(){return this.parser}}class Zle extends A{constructor(e){super(e,fse)}getParser(){return this.parser}}class O4 extends A{constructor(e){super(e,dse)}getParser(){return this.parser}}class Jle extends A{constructor(e){super(e,_se)}getParser(){return this.parser}}class eue extends A{constructor(e){super(e,gse)}getParser(){return this.parser}}class tue extends A{constructor(e){super(e,b0)}getParser(){return this.parser}}class iue extends A{constructor(e){super(e,b0)}getParser(){return this.parser}}class sue extends A{constructor(e){super(e,b0)}getParser(){return this.parser}}class nue extends A{constructor(e){super(e,b0)}getParser(){return this.parser}}class rue extends A{constructor(e){super(e,mse)}getParser(){return this.parser}}class aue extends A{constructor(e){super(e,vse)}getParser(){return this.parser}}class MS extends A{constructor(e){super(e,Ese)}getParser(){return this.parser}}class oue extends A{constructor(e){super(e,yse)}getParser(){return this.parser}}class lue extends A{constructor(e){super(e,Tse)}getParser(){return this.parser}}class uue extends A{constructor(e){super(e,Ise)}getParser(){return this.parser}}class w4 extends A{constructor(e){super(e,Rse)}getParser(){return this.parser}}class hue extends A{constructor(e){super(e,Sse)}getParser(){return this.parser}}class cue extends A{constructor(e){super(e,bse)}getParser(){return this.parser}}class fue extends A{constructor(e){super(e,Ase)}getParser(){return this.parser}}class due extends A{constructor(e){super(e,Cse)}getParser(){return this.parser}}class _ue extends A{constructor(e){super(e,Mse)}getParser(){return this.parser}}class gue extends A{constructor(e){super(e,Nse)}getParser(){return this.parser}}class pue extends A{constructor(e){super(e,Pse)}getParser(){return this.parser}}class mue extends A{constructor(e){super(e,kse)}getParser(){return this.parser}}class vue extends A{constructor(e){super(e,xse)}getParser(){return this.parser}}class Eue extends A{constructor(e){super(e,Dse)}getParser(){return this.parser}}class yue extends A{constructor(e){super(e,Lse)}getParser(){return this.parser}}class Tue extends A{constructor(e){super(e,Use)}getParser(){return this.parser}}class Iue extends A{constructor(e){super(e,Fse)}getParser(){return this.parser}}class Rue extends A{constructor(e){super(e,Bse)}getParser(){return this.parser}}class Sue extends A{constructor(e){super(e,Gse)}getParser(){return this.parser}}class bue extends A{constructor(e){super(e,Vse)}getParser(){return this.parser}}class Aue extends A{constructor(e){super(e,jse)}getParser(){return this.parser}}const Ce=class Ce{};Ce.LOGOUT=0,Ce.JUST_BANNED=1,Ce.CONCURRENT_LOGIN=2,Ce.CONNECTION_LOST_TO_PEER=3,Ce.AVATAR_IDENTITY_CHANGE=4,Ce.REMOVE_FURNITURE_TOOL=5,Ce.STILL_BANNED=10,Ce.DUAL_LOGIN_BY_USERID=11,Ce.HOTEL_CLOSED=12,Ce.DUAL_LOGIN_BY_IP=13,Ce.PEER_CONNECTION_MISSING=16,Ce.NO_LOGIN_PERMISSION=17,Ce.DUPLICATE_CONNECTION=18,Ce.HOTEL_CLOSING=19,Ce.INCORRECT_PASSWORD=20,Ce.INVALID_LOGIN_TICKET=22,Ce.VERSION_CHECK_URL=23,Ce.VERSION_CHECK_PROPERTY=24,Ce.VERSION_CHECK_MACHINE_ID=25,Ce.NO_MESSENGER_SESSION=26,Ce.USER_NOT_FOUND=27,Ce.CRYPTO_NOT_INITIALIZED=28,Ce.DEV_CRYPTO_NOT_ALLOWED=29,Ce.DUPLICATE_UUID_DETECTED=100,Ce.OLD_SESSION_IN_PROXY=101,Ce.PUBLIC_KEY_NOT_NUMERIC=102,Ce.PUBLIC_KEY_TOO_SHORT=103,Ce.SOCKET_READ_GENERIC=104,Ce.SOCKET_READ_FIRST_BYTE=105,Ce.SOCKET_READ_LENGTH=106,Ce.SOCKET_READ_BODY=107,Ce.SOCKET_READ_POLICY=108,Ce.SOCKET_IO_EXCEPTION=109,Ce.SOCKET_WRONG_CRYPTO=110,Ce.PROXY_RUNTIME_EXCEPTION=111,Ce.IDLE_CONNECTION=112,Ce.PONG_TIMEOUT=113,Ce.IDLE_CONNECTION_NOT_AUTH=114,Ce.IDLE_CONNECTION_NO_USER_ID=115,Ce.WRITE_CLOSED_CHANNEL=116,Ce.SOCKET_WRITE_EXCEPTION_1=117,Ce.SOCKET_WRITE_EXCEPTION_2=118,Ce.SOCKET_WRITE_EXCEPTION_3=119;let kh=Ce;class Oue extends A{constructor(e){super(e,zse)}getParser(){return this.parser}get reasonString(){switch(this.getParser().reason){case kh.JUST_BANNED:case kh.STILL_BANNED:return"banned";case kh.CONCURRENT_LOGIN:return"concurrentlogin";case kh.INCORRECT_PASSWORD:return"incorrectpassword";default:return"logout"}}}class wue extends A{constructor(e){super(e,Hse)}getParser(){return this.parser}}class Cue extends A{constructor(e){super(e,Wse)}getParser(){return this.parser}}class C4 extends A{constructor(e){super(e,Yse)}getParser(){return this.parser}}class Mue extends A{constructor(e){super(e,Xse)}getParser(){return this.parser}}class Nue extends A{constructor(e){super(e,Kse)}getParser(){return this.parser}}class Pue extends A{constructor(e){super(e,qse)}getParser(){return this.parser}}class kue extends A{constructor(e){super(e,$se)}getParser(){return this.parser}}class xue extends A{constructor(e){super(e,Qse)}getParser(){return this.parser}}class Due extends A{constructor(e){super(e,Zse)}getParser(){return this.parser}}class Lue extends A{constructor(e){super(e,Jse)}getParser(){return this.parser}}class Uue extends A{constructor(e){super(e,ene)}getParser(){return this.parser}}class Fue extends A{constructor(e){super(e,tne)}getParser(){return this.parser}}class Bue extends A{constructor(e){super(e,ES)}getParser(){return this.parser}}class Gue extends A{constructor(e){super(e,ine)}getParser(){return this.parser}}class Vue extends A{constructor(e){super(e,yS)}getParser(){return this.parser}}class jue extends A{constructor(e){super(e,nne)}getParser(){return this.parser}}class zue extends A{constructor(e){super(e,rne)}getParser(){return this.parser}}class M4 extends A{constructor(e){super(e,ane)}getParser(){return this.parser}}class N4 extends A{constructor(e){super(e,TS)}getParser(){return this.parser}}class Hue extends A{constructor(e){super(e,one)}getParser(){return this.parser}}class Wue extends A{constructor(e){super(e,lne)}getParser(){return this.parser}}class Yue extends A{constructor(e){super(e,une)}getParser(){return this.parser}}class Xue extends A{constructor(e){super(e,hne)}getParser(){return this.parser}}class P4 extends A{constructor(e){super(e,cne)}getParser(){return this.parser}}class Kue extends A{constructor(e){super(e,IS)}getParser(){return this.parser}}class que extends A{constructor(e){super(e,RS)}getParser(){return this.parser}}class $ue extends A{constructor(e){super(e,fne)}getParser(){return this.parser}}class Que extends A{constructor(e){super(e,dne)}getParser(){return this.parser}}class Zue extends A{constructor(e){super(e,_ne)}getParser(){return this.parser}}class Jue extends A{constructor(e){super(e,gne)}getParser(){return this.parser}}const R=class R{};R.ACHIEVEMENT_LIST=305,R.AUTHENTICATED=2491,R.AUTHENTICATION=-1,R.AVAILABILITY_STATUS=2033,R.BUILDERS_CLUB_EXPIRED=1452,R.CLUB_OFFERS=2405,R.CATALOG_PAGE=804,R.CATALOG_PAGE_LIST=1032,R.CATALOG_PURCHASE_OK=869,R.CATALOG_PURCHASE_ERROR=1404,R.CATALOG_PURCHASE_NOT_ALLOWED=3770,R.PRODUCT_OFFER=3388,R.LIMITED_SOLD_OUT=377,R.CATALOG_PUBLISHED=1866,R.CFH_RESULT_MESSAGE=3635,R.CLIENT_LATENCY=10,R.CLIENT_PING=3928,R.DESKTOP_CAMPAIGN=1745,R.DESKTOP_NEWS=286,R.DESKTOP_VIEW=122,R.BUNDLE_DISCOUNT_RULESET=2347,R.FIRST_LOGIN_OF_DAY=793,R.FURNITURE_ALIASES=1723,R.FURNITURE_DATA=2547,R.FURNITURE_FLOOR=1778,R.FURNITURE_FLOOR_ADD=1534,R.FURNITURE_FLOOR_REMOVE=2703,R.FURNITURE_FLOOR_UPDATE=3776,R.FURNITURE_ITEMDATA=2202,R.FURNITURE_STATE=2376,R.FURNITURE_GROUP_CONTEXT_MENU_INFO=3293,R.FURNITURE_POSTIT_STICKY_POLE_OPEN=2366,R.GAME_CENTER_ACHIEVEMENTS=2265,R.GAME_CENTER_GAME_LIST=222,R.GAME_CENTER_STATUS=2893,R.GAME_CENTER_IN_ARENA_QUEUE=872,R.GAME_CENTER_STOP_COUNTER=3191,R.GAME_CENTER_USER_LEFT_GAME=3138,R.GAME_CENTER_DIRECTORY_STATUS=2246,R.GAME_CENTER_STARTING_GAME_FAILED=2142,R.GAME_CENTER_JOINING_FAILED=1730,R.GAMESTATUSMESSAGE=3805,R.GAMEACHIEVEMENTS=1689,R.GAMEINVITE=904,R.JOININGQUEUEFAILED=3035,R.JOINEDQUEUEMESSAGE=2260,R.LEFTQUEUE=1477,R.LOAD_GAME_URL=2624,R.LOADGAME=3654,R.UNLOADGAME=1715,R.ACHIEVEMENTRESOLUTIONCOMPLETED=740,R.ACHIEVEMENTRESOLUTIONPROGRESS=3370,R.ACHIEVEMENTRESOLUTIONS=66,R.GENERIC_ALERT=3801,R.MODERATOR_MESSAGE=2030,R.GENERIC_ERROR=1600,R.GIFT_WRAPPER_CONFIG=2234,R.GROUP_BADGES=2402,R.GROUP_CREATE_OPTIONS=2159,R.GROUP_FORUM_DATA=3011,R.GROUP_FORUM_LIST=3001,R.GROUP_FORUM_THREADS=1073,R.GROUP_FORUM_POST=2049,R.GROUP_FORUM_POST_THREAD=1862,R.GROUP_FORUM_THREAD_MESSAGES=509,R.GROUP_FORUM_UNREAD_COUNT=2379,R.GROUP_FORUM_UPDATE_MESSAGE=324,R.GROUP_FORUM_UPDATE_THREAD=2528,R.GROUP_INFO=1702,R.GROUP_LIST=420,R.GROUP_MEMBER=265,R.GROUP_MEMBERS=1200,R.GROUP_MEMBERS_REFRESH=2445,R.GROUP_MEMBER_REMOVE_CONFIRM=1876,R.GROUP_PURCHASED=2808,R.GROUP_SETTINGS=3965,R.GROUP_BADGE_PARTS=2238,R.GROUP_MEMBERSHIP_REQUESTED=1180,R.GROUP_DETAILS_CHANGED=1459,R.GROUP_HABBO_JOIN_FAILED=762,R.GUILD_EDIT_FAILED=3988,R.GUILD_MEMBER_MGMT_FAILED=818,R.ITEM_DIMMER_SETTINGS=2710,R.ITEM_STACK_HELPER=2816,R.ITEM_WALL=1369,R.ITEM_WALL_ADD=2187,R.ITEM_WALL_REMOVE=3208,R.ITEM_WALL_UPDATE=2009,R.MARKETPLACE_CONFIG=1823,R.MESSENGER_ACCEPT_FRIENDS=896,R.MESSENGER_CHAT=1587,R.MESSENGER_FIND_FRIENDS=1210,R.MESSENGER_FOLLOW_FAILED=3048,R.MESSENGER_FRIEND_NOTIFICATION=3082,R.MESSENGER_FRIENDS=3130,R.MESSENGER_INIT=1605,R.MESSENGER_INSTANCE_MESSAGE_ERROR=3359,R.MESSENGER_INVITE=3870,R.MESSENGER_INVITE_ERROR=462,R.MESSENGER_MESSAGE_ERROR=892,R.MESSENGER_MINIMAIL_COUNT=2803,R.MESSENGER_MINIMAIL_NEW=1911,R.MESSENGER_RELATIONSHIPS=2016,R.MESSENGER_REQUEST=2219,R.MESSENGER_REQUEST_ERROR=892,R.MESSENGER_REQUESTS=280,R.MESSENGER_SEARCH=973,R.MESSENGER_UPDATE=2800,R.MODERATION_REPORT_DISABLED=1651,R.MODERATION_TOOL=2696,R.MODERATION_USER_INFO=2866,R.MOTD_MESSAGES=2035,R.NAVIGATOR_CATEGORIES=1562,R.NAVIGATOR_COLLAPSED=1543,R.NAVIGATOR_EVENT_CATEGORIES=3244,R.NAVIGATOR_LIFTED=3104,R.NAVIGATOR_METADATA=3052,R.NAVIGATOR_OPEN_ROOM_CREATOR=2064,R.NAVIGATOR_SEARCH=2690,R.NAVIGATOR_SEARCHES=3984,R.NAVIGATOR_SETTINGS=518,R.THUMBNAIL_UPDATE_RESULT=1927,R.CAN_CREATE_ROOM=378,R.CATEGORIES_WITH_VISITOR_COUNT=1455,R.COMPETITION_ROOMS_DATA=3954,R.CONVERTED_ROOM_ID=1331,R.GUEST_ROOM_SEARCH_RESULT=52,R.NOTIFICATION_LIST=1992,R.NOTIFICATION_OFFER_REWARD_DELIVERED=2125,R.NOTIFICATION_SIMPLE_ALERT=5100,R.NOTIFICATION_ELEMENT_POINTER=1787,R.PET_FIGURE_UPDATE=1924,R.PET_INFO=2901,R.PET_TRAINING_PANEL=1164,R.PET_LEVEL_UPDATE=2824,R.PET_SCRATCH_FAILED=1130,R.PET_OPEN_PACKAGE_REQUESTED=2380,R.PET_OPEN_PACKAGE_RESULT=546,R.PET_BREEDING=1746,R.PET_CONFIRM_BREEDING_RESULT=1625,R.PET_GO_TO_BREEDING_NEST_FAILURE=2621,R.PET_NEST_BREEDING_SUCCESS=2527,R.PET_CONFIRM_BREEDING_REQUEST=634,R.PET_BREEDING_RESULT=1553,R.RECYCLER_PRIZES=3164,R.RECYCLER_STATUS=3433,R.RECYCLER_FINISHED=468,R.ROOM_BAN_LIST=1869,R.ROOM_BAN_REMOVE=3429,R.ROOM_CREATED=1304,R.ROOM_DOORBELL=2309,R.ROOM_DOORBELL_ACCEPTED=3783,R.ROOM_DOORBELL_REJECTED=878,R.ROOM_ENTER=758,R.ROOM_ENTER_ERROR=899,R.ROOM_FORWARD=160,R.ROOM_HEIGHT_MAP=2753,R.ROOM_HEIGHT_MAP_UPDATE=558,R.ROOM_INFO=687,R.ROOM_INFO_OWNER=749,R.ROOM_MODEL=1301,R.ROOM_MODEL_BLOCKED_TILES=3990,R.ROOM_MODEL_DOOR=1664,R.ROOM_MODEL_NAME=2031,R.ROOM_MUTED=2533,R.ROOM_MUTE_USER=826,R.ROOM_PAINT=2454,R.ROOM_PROMOTION=2274,R.ROOM_QUEUE_STATUS=2208,R.ROOM_RIGHTS=780,R.ROOM_RIGHTS_CLEAR=2392,R.ROOM_RIGHTS_LIST=1284,R.ROOM_RIGHTS_LIST_ADD=2088,R.ROOM_RIGHTS_LIST_REMOVE=1327,R.ROOM_RIGHTS_OWNER=339,R.ROOM_ROLLING=3207,R.ROOM_SCORE=482,R.ROOM_SETTINGS=1498,R.ROOM_SETTINGS_CHAT=1191,R.ROOM_SETTINGS_SAVE=948,R.ROOM_SETTINGS_SAVE_ERROR=1555,R.ROOM_INFO_UPDATED=3297,R.ROOM_SPECTATOR=1033,R.ROOM_THICKNESS=3547,R.ROOM_GET_FILTER_WORDS=2937,R.ROOM_MESSAGE_NOTIFICATION=1634,R.ROOM_POPULAR_TAGS_RESULT=2012,R.INFO_FEED_ENABLE=3284,R.SECURITY_MACHINE=1488,R.MYSTERY_BOX_KEYS=2833,R.GOTMYSTERYBOXPRIZEMESSAGE=3712,R.CANCELMYSTERYBOXWAITMESSAGE=596,R.SHOWMYSTERYBOXWAITMESSAGE=3201,R.TRADE_ACCEPTED=2568,R.TRADE_CLOSED=1373,R.TRADE_COMPLETED=1001,R.TRADE_CONFIRMATION=2720,R.TRADE_LIST_ITEM=2024,R.TRADE_NOT_OPEN=3128,R.TRADE_OPEN=2505,R.TRADE_OPEN_FAILED=217,R.TRADE_OTHER_NOT_ALLOWED=1254,R.TRADE_YOU_NOT_ALLOWED=3058,R.TRADE_NO_SUCH_ITEM=2873,R.UNIT=374,R.UNIT_CHANGE_NAME=2182,R.UNIT_CHAT=1446,R.UNIT_CHAT_SHOUT=1036,R.UNIT_CHAT_WHISPER=2704,R.UNIT_DANCE=2233,R.UNIT_EFFECT=1167,R.UNIT_EXPRESSION=1631,R.UNIT_HAND_ITEM=1474,R.UNIT_IDLE=1797,R.UNIT_INFO=3920,R.UNIT_NUMBER=2324,R.UNIT_REMOVE=2661,R.UNIT_STATUS=1640,R.UNIT_TYPING=1717,R.UNSEEN_ITEMS=2103,R.USER_ACHIEVEMENT_SCORE=1968,R.USER_BADGES=717,R.USER_BADGES_ADD=2493,R.USER_BADGES_CURRENT=1087,R.USER_BOT_REMOVE=233,R.USER_BOTS=3086,R.USER_CHANGE_NAME=118,R.USER_CLOTHING=1450,R.USER_CREDITS=3475,R.USER_CURRENCY=2018,R.ACTIVITY_POINT_NOTIFICATION=2275,R.USER_EFFECTS=340,R.USER_FAVORITE_ROOM=2524,R.USER_FAVORITE_ROOM_COUNT=151,R.USER_FIGURE=2429,R.USER_FURNITURE=994,R.USER_FURNITURE_ADD=104,R.USER_FURNITURE_POSTIT_PLACED=1501,R.USER_FURNITURE_REFRESH=3151,R.USER_FURNITURE_REMOVE=159,R.USER_HOME_ROOM=2875,R.ROOM_EVENT_CANCEL=3479,R.ROOM_EVENT=1840,R.USER_IGNORED=126,R.USER_IGNORED_RESULT=207,R.USER_INFO=2725,R.USER_OUTFITS=3315,R.USER_PERKS=2586,R.USER_PERMISSIONS=411,R.USER_PET_ADD=2101,R.USER_PET_REMOVE=3253,R.USER_PETS=3522,R.USER_PROFILE=3898,R.USER_RESPECT=2815,R.USER_SANCTION_STATUS=3679,R.USER_SETTINGS=513,R.USER_SUBSCRIPTION=954,R.USER_WARDROBE_PAGE=3315,R.USER_CLASSIFICATION=966,R.GET_USER_TAGS=1255,R.WIRED_ACTION=1434,R.WIRED_CONDITION=1108,R.WIRED_ERROR=156,R.WIRED_OPEN=1830,R.WIRED_REWARD=178,R.WIRED_SAVE=1155,R.WIRED_TRIGGER=383,R.PLAYING_GAME=448,R.FURNITURE_STATE_2=3431,R.REMOVE_BOT_FROM_INVENTORY=233,R.ADD_BOT_TO_INVENTORY=1352,R.ACHIEVEMENT_PROGRESSED=2107,R.MODTOOL_ROOM_INFO=1333,R.MODTOOL_USER_CHATLOG=3377,R.MODTOOL_ROOM_CHATLOG=3434,R.MODTOOL_VISITED_ROOMS_USER=1752,R.MODERATOR_ACTION_RESULT=2335,R.ISSUE_DELETED=3192,R.ISSUE_INFO=3609,R.ISSUE_PICK_FAILED=3150,R.CFH_CHATLOG=607,R.MODERATOR_TOOL_PREFERENCES=1576,R.LOVELOCK_FURNI_START=3753,R.LOVELOCK_FURNI_FRIEND_COMFIRMED=382,R.LOVELOCK_FURNI_FINISHED=770,R.GIFT_RECEIVER_NOT_FOUND=1517,R.GIFT_OPENED=56,R.FLOOD_CONTROL=566,R.REMAINING_MUTE=826,R.USER_EFFECT_LIST=340,R.USER_EFFECT_LIST_ADD=2867,R.USER_EFFECT_LIST_REMOVE=2228,R.USER_EFFECT_ACTIVATE=1959,R.AVATAR_EFFECT_SELECTED=3473,R.CLUB_GIFT_INFO=619,R.REDEEM_VOUCHER_ERROR=714,R.REDEEM_VOUCHER_OK=3336,R.IN_CLIENT_LINK=2023,R.BOT_COMMAND_CONFIGURATION=1618,R.BOT_SKILL_LIST_UPDATE=69,R.BOT_FORCE_OPEN_CONTEXT_MENU=296,R.HAND_ITEM_RECEIVED=354,R.PET_PLACING_ERROR=2913,R.BOT_ERROR=639,R.MARKETPLACE_SELL_ITEM=54,R.MARKETPLACE_ITEM_STATS=725,R.MARKETPLACE_OWN_ITEMS=3884,R.MARKETPLACE_CANCEL_SALE=3264,R.MARKETPLACE_ITEM_POSTED=1359,R.MARKETPLACE_ITEMS_SEARCHED=680,R.MARKETPLACE_AFTER_ORDER_STATUS=2032,R.CATALOG_RECEIVE_PET_BREEDS=3331,R.CATALOG_APPROVE_NAME_RESULT=1503,R.OBJECTS_DATA_UPDATE=1453,R.PET_EXPERIENCE=2156,R.COMMUNITY_GOAL_VOTE_EVENT=1435,R.PROMO_ARTICLES=286,R.COMMUNITY_GOAL_EARNED_PRIZES=3319,R.COMMUNITY_GOAL_PROGRESS=2525,R.CONCURRENT_USERS_GOAL_PROGRESS=2737,R.QUEST_DAILY=1878,R.QUEST_CANCELLED=3027,R.QUEST_COMPLETED=949,R.COMMUNITY_GOAL_HALL_OF_FAME=3005,R.EPIC_POPUP=3945,R.SEASONAL_QUESTS=1122,R.QUESTS=3625,R.QUEST=230,R.BONUS_RARE_INFO=1533,R.CRAFTABLE_PRODUCTS=1e3,R.CRAFTING_RECIPE=2774,R.CRAFTING_RECIPES_AVAILABLE=2124,R.CRAFTING_RESULT=618,R.CAMERA_PUBLISH_STATUS=2057,R.CAMERA_PURCHASE_OK=2783,R.CAMERA_STORAGE_URL=3696,R.CAMERA_SNAPSHOT=463,R.COMPETITION_STATUS=133,R.INIT_CAMERA=3878,R.THUMBNAIL_STATUS=3595,R.ACHIEVEMENT_NOTIFICATION=806,R.CLUB_GIFT_NOTIFICATION=2188,R.INTERSTITIAL_MESSAGE=1808,R.ROOM_AD_ERROR=1759,R.AVAILABILITY_TIME=600,R.HOTEL_CLOSED_AND_OPENS=3728,R.HOTEL_CLOSES_AND_OPENS_AT=2771,R.HOTEL_WILL_CLOSE_MINUTES=1050,R.HOTEL_MAINTENANCE=1350,R.JUKEBOX_PLAYLIST_FULL=105,R.JUKEBOX_SONG_DISKS=34,R.NOW_PLAYING=469,R.OFFICIAL_SONG_ID=1381,R.PLAYLIST=1748,R.PLAYLIST_SONG_ADDED=1140,R.TRAX_SONG_INFO=3365,R.USER_SONG_DISKS_INVENTORY=2602,R.CHECK_USER_NAME=563,R.CFH_SANCTION=2782,R.CFH_TOPICS=325,R.CFH_SANCTION_STATUS=2221,R.CAMPAIGN_CALENDAR_DATA=2531,R.CAMPAIGN_CALENDAR_DOOR_OPENED=2551,R.BUILDERS_CLUB_FURNI_COUNT=3828,R.BUILDERS_CLUB_SUBSCRIPTION=1452,R.CATALOG_PAGE_EXPIRATION=2668,R.CATALOG_EARLIEST_EXPIRY=2515,R.CLUB_GIFT_SELECTED=659,R.TARGET_OFFER_NOT_FOUND=1237,R.TARGET_OFFER=119,R.DIRECT_SMS_CLUB_BUY=195,R.ROOM_AD_PURCHASE=2468,R.NOT_ENOUGH_BALANCE=3914,R.LIMITED_OFFER_APPEARING_NEXT=44,R.IS_OFFER_GIFTABLE=761,R.CLUB_EXTENDED_OFFER=3964,R.SEASONAL_CALENDAR_OFFER=1889,R.COMPETITION_ENTRY_SUBMIT=1177,R.COMPETITION_VOTING_INFO=3506,R.COMPETITION_TIMING_CODE=1745,R.COMPETITION_USER_PART_OF=3841,R.COMPETITION_NO_OWNED_ROOMS=2064,R.COMPETITION_SECONDS_UNTIL=3926,R.BADGE_POINT_LIMITS=2501,R.BADGE_REQUEST_FULFILLED=2998,R.HELPER_TALENT_TRACK=3406,R.TALENT_TRACK_LEVEL=1203,R.TALENT_TRACK_LEVEL_UP=638,R.USER_BANNED=1683,R.BOT_RECEIVED=3684,R.PET_LEVEL_NOTIFICATION=859,R.PET_RECEIVED=1111,R.MODERATION_CAUTION=1890,R.YOUTUBE_CONTROL_VIDEO=1554,R.YOUTUBE_DISPLAY_PLAYLISTS=1112,R.YOUTUBE_DISPLAY_VIDEO=1411,R.CFH_DISABLED_NOTIFY=1651,R.QUESTION=2665,R.POLL_CONTENTS=2997,R.POLL_ERROR=662,R.POLL_OFFER=3785,R.POLL_START_ROOM=5200,R.QUESTION_ANSWERED=2589,R.QUESTION_FINISHED=1066,R.CFH_PENDING_CALLS=1121,R.GUIDE_ON_DUTY_STATUS=1548,R.GUIDE_SESSION_ATTACHED=1591,R.GUIDE_SESSION_DETACHED=138,R.GUIDE_SESSION_ENDED=1456,R.GUIDE_SESSION_ERROR=673,R.GUIDE_SESSION_INVITED_TO_GUIDE_ROOM=219,R.GUIDE_SESSION_MESSAGE=841,R.GUIDE_SESSION_PARTNER_IS_TYPING=1016,R.GUIDE_SESSION_REQUESTER_ROOM=1847,R.GUIDE_SESSION_STARTED=3209,R.GUIDE_TICKET_CREATION_RESULT=3285,R.GUIDE_TICKET_RESOLUTION=2674,R.GUIDE_REPORTING_STATUS=3463,R.HOTEL_MERGE_NAME_CHANGE=1663,R.ISSUE_CLOSE_NOTIFICATION=934,R.QUIZ_DATA=2927,R.QUIZ_RESULTS=2772,R.CFH_PENDING_CALLS_DELETED=77,R.CFH_REPLY=3796,R.CHAT_REVIEW_SESSION_DETACHED=30,R.CHAT_REVIEW_SESSION_OFFERED_TO_GUIDE=735,R.CHAT_REVIEW_SESSION_RESULTS=3276,R.CHAT_REVIEW_SESSION_STARTED=143,R.CHAT_REVIEW_SESSION_VOTING_STATUS=1829,R.SCR_SEND_KICKBACK_INFO=3277,R.PET_STATUS=1907,R.GROUP_DEACTIVATE=3129,R.PET_RESPECTED=2788,R.PET_SUPPLEMENT=3441,R.NOOBNESS_LEVEL=3738,R.DISCONNECT_REASON=4e3,R.CAN_CREATE_ROOM_EVENT=2599,R.FAVORITE_GROUP_UDPATE=3403,R.NO_SUCH_FLAT=84,R.ROOM_SETTINGS_ERROR=2897,R.SHOW_ENFORCE_ROOM_CATEGORY=3896,R.CUSTOM_USER_NOTIFICATION=909,R.NEW_USER_EXPERIENCE_GIFT_OFFER=3575,R.RESTORE_CLIENT=426,R.FIREWORK_CHARGE_DATA=5210,R.NEW_USER_EXPERIENCE_NOT_COMPLETE=3639,R.CONNECTION_ERROR=1004,R.ACCOUNT_SAFETY_LOCK_STATUS_CHANGE=1243,R.PHONE_COLLECTION_STATE=2890,R.PHONE_TRY_NUMBER_RESULT=800,R.PHONE_TRY_VERIFICATION_CODE_RESULT=91,R.EXTENDED_PROFILE_CHANGED=876,R.WELCOME_GIFT_CHANGE_EMAIL_RESULT=2293,R.WELCOME_GIFT_STATUS=2707,R.HANDSHAKE_INIT_DIFFIE=1347,R.HANDSHAKE_COMPLETE_DIFFIE=3885,R.RENTABLE_SPACE_RENT_OK=2046,R.RENTABLE_SPACE_STATUS=3559,R.RENTABLE_SPACE_RENT_FAILED=1868,R.EMAIL_STATUS=612,R.CHANGE_EMAIL_RESULT=1815,R.WEEKLY_GAME_REWARD=2641,R.WEEKLY_GAME_REWARD_WINNERS=3097,R.WEEKLY_COMPETITIVE_LEADERBOARD=3512,R.WEEKLY_COMPETITIVE_FRIENDS_LEADERBOARD=3560,R.WEEKLY_GAME2_FRIENDS_LEADERBOARD=2270,R.WEEKLY_GAME2_LEADERBOARD=2196,R.RENTABLE_FURNI_RENT_OR_BUYOUT_OFFER=35,R.HANDSHAKE_IDENTITY_ACCOUNT=3523;let O=R;class ehe extends A{constructor(e){super(e,BJ)}getParser(){return this.parser}}class the extends A{constructor(e){super(e,GJ)}getParser(){return this.parser}}class ihe extends A{constructor(e){super(e,VJ)}getParser(){return this.parser}}class she extends A{constructor(e){super(e,zJ)}getParser(){return this.parser}}class nhe extends A{constructor(e){super(e,HJ)}getParser(){return this.parser}}class rhe extends A{constructor(e){super(e,WJ)}getParser(){return this.parser}}class ahe extends A{constructor(e){super(e,YJ)}getParser(){return this.parser}}class ohe extends A{constructor(e){super(e,XJ)}getParser(){return this.parser}}class k4 extends A{constructor(e){super(e,qJ)}getParser(){return this.parser}}class lhe extends A{constructor(e){super(e,$J)}getParser(){return this.parser}}class uhe extends A{constructor(e){super(e,QJ)}getParser(){return this.parser}}class hhe extends A{constructor(e){super(e,ZJ)}getParser(){return this.parser}}class che extends A{constructor(e){super(e,JJ)}getParser(){return this.parser}}class fhe extends A{constructor(e){super(e,Lte)}getParser(){return this.parser}}class dhe extends A{constructor(e){super(e,Fte)}getParser(){return this.parser}}class _he extends A{constructor(e){super(e,Ute)}getParser(){return this.parser}}class ghe extends A{constructor(e){super(e,Bte)}getParser(){return this.parser}}class phe extends A{constructor(e){super(e,Gte)}getParser(){return this.parser}}class x4 extends A{constructor(e){super(e,Vte)}getParser(){return this.parser}}class mhe extends A{constructor(e){super(e,jte)}getParser(){return this.parser}}class vhe extends A{constructor(e){super(e,zte)}getParser(){return this.parser}}class Ehe extends A{constructor(e){super(e,Hte)}getParser(){return this.parser}}class yhe extends A{constructor(e){super(e,Wte)}getParser(){return this.parser}}class The extends A{constructor(e){super(e,Yte)}getParser(){return this.parser}}class Ihe extends A{constructor(e){super(e,Xte)}getParser(){return this.parser}}class Rhe extends A{constructor(e){super(e,Kte)}getParser(){return this.parser}}class She extends A{constructor(e){super(e,$te)}get userID(){return this.getParser().userID}get userAccepts(){return this.getParser().userAccepts}getParser(){return this.parser}}class bhe extends A{constructor(e){super(e,uS)}get userID(){return this.getParser().userID}getParser(){return this.parser}}class Ahe extends A{constructor(e){super(e,Qte)}getParser(){return this.parser}}class Ohe extends A{constructor(e){super(e,Zte)}getParser(){return this.parser}}class whe extends A{constructor(e){super(e,Jte)}get firstUserID(){return this.getParser().firstUserID}get secondUserID(){return this.getParser().secondUserID}get firstUserNumItems(){return this.getParser().firstUserNumItems}get secondUserNumItems(){return this.getParser().secondUserNumItems}get firstUserNumCredits(){return this.getParser().firstUserNumCredits}get secondUserNumCredits(){return this.getParser().secondUserNumCredits}get firstUserItemArray(){return this.getParser().firstUserItemArray}get secondUserItemArray(){return this.getParser().secondUserItemArray}getParser(){return this.parser}}class Che extends A{constructor(e){super(e,eie)}getParser(){return this.parser}}class Mhe extends A{constructor(e){super(e,tie)}getParser(){return this.parser}}class Nhe extends A{constructor(e){super(e,iie)}get userID(){return this.getParser().userID}get userCanTrade(){return this.getParser().userCanTrade}get otherUserID(){return this.getParser().otherUserID}get otherUserCanTrade(){return this.getParser().otherUserCanTrade}getParser(){return this.parser}}class Phe extends A{constructor(e){super(e,hS)}getParser(){return this.parser}}class khe extends A{constructor(e){super(e,sie)}getParser(){return this.parser}}class xhe extends A{constructor(e){super(e,nie)}getParser(){return this.parser}}class Dhe extends A{constructor(e){super(e,pne)}getParser(){return this.parser}}class Lhe extends A{constructor(e){super(e,mne)}getParser(){return this.parser}}class Uhe extends A{constructor(e){super(e,vne)}getParser(){return this.parser}}class Fhe extends A{constructor(e){super(e,Ene)}getParser(){return this.parser}}class Bhe extends A{constructor(e){super(e,yne)}getParser(){return this.parser}}class Ghe extends A{constructor(e){super(e,Tne)}getParser(){return this.parser}}class Vhe extends A{constructor(e){super(e,Rne)}getParser(){return this.parser}}class jhe extends A{constructor(e){super(e,Ine)}getParser(){return this.parser}}class zhe extends A{constructor(e){super(e,bS)}getParser(){return this.parser}}class Hhe extends A{constructor(e){super(e,AS)}getParser(){return this.parser}}class Whe extends A{constructor(e){super(e,Ane)}getParser(){return this.parser}}class Yhe extends A{constructor(e){super(e,One)}getParser(){return this.parser}}class Xhe extends A{constructor(e){super(e,y4)}getParser(){return this.parser}}class Khe extends A{constructor(e){super(e,Cne)}getParser(){return this.parser}}class qhe extends A{constructor(e){super(e,Nne)}getParser(){return this.parser}}class $he extends A{constructor(e){super(e,Mne)}getParser(){return this.parser}}class Qhe extends A{constructor(e){super(e,kne)}getParser(){return this.parser}}class Zhe extends A{constructor(e){super(e,xne)}getParser(){return this.parser}}class Jhe extends A{constructor(e){super(e,Une)}getParser(){return this.parser}}class ece extends A{constructor(e){super(e,Fne)}getParser(){return this.parser}}class tce extends A{constructor(e){super(e,Gne)}getParser(){return this.parser}}class ice extends A{constructor(e){super(e,Vne)}getParser(){return this.parser}}class sce extends A{constructor(e){super(e,Hne)}getParser(){return this.parser}}class nce extends A{constructor(e){super(e,Wne)}getParser(){return this.parser}}class rce extends A{constructor(e){super(e,Xne)}getParser(){return this.parser}}class ace extends A{constructor(e){super(e,Kne)}getParser(){return this.parser}}class oce extends A{constructor(e){super(e,qne)}getParser(){return this.parser}}class D4 extends A{constructor(e){super(e,$ne)}getParser(){return this.parser}}class lce extends A{constructor(e){super(e,Qne)}getParser(){return this.parser}}class uce extends A{constructor(e){super(e,OS)}getParser(){return this.parser}}class hce extends A{constructor(e){super(e,Zne)}getParser(){return this.parser}}class cce extends A{constructor(e){super(e,are)}getParser(){return this.parser}}class fce extends A{constructor(e){super(e,ore)}getParser(){return this.parser}}class dce extends A{constructor(e){super(e,lre)}getParser(){return this.parser}}class L4 extends A{constructor(e){super(e,ure)}getParser(){return this.parser}get userName(){return this.getParser().userName}}class _ce extends A{constructor(e){super(e,hre)}getParser(){return this.parser}}class gce extends A{constructor(e){super(e,cre)}getParser(){return this.parser}}class NS extends A{constructor(e){super(e,fre)}getParser(){return this.parser}}class pce extends A{constructor(e){super(e,dre)}getParser(){return this.parser}}class PS extends A{constructor(e){super(e,_re)}getParser(){return this.parser}}class mce extends A{constructor(e){super(e,gre)}getParser(){return this.parser}}class vce extends A{constructor(e){super(e,mre)}getParser(){return this.parser}}class Ece extends A{constructor(e){super(e,Ere)}getParser(){return this.parser}}class yce extends A{constructor(e){super(e,Tre)}getParser(){return this.parser}}class Tce extends A{constructor(e){super(e,Ire)}getParser(){return this.parser}}class Ice extends A{constructor(e){super(e,Rre)}getParser(){return this.parser}}class Rce extends A{constructor(e){super(e,Sre)}getParser(){return this.parser}}class Sce extends A{constructor(e){super(e,bre)}getParser(){return this.parser}}class bce extends A{constructor(e){super(e,Are)}getParser(){return this.parser}}class Ace extends A{constructor(e){super(e,Cre)}getParser(){return this.parser}}class Oce extends A{constructor(e){super(e,Mre)}getParser(){return this.parser}}class wce extends A{constructor(e){super(e,Nre)}getParser(){return this.parser}}class Cce extends A{constructor(e){super(e,Pre)}getParser(){return this.parser}}class Mce extends A{constructor(e){super(e,kre)}getParser(){return this.parser}}class Nce extends A{constructor(e){super(e,xre)}getParser(){return this.parser}}class Pce extends A{constructor(e){super(e,Dre)}getParser(){return this.parser}}class kce extends A{constructor(e){super(e,Lre)}getParser(){return this.parser}}class xce extends A{constructor(e){super(e,Fre)}getParser(){return this.parser}}class Dce extends A{constructor(e){super(e,Bre)}getParser(){return this.parser}}class U4 extends A{constructor(e){super(e,Gre)}getParser(){return this.parser}}class Lce extends A{constructor(e){super(e,Vre)}getParser(){return this.parser}}class Uce extends A{constructor(e){super(e,jre)}getParser(){return this.parser}}class Fce extends A{constructor(e){super(e,zre)}getParser(){return this.parser}}class Bce extends A{constructor(e){super(e,Hre)}getParser(){return this.parser}}class Gce extends A{constructor(e){super(e,Wre)}getParser(){return this.parser}}class Vce extends A{constructor(e){super(e,Yre)}getParser(){return this.parser}}class jce extends A{constructor(e){super(e,Xre)}getParser(){return this.parser}}class zce extends A{constructor(e){super(e,Kre)}getParser(){return this.parser}}class Hce extends A{constructor(e){super(e,qre)}getParser(){return this.parser}}class F4 extends A{constructor(e){super(e,$re)}getParser(){return this.parser}}class Wce extends A{constructor(e){super(e,Qre)}getParser(){return this.parser}}class Yce extends A{constructor(e){super(e,Zre)}getParser(){return this.parser}}class Xce extends A{constructor(e){super(e,Jre)}getParser(){return this.parser}}class Kce{constructor(e){this._itemName=e.readString(),this._extraInfo=e.readString(),this._extraInfo==""&&(this._extraInfo=null)}get itemName(){return this._itemName}get extraInfo(){return this._extraInfo}}class qce{constructor(e){this._thumbnailUrl=e.readString(),this._thumbnailUrl==""&&(this._thumbnailUrl=null),this._productOfferList=[];const t=e.readInt();let i=0;for(;i<t;)this._productOfferList.push(new Kce(e)),i++}get productOfferList(){return this._productOfferList}get thumbnailUrl(){return this._thumbnailUrl}}class $ce{flush(){return!0}parse(e){if(!e)return!1;const t=e.readInt();this._giftOptions=[];let i=0;for(;i<t;)this._giftOptions.push(new Jce(e)),i++;return!0}get giftOptions(){return this._giftOptions}}class Qce{flush(){return!0}parse(e){return!!e}}class Zce extends A{constructor(e){super(e,$ce)}getParser(){return this.parser}}class Jce{constructor(e){this._dayIndex=e.readInt(),this._stepIndex=e.readInt(),this._options=[];const t=e.readInt();let i=0;for(;i<t;)this._options.push(new qce(e)),i++}get dayIndex(){return this._dayIndex}get stepIndex(){return this._stepIndex}get options(){return this._options}}class efe extends A{constructor(e){super(e,Qce)}getParser(){return this.parser}}class tfe extends A{constructor(e){super(e,tae)}getParser(){return this.parser}}class ife extends A{constructor(e){super(e,lS)}getParser(){return this.parser}}class B4 extends A{constructor(e){super(e,iae)}getParser(){return this.parser}}class G4 extends A{constructor(e){super(e,sae)}getParser(){return this.parser}}class V4 extends A{constructor(e){super(e,nae)}getParser(){return this.parser}}class j4 extends A{constructor(e){super(e,rae)}getParser(){return this.parser}}class sfe extends A{constructor(e){super(e,aae)}getParser(){return this.parser}}class z4 extends A{constructor(e){super(e,uae)}getParser(){return this.parser}}class H4 extends A{constructor(e){super(e,hae)}getParser(){return this.parser}}class W4 extends A{constructor(e){super(e,cae)}getParser(){return this.parser}}class Y4 extends A{constructor(e){super(e,fae)}getParser(){return this.parser}}class X4 extends A{constructor(e){super(e,_ae)}getParser(){return this.parser}}class K4 extends A{constructor(e){super(e,dae)}getParser(){return this.parser}}class q4 extends A{constructor(e){super(e,gae)}getParser(){return this.parser}}class nfe extends A{constructor(e){super(e,vae)}getParser(){return this.parser}}class rfe extends A{constructor(e){super(e,Tae)}getParser(){return this.parser}}class afe extends A{constructor(e){super(e,Iae)}getParser(){return this.parser}}class ofe extends A{constructor(e){super(e,Rae)}getParser(){return this.parser}}class lfe extends A{constructor(e){super(e,Sae)}getParser(){return this.parser}}class ufe extends A{constructor(e){super(e,bae)}getParser(){return this.parser}}class hfe extends A{constructor(e){super(e,Aae)}getParser(){return this.parser}}class cfe extends A{constructor(e){super(e,Oae)}getParser(){return this.parser}}class ffe extends A{constructor(e){super(e,wae)}getParser(){return this.parser}}class dfe extends A{constructor(e){super(e,Cae)}getParser(){return this.parser}}class _fe extends A{constructor(e){super(e,Mae)}getParser(){return this.parser}}const IE=class IE extends A{constructor(e){super(e,Nae)}getParser(){return this.parser}};IE.FINISHED_OK=1,IE.FINISHED_FAIL=2;let kS=IE;const Qd=class Qd extends A{constructor(e){super(e,Pae)}getParser(){return this.parser}};Qd.SYSTEM_STATUS_ENABLED=1,Qd.SYSTEM_STATUS_DISABLED=2,Qd.SYSTEM_STATUS_TIMEOUT=3;let xS=Qd;class DS extends A{constructor(e){super(e,eee)}getParser(){return this.parser}}class LS extends A{constructor(e){super(e,tee)}getParser(){return this.parser}}class US extends A{constructor(e){super(e,see)}getParser(){return this.parser}}class FS extends A{constructor(e){super(e,iee)}getParser(){return this.parser}}class gfe extends A{constructor(e){super(e,nS)}getParser(){return this.parser}}class BS extends A{constructor(e){super(e,nee)}getParser(){return this.parser}}class pfe extends A{constructor(e){super(e,ree)}getParser(){return this.parser}}class mfe extends A{constructor(e){super(e,aee)}getParser(){return this.parser}}class vfe extends A{constructor(e){super(e,oee)}getParser(){return this.parser}}class Efe extends A{constructor(e){super(e,uee)}getParser(){return this.parser}}class yfe extends A{constructor(e){super(e,Ree)}getParser(){return this.parser}}class Tfe extends A{constructor(e){super(e,See)}getParser(){return this.parser}}class Ife extends A{constructor(e){super(e,bee)}getParser(){return this.parser}}class $4 extends A{constructor(e){super(e,Aee)}getParser(){return this.parser}}class GS extends A{constructor(e){super(e,nte)}getParser(){return this.parser}}class VS extends A{constructor(e){super(e,rte)}getParser(){return this.parser}}class Rfe extends A{constructor(e){super(e,wee)}getParser(){return this.parser}}class jS extends A{constructor(e){super(e,Cee)}getParser(){return this.parser}}class zS extends A{constructor(e){super(e,Mee)}getParser(){return this.parser}}class HS extends A{constructor(e){super(e,Nee)}getParser(){return this.parser}}class WS extends A{constructor(e){super(e,Pee)}getParser(){return this.parser}}class YS extends A{constructor(e){super(e,kee)}getParser(){return this.parser}}class Sfe extends A{constructor(e){super(e,xee)}getParser(){return this.parser}}class XS extends A{constructor(e){super(e,Dee)}getParser(){return this.parser}}class KS extends A{constructor(e){super(e,cl)}getParser(){return this.parser}}class bfe extends A{constructor(e){super(e,Lee)}getParser(){return this.parser}}class Afe extends A{constructor(e){super(e,Uee)}getParser(){return this.parser}}class qS extends A{constructor(e){super(e,Fee)}getParser(){return this.parser}}class Ofe extends A{constructor(e){super(e,Bee)}getParser(){return this.parser}}class wfe extends A{constructor(e){super(e,Gee)}getParser(){return this.parser}}class Cfe extends A{constructor(e){super(e,Vee)}getParser(){return this.parser}}class $S extends A{constructor(e){super(e,jee)}getParser(){return this.parser}}class Mfe extends A{constructor(e){super(e,zee)}getParser(){return this.parser}}class Nfe extends A{constructor(e){super(e,Hee)}getParser(){return this.parser}}class Pfe extends A{constructor(e){super(e,oS)}getParser(){return this.parser}}class kfe extends A{constructor(e){super(e,Wee)}getParser(){return this.parser}}class Q4 extends A{constructor(e){super(e,Xee)}getParser(){return this.parser}}class xfe extends A{constructor(e){super(e,Kee)}getParser(){return this.parser}}class QS extends A{constructor(e){super(e,qee)}getParser(){return this.parser}}class ZS extends A{constructor(e){super(e,$ee)}getParser(){return this.parser}}class JS extends A{constructor(e){super(e,Qee)}getParser(){return this.parser}}class eb extends A{constructor(e){super(e,Zee)}getParser(){return this.parser}}class Dfe extends A{constructor(e){super(e,Jee)}getParser(){return this.parser}}class Lfe extends A{constructor(e){super(e,ete)}getParser(){return this.parser}}class Ufe extends A{constructor(e){super(e,ite)}getParser(){return this.parser}}class Ffe extends A{constructor(e){super(e,ste)}getParser(){return this.parser}}class tb extends A{constructor(e){super(e,pv)}getParser(){return this.parser}}class ib extends A{constructor(e){super(e,ate)}getParser(){return this.parser}}class sb extends A{constructor(e){super(e,Yo)}getParser(){return this.parser}}class nb extends A{constructor(e){super(e,ote)}getParser(){return this.parser}}class Bfe extends A{constructor(e){super(e,lte)}getParser(){return this.parser}}class rb extends A{constructor(e){super(e,ute)}getParser(){return this.parser}}class Zc extends A{constructor(e){super(e,hte)}getParser(){return this.parser}}class ab extends A{constructor(e){super(e,cte)}getParser(){return this.parser}}class Z4 extends A{constructor(e){super(e,fte)}getParser(){return this.parser}}class J4 extends A{constructor(e){super(e,dte)}getParser(){return this.parser}}class Ev extends A{constructor(e){super(e,_te)}getParser(){return this.parser}}class eF extends A{constructor(e){super(e,gte)}getParser(){return this.parser}}class tF extends A{constructor(e){super(e,pte)}getParser(){return this.parser}}class iF extends A{constructor(e){super(e,vte)}getParser(){return this.parser}}class sF extends A{constructor(e){super(e,Ete)}getParser(){return this.parser}}class nF extends A{constructor(e){super(e,yte)}getParser(){return this.parser}}class rF extends A{constructor(e){super(e,Tte)}getParser(){return this.parser}}class Lw extends A{constructor(e){super(e,Pw)}getParser(){return this.parser}}class yv extends A{constructor(e){super(e,Pw)}getParser(){return this.parser}}class Tv extends A{constructor(e){super(e,Pw)}getParser(){return this.parser}}class ob extends A{constructor(e){super(e,Ite)}getParser(){return this.parser}}class Iv extends A{constructor(e){super(e,Rte)}getParser(){return this.parser}}class lb extends A{constructor(e){super(e,Ste)}getParser(){return this.parser}}class Rv extends A{constructor(e){super(e,Nte)}getParser(){return this.parser}}class ub extends A{constructor(e){super(e,bte)}getParser(){return this.parser}}class hb extends A{constructor(e){super(e,Ate)}getParser(){return this.parser}}class aF extends A{constructor(e){super(e,Ote)}getParser(){return this.parser}}class cb extends A{constructor(e){super(e,wte)}getParser(){return this.parser}}class Sv extends A{constructor(e){super(e,Cte)}getParser(){return this.parser}}class fb extends A{constructor(e){super(e,Mte)}getParser(){return this.parser}}class bv extends A{constructor(e){super(e,Pte)}getParser(){return this.parser}}class db extends A{constructor(e){super(e,Dte)}getParser(){return this.parser}}class Gfe extends A{constructor(e){super(e,Lae)}getParser(){return this.parser}}class Vfe extends A{constructor(e){super(e,Uae)}getParser(){return this.parser}}class jfe extends A{constructor(e){super(e,Fae)}getParser(){return this.parser}}class zfe extends A{constructor(e){super(e,Bae)}getParser(){return this.parser}}const RE=class RE extends A{constructor(e){super(e,Gae)}getParser(){return this.parser}};RE.PRODUCT_DONATED_CODE=6,RE.BADGE_DONATED_CODE=7;let _b=RE;class Hfe extends A{constructor(e){super(e,Vae)}getParser(){return this.parser}}class Wfe extends A{constructor(e){super(e,jae)}getParser(){return this.parser}}class Yfe extends A{constructor(e){super(e,cee)}getParser(){return this.parser}}class Xfe extends A{constructor(e){super(e,dee)}getParser(){return this.parser}}class Kfe extends A{constructor(e){super(e,_ee)}getParser(){return this.parser}}class qfe extends A{constructor(e){super(e,gee)}getParser(){return this.parser}}class $fe extends A{constructor(e){super(e,pee)}getParser(){return this.parser}}class Qfe extends A{constructor(e){super(e,mee)}getParser(){return this.parser}}class Zfe extends A{constructor(e){super(e,vee)}getParser(){return this.parser}}class Jfe extends A{constructor(e){super(e,Eee)}getParser(){return this.parser}}class ede extends A{constructor(e){super(e,yee)}getParser(){return this.parser}}class tde extends A{constructor(e){super(e,aS)}getParser(){return this.parser}}class ide extends A{constructor(e){super(e,Tee)}getParser(){return this.parser}}class sde extends A{constructor(e){super(e,Iee)}getParser(){return this.parser}}class oF extends A{constructor(e){super(e,zae)}getParser(){return this.parser}}class lF extends A{constructor(e){super(e,Hae)}getParser(){return this.parser}}class uF extends A{constructor(e){super(e,Wae)}getParser(){return this.parser}}class hF extends A{constructor(e){super(e,Yae)}getParser(){return this.parser}}class nde extends A{constructor(e){super(e,Xae)}getParser(){return this.parser}}class rde extends A{constructor(e){super(e,Kae)}getParser(){return this.parser}}class ade extends A{constructor(e){super(e,qae)}getParser(){return this.parser}}class cF extends A{constructor(e){super(e,Qae)}getParser(){return this.parser}}class fF extends A{constructor(e){super(e,Zae)}getParser(){return this.parser}}class ode extends A{constructor(e){super(e,Jae)}getParser(){return this.parser}}class lde extends A{constructor(e){super(e,toe)}getParser(){return this.parser}}class ude extends A{constructor(e){super(e,soe)}getParser(){return this.parser}}class dF extends A{constructor(e){super(e,pJ)}getParser(){return this.parser}}class _F extends A{constructor(e){super(e,dv)}getParser(){return this.parser}}class hde extends A{constructor(e){super(e,mJ)}getParser(){return this.parser}}class cde extends A{constructor(e){super(e,JR)}getParser(){return this.parser}}class fde extends A{constructor(e){super(e,EJ)}getParser(){return this.parser}}class gF extends A{constructor(e){super(e,yJ)}getParser(){return this.parser}}class Av extends A{constructor(e){super(e,IJ)}getParser(){return this.parser}}class Uw extends A{constructor(e){super(e,RJ)}getParser(){return this.parser}}class dde extends A{constructor(e){super(e,SJ)}getParser(){return this.parser}}class _de extends A{constructor(e){super(e,bJ)}getParser(){return this.parser}}class pF extends A{constructor(e){super(e,AJ)}getParser(){return this.parser}}class mF extends A{constructor(e){super(e,OJ)}getParser(){return this.parser}}class gde extends A{constructor(e){super(e,wJ)}getParser(){return this.parser}}class pde extends A{constructor(e){super(e,CJ)}getParser(){return this.parser}}class mde extends A{constructor(e){super(e,MJ)}getParser(){return this.parser}}class vde extends A{constructor(e){super(e,eS)}getParser(){return this.parser}}class Ede extends A{constructor(e){super(e,NJ)}getParser(){return this.parser}}class yde extends A{constructor(e){super(e,PJ)}getParser(){return this.parser}}class vF extends A{constructor(e){super(e,kJ)}getParser(){return this.parser}}class Tde extends A{constructor(e){super(e,tS)}getParser(){return this.parser}}class EF extends A{constructor(e){super(e,xJ)}getParser(){return this.parser}}class Fw extends A{constructor(e){super(e,DJ)}getParser(){return this.parser}}class yF extends A{constructor(e){super(e,LJ)}getParser(){return this.parser}}class Ide extends A{constructor(e){super(e,UJ)}getParser(){return this.parser}}class Rde extends A{constructor(e){super(e,FJ)}getParser(){return this.parser}}class Sde extends A{constructor(e){super(e,iS)}getParser(){return this.parser}}const yn=class yn{constructor(e){this._type=e.readInt(),this._userId=e.readInt(),this._userName=e.readString(),this._figure=e.readString(),this._memberSince=e.readString()}get userId(){return this._userId}get userName(){return this._userName}get admin(){return this._type==yn.TYPE_ADMIN}get owner(){return this._type==yn.TYPE_OWNER}get pending(){return this._type==yn.TYPE_PENDING}get member(){return this._type!=yn.TYPE_MEMBER}get blocked(){return this._type==yn.TYPE_BLOCKED}get figure(){return this._figure}get memberSince(){return this._memberSince}};yn.TYPE_OWNER=0,yn.TYPE_ADMIN=1,yn.TYPE_PENDING=2,yn.TYPE_MEMBER=3,yn.TYPE_BLOCKED=4;let gb=yn;class TF extends A{constructor(e){super(e,rie)}getParser(){return this.parser}}class IF extends A{constructor(e){super(e,aie)}getParser(){return this.parser}}class RF extends A{constructor(e){super(e,oie)}getParser(){return this.parser}}class bde extends A{constructor(e){super(e,hie)}getParser(){return this.parser}}class Ade extends A{constructor(e){super(e,cie)}getParser(){return this.parser}}class Ode extends A{constructor(e){super(e,fie)}getParser(){return this.parser}}class wde extends A{constructor(e){super(e,roe)}getParser(){return this.parser}}class Cde{constructor(){this._data=[]}dispose(){}getMessageArray(){return this._data}}class Mde{constructor(){this._data=[]}dispose(){}getMessageArray(){return this._data}}class Nde{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Pde{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class kde{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class xde{constructor(e=0){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Dde{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class Lde{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Ude{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Fde{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ov{constructor(e="",t="",i="",n=-1,r=-1){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=[]}assignBitmap(e){const t=St.generateImageUrl(e);if(!t)return;const i=t.split(",")[1],n=Uint8Array.from(atob(i),r=>r.charCodeAt(0));this._data.push(n.byteLength,n.buffer)}assignBase64(e){const t=e.split(",")[1],i=Uint8Array.from(atob(t),n=>n.charCodeAt(0));this._data.push(i.byteLength,i.buffer)}}class pb extends Ov{constructor(e="",t="",i="",n=-1,r=-1){super(e,t,i,n,r)}}class Bde{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Gde{constructor(e,t){this._data=[e,t]}dispose(){this._data=null}getMessageArray(){return this._data}}class Vde{constructor(e,t){this._data=[e,t]}dispose(){this._data=null}getMessageArray(){return this._data}}class jde{constructor(e,t,i,n,r,a){this._data=[e,t,i,n,r,a]}dispose(){this._data=null}getMessageArray(){return this._data}}class zde{constructor(e,t,i,n){this._data=[e,t,i,n]}dispose(){this._data=null}getMessageArray(){return this._data}}class Hde{constructor(){this._data=[]}dispose(){this._data=null}getMessageArray(){return this._data}}class Wde{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Yde{constructor(){this._data=[]}dispose(){this._data=null}getMessageArray(){return this._data}}class Xde{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Kde{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class qde{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class $de{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Qde{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class Zde{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){this._data=null}}class Jde{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){this._data=null}}class e_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class t_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class i_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class s_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){this._data=null}}class n_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class r_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){this._data=null}}class a_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class o_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class l_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class u_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class h_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class c_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class f_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){this._data=null}}class d_e{constructor(e,t,i,n,r,a,o,l,u){this._data=[e,t,i,n,r,a,o,l,u]}getMessageArray(){return this._data}dispose(){}}class __e{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class g_e{constructor(e,t,i,n,r,a,o){this._data=[e,t,i,n,r,a,o]}getMessageArray(){return this._data}dispose(){}}class p_e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class m_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class v_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class E_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class y_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class T_e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class I_e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class R_e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class S_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class b_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class A_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class O_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class w_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class C_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}const dc=class dc{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}};dc.CONFIRM_LEVEL_NOT_ACCEPTED=0,dc.CONFIRM_LEVEL_NOT_SUBMITTED=1,dc.CONFIRM_LEVEL_NOT_CONFIRMED=2,dc.CONFIRM_LEVEL_COMMIT=3;let mb=dc;class M_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class N_e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class P_e{constructor(e,t){this._data=[e,t.length].concat(t)}getMessageArray(){return this._data}dispose(){}}class k_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class x_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class D_e{constructor(e,t){this._data=[e,t.length].concat(t)}getMessageArray(){return this._data}dispose(){}}class L_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class U_e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class F_e{constructor(...e){this._data=[e.length,...e]}getMessageArray(){return this._data}dispose(){}}class B_e{constructor(e,...t){this._data=[e,t.length,...t]}getMessageArray(){return this._data}dispose(){}}class G_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class V_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class j_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class z_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class H_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class W_e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Y_e{constructor(...e){this._data=[e.length,...e]}getMessageArray(){return this._data}dispose(){}}class X_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class K_e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class q_e{constructor(e,t){this._data=[t.length,...t,e]}getMessageArray(){return this._data}dispose(){}}class $_e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Q_e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Z_e{constructor(e=!0){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class J_e{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class ege{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class tge{constructor(){this._data=[]}dispose(){this._data=null}getMessageArray(){return this._data}}class ige{constructor(){this._data=[]}dispose(){this._data=null}getMessageArray(){return this._data}}class sge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class nge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class rge{constructor(e,t){this._data=[e,t]}dispose(){this._data=null}getMessageArray(){return this._data}}class age{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class oge{constructor(){this._data=[]}dispose(){this._data=null}getMessageArray(){return this._data}}class lge{constructor(){this._data=[]}dispose(){this._data=null}getMessageArray(){return this._data}}class uge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class SF{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class hge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class cge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class fge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class dge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class _ge{constructor(e,t,i,n,r,a){this._data=[e,t,i,n,r,a]}dispose(){this._data=null}getMessageArray(){return this._data}}class gge{constructor(e,t,i,n,r,a){this._data=[e,t,i,n,r,a]}dispose(){this._data=null}getMessageArray(){return this._data}}class pge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class mge{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}const uC=class uC{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}};uC.NO_ISSUE_ID=-1;let vb=uC;class vge{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}const hC=class hC{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}};hC.NO_ISSUE_ID=-1;let Eb=hC;class Ege{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class yge{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Tge{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ige{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Rge{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Sge{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class bge{constructor(e,t,i,n,r,a){this._data=[e,t,i,n,r,a.length,...a]}getMessageArray(){return this._data}dispose(){}}class Age{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Oge{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class wge{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Cge{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Mge{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Nge{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Pge{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class kge{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class xge{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Dge{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Lge{constructor(e,t){this._data=[e,t.length,...t]}getMessageArray(){return this._data}dispose(){}}class Uge{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class Fge{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class Bge{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class Gge{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Vge{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class jge{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class zge{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Hge{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class Wge{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Yge{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class Xge{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Kge{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class qge{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class $ge{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class Qge{constructor(...e){this._data=[e.length],e.forEach(t=>{this._data.push(t.k),this._data.push(t._arg_2),this._data.push(t._arg_3)})}getMessageArray(){return this._data}dispose(){}}class Zge{constructor(e,t,i,n,r){this._data=[e,t,i,n,r]}getMessageArray(){return this._data}dispose(){}}class Jge{constructor(e,t,i,n){this._data=[e,t,n,i]}getMessageArray(){return this._data}dispose(){}}class epe{constructor(e,t,i){if(this._type=e,t.length===i.length){this._data=[];for(let n=0;n<t.length;n++)this._data.push(t[n]),this._data.push(i[n])}}getMessageArray(){return this._data}dispose(){}}class bF{constructor(e,t,i,n){this._data=[`NITRO-${nv.RENDERER_VERSION.replaceAll(".","-")}`,"HTML5",cR.HTML5,hR.BROWSER]}getMessageArray(){return this._data}dispose(){}}class tpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class ipe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class AF{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class spe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class OF{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class wF{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class CF{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class npe{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class rpe{constructor(e,t,i,n,r){this._data=[e,t,i,n,r]}getMessageArray(){return this._data}dispose(){}}class ape{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class ope{constructor(e,t,i,n){this._data=[e,t,i,n.length/2,...n]}getMessageArray(){return this._data}dispose(){}}class lpe{constructor(e,t,i,n,r){this._data=[e,t,i,n,r]}getMessageArray(){return this._data}dispose(){}}class upe{constructor(e,t,i,n,r){this._data=[e,t,i,n,r]}getMessageArray(){return this._data}dispose(){}}class hpe{constructor(e,t,i,n,r){this._data=[e,t,i,n,r.length/2,...r]}getMessageArray(){return this._data}dispose(){}}class cpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class fpe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class dpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class _pe{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class gpe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class ppe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class mpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class vpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Epe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class ype{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Tpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ipe{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Rpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Spe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class bpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ape{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Ope{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class wpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Cpe{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class Mpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Npe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Ppe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class kpe{constructor(e,t){this._data=[e,t.length,...t]}getMessageArray(){return this._data}dispose(){}}class xpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Dpe{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class Lpe{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class Upe{constructor(){this._data=[]}dispose(){this._data=null}getMessageArray(){return this._data}}class Fpe{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class Bpe{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class Gpe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Vpe{constructor(){this._badges=[]}getMessageArray(){const e=[];for(let t=1;t<=this._badges.length;t++)e.push(t),e.push(this._badges[t-1]);return e}dispose(){}addActivatedBadge(e){this._badges.push(e)}}class ZP{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class jpe{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class zpe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Hpe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Wpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ype{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class JP{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Xpe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Kpe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class qpe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class $pe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Qpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Zpe{constructor(...e){this._data=[e.length,...e]}getMessageArray(){return this._data}dispose(){}}class Jpe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class eme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class tme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class ime{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class sme{constructor(e,...t){this._data=[e,t.length,...t]}getMessageArray(){return this._data}dispose(){}}class nme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class rme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class ame{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){this._data=null}}class ome{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class lme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){this._data=null}}class ume{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class hme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class cme{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){this._data=null}}class fme{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){this._data=null}}class dme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class _me{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class gme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){this._data=null}}class pme{constructor(e,t,i){this._data=[e,t.length,...t,i]}getMessageArray(){return this._data}dispose(){}}const Zd=class Zd{constructor(e,t){this._data=[t,e.length,...e]}getMessageArray(){return this._data}dispose(){}};Zd.RESOLUTION_USELESS=1,Zd.RESOLUTION_ABUSIVE=2,Zd.RESOLUTION_RESOLVED=3;let yb=Zd;const SE=class SE{constructor(e,t,i,n,r,a=-1){this._data=[e,t,i,n,r],a!=SE.NO_ISSUE_ID&&this._data.push(a)}getMessageArray(){return this._data}dispose(){}};SE.NO_ISSUE_ID=-1;let ja=SE;class mme{constructor(e,t,i,n=-1){this._data=[e,t,i],n!=ja.NO_ISSUE_ID&&this._data.push(n)}getMessageArray(){return this._data}dispose(){}}class vme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Eme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class yme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Tme{constructor(e,t=0){this._data=[t,e]}getMessageArray(){return this._data}dispose(){}}class Ime{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Rme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Sme{constructor(e,t,i,n=-1){this._data=[e,t,i],n!=ja.NO_ISSUE_ID&&this._data.push(n)}getMessageArray(){return this._data}dispose(){}}class bme{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}const _c=class _c{constructor(e,t,i){this._data=[],this._data.push(e),this._data.push(t),this._data.push(i)}getMessageArray(){return this._data}dispose(){}};_c.ACTION_ALERT=0,_c.ACTION_KICK=1,_c.ACTION_MESSAGE=3,_c.ACTION_MESSAGE_AND_SOFT_KICK=4;let Tb=_c;class Ame{constructor(e,t,i,n=-1){this._data=[e,t,i],n!=ja.NO_ISSUE_ID&&this._data.push(n)}getMessageArray(){return this._data}dispose(){}}class Ome{constructor(e,t,i,n=-1){this._data=[],this._data.push(e),this._data.push(t),this._data.push(""),this._data.push(""),this._data.push(i),n!=ja.NO_ISSUE_ID&&this._data.push(n)}getMessageArray(){return this._data}dispose(){}}class wme{constructor(e,t,i,n=-1){this._data=[e,t,i],n!=ja.NO_ISSUE_ID&&this._data.push(n)}getMessageArray(){return this._data}dispose(){}}class Cme{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class Mme{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class Nme{constructor(e,t,i,n,r=-1){this._data=[e,t,i,n],r!=ja.NO_ISSUE_ID&&this._data.push(r)}getMessageArray(){return this._data}dispose(){}}class Pme{constructor(e,t,i,n){this._data=[e.length,...e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class kme{constructor(e){this._data=[e.length,...e]}getMessageArray(){return this._data}dispose(){}}class xme{constructor(e){this._data=[e]}dispose(){this._data=null}getMessageArray(){return this._data}}class Dme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Lme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ume{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Fme{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Bme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Gme{constructor(e,t,i,n,r,a){this._data=[e,t,i,n,r,a]}getMessageArray(){return this._data}dispose(){}}class Vme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class jme{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class zme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Hme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Wme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Yme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Xme{constructor(e,t,i){this._data=[e,t?1:0,i?1:0]}getMessageArray(){return this._data}dispose(){}}class Kme{constructor(e=0){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class qme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class $me{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Qme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Zme{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Jme{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class eve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class tve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class ive{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class sve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class nve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class rve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class ave{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class ove{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class lve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class uve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class hve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class cve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class fve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class dve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class _ve{constructor(e,t,i,n,r,a){this._data=[e,t,i,n,r,a]}getMessageArray(){return this._data}dispose(){}}class gve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class pve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class mve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class vve{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class Eve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class yve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Tve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Ive{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Rve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Sve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class bve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ave{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ove{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class wve{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class Cve{constructor(...e){this._data=[e.length*3],e.forEach(t=>{this._data.push(t.dayIndex),this._data.push(t.stepIndex),this._data.push(t.giftIndex)})}dispose(){this._data=null}getMessageArray(){return this._data}}class MF{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}const I=class I{};I.ACHIEVEMENT_LIST=219,I.AUTHENTICATION=-1,I.BOT_CONFIGURATION=1986,I.BOT_PICKUP=3323,I.BOT_PLACE=1592,I.BOT_SKILL_SAVE=2624,I.GET_CLUB_OFFERS=3285,I.GET_CLUB_GIFT_INFO=487,I.GET_CATALOG_INDEX=1195,I.GET_CATALOG_PAGE=412,I.CATALOG_PURCHASE=3492,I.CATALOG_PURCHASE_GIFT=1411,I.GET_PRODUCT_OFFER=2594,I.CLIENT_LATENCY=295,I.CLIENT_LATENCY_MEASURE=96,I.CLIENT_POLICY=26979,I.CLIENT_PONG=2596,I.CLIENT_TOOLBAR_TOGGLE=2313,I.CLIENT_VARIABLES=1053,I.GET_CURRENT_TIMING_CODE=2912,I.DESKTOP_NEWS=1827,I.DESKTOP_VIEW=105,I.GET_BUNDLE_DISCOUNT_RULESET=223,I.EVENT_TRACKER=3457,I.FIND_NEW_FRIENDS=516,I.FURNITURE_ALIASES=3898,I.FURNITURE_FLOOR_UPDATE=248,I.FURNITURE_MULTISTATE=99,I.FURNITURE_PICKUP=3456,I.FURNITURE_PLACE=1258,I.FURNITURE_POSTIT_PLACE=2248,I.FURNITURE_POSTIT_SAVE_STICKY_POLE=3283,I.FURNITURE_RANDOMSTATE=3617,I.FURNITURE_WALL_MULTISTATE=210,I.FURNITURE_WALL_UPDATE=168,I.GAMES_INIT=2914,I.GAMES_LIST=741,I.ACCEPTGAMEINVITE=3802,I.GAMEUNLOADEDMESSAGE=3207,I.GETGAMEACHIEVEMENTSMESSAGE=2399,I.GETGAMESTATUSMESSAGE=3171,I.GETUSERGAMEACHIEVEMENTSMESSAGE=389,I.JOINQUEUEMESSAGE=1458,I.LEAVEQUEUEMESSAGE=2384,I.RESETRESOLUTIONACHIEVEMENTMESSAGE=3144,I.GETWEEKLYGAMEREWARDWINNERS=1054,I.GAME2GETACCOUNTGAMESTATUSMESSAGE=11,I.GAME2CHECKGAMEDIRECTORYSTATUSMESSAGE=3259,I.GAME2EXITGAMEMESSAGE=1445,I.GAME2GAMECHATMESSAGE=2502,I.GAME2LOADSTAGEREADYMESSAGE=2415,I.GAME2PLAYAGAINMESSAGE=3196,I.GAME2REQUESTFULLSTATUSUPDATEMESSAGE=1598,I.GAME2GETWEEKLYFRIENDSLEADERBOARD=1232,I.GAME2GETWEEKLYLEADERBOARD=2565,I.GET_GIFT_WRAPPING_CONFIG=418,I.GROUP_ADMIN_ADD=2894,I.GROUP_ADMIN_REMOVE=722,I.GROUP_CREATE_OPTIONS=798,I.GROUP_FAVORITE=3549,I.GET_FORUM_STATS=3149,I.GET_FORUM_THREADS=873,I.GET_FORUMS_LIST=436,I.GET_FORUM_MESSAGES=232,I.GET_FORUM_THREAD=3900,I.GET_UNREAD_FORUMS_COUNT=2908,I.FORUM_MODERATE_MESSAGE=286,I.FORUM_MODERATE_THREAD=1397,I.FORUM_POST_MESSAGE=3529,I.UPDATE_FORUM_READ_MARKER=1855,I.UPDATE_FORUM_SETTINGS=2214,I.FORUM_UPDATE_THREAD=3045,I.GROUP_INFO=2991,I.GROUP_DELETE=1134,I.GROUP_MEMBER_REMOVE_CONFIRM=3593,I.GROUP_MEMBER_REMOVE=593,I.GROUP_MEMBERS=312,I.GROUP_MEMBERSHIPS=367,I.GROUP_REQUEST=998,I.GROUP_REQUEST_ACCEPT=3386,I.GROUP_REQUEST_DECLINE=1894,I.GROUP_SETTINGS=1004,I.GROUP_PARTS=813,I.GROUP_BUY=230,I.GROUP_SAVE_INFORMATION=3137,I.GROUP_SAVE_BADGE=1991,I.GROUP_SAVE_COLORS=1764,I.GROUP_SAVE_PREFERENCES=3435,I.GROUP_BADGES=21,I.GROUP_UNBLOCK_MEMBER=2864,I.GET_BADGE_POINTS_LIMITS=1371,I.REQUESTABADGE=3077,I.GETISBADGEREQUESTFULFILLED=1364,I.ITEM_CLOTHING_REDEEM=3374,I.ITEM_COLOR_WHEEL_CLICK=2144,I.ITEM_DICE_CLICK=1990,I.ITEM_DICE_CLOSE=1533,I.ITEM_DIMMER_SAVE=1648,I.ITEM_DIMMER_SETTINGS=2813,I.ITEM_DIMMER_TOGGLE=2296,I.ITEM_EXCHANGE_REDEEM=3115,I.ITEM_PAINT=711,I.SET_OBJECT_DATA=3608,I.ITEM_STACK_HELPER=3839,I.ITEM_WALL_CLICK=210,I.ITEM_WALL_UPDATE=168,I.MARKETPLACE_CONFIG=2597,I.ACCEPT_FRIEND=137,I.MESSENGER_CHAT=3567,I.DECLINE_FRIEND=2890,I.FOLLOW_FRIEND=3997,I.MESSENGER_FRIENDS=1523,I.MESSENGER_INIT=2781,I.MESSENGER_RELATIONSHIPS=2138,I.SET_RELATIONSHIP_STATUS=3768,I.REMOVE_FRIEND=1689,I.REQUEST_FRIEND=3157,I.GET_FRIEND_REQUESTS=2448,I.SEND_ROOM_INVITE=1276,I.HABBO_SEARCH=1210,I.FRIEND_LIST_UPDATE=1419,I.MOD_TOOL_USER_INFO=3295,I.GET_USER_FLAT_CATS=3027,I.NAVIGATOR_INIT=2110,I.NAVIGATOR_SEARCH=249,I.NAVIGATOR_SEARCH_CLOSE=1834,I.NAVIGATOR_SEARCH_OPEN=637,I.NAVIGATOR_SEARCH_SAVE=2226,I.GET_USER_EVENT_CATS=1782,I.NAVIGATOR_SETTINGS_SAVE=3159,I.NAVIGATOR_CATEGORY_LIST_MODE=1202,I.NAVIGATOR_DELETE_SAVED_SEARCH=1954,I.PET_INFO=2934,I.PET_PICKUP=1581,I.PET_PLACE=2647,I.PET_RESPECT=3202,I.PET_RIDE=1036,I.PET_MOVE=3449,I.PET_OPEN_PACKAGE=3698,I.PET_SELECTED=549,I.PETS_BREED=1638,I.PET_CANCEL_BREEDING=2713,I.PET_CONFIRM_BREEDING=3382,I.GET_PET_TRAINING_PANEL=2161,I.RECYCLER_PRIZES=398,I.RECYCLER_STATUS=1342,I.RECYCLER_ITEMS=2771,I.RELEASE_VERSION=4e3,I.CALL_FOR_HELP=1691,I.ROOM_AMBASSADOR_ALERT=2996,I.ROOM_BAN_GIVE=1477,I.ROOM_BAN_LIST=2267,I.ROOM_BAN_REMOVE=992,I.ROOM_CREATE=2752,I.ROOM_DELETE=532,I.ROOM_DOORBELL=1644,I.ROOM_ENTER=2312,I.ROOM_FAVORITE=3817,I.ROOM_FAVORITE_REMOVE=309,I.CAN_CREATE_ROOM=2128,I.CANCEL_ROOM_EVENT=2725,I.EDIT_ROOM_EVENT=3991,I.COMPETITION_ROOM_SEARCH=433,I.FORWARD_TO_RANDOM_PROMOTED_ROOM=10,I.FORWARD_TO_SOME_ROOM=1703,I.GET_CATEGORIES_WITH_USER_COUNT=3782,I.GET_GUEST_ROOM=2230,I.GET_OFFICIAL_ROOMS=1229,I.GET_POPULAR_ROOM_TAGS=826,I.GUILD_BASE_SEARCH=2930,I.MY_FAVOURITE_ROOMS_SEARCH=2578,I.MY_FREQUENT_ROOM_HISTORY_SEARCH=1002,I.MY_FRIENDS_ROOM_SEARCH=2266,I.MY_GUILD_BASES_SEARCH=39,I.MY_RECOMMENDED_ROOMS=2537,I.MY_ROOM_HISTORY_SEARCH=2264,I.MY_ROOM_RIGHTS_SEARCH=272,I.MY_ROOMS_SEARCH=2277,I.POPULAR_ROOMS_SEARCH=2758,I.ROOM_AD_EVENT_TAB_CLICKED=2412,I.ROOM_AD_EVENT_TAB_VIEWED=2668,I.ROOM_AD_SEARCH=2809,I.ROOM_TEXT_SEARCH=3943,I.ROOMS_WHERE_MY_FRIENDS_ARE=1786,I.ROOMS_WITH_HIGHEST_SCORE_SEARCH=2939,I.SET_ROOM_SESSION_TAGS=3305,I.UPDATE_ROOM_THUMBNAIL=2468,I.ROOM_KICK=1320,I.ROOM_LIKE=3582,I.ROOM_MODEL=2300,I.GET_OCCUPIED_TILES=1687,I.GET_ROOM_ENTRY_TILE=3559,I.ROOM_MODEL_SAVE=875,I.ROOM_MUTE=3637,I.ROOM_MUTE_USER=3485,I.ROOM_RIGHTS_GIVE=808,I.ROOM_RIGHTS_LIST=3385,I.ROOM_RIGHTS_REMOVE=2064,I.ROOM_RIGHTS_REMOVE_ALL=2683,I.ROOM_RIGHTS_REMOVE_OWN=3182,I.ROOM_SETTINGS=3129,I.ROOM_SETTINGS_SAVE=1969,I.ROOM_SETTINGS_UPDATE_ROOM_CATEGORY_AND_TRADE=1265,I.ROOM_STAFF_PICK=1918,I.ROOM_FILTER_WORDS=1911,I.ROOM_FILTER_WORDS_MODIFY=3001,I.MYSTERYBOXWAITINGCANCELEDMESSAGE=2012,I.MYSTERYBOX_OPEN_TROPHY=3074,I.SECURITY_MACHINE=2490,I.SECURITY_TICKET=2419,I.TRADE=1481,I.TRADE_ACCEPT=3863,I.TRADE_CANCEL=2341,I.TRADE_CLOSE=2551,I.TRADE_CONFIRM=2760,I.TRADE_ITEM=3107,I.TRADE_ITEM_REMOVE=3845,I.TRADE_ITEMS=1263,I.TRADE_UNACCEPT=1444,I.UNIT_ACTION=2456,I.UNIT_CHAT=1314,I.UNIT_CHAT_SHOUT=2085,I.UNIT_CHAT_WHISPER=1543,I.UNIT_DANCE=2080,I.UNIT_DROP_HAND_ITEM=2814,I.UNIT_GIVE_HANDITEM=2941,I.UNIT_LOOK=3301,I.UNIT_POSTURE=2235,I.UNIT_SIGN=1975,I.UNIT_TYPING=1597,I.UNIT_TYPING_STOP=1474,I.UNIT_WALK=3320,I.USER_BADGES=2769,I.USER_BADGES_CURRENT=2091,I.USER_BADGES_CURRENT_UPDATE=644,I.USER_BOTS=3848,I.USER_CURRENCY=273,I.USER_EFFECT_ACTIVATE=2959,I.USER_EFFECT_ENABLE=1752,I.USER_FIGURE=2730,I.USER_FURNITURE=3150,I.REQUESTFURNIINVENTORYWHENNOTINROOM=3500,I.USER_HOME_ROOM=1740,I.USER_INFO=357,I.USER_MOTTO=2228,I.USER_IGNORED=3878,I.USER_PETS=3095,I.USER_PROFILE=3265,I.USER_PROFILE_BY_NAME=2249,I.USER_RESPECT=2694,I.GET_SOUND_SETTINGS=2388,I.USER_SETTINGS_CAMERA=1461,I.USER_SETTINGS_CHAT_STYLE=1030,I.USER_SETTINGS_INFOSTAND_BACKGROUND=1031,I.USER_SETTINGS_INVITES=1086,I.USER_SETTINGS_OLD_CHAT=1262,I.USER_SETTINGS_VOLUME=1367,I.USER_SUBSCRIPTION=3166,I.GET_WARDROBE=2742,I.SAVE_WARDROBE_OUTFIT=800,I.USER_TAGS=17,I.PEER_USERS_CLASSIFICATION=1160,I.USER_CLASSIFICATION=2285,I.VISIT_USER=2970,I.WIRED_ACTION_SAVE=2281,I.WIRED_APPLY_SNAPSHOT=3373,I.WIRED_CONDITION_SAVE=3203,I.WIRED_OPEN=768,I.WIRED_TRIGGER_SAVE=1520,I.GET_ITEM_DATA=3964,I.ONE_WAY_DOOR_CLICK=2765,I.REMOVE_WALL_ITEM=3336,I.SET_ITEM_DATA=3666,I.CATALOG_REDEEM_VOUCHER=339,I.ROOM_TONER_APPLY=2880,I.FRIEND_FURNI_CONFIRM_LOCK=3775,I.MANNEQUIN_SAVE_NAME=2850,I.MANNEQUIN_SAVE_LOOK=2209,I.PRESENT_OPEN_PRESENT=3558,I.CATALOG_SELECT_VIP_GIFT=2276,I.USER_IGNORE_ID=3314,I.USER_IGNORE=1117,I.USER_UNIGNORE=2061,I.MODTOOL_REQUEST_ROOM_INFO=707,I.MODTOOL_CHANGE_ROOM_SETTINGS=3260,I.MODTOOL_REQUEST_USER_CHATLOG=1391,I.MODTOOL_REQUEST_ROOM_CHATLOG=2587,I.MODTOOL_SANCTION_ALERT=229,I.MODTOOL_SANCTION_BAN=2766,I.MODTOOL_SANCTION_KICK=2582,I.MODTOOL_SANCTION_TRADELOCK=3742,I.MODTOOL_ALERTEVENT=1840,I.MODTOOL_SANCTION_MUTE=1945,I.MODTOOL_REQUEST_USER_ROOMS=3526,I.MODTOOL_ROOM_ALERT=3842,I.MODTOOL_PREFERENCES=31,I.CLOSE_ISSUE_DEFAULT_ACTION=2717,I.CLOSE_ISSUES=2067,I.DEFAULT_SANCTION=1681,I.GET_CFH_CHATLOG=211,I.MODTOOL_SANCTION=1392,I.PICK_ISSUES=15,I.RELEASE_ISSUES=1572,I.CONVERT_GLOBAL_ROOM_ID=314,I.REQUEST_SELL_ITEM=848,I.REQUEST_MARKETPLACE_ITEM_STATS=3288,I.MARKETPLACE_SELL_ITEM=3447,I.MARKETPLACE_REQUEST_OWN_ITEMS=2105,I.MARKETPLACE_TAKE_BACK_ITEM=434,I.MARKETPLACE_REDEEM_CREDITS=2650,I.MARKETPLACE_REQUEST_OFFERS=2407,I.MARKETPLACE_BUY_OFFER=1603,I.MARKETPLACE_BUY_TOKENS=1866,I.CATALOG_REQUESET_PET_BREEDS=1756,I.APPROVE_NAME=2109,I.UNIT_GIVE_HANDITEM_PET=2768,I.PET_MOUNT=1036,I.PET_SUPPLEMENT=749,I.FURNITURE_GROUP_INFO=2651,I.ACHIEVEMENT_RESOLUTION_OPEN=359,I.USE_PET_PRODUCT=1328,I.REMOVE_PET_SADDLE=186,I.TOGGLE_PET_RIDING=1472,I.TOGGLE_PET_BREEDING=3379,I.UNSEEN_RESET_CATEGORY=3493,I.UNSEEN_RESET_ITEMS=2343,I.COMMUNITY_GOAL_VOTE_COMPOSER=3536,I.GET_PROMO_ARTICLES=1827,I.ACCEPT_QUEST=3604,I.ACTIVATE_QUEST=793,I.CANCEL_QUEST=3133,I.FRIEND_REQUEST_QUEST_COMPLETE=1148,I.GET_COMMUNITY_GOAL_EARNED_PRIZES=2688,I.GET_COMMUNITY_GOAL_HALL_OF_FAME=2167,I.GET_COMMUNITY_GOAL_PROGRESS=1145,I.GET_CONCURRENT_USERS_GOAL_PROGRESS=1343,I.GET_CONCURRENT_USERS_REWARD=3872,I.GET_DAILY_QUEST=2486,I.GET_QUESTS=3333,I.GET_SEASONAL_QUESTS_ONLY=1190,I.OPEN_QUEST_TRACKER=2750,I.REDEEM_COMMUNITY_GOAL_PRIZE=90,I.REJECT_QUEST=2397,I.START_CAMPAIGN=1697,I.GET_BONUS_RARE_INFO=957,I.CRAFT=3591,I.CRAFT_SECRET=1251,I.GET_CRAFTABLE_PRODUCTS=633,I.GET_CRAFTING_RECIPE=1173,I.GET_CRAFTING_RECIPES_AVAILABLE=3086,I.PHOTO_COMPETITION=3959,I.PUBLISH_PHOTO=2068,I.PURCHASE_PHOTO=2408,I.RENDER_ROOM=3226,I.RENDER_ROOM_THUMBNAIL=1982,I.REQUEST_CAMERA_CONFIGURATION=796,I.ADD_JUKEBOX_DISK=753,I.GET_JUKEBOX_PLAYLIST=1435,I.GET_NOW_PLAYING=1325,I.GET_OFFICIAL_SONG_ID=3189,I.GET_SONG_INFO=3082,I.GET_SOUND_MACHINE_PLAYLIST=3498,I.GET_USER_SONG_DISKS=2304,I.REMOVE_JUKEBOX_DISK=3050,I.INTERSTITIAL_SHOWN=1109,I.GET_INTERSTITIAL=2519,I.CHANGE_USERNAME=2977,I.CHECK_USERNAME=3950,I.OPEN_CAMPAIGN_CALENDAR_DOOR_STAFF=3889,I.OPEN_CAMPAIGN_CALENDAR_DOOR=2257,I.BUILDERS_CLUB_PLACE_ROOM_ITEM=1051,I.BUILDERS_CLUB_PLACE_WALL_ITEM=462,I.BUILDERS_CLUB_QUERY_FURNI_COUNT=2529,I.GET_CATALOG_PAGE_EXPIRATION=742,I.GET_CATALOG_PAGE_WITH_EARLIEST_EXP=3135,I.GET_DIRECT_CLUB_BUY_AVAILABLE=801,I.GET_HABBO_BASIC_MEMBERSHIP_EXTEND_OFFER=603,I.GET_HABBO_CLUB_EXTEND_OFFER=2462,I.GET_IS_OFFER_GIFTABLE=1347,I.GET_LIMITED_OFFER_APPEARING_NEXT=410,I.GET_NEXT_TARGETED_OFFER=596,I.GET_ROOM_AD_PURCHASE_INFO=1075,I.GET_SEASONAL_CALENDAR_DAILY_OFFER=3257,I.GET_TARGETED_OFFER=2487,I.MARK_CATALOG_NEW_ADDITIONS_PAGE_OPENED=2150,I.PURCHASE_BASIC_MEMBERSHIP_EXTENSION=2735,I.PURCHASE_ROOM_AD=777,I.PURCHASE_TARGETED_OFFER=1826,I.PURCHASE_VIP_MEMBERSHIP_EXTENSION=3407,I.ROOM_AD_PURCHASE_INITIATED=2283,I.SET_TARGETTED_OFFER_STATE=2041,I.SHOP_TARGETED_OFFER_VIEWED=3483,I.HELPER_TALENT_TRACK=196,I.TALENT_TRACK_GET_LEVEL=2127,I.FORWARD_TO_A_COMPETITION_ROOM=172,I.FORWARD_TO_A_SUBMITTABLE_ROOM=1450,I.FORWARD_TO_RANDOM_COMPETITION_ROOM=865,I.GET_IS_USER_PART_OF_COMPETITION=2077,I.GET_SECONDS_UNTIL=271,I.ROOM_COMPETITION_INIT=1334,I.SUBMIT_ROOM_TO_COMPETITION=2595,I.VOTE_FOR_ROOM=143,I.GET_GIFT=2436,I.RESET_PHONE_NUMBER_STATE=2741,I.SET_PHONE_NUMBER_VERIFICATION_STATUS=1379,I.TRY_PHONE_NUMBER=790,I.VERIFY_CODE=2721,I.CONTROL_YOUTUBE_DISPLAY_PLAYBACK=3005,I.GET_YOUTUBE_DISPLAY_STATUS=336,I.SET_YOUTUBE_DISPLAY_PLAYLIST=2069,I.GO_TO_FLAT=685,I.CHANGE_QUEUE=3093,I.CALL_FOR_HELP_FROM_FORUM_MESSAGE=1412,I.CALL_FOR_HELP_FROM_FORUM_THREAD=534,I.CALL_FOR_HELP_FROM_IM=2950,I.CALL_FOR_HELP_FROM_PHOTO=2492,I.CALL_FOR_HELP_FROM_SELFIE=2755,I.CHAT_REVIEW_GUIDE_DECIDES=3365,I.CHAT_REVIEW_GUIDE_DETACHED=2501,I.CHAT_REVIEW_GUIDE_VOTE=3961,I.CHAT_REVIEW_SESSION_CREATE=3060,I.DELETE_PENDING_CALLS_FOR_HELP=3605,I.GET_CFH_STATUS=2746,I.GET_FAQ_CATEGORY=3445,I.GET_FAQ_TEXT=1849,I.GET_GUIDE_REPORTING_STATUS=3786,I.GET_PENDING_CALLS_FOR_HELP=3267,I.GET_QUIZ_QUESTIONS=1296,I.GUIDE_SESSION_CREATE=3338,I.GUIDE_SESSION_FEEDBACK=477,I.GUIDE_SESSION_GET_REQUESTER_ROOM=1052,I.GUIDE_SESSION_GUIDE_DECIDES=1424,I.GUIDE_SESSION_INVITE_REQUESTER=234,I.GUIDE_SESSION_IS_TYPING=519,I.GUIDE_SESSION_MESSAGE=3899,I.GUIDE_SESSION_ON_DUTY_UPDATE=1922,I.GUIDE_SESSION_REPORT=3969,I.GUIDE_SESSION_REQUESTER_CANCELS=291,I.GUIDE_SESSION_RESOLVED=887,I.POST_QUIZ_ANSWERS=3720,I.SEARCH_FAQS=2031,I.POLL_ANSWER=3505,I.POLL_REJECT=1773,I.POLL_START=109,I.DISCONNECT=2445,I.SCR_GET_KICKBACK_INFO=869,I.COMPOST_PLANT=3835,I.HARVEST_PET=1521,I.SET_CLOTHING_CHANGE_DATA=924,I.GROUP_UNFAVORITE=1820,I.NEW_USER_EXPERIENCE_GET_GIFTS=1822,I.NEW_USER_EXPERIENCE_SCRIPT_PROCEED=1299,I.HANDSHAKE_INIT_DIFFIE=3110,I.HANDSHAKE_COMPLETE_DIFFIE=773,I.WELCOME_OPEN_GIFT=2638,I.WELCOME_GIFT_CHANGE_EMAIL=66,I.EMAIL_GET_STATUS=2557,I.EMAIL_CHANGE=3965,I.APPROVE_ALL_MEMBERSHIP_REQUESTS=882,I.RENTABLE_SPACE_CANCEL_RENT=1667,I.RENTABLE_SPACE_RENT=2946,I.RENTABLE_SPACE_STATUS=872,I.TRACKING_PERFORMANCE_LOG=3230,I.TRACKING_LAG_WARNING_REPORT=3847,I.ROOM_DIRECTORY_ROOM_NETWORK_OPEN_CONNECTION=3736,I.RENTABLE_EXTEND_RENT_OR_BUYOUT_STRIP_ITEM=2115,I.RENTABLE_EXTEND_RENT_OR_BUYOUT_FURNI=1071,I.RENTABLE_GET_RENT_OR_BUYOUT_OFFER=2518,I.FURNITURE_PICKUP_ALL=10017,I.DELETE_ITEM=10018,I.FURNITURE_FLOOR_POSITION_UPDATE=10019;let S=I;class NF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Ib{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class PF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Mve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class kF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class xF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class DF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class LF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class UF{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class FF{constructor(e,t,i){this._data=[e,t,i.length,...i]}getMessageArray(){return this._data}dispose(){}}class BF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class GF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Nve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Pve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class kve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class xve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Dve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Lve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Uve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Fve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Bve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Gve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Vve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class jve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class zve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Hve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Wve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Yve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Xve{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Kve{constructor(...e){this._data=[e.length],e.forEach(t=>{this._data.push(t.itemId)})}getMessageArray(){return this._data}dispose(){}}class VF{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class jF{constructor(e,t=null){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class qve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class zF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class HF{constructor(e,t=0,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class $ve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class WF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class YF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class XF{constructor(e,t,i=0){this._data=[e,i,t]}getMessageArray(){return this._data}dispose(){}}class KF{constructor(...e){this._data=[e.length,...e]}getMessageArray(){return this._data}dispose(){}}class Qve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Zve{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Jve{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class e1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class t1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class i1e{constructor(e,t,i,n,r,a,o,l,u,c,h,f,d,_,g,p,m,v,E,y,T,w,C,N){this._data=[],this._data.push(e,t,i,n,r,a,o),this._data.push(u.length,...u),this._data.push(c,h,f,d,_,g,p,m,v,E,y,T,w,C,N)}getMessageArray(){return this._data}dispose(){}}class qF{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class $F{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class s1e{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class QF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class ZF extends QF{constructor(e){super(e)}}class JF{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class e6 extends QF{constructor(e){super(e)}}class Rb{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class t6{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class i6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class s6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class n6{constructor(e,t,i=""){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class r6{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class a6{constructor(e,t){this._data=[e,t.size*2];for(const[i,n]of t.entries())this._data.push(i,n)}getMessageArray(){return this._data}dispose(){}}class n1e{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class o6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class l6{constructor(e,t,i,n,r){this._data=[e,t,i,n,r]}getMessageArray(){return this._data}dispose(){}}class u6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class r1e{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class a1e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Sb{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class o1e{constructor(e,t,i,n,r){this._data=[e,t,i,n,r]}getMessageArray(){return this._data}dispose(){}}class h6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class c6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class l1e{constructor(...e){this._data=[e.length,...e]}getMessageArray(){return this._data}dispose(){}}class f6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class d6{constructor(e,t,i,n,r,a){this._itemId=e,this._category=t,this._wallLocation=i,this._x=n,this._y=r,this._direction=a}getMessageArray(){switch(this._category){case U.FLOOR:return[`${this._itemId} ${this._x} ${this._y} ${this._direction}`];case U.WALL:return[`${this._itemId} ${this._wallLocation} `];default:return[]}}dispose(){}}class u1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class _6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class h1e{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class g6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class p6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class m6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class c1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Bw{constructor(e,t=0){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class v6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class E6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class f1e{constructor(e,t=-100){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class y6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class d1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class _1e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class g1e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class T6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class p1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class I6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class m1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class v1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class E1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class y1e{constructor(e,t,i,n){this._data=[e,t,i,n]}getMessageArray(){return this._data}dispose(){}}class R6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class T1e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class I1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class R1e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class S1e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class bb{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class b1e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class A1e{constructor(e,t,i,n,r,a,o){this._data=[e,t,i,n,r,a,o]}getMessageArray(){return this._data}dispose(){}}class O1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class S6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class b6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Gw{constructor(e,t=0,i=""){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class A6{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class w1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class O6{constructor(e,t,i){this._data=[e+" "+t,i]}getMessageArray(){return this._data}dispose(){}}class w6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class C6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class M6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class N6{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class P6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class C1e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class M1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class N1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class k6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class x6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class D6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class L6{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}const Jd=class Jd{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}};Jd.STATE_START=0,Jd.STATE_CANCEL=1,Jd.STATE_ACCEPT=2;let Ab=Jd;class P1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class k1e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class x1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class D1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class L1e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class U1e{constructor(e,t,i,n,r,a){this._data=[e,t.length,...t,i,n.length,...n,r,a]}getMessageArray(){return this._data}dispose(){}}class F1e{constructor(e,t,i,n,r){this._data=[e,t.length,...t,i,n.length,...n,r]}getMessageArray(){return this._data}dispose(){}}class B1e{constructor(e,t,i,n,r){this._data=[e,t.length,...t,i,n.length,...n,r]}getMessageArray(){return this._data}dispose(){}}class G1e{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class V1e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class U6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class F6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class j1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class B6{constructor(...e){this._data=[e.length].concat(e)}getMessageArray(){return this._data}dispose(){}}class z1e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class H1e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class G6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class W1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Y1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class X1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class K1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class q1e{constructor(e,t,i,n,r,a,o,l,u,c,h){this._data=[e,t,i,n,r,a,o,l,u,c,h]}getMessageArray(){return this._data}dispose(){}}class $1e{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class Q1e{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class Z1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class J1e{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class V6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class j6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class z6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class H6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class W6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Y6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class eEe{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class X6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class tEe{constructor(e,t=!0){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class iEe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class sEe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class K6{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class nEe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class rEe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class aEe{constructor(){this._data=[]}getMessageArray(){return this._data}dispose(){}}class oEe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class lEe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class uEe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class hEe{constructor(e,t,i){this._data=[e,t,i]}getMessageArray(){return this._data}dispose(){}}class cEe{constructor(e,t){this._data=[e,t]}getMessageArray(){return this._data}dispose(){}}class q6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class fEe{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class $6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}class Q6{constructor(e){this._data=[e]}getMessageArray(){return this._data}dispose(){}}var Z6={exports:{}};(function(s,e){(function(t,i){s.exports=i()})(Zi,function(){return function(t){var i={};function n(r){if(i[r])return i[r].exports;var a=i[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=i,n.d=function(r,a,o){n.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,a){if(1&a&&(r=n(r)),8&a||4&a&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&a&&typeof r!="string")for(var l in r)n.d(o,l,(function(u){return r[u]}).bind(null,l));return o},n.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(a,"a",a),a},n.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},n.p="",n(n.s=0)}([function(t,i,n){var r,a,o=n(1)(),l=n(3),u=n(4),c=n(6),h=function(){var f=new u;return r=f.getResult(),a=new c,this};h.prototype={getSoftwareVersion:function(){return"0.1.11"},getBrowserData:function(){return r},getFingerprint:function(){var f="|",d=r.ua,_=this.getScreenPrint(),g=this.getPlugins(),p=this.getFonts(),m=this.isLocalStorage(),v=this.isSessionStorage(),E=this.getTimeZone(),y=this.getLanguage(),T=this.getSystemLanguage(),w=this.isCookie(),C=this.getCanvasPrint();return l(d+f+_+f+g+f+p+f+m+f+v+f+E+f+y+f+T+f+w+f+C,256)},getCustomFingerprint:function(){for(var f="|",d="",_=0;_<arguments.length;_++)d+=arguments[_]+f;return l(d,256)},getUserAgent:function(){return r.ua},getUserAgentLowerCase:function(){return r.ua.toLowerCase()},getBrowser:function(){return r.browser.name},getBrowserVersion:function(){return r.browser.version},getBrowserMajorVersion:function(){return r.browser.major},isIE:function(){return/IE/i.test(r.browser.name)},isChrome:function(){return/Chrome/i.test(r.browser.name)},isFirefox:function(){return/Firefox/i.test(r.browser.name)},isSafari:function(){return/Safari/i.test(r.browser.name)},isMobileSafari:function(){return/Mobile\sSafari/i.test(r.browser.name)},isOpera:function(){return/Opera/i.test(r.browser.name)},getEngine:function(){return r.engine.name},getEngineVersion:function(){return r.engine.version},getOS:function(){return r.os.name},getOSVersion:function(){return r.os.version},isWindows:function(){return/Windows/i.test(r.os.name)},isMac:function(){return/Mac/i.test(r.os.name)},isLinux:function(){return/Linux/i.test(r.os.name)},isUbuntu:function(){return/Ubuntu/i.test(r.os.name)},isSolaris:function(){return/Solaris/i.test(r.os.name)},getDevice:function(){return r.device.model},getDeviceType:function(){return r.device.type},getDeviceVendor:function(){return r.device.vendor},getCPU:function(){return r.cpu.architecture},isMobile:function(){var f=r.ua||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(f)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(f.substr(0,4))},isMobileMajor:function(){return this.isMobileAndroid()||this.isMobileBlackBerry()||this.isMobileIOS()||this.isMobileOpera()||this.isMobileWindows()},isMobileAndroid:function(){return!!r.ua.match(/Android/i)},isMobileOpera:function(){return!!r.ua.match(/Opera Mini/i)},isMobileWindows:function(){return!!r.ua.match(/IEMobile/i)},isMobileBlackBerry:function(){return!!r.ua.match(/BlackBerry/i)},isMobileIOS:function(){return!!r.ua.match(/iPhone|iPad|iPod/i)},isIphone:function(){return!!r.ua.match(/iPhone/i)},isIpad:function(){return!!r.ua.match(/iPad/i)},isIpod:function(){return!!r.ua.match(/iPod/i)},getScreenPrint:function(){return"Current Resolution: "+this.getCurrentResolution()+", Available Resolution: "+this.getAvailableResolution()+", Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()},getColorDepth:function(){return screen.colorDepth},getCurrentResolution:function(){return screen.width+"x"+screen.height},getAvailableResolution:function(){return screen.availWidth+"x"+screen.availHeight},getDeviceXDPI:function(){return screen.deviceXDPI},getDeviceYDPI:function(){return screen.deviceYDPI},getPlugins:function(){for(var f="",d=0;d<navigator.plugins.length;d++)d==navigator.plugins.length-1?f+=navigator.plugins[d].name:f+=navigator.plugins[d].name+", ";return f},isJava:function(){return navigator.javaEnabled()},getJavaVersion:function(){throw new Error("Please use client.java.js or client.js if you need this functionality!")},isFlash:function(){return!!navigator.plugins["Shockwave Flash"]},getFlashVersion:function(){throw new Error("Please use client.flash.js or client.js if you need this functionality!")},isSilverlight:function(){return!!navigator.plugins["Silverlight Plug-In"]},getSilverlightVersion:function(){return this.isSilverlight()?navigator.plugins["Silverlight Plug-In"].description:""},isMimeTypes:function(){return!(!navigator.mimeTypes||!navigator.mimeTypes.length)},getMimeTypes:function(){var f="";if(navigator.mimeTypes)for(var d=0;d<navigator.mimeTypes.length;d++)d==navigator.mimeTypes.length-1?f+=navigator.mimeTypes[d].description:f+=navigator.mimeTypes[d].description+", ";return f},isFont:function(f){return a.detect(f)},getFonts:function(){for(var f=["Abadi MT Condensed Light","Adobe Fangsong Std","Adobe Hebrew","Adobe Ming Std","Agency FB","Aharoni","Andalus","Angsana New","AngsanaUPC","Aparajita","Arab","Arabic Transparent","Arabic Typesetting","Arial Baltic","Arial Black","Arial CE","Arial CYR","Arial Greek","Arial TUR","Arial","Batang","BatangChe","Bauhaus 93","Bell MT","Bitstream Vera Serif","Bodoni MT","Bookman Old Style","Braggadocio","Broadway","Browallia New","BrowalliaUPC","Calibri Light","Calibri","Californian FB","Cambria Math","Cambria","Candara","Castellar","Casual","Centaur","Century Gothic","Chalkduster","Colonna MT","Comic Sans MS","Consolas","Constantia","Copperplate Gothic Light","Corbel","Cordia New","CordiaUPC","Courier New Baltic","Courier New CE","Courier New CYR","Courier New Greek","Courier New TUR","Courier New","DFKai-SB","DaunPenh","David","DejaVu LGC Sans Mono","Desdemona","DilleniaUPC","DokChampa","Dotum","DotumChe","Ebrima","Engravers MT","Eras Bold ITC","Estrangelo Edessa","EucrosiaUPC","Euphemia","Eurostile","FangSong","Forte","FrankRuehl","Franklin Gothic Heavy","Franklin Gothic Medium","FreesiaUPC","French Script MT","Gabriola","Gautami","Georgia","Gigi","Gisha","Goudy Old Style","Gulim","GulimChe","GungSeo","Gungsuh","GungsuhChe","Haettenschweiler","Harrington","Hei S","HeiT","Heisei Kaku Gothic","Hiragino Sans GB","Impact","Informal Roman","IrisUPC","Iskoola Pota","JasmineUPC","KacstOne","KaiTi","Kalinga","Kartika","Khmer UI","Kino MT","KodchiangUPC","Kokila","Kozuka Gothic Pr6N","Lao UI","Latha","Leelawadee","Levenim MT","LilyUPC","Lohit Gujarati","Loma","Lucida Bright","Lucida Console","Lucida Fax","Lucida Sans Unicode","MS Gothic","MS Mincho","MS PGothic","MS PMincho","MS Reference Sans Serif","MS UI Gothic","MV Boli","Magneto","Malgun Gothic","Mangal","Marlett","Matura MT Script Capitals","Meiryo UI","Meiryo","Menlo","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU-ExtB","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","Miriam Fixed","Miriam","Mongolian Baiti","MoolBoran","NSimSun","Narkisim","News Gothic MT","Niagara Solid","Nyala","PMingLiU","PMingLiU-ExtB","Palace Script MT","Palatino Linotype","Papyrus","Perpetua","Plantagenet Cherokee","Playbill","Prelude Bold","Prelude Condensed Bold","Prelude Condensed Medium","Prelude Medium","PreludeCompressedWGL Black","PreludeCompressedWGL Bold","PreludeCompressedWGL Light","PreludeCompressedWGL Medium","PreludeCondensedWGL Black","PreludeCondensedWGL Bold","PreludeCondensedWGL Light","PreludeCondensedWGL Medium","PreludeWGL Black","PreludeWGL Bold","PreludeWGL Light","PreludeWGL Medium","Raavi","Rachana","Rockwell","Rod","Sakkal Majalla","Sawasdee","Script MT Bold","Segoe Print","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Segoe UI","Shonar Bangla","Showcard Gothic","Shruti","SimHei","SimSun","SimSun-ExtB","Simplified Arabic Fixed","Simplified Arabic","Snap ITC","Sylfaen","Symbol","Tahoma","Times New Roman Baltic","Times New Roman CE","Times New Roman CYR","Times New Roman Greek","Times New Roman TUR","Times New Roman","TlwgMono","Traditional Arabic","Trebuchet MS","Tunga","Tw Cen MT Condensed Extra Bold","Ubuntu","Umpush","Univers","Utopia","Utsaah","Vani","Verdana","Vijaya","Vladimir Script","Vrinda","Webdings","Wide Latin","Wingdings"],d="",_=0;_<f.length;_++)a.detect(f[_])&&(d+=_==f.length-1?f[_]:f[_]+", ");return d},isLocalStorage:function(){try{return!!o.localStorage}catch{return!0}},isSessionStorage:function(){try{return!!o.sessionStorage}catch{return!0}},isCookie:function(){return navigator.cookieEnabled},getTimeZone:function(){var f,d;return f=new Date,(d=String(-f.getTimezoneOffset()/60))<0?"-"+("0"+(d*=-1)).slice(-2):"+"+("0"+d).slice(-2)},getLanguage:function(){return navigator.language},getSystemLanguage:function(){return navigator.systemLanguage||window.navigator.language},isCanvas:function(){var f=document.createElement("canvas");try{return!(!f.getContext||!f.getContext("2d"))}catch{return!1}},getCanvasPrint:function(){var f,d=document.createElement("canvas");try{f=d.getContext("2d")}catch{return""}var _="ClientJS,org <canvas> 1.0";return f.textBaseline="top",f.font="14px 'Arial'",f.textBaseline="alphabetic",f.fillStyle="#f60",f.fillRect(125,1,62,20),f.fillStyle="#069",f.fillText(_,2,15),f.fillStyle="rgba(102, 204, 0, 0.7)",f.fillText(_,4,17),d.toDataURL()}},i.ClientJS=h},function(t,i,n){var r=n(2);t.exports=function(){return typeof Zi=="object"&&Zi&&Zi.Math===Math&&Zi.Array===Array?Zi:r}},function(t,i,n){typeof self<"u"?t.exports=self:typeof window<"u"?t.exports=window:t.exports=Function("return this")()},function(t,i,n){t.exports=function(r,a){var o,l,u,c,h,f,d,_;for(o=3&r.length,l=r.length-o,u=a,h=3432918353,f=461845907,_=0;_<l;)d=255&r.charCodeAt(_)|(255&r.charCodeAt(++_))<<8|(255&r.charCodeAt(++_))<<16|(255&r.charCodeAt(++_))<<24,++_,u=27492+(65535&(c=5*(65535&(u=(u^=d=(65535&(d=(d=(65535&d)*h+(((d>>>16)*h&65535)<<16)&4294967295)<<15|d>>>17))*f+(((d>>>16)*f&65535)<<16)&4294967295)<<13|u>>>19))+((5*(u>>>16)&65535)<<16)&4294967295))+((58964+(c>>>16)&65535)<<16);switch(d=0,o){case 3:d^=(255&r.charCodeAt(_+2))<<16;case 2:d^=(255&r.charCodeAt(_+1))<<8;case 1:u^=d=(65535&(d=(d=(65535&(d^=255&r.charCodeAt(_)))*h+(((d>>>16)*h&65535)<<16)&4294967295)<<15|d>>>17))*f+(((d>>>16)*f&65535)<<16)&4294967295}return u^=r.length,u=2246822507*(65535&(u^=u>>>16))+((2246822507*(u>>>16)&65535)<<16)&4294967295,u=3266489909*(65535&(u^=u>>>13))+((3266489909*(u>>>16)&65535)<<16)&4294967295,(u^=u>>>16)>>>0}},function(t,i,n){var r;(function(a,o){var l="function",u="undefined",c="object",h="string",f="model",d="name",_="type",g="vendor",p="version",m="architecture",v="console",E="mobile",y="tablet",T="smarttv",w="wearable",C="embedded",N="Amazon",P="Apple",k="ASUS",L="BlackBerry",j="Firefox",z="Google",ne="Huawei",G="LG",Y="Microsoft",K="Motorola",H="Opera",J="Samsung",B="Sony",$="Xiaomi",fe="Zebra",xe="Facebook",me=function(Ue){var st={};for(var ot in Ue)st[Ue[ot].toUpperCase()]=Ue[ot];return st},De=function(Ue,st){return typeof Ue===h&&we(st).indexOf(we(Ue))!==-1},we=function(Ue){return Ue.toLowerCase()},it=function(Ue,st){if(typeof Ue===h)return Ue=Ue.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof st===u?Ue:Ue.substring(0,255)},at=function(Ue,st){for(var ot,Hi,Ge,ke,Gs,hi,gl=0;gl<st.length&&!Gs;){var Ju=st[gl],yf=st[gl+1];for(ot=Hi=0;ot<Ju.length&&!Gs;)if(Gs=Ju[ot++].exec(Ue))for(Ge=0;Ge<yf.length;Ge++)hi=Gs[++Hi],typeof(ke=yf[Ge])===c&&ke.length>0?ke.length==2?typeof ke[1]==l?this[ke[0]]=ke[1].call(this,hi):this[ke[0]]=ke[1]:ke.length==3?typeof ke[1]!==l||ke[1].exec&&ke[1].test?this[ke[0]]=hi?hi.replace(ke[1],ke[2]):o:this[ke[0]]=hi?ke[1].call(this,hi,ke[2]):o:ke.length==4&&(this[ke[0]]=hi?ke[3].call(this,hi.replace(ke[1],ke[2])):o):this[ke]=hi||o;gl+=2}},bt=function(Ue,st){for(var ot in st)if(typeof st[ot]===c&&st[ot].length>0){for(var Hi=0;Hi<st[ot].length;Hi++)if(De(st[ot][Hi],Ue))return ot==="?"?o:ot}else if(De(st[ot],Ue))return ot==="?"?o:ot;return Ue},At={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ct={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,H]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],p],[/\bfocus\/([\w\.]+)/i],[p,[d,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[p,[d,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,xe],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,bt,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,we]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",we]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,we]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[g,J],[_,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[g,J],[_,E]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[g,P],[_,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[g,P],[_,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[g,ne],[_,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[f,[g,ne],[_,E]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[g,$],[_,E]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[g,$],[_,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[f,[g,"OPPO"],[_,E]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[g,"Vivo"],[_,E]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[g,"Realme"],[_,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[g,K],[_,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[g,K],[_,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[g,G],[_,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[g,G],[_,E]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[g,"Lenovo"],[_,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[g,"Nokia"],[_,E]],[/(pixel c)\b/i],[f,[g,z],[_,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[g,z],[_,E]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[g,B],[_,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[g,B],[_,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[g,"OnePlus"],[_,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[g,N],[_,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[g,N],[_,E]],[/(playbook);[-\w\),; ]+(rim)/i],[f,g,[_,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[g,L],[_,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[g,k],[_,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[g,k],[_,E]],[/(nexus 9)/i],[f,[g,"HTC"],[_,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[g,[f,/_/g," "],[_,E]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[g,"Acer"],[_,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[g,"Meizu"],[_,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[g,"Sharp"],[_,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,f,[_,E]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,f,[_,y]],[/(surface duo)/i],[f,[g,Y],[_,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[g,"Fairphone"],[_,E]],[/(u304aa)/i],[f,[g,"AT&T"],[_,E]],[/\bsie-(\w*)/i],[f,[g,"Siemens"],[_,E]],[/\b(rct\w+) b/i],[f,[g,"RCA"],[_,y]],[/\b(venue[\d ]{2,7}) b/i],[f,[g,"Dell"],[_,y]],[/\b(q(?:mv|ta)\w+) b/i],[f,[g,"Verizon"],[_,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[g,"Barnes & Noble"],[_,y]],[/\b(tm\d{3}\w+) b/i],[f,[g,"NuVision"],[_,y]],[/\b(k88) b/i],[f,[g,"ZTE"],[_,y]],[/\b(nx\d{3}j) b/i],[f,[g,"ZTE"],[_,E]],[/\b(gen\d{3}) b.+49h/i],[f,[g,"Swiss"],[_,E]],[/\b(zur\d{3}) b/i],[f,[g,"Swiss"],[_,y]],[/\b((zeki)?tb.*\b) b/i],[f,[g,"Zeki"],[_,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],f,[_,y]],[/\b(ns-?\w{0,9}) b/i],[f,[g,"Insignia"],[_,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[g,"NextBook"],[_,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],f,[_,E]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],f,[_,E]],[/\b(ph-1) /i],[f,[g,"Essential"],[_,E]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[g,"Envizen"],[_,y]],[/\b(trio[-\w\. ]+) b/i],[f,[g,"MachSpeed"],[_,y]],[/\btu_(1491) b/i],[f,[g,"Rotor"],[_,y]],[/(shield[\w ]+) b/i],[f,[g,"Nvidia"],[_,y]],[/(sprint) (\w+)/i],[g,f,[_,E]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[g,Y],[_,E]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[g,fe],[_,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[g,fe],[_,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,f,[_,v]],[/droid.+; (shield) bui/i],[f,[g,"Nvidia"],[_,v]],[/(playstation [345portablevi]+)/i],[f,[g,B],[_,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[g,Y],[_,v]],[/smart-tv.+(samsung)/i],[g,[_,T]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[g,J],[_,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,G],[_,T]],[/(apple) ?tv/i],[g,[f,"Apple TV"],[_,T]],[/crkey/i],[[f,"Chromecast"],[g,z],[_,T]],[/droid.+aft(\w)( bui|\))/i],[f,[g,N],[_,T]],[/\(dtv[\);].+(aquos)/i],[f,[g,"Sharp"],[_,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[g,it],[f,it],[_,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[_,T]],[/((pebble))app/i],[g,f,[_,w]],[/droid.+; (glass) \d/i],[f,[g,z],[_,w]],[/droid.+; (wt63?0{2,3})\)/i],[f,[g,fe],[_,w]],[/(quest( 2)?)/i],[f,[g,xe],[_,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[_,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[_,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[_,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[_,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[_,E]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,bt,At]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,bt,At]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,L]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},Qe=function(Ue,st){if(typeof Ue===c&&(st=Ue,Ue=o),!(this instanceof Qe))return new Qe(Ue,st).getResult();var ot=Ue||(typeof a!==u&&a.navigator&&a.navigator.userAgent?a.navigator.userAgent:""),Hi=st?function(Ge,ke){var Gs={};for(var hi in Ge)ke[hi]&&ke[hi].length%2==0?Gs[hi]=ke[hi].concat(Ge[hi]):Gs[hi]=Ge[hi];return Gs}(ct,st):ct;return this.getBrowser=function(){var Ge,ke={};return ke.name=o,ke.version=o,at.call(ke,ot,Hi.browser),ke.major=typeof(Ge=ke.version)===h?Ge.replace(/[^\d\.]/g,"").split(".")[0]:o,ke},this.getCPU=function(){var Ge={};return Ge.architecture=o,at.call(Ge,ot,Hi.cpu),Ge},this.getDevice=function(){var Ge={};return Ge.vendor=o,Ge.model=o,Ge.type=o,at.call(Ge,ot,Hi.device),Ge},this.getEngine=function(){var Ge={};return Ge.name=o,Ge.version=o,at.call(Ge,ot,Hi.engine),Ge},this.getOS=function(){var Ge={};return Ge.name=o,Ge.version=o,at.call(Ge,ot,Hi.os),Ge},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ot},this.setUA=function(Ge){return ot=typeof Ge===h&&Ge.length>255?it(Ge,255):Ge,this},this.setUA(ot),this};Qe.VERSION="0.7.30",Qe.BROWSER=me([d,p,"major"]),Qe.CPU=me([m]),Qe.DEVICE=me([f,g,_,v,E,T,y,w,C]),Qe.ENGINE=Qe.OS=me([d,p]),typeof i!==u?(typeof t!==u&&t.exports&&(i=t.exports=Qe),i.UAParser=Qe):n(5)?(r=(function(){return Qe}).call(i,n,i,t))===o||(t.exports=r):typeof a!==u&&(a.UAParser=Qe);var gt=typeof a!==u&&(a.jQuery||a.Zepto);if(gt&&!gt.ua){var ki=new Qe;gt.ua=ki.getResult(),gt.ua.get=function(){return ki.getUA()},gt.ua.set=function(Ue){ki.setUA(Ue);var st=ki.getResult();for(var ot in st)gt.ua[ot]=st[ot]}}})(typeof window=="object"?window:this)},function(t,i){(function(n){t.exports=n}).call(this,{})},function(t,i){t.exports=function(){var n=["monospace","sans-serif","serif"],r=document.getElementsByTagName("body")[0],a=document.createElement("span");a.style.fontSize="72px",a.innerHTML="mmmmmmmmmmlli";var o={},l={};for(var u in n)a.style.fontFamily=n[u],r.appendChild(a),o[n[u]]=a.offsetWidth,l[n[u]]=a.offsetHeight,r.removeChild(a);this.detect=function(c){var h=!1;for(var f in n){a.style.fontFamily=c+","+n[f],r.appendChild(a);var d=a.offsetWidth!=o[n[f]]||a.offsetHeight!=l[n[f]];r.removeChild(a),h=h||d}return h}}}])})})(Z6);var dEe=Z6.exports;class _Ee extends Yr{constructor(e){super(),this._communication=e,this._handShaking=!1,this._didConnect=!1,this._pongInterval=null,this.onConnectionOpenedEvent=this.onConnectionOpenedEvent.bind(this),this.onConnectionClosedEvent=this.onConnectionClosedEvent.bind(this),this.onConnectionErrorEvent=this.onConnectionErrorEvent.bind(this),this.sendPong=this.sendPong.bind(this)}onInit(){const e=this._communication.connection;e&&(e.addEventListener(wi.CONNECTION_OPENED,this.onConnectionOpenedEvent),e.addEventListener(wi.CONNECTION_CLOSED,this.onConnectionClosedEvent),e.addEventListener(wi.CONNECTION_ERROR,this.onConnectionErrorEvent)),this._communication.registerMessageEvent(new b4(this.onClientPingEvent.bind(this))),this._communication.registerMessageEvent(new oF(this.onAuthenticatedEvent.bind(this)))}onDispose(){const e=this._communication.connection;e&&(e.removeEventListener(wi.CONNECTION_OPENED,this.onConnectionOpenedEvent),e.removeEventListener(wi.CONNECTION_CLOSED,this.onConnectionClosedEvent),e.removeEventListener(wi.CONNECTION_ERROR,this.onConnectionErrorEvent)),this._handShaking=!1,this.stopPonging(),super.onDispose()}onConnectionOpenedEvent(e){const t=this._communication.connection;t&&(this._didConnect=!0,this.dispatchCommunicationDemoEvent(bn.CONNECTION_ESTABLISHED,t),Te.getValue("system.pong.manually",!1)&&this.startPonging(),this.startHandshake(t),t.send(new bF(null,null,null,null)),this.tryAuthentication(t))}onConnectionClosedEvent(e){const t=this._communication.connection;t&&(this.stopPonging(),this._didConnect&&this.dispatchCommunicationDemoEvent(bn.CONNECTION_CLOSED,t))}onConnectionErrorEvent(e){const t=this._communication.connection;t&&(this.stopPonging(),this.dispatchCommunicationDemoEvent(bn.CONNECTION_ERROR,t))}getGpu(){const e=document.createElement("canvas");let t,i,n,r;try{if(t=e.getContext("webgl")||e.getContext("experimental-webgl"),i=t.getExtension("WEBGL_debug_renderer_info"),t===null||i===null)return""}catch{return""}return n=t.getParameter(i.UNMASKED_VENDOR_WEBGL),r=t.getParameter(i.UNMASKED_RENDERER_WEBGL),n+"|"+r}getMathResult(){let e;e="";try{return e="<mathroutines>"+(Math.exp(10)+1/Math.exp(10))/2+"|"+Math.tan(-1e300)+"</mathroutines>",e}catch{return"<mathroutines>Error</mathroutines>"}}getCanvas(){const e=document.createElement("canvas"),t=e.getContext("2d");new Date().toString();const i="ThiosIsVerrySeCuRe02938883721##@@@_moreStuff! | ${userAgent} | ${screenInfo} | ${currentDate}";t.textBaseline="top",t.font="16px 'Arial'",t.textBaseline="alphabetic",t.rotate(.05),t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText(i,2,15),t.fillStyle="rgba(102, 200, 0, 0.7)",t.fillText(i,4,17),t.shadowBlur=10,t.shadowColor="blue",t.fillRect(-20,10,234,5);const n=e.toDataURL();document.body.appendChild(e);let r=0;if(n.length===0)return"nothing!";for(let a=0;a<n.length;a++)r=(r<<5)-r+n.charCodeAt(a),r&=r;return r}tryAuthentication(e){if(!e||!this.getSSO()){this.getSSO()||le.error("Login without an SSO ticket is not supported"),this.dispatchCommunicationDemoEvent(bn.CONNECTION_HANDSHAKE_FAILED,e);return}const t=new dEe.ClientJS,i=t.getCustomFingerprint(t.getAvailableResolution(),t.getOS(),t.getCPU(),t.getColorDepth(),this.getGpu(),t.getSilverlightVersion(),t.getOSVersion(),this.getMathResult(),t.getCanvasPrint(),this.getCanvas()),n=i==null?"FAILED":`IID-${i}`;e.send(new wF(this.getSSO(),Pe())),e.send(new CF(n,"",""))}onClientPingEvent(e){!e||!e.connection||this.sendPong(e.connection)}onAuthenticatedEvent(e){!e||!e.connection||(this.completeHandshake(e.connection),this.dispatchCommunicationDemoEvent(bn.CONNECTION_AUTHENTICATED,e.connection),e.connection.send(new AF))}startHandshake(e){this.dispatchCommunicationDemoEvent(bn.CONNECTION_HANDSHAKING,e),this._handShaking=!0}completeHandshake(e){this.dispatchCommunicationDemoEvent(bn.CONNECTION_HANDSHAKED,e),this._handShaking=!1}startPonging(){this.stopPonging(),this._pongInterval=window.setInterval(this.sendPong,Te.getValue("system.pong.interval.ms",2e4))}stopPonging(){this._pongInterval&&(clearInterval(this._pongInterval),this._pongInterval=null)}sendPong(e=null){e=e||this._communication.connection||null,e&&e.send(new OF)}dispatchCommunicationDemoEvent(e,t){ce.instance.events.dispatchEvent(new bn(e,t))}getSSO(){return Te.getValue("sso.ticket",null)}}class gEe{constructor(){this._events=new Map,this._composers=new Map,this.registerEvents(),this.registerComposers()}registerEvents(){this._events.set(O.INTERSTITIAL_MESSAGE,aoe),this._events.set(O.ROOM_AD_ERROR,ooe),this._events.set(O.AVAILABILITY_STATUS,R4),this._events.set(O.AVAILABILITY_TIME,loe),this._events.set(O.HOTEL_CLOSED_AND_OPENS,uoe),this._events.set(O.HOTEL_CLOSES_AND_OPENS_AT,hoe),this._events.set(O.HOTEL_WILL_CLOSE_MINUTES,coe),this._events.set(O.HOTEL_MAINTENANCE,foe),this._events.set(O.USER_CHANGE_NAME,X_),this._events.set(O.CHECK_USER_NAME,doe),this._events.set(O.USER_FIGURE,S4),this._events.set(O.USER_OUTFITS,_oe),this._events.set(O.ADD_BOT_TO_INVENTORY,goe),this._events.set(O.USER_BOTS,poe),this._events.set(O.BOT_RECEIVED,moe),this._events.set(O.REMOVE_BOT_FROM_INVENTORY,voe),this._events.set(O.CFH_SANCTION,Eoe),this._events.set(O.CFH_TOPICS,yoe),this._events.set(O.CFH_SANCTION_STATUS,Toe),this._events.set(O.CAMERA_PUBLISH_STATUS,Ioe),this._events.set(O.CAMERA_PURCHASE_OK,Roe),this._events.set(O.CAMERA_STORAGE_URL,boe),this._events.set(O.COMPETITION_STATUS,Aoe),this._events.set(O.INIT_CAMERA,Ooe),this._events.set(O.THUMBNAIL_STATUS,woe),this._events.set(O.CAMERA_SNAPSHOT,Soe),this._events.set(O.CAMPAIGN_CALENDAR_DATA,Coe),this._events.set(O.CAMPAIGN_CALENDAR_DOOR_OPENED,Moe),this._events.set(O.BONUS_RARE_INFO,Noe),this._events.set(O.BUILDERS_CLUB_FURNI_COUNT,Poe),this._events.set(O.BUILDERS_CLUB_SUBSCRIPTION,koe),this._events.set(O.BUNDLE_DISCOUNT_RULESET,xoe),this._events.set(O.CATALOG_PAGE_EXPIRATION,Doe),this._events.set(O.CATALOG_PAGE,Loe),this._events.set(O.CATALOG_PAGE_LIST,Uoe),this._events.set(O.CATALOG_EARLIEST_EXPIRY,Foe),this._events.set(O.CATALOG_PUBLISHED,Boe),this._events.set(O.CLUB_GIFT_INFO,Goe),this._events.set(O.CLUB_GIFT_SELECTED,Voe),this._events.set(O.DIRECT_SMS_CLUB_BUY,joe),this._events.set(O.GIFT_RECEIVER_NOT_FOUND,Hoe),this._events.set(O.GIFT_WRAPPER_CONFIG,Woe),this._events.set(O.CLUB_EXTENDED_OFFER,Yoe),this._events.set(O.CLUB_OFFERS,Xoe),this._events.set(O.IS_OFFER_GIFTABLE,Koe),this._events.set(O.LIMITED_SOLD_OUT,qoe),this._events.set(O.LIMITED_OFFER_APPEARING_NEXT,$oe),this._events.set(O.NOT_ENOUGH_BALANCE,Qoe),this._events.set(O.PRODUCT_OFFER,Zoe),this._events.set(O.CATALOG_PURCHASE_ERROR,Joe),this._events.set(O.CATALOG_PURCHASE_NOT_ALLOWED,ele),this._events.set(O.CATALOG_PURCHASE_OK,tle),this._events.set(O.ROOM_AD_PURCHASE,ile),this._events.set(O.SEASONAL_CALENDAR_OFFER,sle),this._events.set(O.CATALOG_RECEIVE_PET_BREEDS,nle),this._events.set(O.TARGET_OFFER,rle),this._events.set(O.TARGET_OFFER_NOT_FOUND,ale),this._events.set(O.REDEEM_VOUCHER_ERROR,ole),this._events.set(O.REDEEM_VOUCHER_OK,lle),this._events.set(O.CLIENT_PING,b4),this._events.set(O.COMPETITION_ENTRY_SUBMIT,ule),this._events.set(O.COMPETITION_VOTING_INFO,hle),this._events.set(O.COMPETITION_TIMING_CODE,cle),this._events.set(O.COMPETITION_USER_PART_OF,fle),this._events.set(O.COMPETITION_NO_OWNED_ROOMS,dle),this._events.set(O.COMPETITION_SECONDS_UNTIL,_le),this._events.set(O.CRAFTABLE_PRODUCTS,gle),this._events.set(O.CRAFTING_RECIPE,ple),this._events.set(O.CRAFTING_RECIPES_AVAILABLE,mle),this._events.set(O.CRAFTING_RESULT,vle),this._events.set(O.DESKTOP_VIEW,CS),this._events.set(O.MESSENGER_ACCEPT_FRIENDS,Ele),this._events.set(O.MESSENGER_FIND_FRIENDS,yle),this._events.set(O.MESSENGER_FOLLOW_FAILED,Tle),this._events.set(O.MESSENGER_FRIENDS,Ile),this._events.set(O.MESSENGER_UPDATE,Rle),this._events.set(O.MESSENGER_FRIEND_NOTIFICATION,Sle),this._events.set(O.MESSENGER_REQUESTS,ble),this._events.set(O.MESSENGER_SEARCH,Ale),this._events.set(O.MESSENGER_INSTANCE_MESSAGE_ERROR,Ole),this._events.set(O.MESSENGER_MESSAGE_ERROR,wle),this._events.set(O.MESSENGER_INIT,Cle),this._events.set(O.MESSENGER_MINIMAIL_NEW,Mle),this._events.set(O.MESSENGER_MINIMAIL_COUNT,Nle),this._events.set(O.MESSENGER_CHAT,Ple),this._events.set(O.MESSENGER_REQUEST,A4),this._events.set(O.MESSENGER_INVITE_ERROR,kle),this._events.set(O.MESSENGER_INVITE,xle),this._composers.set(S.DELETE_ITEM,jpe),this._events.set(O.ACHIEVEMENTRESOLUTIONCOMPLETED,jle),this._events.set(O.ACHIEVEMENTRESOLUTIONPROGRESS,zle),this._events.set(O.ACHIEVEMENTRESOLUTIONS,Hle),this._events.set(O.LOAD_GAME_URL,O4),this._events.set(O.LOADGAME,Zle),this._events.set(O.UNLOADGAME,Jle),this._events.set(O.GAME_CENTER_GAME_LIST,Xle),this._events.set(O.GAMESTATUSMESSAGE,Kle),this._events.set(O.GAME_CENTER_ACHIEVEMENTS,eue),this._events.set(O.GAME_CENTER_STATUS,Dle),this._events.set(O.GAME_CENTER_IN_ARENA_QUEUE,Ule),this._events.set(O.GAME_CENTER_STOP_COUNTER,Gle),this._events.set(O.GAME_CENTER_USER_LEFT_GAME,Vle),this._events.set(O.GAME_CENTER_DIRECTORY_STATUS,Lle),this._events.set(O.GAME_CENTER_STARTING_GAME_FAILED,Ble),this._events.set(O.GAME_CENTER_JOINING_FAILED,Fle),this._events.set(O.GAMEACHIEVEMENTS,Wle),this._events.set(O.GAMEINVITE,Yle),this._events.set(O.JOINEDQUEUEMESSAGE,qle),this._events.set(O.JOININGQUEUEFAILED,$le),this._events.set(O.LEFTQUEUE,Qle),this._events.set(O.WEEKLY_GAME_REWARD,rue),this._events.set(O.WEEKLY_GAME_REWARD_WINNERS,aue),this._events.set(O.WEEKLY_COMPETITIVE_LEADERBOARD,nue),this._events.set(O.WEEKLY_COMPETITIVE_FRIENDS_LEADERBOARD,sue),this._events.set(O.WEEKLY_GAME2_FRIENDS_LEADERBOARD,tue),this._events.set(O.WEEKLY_GAME2_LEADERBOARD,iue),this._events.set(O.GROUP_INFO,fue),this._events.set(O.GROUP_MEMBER_REMOVE_CONFIRM,cue),this._events.set(O.GROUP_MEMBERS,due),this._events.set(O.GROUP_CREATE_OPTIONS,hue),this._events.set(O.GROUP_BADGE_PARTS,w4),this._events.set(O.GROUP_SETTINGS,gue),this._events.set(O.GROUP_PURCHASED,_ue),this._events.set(O.GROUP_BADGES,vF),this._events.set(O.GROUP_DEACTIVATE,pue),this._events.set(O.GROUP_MEMBERSHIP_REQUESTED,mde),this._events.set(O.GROUP_DETAILS_CHANGED,pde),this._events.set(O.GROUP_HABBO_JOIN_FAILED,Tde),this._events.set(O.GROUP_FORUM_DATA,mue),this._events.set(O.GROUP_FORUM_LIST,vue),this._events.set(O.GROUP_FORUM_THREADS,Eue),this._events.set(O.GROUP_FORUM_POST,yue),this._events.set(O.GROUP_FORUM_POST_THREAD,Tue),this._events.set(O.GROUP_FORUM_THREAD_MESSAGES,Iue),this._events.set(O.GROUP_FORUM_UNREAD_COUNT,Rue),this._events.set(O.GROUP_FORUM_UPDATE_MESSAGE,Sue),this._events.set(O.GROUP_FORUM_UPDATE_THREAD,bue),this._events.set(O.CFH_DISABLED_NOTIFY,Mue),this._events.set(O.CFH_PENDING_CALLS_DELETED,Nue),this._events.set(O.CFH_PENDING_CALLS,Pue),this._events.set(O.CFH_REPLY,kue),this._events.set(O.CFH_RESULT_MESSAGE,xue),this._events.set(O.GUIDE_ON_DUTY_STATUS,Gue),this._events.set(O.GUIDE_SESSION_ATTACHED,jue),this._events.set(O.GUIDE_SESSION_DETACHED,zue),this._events.set(O.GUIDE_SESSION_ENDED,M4),this._events.set(O.GUIDE_SESSION_ERROR,N4),this._events.set(O.GUIDE_SESSION_INVITED_TO_GUIDE_ROOM,Hue),this._events.set(O.GUIDE_SESSION_MESSAGE,Wue),this._events.set(O.GUIDE_SESSION_PARTNER_IS_TYPING,Yue),this._events.set(O.GUIDE_SESSION_REQUESTER_ROOM,Xue),this._events.set(O.GUIDE_SESSION_STARTED,P4),this._events.set(O.GUIDE_TICKET_CREATION_RESULT,Kue),this._events.set(O.GUIDE_TICKET_RESOLUTION,que),this._events.set(O.GUIDE_REPORTING_STATUS,Vue),this._events.set(O.HOTEL_MERGE_NAME_CHANGE,$ue),this._events.set(O.ISSUE_CLOSE_NOTIFICATION,Que),this._events.set(O.QUIZ_DATA,Zue),this._events.set(O.QUIZ_RESULTS,Jue),this._events.set(O.CHAT_REVIEW_SESSION_DETACHED,Due),this._events.set(O.CHAT_REVIEW_SESSION_OFFERED_TO_GUIDE,Lue),this._events.set(O.CHAT_REVIEW_SESSION_RESULTS,Uue),this._events.set(O.CHAT_REVIEW_SESSION_STARTED,Fue),this._events.set(O.CHAT_REVIEW_SESSION_VOTING_STATUS,Bue),this._events.set(O.ACHIEVEMENT_PROGRESSED,ehe),this._events.set(O.ACHIEVEMENT_LIST,the),this._events.set(O.USER_ACHIEVEMENT_SCORE,ihe),this._events.set(O.USER_EFFECT_ACTIVATE,she),this._events.set(O.USER_EFFECT_LIST_ADD,nhe),this._events.set(O.USER_EFFECT_LIST_REMOVE,rhe),this._events.set(O.USER_EFFECT_LIST,ohe),this._events.set(O.AVATAR_EFFECT_SELECTED,ahe),this._events.set(O.USER_BADGES,uhe),this._events.set(O.USER_BADGES_ADD,lhe),this._events.set(O.BADGE_POINT_LIMITS,k4),this._events.set(O.BADGE_REQUEST_FULFILLED,hhe),this._events.set(O.USER_CLOTHING,che),this._events.set(O.USER_FURNITURE_ADD,fhe),this._events.set(O.USER_FURNITURE,dhe),this._events.set(O.USER_FURNITURE_REFRESH,_he),this._events.set(O.USER_FURNITURE_REMOVE,ghe),this._events.set(O.USER_FURNITURE_POSTIT_PLACED,phe),this._events.set(O.USER_PETS,The),this._events.set(O.USER_PET_REMOVE,Rhe),this._events.set(O.USER_PET_ADD,yhe),this._events.set(O.PET_RECEIVED,Ihe),this._events.set(O.PET_PLACING_ERROR,F4),this._events.set(O.YOUTUBE_CONTROL_VIDEO,Lfe),this._events.set(O.YOUTUBE_DISPLAY_PLAYLISTS,Ufe),this._events.set(O.YOUTUBE_DISPLAY_VIDEO,Ffe),this._events.set(O.TRADE_ACCEPTED,She),this._events.set(O.TRADE_CLOSED,bhe),this._events.set(O.TRADE_COMPLETED,Ahe),this._events.set(O.TRADE_CONFIRMATION,Ohe),this._events.set(O.TRADE_LIST_ITEM,whe),this._events.set(O.TRADE_NOT_OPEN,Mhe),this._events.set(O.TRADE_OPEN_FAILED,Phe),this._events.set(O.TRADE_OPEN,Nhe),this._events.set(O.TRADE_OTHER_NOT_ALLOWED,khe),this._events.set(O.TRADE_YOU_NOT_ALLOWED,xhe),this._events.set(O.TRADE_NO_SUCH_ITEM,Che),this._events.set(O.COMMUNITY_GOAL_VOTE_EVENT,Lhe),this._events.set(O.PROMO_ARTICLES,Dhe),this._events.set(O.MARKETPLACE_AFTER_ORDER_STATUS,Uhe),this._events.set(O.MARKETPLACE_CANCEL_SALE,Fhe),this._events.set(O.MARKETPLACE_SELL_ITEM,Bhe),this._events.set(O.MARKETPLACE_CONFIG,Ghe),this._events.set(O.MARKETPLACE_ITEM_STATS,Vhe),this._events.set(O.MARKETPLACE_ITEM_POSTED,jhe),this._events.set(O.MARKETPLACE_ITEMS_SEARCHED,zhe),this._events.set(O.MARKETPLACE_OWN_ITEMS,Hhe),this._events.set(O.USER_BANNED,nce),this._events.set(O.MODERATION_CAUTION,$he),this._events.set(O.MODTOOL_ROOM_INFO,Jhe),this._events.set(O.MODTOOL_USER_CHATLOG,rce),this._events.set(O.MODTOOL_ROOM_CHATLOG,ice),this._events.set(O.MODERATION_USER_INFO,tce),this._events.set(O.MODERATION_TOOL,Qhe),this._events.set(O.MODTOOL_VISITED_ROOMS_USER,sce),this._events.set(O.CFH_CHATLOG,Whe),this._events.set(O.ISSUE_DELETED,Yhe),this._events.set(O.ISSUE_INFO,Xhe),this._events.set(O.ISSUE_PICK_FAILED,Khe),this._events.set(O.MODERATOR_ACTION_RESULT,qhe),this._events.set(O.MODERATOR_MESSAGE,Zhe),this._events.set(O.MODERATOR_TOOL_PREFERENCES,ece),this._events.set(O.MYSTERY_BOX_KEYS,D4),this._events.set(O.GOTMYSTERYBOXPRIZEMESSAGE,oce),this._events.set(O.CANCELMYSTERYBOXWAITMESSAGE,ace),this._events.set(O.SHOWMYSTERYBOXWAITMESSAGE,lce),this._events.set(O.CAN_CREATE_ROOM,uce),this._events.set(O.CAN_CREATE_ROOM_EVENT,hce),this._events.set(O.CATEGORIES_WITH_VISITOR_COUNT,cce),this._events.set(O.COMPETITION_ROOMS_DATA,fce),this._events.set(O.CONVERTED_ROOM_ID,dce),this._events.set(O.ROOM_DOORBELL,L4),this._events.set(O.USER_FAVORITE_ROOM,_ce),this._events.set(O.USER_FAVORITE_ROOM_COUNT,gce),this._events.set(O.ROOM_DOORBELL_REJECTED,NS),this._events.set(O.ROOM_CREATED,pce),this._events.set(O.ROOM_INFO,PS),this._events.set(O.GUEST_ROOM_SEARCH_RESULT,mce),this._events.set(O.USER_HOME_ROOM,Ece),this._events.set(O.ROOM_EVENT_CANCEL,Oce),this._events.set(O.ROOM_EVENT,wce),this._events.set(O.ROOM_INFO_UPDATED,Mce),this._events.set(O.THUMBNAIL_UPDATE_RESULT,Nce),this._events.set(O.NAVIGATOR_EVENT_CATEGORIES,Pce),this._events.set(O.NAVIGATOR_CATEGORIES,kce),this._events.set(O.NAVIGATOR_COLLAPSED,vce),this._events.set(O.NAVIGATOR_LIFTED,yce),this._events.set(O.NAVIGATOR_METADATA,Tce),this._events.set(O.NAVIGATOR_OPEN_ROOM_CREATOR,Ice),this._events.set(O.NAVIGATOR_SEARCHES,Rce),this._events.set(O.NAVIGATOR_SEARCH,Sce),this._events.set(O.NAVIGATOR_SETTINGS,bce),this._events.set(O.GENERIC_ALERT,Bce),this._events.set(O.MOTD_MESSAGES,Vce),this._events.set(O.NOTIFICATION_LIST,jce),this._events.set(O.UNSEEN_ITEMS,Xce),this._events.set(O.ACHIEVEMENT_NOTIFICATION,xce),this._events.set(O.INFO_FEED_ENABLE,Gce),this._events.set(O.CLUB_GIFT_NOTIFICATION,Lce),this._events.set(O.ACTIVITY_POINT_NOTIFICATION,Dce),this._events.set(O.BOT_ERROR,U4),this._events.set(O.PET_LEVEL_NOTIFICATION,Hce),this._events.set(O.NOTIFICATION_OFFER_REWARD_DELIVERED,zce),this._events.set(O.NOTIFICATION_SIMPLE_ALERT,Yce),this._events.set(O.NOTIFICATION_ELEMENT_POINTER,Fce),this._events.set(O.USER_PERKS,tfe),this._events.set(O.PET_TRAINING_PANEL,sfe),this._events.set(O.PET_LEVEL_UPDATE,V4),this._events.set(O.PET_SCRATCH_FAILED,j4),this._events.set(O.PET_OPEN_PACKAGE_REQUESTED,B4),this._events.set(O.PET_OPEN_PACKAGE_RESULT,G4),this._events.set(O.PET_BREEDING_RESULT,Z4),this._events.set(O.QUESTION,X4),this._events.set(O.POLL_CONTENTS,z4),this._events.set(O.POLL_ERROR,H4),this._events.set(O.POLL_OFFER,W4),this._events.set(O.POLL_START_ROOM,q4),this._events.set(O.QUESTION_ANSWERED,Y4),this._events.set(O.QUESTION_FINISHED,K4),this._events.set(O.COMMUNITY_GOAL_EARNED_PRIZES,nfe),this._events.set(O.COMMUNITY_GOAL_PROGRESS,afe),this._events.set(O.CONCURRENT_USERS_GOAL_PROGRESS,ofe),this._events.set(O.QUEST_DAILY,cfe),this._events.set(O.QUEST_CANCELLED,ufe),this._events.set(O.QUEST_COMPLETED,hfe),this._events.set(O.COMMUNITY_GOAL_HALL_OF_FAME,rfe),this._events.set(O.EPIC_POPUP,lfe),this._events.set(O.SEASONAL_QUESTS,_fe),this._events.set(O.QUESTS,dfe),this._events.set(O.QUEST,ffe),this._events.set(O.ROOM_ENTER_ERROR,gfe),this._events.set(O.ROOM_ENTER,BS),this._events.set(O.ROOM_FORWARD,pfe),this._events.set(O.ROOM_DOORBELL_ACCEPTED,DS),this._events.set(O.ROOM_RIGHTS_CLEAR,LS),this._events.set(O.ROOM_RIGHTS_OWNER,FS),this._events.set(O.ROOM_RIGHTS,US),this._events.set(O.BOT_COMMAND_CONFIGURATION,mfe),this._events.set(O.BOT_SKILL_LIST_UPDATE,Efe),this._events.set(O.BOT_FORCE_OPEN_CONTEXT_MENU,vfe),this._events.set(O.ROOM_SETTINGS_CHAT,yfe),this._events.set(O.ROOM_INFO_OWNER,Tfe),this._events.set(O.ROOM_SCORE,Ife),this._events.set(O.ROOM_ROLLING,VS),this._events.set(O.FURNITURE_FLOOR_ADD,zS),this._events.set(O.FURNITURE_FLOOR,HS),this._events.set(O.FURNITURE_FLOOR_REMOVE,WS),this._events.set(O.FURNITURE_FLOOR_UPDATE,YS),this._events.set(O.ITEM_WALL_ADD,QS),this._events.set(O.ITEM_WALL,ZS),this._events.set(O.ITEM_WALL_REMOVE,JS),this._events.set(O.ITEM_WALL_UPDATE,eb),this._events.set(O.FURNITURE_ALIASES,XS),this._events.set(O.FURNITURE_DATA,KS),this._events.set(O.FURNITURE_ITEMDATA,qS),this._events.set(O.ITEM_STACK_HELPER,bfe),this._events.set(O.FURNITURE_STATE,$S),this._events.set(O.ITEM_DIMMER_SETTINGS,Q4),this._events.set(O.FURNITURE_STATE_2,jS),this._events.set(O.LOVELOCK_FURNI_FINISHED,Ofe),this._events.set(O.LOVELOCK_FURNI_FRIEND_COMFIRMED,wfe),this._events.set(O.LOVELOCK_FURNI_START,Cfe),this._events.set(O.OBJECTS_DATA_UPDATE,GS),this._events.set(O.FURNITURE_GROUP_CONTEXT_MENU_INFO,Afe),this._events.set(O.FURNITURE_POSTIT_STICKY_POLE_OPEN,kfe),this._events.set(O.ROOM_SPECTATOR,sF),this._events.set(O.CUSTOM_USER_NOTIFICATION,Rfe),this._events.set(O.ROOM_MESSAGE_NOTIFICATION,xfe),this._events.set(O.ROOM_POPULAR_TAGS_RESULT,Ace),this._events.set(O.ROOM_RIGHTS_LIST,qfe),this._events.set(O.ROOM_RIGHTS_LIST_ADD,Xfe),this._events.set(O.ROOM_RIGHTS_LIST_REMOVE,Kfe),this._events.set(O.ROOM_BAN_LIST,Yfe),this._events.set(O.ROOM_SETTINGS_SAVE_ERROR,tde),this._events.set(O.ROOM_SETTINGS,Zfe),this._events.set(O.ROOM_SETTINGS_SAVE,ede),this._events.set(O.ROOM_SETTINGS_ERROR,Jfe),this._events.set(O.SHOW_ENFORCE_ROOM_CATEGORY,ide),this._events.set(O.ROOM_BAN_REMOVE,sde),this._events.set(O.ROOM_MUTED,$fe),this._events.set(O.NO_SUCH_FLAT,Qfe),this._events.set(O.FAVORITE_GROUP_UDPATE,$4),this._events.set(O.ROOM_MODEL_DOOR,ib),this._events.set(O.ROOM_HEIGHT_MAP,sb),this._events.set(O.ROOM_HEIGHT_MAP_UPDATE,nb),this._events.set(O.ROOM_MODEL,tb),this._events.set(O.ROOM_MODEL_NAME,Zc),this._events.set(O.ROOM_PAINT,rb),this._events.set(O.ROOM_THICKNESS,ab),this._events.set(O.ROOM_GET_FILTER_WORDS,Cce),this._events.set(O.ROOM_MODEL_BLOCKED_TILES,Bfe),this._events.set(O.PET_FIGURE_UPDATE,Ev),this._events.set(O.PET_INFO,eF),this._events.set(O.PET_STATUS,tF),this._events.set(O.PET_EXPERIENCE,J4),this._events.set(O.PLAYING_GAME,iF),this._events.set(O.UNIT_DANCE,Iv),this._events.set(O.UNIT_EFFECT,lb),this._events.set(O.UNIT,Rv),this._events.set(O.UNIT_EXPRESSION,ub),this._events.set(O.UNIT_HAND_ITEM,hb),this._events.set(O.UNIT_IDLE,cb),this._events.set(O.UNIT_INFO,Sv),this._events.set(O.UNIT_NUMBER,fb),this._events.set(O.UNIT_REMOVE,bv),this._events.set(O.UNIT_STATUS,db),this._events.set(O.HAND_ITEM_RECEIVED,aF),this._events.set(O.FLOOD_CONTROL,nF),this._events.set(O.REMAINING_MUTE,rF),this._events.set(O.UNIT_CHAT,Lw),this._events.set(O.UNIT_CHAT_SHOUT,yv),this._events.set(O.UNIT_CHAT_WHISPER,Tv),this._events.set(O.UNIT_TYPING,ob),this._events.set(O.WIRED_ACTION,Gfe),this._events.set(O.WIRED_CONDITION,Vfe),this._events.set(O.WIRED_TRIGGER,jfe),this._events.set(O.WIRED_OPEN,zfe),this._events.set(O.WIRED_REWARD,_b),this._events.set(O.WIRED_SAVE,Hfe),this._events.set(O.WIRED_ERROR,Wfe),this._events.set(O.AUTHENTICATED,oF),this._events.set(O.JUKEBOX_PLAYLIST_FULL,lF),this._events.set(O.JUKEBOX_SONG_DISKS,uF),this._events.set(O.NOW_PLAYING,hF),this._events.set(O.OFFICIAL_SONG_ID,nde),this._events.set(O.PLAYLIST,rde),this._events.set(O.PLAYLIST_SONG_ADDED,ade),this._events.set(O.TRAX_SONG_INFO,cF),this._events.set(O.USER_SONG_DISKS_INVENTORY,fF),this._events.set(O.HELPER_TALENT_TRACK,ude),this._events.set(O.TALENT_TRACK_LEVEL,lde),this._events.set(O.TALENT_TRACK_LEVEL_UP,ode),this._events.set(O.IN_CLIENT_LINK,yF),this._events.set(O.USER_IGNORED,EF),this._events.set(O.USER_IGNORED_RESULT,Fw),this._events.set(O.USER_RESPECT,RF),this._events.set(O.USER_PERMISSIONS,dF),this._events.set(O.USER_BADGES_CURRENT,gF),this._events.set(O.USER_INFO,Av),this._events.set(O.UNIT_CHANGE_NAME,Uw),this._events.set(O.USER_SETTINGS,_de),this._events.set(O.USER_PROFILE,dde),this._events.set(O.MESSENGER_RELATIONSHIPS,fde),this._events.set(O.GIFT_OPENED,x4),this._events.set(O.USER_CREDITS,Ide),this._events.set(O.USER_CURRENCY,Rde),this._events.set(O.USER_SUBSCRIPTION,Sde),this._events.set(O.USER_WARDROBE_PAGE,Ade),this._events.set(O.USER_CLASSIFICATION,wde),this._events.set(O.GET_USER_TAGS,pF),this._events.set(O.SCR_SEND_KICKBACK_INFO,bde),this._events.set(O.PET_RESPECTED,TF),this._events.set(O.PET_SUPPLEMENT,IF),this._events.set(O.ACCOUNT_SAFETY_LOCK_STATUS_CHANGE,_F),this._events.set(O.GENERIC_ERROR,MS),this._events.set(O.GROUP_LIST,yde),this._events.set(O.CATALOG_APPROVE_NAME_RESULT,hde),this._events.set(O.CONNECTION_ERROR,Uce),this._events.set(O.GUILD_EDIT_FAILED,vde),this._events.set(O.GUILD_MEMBER_MGMT_FAILED,Ede),this._events.set(O.EXTENDED_PROFILE_CHANGED,gde),this._events.set(O.NOOBNESS_LEVEL,C4),this._events.set(O.DISCONNECT_REASON,Oue),this._events.set(O.HANDSHAKE_INIT_DIFFIE,Cue),this._events.set(O.HANDSHAKE_COMPLETE_DIFFIE,Aue),this._events.set(O.HANDSHAKE_IDENTITY_ACCOUNT,wue),this._events.set(O.NEW_USER_EXPERIENCE_GIFT_OFFER,Zce),this._events.set(O.NEW_USER_EXPERIENCE_NOT_COMPLETE,efe),this._events.set(O.RESTORE_CLIENT,Wce),this._events.set(O.FIREWORK_CHARGE_DATA,zoe),this._events.set(O.PHONE_COLLECTION_STATE,oue),this._events.set(O.PHONE_TRY_NUMBER_RESULT,lue),this._events.set(O.PHONE_TRY_VERIFICATION_CODE_RESULT,uue),this._events.set(O.WELCOME_GIFT_CHANGE_EMAIL_RESULT,Ode),this._events.set(O.WELCOME_GIFT_STATUS,Dfe),this._events.set(O.RENTABLE_SPACE_RENT_OK,Nfe),this._events.set(O.RENTABLE_SPACE_STATUS,Pfe),this._events.set(O.RENTABLE_SPACE_RENT_FAILED,Mfe),this._events.set(O.RECYCLER_STATUS,xS),this._events.set(O.RECYCLER_FINISHED,kS),this._events.set(O.EMAIL_STATUS,mF),this._events.set(O.CHANGE_EMAIL_RESULT,cde),this._events.set(O.RENTABLE_FURNI_RENT_OR_BUYOUT_OFFER,Sfe)}registerComposers(){this._composers.set(S.AUTHENTICATION,epe),this._composers.set(S.INTERSTITIAL_SHOWN,Mde),this._composers.set(S.GET_INTERSTITIAL,Cde),this._composers.set(S.GET_WARDROBE,xde),this._composers.set(S.SAVE_WARDROBE_OUTFIT,Dde),this._composers.set(S.CHANGE_USERNAME,Pde),this._composers.set(S.CHECK_USERNAME,kde),this._composers.set(S.REQUEST_CAMERA_CONFIGURATION,Bde),this._composers.set(S.RENDER_ROOM,Ov),this._composers.set(S.RENDER_ROOM_THUMBNAIL,pb),this._composers.set(S.PURCHASE_PHOTO,Fde),this._composers.set(S.PUBLISH_PHOTO,Ude),this._composers.set(S.PHOTO_COMPETITION,Lde),this._composers.set(S.OPEN_CAMPAIGN_CALENDAR_DOOR,Vde),this._composers.set(S.OPEN_CAMPAIGN_CALENDAR_DOOR_STAFF,Gde),this._composers.set(S.BUILDERS_CLUB_PLACE_ROOM_ITEM,jde),this._composers.set(S.BUILDERS_CLUB_PLACE_WALL_ITEM,zde),this._composers.set(S.BUILDERS_CLUB_QUERY_FURNI_COUNT,Hde),this._composers.set(S.GET_CATALOG_INDEX,Xde),this._composers.set(S.GET_CATALOG_PAGE,Kde),this._composers.set(S.CATALOG_PURCHASE,__e),this._composers.set(S.CATALOG_PURCHASE_GIFT,d_e),this._composers.set(S.GET_PRODUCT_OFFER,a_e),this._composers.set(S.GET_CLUB_OFFERS,Zde),this._composers.set(S.GET_CLUB_GIFT_INFO,Qde),this._composers.set(S.CATALOG_REDEEM_VOUCHER,v_e),this._composers.set(S.GROUP_MEMBERSHIPS,Q1e),this._composers.set(S.GET_GIFT_WRAPPING_CONFIG,e_e),this._composers.set(S.CATALOG_SELECT_VIP_GIFT,y_e),this._composers.set(S.CATALOG_REQUESET_PET_BREEDS,u_e),this._composers.set(S.GET_BONUS_RARE_INFO,Wde),this._composers.set(S.GET_BUNDLE_DISCOUNT_RULESET,Yde),this._composers.set(S.GET_CATALOG_PAGE_EXPIRATION,qde),this._composers.set(S.GET_CATALOG_PAGE_WITH_EARLIEST_EXP,$de),this._composers.set(S.GET_DIRECT_CLUB_BUY_AVAILABLE,Jde),this._composers.set(S.GET_HABBO_BASIC_MEMBERSHIP_EXTEND_OFFER,t_e),this._composers.set(S.GET_HABBO_CLUB_EXTEND_OFFER,i_e),this._composers.set(S.GET_IS_OFFER_GIFTABLE,s_e),this._composers.set(S.GET_LIMITED_OFFER_APPEARING_NEXT,n_e),this._composers.set(S.GET_NEXT_TARGETED_OFFER,r_e),this._composers.set(S.GET_ROOM_AD_PURCHASE_INFO,o_e),this._composers.set(S.GET_SEASONAL_CALENDAR_DAILY_OFFER,l_e),this._composers.set(S.GET_TARGETED_OFFER,h_e),this._composers.set(S.MARK_CATALOG_NEW_ADDITIONS_PAGE_OPENED,c_e),this._composers.set(S.PURCHASE_BASIC_MEMBERSHIP_EXTENSION,f_e),this._composers.set(S.PURCHASE_ROOM_AD,g_e),this._composers.set(S.PURCHASE_TARGETED_OFFER,p_e),this._composers.set(S.PURCHASE_VIP_MEMBERSHIP_EXTENSION,m_e),this._composers.set(S.ROOM_AD_PURCHASE_INITIATED,E_e),this._composers.set(S.SET_TARGETTED_OFFER_STATE,T_e),this._composers.set(S.SHOP_TARGETED_OFFER_VIEWED,I_e),this._composers.set(S.FORWARD_TO_A_COMPETITION_ROOM,R_e),this._composers.set(S.FORWARD_TO_A_SUBMITTABLE_ROOM,S_e),this._composers.set(S.FORWARD_TO_RANDOM_COMPETITION_ROOM,b_e),this._composers.set(S.GET_CURRENT_TIMING_CODE,A_e),this._composers.set(S.GET_IS_USER_PART_OF_COMPETITION,O_e),this._composers.set(S.GET_SECONDS_UNTIL,w_e),this._composers.set(S.ROOM_COMPETITION_INIT,C_e),this._composers.set(S.SUBMIT_ROOM_TO_COMPETITION,mb),this._composers.set(S.VOTE_FOR_ROOM,M_e),this._composers.set(S.CRAFT,N_e),this._composers.set(S.CRAFT_SECRET,P_e),this._composers.set(S.GET_CRAFTABLE_PRODUCTS,x_e),this._composers.set(S.GET_CRAFTING_RECIPE,k_e),this._composers.set(S.GET_CRAFTING_RECIPES_AVAILABLE,D_e),this._composers.set(S.FRIEND_FURNI_CONFIRM_LOCK,U_e),this._composers.set(S.ACCEPT_FRIEND,F_e),this._composers.set(S.DECLINE_FRIEND,B_e),this._composers.set(S.FIND_NEW_FRIENDS,G_e),this._composers.set(S.FOLLOW_FRIEND,V_e),this._composers.set(S.FRIEND_LIST_UPDATE,j_e),this._composers.set(S.GET_FRIEND_REQUESTS,z_e),this._composers.set(S.HABBO_SEARCH,H_e),this._composers.set(S.MESSENGER_INIT,W_e),this._composers.set(S.REMOVE_FRIEND,Y_e),this._composers.set(S.REQUEST_FRIEND,X_e),this._composers.set(S.MESSENGER_CHAT,K_e),this._composers.set(S.SEND_ROOM_INVITE,q_e),this._composers.set(S.SET_RELATIONSHIP_STATUS,$_e),this._composers.set(S.VISIT_USER,Q_e),this._composers.set(S.ACHIEVEMENT_RESOLUTION_OPEN,SF),this._composers.set(S.ACCEPTGAMEINVITE,rge),this._composers.set(S.GAMEUNLOADEDMESSAGE,age),this._composers.set(S.GETGAMEACHIEVEMENTSMESSAGE,oge),this._composers.set(S.GAMES_LIST,lge),this._composers.set(S.GETGAMESTATUSMESSAGE,uge),this._composers.set(S.GETUSERGAMEACHIEVEMENTSMESSAGE,hge),this._composers.set(S.JOINQUEUEMESSAGE,cge),this._composers.set(S.LEAVEQUEUEMESSAGE,fge),this._composers.set(S.RESETRESOLUTIONACHIEVEMENTMESSAGE,dge),this._composers.set(S.GAMES_INIT,pge),this._composers.set(S.GETWEEKLYGAMEREWARDWINNERS,mge),this._composers.set(S.GAME2GETACCOUNTGAMESTATUSMESSAGE,sge),this._composers.set(S.GAME2CHECKGAMEDIRECTORYSTATUSMESSAGE,ige),this._composers.set(S.GAME2EXITGAMEMESSAGE,Z_e),this._composers.set(S.GAME2GAMECHATMESSAGE,J_e),this._composers.set(S.GAME2LOADSTAGEREADYMESSAGE,ege),this._composers.set(S.GAME2PLAYAGAINMESSAGE,tge),this._composers.set(S.GAME2REQUESTFULLSTATUSUPDATEMESSAGE,nge),this._composers.set(S.GAME2GETWEEKLYFRIENDSLEADERBOARD,_ge),this._composers.set(S.GAME2GETWEEKLYLEADERBOARD,gge),this._composers.set(S.GET_GIFT,vb),this._composers.set(S.RESET_PHONE_NUMBER_STATE,vge),this._composers.set(S.SET_PHONE_NUMBER_VERIFICATION_STATUS,Eb),this._composers.set(S.TRY_PHONE_NUMBER,Ege),this._composers.set(S.VERIFY_CODE,yge),this._composers.set(S.GET_FORUM_STATS,zge),this._composers.set(S.GET_FORUMS_LIST,jge),this._composers.set(S.GET_FORUM_MESSAGES,Hge),this._composers.set(S.GET_FORUM_THREAD,Wge),this._composers.set(S.GET_FORUM_THREADS,Yge),this._composers.set(S.GET_UNREAD_FORUMS_COUNT,Xge),this._composers.set(S.FORUM_MODERATE_MESSAGE,Kge),this._composers.set(S.FORUM_MODERATE_THREAD,qge),this._composers.set(S.FORUM_POST_MESSAGE,$ge),this._composers.set(S.UPDATE_FORUM_READ_MARKER,Qge),this._composers.set(S.UPDATE_FORUM_SETTINGS,Zge),this._composers.set(S.FORUM_UPDATE_THREAD,Jge),this._composers.set(S.CLIENT_PONG,OF),this._composers.set(S.RELEASE_VERSION,bF),this._composers.set(S.SECURITY_TICKET,wF),this._composers.set(S.USER_INFO,AF),this._composers.set(S.DISCONNECT,ipe),this._composers.set(S.SECURITY_MACHINE,CF),this._composers.set(S.CLIENT_VARIABLES,npe),this._composers.set(S.HANDSHAKE_INIT_DIFFIE,spe),this._composers.set(S.HANDSHAKE_COMPLETE_DIFFIE,tpe),this._composers.set(S.CALL_FOR_HELP_FROM_FORUM_MESSAGE,rpe),this._composers.set(S.CALL_FOR_HELP_FROM_FORUM_THREAD,ape),this._composers.set(S.CALL_FOR_HELP_FROM_IM,ope),this._composers.set(S.CALL_FOR_HELP_FROM_PHOTO,lpe),this._composers.set(S.CALL_FOR_HELP_FROM_SELFIE,upe),this._composers.set(S.CALL_FOR_HELP,hpe),this._composers.set(S.CHAT_REVIEW_GUIDE_DECIDES,cpe),this._composers.set(S.CHAT_REVIEW_GUIDE_DETACHED,fpe),this._composers.set(S.CHAT_REVIEW_GUIDE_VOTE,dpe),this._composers.set(S.CHAT_REVIEW_SESSION_CREATE,_pe),this._composers.set(S.DELETE_PENDING_CALLS_FOR_HELP,gpe),this._composers.set(S.GET_CFH_STATUS,ppe),this._composers.set(S.GET_FAQ_CATEGORY,mpe),this._composers.set(S.GET_FAQ_TEXT,vpe),this._composers.set(S.GET_GUIDE_REPORTING_STATUS,Epe),this._composers.set(S.GET_PENDING_CALLS_FOR_HELP,ype),this._composers.set(S.GET_QUIZ_QUESTIONS,Tpe),this._composers.set(S.GUIDE_SESSION_CREATE,Ipe),this._composers.set(S.GUIDE_SESSION_FEEDBACK,Rpe),this._composers.set(S.GUIDE_SESSION_GET_REQUESTER_ROOM,Spe),this._composers.set(S.GUIDE_SESSION_GUIDE_DECIDES,bpe),this._composers.set(S.GUIDE_SESSION_INVITE_REQUESTER,Ape),this._composers.set(S.GUIDE_SESSION_IS_TYPING,Ope),this._composers.set(S.GUIDE_SESSION_MESSAGE,wpe),this._composers.set(S.GUIDE_SESSION_ON_DUTY_UPDATE,Cpe),this._composers.set(S.GUIDE_SESSION_REPORT,Mpe),this._composers.set(S.GUIDE_SESSION_REQUESTER_CANCELS,Npe),this._composers.set(S.GUIDE_SESSION_RESOLVED,Ppe),this._composers.set(S.POST_QUIZ_ANSWERS,kpe),this._composers.set(S.SEARCH_FAQS,xpe),this._composers.set(S.DESKTOP_VIEW,L_e),this._composers.set(S.GROUP_INFO,Mge),this._composers.set(S.GROUP_REQUEST,Nge),this._composers.set(S.GROUP_MEMBER_REMOVE_CONFIRM,Oge),this._composers.set(S.GROUP_MEMBER_REMOVE,Dge),this._composers.set(S.GROUP_MEMBERS,Pge),this._composers.set(S.GROUP_ADMIN_ADD,Ige),this._composers.set(S.GROUP_ADMIN_REMOVE,Rge),this._composers.set(S.GROUP_REQUEST_ACCEPT,kge),this._composers.set(S.GROUP_REQUEST_DECLINE,xge),this._composers.set(S.GROUP_DELETE,wge),this._composers.set(S.GROUP_CREATE_OPTIONS,Age),this._composers.set(S.GROUP_PARTS,Sge),this._composers.set(S.GROUP_BUY,bge),this._composers.set(S.GROUP_SETTINGS,Gge),this._composers.set(S.GROUP_SAVE_BADGE,Lge),this._composers.set(S.GROUP_SAVE_COLORS,Uge),this._composers.set(S.GROUP_SAVE_INFORMATION,Fge),this._composers.set(S.GROUP_SAVE_PREFERENCES,Bge),this._composers.set(S.GROUP_FAVORITE,Cge),this._composers.set(S.GROUP_UNFAVORITE,Vge),this._composers.set(S.GROUP_BADGES,K6),this._composers.set(S.APPROVE_ALL_MEMBERSHIP_REQUESTS,Tge),this._composers.set(S.GROUP_UNBLOCK_MEMBER,cEe),this._composers.set(S.ROOM_FAVORITE,Dme),this._composers.set(S.CAN_CREATE_ROOM,Ume),this._composers.set(S.CANCEL_ROOM_EVENT,Lme),this._composers.set(S.CONVERT_GLOBAL_ROOM_ID,Bme),this._composers.set(S.COMPETITION_ROOM_SEARCH,Fme),this._composers.set(S.ROOM_CREATE,Gme),this._composers.set(S.GET_USER_FLAT_CATS,Qme),this._composers.set(S.GET_USER_EVENT_CATS,$me),this._composers.set(S.ROOM_FAVORITE_REMOVE,Vme),this._composers.set(S.EDIT_ROOM_EVENT,jme),this._composers.set(S.FORWARD_TO_RANDOM_PROMOTED_ROOM,zme),this._composers.set(S.FORWARD_TO_SOME_ROOM,Hme),this._composers.set(S.GET_CATEGORIES_WITH_USER_COUNT,Wme),this._composers.set(S.GET_GUEST_ROOM,Xme),this._composers.set(S.GET_OFFICIAL_ROOMS,Kme),this._composers.set(S.GET_POPULAR_ROOM_TAGS,qme),this._composers.set(S.GUILD_BASE_SEARCH,Zme),this._composers.set(S.MY_FAVOURITE_ROOMS_SEARCH,Jme),this._composers.set(S.MY_FREQUENT_ROOM_HISTORY_SEARCH,eve),this._composers.set(S.MY_FRIENDS_ROOM_SEARCH,tve),this._composers.set(S.MY_GUILD_BASES_SEARCH,ive),this._composers.set(S.MY_RECOMMENDED_ROOMS,sve),this._composers.set(S.MY_ROOM_HISTORY_SEARCH,nve),this._composers.set(S.MY_ROOM_RIGHTS_SEARCH,rve),this._composers.set(S.MY_ROOMS_SEARCH,ave),this._composers.set(S.POPULAR_ROOMS_SEARCH,gve),this._composers.set(S.ROOM_LIKE,pve),this._composers.set(S.ROOM_RIGHTS_REMOVE_OWN,mve),this._composers.set(S.ROOM_AD_EVENT_TAB_CLICKED,vve),this._composers.set(S.ROOM_AD_EVENT_TAB_VIEWED,Eve),this._composers.set(S.ROOM_AD_SEARCH,yve),this._composers.set(S.ROOM_TEXT_SEARCH,Rve),this._composers.set(S.ROOMS_WHERE_MY_FRIENDS_ARE,Tve),this._composers.set(S.ROOMS_WITH_HIGHEST_SCORE_SEARCH,Ive),this._composers.set(S.SET_ROOM_SESSION_TAGS,Sve),this._composers.set(S.ROOM_STAFF_PICK,bve),this._composers.set(S.ROOM_FILTER_WORDS,Yme),this._composers.set(S.ROOM_FILTER_WORDS_MODIFY,Ove),this._composers.set(S.USER_HOME_ROOM,Ave),this._composers.set(S.UPDATE_ROOM_THUMBNAIL,wve),this._composers.set(S.NAVIGATOR_INIT,uve),this._composers.set(S.NAVIGATOR_SEARCH_CLOSE,hve),this._composers.set(S.NAVIGATOR_SEARCH,cve),this._composers.set(S.NAVIGATOR_SEARCH_OPEN,fve),this._composers.set(S.NAVIGATOR_SEARCH_SAVE,dve),this._composers.set(S.NAVIGATOR_SETTINGS_SAVE,_ve),this._composers.set(S.NAVIGATOR_CATEGORY_LIST_MODE,ove),this._composers.set(S.NAVIGATOR_DELETE_SAVED_SEARCH,lve),this._composers.set(S.POLL_ANSWER,FF),this._composers.set(S.POLL_REJECT,BF),this._composers.set(S.POLL_START,GF),this._composers.set(S.USER_EFFECT_ACTIVATE,Dpe),this._composers.set(S.USER_EFFECT_ENABLE,Lpe),this._composers.set(S.USER_BADGES,Gpe),this._composers.set(S.USER_BADGES_CURRENT_UPDATE,Vpe),this._composers.set(S.GET_BADGE_POINTS_LIMITS,Upe),this._composers.set(S.REQUESTABADGE,Bpe),this._composers.set(S.GETISBADGEREQUESTFULFILLED,Fpe),this._composers.set(S.USER_BOTS,ZP),this._composers.set(S.USER_FURNITURE,zpe),this._composers.set(S.REQUESTFURNIINVENTORYWHENNOTINROOM,Hpe),this._composers.set(S.USER_PETS,JP),this._composers.set(S.TRADE_ACCEPT,Xpe),this._composers.set(S.TRADE_CANCEL,Kpe),this._composers.set(S.TRADE_CLOSE,qpe),this._composers.set(S.TRADE_CONFIRM,$pe),this._composers.set(S.TRADE_ITEM,Qpe),this._composers.set(S.TRADE_ITEMS,Zpe),this._composers.set(S.TRADE_ITEM_REMOVE,Jpe),this._composers.set(S.TRADE,eme),this._composers.set(S.TRADE_UNACCEPT,tme),this._composers.set(S.UNSEEN_RESET_CATEGORY,ime),this._composers.set(S.UNSEEN_RESET_ITEMS,sme),this._composers.set(S.ACHIEVEMENT_LIST,Nde),this._composers.set(S.PET_MOUNT,Ib),this._composers.set(S.PET_RESPECT,PF),this._composers.set(S.PET_SUPPLEMENT,Mve),this._composers.set(S.REMOVE_PET_SADDLE,kF),this._composers.set(S.PET_INFO,xF),this._composers.set(S.TOGGLE_PET_BREEDING,DF),this._composers.set(S.TOGGLE_PET_RIDING,LF),this._composers.set(S.USE_PET_PRODUCT,UF),this._composers.set(S.GET_PET_TRAINING_PANEL,NF),this._composers.set(S.PET_OPEN_PACKAGE,T6),this._composers.set(S.PET_SELECTED,P1e),this._composers.set(S.PETS_BREED,Ab),this._composers.set(S.PET_CANCEL_BREEDING,Wpe),this._composers.set(S.PET_CONFIRM_BREEDING,Ype),this._composers.set(S.ROOM_ENTER,jF),this._composers.set(S.ROOM_DOORBELL,VF),this._composers.set(S.GO_TO_FLAT,b6),this._composers.set(S.CHANGE_QUEUE,S6),this._composers.set(S.ROOM_AMBASSADOR_ALERT,zF),this._composers.set(S.ROOM_BAN_GIVE,HF),this._composers.set(S.ROOM_BAN_REMOVE,Qve),this._composers.set(S.ROOM_RIGHTS_GIVE,WF),this._composers.set(S.ROOM_KICK,YF),this._composers.set(S.ROOM_MUTE_USER,XF),this._composers.set(S.ROOM_RIGHTS_REMOVE,KF),this._composers.set(S.ROOM_RIGHTS_REMOVE_ALL,qve),this._composers.set(S.ROOM_DELETE,$ve),this._composers.set(S.ROOM_SETTINGS,e1e),this._composers.set(S.ROOM_SETTINGS_SAVE,i1e),this._composers.set(S.ROOM_RIGHTS_LIST,t1e),this._composers.set(S.ROOM_BAN_LIST,Jve),this._composers.set(S.ROOM_SETTINGS_UPDATE_ROOM_CATEGORY_AND_TRADE,G1e),this._composers.set(S.BOT_CONFIGURATION,Zve),this._composers.set(S.GET_ITEM_DATA,JF),this._composers.set(S.REMOVE_WALL_ITEM,s6),this._composers.set(S.BOT_PLACE,qF),this._composers.set(S.BOT_PICKUP,$F),this._composers.set(S.BOT_SKILL_SAVE,s1e),this._composers.set(S.PET_PLACE,t6),this._composers.set(S.PET_MOVE,Rb),this._composers.set(S.PET_PICKUP,i6),this._composers.set(S.SET_ITEM_DATA,r6),this._composers.set(S.SET_OBJECT_DATA,a6),this._composers.set(S.COMPOST_PLANT,ZF),this._composers.set(S.HARVEST_PET,e6),this._composers.set(S.SET_CLOTHING_CHANGE_DATA,n6),this._composers.set(S.FURNITURE_ALIASES,h6),this._composers.set(S.FURNITURE_GROUP_INFO,c6),this._composers.set(S.FURNITURE_PICKUP,f6),this._composers.set(S.FURNITURE_PICKUP_ALL,l1e),this._composers.set(S.FURNITURE_PLACE,d6),this._composers.set(S.ITEM_PAINT,u1e),this._composers.set(S.FURNITURE_POSTIT_PLACE,_6),this._composers.set(S.FURNITURE_POSTIT_SAVE_STICKY_POLE,n1e),this._composers.set(S.CONTROL_YOUTUBE_DISPLAY_PLAYBACK,T1e),this._composers.set(S.GET_YOUTUBE_DISPLAY_STATUS,I1e),this._composers.set(S.SET_YOUTUBE_DISPLAY_PLAYLIST,R1e),this._composers.set(S.FURNITURE_FLOOR_UPDATE,Sb),this._composers.set(S.FURNITURE_FLOOR_POSITION_UPDATE,o1e),this._composers.set(S.FURNITURE_WALL_UPDATE,R6),this._composers.set(S.ITEM_DIMMER_SETTINGS,o6),this._composers.set(S.ITEM_DIMMER_SAVE,l6),this._composers.set(S.ITEM_DIMMER_TOGGLE,u6),this._composers.set(S.ROOM_TONER_APPLY,y1e),this._composers.set(S.ITEM_COLOR_WHEEL_CLICK,g6),this._composers.set(S.ITEM_DICE_CLICK,p6),this._composers.set(S.ITEM_DICE_CLOSE,m6),this._composers.set(S.FURNITURE_MULTISTATE,Bw),this._composers.set(S.FURNITURE_RANDOMSTATE,E6),this._composers.set(S.ITEM_STACK_HELPER,f1e),this._composers.set(S.FURNITURE_WALL_MULTISTATE,y6),this._composers.set(S.ONE_WAY_DOOR_CLICK,v6),this._composers.set(S.ITEM_EXCHANGE_REDEEM,c1e),this._composers.set(S.ITEM_CLOTHING_REDEEM,O1e),this._composers.set(S.ROOM_MODEL,bb),this._composers.set(S.GET_OCCUPIED_TILES,S1e),this._composers.set(S.GET_ROOM_ENTRY_TILE,b1e),this._composers.set(S.ROOM_MODEL_SAVE,A1e),this._composers.set(S.UNIT_ACTION,M6),this._composers.set(S.UNIT_DANCE,P6),this._composers.set(S.UNIT_DROP_HAND_ITEM,C1e),this._composers.set(S.UNIT_GIVE_HANDITEM,M1e),this._composers.set(S.UNIT_GIVE_HANDITEM_PET,N1e),this._composers.set(S.UNIT_LOOK,k6),this._composers.set(S.UNIT_SIGN,D6),this._composers.set(S.UNIT_POSTURE,x6),this._composers.set(S.UNIT_WALK,L6),this._composers.set(S.UNIT_CHAT,Gw),this._composers.set(S.UNIT_CHAT_SHOUT,A6),this._composers.set(S.USER_SETTINGS_CHAT_STYLE,w1e),this._composers.set(S.USER_SETTINGS_INFOSTAND_BACKGROUND,N6),this._composers.set(S.UNIT_CHAT_WHISPER,O6),this._composers.set(S.UNIT_TYPING,w6),this._composers.set(S.UNIT_TYPING_STOP,C6),this._composers.set(S.WIRED_APPLY_SNAPSHOT,x1e),this._composers.set(S.WIRED_OPEN,D1e),this._composers.set(S.WIRED_ACTION_SAVE,U1e),this._composers.set(S.WIRED_CONDITION_SAVE,F1e),this._composers.set(S.WIRED_TRIGGER_SAVE,B1e),this._composers.set(S.ROOM_MUTE,L1e),this._composers.set(S.APPROVE_NAME,$1e),this._composers.set(S.USER_RESPECT,q6),this._composers.set(S.SCR_GET_KICKBACK_INFO,aEe),this._composers.set(S.PEER_USERS_CLASSIFICATION,$6),this._composers.set(S.USER_CLASSIFICATION,Q6),this._composers.set(S.USER_IGNORED,V6),this._composers.set(S.USER_IGNORE,z6),this._composers.set(S.USER_IGNORE_ID,H6),this._composers.set(S.USER_UNIGNORE,W6),this._composers.set(S.USER_BADGES_CURRENT,Y6),this._composers.set(S.USER_FIGURE,eEe),this._composers.set(S.USER_MOTTO,X6),this._composers.set(S.USER_PROFILE,tEe),this._composers.set(S.USER_PROFILE_BY_NAME,J1e),this._composers.set(S.USER_TAGS,j6),this._composers.set(S.MESSENGER_RELATIONSHIPS,iEe),this._composers.set(S.MANNEQUIN_SAVE_NAME,_1e),this._composers.set(S.MANNEQUIN_SAVE_LOOK,d1e),this._composers.set(S.PRESENT_OPEN_PRESENT,I6),this._composers.set(S.MARKETPLACE_CONFIG,hme),this._composers.set(S.MARKETPLACE_SELL_ITEM,_me),this._composers.set(S.MARKETPLACE_REQUEST_OWN_ITEMS,dme),this._composers.set(S.MARKETPLACE_TAKE_BACK_ITEM,lme),this._composers.set(S.MARKETPLACE_REQUEST_OFFERS,fme),this._composers.set(S.MARKETPLACE_BUY_OFFER,ame),this._composers.set(S.MARKETPLACE_REDEEM_CREDITS,gme),this._composers.set(S.MARKETPLACE_BUY_TOKENS,ome),this._composers.set(S.REQUEST_SELL_ITEM,ume),this._composers.set(S.REQUEST_MARKETPLACE_ITEM_STATS,cme),this._composers.set(S.USER_BOTS,ZP),this._composers.set(S.USER_PETS,JP),this._composers.set(S.USER_CURRENCY,nEe),this._composers.set(S.USER_SUBSCRIPTION,rEe),this._composers.set(S.MODTOOL_REQUEST_ROOM_INFO,Eme),this._composers.set(S.MODTOOL_CHANGE_ROOM_SETTINGS,bme),this._composers.set(S.MODTOOL_REQUEST_USER_CHATLOG,Rme),this._composers.set(S.MODTOOL_REQUEST_ROOM_CHATLOG,Tme),this._composers.set(S.MOD_TOOL_USER_INFO,yme),this._composers.set(S.MODTOOL_SANCTION_ALERT,Sme),this._composers.set(S.MODTOOL_SANCTION_BAN,ja),this._composers.set(S.MODTOOL_SANCTION_KICK,Ame),this._composers.set(S.MODTOOL_SANCTION_TRADELOCK,Nme),this._composers.set(S.MODTOOL_ALERTEVENT,Ome),this._composers.set(S.MODTOOL_SANCTION_MUTE,wme),this._composers.set(S.MODTOOL_REQUEST_USER_ROOMS,Ime),this._composers.set(S.MODTOOL_ROOM_ALERT,Tb),this._composers.set(S.CLOSE_ISSUE_DEFAULT_ACTION,pme),this._composers.set(S.CLOSE_ISSUES,yb),this._composers.set(S.DEFAULT_SANCTION,mme),this._composers.set(S.GET_CFH_CHATLOG,vme),this._composers.set(S.MODTOOL_PREFERENCES,Cme),this._composers.set(S.MODTOOL_SANCTION,Mme),this._composers.set(S.PICK_ISSUES,Pme),this._composers.set(S.RELEASE_ISSUES,kme),this._composers.set(S.MYSTERYBOXWAITINGCANCELEDMESSAGE,xme),this._composers.set(S.MYSTERYBOX_OPEN_TROPHY,g1e),this._composers.set(S.USER_SETTINGS_CAMERA,oEe),this._composers.set(S.USER_SETTINGS_OLD_CHAT,lEe),this._composers.set(S.USER_SETTINGS_INVITES,uEe),this._composers.set(S.USER_SETTINGS_VOLUME,hEe),this._composers.set(S.COMMUNITY_GOAL_VOTE_COMPOSER,rme),this._composers.set(S.GET_PROMO_ARTICLES,nme),this._composers.set(S.ACCEPT_QUEST,Nve),this._composers.set(S.ACTIVATE_QUEST,Pve),this._composers.set(S.CANCEL_QUEST,kve),this._composers.set(S.FRIEND_REQUEST_QUEST_COMPLETE,xve),this._composers.set(S.GET_COMMUNITY_GOAL_EARNED_PRIZES,Dve),this._composers.set(S.GET_COMMUNITY_GOAL_HALL_OF_FAME,Lve),this._composers.set(S.GET_COMMUNITY_GOAL_PROGRESS,Uve),this._composers.set(S.GET_CONCURRENT_USERS_GOAL_PROGRESS,Fve),this._composers.set(S.GET_CONCURRENT_USERS_REWARD,Bve),this._composers.set(S.GET_DAILY_QUEST,Gve),this._composers.set(S.GET_QUESTS,Vve),this._composers.set(S.GET_SEASONAL_QUESTS_ONLY,jve),this._composers.set(S.OPEN_QUEST_TRACKER,zve),this._composers.set(S.REDEEM_COMMUNITY_GOAL_PRIZE,Hve),this._composers.set(S.REJECT_QUEST,Wve),this._composers.set(S.START_CAMPAIGN,Yve),this._composers.set(S.GET_SOUND_SETTINGS,H1e),this._composers.set(S.ADD_JUKEBOX_DISK,V1e),this._composers.set(S.GET_JUKEBOX_PLAYLIST,U6),this._composers.set(S.GET_NOW_PLAYING,F6),this._composers.set(S.GET_OFFICIAL_SONG_ID,j1e),this._composers.set(S.GET_SONG_INFO,B6),this._composers.set(S.GET_SOUND_MACHINE_PLAYLIST,z1e),this._composers.set(S.GET_USER_SONG_DISKS,G6),this._composers.set(S.REMOVE_JUKEBOX_DISK,W1e),this._composers.set(S.HELPER_TALENT_TRACK,X1e),this._composers.set(S.TALENT_TRACK_GET_LEVEL,Y1e),this._composers.set(S.NEW_USER_EXPERIENCE_GET_GIFTS,Cve),this._composers.set(S.NEW_USER_EXPERIENCE_SCRIPT_PROCEED,MF),this._composers.set(S.WELCOME_OPEN_GIFT,p1e),this._composers.set(S.WELCOME_GIFT_CHANGE_EMAIL,fEe),this._composers.set(S.EMAIL_GET_STATUS,sEe),this._composers.set(S.EMAIL_CHANGE,Z1e),this._composers.set(S.RENTABLE_SPACE_CANCEL_RENT,m1e),this._composers.set(S.RENTABLE_SPACE_RENT,v1e),this._composers.set(S.RENTABLE_SPACE_STATUS,E1e),this._composers.set(S.RECYCLER_STATUS,Xve),this._composers.set(S.RECYCLER_ITEMS,Kve),this._composers.set(S.TRACKING_PERFORMANCE_LOG,q1e),this._composers.set(S.TRACKING_LAG_WARNING_REPORT,K1e),this._composers.set(S.ROOM_DIRECTORY_ROOM_NETWORK_OPEN_CONNECTION,k1e),this._composers.set(S.RENTABLE_EXTEND_RENT_OR_BUYOUT_STRIP_ITEM,a1e),this._composers.set(S.RENTABLE_EXTEND_RENT_OR_BUYOUT_FURNI,r1e),this._composers.set(S.RENTABLE_GET_RENT_OR_BUYOUT_OFFER,h1e)}get events(){return this._events}get composers(){return this._composers}}class pEe extends Yr{constructor(e){super(),this._communication=e,this._connection=null,this._messages=new gEe,this._demo=new _Ee(this),this.onConnectionOpenedEvent=this.onConnectionOpenedEvent.bind(this),this.onConnectionClosedEvent=this.onConnectionClosedEvent.bind(this),this.onConnectionErrorEvent=this.onConnectionErrorEvent.bind(this),this.onConnectionAuthenticatedEvent=this.onConnectionAuthenticatedEvent.bind(this)}onInit(){this._connection||(ce.instance.events.addEventListener(bn.CONNECTION_AUTHENTICATED,this.onConnectionAuthenticatedEvent),this._connection=this._communication.createConnection(this),this._connection.registerMessages(this._messages),this._connection.addEventListener(wi.CONNECTION_OPENED,this.onConnectionOpenedEvent),this._connection.addEventListener(wi.CONNECTION_CLOSED,this.onConnectionClosedEvent),this._connection.addEventListener(wi.CONNECTION_ERROR,this.onConnectionErrorEvent),this._demo&&this._demo.init(),this._connection.init(Te.getValue("socket.url")))}onDispose(){this._demo&&this._demo.dispose(),this._connection&&(this._connection.removeEventListener(wi.CONNECTION_OPENED,this.onConnectionOpenedEvent),this._connection.removeEventListener(wi.CONNECTION_CLOSED,this.onConnectionClosedEvent),this._connection.removeEventListener(wi.CONNECTION_ERROR,this.onConnectionErrorEvent)),ce.instance.events.removeEventListener(bn.CONNECTION_AUTHENTICATED,this.onConnectionAuthenticatedEvent),super.onDispose()}onConnectionOpenedEvent(e){le.log("Connection Initialized")}onConnectionClosedEvent(e){le.log("Connection Closed")}onConnectionErrorEvent(e){le.log("Connection Error")}onConnectionAuthenticatedEvent(e){le.log("Connection Authenticated"),this._connection&&this._connection.authenticated()}connectionInit(e){le.log("Initializing Connection",e)}registerMessageEvent(e){return this._connection&&this._connection.addMessageEvent(e),e}removeMessageEvent(e){this._connection&&this._connection.removeMessageEvent(e)}get demo(){return this._demo}get connection(){return this._connection}}const eu=class eu{static get available(){return this._isListeningForPostMessages||(this._isListeningForPostMessages=!0,window.addEventListener("message",e=>{if(typeof e.data=="string"&&e.data.startsWith(eu.MESSAGE_KEY)){const{method:t,params:i}=JSON.parse(e.data.substr(eu.MESSAGE_KEY.length)),n=window[t];if(!n)return;n(...i);return}})),!0}static call(e,...t){if(window.top!==window&&window.top.postMessage(eu.MESSAGE_KEY+JSON.stringify({method:e,params:t}),"*"),!("FlashExternalInterface"in window))return;const i=window.FlashExternalInterface[e];return typeof i<"u"?i(...t):void 0}static callGame(e,...t){if(window.top!==window&&window.top.postMessage("Nitro_LegacyExternalGameInterface"+JSON.stringify({method:e,params:t}),"*"),!("FlashExternalGameInterface"in window))return;const i=window.FlashExternalGameInterface[e];return typeof i<"u"?i(...t):void 0}static addCallback(e,t){window[e]=t}};eu.MESSAGE_KEY="Nitro_LegacyExternalInterface",eu._isListeningForPostMessages=!1;let He=eu;class mEe{constructor(e){e.addMessageEvent(new O4(this.onLoadGameUrl.bind(this)))}onLoadGameUrl(e){if(!e)return;const t=e.getParser();t&&He.callGame("showGame",t.url)}}class hT{constructor(e){this._badgeId="",this._level=1,this._base="",this._badgeId=e,this.parseText()}parseText(){let e=this._badgeId.length-1;for(;e>0&&this.isNumber(this._badgeId.charAt(e));)e--;this._base=this._badgeId.substr(0,e+1);const t=this._badgeId.substr(e+1,this._badgeId.length);t&&t!==""&&(this._level=Number.parseInt(t))}isNumber(e){const t=e.charCodeAt(0);return t>=48&&t<=57}get level(){return this._level}set level(e){this._level=Math.max(1,e)}get getBadgeId(){return this._base+this._level}get base(){return this._base}}class vEe extends Yr{constructor(e){super(),this._communication=e,this._definitions=new Map,this._parameters=new Map,this._badgePointLimits=new Map,this._romanNumerals=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX","XXI","XXII","XXIII","XXIV","XXV","XXVI","XXVII","XXVIII","XXIX","XXX"],this._pendingUrls=[]}onInit(){this._communication.registerMessageEvent(new k4(this.onBadgePointLimitsEvent.bind(this)));let e=Te.getValue("external.texts.url");Array.isArray(e)||(e=[Te.getValue("external.texts.url")]);for(let t=0;t<e.length;t++)e[t]=Te.interpolate(e[t]);this._pendingUrls=e,this.loadNextLocalization()}loadNextLocalization(){if(!this._pendingUrls.length){this.events&&this.events.dispatchEvent(new wh(wh.LOADED));return}this.loadLocalizationFromURL(this._pendingUrls[0])}loadLocalizationFromURL(e){fetch(e).then(t=>t.json()).then(t=>this.onLocalizationLoaded(t,e)).catch(t=>this.onLocalizationFailed(t))}onLocalizationLoaded(e,t){if(!e)return;if(!this.parseLocalization(e))throw new Error(`Invalid json data for file ${t}`);const i=this._pendingUrls.indexOf(t);i>=0&&this._pendingUrls.splice(i,1),this.loadNextLocalization()}onLocalizationFailed(e){this.events&&this.events.dispatchEvent(new wh(wh.FAILED))}parseLocalization(e){if(!e)return!1;for(const t in e)this._definitions.set(t,e[t]);return!0}onBadgePointLimitsEvent(e){const t=e.getParser();for(const i of t.data)this.setBadgePointLimit(i.badgeId,i.limit)}getBadgePointLimit(e){return this._badgePointLimits.get(e)||-1}setBadgePointLimit(e,t){this._badgePointLimits.set(e,t)}getRomanNumeral(e){return this._romanNumerals[Math.max(0,e-1)]}getPreviousLevelBadgeId(e){const t=new hT(e);return t.level--,t.getBadgeId}hasValue(e){return this._definitions.has(e)}getValue(e,t=!0){if(!e||!e.length)return null;const i=e.match(/\$\{.[^}]*\}/g);if(i&&i.length)for(const r of i)e=e.replace(r,this.getValue(r.slice(2,-1),t));let n=this._definitions.get(e)||null;if(!n&&(n=Te.definitions.get(e),n))return n;if(n&&t){const r=this._parameters.get(e);if(r)for(const[a,o]of r)n=n.replace("%"+a+"%",o)}return n||e}getValueWithParameter(e,t,i){const n=this.getValue(e,!1),r=n.replace("%"+t+"%",i);if(n.startsWith("%{")){const a=new RegExp("%{"+t.toUpperCase()+"\\|([^|]*)\\|([^|]*)\\|([^|]*)}"),o=n.match(a);if(!o)return r;let l=-1;switch(Number.parseInt(i)){case 0:l=1;break;case 1:l=2;break;default:case 2:l=3;break}if(l==-1||typeof o[l]>"u")return r;const c=o[l];if(c)return c.replace("%%",i)}return r}getValueWithParameters(e,t,i){let n=this.getValue(e,!1);if(t)for(let r=0;r<t.length;r++){const a=t[r],o=i[r];if(o!==void 0&&(n=n.replace("%"+a+"%",o),n.startsWith("%{"))){const l=new RegExp("%{"+a.toUpperCase()+"\\|([^|]*)\\|([^|]*)\\|([^|]*)}"),u=n.match(l);if(!u)continue;const c=parseInt(o);let h=-1;switch(c){case 0:h=1;break;case 1:h=2;break;case 2:default:h=3;break}if(h===-1||typeof u[h]>"u")continue;const f=u[h];f&&(n=f.replace("%%",o))}}return n}setValue(e,t){this._definitions.set(e,t)}registerParameter(e,t,i){if(!e||e.length===0||!t||t.length===0)return;let n=this._parameters.get(e);n||(n=new Map,this._parameters.set(e,n)),n.set(t,i)}getBadgeName(e){const t=new hT(e),i=["badge_name_"+e,"badge_name_"+t.base];let n=this.fixBadLocalization(this.getExistingKey(i));return n=n.replace("%roman%",this.getRomanNumeral(t.level)),n}getBadgeDesc(e){const t=new hT(e),i=["badge_desc_"+e,"badge_desc_"+t.base];let n=this.fixBadLocalization(this.getExistingKey(i));const r=this.getBadgePointLimit(e);return r>-1&&(n=n.replace("%limit%",r.toString())),n=n.replace("%roman%",this.getRomanNumeral(t.level)),n}getExistingKey(e){for(const t of e){const i=this.getValue(t);if(i!=t)return i}return""}fixBadLocalization(e){return e.replace("${","$").replace("{","$").replace("}","$")}}/*!
* @pixi/canvas-display - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/canvas-display is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/Va.prototype._renderCanvas=function(e){};Va.prototype.renderCanvas=function(e){if(!(!this.visible||this.worldAlpha<=0||!this.renderable)){this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e);for(var t=0,i=this.children.length;t<i;++t)this.children[t].renderCanvas(e);this._mask&&e.maskManager.popMask(e)}};_i.prototype.renderCanvas=function(e){};/*!
* @pixi/extract - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/extract is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var EEe=new ve,yEe=4,TEe=function(){function s(e){this.renderer=e}return s.prototype.image=function(e,t,i){var n=new Image;return n.src=this.base64(e,t,i),n},s.prototype.base64=function(e,t,i){return this.canvas(e).toDataURL(t,i)},s.prototype.canvas=function(e,t){var i=this._rawPixels(e,t),n=i.pixels,r=i.width,a=i.height,o=i.flipY,l=new SN(r,a,1),u=l.context.getImageData(0,0,r,a);if(s.arrayPostDivide(n,u.data),l.context.putImageData(u,0,0),o){var c=new SN(l.width,l.height,1);c.context.scale(1,-1),c.context.drawImage(l.canvas,0,-a),l.destroy(),l=c}return l.canvas},s.prototype.pixels=function(e,t){var i=this._rawPixels(e,t).pixels;return s.arrayPostDivide(i,i),i},s.prototype._rawPixels=function(e,t){var i=this.renderer,n,r=!1,a,o=!1;if(e)if(e instanceof Pi)a=e;else{var l=i.context.webGLVersion>=2?i.multisample:Ut.NONE;if(a=this.renderer.generateTexture(e,{multisample:l}),l!==Ut.NONE){var u=Pi.create({width:a.width,height:a.height});i.framebuffer.bind(a.framebuffer),i.framebuffer.blit(u.framebuffer),i.framebuffer.bind(null),a.destroy(!0),a=u}o=!0}a?(n=a.baseTexture.resolution,t=t??a.frame,r=!1,i.renderTexture.bind(a)):(n=i.resolution,t||(t=EEe,t.width=i.width,t.height=i.height),r=!0,i.renderTexture.bind(null));var c=Math.round(t.width*n),h=Math.round(t.height*n),f=new Uint8Array(yEe*c*h),d=i.gl;return d.readPixels(Math.round(t.x*n),Math.round(t.y*n),c,h,d.RGBA,d.UNSIGNED_BYTE,f),o&&a.destroy(!0),{pixels:f,width:c,height:h,flipY:r}},s.prototype.destroy=function(){this.renderer=null},s.arrayPostDivide=function(e,t){for(var i=0;i<e.length;i+=4){var n=t[i+3]=e[i+3];n!==0?(t[i]=Math.round(Math.min(e[i]*255/n,255)),t[i+1]=Math.round(Math.min(e[i+1]*255/n,255)),t[i+2]=Math.round(Math.min(e[i+2]*255/n,255))):(t[i]=e[i],t[i+1]=e[i+1],t[i+2]=e[i+2])}},s.extension={name:"extract",type:Ni.RendererPlugin},s}();/*!
* @pixi/graphics-extras - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/graphics-extras is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/function IEe(s,e,t,i,n,r){return n===void 0&&(n=0),r===void 0&&(r=Math.PI*2),Math.abs(r-n)>=Math.PI*2?this.drawCircle(s,e,i).beginHole().drawCircle(s,e,t).endHole():(this.finishPoly(),this.arc(s,e,t,r,n,!0).arc(s,e,i,n,r,!1).finishPoly(),this)}function REe(s,e,t,i,n){if(n<=0)return this.drawRect(s,e,t,i);for(var r=Math.min(n,Math.min(t,i)/2),a=s+t,o=e+i,l=[s+r,e,a-r,e,a,e+r,a,o-r,a-r,o,s+r,o,s,o-r,s,e+r],u=l.length-1;u>=2;u-=2)l[u]===l[u-2]&&l[u-1]===l[u-3]&&l.splice(u-1,2);return this.drawPolygon(l)}function SEe(s,e,t,i,n){if(n===0)return this.drawRect(s,e,t,i);var r=Math.min(t,i)/2,a=Math.min(r,Math.max(-r,n)),o=s+t,l=e+i,u=a<0?-a:0,c=Math.abs(a);return this.moveTo(s,e+c).arcTo(s+u,e+u,s+c,e,c).lineTo(o-c,e).arcTo(o-u,e+u,o,e+c,c).lineTo(o,l-c).arcTo(o-u,l-u,s+t-c,l,c).lineTo(s+c,l).arcTo(s+u,l-u,s,l-c,c).closePath()}function bEe(s,e,t,i,n){n===void 0&&(n=0),i=Math.max(i|0,3);for(var r=-1*Math.PI/2+n,a=Math.PI*2/i,o=[],l=0;l<i;l++){var u=l*a+r;o.push(s+t*Math.cos(u),e+t*Math.sin(u))}return this.drawPolygon(o)}function AEe(s,e,t,i,n,r){if(r===void 0&&(r=0),i=Math.max(i|0,3),n<=0)return this.drawRegularPolygon(s,e,t,i,r);var a=t*Math.sin(Math.PI/i)-.001;n=Math.min(n,a);for(var o=-1*Math.PI/2+r,l=Math.PI*2/i,u=(i-2)*Math.PI/i/2,c=0;c<i;c++){var h=c*l+o,f=s+t*Math.cos(h),d=e+t*Math.sin(h),_=h+Math.PI+u,g=h-Math.PI-u,p=f+n*Math.cos(_),m=d+n*Math.sin(_),v=f+n*Math.cos(g),E=d+n*Math.sin(g);c===0?this.moveTo(p,m):this.lineTo(p,m),this.quadraticCurveTo(f,d,v,E)}return this.closePath()}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ob=function(s,e){return Ob=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},Ob(s,e)};function OEe(s,e){Ob(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var wEe=function(s){OEe(e,s);function e(t,i,n,r,a,o){o===void 0&&(o=0);var l=this;a=a||r/2;for(var u=-1*Math.PI/2+o,c=n*2,h=k_/c,f=[],d=0;d<c;d++){var _=d%2?a:r,g=d*h+u;f.push(t+_*Math.cos(g),i+_*Math.sin(g))}return l=s.call(this,f)||this,l}return e}(zp);function CEe(s,e,t,i,n,r){return r===void 0&&(r=0),this.drawPolygon(new wEe(s,e,t,i,n,r))}Object.defineProperties(qc.prototype,{drawTorus:{value:IEe},drawChamferRect:{value:REe},drawFilletRect:{value:SEe},drawRegularPolygon:{value:bEe},drawRoundedPolygon:{value:AEe},drawStar:{value:CEe}});/*!
* @pixi/math-extras - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/math-extras is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var J6={add:function(s,e){return e||(e=new Q),e.x=this.x+s.x,e.y=this.y+s.y,e},subtract:function(s,e){return e||(e=new Q),e.x=this.x-s.x,e.y=this.y-s.y,e},multiply:function(s,e){return e||(e=new Q),e.x=this.x*s.x,e.y=this.y*s.y,e},multiplyScalar:function(s,e){return e||(e=new Q),e.x=this.x*s,e.y=this.y*s,e},dot:function(s){return this.x*s.x+this.y*s.y},cross:function(s){return this.x*s.y-this.y*s.x},normalize:function(s){s||(s=new Q);var e=Math.sqrt(this.x*this.x+this.y*this.y);return s.x=this.x/e,s.y=this.y/e,s},magnitude:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},magnitudeSquared:function(){return this.x*this.x+this.y*this.y},project:function(s,e){e||(e=new Q);var t=(this.x*s.x+this.y*s.y)/(s.x*s.x+s.y*s.y);return e.x=s.x*t,e.y=s.y*t,e},reflect:function(s,e){e||(e=new Q);var t=this.x*s.x+this.y*s.y;return e.x=this.x-2*t*s.x,e.y=this.y-2*t*s.y,e}};Object.assign(Q.prototype,J6);Object.assign(Oh.prototype,J6);ve.prototype.containsRect=function(e){return e.width<=0||e.height<=0?e.x>this.x&&e.y>this.y&&e.right<this.right&&e.bottom<this.bottom:e.x>=this.x&&e.y>=this.y&&e.right<=this.right&&e.bottom<=this.bottom};ve.prototype.equals=function(e){return e===this?!0:e&&this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height};ve.prototype.intersection=function(e,t){t||(t=new ve);var i=this.x<e.x?e.x:this.x,n=this.right>e.right?e.right:this.right;if(n<=i)return t.x=t.y=t.width=t.height=0,t;var r=this.y<e.y?e.y:this.y,a=this.bottom>e.bottom?e.bottom:this.bottom;return a<=r?(t.x=t.y=t.width=t.height=0,t):(t.x=i,t.y=r,t.width=n-i,t.height=a-r,t)};ve.prototype.union=function(e,t){t||(t=new ve);var i=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),a=Math.max(this.y+this.height,e.y+e.height);return t.x=i,t.y=r,t.width=n-i,t.height=a-r,t};/*!
* @pixi/mixin-cache-as-bitmap - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/var e5=new dt;_i.prototype._cacheAsBitmap=!1;_i.prototype._cacheData=null;_i.prototype._cacheAsBitmapResolution=null;_i.prototype._cacheAsBitmapMultisample=Ut.NONE;var MEe=function(){function s(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return s}();Object.defineProperties(_i.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(s){s!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=s,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(s){s!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=s,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(s){if(this._cacheAsBitmap!==s){this._cacheAsBitmap=s;var e;s?(this._cacheData||(this._cacheData=new MEe),e=this._cacheData,e.originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(e=this._cacheData,e.sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea)}}}});_i.prototype._renderCached=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(e))};_i.prototype._initCachedDisplayObject=function(e){var t;if(!(this._cacheData&&this._cacheData.sprite)){var i=this.alpha;this.alpha=1,e.batch.flush();var n=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var r=this.filters[0].padding;n.pad(r)}n.ceil(de.RESOLUTION);var a=e.renderTexture.current,o=e.renderTexture.sourceFrame.clone(),l=e.renderTexture.destinationFrame.clone(),u=e.projection.transform,c=Pi.create({width:n.width,height:n.height,resolution:this.cacheAsBitmapResolution||e.resolution,multisample:(t=this.cacheAsBitmapMultisample)!==null&&t!==void 0?t:e.multisample}),h="cacheAsBitmap_"+Lu();this._cacheData.textureCacheId=h,pt.addToCache(c.baseTexture,h),Ne.addToCache(c,h);var f=this.transform.localTransform.copyTo(e5).invert().translate(-n.x,-n.y);this.render=this._cacheData.originalRender,e.render(this,{renderTexture:c,clear:!0,transform:f,skipUpdateTransform:!1}),e.framebuffer.blit(),e.projection.transform=u,e.renderTexture.bind(a,o,l),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var d=new mt(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(n.x/n.width),d.anchor.y=-(n.y/n.height),d.alpha=i,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};_i.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(e))};_i.prototype._initCachedDisplayObjectCanvas=function(e){if(!(this._cacheData&&this._cacheData.sprite)){var t=this.getLocalBounds(null,!0),i=this.alpha;this.alpha=1;var n=e.context,r=e._projTransform;t.ceil(de.RESOLUTION);var a=Pi.create({width:t.width,height:t.height}),o="cacheAsBitmap_"+Lu();this._cacheData.textureCacheId=o,pt.addToCache(a.baseTexture,o),Ne.addToCache(a,o);var l=e5;this.transform.localTransform.copyTo(l),l.invert(),l.tx-=t.x,l.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,{renderTexture:a,clear:!0,transform:l,skipUpdateTransform:!1}),e.context=n,e._projTransform=r,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;var u=new mt(a);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-(t.x/t.width),u.anchor.y=-(t.y/t.height),u.alpha=i,u._bounds=this._bounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=u.containsPoint.bind(u)}};_i.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};_i.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};_i.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,pt.removeFromCache(this._cacheData.textureCacheId),Ne.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};_i.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)};/*!
* @pixi/mixin-get-child-by-name - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/_i.prototype.name=null;Va.prototype.getChildByName=function(e,t){for(var i=0,n=this.children.length;i<n;i++)if(this.children[i].name===e)return this.children[i];if(t)for(var i=0,n=this.children.length;i<n;i++){var r=this.children[i];if(r.getChildByName){var a=r.getChildByName(e,!0);if(a)return a}}return null};/*!
* @pixi/mixin-get-global-position - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/mixin-get-global-position is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/_i.prototype.getGlobalPosition=function(e,t){return e===void 0&&(e=new Q),t===void 0&&(t=!1),this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e};function NEe(s){var e=this.constructor;return this.then(function(t){return e.resolve(s()).then(function(){return t})},function(t){return e.resolve(s()).then(function(){return e.reject(t)})})}function PEe(s){var e=this;return new e(function(t,i){if(!(s&&typeof s.length<"u"))return i(new TypeError(typeof s+" "+s+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(s);if(n.length===0)return t([]);var r=n.length;function a(l,u){if(u&&(typeof u=="object"||typeof u=="function")){var c=u.then;if(typeof c=="function"){c.call(u,function(h){a(l,h)},function(h){n[l]={status:"rejected",reason:h},--r===0&&t(n)});return}}n[l]={status:"fulfilled",value:u},--r===0&&t(n)}for(var o=0;o<n.length;o++)a(o,n[o])})}function t5(s,e){this.name="AggregateError",this.errors=s,this.message=e||""}t5.prototype=Error.prototype;function kEe(s){var e=this;return new e(function(t,i){if(!(s&&typeof s.length<"u"))return i(new TypeError("Promise.any accepts an array"));var n=Array.prototype.slice.call(s);if(n.length===0)return i();for(var r=[],a=0;a<n.length;a++)try{e.resolve(n[a]).then(t).catch(function(o){r.push(o),r.length===n.length&&i(new t5(r,"All promises were rejected"))})}catch(o){i(o)}})}var xEe=setTimeout;function i5(s){return!!(s&&typeof s.length<"u")}function DEe(){}function LEe(s,e){return function(){s.apply(e,arguments)}}function Yt(s){if(!(this instanceof Yt))throw new TypeError("Promises must be constructed via new");if(typeof s!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],n5(s,this)}function s5(s,e){for(;s._state===3;)s=s._value;if(s._state===0){s._deferreds.push(e);return}s._handled=!0,Yt._immediateFn(function(){var t=s._state===1?e.onFulfilled:e.onRejected;if(t===null){(s._state===1?wb:K_)(e.promise,s._value);return}var i;try{i=t(s._value)}catch(n){K_(e.promise,n);return}wb(e.promise,i)})}function wb(s,e){try{if(e===s)throw new TypeError("A promise cannot be resolved with itself.");if(e&&(typeof e=="object"||typeof e=="function")){var t=e.then;if(e instanceof Yt){s._state=3,s._value=e,Cb(s);return}else if(typeof t=="function"){n5(LEe(t,e),s);return}}s._state=1,s._value=e,Cb(s)}catch(i){K_(s,i)}}function K_(s,e){s._state=2,s._value=e,Cb(s)}function Cb(s){s._state===2&&s._deferreds.length===0&&Yt._immediateFn(function(){s._handled||Yt._unhandledRejectionFn(s._value)});for(var e=0,t=s._deferreds.length;e<t;e++)s5(s,s._deferreds[e]);s._deferreds=null}function UEe(s,e,t){this.onFulfilled=typeof s=="function"?s:null,this.onRejected=typeof e=="function"?e:null,this.promise=t}function n5(s,e){var t=!1;try{s(function(i){t||(t=!0,wb(e,i))},function(i){t||(t=!0,K_(e,i))})}catch(i){if(t)return;t=!0,K_(e,i)}}Yt.prototype.catch=function(s){return this.then(null,s)};Yt.prototype.then=function(s,e){var t=new this.constructor(DEe);return s5(this,new UEe(s,e,t)),t};Yt.prototype.finally=NEe;Yt.all=function(s){return new Yt(function(e,t){if(!i5(s))return t(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(s);if(i.length===0)return e([]);var n=i.length;function r(o,l){try{if(l&&(typeof l=="object"||typeof l=="function")){var u=l.then;if(typeof u=="function"){u.call(l,function(c){r(o,c)},t);return}}i[o]=l,--n===0&&e(i)}catch(c){t(c)}}for(var a=0;a<i.length;a++)r(a,i[a])})};Yt.any=kEe;Yt.allSettled=PEe;Yt.resolve=function(s){return s&&typeof s=="object"&&s.constructor===Yt?s:new Yt(function(e){e(s)})};Yt.reject=function(s){return new Yt(function(e,t){t(s)})};Yt.race=function(s){return new Yt(function(e,t){if(!i5(s))return t(new TypeError("Promise.race accepts an array"));for(var i=0,n=s.length;i<n;i++)Yt.resolve(s[i]).then(e,t)})};Yt._immediateFn=typeof setImmediate=="function"&&function(s){setImmediate(s)}||function(s){xEe(s,0)};Yt._unhandledRejectionFn=function(e){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var ek=Object.getOwnPropertySymbols,FEe=Object.prototype.hasOwnProperty,BEe=Object.prototype.propertyIsEnumerable;function GEe(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function VEe(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;var i=Object.getOwnPropertyNames(e).map(function(r){return e[r]});if(i.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(r){n[r]=r}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var jEe=VEe()?Object.assign:function(s,e){for(var t,i=GEe(s),n,r=1;r<arguments.length;r++){t=Object(arguments[r]);for(var a in t)FEe.call(t,a)&&(i[a]=t[a]);if(ek){n=ek(t);for(var o=0;o<n.length;o++)BEe.call(t,n[o])&&(i[n[o]]=t[n[o]])}}return i};const zEe=nr(jEe);/*!
* @pixi/polyfill - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/polyfill is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/typeof globalThis>"u"&&(typeof self<"u"?self.globalThis=self:typeof global<"u"&&(global.globalThis=global));globalThis.Promise||(globalThis.Promise=Yt);Object.assign||(Object.assign=zEe);var HEe=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()});if(!(globalThis.performance&&globalThis.performance.now)){var WEe=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-WEe}}var cT=Date.now(),tk=["ms","moz","webkit","o"];for(var fT=0;fT<tk.length&&!globalThis.requestAnimationFrame;++fT){var dT=tk[fT];globalThis.requestAnimationFrame=globalThis[dT+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[dT+"CancelAnimationFrame"]||globalThis[dT+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(s){if(typeof s!="function")throw new TypeError(s+"is not a function");var e=Date.now(),t=HEe+cT-e;return t<0&&(t=0),cT=e,globalThis.self.setTimeout(function(){cT=Date.now(),s(performance.now())},t)});globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(s){return clearTimeout(s)});Math.sign||(Math.sign=function(e){return e=Number(e),e===0||isNaN(e)?e:e>0?1:-1});Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);/*!
* @pixi/sprite-tiling - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/sprite-tiling is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Mb=function(s,e){return Mb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},Mb(s,e)};function r5(s,e){Mb(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var xf=new Q,YEe=function(s){r5(e,s);function e(t,i,n){i===void 0&&(i=100),n===void 0&&(n=100);var r=s.call(this,t)||this;return r.tileTransform=new AU,r._width=i,r._height=n,r.uvMatrix=r.texture.uvMatrix||new UU(t),r.pluginName="tilingSprite",r.uvRespectAnchor=!1,r}return Object.defineProperty(e.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(t){this.uvMatrix.clampMargin=t,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(t){this.tileTransform.scale.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(t){this.tileTransform.position.copyFrom(t)},enumerable:!1,configurable:!0}),e.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},e.prototype._render=function(t){var i=this._texture;!i||!i.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))},e.prototype._calculateBounds=function(){var t=this._width*-this._anchor._x,i=this._height*-this._anchor._y,n=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,i,n,r)},e.prototype.getLocalBounds=function(t){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),t||(this._localBoundsRect||(this._localBoundsRect=new ve),t=this._localBoundsRect),this._bounds.getRectangle(t)):s.prototype.getLocalBounds.call(this,t)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,xf);var i=this._width,n=this._height,r=-i*this.anchor._x;if(xf.x>=r&&xf.x<r+i){var a=-n*this.anchor._y;if(xf.y>=a&&xf.y<a+n)return!0}return!1},e.prototype.destroy=function(t){s.prototype.destroy.call(this,t),this.tileTransform=null,this.uvMatrix=null},e.from=function(t,i){var n=t instanceof Ne?t:Ne.from(t,i);return new e(n,i.width,i.height)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!1,configurable:!0}),e}(mt),XEe=`#version 100
#define SHADER_NAME Tiling-Sprite-Simple-100
precision lowp float;
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform vec4 uColor;
void main(void)
{
vec4 texSample = texture2D(uSampler, vTextureCoord);
gl_FragColor = texSample * uColor;
}
`,ik=`#version 100
#define SHADER_NAME Tiling-Sprite-100
precision lowp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform mat3 uTransform;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,KEe=`#version 100
#ifdef GL_EXT_shader_texture_lod
#extension GL_EXT_shader_texture_lod : enable
#endif
#define SHADER_NAME Tiling-Sprite-100
precision lowp float;
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform vec4 uColor;
uniform mat3 uMapCoord;
uniform vec4 uClampFrame;
uniform vec2 uClampOffset;
void main(void)
{
vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
coord = (uMapCoord * vec3(coord, 1.0)).xy;
vec2 unclamped = coord;
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
#ifdef GL_EXT_shader_texture_lod
vec4 texSample = unclamped == coord
? texture2D(uSampler, coord)
: texture2DLodEXT(uSampler, coord, 0);
#else
vec4 texSample = texture2D(uSampler, coord);
#endif
gl_FragColor = texSample * uColor;
}
`,qEe=`#version 300 es
#define SHADER_NAME Tiling-Sprite-300
precision lowp float;
in vec2 aVertexPosition;
in vec2 aTextureCoord;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform mat3 uTransform;
out vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,$Ee=`#version 300 es
#define SHADER_NAME Tiling-Sprite-100
precision lowp float;
in vec2 vTextureCoord;
out vec4 fragmentColor;
uniform sampler2D uSampler;
uniform vec4 uColor;
uniform mat3 uMapCoord;
uniform vec4 uClampFrame;
uniform vec2 uClampOffset;
void main(void)
{
vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
coord = (uMapCoord * vec3(coord, 1.0)).xy;
vec2 unclamped = coord;
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0
fragmentColor = texSample * uColor;
}
`,_p=new dt,QEe=function(s){r5(e,s);function e(t){var i=s.call(this,t)||this;return t.runners.contextChange.add(i),i.quad=new PU,i.state=Eg.for2d(),i}return e.prototype.contextChange=function(){var t=this.renderer,i={globals:t.globalUniforms};this.simpleShader=Pc.from(ik,XEe,i),this.shader=t.context.webGLVersion>1?Pc.from(qEe,$Ee,i):Pc.from(ik,KEe,i)},e.prototype.render=function(t){var i=this.renderer,n=this.quad,r=n.vertices;r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y);var a=t.uvRespectAnchor?t.anchor.x:0,o=t.uvRespectAnchor?t.anchor.y:0;r=n.uvs,r[0]=r[6]=-a,r[1]=r[3]=-o,r[2]=r[4]=1-a,r[5]=r[7]=1-o,n.invalidate();var l=t._texture,u=l.baseTexture,c=u.alphaMode>0,h=t.tileTransform.localTransform,f=t.uvMatrix,d=u.isPowerOfTwo&&l.frame.width===u.width&&l.frame.height===u.height;d&&(u._glTextures[i.CONTEXT_UID]?d=u.wrapMode!==Pa.CLAMP:u.wrapMode===Pa.CLAMP&&(u.wrapMode=Pa.REPEAT));var _=d?this.simpleShader:this.shader,g=l.width,p=l.height,m=t._width,v=t._height;_p.set(h.a*g/m,h.b*g/v,h.c*p/m,h.d*p/v,h.tx/m,h.ty/v),_p.invert(),d?_p.prepend(f.mapCoord):(_.uniforms.uMapCoord=f.mapCoord.toArray(!0),_.uniforms.uClampFrame=f.uClampFrame,_.uniforms.uClampOffset=f.uClampOffset),_.uniforms.uTransform=_p.toArray(!0),_.uniforms.uColor=SX(t.tint,t.worldAlpha,_.uniforms.uColor,c),_.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),_.uniforms.uSampler=l,i.shader.bind(_),i.geometry.bind(n),this.state.blendMode=RX(t.blendMode,c),i.state.set(this.state),i.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},e.extension={name:"tilingSprite",type:Ni.RendererPlugin},e}(Iw);Xa.add(jU,TEe,QEe,Sq,vq,wX);class sk{constructor(){this.id=0,this.data=null,this.image=null}getImage(){return this.image?this.image:this.data?St.generateImage(this.data):null}}const bE=class bE extends ui{constructor(e){super(null,null),this._type=e}get type(){return this._type}};bE.IMAGE_LOADED="ROAUM_IMAGE_LOADED",bE.IMAGE_LOADING_FAILED="ROAUM_IMAGE_FAILED";let ss=bE;class ti extends ui{constructor(){super(null,null)}}class a5 extends ti{constructor(e,t){super(),this._itemType=e,this._itemName=t}get itemType(){return this._itemType}get itemName(){return this._itemName}}class Vw extends ti{constructor(e=0){super(),this._numberOfWords=e}get numberOfWords(){return this._numberOfWords}}class o5 extends ti{constructor(e=0){super(),this._danceStyle=e}get danceStyle(){return this._danceStyle}}class l5 extends ti{constructor(e,t=0){super(),this._effect=e,this._delayMilliseconds=t}get effect(){return this._effect}get delayMilliseconds(){return this._delayMilliseconds}}class u5 extends ti{constructor(e){super(),this._gainedExperience=e}get gainedExperience(){return this._gainedExperience}}class h5 extends ti{constructor(e=0){super(),this._expressionType=e}get expressionType(){return this._expressionType}}class wv extends ti{constructor(e,t=null,i=null,n=!1){super(),this._figure=e,this._gender=t,this._subType=i,this._isRiding=n}get figure(){return this._figure}get gender(){return this._gender}get subType(){return this._subType}get isRiding(){return this._isRiding}}class c5 extends ti{constructor(e=0){super(),this._level=e}get level(){return this._level}}class f5 extends ti{constructor(e=0){super(),this._gesture=e}get gesture(){return this._gesture}}class ZEe extends ti{constructor(e){super(),this._guideStatus=e}get guideStatus(){return this._guideStatus}}class d5 extends ti{constructor(e=!1){super(),this._isMuted=e}get isMuted(){return this._isMuted}}class _5 extends ti{}class g5 extends ti{constructor(e){super(),this._gesture=e}get gesture(){return this._gesture}}class p5 extends ti{constructor(e){super(),this._value=e}get value(){return this._value}}class m5 extends ti{constructor(e){super(),this._isPlayingGame=e}get isPlayingGame(){return this._isPlayingGame}}class jw extends ti{constructor(e,t=""){super(),this._postureType=e,this._parameter=t}get postureType(){return this._postureType}get parameter(){return this._parameter}}class Cv extends ti{constructor(e){super(),this._selected=e}get selected(){return this._selected}}class v5 extends ti{constructor(e=0){super(),this._signType=e}get signType(){return this._signType}}class zw extends ti{constructor(e=!1){super(),this._isSleeping=e}get isSleeping(){return this._isSleeping}}class E5 extends ti{constructor(e=!1){super(),this._isTyping=e}get isTyping(){return this._isTyping}}class Xo extends ui{constructor(e,t,i,n=!1){super(e,i),this._targetLocation=t,this._isSlide=n}get targetLocation(){return this._targetLocation?this._targetLocation:this.location}get isSlide(){return this._isSlide}}class Mv extends Xo{constructor(e,t,i,n,r,a){super(e,t,i),this._headDirection=n,this._canStandUp=r,this._baseY=a}get headDirection(){return this._headDirection}get canStandUp(){return this._canStandUp}get baseY(){return this._baseY}}class y5 extends ti{constructor(e){super(),this._itemType=e}get itemType(){return this._itemType}}class ht extends ui{constructor(e,t,i=null){super(null,null),this._state=e,this._data=t,this._extra=i}get state(){return this._state}get data(){return this._data}get extra(){return this._extra}}const cC=class cC extends ui{constructor(e,t){super(null,null),this._badgeId=e,this._assetName=t}get badgeId(){return this._badgeId}get assetName(){return this._assetName}};cC.BADGE_LOADED="ROGBUM_BADGE_LOADED";let Gu=cC;class T5 extends ui{constructor(e,t,i){super(e,t),this._height=i}get height(){return this._height}}class Hw extends ui{constructor(e){super(null,null),this._data=e}get data(){return this._data}}class I5 extends ui{constructor(e,t){super(null,null),this._numberKey=e,this._numberValue=t}get numberKey(){return this._numberKey}get numberValue(){return this._numberValue}}const fC=class fC extends ui{constructor(e,t,i,n){super(null,null),this._type=e,this._color=t,this._light=i,this._backgroundOnly=n}get type(){return this._type}get color(){return this._color}get light(){return this._light}get backgroundOnly(){return this._backgroundOnly}};fC.BACKGROUND_COLOR="RORCUM_BACKGROUND_COLOR";let q_=fC;const AE=class AE extends ui{constructor(e,t,i=0,n=0,r=0,a=0){super(null,null),this._type=e,this._id=t,this._x=i,this._y=n,this._width=r,this._height=a}get type(){return this._type}get id(){return this._id}get x(){return this._x}get y(){return this._y}get width(){return this._width}get height(){return this._height}};AE.ADD="ORPFHUM_ADD",AE.REMOVE="ORPFHUM_REMOVE";let Oa=AE;const OE=class OE extends ui{constructor(e){super(null,null),this._type=OE.UPDATE_MAP,this._mapData=e}get type(){return this._type}get mapData(){return this._mapData}};OE.UPDATE_MAP="RORMUM_UPDATE_MAP";let Nv=OE;const tu=class tu extends ui{constructor(e,t,i=null,n=null,r="window"){super(null,null),this._type=e,this._maskId=t,this._maskType=i,this._maskLocation=n?new M(n.x,n.y,n.z):null,this._maskCategory=r}get type(){return this._type}get maskId(){return this._maskId}get maskType(){return this._maskType}get maskLocation(){return this._maskLocation}get maskCategory(){return this._maskCategory}};tu.ADD_MASK="RORMUM_ADD_MASK",tu.REMOVE_MASK="RORMUM_ADD_MASK",tu.DOOR="door",tu.WINDOW="window",tu.HOLE="hole";let $i=tu;const wE=class wE extends ui{constructor(e,t){super(null,null),this._type=e,this._value=t}get type(){return this._type}get value(){return this._value}};wE.WALL_THICKNESS="RORPPUM_WALL_THICKNESS",wE.FLOOR_THICKNESS="RORPVUM_FLOOR_THICKNESS";let wa=wE;const CE=class CE extends ui{constructor(e,t){super(null,null),this._type=e,this._visible=t}get type(){return this._type}get visible(){return this._visible}};CE.WALL_VISIBILITY="RORPVUM_WALL_VISIBILITY",CE.FLOOR_VISIBILITY="RORPVUM_FLOOR_VISIBILITY";let Ca=CE;const e_=class e_ extends ui{constructor(e,t){super(null,null),this._type=e,this._value=t}get type(){return this._type}get value(){return this._value}};e_.ROOM_WALL_UPDATE="RORUM_ROOM_WALL_UPDATE",e_.ROOM_FLOOR_UPDATE="RORUM_ROOM_FLOOR_UPDATE",e_.ROOM_LANDSCAPE_UPDATE="RORUM_ROOM_LANDSCAPE_UPDATE";let bi=e_;class $_ extends ti{constructor(e){super(),this._selected=e}get selected(){return this._selected}}class ch extends ui{constructor(e,t,i,n,r=!1){super(e,null),this._height=t,this._visible=i,this._sourceEventId=n,this._toggleVisibility=r}get height(){return this._height}get visible(){return this._visible}get sourceEventId(){return this._sourceEventId}get toggleVisibility(){return this._toggleVisibility}}const ME=class ME extends ui{constructor(e){super(null,null),this._type=e}get type(){return this._type}};ME.ENABLED="ROVUM_ENABLED",ME.DISABLED="ROVUM_DISABLED";let Ma=ME;const gc=class gc extends I0{constructor(){super(),this._liftAmount=0,this._location=new M,this._locationDelta=new M,this._lastUpdateTime=0,this._changeTime=0,this._updateInterval=gc.DEFAULT_UPDATE_INTERVAL}onDispose(){this._liftAmount=0,super.onDispose()}update(e){super.update(e);const t=this.getLocationOffset(),i=this.object&&this.object.model;if(i&&(t?this._liftAmount!==t.z&&(this._liftAmount=t.z,i.setValue(b.FURNITURE_LIFT_AMOUNT,this._liftAmount)):this._liftAmount!==0&&(this._liftAmount=0,i.setValue(b.FURNITURE_LIFT_AMOUNT,this._liftAmount))),this._locationDelta.length>0||t){const n=gc.TEMP_VECTOR;let r=this.time-this._changeTime;r===this._updateInterval>>1&&r++,r>this._updateInterval&&(r=this._updateInterval),this._locationDelta.length>0?(n.assign(this._locationDelta),n.multiply(r/this._updateInterval),n.add(this._location)):n.assign(this._location),t&&n.add(t),this.object.setLocation(n),r===this._updateInterval&&(this._locationDelta.x=0,this._locationDelta.y=0,this._locationDelta.z=0)}this._lastUpdateTime=this.time}setObject(e){super.setObject(e),e&&this._location.assign(e.getLocation())}processUpdateMessage(e){if(e&&(super.processUpdateMessage(e),e.location&&this._location.assign(e.location),e instanceof Xo))return this.processMoveMessage(e)}processMoveMessage(e){!e||!this.object||!e.location||(this._changeTime=this._lastUpdateTime,this._locationDelta.assign(e.targetLocation),this._locationDelta.subtract(this._location))}getLocationOffset(){return null}get lastUpdateTime(){return this._lastUpdateTime}set updateInterval(e){e<=0&&(e=1),this._updateInterval=e}};gc.DEFAULT_UPDATE_INTERVAL=500,gc.TEMP_VECTOR=new M;let Ko=gc;const Gt=class Gt extends Ko{constructor(){super(),this._selected=!1,this._reportedLocation=null,this._effectChangeTimeStamp=0,this._newEffect=0,this._blinkingStartTimestamp=Pe()+this.randomBlinkStartTimestamp(),this._blinkingEndTimestamp=0,this._talkingEndTimestamp=0,this._talkingPauseStartTimestamp=0,this._talkingPauseEndTimestamp=0,this._carryObjectStartTimestamp=0,this._carryObjectEndTimestamp=0,this._allowUseCarryObject=!1,this._animationEndTimestamp=0,this._signEndTimestamp=0,this._gestureEndTimestamp=0,this._numberValueEndTimestamp=0}getEventTypes(){const e=[Ee.CLICK,Ee.DOUBLE_CLICK,es.POSITION_CHANGED,Ee.MOUSE_ENTER,Ee.MOUSE_LEAVE,X.MOUSE_BUTTON,X.MOUSE_ARROW];return this.mergeTypes(super.getEventTypes(),e)}dispose(){this._selected&&this.object&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new es(es.OBJECT_REMOVED,this.object)),super.dispose(),this._reportedLocation=null}update(e){if(super.update(e),this._selected&&this.object&&this.eventDispatcher){const i=this.object.getLocation();(!this._reportedLocation||this._reportedLocation.x!==i.x||this._reportedLocation.y!==i.y||this._reportedLocation.z!==i.z)&&(this._reportedLocation||(this._reportedLocation=new M),this._reportedLocation.assign(i),this.eventDispatcher.dispatchEvent(new es(es.POSITION_CHANGED,this.object)))}const t=this.object&&this.object.model;t&&this.updateModel(this.time,t)}updateModel(e,t){this._talkingEndTimestamp>0&&(e>this._talkingEndTimestamp?(t.setValue(b.FIGURE_TALK,0),this._talkingEndTimestamp=0,this._talkingPauseStartTimestamp=0,this._talkingPauseEndTimestamp=0):!this._talkingPauseEndTimestamp&&!this._talkingPauseStartTimestamp?(this._talkingPauseStartTimestamp=e+this.randomTalkingPauseStartTimestamp(),this._talkingPauseEndTimestamp=this._talkingPauseStartTimestamp+this.randomTalkingPauseEndTimestamp()):this._talkingPauseStartTimestamp>0&&e>this._talkingPauseStartTimestamp?(t.setValue(b.FIGURE_TALK,0),this._talkingPauseStartTimestamp=0):this._talkingPauseEndTimestamp>0&&e>this._talkingPauseEndTimestamp&&(t.setValue(b.FIGURE_TALK,1),this._talkingPauseEndTimestamp=0)),this._animationEndTimestamp>0&&e>this._animationEndTimestamp&&(t.setValue(b.FIGURE_EXPRESSION,0),this._animationEndTimestamp=0),this._gestureEndTimestamp>0&&e>this._gestureEndTimestamp&&(t.setValue(b.FIGURE_GESTURE,0),this._gestureEndTimestamp=0),this._signEndTimestamp>0&&e>this._signEndTimestamp&&(t.setValue(b.FIGURE_SIGN,-1),this._signEndTimestamp=0),this._carryObjectEndTimestamp>0&&e>this._carryObjectEndTimestamp&&(t.setValue(b.FIGURE_CARRY_OBJECT,0),t.setValue(b.FIGURE_USE_OBJECT,0),this._carryObjectStartTimestamp=0,this._carryObjectEndTimestamp=0,this._allowUseCarryObject=!1),this._allowUseCarryObject&&e-this._carryObjectStartTimestamp>5e3&&((e-this._carryObjectStartTimestamp)%1e4<1e3?t.setValue(b.FIGURE_USE_OBJECT,1):t.setValue(b.FIGURE_USE_OBJECT,0)),this._blinkingStartTimestamp>-1&&e>this._blinkingStartTimestamp&&(t.setValue(b.FIGURE_BLINK,1),this._blinkingStartTimestamp=e+this.randomBlinkStartTimestamp(),this._blinkingEndTimestamp=e+this.randomBlinkEndTimestamp()),this._blinkingEndTimestamp>0&&e>this._blinkingEndTimestamp&&(t.setValue(b.FIGURE_BLINK,0),this._blinkingEndTimestamp=0),this._effectChangeTimeStamp>0&&e>this._effectChangeTimeStamp&&(t.setValue(b.FIGURE_EFFECT,this._newEffect),this._effectChangeTimeStamp=0),this._numberValueEndTimestamp>0&&e>this._numberValueEndTimestamp&&(t.setValue(b.FIGURE_NUMBER_VALUE,0),this._numberValueEndTimestamp=0)}processUpdateMessage(e){if(!e||!this.object)return;super.processUpdateMessage(e);const t=this.object&&this.object.model;if(t){if(e instanceof jw){t.setValue(b.FIGURE_POSTURE,e.postureType),t.setValue(b.FIGURE_POSTURE_PARAMETER,e.parameter);return}if(e instanceof Vw){t.setValue(b.FIGURE_TALK,1),this._talkingEndTimestamp=this.time+e.numberOfWords*1e3;return}if(e instanceof E5){t.setValue(b.FIGURE_IS_TYPING,e.isTyping?1:0);return}if(e instanceof d5){t.setValue(b.FIGURE_IS_MUTED,e.isMuted?1:0);return}if(e instanceof m5){t.setValue(b.FIGURE_IS_PLAYING_GAME,e.isPlayingGame?1:0);return}if(e instanceof Mv){t.setValue(b.HEAD_DIRECTION,e.headDirection),t.setValue(b.FIGURE_CAN_STAND_UP,e.canStandUp),t.setValue(b.FIGURE_VERTICAL_OFFSET,e.baseY);return}if(e instanceof f5){t.setValue(b.FIGURE_GESTURE,e.gesture),this._gestureEndTimestamp=this.time+3e3;return}if(e instanceof h5){t.setValue(b.FIGURE_EXPRESSION,e.expressionType),this._animationEndTimestamp=oe.getExpressionTimeout(t.getValue(b.FIGURE_EXPRESSION)),this._animationEndTimestamp>-1&&(this._animationEndTimestamp+=this.time);return}if(e instanceof o5){t.setValue(b.FIGURE_DANCE,e.danceStyle);return}if(e instanceof zw){t.setValue(b.FIGURE_SLEEP,e.isSleeping?1:0),e.isSleeping?this._blinkingStartTimestamp=-1:this._blinkingStartTimestamp=this.time+this.randomBlinkStartTimestamp();return}if(e instanceof p5){t.setValue(b.FIGURE_NUMBER_VALUE,e.value),this._numberValueEndTimestamp=this.time+3e3;return}if(e instanceof l5){this.updateAvatarEffect(e.effect,e.delayMilliseconds,t);return}if(e instanceof a5){t.setValue(b.FIGURE_CARRY_OBJECT,e.itemType),t.setValue(b.FIGURE_USE_OBJECT,0),e.itemType===0?(this._carryObjectStartTimestamp=0,this._carryObjectEndTimestamp=0,this._allowUseCarryObject=!1):(this._carryObjectStartTimestamp=this.time,e.itemType<Gt.MAX_HAND_ID?(this._carryObjectEndTimestamp=0,this._allowUseCarryObject=e.itemType<=Gt.MAX_HAND_USE_ID):(this._carryObjectEndTimestamp=this._carryObjectStartTimestamp+1500,this._allowUseCarryObject=!1));return}if(e instanceof y5){t.setValue(b.FIGURE_USE_OBJECT,e.itemType);return}if(e instanceof v5){t.setValue(b.FIGURE_SIGN,e.signType),this._signEndTimestamp=this.time+5e3;return}if(e instanceof c5){t.setValue(b.FIGURE_FLAT_CONTROL,e.level);return}if(e instanceof wv){t.setValue(b.FIGURE,e.figure),t.setValue(b.GENDER,e.gender);return}if(e instanceof Cv){this._selected=e.selected,this._reportedLocation=null;return}if(e instanceof _5){t.setValue(b.OWN_USER,1);return}}}updateAvatarEffect(e,t,i){if(e===Gt.EFFECT_TYPE_SPLASH)this._effectChangeTimeStamp=Pe()+Gt.EFFECT_SPLASH_LENGTH,this._newEffect=Gt.EFFECT_TYPE_SWIM;else if(e===Gt.EFFECT_TYPE_SPLASH_DARK)this._effectChangeTimeStamp=Pe()+Gt.EFFECT_SPLASH_LENGTH,this._newEffect=Gt.EFFECT_TYPE_SWIM_DARK;else if(i.getValue(b.FIGURE_EFFECT)===Gt.EFFECT_TYPE_SWIM)this._effectChangeTimeStamp=Pe()+Gt.EFFECT_SPLASH_LENGTH,this._newEffect=e,e=Gt.EFFECT_TYPE_SPLASH;else if(i.getValue(b.FIGURE_EFFECT)===Gt.EFFECT_TYPE_SWIM_DARK)this._effectChangeTimeStamp=Pe()+Gt.EFFECT_SPLASH_LENGTH,this._newEffect=e,e=Gt.EFFECT_TYPE_SPLASH_DARK;else if(t===0)this._effectChangeTimeStamp=0;else{this._effectChangeTimeStamp=Pe()+t,this._newEffect=e;return}i.setValue(b.FIGURE_EFFECT,e)}mouseEvent(e,t){let i=null;switch(e.type){case ue.MOUSE_CLICK:i=Ee.CLICK;break;case ue.DOUBLE_CLICK:i=Ee.DOUBLE_CLICK;break;case ue.ROLL_OVER:i=Ee.MOUSE_ENTER,this.object.model&&this.object.model.setValue(b.FIGURE_HIGHLIGHT,1),this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new X(X.MOUSE_BUTTON,this.object));break;case ue.ROLL_OUT:i=Ee.MOUSE_LEAVE,this.object.model&&this.object.model.setValue(b.FIGURE_HIGHLIGHT,0),this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new X(X.MOUSE_ARROW,this.object));break}i&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new Ee(i,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown))}randomTalkingPauseStartTimestamp(){return 100+Math.random()*200}randomTalkingPauseEndTimestamp(){return 75+Math.random()*75}randomBlinkStartTimestamp(){return 4500+Math.random()*1e3}randomBlinkEndTimestamp(){return 50+Math.random()*200}};Gt.MAX_HAND_ID=999999999,Gt.MAX_HAND_USE_ID=999,Gt.EFFECT_TYPE_SPLASH=28,Gt.EFFECT_SPLASH_LENGTH=500,Gt.EFFECT_TYPE_SWIM=29,Gt.EFFECT_TYPE_SPLASH_DARK=184,Gt.EFFECT_TYPE_SWIM_DARK=185;let Nb=Gt;const bs=class bs extends Ko{constructor(){super(),this._sizeX=0,this._sizeY=0,this._sizeZ=0,this._centerX=0,this._centerY=0,this._centerZ=0,this._directions=[],this._mouseOver=!1,this._locationOffset=new M,this._bouncingStep=0,this._storedRotateMessage=null,this._directionInitialized=!1,bs.BOUNCING_STEPS===-1&&(bs.BOUNCING_STEPS=Te.getValue("furni.rotation.bounce.steps",8)),bs.BOUNCING_Z===-1&&(bs.BOUNCING_Z=Te.getValue("furni.rotation.bounce.height",.0625))}getEventTypes(){const e=[We.STATE_CHANGE,Ee.CLICK,Ee.MOUSE_DOWN,Ee.MOUSE_DOWN_LONG,Rt.ROOM_AD_TOOLTIP_SHOW,Rt.ROOM_AD_TOOLTIP_HIDE,Rt.ROOM_AD_FURNI_DOUBLE_CLICK,Rt.ROOM_AD_FURNI_CLICK];return this.widget&&e.push(x.OPEN_WIDGET,x.CLOSE_WIDGET),this.contextMenu&&e.push(x.OPEN_FURNI_CONTEXT_MENU,x.CLOSE_FURNI_CONTEXT_MENU),this.mergeTypes(super.getEventTypes(),e)}initialize(e){if(!e)return;const t=this.object&&this.object.model;if(t){if(e.logic){if(e.logic.model){const i=e.logic.model.dimensions;i&&(this._sizeX=i.x,this._sizeY=i.y,this._sizeZ=i.z,this._centerX=this._sizeX/2,this._centerY=this._sizeY/2,this._centerZ=this._sizeZ/2);const n=e.logic.model.directions;if(n&&n.length){for(const r of n)this._directions.push(r);this._directions.sort((r,a)=>r-a)}}if(e.logic.customVars){const i=e.logic.customVars.variables;i&&i.length&&t.setValue(b.FURNITURE_CUSTOM_VARIABLES,i)}}t.setValue(b.FURNITURE_SIZE_X,this._sizeX),t.setValue(b.FURNITURE_SIZE_Y,this._sizeY),t.setValue(b.FURNITURE_SIZE_Z,this._sizeZ),t.setValue(b.FURNITURE_CENTER_X,this._centerX),t.setValue(b.FURNITURE_CENTER_Y,this._centerY),t.setValue(b.FURNITURE_CENTER_Z,this._centerZ),t.setValue(b.FURNITURE_ALLOWED_DIRECTIONS,this._directions),t.setValue(b.FURNITURE_ALPHA_MULTIPLIER,1)}}onDispose(){this._storedRotateMessage=null,this._directions=null,super.onDispose()}setObject(e){super.setObject(e),e&&e.getLocation().length&&(this._directionInitialized=!0)}getAdClickUrl(e){return e.getValue(b.FURNITURE_AD_URL)}handleAdClick(e,t,i){this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new Rt(Rt.ROOM_AD_FURNI_CLICK,this.object))}update(e){super.update(e),this._bouncingStep>0&&(this._bouncingStep++,this._bouncingStep>bs.BOUNCING_STEPS&&(this._bouncingStep=0))}processUpdateMessage(e){if(e instanceof ht){this.processDataUpdateMessage(e);return}if(e instanceof T5){this.processObjectHeightUpdateMessage(e);return}if(e instanceof Hw){this.processItemDataUpdateMessage(e);return}if(this._mouseOver=!1,e.location&&e.direction){if(!(e instanceof Xo)){const t=this.object.getDirection(),i=this.object.getLocation();t.x!==e.direction.x&&this._directionInitialized&&i.x===e.location.x&&i.y===e.location.y&&i.z===e.location.z&&(this._bouncingStep=1,this._storedRotateMessage=new ui(e.location,e.direction),e=null)}this._directionInitialized=!0}if(e instanceof $_&&this.contextMenu&&this.eventDispatcher&&this.object){const t=e.selected?x.OPEN_FURNI_CONTEXT_MENU:x.CLOSE_FURNI_CONTEXT_MENU;this.eventDispatcher.dispatchEvent(new x(t,this.object))}super.processUpdateMessage(e)}processDataUpdateMessage(e){e&&(this.object.setState(e.state,0),e.data&&e.data.writeRoomObjectModel(this.object.model),e.extra!==null&&this.object.model.setValue(b.FURNITURE_EXTRAS,e.extra.toString()),this.object.model.setValue(b.FURNITURE_STATE_UPDATE_TIME,this.lastUpdateTime))}processObjectHeightUpdateMessage(e){e&&this.object.model.setValue(b.FURNITURE_SIZE_Z,e.height)}processItemDataUpdateMessage(e){e&&this.object.model.setValue(b.FURNITURE_ITEMDATA,e.data)}mouseEvent(e,t){const i=this.getAdClickUrl(this.object.model);switch(e.type){case ue.MOUSE_MOVE:if(this.eventDispatcher){const n=new Ee(Ee.MOUSE_MOVE,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown);n.localX=e.localX,n.localY=e.localY,n.spriteOffsetX=e.spriteOffsetX,n.spriteOffsetY=e.spriteOffsetY,this.eventDispatcher.dispatchEvent(n)}return;case ue.ROLL_OVER:if(!this._mouseOver){if(this.eventDispatcher){i&&i.indexOf("http")===0&&this.eventDispatcher.dispatchEvent(new Rt(Rt.ROOM_AD_TOOLTIP_SHOW,this.object));const n=new Ee(Ee.MOUSE_ENTER,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown);n.localX=e.localX,n.localY=e.localY,n.spriteOffsetX=e.spriteOffsetX,n.spriteOffsetY=e.spriteOffsetY,this.eventDispatcher.dispatchEvent(n)}this._mouseOver=!0}return;case ue.ROLL_OUT:if(this._mouseOver){if(this.eventDispatcher){i&&i.indexOf("http")===0&&this.eventDispatcher.dispatchEvent(new Rt(Rt.ROOM_AD_TOOLTIP_HIDE,this.object));const n=new Ee(Ee.MOUSE_LEAVE,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown);n.localX=e.localX,n.localY=e.localY,n.spriteOffsetX=e.spriteOffsetX,n.spriteOffsetY=e.spriteOffsetY,this.eventDispatcher.dispatchEvent(n)}this._mouseOver=!1}return;case ue.DOUBLE_CLICK:this.useObject();return;case ue.MOUSE_CLICK:if(this.eventDispatcher){const n=new Ee(Ee.CLICK,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown);n.localX=e.localX,n.localY=e.localY,n.spriteOffsetX=e.spriteOffsetX,n.spriteOffsetY=e.spriteOffsetY,this.eventDispatcher.dispatchEvent(n),i&&i.indexOf("http")===0&&this.eventDispatcher.dispatchEvent(new Rt(Rt.ROOM_AD_TOOLTIP_HIDE,this.object)),i&&i.length&&this.handleAdClick(this.object.id,this.object.type,i)}return;case ue.MOUSE_DOWN:if(this.eventDispatcher){const n=new Ee(Ee.MOUSE_DOWN,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown);this.eventDispatcher.dispatchEvent(n)}return;case ue.MOUSE_DOWN_LONG:if(this.eventDispatcher){const n=new Ee(Ee.MOUSE_DOWN_LONG,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown);this.eventDispatcher.dispatchEvent(n)}return}}getLocationOffset(){return this._bouncingStep<=0?null:(this._locationOffset.x=0,this._locationOffset.y=0,this._bouncingStep<=bs.BOUNCING_STEPS/2?this._locationOffset.z=bs.BOUNCING_Z*this._bouncingStep:this._bouncingStep<=bs.BOUNCING_STEPS&&(this._storedRotateMessage&&(super.processUpdateMessage(this._storedRotateMessage),this._storedRotateMessage=null),this._locationOffset.z=bs.BOUNCING_Z*(bs.BOUNCING_STEPS-this._bouncingStep)),this._locationOffset)}useObject(){if(!this.object||!this.eventDispatcher)return;const e=this.getAdClickUrl(this.object.model);e&&e.length&&this.eventDispatcher.dispatchEvent(new Rt(Rt.ROOM_AD_FURNI_DOUBLE_CLICK,this.object,null,e)),this.widget&&this.eventDispatcher.dispatchEvent(new x(x.OPEN_WIDGET,this.object)),this.eventDispatcher.dispatchEvent(new We(We.STATE_CHANGE,this.object))}tearDown(){this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&(this.widget&&this.eventDispatcher.dispatchEvent(new x(x.CLOSE_WIDGET,this.object)),this.contextMenu&&this.eventDispatcher.dispatchEvent(new x(x.CLOSE_FURNI_CONTEXT_MENU,this.object))),super.tearDown()}};bs.BOUNCING_STEPS=-1,bs.BOUNCING_Z=-1;let qe=bs;class R5 extends qe{getEventTypes(){const e=[x.BADGE_DISPLAY_ENGRAVING,ir.LOAD_BADGE];return this.mergeTypes(super.getEventTypes(),e)}processUpdateMessage(e){if(super.processUpdateMessage(e),!!this.object){if(e instanceof ht){const t=e.data;t instanceof Wc&&this.updateBadge(t.getValue(1));return}if(e instanceof Gu){e.assetName!=="loading_icon"&&(this.object.model.setValue(b.FURNITURE_BADGE_ASSET_NAME,e.assetName),this.object.model.setValue(b.FURNITURE_BADGE_IMAGE_STATUS,1),this.update(Pe()));return}}}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.BADGE_DISPLAY_ENGRAVING,this.object))}updateBadge(e){e!==""&&this.eventDispatcher&&(this.object.model.setValue(b.FURNITURE_BADGE_IMAGE_STATUS,-1),this.eventDispatcher.dispatchEvent(new ir(ir.LOAD_BADGE,this.object,e,!1)))}}const As=class As extends R5{getEventTypes(){const e=[x.ACHIEVEMENT_RESOLUTION_OPEN,x.ACHIEVEMENT_RESOLUTION_ENGRAVING,x.ACHIEVEMENT_RESOLUTION_FAILED,ir.LOAD_BADGE];return this.mergeTypes(super.getEventTypes(),e)}processUpdateMessage(e){if(super.processUpdateMessage(e),e instanceof Gu&&e.assetName!=="loading_icon"&&this.object.model.setValue(b.FURNITURE_BADGE_VISIBLE_IN_STATE,As.BADGE_VISIBLE_IN_STATE),e instanceof $_){if(!this.eventDispatcher||!this.object)return;this.eventDispatcher.dispatchEvent(new x(x.CLOSE_FURNI_CONTEXT_MENU,this.object))}}useObject(){if(!this.object||!this.eventDispatcher)return;let e=null;switch(this.object.getState(0)){case As.STATE_RESOLUTION_NOT_STARTED:case As.STATE_RESOLUTION_IN_PROGRESS:e=new x(x.ACHIEVEMENT_RESOLUTION_OPEN,this.object);break;case As.STATE_RESOLUTION_ACHIEVED:e=new x(x.ACHIEVEMENT_RESOLUTION_ENGRAVING,this.object);break;case As.STATE_RESOLUTION_FAILED:e=new x(x.ACHIEVEMENT_RESOLUTION_FAILED,this.object);break}e&&this.eventDispatcher.dispatchEvent(e)}updateBadge(e){e!==As.ACH_NOT_SET&&super.updateBadge(e)}};As.STATE_RESOLUTION_NOT_STARTED=0,As.STATE_RESOLUTION_IN_PROGRESS=1,As.STATE_RESOLUTION_ACHIEVED=2,As.STATE_RESOLUTION_FAILED=3,As.ACH_NOT_SET="ach_0",As.BADGE_VISIBLE_IN_STATE=2;let Pb=As;class JEe extends qe{constructor(){super(),this.onRoomToObjectOwnAvatarMoveEvent=this.onRoomToObjectOwnAvatarMoveEvent.bind(this)}initialize(e){super.initialize(e),this.eventDispatcher&&this.eventDispatcher.addEventListener(Yc.ROAME_MOVE_TO,this.onRoomToObjectOwnAvatarMoveEvent)}tearDown(){this.eventDispatcher&&this.eventDispatcher.removeEventListener(Yc.ROAME_MOVE_TO,this.onRoomToObjectOwnAvatarMoveEvent),super.tearDown()}onRoomToObjectOwnAvatarMoveEvent(e){if(!e||!this.object)return;const t=this.object.getLocation(),i=e.targetLocation;if(!i)return;let n=this.object.model.getValue(b.FURNITURE_SIZE_X),r=this.object.model.getValue(b.FURNITURE_SIZE_Y);const a=(Math.floor(this.object.getDirection().x)+45)%360/90;(a===1||a===3)&&([n,r]=[r,n]),i.x>=t.x&&i.x<t.x+n&&i.y>=t.y&&i.y<t.y+r?this.object.setState(1,0):this.object.setState(0,0)}}class e0e extends qe{getEventTypes(){const e=[x.CLOTHING_CHANGE];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e);const t=this.object.model.getValue(b.FURNITURE_DATA);this.updateClothingData(t)}processUpdateMessage(e){super.processUpdateMessage(e),e instanceof ht&&e.data&&this.updateClothingData(e.data.getLegacyString())}updateClothingData(e){if(!e||!e.length)return;const[t,i]=e.split(",");t&&t.length&&this.object.model.setValue(b.FURNITURE_CLOTHING_BOY,t),i&&i.length&&this.object.model.setValue(b.FURNITURE_CLOTHING_GIRL,i)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.CLOTHING_CHANGE,this.object))}}class t0e extends qe{getEventTypes(){const e=[We.STATE_CHANGE];return this.mergeTypes(super.getEventTypes(),e)}mouseEvent(e,t){if(!e||!t||!this.object)return;let i=null;switch(e.type){case ue.DOUBLE_CLICK:switch(e.spriteTag){case"start_stop":i=new We(We.STATE_CHANGE,this.object,1);break;case"reset":i=new We(We.STATE_CHANGE,this.object,2);break}if(this.eventDispatcher&&i){this.eventDispatcher.dispatchEvent(i);return}break}super.mouseEvent(e,t)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new We(We.STATE_CHANGE,this.object,1))}}class i0e extends qe{processUpdateMessage(e){super.processUpdateMessage(e),this.object&&this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&this.object.model.setValue(Fs.INFOSTAND_EXTRA_PARAM,Fs.CRACKABLE_FURNI)}}class s0e extends qe{get widget(){return Xm.CRAFTING}}class n0e extends qe{getEventTypes(){const e=[x.CREDITFURNI];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e);let t=0;e.logic&&e.logic.credits&&e.logic.credits!==""&&e.logic.credits.length>0&&(t=parseInt(e.logic.credits)),this.object.model.setValue(b.FURNITURE_CREDIT_VALUE,t)}useObject(){!this.object||!this.eventDispatcher||(this.eventDispatcher.dispatchEvent(new x(x.CREDITFURNI,this.object)),super.useObject())}}class qt extends qe{getEventTypes(){const e=[X.MOUSE_BUTTON,X.MOUSE_ARROW];return this.mergeTypes(super.getEventTypes(),e)}mouseEvent(e,t){if(!(!e||!t||!this.object)){switch(e.type){case ue.ROLL_OVER:this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new X(X.MOUSE_BUTTON,this.object));break;case ue.ROLL_OUT:this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new X(X.MOUSE_ARROW,this.object));break}super.mouseEvent(e,t)}}}class r0e extends qt{constructor(){super(...arguments),this._state=1}getEventTypes(){const e=[Aa.PLAY_SOUND_AT_PITCH];return this.mergeTypes(super.getEventTypes(),e)}processUpdateMessage(e){super.processUpdateMessage(e),e instanceof ht&&(this._state!==-1&&e.state!==this._state&&this.dispatchSoundEvent(this.object.location.z),this._state=e.state)}dispatchSoundEvent(e){const t=Math.pow(2,e-1.2);this.eventDispatcher.dispatchEvent(new Aa(Aa.PLAY_SOUND_AT_PITCH,this.object,"FURNITURE_cuckoo_clock",t))}}class a0e extends qt{getEventTypes(){const e=[x.STACK_HEIGHT];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),this.object&&this.object.model&&this.object.model.setValue(b.FURNITURE_ALWAYS_STACKABLE,1)}useObject(){!this.object||!this.eventDispatcher||(this.eventDispatcher.dispatchEvent(new x(x.STACK_HEIGHT,this.object)),super.useObject())}}class o0e extends qe{constructor(){super(),this._noTags=!1,this._noTagsLastStateActivate=!1}getEventTypes(){const e=[X.DICE_ACTIVATE,X.DICE_OFF];return this.mergeTypes(super.getEventTypes(),e)}mouseEvent(e,t){if(!e||!t||!this.object)return;let i=null;switch(e.type){case ue.DOUBLE_CLICK:this._noTags?!this._noTagsLastStateActivate||this.object.getState(0)===0||this.object.getState(0)===100?(i=new X(X.DICE_ACTIVATE,this.object),this._noTagsLastStateActivate=!0):(i=new X(X.DICE_OFF,this.object),this._noTagsLastStateActivate=!1):e.spriteTag==="activate"||this.object.getState(0)===0||this.object.getState(0)===100?i=new X(X.DICE_ACTIVATE,this.object):e.spriteTag==="deactivate"&&(i=new X(X.DICE_OFF,this.object)),i&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(i);return}super.mouseEvent(e,t)}}class l0e extends qe{getEventTypes(){const e=[x.ECOTRONBOX];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.ECOTRONBOX,this.object))}}class u0e extends qe{constructor(){super(),this._showStateOnceRendered=!1,this._updateCount=0}getEventTypes(){const e=[x.INERNAL_LINK];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),e.logic&&e.logic.action&&e.logic.action.startState===1&&(this._showStateOnceRendered=!0)}update(e){super.update(e),this._showStateOnceRendered&&(this._updateCount++,this._showStateOnceRendered&&this._updateCount>20&&(this.setAutomaticStateIndex(1),this._showStateOnceRendered=!1))}setAutomaticStateIndex(e){this.object&&this.object.model&&this.object.model.setValue(b.FURNITURE_AUTOMATIC_STATE_INDEX,e)}mouseEvent(e,t){!e||!t||(e.type===ue.DOUBLE_CLICK&&this.setAutomaticStateIndex(0),super.mouseEvent(e,t))}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.INERNAL_LINK,this.object))}}class h0e extends qe{getEventTypes(){const e=[x.ROOM_LINK];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),e.logic&&e.logic.action&&e.logic.action.link&&e.logic.action.link!==""&&e.logic.action.link.length>0&&this.object&&this.object.model&&this.object.model.setValue(b.FURNITURE_INTERNAL_LINK,e.logic.action.link)}onDispose(){this._timer&&(clearTimeout(this._timer),this._timer=null),super.onDispose()}setAutomaticStateIndex(e){this.object&&this.object.model&&this.object.model.setValue(b.FURNITURE_AUTOMATIC_STATE_INDEX,e)}useObject(){this.setAutomaticStateIndex(1),this._timer&&(clearTimeout(this._timer),this._timer=null),this._timer=setTimeout(()=>{this.setAutomaticStateIndex(0),this._timer=null},2500),!(!this.object||!this.eventDispatcher)&&this.eventDispatcher.dispatchEvent(new x(x.ROOM_LINK,this.object))}}class c0e extends qe{getEventTypes(){const e=[x.EFFECTBOX_OPEN_DIALOG];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.EFFECTBOX_OPEN_DIALOG,this.object))}get contextMenu(){return Wr.EFFECT_BOX}}class f0e extends qt{getEventTypes(){const e=[x.EXTERNAL_IMAGE];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){if(super.initialize(e),!!e&&this.object&&this.object.model){let t="";e.logic&&e.logic.maskType&&e.logic.maskType!==""&&e.logic.maskType.length>0&&(t=e.logic.maskType),this.object.model.setValue(b.FURNITURE_USES_PLANE_MASK,0),this.object.model.setValue(b.FURNITURE_PLANE_MASK_TYPE,t)}}useObject(){!this.object||!this.eventDispatcher||(this.eventDispatcher.dispatchEvent(new x(x.EXTERNAL_IMAGE,this.object)),super.useObject())}}class d0e extends qe{getEventTypes(){const e=[We.STATE_CHANGE];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),e.logic&&e.logic.particleSystems&&e.logic.particleSystems.length&&this.object.model.setValue(b.FURNITURE_FIREWORKS_DATA,e.logic.particleSystems)}mouseEvent(e,t){if(!e||!t||!this.object)return;let i=null;switch(e.type){case ue.DOUBLE_CLICK:switch(e.spriteTag){case"start_stop":i=new We(We.STATE_CHANGE,this.object,1);break;case"reset":i=new We(We.STATE_CHANGE,this.object,2);break}if(this.eventDispatcher&&i){this.eventDispatcher.dispatchEvent(i);return}break}super.mouseEvent(e,t)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new We(We.STATE_CHANGE,this.object,0))}}const iu=class iu extends qt{constructor(){super(),this._currentState=-1,this._currentLocation=null}getEventTypes(){const e=[qi.ADD_HOLE,qi.REMOVE_HOLE];return this.mergeTypes(super.getEventTypes(),e)}onDispose(){this._currentState===iu.STATE_HOLE&&this.eventDispatcher.dispatchEvent(new qi(qi.REMOVE_HOLE,this.object)),super.onDispose()}update(e){super.update(e),this.handleAutomaticStateUpdate()}processUpdateMessage(e){if(super.processUpdateMessage(e),!this.object)return;e instanceof ht&&this.handleStateUpdate(this.object.getState(0));const t=this.object.getLocation();this._currentLocation?(t.x!==this._currentLocation.x||t.y!==this._currentLocation.y)&&this._currentState===iu.STATE_HOLE&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new qi(qi.ADD_HOLE,this.object)):this._currentLocation=new M,this._currentLocation.assign(t)}handleStateUpdate(e){e!==this._currentState&&(this.eventDispatcher&&(e===iu.STATE_HOLE?this.eventDispatcher.dispatchEvent(new qi(qi.ADD_HOLE,this.object)):this._currentState===iu.STATE_HOLE&&this.eventDispatcher.dispatchEvent(new qi(qi.REMOVE_HOLE,this.object))),this._currentState=e)}handleAutomaticStateUpdate(){if(!this.object)return;const e=this.object.model;if(!e)return;const t=e.getValue(b.FURNITURE_AUTOMATIC_STATE_INDEX);isNaN(t)||this.handleStateUpdate(t%2)}};iu.STATE_HOLE=0;let kb=iu;const su=class su extends qt{constructor(){super(...arguments),this._state=-1}initialize(e){super.initialize(e),this.object&&this.object.model.setValue(b.FURNITURE_FRIENDFURNI_ENGRAVING,this.engravingDialogType)}processUpdateMessage(e){if(e instanceof ht){const t=e.data;t?this._state=t.state:this._state=e.state}super.processUpdateMessage(e)}getEventTypes(){const e=[x.FRIEND_FURNITURE_ENGRAVING];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||(this._state===su.STATE_LOCKED?this.eventDispatcher.dispatchEvent(new x(x.FRIEND_FURNITURE_ENGRAVING,this.object)):super.useObject())}get engravingDialogType(){return 0}get contextMenu(){return this._state===su.STATE_UNLOCKED?Wr.FRIEND_FURNITURE:Wr.DUMMY}};su.STATE_UNINITIALIZED=-1,su.STATE_UNLOCKED=0,su.STATE_LOCKED=1;let Pv=su;const Er=class Er extends qt{getEventTypes(){const e=[ir.LOAD_BADGE,x.GUILD_FURNI_CONTEXT_MENU,x.CLOSE_FURNI_CONTEXT_MENU];return this.mergeTypes(super.getEventTypes(),e)}processUpdateMessage(e){if(super.processUpdateMessage(e),e instanceof ht){const t=e.data;t instanceof Wc&&(this.updateGroupId(t.getValue(Er.GROUPID_KEY)),this.updateBadge(t.getValue(Er.BADGE_KEY)),this.updateColors(t.getValue(Er.COLOR1_KEY),t.getValue(Er.COLOR2_KEY)))}else e instanceof Gu?e.assetName!=="loading_icon"&&(this.object.model.setValue(b.FURNITURE_GUILD_CUSTOMIZED_ASSET_NAME,e.assetName),this.update(Pe())):e instanceof $_&&(e.selected||this.eventDispatcher.dispatchEvent(new x(x.CLOSE_FURNI_CONTEXT_MENU,this.object)))}updateGroupId(e){this.object.model.setValue(b.FURNITURE_GUILD_CUSTOMIZED_GUILD_ID,parseInt(e))}updateBadge(e){this.eventDispatcher.dispatchEvent(new ir(ir.LOAD_BADGE,this.object,e,!0))}updateColors(e,t){this.object.model.setValue(b.FURNITURE_GUILD_CUSTOMIZED_COLOR_1,parseInt(e,16)),this.object.model.setValue(b.FURNITURE_GUILD_CUSTOMIZED_COLOR_2,parseInt(t,16))}mouseEvent(e,t){if(!(!e||!t||!this.object)){switch(e.type){case ue.MOUSE_CLICK:this.openContextMenu()}super.mouseEvent(e,t)}}openContextMenu(){this.eventDispatcher.dispatchEvent(new x(x.GUILD_FURNI_CONTEXT_MENU,this.object))}};Er.GROUPID_KEY=1,Er.BADGE_KEY=2,Er.COLOR1_KEY=3,Er.COLOR2_KEY=4;let kv=Er;class _0e extends kv{getEventTypes(){const e=[x.INERNAL_LINK];return this.mergeTypes(super.getEventTypes(),e)}updateGroupId(e){super.updateGroupId(e),this.object.model.setValue(b.FURNITURE_INTERNAL_LINK,`groupforum/${e}`)}useObject(){!this.object||!this.eventDispatcher||(this.eventDispatcher.dispatchEvent(new x(x.INERNAL_LINK,this.object)),super.useObject())}}class g0e extends qe{getEventTypes(){const e=[X.USE_HABBOWHEEL];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new X(X.USE_HABBOWHEEL,this.object))}}const NE=class NE extends qe{constructor(){super(...arguments),this._state=-1}getEventTypes(){return[x.HIGH_SCORE_DISPLAY,x.HIDE_HIGH_SCORE_DISPLAY]}tearDown(){this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&this.eventDispatcher.dispatchEvent(new x(x.HIDE_HIGH_SCORE_DISPLAY,this.object)),super.tearDown()}processUpdateMessage(e){super.processUpdateMessage(e),this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&e instanceof ht&&(e.state===NE.SHOW_WIDGET_IN_STATE?this.eventDispatcher.dispatchEvent(new x(x.HIGH_SCORE_DISPLAY,this.object)):this.eventDispatcher.dispatchEvent(new x(x.HIDE_HIGH_SCORE_DISPLAY,this.object)),this._state=e.state)}};NE.SHOW_WIDGET_IN_STATE=1;let xb=NE;class p0e extends qe{getEventTypes(){const e=[We.STATE_CHANGE];return this.mergeTypes(super.getEventTypes(),e)}mouseEvent(e,t){if(!e||!t||!this.object)return;let i=null;switch(e.type){case ue.DOUBLE_CLICK:switch(e.spriteTag){case"off":i=new We(We.STATE_CHANGE,this.object,3);break}break;case ue.MOUSE_CLICK:switch(e.spriteTag){case"inc":i=new We(We.STATE_CHANGE,this.object,2);break;case"dec":i=new We(We.STATE_CHANGE,this.object,1);break}break}if(this.eventDispatcher&&i){this.eventDispatcher.dispatchEvent(i);return}super.mouseEvent(e,t)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new We(We.STATE_CHANGE,this.object,3))}}class m0e extends Pv{get engravingDialogType(){return zm.HABBOWEEN}}class v0e extends qt{constructor(){super(),this._nextState=0,this._nextStateTimestamp=0}update(e){if(this._nextStateTimestamp>0&&e>=this._nextStateTimestamp){this._nextStateTimestamp=0;const t=new ps;t.setString(this._nextState.toString()),super.processUpdateMessage(new ht(this._nextState,t,this._nextStateExtra))}super.update(e)}processUpdateMessage(e){if(e instanceof ht){this.processUpdate(e);return}super.processUpdateMessage(e)}processUpdate(e){if(!e)return;const t=~~(e.state/1e3),i=~~(e.state%1e3);if(i)this._nextState=t,this._nextStateExtra=e.extra,this._nextStateTimestamp=this.time+i;else{this._nextStateTimestamp=0;const n=new ps;n.setString(t.toString()),super.processUpdateMessage(new ht(t,n,e.extra))}}}class E0e extends qe{constructor(){super(...arguments),this._showStateOnceRendered=!1,this._updateCount=0}getEventTypes(){const e=[x.INERNAL_LINK];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),e.logic&&e.logic.action&&(this.object.model.setValue(b.FURNITURE_INTERNAL_LINK,e.logic.action.link),e.logic.action.startState===1&&(this._showStateOnceRendered=!0))}update(e){super.update(e),this._showStateOnceRendered&&(this._updateCount++,this._showStateOnceRendered&&this._updateCount===20&&(this.setAutomaticStateIndex(1),this._showStateOnceRendered=!1))}setAutomaticStateIndex(e){this.object&&this.object.model&&this.object.model.setValue(b.FURNITURE_AUTOMATIC_STATE_INDEX,e)}mouseEvent(e,t){!e||!t||(e.type===ue.DOUBLE_CLICK&&this._showStateOnceRendered&&this.setAutomaticStateIndex(0),super.mouseEvent(e,t))}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.INERNAL_LINK,this.object))}}class y0e extends qt{constructor(){super(...arguments),this._disposeEventsAllowed=!1,this._isInitialized=!1,this._currentState=-1}getEventTypes(){const e=[X.JUKEBOX_START,X.JUKEBOX_MACHINE_STOP,X.JUKEBOX_DISPOSE,X.JUKEBOX_INIT,x.JUKEBOX_PLAYLIST_EDITOR];return this.mergeTypes(super.getEventTypes(),e)}onDispose(){this.requestDispose(),super.onDispose()}processUpdateMessage(e){if(super.processUpdateMessage(e),this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&(this._isInitialized||this.requestInit(),this.object.model.setValue(Fs.INFOSTAND_EXTRA_PARAM,Fs.JUKEBOX),e instanceof ht)){const t=this.object.getState(0);t!==this._currentState&&(this._currentState=t,t===1?this.requestPlayList():t===0&&this.requestStopPlaying())}}requestInit(){!this.object||!this.eventDispatcher||(this._disposeEventsAllowed=!0,this.eventDispatcher.dispatchEvent(new X(X.JUKEBOX_INIT,this.object)),this._isInitialized=!0)}requestPlayList(){!this.object||!this.eventDispatcher||(this._disposeEventsAllowed=!0,this.eventDispatcher.dispatchEvent(new X(X.JUKEBOX_START,this.object)))}requestStopPlaying(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new X(X.JUKEBOX_MACHINE_STOP,this.object))}requestDispose(){!this._disposeEventsAllowed||!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new X(X.JUKEBOX_DISPOSE,this.object))}useObject(){!this.object||!this.eventDispatcher||(this.eventDispatcher.dispatchEvent(new x(x.JUKEBOX_PLAYLIST_EDITOR,this.object)),this.eventDispatcher.dispatchEvent(new We(We.STATE_CHANGE,this.object,-1)))}}class T0e extends Pv{get engravingDialogType(){return zm.LOVE_LOCK}}const mo=class mo extends qe{getEventTypes(){const e=[x.MANNEQUIN];return this.mergeTypes(super.getEventTypes(),e)}processUpdateMessage(e){super.processUpdateMessage(e),e instanceof ht&&(e.data.writeRoomObjectModel(this.object.model),this.processObjectData())}processObjectData(){if(!this.object||!this.object.model)return;const e=new Fu;e.initializeFromRoomObjectModel(this.object.model),this.object.model.setValue(b.FURNITURE_MANNEQUIN_GENDER,e.getValue(mo.GENDER)),this.object.model.setValue(b.FURNITURE_MANNEQUIN_FIGURE,e.getValue(mo.FIGURE)),this.object.model.setValue(b.FURNITURE_MANNEQUIN_NAME,e.getValue(mo.OUTFIT_NAME))}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.MANNEQUIN,this.object))}};mo.GENDER="GENDER",mo.FIGURE="FIGURE",mo.OUTFIT_NAME="OUTFIT_NAME";let Db=mo;class I0e extends qt{getEventTypes(){const e=[x.MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG,this.object))}get contextMenu(){return Wr.MONSTERPLANT_SEED}}class R0e extends qt{initialize(e){super.initialize(e),this.object&&this.object.model&&this.object.model.setValue(b.FURNITURE_IS_VARIABLE_HEIGHT,1)}}class S0e extends qt{getEventTypes(){const e=[x.MYSTERYBOX_OPEN_DIALOG];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.MYSTERYBOX_OPEN_DIALOG,this.object))}get contextMenu(){return Wr.MYSTERY_BOX}}class b0e extends qt{getEventTypes(){const e=[x.MYSTERYTROPHY_OPEN_DIALOG];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.MYSTERYTROPHY_OPEN_DIALOG,this.object))}get contextMenu(){return Wr.MYSTERY_TROPHY}}class A0e extends qe{getEventTypes(){const e=[X.ENTER_ONEWAYDOOR];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new X(X.ENTER_ONEWAYDOOR,this.object))}}class O0e extends qe{getEventTypes(){const e=[x.PET_PRODUCT_MENU];return this.mergeTypes(super.getEventTypes(),e)}processUpdateMessage(e){super.processUpdateMessage(e),this.object&&this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&this.object.model.setValue(Fs.INFOSTAND_EXTRA_PARAM,Fs.USABLE_PRODUCT)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.PET_PRODUCT_MENU,this.object))}}class w0e extends qe{getEventTypes(){const e=[x.PLACEHOLDER];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.PLACEHOLDER,this.object))}}class C0e extends qe{initialize(e){super.initialize(e),e.logic&&e.logic.planetSystems&&this.object.model.setValue(b.FURNITURE_PLANETSYSTEM_DATA,e.logic.planetSystems)}}const Tn=class Tn extends qe{getEventTypes(){const e=[x.PRESENT];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),e.logic&&e.logic.particleSystems&&e.logic.particleSystems.length&&this.object.model.setValue(b.FURNITURE_FIREWORKS_DATA,e.logic.particleSystems)}processUpdateMessage(e){super.processUpdateMessage(e),e instanceof ht&&(e.data.writeRoomObjectModel(this.object.model),this.updateStuffData()),e instanceof I5&&e.numberKey===b.FURNITURE_DISABLE_PICKING_ANIMATION&&this.object.model.setValue(b.FURNITURE_DISABLE_PICKING_ANIMATION,e.numberValue)}updateStuffData(){if(!this.object||!this.object.model)return;const e=new Fu;e.initializeFromRoomObjectModel(this.object.model);const t=e.getValue(Tn.MESSAGE),i=this.object.model.getValue(b.FURNITURE_DATA);!t&&typeof i=="string"?this.object.model.setValue(b.FURNITURE_DATA,i.substr(1)):this.object.model.setValue(b.FURNITURE_DATA,e.getValue(Tn.MESSAGE)),this.writeToModel(b.FURNITURE_TYPE_ID,e.getValue(Tn.PRODUCT_CODE)),this.writeToModel(b.FURNITURE_PURCHASER_NAME,e.getValue(Tn.PURCHASER_NAME)),this.writeToModel(b.FURNITURE_PURCHASER_FIGURE,e.getValue(Tn.PURCHASER_FIGURE))}writeToModel(e,t){t&&this.object.model.setValue(e,t)}mouseEvent(e,t){if(!(!e||!t||!this.object)){switch(e.type){case ue.ROLL_OVER:this.eventDispatcher.dispatchEvent(new X(X.MOUSE_BUTTON,this.object));break;case ue.ROLL_OUT:this.eventDispatcher.dispatchEvent(new X(X.MOUSE_ARROW,this.object));break}super.mouseEvent(e,t)}}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.PRESENT,this.object))}};Tn.MESSAGE="MESSAGE",Tn.PRODUCT_CODE="PRODUCT_CODE",Tn.EXTRA_PARAM="EXTRA_PARAM",Tn.PURCHASER_NAME="PURCHASER_NAME",Tn.PURCHASER_FIGURE="PURCHASER_FIGURE";let Lb=Tn;class M0e extends qt{getEventTypes(){const e=[x.PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG,this.object))}get contextMenu(){return Wr.PURCHASABLE_CLOTHING}}const ua=class ua extends qt{constructor(){super(),this.updateInterval=Ko.DEFAULT_UPDATE_INTERVAL,this._oldLocation=new M}processUpdateMessage(e){if(!e)return;const t=e instanceof Xo;if(this.object&&!t&&e.location){const i=this.object.getLocation(),n=M.dif(e.location,i);if(n&&Math.abs(n.x)<2&&Math.abs(n.y)<2){let r=i;(Math.abs(n.x)>1||Math.abs(n.y)>1)&&(r=M.sum(i,M.product(n,.5))),super.processUpdateMessage(new Xo(r,e.location,e.direction));return}}if(e.location&&!t&&super.processUpdateMessage(new Xo(e.location,e.location,e.direction)),e instanceof ht){e.state>0?this.updateInterval=Ko.DEFAULT_UPDATE_INTERVAL/this.getUpdateIntervalValue(e.state):this.updateInterval=1,this.handleDataUpdate(e);return}t&&e.isSlide&&(this.updateInterval=Ko.DEFAULT_UPDATE_INTERVAL),super.processUpdateMessage(e)}getUpdateIntervalValue(e){return e/ua.MAX_ANIMATION_COUNT}getAnimationValue(e){return e%ua.MAX_ANIMATION_COUNT}handleDataUpdate(e){const t=this.getAnimationValue(e.state);if(t!==e.state){const i=new ps;i.setString(t.toString()),e=new ht(t,i,e.extra)}super.processUpdateMessage(e)}update(e){this.object&&(this._oldLocation.assign(this.object.getLocation()),super.update(e),M.dif(this.object.getLocation(),this._oldLocation).length===0&&this.object.getState(0)!==ua.ANIMATION_NOT_MOVING&&this.object.setState(ua.ANIMATION_NOT_MOVING,0))}};ua.ANIMATION_NOT_MOVING=0,ua.ANIMATION_MOVING=1,ua.MAX_ANIMATION_COUNT=10;let Ub=ua;class N0e extends qe{getEventTypes(){const e=[We.STATE_RANDOM];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new We(We.STATE_RANDOM,this.object))}}class P0e extends qt{get contextMenu(){return Wr.RANDOM_TELEPORT}}class k0e extends qe{getEventTypes(){const e=[Mn.RODRE_CURRENT_USER_ID];return this.mergeTypes(super.getEventTypes(),e)}update(e){if(super.update(e),this.object&&this.object.model){this.object.model.getValue(b.SESSION_CURRENT_USER_ID)||this.eventDispatcher.dispatchEvent(new Mn(Mn.RODRE_CURRENT_USER_ID,this.object));const t=this.object.model.getValue(b.FURNITURE_DATA).renterId,i=this.object.model.getValue(b.SESSION_CURRENT_USER_ID);t?parseInt(t)===i?this.object.setState(2,0):this.object.setState(1,0):this.object.setState(0,0)}}get widget(){return Xm.RENTABLESPACE}}class x0e extends qt{constructor(){super(),this._roomColorUpdated=!1}getEventTypes(){const e=[x.BACKGROUND_COLOR,ma.ROOM_BACKGROUND_COLOR];return this.mergeTypes(super.getEventTypes(),e)}onDispose(){this._roomColorUpdated&&(this.eventDispatcher&&this.object&&this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&this.eventDispatcher.dispatchEvent(new ma(ma.ROOM_BACKGROUND_COLOR,this.object,!1,0,0,0)),this._roomColorUpdated=!1),super.onDispose()}processUpdateMessage(e){super.processUpdateMessage(e),e instanceof ht&&(e.data.writeRoomObjectModel(this.object.model),this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&this.processColorUpdate())}processColorUpdate(){if(!this.object||!this.object.model)return;const e=new F_;e.initializeFromRoomObjectModel(this.object.model);const t=e.getValue(0),i=e.getValue(1),n=e.getValue(2),r=e.getValue(3);t>-1&&i>-1&&n>-1&&r>-1&&(this.object.model.setValue(b.FURNITURE_ROOM_BACKGROUND_COLOR_HUE,i),this.object.model.setValue(b.FURNITURE_ROOM_BACKGROUND_COLOR_SATURATION,n),this.object.model.setValue(b.FURNITURE_ROOM_BACKGROUND_COLOR_LIGHTNESS,r),this.object.setState(t,0),this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new ma(ma.ROOM_BACKGROUND_COLOR,this.object,t===1,i,n,r)),this._roomColorUpdated=!0)}mouseEvent(e,t){if(!(!e||!t||!this.object)){switch(e.type){case ue.DOUBLE_CLICK:this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new x(x.BACKGROUND_COLOR,this.object));return}super.mouseEvent(e,t)}}}var Au={},S5={},ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.loop=ka.conditional=ka.parse=void 0;var D0e=function s(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i;if(Array.isArray(t))t.forEach(function(a){return s(e,a,i,n)});else if(typeof t=="function")t(e,i,n,s);else{var r=Object.keys(t)[0];Array.isArray(t[r])?(n[r]={},s(e,t[r],i,n[r])):n[r]=t[r](e,i,n,s)}return i};ka.parse=D0e;var L0e=function(e,t){return function(i,n,r,a){t(i,n,r)&&a(i,e,n,r)}};ka.conditional=L0e;var U0e=function(e,t){return function(i,n,r,a){for(var o=[],l=i.pos;t(i,n,r);){var u={};if(a(i,e,n,u),i.pos===l)break;l=i.pos,o.push(u)}return o}};ka.loop=U0e;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.readBits=ni.readArray=ni.readUnsigned=ni.readString=ni.peekBytes=ni.readBytes=ni.peekByte=ni.readByte=ni.buildStream=void 0;var F0e=function(e){return{data:e,pos:0}};ni.buildStream=F0e;var b5=function(){return function(e){return e.data[e.pos++]}};ni.readByte=b5;var B0e=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(t){return t.data[t.pos+e]}};ni.peekByte=B0e;var O0=function(e){return function(t){return t.data.subarray(t.pos,t.pos+=e)}};ni.readBytes=O0;var G0e=function(e){return function(t){return t.data.subarray(t.pos,t.pos+e)}};ni.peekBytes=G0e;var V0e=function(e){return function(t){return Array.from(O0(e)(t)).map(function(i){return String.fromCharCode(i)}).join("")}};ni.readString=V0e;var j0e=function(e){return function(t){var i=O0(2)(t);return e?(i[1]<<8)+i[0]:(i[0]<<8)+i[1]}};ni.readUnsigned=j0e;var z0e=function(e,t){return function(i,n,r){for(var a=typeof t=="function"?t(i,n,r):t,o=O0(e),l=new Array(a),u=0;u<a;u++)l[u]=o(i);return l}};ni.readArray=z0e;var H0e=function(e,t,i){for(var n=0,r=0;r<i;r++)n+=e[t+r]&&Math.pow(2,i-r-1);return n},W0e=function(e){return function(t){for(var i=b5()(t),n=new Array(8),r=0;r<8;r++)n[7-r]=!!(i&1<<r);return Object.keys(e).reduce(function(a,o){var l=e[o];return l.length?a[o]=H0e(n,l.index,l.length):a[o]=n[l.index],a},{})}};ni.readBits=W0e;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var e=ka,t=ni,i={blocks:function(f){for(var d=0,_=[],g=f.data.length,p=0,m=(0,t.readByte)()(f);m!==d&&m;m=(0,t.readByte)()(f)){if(f.pos+m>=g){var v=g-f.pos;_.push((0,t.readBytes)(v)(f)),p+=v;break}_.push((0,t.readBytes)(m)(f)),p+=m}for(var E=new Uint8Array(p),y=0,T=0;T<_.length;T++)E.set(_[T],y),y+=_[T].length;return E}},n=(0,e.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},function(h){var f=(0,t.peekBytes)(2)(h);return f[0]===33&&f[1]===249}),r=(0,e.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,e.conditional)({lct:(0,t.readArray)(3,function(h,f,d){return Math.pow(2,d.descriptor.lct.size+1)})},function(h,f,d){return d.descriptor.lct.exists}),{data:[{minCodeSize:(0,t.readByte)()},i]}]},function(h){return(0,t.peekByte)()(h)===44}),a=(0,e.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(f,d,_){return(0,t.readBytes)(_.text.blockSize)(f)}},i]},function(h){var f=(0,t.peekBytes)(2)(h);return f[0]===33&&f[1]===1}),o=(0,e.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(f,d,_){return(0,t.readString)(_.blockSize)(f)}},i]},function(h){var f=(0,t.peekBytes)(2)(h);return f[0]===33&&f[1]===255}),l=(0,e.conditional)({comment:[{codes:(0,t.readBytes)(2)},i]},function(h){var f=(0,t.peekBytes)(2)(h);return f[0]===33&&f[1]===254}),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,e.conditional)({gct:(0,t.readArray)(3,function(h,f){return Math.pow(2,f.lsd.gct.size+1)})},function(h,f){return f.lsd.gct.exists}),{frames:(0,e.loop)([n,o,l,r,a],function(h){var f=(0,t.peekByte)()(h);return f===33||f===44})}],c=u;s.default=c})(S5);var w0={};Object.defineProperty(w0,"__esModule",{value:!0});w0.deinterlace=void 0;var Y0e=function(e,t){for(var i=new Array(e.length),n=e.length/t,r=function(f,d){var _=e.slice(d*t,(d+1)*t);i.splice.apply(i,[f*t,t].concat(_))},a=[0,4,2,1],o=[8,8,4,2],l=0,u=0;u<4;u++)for(var c=a[u];c<n;c+=o[u])r(c,l),l++;return i};w0.deinterlace=Y0e;var C0={};Object.defineProperty(C0,"__esModule",{value:!0});C0.lzw=void 0;var X0e=function(e,t,i){var n=4096,r=-1,a=i,o,l,u,c,h,f,d,w,_,g,T,p,C,N,k,P,m=new Array(i),v=new Array(n),E=new Array(n),y=new Array(n+1);for(p=e,l=1<<p,h=l+1,o=l+2,d=r,c=p+1,u=(1<<c)-1,_=0;_<l;_++)v[_]=0,E[_]=_;var T,w,C,N,P,k;for(T=w=C=N=P=k=0,g=0;g<a;){if(N===0){if(w<c){T+=t[k]<<w,w+=8,k++;continue}if(_=T&u,T>>=c,w-=c,_>o||_==h)break;if(_==l){c=p+1,u=(1<<c)-1,o=l+2,d=r;continue}if(d==r){y[N++]=E[_],d=_,C=_;continue}for(f=_,_==o&&(y[N++]=C,_=d);_>l;)y[N++]=E[_],_=v[_];C=E[_]&255,y[N++]=C,o<n&&(v[o]=d,E[o]=C,o++,!(o&u)&&o<n&&(c++,u+=o)),d=f}N--,m[P++]=y[N],g++}for(g=P;g<a;g++)m[g]=0;return m};C0.lzw=X0e;Object.defineProperty(Au,"__esModule",{value:!0});var A5=Au.decompressFrames=Au.decompressFrame=O5=Au.parseGIF=void 0,K0e=J0e(S5),q0e=ka,$0e=ni,Q0e=w0,Z0e=C0;function J0e(s){return s&&s.__esModule?s:{default:s}}var eye=function(e){var t=new Uint8Array(e);return(0,q0e.parse)((0,$0e.buildStream)(t),K0e.default)},O5=Au.parseGIF=eye,tye=function(e){for(var t=e.pixels.length,i=new Uint8ClampedArray(t*4),n=0;n<t;n++){var r=n*4,a=e.pixels[n],o=e.colorTable[a]||[0,0,0];i[r]=o[0],i[r+1]=o[1],i[r+2]=o[2],i[r+3]=a!==e.transparentIndex?255:0}return i},w5=function(e,t,i){if(!e.image){console.warn("gif frame does not have associated image.");return}var n=e.image,r=n.descriptor.width*n.descriptor.height,a=(0,Z0e.lzw)(n.data.minCodeSize,n.data.blocks,r);n.descriptor.lct.interlaced&&(a=(0,Q0e.deinterlace)(a,n.descriptor.width));var o={pixels:a,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?o.colorTable=n.lct:o.colorTable=t,e.gce&&(o.delay=(e.gce.delay||10)*10,o.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(o.transparentIndex=e.gce.transparentColorIndex)),i&&(o.patch=tye(o)),o};Au.decompressFrame=w5;var iye=function(e,t){return e.frames.filter(function(i){return i.image}).map(function(i){return w5(i,e.gct,t)})};A5=Au.decompressFrames=iye;const mi=class mi extends qe{constructor(){super(),this._disableFurnitureSelection=!0,this._hasClickUrl=!1}getEventTypes(){const e=[Rt.ROOM_AD_LOAD_IMAGE];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),this._disableFurnitureSelection&&this.object.model.setValue(b.FURNITURE_SELECTION_DISABLED,1)}processUpdateMessage(e){super.processUpdateMessage(e),e instanceof ht&&this.processAdDataUpdateMessage(e),e instanceof ss&&this.processAdUpdate(e)}processAdDataUpdateMessage(e){if(!e)return;const t=new Fu;t.initializeFromRoomObjectModel(this.object.model);const i=parseInt(t.getValue(mi.STATE));!isNaN(i)&&this.object.getState(0)!==i&&this.object.setState(i,0);const n=t.getValue(mi.IMAGEURL_KEY),r=this.object.model.getValue(b.FURNITURE_BRANDING_IMAGE_URL);(!r||r!==n)&&(this.object.model.setValue(b.FURNITURE_BRANDING_IMAGE_URL,n),this.object.model.setValue(b.FURNITURE_BRANDING_IMAGE_STATUS,0),this.downloadBackground());const a=t.getValue(mi.CLICKURL_KEY);if(a){const h=this.object.model.getValue(b.FURNITURE_BRANDING_URL);(!h||h!==a)&&this.object.model&&this.object.model.setValue(b.FURNITURE_BRANDING_URL,a)}const o=parseInt(t.getValue(mi.OFFSETX_KEY)),l=parseInt(t.getValue(mi.OFFSETY_KEY)),u=parseInt(t.getValue(mi.OFFSETZ_KEY));isNaN(o)||this.object.model.setValue(b.FURNITURE_BRANDING_OFFSET_X,o),isNaN(l)||this.object.model.setValue(b.FURNITURE_BRANDING_OFFSET_Y,l),isNaN(u)||this.object.model.setValue(b.FURNITURE_BRANDING_OFFSET_Z,u);let c=mi.IMAGEURL_KEY+"="+(n!==null?n:"")+" ";this._hasClickUrl&&(c=c+(mi.CLICKURL_KEY+"="+(a!==null?a:"")+" ")),c=c+(mi.OFFSETX_KEY+"="+o+" "),c=c+(mi.OFFSETY_KEY+"="+l+" "),c=c+(mi.OFFSETZ_KEY+"="+u+" "),this.object.model.setValue(Fs.INFOSTAND_EXTRA_PARAM,Fs.BRANDING_OPTIONS+c)}processAdUpdate(e){if(!(!e||!this.object))switch(e.type){case ss.IMAGE_LOADED:this.object.model.setValue(b.FURNITURE_BRANDING_IMAGE_STATUS,1);break;case ss.IMAGE_LOADING_FAILED:this.object.model.setValue(b.FURNITURE_BRANDING_IMAGE_STATUS,-1);break}}mouseEvent(e,t){!e||!t||e.type===ue.MOUSE_MOVE||e.type===ue.DOUBLE_CLICK||super.mouseEvent(e,t)}async downloadBackground(){const e=this.object&&this.object.model;if(!e)return;const t=e.getValue(b.FURNITURE_BRANDING_IMAGE_URL),i=e.getValue(b.FURNITURE_BRANDING_IMAGE_STATUS);if(!(!t||t===""||i===1))if(t.endsWith(".gif"))this.object.model.setValue(b.FURNITURE_BRANDING_IS_ANIMATED,!0),fetch(t).then(n=>n.arrayBuffer()).then(n=>O5(n)).then(n=>{const r=n.lsd.width,a=n.lsd.height,o=r*a,l=A5(n,!1),u=[],c=[];let h=new Uint8Array(o*4);for(let f=0;f<l.length;f++){f>0&&(h=h.slice(0));const d=l[f].pixels,_=l[f].colorTable,g=l[f].transparentIndex,p=l[f].dims;for(let v=0;v<p.height;v++)for(let E=0;E<p.width;E++){const y=d[v*p.width+E],T=(v+p.top)*r+(E+p.left);if(g!==y){const w=_[y];h[4*T]=w[0],h[4*T+1]=w[1],h[4*T+2]=w[2],h[4*T+3]=255}}const m=pt.fromBuffer(h,r,a);u.push(new Ne(m)),c.push(l[f].delay)}ce.instance.roomEngine.roomContentLoader.createGifCollection(t,u,c),this.processUpdateMessage(new ss(ss.IMAGE_LOADED))}).catch(n=>{this.processUpdateMessage(new ss(ss.IMAGE_LOADING_FAILED))});else{const n=wn();if(!n)return;if(!n.getTexture(t)){await n.downloadAsset(t)?this.processUpdateMessage(new ss(ss.IMAGE_LOADED)):this.processUpdateMessage(new ss(ss.IMAGE_LOADING_FAILED));return}this.processUpdateMessage(new ss(ss.IMAGE_LOADED))}}};mi.STATE="state",mi.IMAGEURL_KEY="imageUrl",mi.CLICKURL_KEY="clickUrl",mi.OFFSETX_KEY="offsetX",mi.OFFSETY_KEY="offsetY",mi.OFFSETZ_KEY="offsetZ";let xv=mi;class sye extends xv{getAdClickUrl(e){return null}}class nye extends xv{constructor(){super(),this._hasClickUrl=!0}getAdClickUrl(e){return e.getValue(b.FURNITURE_BRANDING_URL)}handleAdClick(e,t,i){if(i.indexOf("http")===0){Jc.openWebPage(i);return}this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new Rt(Rt.ROOM_AD_FURNI_CLICK,this.object,"",i))}}class rye extends qe{constructor(){super(),this._roomColorUpdated=!1}getEventTypes(){const e=[x.DIMMER,x.WIDGET_REMOVE_DIMMER,bu.DIMMER_STATE];return this.mergeTypes(super.getEventTypes(),e)}onDispose(){this._roomColorUpdated&&this.eventDispatcher&&this.object&&(this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&(this.eventDispatcher.dispatchEvent(new bu(this.object,0,1,1,16777215,255)),this.eventDispatcher.dispatchEvent(new x(x.WIDGET_REMOVE_DIMMER,this.object))),this._roomColorUpdated=!1),super.onDispose()}processUpdateMessage(e){if(e instanceof ht){if(e.data){const t=e.data.getLegacyString();this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&this.processDimmerData(t),super.processUpdateMessage(new ht(this.getStateFromDimmerData(t),e.data))}return}super.processUpdateMessage(e)}getStateFromDimmerData(e){if(!e)return 0;const t=e.split(",");return t.length>=5?parseInt(t[0])-1:0}processDimmerData(e){if(!e)return;const t=e.split(",");if(t.length>=5){const i=this.getStateFromDimmerData(e),n=parseInt(t[1]),r=parseInt(t[2]),a=t[3];let o=parseInt(a.substr(1),16),l=parseInt(t[4]);i||(o=16777215,l=255),this.eventDispatcher&&this.object&&(this.eventDispatcher.dispatchEvent(new bu(this.object,i,n,r,o,l)),this._roomColorUpdated=!0)}}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.DIMMER,this.object))}update(e){super.update(e)}}const vo=class vo extends qe{constructor(){super(),this._score=0,this._scoreIncreaser=50,this._scoreTimer=0}processUpdateMessage(e){if(e instanceof ht)return this.updateScore(e.state);super.processUpdateMessage(e)}updateScore(e){this._score=e;const t=this.object.getState(0);if(this._score!==t){let i=this._score-t;i<0&&(i=-i),i*vo.UPDATE_INTERVAL>vo.MAX_UPDATE_TIME?this._scoreIncreaser=vo.MAX_UPDATE_TIME/i:this._scoreIncreaser=vo.UPDATE_INTERVAL,this._scoreTimer=Pe()}}update(e){super.update(e);const t=this.object.getState(0);if(t!==this._score&&e>=this._scoreTimer+this._scoreIncreaser){const i=e-this._scoreTimer;let n=i/this._scoreIncreaser,r=1;this._score<t&&(r=-1),n>r*(this._score-t)&&(n=r*(this._score-t)),this.object.setState(t+r*n,0),this._scoreTimer=e-(i-n*this._scoreIncreaser)}}};vo.UPDATE_INTERVAL=50,vo.MAX_UPDATE_TIME=3e3;let Fb=vo;class aye extends qe{processUpdateMessage(e){if(super.processUpdateMessage(e),this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1){const t=this.object.model.getValue(b.FURNITURE_EXTRAS),i=parseInt(t);this.object.model.setValue(Fs.INFOSTAND_EXTRA_PARAM,Fs.SONGDISK+i)}}}const In=class In extends qt{constructor(){super(...arguments),this._state=-1,this._sampleId=-1,this._noPitch=!1,this._lastLocZ=0}getEventTypes(){const e=[Zt.ROOM_OBJECT_INITIALIZED,Zt.ROOM_OBJECT_DISPOSED,Zt.PLAY_SAMPLE,Zt.CHANGE_PITCH];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),e.logic&&e.logic.soundSample&&(this._sampleId=e.logic.soundSample.id,this._noPitch=e.logic.soundSample.noPitch),this.object.model.setValue(b.FURNITURE_SOUNDBLOCK_RELATIVE_ANIMATION_SPEED,1)}onDispose(){this._state!==In.STATE_UNINITIALIZED&&this.eventDispatcher.dispatchEvent(new Zt(Zt.ROOM_OBJECT_DISPOSED,this.object,this._sampleId)),super.onDispose()}processUpdateMessage(e){super.processUpdateMessage(e),e instanceof ht&&this.updateSoundBlockMessage(e)}updateSoundBlockMessage(e){if(!e)return;const t=this.object&&this.object.model,i=this.object&&this.object.location;!t||!i||(this._state===In.STATE_UNINITIALIZED&&t.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&(this._lastLocZ=i.z,this.eventDispatcher.dispatchEvent(new Zt(Zt.ROOM_OBJECT_INITIALIZED,this.object,this._sampleId,this.getPitchForHeight(i.z)))),this._state!==In.STATE_UNINITIALIZED&&t.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&this._lastLocZ!==i.z&&(this._lastLocZ=i.z,this.eventDispatcher.dispatchEvent(new Zt(Zt.CHANGE_PITCH,this.object,this._sampleId,this.getPitchForHeight(i.z)))),this._state!==In.STATE_UNINITIALIZED&&e.state!==this._state&&this.playSoundAt(i.z),this._state=e.state)}playSoundAt(e){if(!this.object)return;const t=this.getPitchForHeight(e);this.object.model.setValue(b.FURNITURE_SOUNDBLOCK_RELATIVE_ANIMATION_SPEED,t),this.eventDispatcher.dispatchEvent(new Zt(Zt.PLAY_SAMPLE,this.object,this._sampleId,t))}getPitchForHeight(e){if(this._noPitch)return 1;let t=e*2;return t>In.HIGHEST_SEMITONE&&(t=Math.min(0,In.LOWEST_SEMITONE+(t-In.HIGHEST_SEMITONE-1))),Math.pow(2,t/12)}};In.HIGHEST_SEMITONE=12,In.LOWEST_SEMITONE=-12,In.STATE_UNINITIALIZED=-1;let Bb=In;class oye extends qt{constructor(){super(...arguments),this._disposeEventsAllowed=!1,this._isInitialized=!1,this._currentState=-1}getEventTypes(){const e=[X.SOUND_MACHINE_START,X.SOUND_MACHINE_STOP,X.SOUND_MACHINE_DISPOSE,X.SOUND_MACHINE_INIT];return this.mergeTypes(super.getEventTypes(),e)}onDispose(){this.requestDispose(),super.onDispose()}processUpdateMessage(e){if(super.processUpdateMessage(e),this.object.model.getValue(b.FURNITURE_REAL_ROOM_OBJECT)===1&&(this._isInitialized||this.requestInit(),this.object.model.setValue(Fs.INFOSTAND_EXTRA_PARAM,Fs.JUKEBOX),e instanceof ht)){const t=this.object.getState(0);t!==this._currentState&&(this._currentState=t,t===1?this.requestPlayList():t===0&&this.requestStopPlaying())}}requestInit(){!this.object||!this.eventDispatcher||(this._disposeEventsAllowed=!0,this.eventDispatcher.dispatchEvent(new X(X.SOUND_MACHINE_INIT,this.object)),this._isInitialized=!0)}requestPlayList(){!this.object||!this.eventDispatcher||(this._disposeEventsAllowed=!0,this.eventDispatcher.dispatchEvent(new X(X.SOUND_MACHINE_START,this.object)))}requestStopPlaying(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new X(X.SOUND_MACHINE_STOP,this.object))}requestDispose(){!this._disposeEventsAllowed||!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new X(X.SOUND_MACHINE_DISPOSE,this.object))}}const PE=class PE extends qe{getEventTypes(){const e=[x.STICKIE,X.STICKIE];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){super.initialize(e),this.updateColor(),this.object&&this.object.model.setValue(b.FURNITURE_IS_STICKIE,"")}processUpdateMessage(e){super.processUpdateMessage(e),e instanceof Hw&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new x(x.STICKIE,this.object)),this.updateColor()}updateColor(){if(!this.object)return;const e=this.object.model.getValue(b.FURNITURE_DATA);let t=PE.STICKIE_COLORS.indexOf(e);t<0&&(t=3),this.object.model.setValue(b.FURNITURE_COLOR,t+1)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new X(X.STICKIE,this.object))}};PE.STICKIE_COLORS=["9CCEFF","FF9CFF","9CFF9C","FFFF33","FF9C9D","FFCD9C","C3B1E1","DBDEFB","FFFFFF","282828"];let Gb=PE;class lye extends qe{getEventTypes(){const e=[x.TROPHY];return this.mergeTypes(super.getEventTypes(),e)}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.TROPHY,this.object))}}const Eo=class Eo extends qt{constructor(){super(),this._total=0,this._lastUpdate=0,this._interval=33}processUpdateMessage(e){if(super.processUpdateMessage(e),e instanceof ht){const t=e.data;if(!t)return;this.updateTotal(t.result)}}updateTotal(e){if(this._total=e,!this._lastUpdate){this.object.model.setValue(b.FURNITURE_VOTE_COUNTER_COUNT,e),this._lastUpdate=Pe();return}if(this._total!==this.currentTotal){const t=Math.abs(this._total-this.currentTotal);t*Eo.UPDATE_INTERVAL>Eo.MAX_UPDATE_TIME?this._interval=Eo.MAX_UPDATE_TIME/t:this._interval=Eo.UPDATE_INTERVAL,this._lastUpdate=Pe()}}update(e){if(super.update(e),this.object&&this.currentTotal!==this._total&&e>=this._lastUpdate+this._interval){const t=e-this._lastUpdate;let i=t/this._interval,n=1;this._total<this.currentTotal&&(n=-1),i>n*(this._total-this.currentTotal)&&(i=n*(this._total-this.currentTotal)),this.object.model.setValue(b.FURNITURE_VOTE_COUNTER_COUNT,this.currentTotal+n*i),this._lastUpdate=e-(t-i*this._interval)}}get currentTotal(){return this.object.model.getValue(b.FURNITURE_VOTE_COUNTER_COUNT)}};Eo.UPDATE_INTERVAL=33,Eo.MAX_UPDATE_TIME=1e3;let Vb=Eo;class uye extends qt{processUpdateMessage(e){if(super.processUpdateMessage(e),!!this.object&&e instanceof ht){const t=e.data;t instanceof B_&&this.object.model.setValue(b.FURNITURE_VOTE_MAJORITY_RESULT,t.result)}}}class hye extends qt{mouseEvent(e,t){!e||!t||(e.type===ue.DOUBLE_CLICK&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new We(We.STATE_CHANGE,this.object)),super.mouseEvent(e,t))}}class cye extends qt{initialize(e){super.initialize(e);let t="";e.logic&&e.logic.maskType&&e.logic.maskType!==""&&e.logic.maskType.length>0&&(t=e.logic.maskType),this.object.model.setValue(b.FURNITURE_USES_PLANE_MASK,1),this.object.model.setValue(b.FURNITURE_PLANE_MASK_TYPE,t)}}class fye extends qe{getEventTypes(){const e=[x.YOUTUBE,Mn.RODRE_URL_PREFIX];return this.mergeTypes(super.getEventTypes(),e)}update(e){super.update(e),this.object.model.getValue(b.SESSION_URL_PREFIX)||this.eventDispatcher.dispatchEvent(new Mn(Mn.RODRE_URL_PREFIX,this.object))}useObject(){!this.object||!this.eventDispatcher||this.eventDispatcher.dispatchEvent(new x(x.YOUTUBE,this.object))}}class dye extends Ko{constructor(){super(),this._selected=!1,this._reportedLocation=null,this._postureIndex=0,this._gestureIndex=0,this._headDirectionDelta=0,this._directions=[],this._talkingEndTimestamp=0,this._gestureEndTimestamp=0,this._expressionEndTimestamp=0}getEventTypes(){const e=[Ee.CLICK,es.POSITION_CHANGED];return this.mergeTypes(super.getEventTypes(),e)}initialize(e){if(!e)return;const t=this.object&&this.object.model;if(t){if(e.logic&&e.logic.model){const i=e.logic.model.directions;if(i&&i.length){for(const n of i)this._directions.push(n);this._directions.sort()}}t.setValue(b.PET_ALLOWED_DIRECTIONS,this._directions)}}dispose(){this._selected&&this.object&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new es(es.OBJECT_REMOVED,this.object)),this._directions=null,this._reportedLocation=null}update(e){if(super.update(e),this._selected&&this.object&&this.eventDispatcher){const t=this.object.getLocation();(!this._reportedLocation||this._reportedLocation.x!==t.x||this._reportedLocation.y!==t.y||this._reportedLocation.z!==t.z)&&(this._reportedLocation||(this._reportedLocation=new M),this._reportedLocation.assign(t),this.eventDispatcher.dispatchEvent(new es(es.POSITION_CHANGED,this.object)))}this.object&&this.object.model&&this.updateModel(e,this.object.model)}updateModel(e,t){this._gestureEndTimestamp>0&&e>this._gestureEndTimestamp&&(t.setValue(b.FIGURE_GESTURE,null),this._gestureEndTimestamp=0),this._talkingEndTimestamp>0&&e>this._talkingEndTimestamp&&(t.setValue(b.FIGURE_TALK,0),this._talkingEndTimestamp=0),this._expressionEndTimestamp>0&&e>this._expressionEndTimestamp&&(t.setValue(b.FIGURE_EXPRESSION,0),this._expressionEndTimestamp=0)}processUpdateMessage(e){if(!e||!this.object)return;super.processUpdateMessage(e);const t=this.object&&this.object.model;if(t){if(e instanceof Mv){t.setValue(b.HEAD_DIRECTION,e.headDirection);return}if(e instanceof wv){const i=new Hv(e.figure);t.setValue(b.FIGURE,e.figure),t.setValue(b.RACE,e.subType),t.setValue(b.PET_PALETTE_INDEX,i.paletteId),t.setValue(b.PET_COLOR,i.color),t.setValue(b.PET_TYPE,i.typeId),t.setValue(b.PET_CUSTOM_LAYER_IDS,i.customLayerIds),t.setValue(b.PET_CUSTOM_PARTS_IDS,i.customPartIds),t.setValue(b.PET_CUSTOM_PALETTE_IDS,i.customPaletteIds),t.setValue(b.PET_IS_RIDING,e.isRiding?1:0);return}if(e instanceof jw){t.setValue(b.FIGURE_POSTURE,e.postureType);return}if(e instanceof Vw){t.setValue(b.FIGURE_TALK,1),this._talkingEndTimestamp=this.time+e.numberOfWords*1e3;return}if(e instanceof zw){t.setValue(b.FIGURE_SLEEP,e.isSleeping?1:0);return}if(e instanceof g5){t.setValue(b.FIGURE_GESTURE,e.gesture),this._gestureEndTimestamp=this.time+3e3;return}if(e instanceof Cv){this._selected=e.selected,this._reportedLocation=null;return}if(e instanceof u5){t.setValue(b.FIGURE_EXPERIENCE_TIMESTAMP,this.time),t.setValue(b.FIGURE_GAINED_EXPERIENCE,e.gainedExperience);return}}}mouseEvent(e,t){let i=null;switch(e.type){case ue.MOUSE_CLICK:i=Ee.CLICK;break;case ue.DOUBLE_CLICK:break;case ue.MOUSE_DOWN:{this.object.model.getValue(b.PET_TYPE)===U_.MONSTERPLANT&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new Ee(Ee.MOUSE_DOWN,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown));break}}i&&this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new Ee(i,this.object,e.eventId,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown))}}class C5{constructor(){this._width=0,this._height=0,this._wallHeight=0,this._fixedWallsHeight=0,this._tileMap=[],this._holeMap=[],this._doors=[],this._dimensions={minX:0,maxX:0,minY:0,maxY:0},this._restrictsDragging=!1,this._restrictedScale=1,this._restrictsScaling=!1}get width(){return this._width}set width(e){this._width=e}get height(){return this._height}set height(e){this._height=e}get wallHeight(){return this._wallHeight}set wallHeight(e){this._wallHeight=e}get fixedWallsHeight(){return this._fixedWallsHeight}set fixedWallsHeight(e){this._fixedWallsHeight=e}get tileMap(){return this._tileMap}get holeMap(){return this._holeMap}get doors(){return this._doors}get dimensions(){return this._dimensions}get restrictsDragging(){return this._restrictsDragging}set restrictsDragging(e){this._restrictsDragging=e}get restrictsScaling(){return this._restrictsScaling}set restrictsScaling(e){this._restrictsScaling=e}get restrictedScale(){return this._restrictedScale}set restrictedScale(e){this._restrictedScale=e}}const kE=class kE{constructor(e,t,i){this.type=e,this.loc=t,this.category=i}get loc(){return this._loc}set loc(e){this._loc||(this._loc=new M),this._loc.assign(e)}get type(){return this._type}set type(e){this._type=e}get category(){return this._category}set category(e){this._category=e}dispose(){this._loc=null}};kE.WINDOW="window",kE.HOLE="hole";let Vu=kE;class _ye{constructor(){this._masks=[]}get masks(){return this._masks}}class M5{constructor(){this._masks=new Map}get maskCount(){return this._masks.size}dispose(){this._masks&&(this.reset(),this._masks=null)}initialize(e){if(!e)return!1;if(this._masks.clear(),e.masks.length)for(const t of e.masks){if(!t)continue;const i=t.locations.length?t.locations[0]:null;i&&this._masks.set(t.id,new Vu(t.type,i,t.category))}return!0}reset(){for(const e of this._masks.values())e&&e.dispose();this._masks.clear()}addMask(e,t,i,n){const r=new Vu(t,i,n);this._masks.delete(e),this._masks.set(e,r)}removeMask(e){const t=this._masks.get(e);return t?(this._masks.delete(e),t.dispose(),!0):!1}getXML(){const e=new _ye;for(const[t,i]of this._masks.entries()){if(!i)continue;const n=this.getMaskType(i),r=this.getMaskCategory(i),a=this.getMaskLocation(i);if(n&&r&&a){const o={id:t,type:n,category:r,locations:[{x:a.x,y:a.y,z:a.z}]};e.masks.push(o)}}return e}getMaskLocation(e){return e?e.loc:null}getMaskType(e){return e?e.type:null}getMaskCategory(e){return e?e.category:null}get masks(){return this._masks}}class gye{constructor(e,t,i,n){this._leftSideLoc=0,this._rightSideLoc=0,this._leftSideLength=0,this._rightSideLength=0,this._leftSideLoc=e,this._rightSideLoc=t,this._leftSideLength=i,this._rightSideLength=n}get leftSideLoc(){return this._leftSideLoc}get rightSideLoc(){return this._rightSideLoc}get leftSideLength(){return this._leftSideLength}get rightSideLength(){return this._rightSideLength}}const nu=class nu{constructor(e,t,i,n,r){this._type=0,this._loc=null,this._leftSide=null,this._rightSide=null,this._normal=null,this._normalDirection=null;let a,o,l,u,c,h,f,d;if(this._secondaryNormals=[],this._masks=[],this._loc=new M,this._loc.assign(t),this._leftSide=new M,this._leftSide.assign(i),this._rightSide=new M,this._rightSide.assign(n),this._type=e,i!=null&&n!=null&&(this._normal=M.crossProduct(i,n),a=0,o=0,l=0,u=0,c=0,this.normal.x!=0||this.normal.y!=0?(u=this.normal.x,c=this.normal.y,a=360+Math.atan2(c,u)/Math.PI*180,a>=360&&(a=a-360),u=Math.sqrt(this.normal.x*this.normal.x+this.normal.y*this.normal.y),c=this.normal.z,o=360+Math.atan2(c,u)/Math.PI*180,o>=360&&(o=o-360)):this.normal.z<0?o=90:o=270,this._normalDirection=new M(a,o,l)),r!=null&&r.length>0)for(h=0;h<r.length;)f=r[h],f!=null&&f.length>0&&(d=new M,d.assign(f),d.multiply(1/d.length),this._secondaryNormals.push(d)),h++}get type(){return this._type}get loc(){return this._loc}get leftSide(){return this._leftSide}get rightSide(){return this._rightSide}get normal(){return this._normal}get normalDirection(){return this._normalDirection}get secondaryNormalCount(){return this._secondaryNormals.length}get maskCount(){return this._masks.length}getSecondaryNormal(e){if(e<0||e>=this.secondaryNormalCount)return null;const t=new M;return t.assign(this._secondaryNormals[e]),t}addMask(e,t,i,n){const r=new gye(e,t,i,n);this._masks.push(r)}getMask(e){return e<0||e>=this.maskCount?null:this._masks[e]}getMaskLeftSideLoc(e){const t=this.getMask(e);return t!=null?t.leftSideLoc:-1}getMaskRightSideLoc(e){const t=this.getMask(e);return t!=null?t.rightSideLoc:-1}getMaskLeftSideLength(e){const t=this.getMask(e);return t!=null?t.leftSideLength:-1}getMaskRightSideLength(e){const t=this.getMask(e);return t!=null?t.rightSideLength:-1}};nu.PLANE_UNDEFINED=0,nu.PLANE_FLOOR=1,nu.PLANE_WALL=2,nu.PLANE_LANDSCAPE=3,nu.PLANE_BILLBOARD=4;let Nt=nu;class pye{constructor(e,t,i,n){this._x=e,this._y=t,this._width=i,this._height=n}get x(){return this._x}get y(){return this._y}get width(){return this._width}get height(){return this._height}}const pc=class pc{constructor(){this._corners=[],this._endPoints=[],this._directions=[],this._lengths=[],this._leftTurns=[],this._borders=[],this._hideWalls=[],this._manuallyLeftCut=[],this._manuallyRightCut=[],this._addDuplicates=!1,this._count=0}addWall(e,t,i,n,r){(this._addDuplicates||this.checkIsNotDuplicate(e,t,i,n,r))&&(this._corners.push(e),this._directions.push(t),this._lengths.push(i),this._borders.push(n),this._leftTurns.push(r),this._hideWalls.push(!1),this._manuallyLeftCut.push(!1),this._manuallyRightCut.push(!1),this._count++)}checkIsNotDuplicate(e,t,i,n,r){let a=0;for(;a<this._count;){if(this._corners[a].x==e.x&&this._corners[a].y==e.y&&this._directions[a]==t&&this._lengths[a]==i&&this._borders[a]==n&&this._leftTurns[a]==r)return!1;a++}return!0}get count(){return this._count}getCorner(e){return this._corners[e]}getEndPoint(e){return this.calculateWallEndPoints(),this._endPoints[e]}getLength(e){return this._lengths[e]}getDirection(e){return this._directions[e]}getBorder(e){return this._borders[e]}getHideWall(e){return this._hideWalls[e]}getLeftTurn(e){return this._leftTurns[e]}getManuallyLeftCut(e){return this._manuallyLeftCut[e]}getManuallyRightCut(e){return this._manuallyRightCut[e]}setHideWall(e,t){this._hideWalls[e]=t}setLength(e,t){t<this._lengths[e]&&(this._lengths[e]=t,this._manuallyRightCut[e]=!0)}moveCorner(e,t){let i;if(t>0&&t<this._lengths[e]){const n=this._corners[e];i=pc.WALL_DIRECTION_VECTORS[this.getDirection(e)],this._corners[e]=new Q(n.x+t*i.x,n.y+t*i.y),this._lengths[e]=this._lengths[e]-t,this._manuallyLeftCut[e]=!0}}calculateWallEndPoints(){let e,t,i,n,r;if(this._endPoints.length!=this.count)for(this._endPoints=[],e=0;e<this.count;)t=this.getCorner(e),i=new Q(t.x,t.y),n=pc.WALL_DIRECTION_VECTORS[this.getDirection(e)],r=this.getLength(e),i.x=i.x+n.x*r,i.y=i.y+n.y*r,this._endPoints.push(i),e++}};pc.WALL_DIRECTION_VECTORS=[new M(1,0,0),new M(0,1,0),new M(-1,0,0),new M(0,-1,0)],pc.WALL_NORMAL_VECTORS=[new M(0,1,0),new M(-1,0,0),new M(0,-1,0),new M(1,0,0)];let cr=pc;const Be=class Be{constructor(){this._width=0,this._height=0,this._minX=0,this._maxX=0,this._minY=0,this._maxY=0,this._fixedWallHeight=-1,this._floorHeight=0,this._restrictsScaling=!1,this._restrictedScale=1,this._tileMatrix=[],this._tileMatrixOriginal=[],this._planes=[],this._floorHoleMatrix=[],this._wallHeight=3.6,this._wallThicknessMultiplier=1,this._floorThicknessMultiplier=1,this._floorHoles=new Map}static getFloorHeight(e){const t=e.length;if(!t)return 0;let i=0,n=0;for(;n<t;){const r=e[n];let a=0;for(;a<r.length;){const o=r[a];o>i&&(i=o),a++}n++}return i}static findEntranceTile(e){if(!e)return null;const t=e.length;if(!t)return null;const i=[];let n=0;for(;n<t;){const r=e[n];if(!r||!r.length)return null;let a=0;for(;a<r.length;){if(r[a]>=0){i.push(a);break}a++}i.length<n+1&&i.push(r.length+1),n++}for(n=1;n<i.length-1;){if(Math.trunc(i[n])<=Math.trunc(i[n-1])-1&&Math.trunc(i[n])<=Math.trunc(i[n+1])-1)return new Q(Math.trunc(i[n]|0),n);n++}return null}static expandFloorTiles(e){let t,i,n,r,a,o,l,u,c,h,f,d;const _=e.length,g=e[0].length,p=[];for(i=0;i<_*4;)p[i]=[],i++;let m=0;for(i=0;i<_;){for(a=0,t=0;t<g;){if(o=e[i][t],o<0||o<=255)for(r=0;r<4;){for(n=0;n<4;)p[m+r]===void 0&&(p[m+r]=[]),p[m+r][a+n]=o<0?o:o*4,n++;r++}else{for(l=(o&255)*4,u=l+(o>>11&1)*3,c=l+(o>>10&1)*3,h=l+(o>>9&1)*3,f=l+(o>>8&1)*3,n=0;n<3;)d=n+1,p[m][a+n]=(u*(3-n)+c*n)/3,p[m+3][a+d]=(h*(3-d)+f*d)/3,p[m+d][a]=(u*(3-d)+h*d)/3,p[m+n][a+3]=(c*(3-n)+f*n)/3,n++;p[m+1][a+1]=u>l?l+2:l+1,p[m+1][a+2]=c>l?l+2:l+1,p[m+2][a+1]=h>l?l+2:l+1,p[m+2][a+2]=f>l?l+2:l+1}a=a+4,t++}m=m+4,i++}return p}static addTileTypes(e){let t,i,n,r,a,o,l,u,c,h,f,d,_;const g=e.length-1,p=e[0].length-1;for(i=1;i<g;){for(t=1;t<p;)n=e[i][t],n<0||(r=e[i-1][t-1]&255,a=e[i-1][t]&255,o=e[i-1][t+1]&255,l=e[i][t-1]&255,u=e[i][t+1]&255,c=e[i+1][t-1]&255,h=e[i+1][t]&255,f=e[i+1][t+1]&255,d=n+1,_=(r==d||a==d||l==d?8:0)|(o==d||a==d||u==d?4:0)|(c==d||h==d||l==d?2:0)|(f==d||h==d||u==d?1:0),_==15&&(_=0),e[i][t]=n|_<<8),t++;i++}}static unpadHeightMap(e){e.shift(),e.pop();for(const t of e)t.shift(),t.pop()}static padHeightMap(e){const t=[],i=[];for(const n of e)n.push(Be.TILE_BLOCKED),n.unshift(Be.TILE_BLOCKED);for(const n of e[0])t.push(Be.TILE_BLOCKED),i.push(Be.TILE_BLOCKED);e.push(i),e.unshift(t)}get minX(){return this._minX}get maxX(){return this._maxX}get minY(){return this._minY}get maxY(){return this._maxY}get tileMapWidth(){return this._width}get tileMapHeight(){return this._height}get planeCount(){return this._planes.length}get floorHeight(){return this._fixedWallHeight!=-1?this._fixedWallHeight:this._floorHeight}get wallHeight(){return this._fixedWallHeight!=-1?this._fixedWallHeight+3.6:this._wallHeight}set wallHeight(e){e<0&&(e=0),this._wallHeight=e}get wallThicknessMultiplier(){return this._wallThicknessMultiplier}set wallThicknessMultiplier(e){e<0&&(e=0),this._wallThicknessMultiplier=e}get floorThicknessMultiplier(){return this._floorThicknessMultiplier}set floorThicknessMultiplier(e){e<0&&(e=0),this._floorThicknessMultiplier=e}dispose(){this._planes=null,this._tileMatrix=null,this._tileMatrixOriginal=null,this._floorHoleMatrix=null,this._floorHoles!=null&&(this._floorHoles.clear(),this._floorHoles=null)}reset(){this._planes=[],this._tileMatrix=[],this._tileMatrixOriginal=[],this._width=0,this._height=0,this._minX=0,this._maxX=0,this._minY=0,this._maxY=0,this._floorHeight=0,this._floorHoleMatrix=[]}initializeTileMap(e,t){e<0&&(e=0),t<0&&(t=0),this._tileMatrix=[],this._tileMatrixOriginal=[],this._floorHoleMatrix=[];let i=0;for(;i<t;){const n=[],r=[],a=[];let o=0;for(;o<e;)n[o]=Be.TILE_BLOCKED,r[o]=Be.TILE_BLOCKED,a[o]=!1,o++;this._tileMatrix.push(n),this._tileMatrixOriginal.push(r),this._floorHoleMatrix.push(a),i++}return this._width=e,this._height=t,this._minX=this._width,this._maxX=-1,this._minY=this._height,this._maxY=-1,!0}setTileHeight(e,t,i){let n,r,a,o,l;if(e>=0&&e<this._width&&t>=0&&t<this._height){if(n=this._tileMatrix[t],n[e]=i,i>=0)e<this._minX&&(this._minX=e),e>this._maxX&&(this._maxX=e),t<this._minY&&(this._minY=t),t>this._maxY&&(this._maxY=t);else{if(e==this._minX||e==this._maxX){for(r=!1,a=this._minY;a<this._maxY;){if(this.getTileHeightInternal(e,a)>=0){r=!0;break}a++}r||(e==this._minX&&this._minX++,e==this._maxX&&this._maxX--)}if(t==this._minY||t==this._maxY){for(o=!1,l=this._minX;l<this._maxX;){if(this.getTileHeight(l,t)>=0){o=!0;break}l++}o||(t==this._minY&&this._minY++,t==this._maxY&&this._maxY--)}}return!0}return!1}getTileHeight(e,t){if(e<0||e>=this._width||t<0||t>=this._height)return Be.TILE_BLOCKED;const i=this._tileMatrix[t];return i[e]===void 0?0:Math.abs(i[e])}getTileHeightOriginal(e,t){return e<0||e>=this._width||t<0||t>=this._height?Be.TILE_BLOCKED:this._floorHoleMatrix[t][e]?Be.TILE_HOLE:this._tileMatrixOriginal[t][e]}getTileHeightInternal(e,t){return e<0||e>=this._width||t<0||t>=this._height?Be.TILE_BLOCKED:this._tileMatrix[t][e]}initializeFromTileData(e=-1){let t,i;for(this._fixedWallHeight=e,i=0;i<this._height;){for(t=0;t<this._width;)this._tileMatrixOriginal[i]===void 0&&(this._tileMatrixOriginal[i]=[]),this._tileMatrixOriginal[i][t]=this._tileMatrix[i][t],t++;i++}const n=Be.findEntranceTile(this._tileMatrix);for(i=0;i<this._height;){for(t=0;t<this._width;)this._floorHoleMatrix[i]===void 0&&(this._floorHoleMatrix[i]=[]),this._floorHoleMatrix[i][t]&&this.setTileHeight(t,i,Be.TILE_HOLE),t++;i++}return this.initialize(n)}initialize(e){let t=0;e!=null&&(t=this.getTileHeight(e.x,e.y),this.setTileHeight(e.x,e.y,Be.TILE_BLOCKED)),this._floorHeight=Be.getFloorHeight(this._tileMatrix),this.createWallPlanes();const i=[];for(const r of this._tileMatrix)i.push(r.concat());Be.padHeightMap(i),Be.addTileTypes(i),Be.unpadHeightMap(i);const n=Be.expandFloorTiles(i);return this.extractPlanes(n),e!=null&&(this.setTileHeight(e.x,e.y,t),this.addFloor(new M(e.x+.5,e.y+.5,t),new M(-1,0,0),new M(0,-1,0),!1,!1,!1,!1)),!0}generateWallData(e,t){let i,n,r,a,o;const l=new cr,u=[this.extractTopWall.bind(this),this.extractRightWall.bind(this),this.extractBottomWall.bind(this),this.extractLeftWall.bind(this)];let c=0,h=new Q(e.x,e.y),f=0;for(;f++<1e3;){if(i=!1,n=!1,r=c,(h.x<this.minX||h.x>this.maxX||h.y<this.minY||h.y>this.maxY)&&(i=!0),a=u[c](h,t),a==null)return null;if(o=Math.abs(a.x-h.x)+Math.abs(a.y-h.y),h.x==a.x||h.y==a.y?(c=(c-1+u.length)%u.length,o=o+1,n=!0):(c=(c+1)%u.length,o--),l.addWall(h,r,o,i,n),a.x==e.x&&a.y==e.y&&(a.x!=h.x||a.y!=h.y))break;h=a}return l.count==0?null:l}hidePeninsulaWallChains(e){let t,i,n,r,a=0;const o=e.count;for(;a<o;){const l=a;for(t=a,i=0,n=!1;!e.getBorder(a)&&a<o;)e.getLeftTurn(a)?i++:i>0&&i--,i>1&&(n=!0),t=a,a++;if(n)for(r=l;r<=t;)e.setHideWall(r,!0),r++;a++}}updateWallsNextToHoles(e){let t,i,n,r,a,o,l;const u=e.count;let c=0;for(;c<u;){if(!e.getHideWall(c)){for(t=e.getCorner(c),i=e.getDirection(c),n=e.getLength(c),r=cr.WALL_DIRECTION_VECTORS[i],a=cr.WALL_NORMAL_VECTORS[i],o=0,l=0;l<n;){if(this.getTileHeightInternal(t.x+l*r.x-a.x,t.y+l*r.y-a.y)==Be.TILE_HOLE){if(l>0&&o==0){e.setLength(c,l);break}o++}else if(o>0){e.moveCorner(c,o);break}l++}o==n&&e.setHideWall(c,!0)}c++}}resolveOriginalWallIndex(e,t,i){let n,r,a,o,l,u;const c=Math.min(e.y,t.y),h=Math.max(e.y,t.y),f=Math.min(e.x,t.x),d=Math.max(e.x,t.x),_=i.count;let g=0;for(;g<_;){if(n=i.getCorner(g),r=i.getEndPoint(g),e.x==t.x){if(n.x==e.x&&r.x==e.x&&(a=Math.min(n.y,r.y),o=Math.max(n.y,r.y),a<=c&&h<=o))return g}else if(e.y==t.y&&n.y==e.y&&r.y==e.y&&(l=Math.min(n.x,r.x),u=Math.max(n.x,r.x),l<=f&&d<=u))return g;g++}return-1}hideOriginallyHiddenWalls(e,t){let i,n,r,a,o;const l=e.count;let u=0;for(;u<l;)e.getHideWall(u)||(i=e.getCorner(u),n=new Q(i.x,i.y),r=cr.WALL_DIRECTION_VECTORS[e.getDirection(u)],a=e.getLength(u),n.x=n.x+r.x*a,n.y=n.y+r.y*a,o=this.resolveOriginalWallIndex(i,n,t),o>=0?t.getHideWall(o)&&e.setHideWall(u,!0):e.setHideWall(u,!0)),u++}checkWallHiding(e,t){this.hidePeninsulaWallChains(t),this.updateWallsNextToHoles(e),this.hideOriginallyHiddenWalls(e,t)}addWalls(e,t){const i=e.count,n=t.count;let r=0;for(;r<i;){if(!e.getHideWall(r)){const a=e.getCorner(r),o=e.getDirection(r),l=e.getLength(r),u=cr.WALL_DIRECTION_VECTORS[o],c=cr.WALL_NORMAL_VECTORS[o];let h=-1,f=0;for(;f<l;){const L=this.getTileHeightInternal(a.x+f*u.x+c.x,a.y+f*u.y+c.y);L>=0&&(L<h||h<0)&&(h=L),f++}const d=h;let _=new M(a.x,a.y,d);_=M.sum(_,M.product(c,.5)),_=M.sum(_,M.product(u,-.5));const g=this.wallHeight+Math.min(Be.MAX_WALL_ADDITIONAL_HEIGHT,this.floorHeight)-h,p=M.product(u,-l),m=new M(0,0,g);_=M.dif(_,p);const v=this.resolveOriginalWallIndex(a,e.getEndPoint(r),t);let E=0,y=0;v>=0?(E=t.getDirection((v+1)%n),y=t.getDirection((v-1+n)%n)):(E=e.getDirection((r+1)%i),y=e.getDirection((r-1+i)%i));let T=null;(E-o+4)%4==3?T=cr.WALL_NORMAL_VECTORS[E]:(o-y+4)%4==3&&(T=cr.WALL_NORMAL_VECTORS[y]);const w=e.getLeftTurn(r),C=e.getLeftTurn((r-1+i)%i),N=e.getHideWall((r+1)%i),P=e.getManuallyLeftCut(r),k=e.getManuallyRightCut(r);this.addWall(_,p,m,T,!C||P,!w||k,!N)}r++}}createWallPlanes(){const e=this._tileMatrix;if(e==null)return!1;let t,i,n;const r=e.length;let a=0;if(r==0)return!1;for(t=0;t<r;){if(n=e[t],n==null||n.length==0)return!1;a>0?a=Math.min(a,n.length):a=n.length,t++}const o=Math.min(Be.MAX_WALL_ADDITIONAL_HEIGHT,this._fixedWallHeight!=-1?this._fixedWallHeight:Be.getFloorHeight(e)),l=this.minX;let u=this.minY;for(u=this.minY;u<=this.maxY;){if(this.getTileHeightInternal(l,u)>Be.TILE_HOLE){u--;break}u++}if(u>this.maxY)return!1;const c=new Q(l,u),h=this.generateWallData(c,!0),f=this.generateWallData(c,!1);for(h!=null&&(h.count,f.count,this.checkWallHiding(h,f),this.addWalls(h,f)),i=0;i<this.tileMapHeight;){for(t=0;t<this.tileMapWidth;)this.getTileHeightInternal(t,i)<0&&this.setTileHeight(t,i,-(o+this.wallHeight)),t++;i++}return!0}extractTopWall(e,t){if(e==null)return null;let i=1,n=Be.TILE_HOLE;for(t||(n=Be.TILE_BLOCKED);i<1e3;){if(this.getTileHeightInternal(e.x+i,e.y)>n)return new Q(e.x+i-1,e.y);if(this.getTileHeightInternal(e.x+i,e.y+1)<=n)return new Q(e.x+i,e.y+1);i++}return null}extractRightWall(e,t){if(e==null)return null;let i=1,n=Be.TILE_HOLE;for(t||(n=Be.TILE_BLOCKED);i<1e3;){if(this.getTileHeightInternal(e.x,e.y+i)>n)return new Q(e.x,e.y+(i-1));if(this.getTileHeightInternal(e.x-1,e.y+i)<=n)return new Q(e.x-1,e.y+i);i++}return null}extractBottomWall(e,t){if(e==null)return null;let i=1,n=Be.TILE_HOLE;for(t||(n=Be.TILE_BLOCKED);i<1e3;){if(this.getTileHeightInternal(e.x-i,e.y)>n)return new Q(e.x-(i-1),e.y);if(this.getTileHeightInternal(e.x-i,e.y-1)<=n)return new Q(e.x-i,e.y-1);i++}return null}extractLeftWall(e,t){if(e==null)return null;let i=1,n=Be.TILE_HOLE;for(t||(n=Be.TILE_BLOCKED);i<1e3;){if(this.getTileHeightInternal(e.x,e.y-i)>n)return new Q(e.x,e.y-(i-1));if(this.getTileHeightInternal(e.x+1,e.y-i)<=n)return new Q(e.x+1,e.y-i);i++}return null}addWall(e,t,i,n,r,a,o){this.addPlane(Nt.PLANE_WALL,e,t,i,[n]),this.addPlane(Nt.PLANE_LANDSCAPE,e,t,i,[n]);const l=Be.WALL_THICKNESS*this._wallThicknessMultiplier,u=Be.FLOOR_THICKNESS*this._floorThicknessMultiplier,c=M.crossProduct(t,i),h=M.product(c,1/c.length*-l);if(this.addPlane(Nt.PLANE_WALL,M.sum(e,i),t,h,[c,n]),r&&this.addPlane(Nt.PLANE_WALL,M.sum(M.sum(e,t),i),M.product(i,-(i.length+u)/i.length),h,[c,n]),a&&(this.addPlane(Nt.PLANE_WALL,M.sum(e,M.product(i,-u/i.length)),M.product(i,(i.length+u)/i.length),h,[c,n]),o)){const f=M.product(t,l/t.length);this.addPlane(Nt.PLANE_WALL,M.sum(M.sum(e,i),M.product(f,-1)),f,h,[c,t,n])}}addFloor(e,t,i,n,r,a,o){let l,u,c;this.addPlane(Nt.PLANE_FLOOR,e,t,i)!=null&&(l=Be.FLOOR_THICKNESS*this._floorThicknessMultiplier,u=new M(0,0,l),c=M.dif(e,u),a&&this.addPlane(Nt.PLANE_FLOOR,c,t,u),o&&this.addPlane(Nt.PLANE_FLOOR,M.sum(c,M.sum(t,i)),M.product(t,-1),u),n&&this.addPlane(Nt.PLANE_FLOOR,M.sum(c,i),M.product(i,-1),u),r&&this.addPlane(Nt.PLANE_FLOOR,M.sum(c,t),i,u))}initializeFromMapData(e){if(!e)return!1;this.reset(),this.resetFloorHoles();const t=e.width,i=e.height,n=e.wallHeight,r=e.fixedWallsHeight;if(this.initializeTileMap(t,i),e.tileMap){let a=0;for(;a<e.tileMap.length;){const o=e.tileMap[a];if(o){let l=0;for(;l<o.length;){const u=o[l];u&&this.setTileHeight(l,a,u.height),l++}}a++}}if(e.holeMap&&e.holeMap.length){let a=0;for(;a<e.holeMap.length;){const o=e.holeMap[a];o&&(this.addFloorHole(o.id,o.x,o.y,o.width,o.height),a++)}this.initializeHoleMap()}return this.wallHeight=n,this.restrictsDragging=e.restrictsDragging,this.restrictsScaling=e.restrictsScaling,this.restrictedScale=e.restrictedScale,this.initializeFromTileData(r),!0}addPlane(e,t,i,n,r=null){if(i.length==0||n.length==0)return null;const a=new Nt(e,t,i,n,r);return this._planes.push(a),a}getMapData(){const e=new C5;e.width=this._width,e.height=this._height,e.wallHeight=this._wallHeight,e.fixedWallsHeight=this._fixedWallHeight,e.dimensions.minX=this.minX,e.dimensions.maxX=this.maxX,e.dimensions.minY=this.minY,e.dimensions.maxY=this.maxY,e.restrictsDragging=this.restrictsDragging,e.restrictsScaling=this.restrictsScaling,e.restrictedScale=this.restrictedScale;let t=0;for(;t<this._height;){const i=[],n=this._tileMatrixOriginal[t];let r=0;for(;r<this._width;){const a=n[r];i.push({height:a}),r++}e.tileMap.push(i),t++}for(const[i,n]of this._floorHoles.entries())n&&e.holeMap.push({id:i,x:n.x,y:n.y,width:n.width,height:n.height});return e}getPlaneLocation(e){if(e<0||e>=this.planeCount)return null;const t=this._planes[e];return t?t.loc:null}getPlaneNormal(e){if(e<0||e>=this.planeCount)return null;const t=this._planes[e];return t?t.normal:null}getPlaneLeftSide(e){if(e<0||e>=this.planeCount)return null;const t=this._planes[e];return t?t.leftSide:null}getPlaneRightSide(e){if(e<0||e>=this.planeCount)return null;const t=this._planes[e];return t?t.rightSide:null}getPlaneNormalDirection(e){if(e<0||e>=this.planeCount)return null;const t=this._planes[e];return t?t.normalDirection:null}getPlaneSecondaryNormals(e){let t,i;if(e<0||e>=this.planeCount)return null;const n=this._planes[e];if(n!=null){for(t=[],i=0;i<n.secondaryNormalCount;)t.push(n.getSecondaryNormal(i)),i++;return t}return null}getPlaneType(e){if(e<0||e>=this.planeCount)return Nt.PLANE_UNDEFINED;const t=this._planes[e];return t?t.type:Nt.PLANE_UNDEFINED}getPlaneMaskCount(e){if(e<0||e>=this.planeCount)return 0;const t=this._planes[e];return t?t.maskCount:0}getPlaneMaskLeftSideLoc(e,t){if(e<0||e>=this.planeCount)return-1;const i=this._planes[e];return i?i.getMaskLeftSideLoc(t):-1}getPlaneMaskRightSideLoc(e,t){if(e<0||e>=this.planeCount)return-1;const i=this._planes[e];return i?i.getMaskRightSideLoc(t):-1}getPlaneMaskLeftSideLength(e,t){if(e<0||e>=this.planeCount)return-1;const i=this._planes[e];return i?i.getMaskLeftSideLength(t):-1}getPlaneMaskRightSideLength(e,t){if(e<0||e>=this.planeCount)return-1;const i=this._planes[e];return i?i.getMaskRightSideLength(t):-1}addFloorHole(e,t,i,n,r){this.removeFloorHole(e),this._floorHoles.set(e,new pye(t,i,n,r))}removeFloorHole(e){this._floorHoles.delete(e)}resetFloorHoles(){this._floorHoles.clear()}initializeHoleMap(){let e,t,i,n,r,a,o,l;for(t=0;t<this._height;){for(i=this._floorHoleMatrix[t],e=0;e<this._width;)i[e]=!1,e++;t++}for(const u of this._floorHoles.values())if(n=u,n!=null)for(r=n.x,a=n.x+n.width-1,o=n.y,l=n.y+n.height-1,r=r<0?0:r,a=a>=this._width?this._width-1:a,o=o<0?0:o,l=l>=this._height?this._height-1:l,t=o;t<=l;){for(i=this._floorHoleMatrix[t],e=r;e<=a;)i[e]=!0,e++;t++}}extractPlanes(e){let t,i,n,r,a,o,l,u,c,h,f,d,_,g,p;const m=e.length,v=e[0].length,E=[];let y=0;for(;y<m;)E[y]=[],y++;let T=0;for(;T<m;){for(t=0;t<v;){if(i=e[T][t],!(i<0||E[T][t])){for(a=t==0||e[T][t-1]!=i,o=T==0||e[T-1][t]!=i,n=t+1;n<v&&!(e[T][n]!=i||E[T][n]||T>0&&e[T-1][n]==i==o);)n++;for(l=n==v||e[T][n]!=i,f=!1,r=T+1;r<m&&!f;){for(u=e[r][t]!=i,f=u||t>0&&e[r][t-1]==i==a||n<v&&e[r][n]==i==l,c=t;c<n;){if(e[r][c]==i==u){f=!0,n=c;break}c++}if(f)break;r++}for(u=u||r==m,l=n==v||e[T][n]!=i,h=T;h<r;){for(c=t;c<n;)E[h][c]=!0,c++;h++}d=t/4-.5,_=T/4-.5,g=(n-t)/4,p=(r-T)/4,this.addFloor(new M(d+g,_+p,i/4),new M(-g,0,0),new M(0,-p,0),l,a,u,o)}t++}T++}}get restrictsDragging(){return this._restrictsDragging}set restrictsDragging(e){this._restrictsDragging=e}get restrictsScaling(){return this._restrictsScaling}set restrictsScaling(e){this._restrictsScaling=e}get restrictedScale(){return this._restrictedScale}set restrictedScale(e){this._restrictedScale=e}};Be.FLOOR_THICKNESS=.25,Be.WALL_THICKNESS=.25,Be.MAX_WALL_ADDITIONAL_HEIGHT=20,Be.TILE_BLOCKED=-110,Be.TILE_HOLE=-100;let ri=Be;class mye extends I0{constructor(){super(),this._planeParser=new ri,this._planeBitmapMaskParser=new M5,this._color=16777215,this._light=255,this._originalColor=16777215,this._originalLight=255,this._targetColor=16777215,this._targetLight=255,this._colorChangedTime=0,this._colorTransitionLength=1500,this._lastHoleUpdate=0,this._needsMapUpdate=!1,this._skipColorTransition=!1}getEventTypes(){const e=[Ee.MOUSE_MOVE,Ee.CLICK];return this.mergeTypes(super.getEventTypes(),e)}dispose(){super.dispose(),this._planeParser&&(this._planeParser.dispose(),this._planeParser=null),this._planeBitmapMaskParser&&(this._planeBitmapMaskParser.dispose(),this._planeBitmapMaskParser=null)}initialize(e){!e||!this.object||e instanceof C5&&this._planeParser.initializeFromMapData(e)&&(this.object.model.setValue(b.ROOM_MAP_DATA,e),this.object.model.setValue(b.ROOM_BACKGROUND_COLOR,16777215),this.object.model.setValue(b.ROOM_FLOOR_VISIBILITY,1),this.object.model.setValue(b.ROOM_WALL_VISIBILITY,1),this.object.model.setValue(b.ROOM_LANDSCAPE_VISIBILITY,1),this._skipColorTransition=Te.getValue("room.color.skip.transition")===!0)}update(e){if(super.update(e),this.updateBackgroundColor(e),this._needsMapUpdate){if(this._lastHoleUpdate&&e-this._lastHoleUpdate<5)return;const t=this.object&&this.object.model;if(t){const i=this._planeParser.getMapData();t.setValue(b.ROOM_MAP_DATA,i),t.setValue(b.ROOM_FLOOR_HOLE_UPDATE_TIME,e),this._planeParser.initializeFromMapData(i)}this._lastHoleUpdate=0,this._needsMapUpdate=!1}}updateBackgroundColor(e){if(!this.object||!this._colorChangedTime)return;let t=this._color,i=this._light;if(e-this._colorChangedTime>=this._colorTransitionLength)t=this._targetColor,i=this._targetLight,this._colorChangedTime=0;else{let r=this._originalColor>>16&255,a=this._originalColor>>8&255,o=this._originalColor&255;const l=this._targetColor>>16&255,u=this._targetColor>>8&255,c=this._targetColor&255,h=(e-this._colorChangedTime)/this._colorTransitionLength;r=r+(l-r)*h,a=a+(u-a)*h,o=o+(c-o)*h,t=(r<<16)+(a<<8)+o,i=this._originalLight+(this._targetLight-this._originalLight)*h,this._color=t,this._light=i}let n=z_.rgbToHSL(t);n=(n&16776960)+i,t=z_.hslToRGB(n),this.object.model&&this.object.model.setValue(b.ROOM_BACKGROUND_COLOR,t)}processUpdateMessage(e){if(!e||!this.object)return;const t=this.object.model;if(t){if(e instanceof bi){this.onObjectRoomUpdateMessage(e,t);return}if(e instanceof $i){this.onObjectRoomMaskUpdateMessage(e,t);return}if(e instanceof Ca){this.onObjectRoomPlaneVisibilityUpdateMessage(e,t);return}if(e instanceof wa){this.onObjectRoomPlanePropertyUpdateMessage(e,t);return}if(e instanceof Oa){this.onObjectRoomFloorHoleUpdateMessage(e,t);return}if(e instanceof q_){this.onObjectRoomColorUpdateMessage(e,t);return}e instanceof Nv&&this.onObjectRoomMapUpdateMessage(e)}}onObjectRoomUpdateMessage(e,t){switch(e.type){case bi.ROOM_FLOOR_UPDATE:t.setValue(b.ROOM_FLOOR_TYPE,e.value);return;case bi.ROOM_WALL_UPDATE:t.setValue(b.ROOM_WALL_TYPE,e.value);return;case bi.ROOM_LANDSCAPE_UPDATE:t.setValue(b.ROOM_LANDSCAPE_TYPE,e.value);return}}onObjectRoomMaskUpdateMessage(e,t){let i=null,n=!1;switch(e.type){case $i.ADD_MASK:i=Vu.WINDOW,e.maskCategory===$i.HOLE&&(i=Vu.HOLE),this._planeBitmapMaskParser.addMask(e.maskId,e.maskType,e.maskLocation,i),n=!0;break;case $i.REMOVE_MASK:n=this._planeBitmapMaskParser.removeMask(e.maskId);break}n&&t.setValue(b.ROOM_PLANE_MASK_XML,this._planeBitmapMaskParser.getXML())}onObjectRoomPlaneVisibilityUpdateMessage(e,t){let i=0;switch(e.visible&&(i=1),e.type){case Ca.FLOOR_VISIBILITY:t.setValue(b.ROOM_FLOOR_VISIBILITY,i);return;case Ca.WALL_VISIBILITY:t.setValue(b.ROOM_WALL_VISIBILITY,i),t.setValue(b.ROOM_LANDSCAPE_VISIBILITY,i);return}}onObjectRoomPlanePropertyUpdateMessage(e,t){switch(e.type){case wa.FLOOR_THICKNESS:t.setValue(b.ROOM_FLOOR_THICKNESS,e.value);return;case wa.WALL_THICKNESS:t.setValue(b.ROOM_WALL_THICKNESS,e.value);return}}onObjectRoomFloorHoleUpdateMessage(e,t){switch(e.type){case Oa.ADD:this._planeParser.addFloorHole(e.id,e.x,e.y,e.width,e.height),this._needsMapUpdate=!0;return;case Oa.REMOVE:this._planeParser.removeFloorHole(e.id),this._needsMapUpdate=!0;return}this._lastHoleUpdate=this.time}onObjectRoomColorUpdateMessage(e,t){!e||!t||(this._originalColor=this._color,this._originalLight=this._light,this._targetColor=e.color,this._targetLight=e.light,this._colorChangedTime=this.time,this._skipColorTransition?this._colorTransitionLength=0:this._colorTransitionLength=1500,t.setValue(b.ROOM_COLORIZE_BG_ONLY,e.backgroundOnly))}onObjectRoomMapUpdateMessage(e){!e||!e.mapData||(this.object.model.setValue(b.ROOM_MAP_DATA,e.mapData),this.object.model.setValue(b.ROOM_FLOOR_HOLE_UPDATE_TIME,this.time),this._planeParser.initializeFromMapData(e.mapData))}mouseEvent(e,t){if(!e||!t||!this.object||!this.object.model)return;const i=e.spriteTag;let n=0;if(i&&i.indexOf("@")>=0&&(n=parseInt(i.substr(i.indexOf("@")+1))),n<1||n>this._planeParser.planeCount){e.type===ue.ROLL_OUT&&this.object.model.setValue(b.ROOM_SELECTED_PLANE,0);return}n--;let r=null;const a=this._planeParser.getPlaneLocation(n),o=this._planeParser.getPlaneLeftSide(n),l=this._planeParser.getPlaneRightSide(n),u=this._planeParser.getPlaneNormalDirection(n),c=this._planeParser.getPlaneType(n);if(a==null||o==null||l==null||u==null)return;const h=o.length,f=l.length;if(h==0||f==0)return;const d=e.screenX,_=e.screenY,g=new Q(d,_);if(r=t.getPlanePosition(g,a,o,l),!r){this.object.model.setValue(b.ROOM_SELECTED_PLANE,0);return}const p=M.product(o,r.x/h);p.add(M.product(l,r.y/f)),p.add(a);const m=p.x,v=p.y,E=p.z;if(r.x>=0&&r.x<h&&r.y>=0&&r.y<f)this.object.model.setValue(b.ROOM_SELECTED_X,m),this.object.model.setValue(b.ROOM_SELECTED_Y,v),this.object.model.setValue(b.ROOM_SELECTED_Z,E),this.object.model.setValue(b.ROOM_SELECTED_PLANE,n+1);else{this.object.model.setValue(b.ROOM_SELECTED_PLANE,0);return}let y=null;switch(e.type===ue.MOUSE_MOVE||e.type===ue.ROLL_OVER?y=Ee.MOUSE_MOVE:e.type===ue.MOUSE_CLICK&&(y=Ee.CLICK),e.type){case ue.MOUSE_MOVE:case ue.ROLL_OVER:case ue.MOUSE_CLICK:{let T=null;if(c===Nt.PLANE_FLOOR)T=new Qr(y,this.object,e.eventId,m,v,E,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown);else if(c===Nt.PLANE_WALL||c===Nt.PLANE_LANDSCAPE){let w=90;u&&(w=u.x+90,w>360&&(w-=360));const C=o.length*r.x/h,N=l.length*r.y/f;T=new hh(y,this.object,e.eventId,a,o,l,C,N,w,e.altKey,e.ctrlKey,e.shiftKey,e.buttonDown)}this.eventDispatcher&&this.eventDispatcher.dispatchEvent(T);return}}}}class vye extends I0{initialize(e){this.object&&(this.object.model.setValue(b.FURNITURE_ALPHA_MULTIPLIER,1),this.object.setState(1,0))}processUpdateMessage(e){if(super.processUpdateMessage(e),e instanceof Ma&&this.object)switch(e.type){case Ma.ENABLED:this.object.setState(0,0);return;case Ma.DISABLED:this.object.setState(1,0);return}}}const yr=class yr extends I0{constructor(){super(),this._lastEventId=null,this._isHidden=!1}initialize(e){this.object&&(this.object.model.setValue(b.FURNITURE_ALPHA_MULTIPLIER,1),this.object.setState(yr.CURSOR_HIDDEN_STATE,0))}processUpdateMessage(e){e instanceof ch&&(this._lastEventId&&this._lastEventId===e.sourceEventId||(e.toggleVisibility&&(this._isHidden=!this._isHidden),super.processUpdateMessage(e),this.object&&(this._isHidden?this.object.setState(yr.CURSOR_HIDDEN_STATE,0):e.visible?(this.object.model.setValue(b.TILE_CURSOR_HEIGHT,e.height),this.object.setState(e.height>.8?yr.CURSOR_HEIGHT_STATE:yr.CURSOR_VISIBLE_STATE)):this.object.setState(yr.CURSOR_HIDDEN_STATE,0)),this._lastEventId=e.sourceEventId))}};yr.CURSOR_VISIBLE_STATE=0,yr.CURSOR_HIDDEN_STATE=1,yr.CURSOR_HEIGHT_STATE=6;let jb=yr;class N5{constructor(e,t,i){this._id=e,this._type=t,this._visualization=i}dispose(){this._visualization=null}update(e,t){}animate(e){return!1}get id(){return this._id}get type(){return this._type}get visualization(){return this._visualization}}const Os=class Os extends N5{constructor(e,t,i){super(e,t,i),this._asset=null,this._startTime=Pe(),this._delta=0,this._offsetY=0,this._scale=0,this._state=0}update(e,t){if(!e)return;this._scale=t;let i=64,n=0;if(t<48?(this._asset=this.visualization.getAvatarRenderAsset("avatar_addition_user_blowkiss_small"),this.visualization.angle===90||this.visualization.angle===270?n=0:this.visualization.angle===135||this.visualization.angle===180||this.visualization.angle===225?n=6:n=-6,this._offsetY=-38,i=32):(this._asset=this.visualization.getAvatarRenderAsset("avatar_addition_user_blowkiss"),this.visualization.angle===90||this.visualization.angle===270?n=-3:this.visualization.angle===135||this.visualization.angle===180||this.visualization.angle===225?n=22:n=-30,this._offsetY=-70),this.visualization.posture===oe.POSTURE_SIT?this._offsetY+=i/2:this.visualization.posture===oe.POSTURE_LAY&&(this._offsetY+=i),this._asset){e.texture=this._asset,e.offsetX=n,e.offsetY=this._offsetY,e.relativeDepth=-.02,e.alpha=0;const r=this._delta;this.animate(e),this._delta=r}}animate(e){if(!e)return!1;if(this._asset&&(e.texture=this._asset),this._state===Os.STATE_DELAY)return Pe()-this._startTime<Os.DELAY_BEFORE_ANIMATION?!1:(this._state=Os.STATE_FADE_IN,e.alpha=0,e.visible=!0,this._delta=0,!0);if(this._state===Os.STATE_FADE_IN)return this._delta+=.1,e.offsetY=this._offsetY,e.alpha=Math.pow(this._delta,.9)*255,this._delta>=1&&(e.alpha=255,this._delta=0,this._state=Os.STATE_FLOAT),!0;if(this._state===Os.STATE_FLOAT){const t=Math.pow(this._delta,.9);this._delta+=.05;const i=this._scale<48?-30:-40;return e.offsetY=this._offsetY+(this._delta<1?t:1)*i,e.alpha=(1-t)*255,e.alpha<=0&&(e.visible=!1,this._state=Os.STATE_COMPLETE),!0}return!1}};Os.DELAY_BEFORE_ANIMATION=300,Os.STATE_DELAY=0,Os.STATE_FADE_IN=1,Os.STATE_FLOAT=2,Os.STATE_COMPLETE=3;let zb=Os;const ru=class ru{static getExpressionAddition(e,t,i){switch(t){case this.BLOW:return new zb(e,this.BLOW,i);default:return new N5(e,t,i)}}};ru.WAVE=1,ru.BLOW=2,ru.LAUGH=3,ru.CRY=4,ru.IDLE=5;let Hb=ru;const Di=class Di{constructor(e,t){this._id=e,this._visualization=t,this._asset=null,this._startTime=Pe(),this._offsetY=0,this._scale=0,this._state=0}dispose(){this._visualization=null,this._asset=null}getSpriteAssetName(e){let t="left";return(this._visualization.angle===135||this._visualization.angle===180||this._visualization.angle===225||this._visualization.angle===270)&&(t="right"),"avatar_addition_user_idle_"+t+"_"+e+(this._scale<48?"_small":"")}update(e,t){if(!e)return;this._scale=t,this._asset=this._visualization.getAvatarRenderAsset(this.getSpriteAssetName(this._state===Di.STATE_FRAME_A?1:2));let i=64,n=0;t<48?(this._visualization.angle===135||this._visualization.angle===180||this._visualization.angle===225||this._visualization.angle===270?n=10:n=-16,this._offsetY=-38,i=32):(this._visualization.angle===135||this._visualization.angle===180||this._visualization.angle===225||this._visualization.angle===270?n=22:n=-30,this._offsetY=-70),this._visualization.posture===oe.POSTURE_SIT?this._offsetY+=i/2:this._visualization.posture===oe.POSTURE_LAY&&(this._offsetY+=i-.3*i),this._asset&&(e.texture=this._asset,e.offsetX=n,e.offsetY=this._offsetY,e.relativeDepth=-.02,e.alpha=0)}animate(e){if(!e)return!1;const t=Pe();return this._state===Di.STATE_DELAY&&t-this._startTime>=Di.DELAY_BEFORE_ANIMATION&&(this._state=Di.STATE_FRAME_A,this._startTime=t,this._asset=this._visualization.getAvatarRenderAsset(this.getSpriteAssetName(1))),this._state===Di.STATE_FRAME_A&&t-this._startTime>=Di.DELAY_PER_FRAME&&(this._state=Di.STATE_FRAME_B,this._startTime=t,this._asset=this._visualization.getAvatarRenderAsset(this.getSpriteAssetName(2))),this._state===Di.STATE_FRAME_B&&t-this._startTime>=Di.DELAY_PER_FRAME&&(this._state=Di.STATE_FRAME_A,this._startTime=t,this._asset=this._visualization.getAvatarRenderAsset(this.getSpriteAssetName(1))),this._asset?(e.texture=this._asset,e.alpha=255,e.visible=!0):e.visible=!1,!1}get id(){return this._id}};Di.DELAY_BEFORE_ANIMATION=2e3,Di.DELAY_PER_FRAME=2e3,Di.STATE_DELAY=0,Di.STATE_FRAME_A=1,Di.STATE_FRAME_B=2;let Wb=Di;const Tr=class Tr{constructor(e){this._id=e,this._asset=null,this._disposed=!1}dispose(){this._asset=null}update(e,t){if(e){if(!this._asset){const i=new mt(Ne.WHITE);i.alpha=0,i.width=Tr.WIDTH,i.height=Tr.HEIGHT,this._asset=St.generateTexture(i)}e.visible=!0,e.texture=this._asset,e.offsetX=Tr.OFFSET_X,e.offsetY=Tr.OFFSET_Y,e.alphaTolerance=tr.MATCH_ALL_PIXELS}}animate(e){return!1}get id(){return this._id}};Tr.WIDTH=46,Tr.HEIGHT=60,Tr.OFFSET_X=-23,Tr.OFFSET_Y=-48;let Yb=Tr;class Eye{constructor(e,t,i){this._id=e,this._visualization=t,this._asset=null,this._relativeDepth=0,this._status=i}dispose(){this._visualization=null,this._asset=null}update(e,t){if(!e)return;e.visible=!0,e.relativeDepth=this._relativeDepth,e.alpha=255;let i=64,n=0,r=0;this._asset=this._visualization.getAvatarRenderAsset(this._status===Mr.GUIDE?"avatar_addition_user_guide_bubble":"avatar_addition_user_guide_requester_bubble"),t<48?(n=-19,r=-80,i=32):(n=-19,r=-120),this._visualization.posture===oe.POSTURE_SIT?r+=i/2:this._visualization.posture===oe.POSTURE_LAY&&(r+=t),this._asset&&(e.texture=this._asset,e.offsetX=n,e.offsetY=r,e.relativeDepth=-.02+0)}animate(e){return this._asset&&e&&(e.texture=this._asset),!1}get id(){return this._id}get relativeDepth(){return this._relativeDepth}set relativeDepth(e){this._relativeDepth=e}}class yye{constructor(e,t){this._id=e,this._visualization=t,this._asset=null}dispose(){this._visualization=null,this._asset=null}update(e,t){if(!e)return;let i=64,n=0,r=0;t<48?(this._asset=this._visualization.getAvatarRenderAsset("avatar_addition_user_muted_small"),i=32,n=-12,r=-66):(this._asset=this._visualization.getAvatarRenderAsset("avatar_addition_user_muted"),n=-15,r=-110),this._visualization.posture===oe.POSTURE_SIT?r+=i/2:this._visualization.posture===oe.POSTURE_LAY&&(r+=t),this._asset?(e.visible=!0,e.texture=this._asset,e.offsetX=n,e.offsetY=r,e.relativeDepth=-.02):e.visible=!1}animate(e){return this._asset&&e&&(e.texture=this._asset),!1}get id(){return this._id}}class Tye{constructor(e,t,i){this._id=e,this._visualization=i,this._asset=null,this._scale=0,this._number=t,this._numberValueFadeDirection=0,this._numberValueMoving=!1,this._numberValueMoveCounter=0}dispose(){this._visualization=null,this._asset=null}update(e,t){if(!e)return;this._scale=t;let i=64,n=0,r=0;this._number>0?(t<48?(this._asset=this._visualization.getAvatarRenderAsset("avatar_addition_number_"+this._number+"_small"),i=32,n=-6,r=-52):(this._asset=this._visualization.getAvatarRenderAsset("avatar_addition_number_"+this._number),n=-8,r=-105),this._visualization.posture===oe.POSTURE_SIT?r+=i/2:this._visualization.posture===oe.POSTURE_LAY&&(r+=t),this._asset?(e.visible=!0,e.texture=this._asset,e.offsetX=n,e.offsetY=r,e.relativeDepth=-.01,e.alpha=0,this._numberValueFadeDirection=1,this._numberValueMoving=!0,this._numberValueMoveCounter=0):e.visible=!1):e.visible&&(this._numberValueFadeDirection=-1)}animate(e){if(!e)return!1;this._asset&&(e.texture=this._asset);let t=e.alpha,i=!1;if(this._numberValueMoving){if(this._numberValueMoveCounter++,this._numberValueMoveCounter<10)return!1;if(this._numberValueFadeDirection<0)this._scale<48?e.offsetY-=2:e.offsetY-=4;else{let n=4;this._scale<48&&(n=8),this._numberValueMoveCounter%n||(e.offsetY--,i=!0)}}return this._numberValueFadeDirection>0?(t<255&&(t+=32),t>=255&&(t=255,this._numberValueFadeDirection=0),e.alpha=t,!0):this._numberValueFadeDirection<0?(t>=0&&(t-=32),t<=0&&(this._numberValueFadeDirection=0,this._numberValueMoving=!1,t=0,e.visible=!1),e.alpha=t,!0):i}get id(){return this._id}}class Iye{constructor(e,t){this._id=e,this._visualization=t,this._asset=null,this._relativeDepth=0}dispose(){this._visualization=null,this._asset=null}update(e,t){if(!e)return;e.visible=!0,e.relativeDepth=this._relativeDepth,e.alpha=255;let i=64,n=0,r=0;t<48?(this._asset=this._visualization.getAvatarRenderAsset("avatar_addition_user_typing_small"),n=3,r=-42,i=32):(this._asset=this._visualization.getAvatarRenderAsset("avatar_addition_user_typing"),n=14,r=-83),this._visualization.posture===oe.POSTURE_SIT?r+=i/2:this._visualization.posture===oe.POSTURE_LAY&&(r+=t),this._asset&&(e.texture=this._asset,e.offsetX=n,e.offsetY=r,e.relativeDepth=-.02+0)}animate(e){return this._asset&&e&&(e.texture=this._asset),!1}get id(){return this._id}get relativeDepth(){return this._relativeDepth}set relativeDepth(e){this._relativeDepth=e}}class Dv extends Bs{constructor(){super()}initialize(e){return!0}onDispose(){this._avatarRenderer=null}createAvatarImage(e,t,i=null,n=null,r=null){let a=null;return t>48?a=this._avatarRenderer.createAvatarImage(e,kr.LARGE,i,n,r):a=this._avatarRenderer.createAvatarImage(e,kr.SMALL,i,n,r),a}getAvatarRendererAsset(e){return this._avatarRenderer?this._avatarRenderer.assets.getTexture(e):null}get avatarManager(){return this._avatarRenderer}set avatarManager(e){this._avatarRenderer=e}get layerCount(){return 0}}const te=class te extends Kc{constructor(){super(),this._data=null,this._avatarImage=null,this._cachedAvatars=new li,this._cachedAvatarEffects=new li,this._shadow=null,this._lastUpdate=-1e3,this._disposed=!1,this._figure=null,this._gender=null,this._direction=-1,this._headDirection=-1,this._posture="",this._postureParameter="",this._canStandUp=!1,this._postureOffset=0,this._verticalOffset=0,this._angle=-1,this._headAngle=-1,this._talk=!1,this._expression=0,this._sleep=!1,this._blink=!1,this._gesture=0,this._sign=-1,this._highlightEnabled=!1,this._highlight=!1,this._dance=0,this._effect=0,this._carryObject=0,this._useObject=0,this._ownUser=!1,this._isLaying=!1,this._layInside=!1,this._isAnimating=!1,this._extraSpritesStartIndex=2,this._forcedAnimFrames=0,this._updatesUntilFrameUpdate=0,this._isAvatarReady=!1,this._needsUpdate=!1,this._geometryUpdateCounter=-1,this._additions=new Map}initialize(e){return e instanceof Dv?(this._data=e,this.createSprites(te.INITIAL_RESERVED_SPRITES),super.initialize(e),!0):!1}dispose(){this._disposed||(super.dispose(),this._avatarImage&&this._avatarImage.dispose(),this._shadow=null,this._disposed=!0)}update(e,t,i,n){if(!this.object||!e||!this._data||t<this._lastUpdate+te.UPDATE_TIME_INCREASER)return;this._lastUpdate+=te.UPDATE_TIME_INCREASER,this._lastUpdate+te.UPDATE_TIME_INCREASER<t&&(this._lastUpdate=t-te.UPDATE_TIME_INCREASER);const r=this.object.model,a=e.scale,o=this._effect;let l=!1,u=!1,c=!1,h=!1;const f=this.updateModel(r,a);if(f||a!==this._scale||!this._avatarImage){if(a!==this._scale&&(l=!0,this.updateScale(a)),o!==this._effect&&(u=!0),l||!this._avatarImage||u){if(this._avatarImage=this.createAvatarImage(a,this._effect),!this._avatarImage)return;c=!0;const g=this.getSprite(te.AVATAR_LAYER_ID);g&&this._avatarImage&&this._avatarImage.isPlaceholder()?g.alpha=150:g&&(g.alpha=255)}if(!this._avatarImage)return;if(u&&this._avatarImage.animationHasResetOnToggle&&this._avatarImage.resetAnimationFrameCounter(),this.updateShadow(a),h=this.updateObject(this.object,e,i,!0),this.processActionsForAvatar(this._avatarImage),this._additions){let g=this._extraSpritesStartIndex;for(const p of this._additions.values())p.update(this.getSprite(g++),a)}this._scale=a}else h=this.updateObject(this.object,e,i);if(this._additions){let g=this._extraSpritesStartIndex;for(const p of this._additions.values())p.animate(this.getSprite(g++))&&this.updateSpriteCounter++}const d=h||f||l,_=(this._isAnimating||this._forcedAnimFrames>0)&&i;if(d&&(this._forcedAnimFrames=te.ANIMATION_FRAME_UPDATE_INTERVAL),d||_){if(this.updateSpriteCounter++,this._forcedAnimFrames--,this._updatesUntilFrameUpdate--,this._updatesUntilFrameUpdate<=0||l||f||c)this._avatarImage.updateAnimationByFrames(1),this._updatesUntilFrameUpdate=te.ANIMATION_FRAME_UPDATE_INTERVAL;else return;let g=this._avatarImage.getCanvasOffsets();(!g||g.length<3)&&(g=te.DEFAULT_CANVAS_OFFSETS);const p=this.getSprite(te.SPRITE_INDEX_AVATAR);if(p){const y=this.object.model.getValue(b.FIGURE_HIGHLIGHT_ENABLE)===1&&this.object.model.getValue(b.FIGURE_HIGHLIGHT)===1,T=this._avatarImage.getImage(_s.FULL,y);T&&(p.texture=T,y||(p.filters=[])),p.texture&&(p.offsetX=-1*a/2+g[0]-(p.texture.width-a)/2,p.offsetY=-p.texture.height+a/4+g[1]+this._postureOffset),this._isLaying?this._layInside?p.relativeDepth=-.5:p.relativeDepth=te.AVATAR_SPRITE_LAYING_DEPTH+g[2]:p.relativeDepth=te.AVATAR_SPRITE_DEFAULT_DEPTH+g[2],this._ownUser?(p.relativeDepth-=te.AVATAR_OWN_DEPTH_ADJUST,p.spriteType=Js.AVATAR_OWN):p.spriteType=Js.AVATAR}const m=this.getAddition(te.TYPING_BUBBLE_ID);m&&(this._isLaying?m.relativeDepth=te.AVATAR_SPRITE_LAYING_DEPTH-.01+g[2]:m.relativeDepth=te.AVATAR_SPRITE_DEFAULT_DEPTH-.01+g[2]),this._isAnimating=this._avatarImage.isAnimating();let v=te.INITIAL_RESERVED_SPRITES;const E=this._avatarImage.getDirection();for(const y of this._avatarImage.getSprites())if(y.id===te.AVATAR){const T=this.getSprite(te.SPRITE_INDEX_AVATAR);if(T){const w=this._avatarImage.getLayerData(y);let C=y.getDirectionOffsetX(E),N=y.getDirectionOffsetY(E);w&&(C+=w.dx,N+=w.dy),a<48&&(C/=2,N/=2),this._canStandUp||(T.offsetX+=C,T.offsetY+=N)}}else{const T=this.getSprite(v);if(T){T.alphaTolerance=tr.MATCH_NOTHING,T.visible=!0;const w=this._avatarImage.getLayerData(y);let C=0,N=y.getDirectionOffsetX(E),P=y.getDirectionOffsetY(E);const k=y.getDirectionOffsetZ(E);let L=0;y.hasDirections&&(L=E),w&&(C=w.animationFrame,N+=w.dx,P+=w.dy,L+=w.dd),a<48&&(N/=2,P/=2),L<0?L+=8:L>7&&(L-=8);const j=this._avatarImage.getScale()+"_"+y.member+"_"+L+"_"+C,z=this._avatarImage.getAsset(j);if(!z)continue;T.texture=z.texture,T.offsetX=z.offsetX-a/2+N,T.offsetY=z.offsetY+P,T.flipH=z.flipH,y.hasStaticY?T.offsetY+=this._verticalOffset*a/(2*te.BASE_Y_SCALE):T.offsetY+=this._postureOffset,this._isLaying?T.relativeDepth=te.AVATAR_SPRITE_LAYING_DEPTH-.001*this.totalSprites*k:T.relativeDepth=te.AVATAR_SPRITE_DEFAULT_DEPTH-.001*this.totalSprites*k,y.ink===33?T.blendMode=ge.ADD:T.blendMode=ge.NORMAL}v++}}}createAvatarImage(e,t){let i=null,n="avatarImage"+e.toString();if(t?(n+="-"+t,i=this._cachedAvatarEffects.getValue(n)):i=this._cachedAvatars.getValue(n),!i&&(i=this._data.createAvatarImage(this._figure,e,this._gender,this,this),i))if(!t)this._cachedAvatars.add(n,i);else{if(this._cachedAvatarEffects.length>=te.MAX_EFFECT_CACHE){const r=this._cachedAvatarEffects.remove(this._cachedAvatarEffects.getKey(0));r&&r.dispose()}this._cachedAvatarEffects.add(n,i)}return i}updateObject(e,t,i,n=!1){if(!n&&this.updateObjectCounter===e.updateCounter&&this._geometryUpdateCounter===t.updateId)return!1;let r=e.getDirection().x-t.direction.x,a=this._headDirection-t.direction.x;return this._posture==="float"&&(a=r),r=(r%360+360)%360,a=(a%360+360)%360,this._posture==="sit"&&this._canStandUp&&(r-=r%90-45,a-=a%90-45),(r!==this._angle||n)&&(i=!0,this._angle=r,r=r-(135-22.5),r=(r+360)%360,this._avatarImage.setDirectionAngle(_s.FULL,r)),(a!==this._headAngle||n)&&(i=!0,this._headAngle=a,this._headAngle!==this._angle&&(a=a-(135-22.5),a=(a+360)%360,this._avatarImage.setDirectionAngle(_s.HEAD,a))),this._geometryUpdateCounter=t.updateId,this.updateObjectCounter=this.object.updateCounter,i}updateModel(e,t){if(!e||this.updateModelCounter===e.updateCounter)return!1;let i=!1;const n=e.getValue(b.FIGURE_TALK)>0;n!==this._talk&&(this._talk=n,i=!0);const r=e.getValue(b.FIGURE_EXPRESSION);r!==this._expression&&(this._expression=r,i=!0);const a=e.getValue(b.FIGURE_SLEEP)>0;a!==this._sleep&&(this._sleep=a,i=!0);const o=e.getValue(b.FIGURE_BLINK)>0;o!==this._blink&&(this._blink=o,i=!0);const l=e.getValue(b.FIGURE_GESTURE)||0;l!==this._gesture&&(this._gesture=l,i=!0);const u=e.getValue(b.FIGURE_POSTURE);u!==this._posture&&(this._posture=u,i=!0);const c=e.getValue(b.FIGURE_POSTURE_PARAMETER);c!==this._postureParameter&&(this._postureParameter=c,i=!0);const h=e.getValue(b.FIGURE_CAN_STAND_UP);h!==this._canStandUp&&(this._canStandUp=h,i=!0);const f=e.getValue(b.FIGURE_VERTICAL_OFFSET)*te.BASE_Y_SCALE;f!==this._verticalOffset&&(this._verticalOffset=f,i=!0);const d=e.getValue(b.FIGURE_DANCE)||0;d!==this._dance&&(this._dance=d,i=!0);const _=e.getValue(b.FIGURE_EFFECT)||0;_!==this._effect&&(this._effect=_,i=!0);const g=e.getValue(b.FIGURE_CARRY_OBJECT)||0;g!==this._carryObject&&(this._carryObject=g,i=!0);const p=e.getValue(b.FIGURE_USE_OBJECT)||0;p!==this._useObject&&(this._useObject=p,i=!0);const m=e.getValue(b.HEAD_DIRECTION);m!==this._headDirection&&(this._headDirection=m,i=!0),this._carryObject>0&&p>0?this._useObject!==this._carryObject&&(this._useObject=this._carryObject,i=!0):this._useObject!==0&&(this._useObject=0,i=!0);let v=this.getAddition(te.FLOATING_IDLE_Z_ID);this._sleep?(v||(v=this.addAddition(new Wb(te.FLOATING_IDLE_Z_ID,this))),i=!0):v&&this.removeAddition(te.FLOATING_IDLE_Z_ID);const E=e.getValue(b.FIGURE_IS_MUTED)>0;let y=this.getAddition(te.MUTED_BUBBLE_ID);if(E)y||(y=this.addAddition(new yye(te.MUTED_BUBBLE_ID,this))),i=!0;else{y&&(this.removeAddition(te.MUTED_BUBBLE_ID),i=!0);const G=e.getValue(b.FIGURE_IS_TYPING)>0;let Y=this.getAddition(te.TYPING_BUBBLE_ID);G?(Y||(Y=this.addAddition(new Iye(te.TYPING_BUBBLE_ID,this))),i=!0):Y&&(this.removeAddition(te.TYPING_BUBBLE_ID),i=!0)}const T=e.getValue(b.FIGURE_GUIDE_STATUS)||0;T!==Mr.NONE?(this.removeAddition(te.GUIDE_BUBBLE_ID),this.addAddition(new Eye(te.GUIDE_BUBBLE_ID,this,T)),i=!0):this.getAddition(te.GUIDE_BUBBLE_ID)&&(this.removeAddition(te.GUIDE_BUBBLE_ID),i=!0);const w=e.getValue(b.FIGURE_IS_PLAYING_GAME)>0;let C=this.getAddition(te.GAME_CLICK_TARGET_ID);w?(C||(C=this.addAddition(new Yb(te.GAME_CLICK_TARGET_ID))),i=!0):C&&this.removeAddition(te.GAME_CLICK_TARGET_ID);const N=e.getValue(b.FIGURE_NUMBER_VALUE);let P=this.getAddition(te.NUMBER_BUBBLE_ID);N>0?(P||(P=this.addAddition(new Tye(te.NUMBER_BUBBLE_ID,N,this))),i=!0):P&&this.removeAddition(te.NUMBER_BUBBLE_ID);let k=this.getAddition(te.EXPRESSION_ID);this._expression>0?k||(k=Hb.getExpressionAddition(te.EXPRESSION_ID,this._expression,this),k&&this.addAddition(k)):k&&this.removeAddition(te.EXPRESSION_ID),this.updateScale(t);const L=e.getValue(b.GENDER);L!==this._gender&&(this._gender=L,i=!0),this.updateFigure(e.getValue(b.FIGURE))&&(i=!0);let j=e.getValue(b.FIGURE_SIGN);j===null&&(j=-1),this._sign!==j&&(this._sign=j,i=!0);const z=e.getValue(b.FIGURE_HIGHLIGHT_ENABLE)>0;if(z!==this._highlightEnabled&&(this._highlightEnabled=z,i=!0),this._highlightEnabled){const G=e.getValue(b.FIGURE_HIGHLIGHT)>0;G!==this._highlight&&(this._highlight=G,i=!0)}const ne=e.getValue(b.OWN_USER)>0;return ne!==this._ownUser&&(this._ownUser=ne,i=!0),this.updateModelCounter=e.updateCounter,i}setDirection(e){this._direction!==e&&(this._direction=e,this._needsUpdate=!0)}updateScale(e){e<48&&(this._blink=!1),this._posture==="sit"||this._posture==="lay"?this._postureOffset=e/2:this._postureOffset=0,this._layInside=!1,this._isLaying=!1,this._posture==="lay"&&(this._isLaying=!0,parseInt(this._postureParameter)<0&&(this._layInside=!0))}processActionsForAvatar(e){if(!e)return;if(e.initActionAppends(),e.appendAction(oe.POSTURE,this._posture,this._postureParameter),this._gesture>0&&this._avatarImage.appendAction(oe.GESTURE,oe.getGesture(this._gesture)),this._dance>0&&this._avatarImage.appendAction(oe.DANCE,this._dance),this._sign>-1&&this._avatarImage.appendAction(oe.SIGN,this._sign),this._carryObject>0&&this._avatarImage.appendAction(oe.CARRY_OBJECT,this._carryObject),this._useObject>0&&this._avatarImage.appendAction(oe.USE_OBJECT,this._useObject),this._talk&&this._avatarImage.appendAction(oe.TALK),(this._sleep||this._blink)&&this._avatarImage.appendAction(oe.SLEEP),this._expression>0){const i=oe.getExpression(this._expression);if(i!=="")switch(i){case oe.DANCE:this._avatarImage.appendAction(oe.DANCE,2);break;default:this._avatarImage.appendAction(i);break}}this._effect>0&&this._avatarImage.appendAction(oe.EFFECT,this._effect),e.endActionAppends(),this._isAnimating=e.isAnimating();let t=te.INITIAL_RESERVED_SPRITES;for(const i of this._avatarImage.getSprites())i.id!==te.AVATAR&&t++;if(t!==this.totalSprites&&this.createSprites(t),this._extraSpritesStartIndex=t,this._additions)for(const i of this._additions.values())this.createSprite()}updateFigure(e){return this._figure===e?!1:(this._figure=e,this.clearAvatar(),!0)}resetFigure(e){this.clearAvatar()}resetEffect(e){this.clearAvatar()}clearAvatar(){for(const t of this._cachedAvatars.getValues())t&&t.dispose();for(const t of this._cachedAvatarEffects.getValues())t&&t.dispose();this._cachedAvatars.reset(),this._cachedAvatarEffects.reset(),this._avatarImage=null;const e=this.getSprite(te.AVATAR_LAYER_ID);e&&(e.texture=Ne.EMPTY,e.alpha=255)}getAddition(e){if(!this._additions)return null;const t=this._additions.get(e);return t||null}addAddition(e){if(!this.getAddition(e.id))return this._additions.set(e.id,e),e}removeAddition(e){const t=this.getAddition(e);t&&(this._additions.delete(t.id),t.dispose())}updateShadow(e){this._shadow=null;const t=this.getSprite(te.SHADOW_LAYER_ID);if(!t)return;let i=this._posture==="mv"||this._posture==="std"||this._posture==="sit"&&this._canStandUp;if(this._effect===te.SNOWBOARDING_EFFECT&&(i=!1),i){if(t.visible=!0,!this._shadow||e!==this._scale){let n=0,r=0;e<48?(t.libraryAssetName="sh_std_sd_1_0_0",this._shadow=this._avatarImage.getAsset(t.libraryAssetName),n=-8,r=this._canStandUp?6:-3):(t.libraryAssetName="h_std_sd_1_0_0",this._shadow=this._avatarImage.getAsset(t.libraryAssetName),n=-17,r=this._canStandUp?10:-7),this._shadow?(t.texture=this._shadow.texture,t.offsetX=n,t.offsetY=r,t.alpha=50,t.relativeDepth=1):t.visible=!1}}else this._shadow=null,t.visible=!1}getAvatarRenderAsset(e){return this._data?this._data.getAvatarRendererAsset(e):null}get direction(){return this._direction}get posture(){return this._posture}get angle(){return this._angle}get disposed(){return this._disposed}};te.AVATAR="avatar",te.FLOATING_IDLE_Z_ID=1,te.TYPING_BUBBLE_ID=2,te.EXPRESSION_ID=3,te.NUMBER_BUBBLE_ID=4,te.GAME_CLICK_TARGET_ID=5,te.MUTED_BUBBLE_ID=6,te.GUIDE_BUBBLE_ID=7,te.OWN_USER_ID=4,te.UPDATE_TIME_INCREASER=41,te.AVATAR_LAYER_ID=0,te.SHADOW_LAYER_ID=1,te.SNOWBOARDING_EFFECT=97,te.INITIAL_RESERVED_SPRITES=2,te.ANIMATION_FRAME_UPDATE_INTERVAL=2,te.DEFAULT_CANVAS_OFFSETS=[0,0,0],te.MAX_EFFECT_CACHE=2,te.SPRITE_INDEX_AVATAR=0,te.BASE_Y_SCALE=1e3,te.AVATAR_SPRITE_DEFAULT_DEPTH=-.01,te.AVATAR_OWN_DEPTH_ADJUST=.001,te.AVATAR_SPRITE_LAYING_DEPTH=-.409;let Xb=te;const ws=class ws{static allocate(e,t,i,n,r,a,o=-1,l=0){const u=ws.POOL.length?ws.POOL.pop():new ws;return n<1&&(n=1),r<0&&(r=ws.FRAME_REPEAT_FOREVER),u._id=e,u._x=t||0,u._y=i||0,u._repeats=n,u._frameRepeats=r,u._remainingFrameRepeats=r,u._isLastFrame=a,u._isRecycled=!1,o>=0?(u._activeSequence=o,u._activeSequenceOffset=l):(u._activeSequence=-1,u._activeSequenceOffset=0),u}get id(){return this._id>=0?this._id:-this._id*Math.random()}get x(){return this._x}get y(){return this._y}get repeats(){return this._repeats}get frameRepeats(){return this._frameRepeats}get isLastFrame(){return this._isLastFrame}get remainingFrameRepeats(){return this._frameRepeats<0?ws.FRAME_REPEAT_FOREVER:this._remainingFrameRepeats}set remainingFrameRepeats(e){e<0&&(e=0),this._frameRepeats>0&&e>this._frameRepeats&&(e=this._frameRepeats),this._remainingFrameRepeats=e}get activeSequence(){return this._activeSequence}get activeSequenceOffset(){return this._activeSequenceOffset}recycle(){this._isRecycled||(this._isRecycled=!0,ws.POOL.length<ws.POOL_SIZE_LIMIT&&ws.POOL.push(this))}};ws.FRAME_REPEAT_FOREVER=-1,ws.SEQUENCE_NOT_DEFINED=-1,ws.POOL_SIZE_LIMIT=3e3,ws.POOL=[];let qo=ws;class P5{constructor(e,t,i,n,r,a){this._id=0,this._x=0,this._y=0,this._randomX=0,this._randomY=0,this._repeats=1,this._id=e,this._x=t,this._y=i,this._randomX=n,this._randomY=r,this._repeats=a}get id(){return this._id}hasDirectionalOffsets(){return!1}getX(e){return this._x}getY(e){return this._y}get x(){return this._x}get y(){return this._x}get randomX(){return this._randomX}get randomY(){return this._randomY}get repeats(){return this._repeats}}class Rye extends P5{constructor(e,t,i,n,r,a,o){super(e,t,i,n,r,o),this._directionalOffsets=a}hasDirectionalOffsets(){return this._directionalOffsets!==null}getX(e){return this._directionalOffsets?this._directionalOffsets.getXOffset(e,super.getX(e)):super.getX(e)}getY(e){return this._directionalOffsets?this._directionalOffsets.getYOffset(e,super.getY(e)):super.getY(e)}}class Sye{constructor(e,t){this._frames=[],this._frameIndexes=[],this._frameRepeats=[],this._isRandom=t,this._loopCount=e<1?1:e}get isRandom(){return this._isRandom}get frameCount(){return this._frameIndexes.length*this._loopCount}dispose(){this._frames=[]}initialize(){let e=this._frameIndexes.length-1,t=-1,i=1;for(;e>=0;)this._frameIndexes[e]===t?i++:(t=this._frameIndexes[e],i=1),this._frameRepeats[e]=i,e--}addFrame(e,t,i,n,r,a){let o=1;if(this._frames.length>0){const u=this._frames[this._frames.length-1];u.id===e&&!u.hasDirectionalOffsets()&&u.x===t&&u.y===i&&u.randomX===n&&n===0&&u.randomY===r&&r===0&&(o+=u.repeats,this._frames.pop())}const l=a?new Rye(e,t,i,n,r,a,o):new P5(e,t,i,n,r,o);this._frames.push(l),this._frameIndexes.push(this._frames.length-1),this._frameRepeats.push(1)}getFrame(e){return!this._frames.length||e<0||e>=this.frameCount?null:this._frames[this._frameIndexes[e%this._frameIndexes.length]]}getFrameIndex(e){return e<0||e>=this.frameCount?-1:(this._isRandom&&(e=Math.round(Math.random()*this._frameIndexes.length),e===this._frameIndexes.length&&e--),e)}getRepeats(e){return e<0||e>=this.frameCount?0:this._frameRepeats[e%this._frameRepeats.length]}}class bye{constructor(e,t,i){this._frameSequences=[],this._frameCount=-1,this._loopCount=e<0?0:e,this._frameRepeat=t<1?1:t,this._isRandom=i}get frameCount(){return this._frameCount<0&&this.calculateLength(),this._frameCount}dispose(){if(!(!this._frameSequences||!this._frameSequences.length)){for(const e of this._frameSequences)e&&e.dispose();this._frameSequences=[]}}addFrameSequence(e,t){const i=new Sye(e,t);return this._frameSequences.push(i),i}calculateLength(){this._frameCount=0;for(const e of this._frameSequences)e&&(this._frameCount+=e.frameCount)}getFrame(e,t){if(this._frameCount<1)return null;if(t=t/this._frameRepeat,!this._isRandom){const r=Math.floor(t/this._frameCount);t=Math.floor(t%this._frameCount);let a=!1,o=null;(this._loopCount>0&&r>=this._loopCount||this._loopCount<=0&&this._frameCount===1)&&(t=this._frameCount-1,a=!0);let l=0,u=0;for(;u<this._frameSequences.length;){if(o=this._frameSequences[u],o){if(t<l+o.frameCount)break;l+=o.frameCount}u++}return this.getFrameFromSpecificSequence(e,o,u,t-l,a)}const i=Math.trunc(this._frameSequences.length*Math.random()),n=this._frameSequences[i];return n.frameCount<1?null:this.getFrameFromSpecificSequence(e,n,i,0,!1)}getFrameFromSequence(e,t,i,n){if(t<0||t>=this._frameSequences.length)return null;const r=this._frameSequences[t];return r?i>=r.frameCount?this.getFrame(e,n):this.getFrameFromSpecificSequence(e,r,t,i,!1):null}getFrameFromSpecificSequence(e,t,i,n,r){if(!t)return null;const a=t.getFrameIndex(n),o=t.getFrame(a);if(!o)return null;let l=o.getX(e),u=o.getY(e);const c=o.randomX,h=o.randomY;let f=o.repeats,d=!1;c&&(l=Math.trunc(l+c*Math.random())),h&&(u=Math.trunc(u+h*Math.random())),f>1&&(f=t.getRepeats(a));let _=this._frameRepeat*f;return r&&(_=qo.FRAME_REPEAT_FOREVER),!this._isRandom&&!t.isRandom&&i===this._frameSequences.length-1&&n===t.frameCount-1&&(d=!0),qo.allocate(o.id,l,u,f,_,d,i,n)}}class k5{constructor(){this._offsetX=new Map,this._offsetY=new Map}getXOffset(e,t){const i=this._offsetX.get(e);return i??t}getYOffset(e,t){const i=this._offsetY.get(e);return i??t}setDirection(e,t,i){this._offsetX.set(e,t),this._offsetY.set(e,i)}}const Ir=class Ir{constructor(){this._layers=new Map,this._frameCount=-1,this._randomStart=!1,this._immediateChanges=null}static getTransitionToAnimationId(e){return Ir.TRANSITION_TO_ANIMATION_OFFSET+e}static getTransitionFromAnimationId(e){return Ir.TRANSITION_FROM_ANIMATION_OFFSET+e}static isTransitionToAnimation(e){return e>=Ir.TRANSITION_TO_ANIMATION_OFFSET&&e<Ir.TRANSITION_FROM_ANIMATION_OFFSET}static isTransitionFromAnimation(e){return e>=Ir.TRANSITION_FROM_ANIMATION_OFFSET}dispose(){for(const e of this._layers.values())e&&e.dispose();this._layers.clear(),this._immediateChanges=null}setImmediateChanges(e){this._immediateChanges=e}isImmediateChange(e){return!(!this._immediateChanges||this._immediateChanges.indexOf(e)===-1)}getStartFrame(e){return this._randomStart?Math.random()*this._frameCount:0}initialize(e){if(e.randomStart&&(this._randomStart=!0),e.layers)for(const t in e.layers){const i=e.layers[t];if(!i)return!1;const n=parseInt(t),r=i.loopCount!==void 0?i.loopCount:1,a=i.frameRepeat!==void 0?i.frameRepeat:1,o=i.random!==void 0&&i.random!==0;if(!this.addLayer(n,r,a,o,i))return!1}return!0}addLayer(e,t,i,n,r){const a=new bye(t,i,n);if(r.frameSequences)for(const l in r.frameSequences){const u=r.frameSequences[l];if(!u)continue;const c=u.loopCount!==void 0?u.loopCount:1,h=u.random!==void 0&&u.random!==0,f=a.addFrameSequence(c,h);if(u.frames)for(const d in u.frames){const _=u.frames[d];if(!_)return a.dispose(),!1;f.addFrame(_.id,_.x||0,_.y||0,_.randomX||0,_.randomY||0,this.readDirectionalOffsets(_))}f.initialize()}a.calculateLength(),this._layers.set(e,a);const o=a.frameCount;return o>this._frameCount&&(this._frameCount=o),!0}readDirectionalOffsets(e){let t=null;if(e&&e.offsets)for(const i in e.offsets){const n=e.offsets[i];n&&(t||(t=new k5),t.setDirection(n.direction,n.x,n.y))}return t}getFrame(e,t,i){const n=this._layers.get(t);return n?n.getFrame(e,i):null}getFrameFromSequence(e,t,i,n,r){const a=this._layers.get(t);return a?a.getFrameFromSequence(e,i,n,r):null}};Ir.TRANSITION_TO_ANIMATION_OFFSET=1e6,Ir.TRANSITION_FROM_ANIMATION_OFFSET=2e6,Ir.DEFAULT_FRAME_NUMBER=0;let fi=Ir;const t_=class t_{constructor(e){this._colors=[],this.createColors(e)}createColors(e){if(e)for(let t=0;t<e;t++)this._colors.push(t_.DEFAULT_COLOR)}dispose(){this._colors=[]}getLayerColor(e){const t=this._colors[e];return t||t_.DEFAULT_COLOR}setColorLayer(e,t){this._colors[e]&&(this._colors[e]=t)}};t_.DEFAULT_COLOR=16777215;let ju=t_;const Ri=class Ri{constructor(){this._tag=Ri.DEFAULT_TAG,this._ink=Ri.DEFAULT_INK,this._alpha=Ri.DEFAULT_ALPHA,this._ignoreMouse=Ri.DEFAULT_IGNORE_MOUSE,this._xOffset=Ri.DEFAULT_XOFFSET,this._yOffset=Ri.DEFAULT_YOFFSET,this._zOffset=Ri.DEFAULT_ZOFFSET}setFromLayer(e){e&&(this._tag=e.tag,this._ink=e.ink,this._alpha=e.alpha,this._ignoreMouse=e.ignoreMouse,this._xOffset=e.xOffset,this._yOffset=e.yOffset,this._zOffset=e.zOffset)}get tag(){return this._tag}set tag(e){this._tag=e}get ink(){return this._ink}set ink(e){this._ink=e}get alpha(){return this._alpha}set alpha(e){this._alpha=e}get ignoreMouse(){return this._ignoreMouse}set ignoreMouse(e){this._ignoreMouse=e}get xOffset(){return this._xOffset}set xOffset(e){this._xOffset=e}get yOffset(){return this._yOffset}set yOffset(e){this._yOffset=e}get zOffset(){return this._zOffset}set zOffset(e){this._zOffset=e}};Ri.DEFAULT_COUNT=0,Ri.DEFAULT_DIRECTION=0,Ri.DEFAULT_TAG="",Ri.DEFAULT_INK=ge.NORMAL,Ri.DEFAULT_ALPHA=255,Ri.DEFAULT_IGNORE_MOUSE=!1,Ri.DEFAULT_XOFFSET=0,Ri.DEFAULT_YOFFSET=0,Ri.DEFAULT_ZOFFSET=0;let rt=Ri;const dC=class dC{constructor(e){this._layers=[],this.createLayers(e)}createLayers(e){if(e)for(let t=0;t<e;t++)this._layers.push(new rt)}dispose(){this._layers=[]}setFromDirection(e){if(!e)return;const t=this.layerCount;if(t===e.layerCount)for(let i=0;i<t;i++){const n=this.getLayer(i),r=e.getLayer(i);n&&n.setFromLayer(r)}}getLayer(e){const t=this._layers[e];return t||null}getLayerTag(e){const t=this.getLayer(e);return t?t.tag:rt.DEFAULT_TAG}setLayerTag(e,t){const i=this.getLayer(e);i&&(i.tag=t)}getLayerInk(e){const t=this.getLayer(e);return t?t.ink:rt.DEFAULT_INK}setLayerInk(e,t){const i=this.getLayer(e);i&&(isNaN(t)||(i.ink=t))}getLayerAlpha(e){const t=this.getLayer(e);return t?t.alpha:rt.DEFAULT_ALPHA}setLayerAlpha(e,t){const i=this.getLayer(e);i&&(isNaN(t)||(i.alpha=t))}getLayerIgnoreMouse(e){const t=this.getLayer(e);return t?t.ignoreMouse:rt.DEFAULT_IGNORE_MOUSE}setLayerIgnoreMouse(e,t){const i=this.getLayer(e);i&&(i.ignoreMouse=t||!1)}getLayerXOffset(e){const t=this.getLayer(e);return t?t.xOffset:rt.DEFAULT_XOFFSET}setLayerXOffset(e,t){const i=this.getLayer(e);i&&(isNaN(t)||(i.xOffset=t))}getLayerYOffset(e){const t=this.getLayer(e);return t?t.yOffset:rt.DEFAULT_YOFFSET}setLayerYOffset(e,t){const i=this.getLayer(e);i&&(isNaN(t)||(i.yOffset=t))}getLayerZOffset(e){const t=this.getLayer(e);return t?t.zOffset:rt.DEFAULT_ZOFFSET}setLayerZOffset(e,t){const i=this.getLayer(e);i&&(isNaN(t)||(i.zOffset=t))}get layerCount(){return this._layers.length}};dC.USE_DEFAULT_DIRECTION=-1;let xo=dC;const i_=class i_{constructor(e,t){this._layerCount=e<0?0:e>i_.MAX_LAYERS?i_.MAX_LAYERS:e,this._angle=t<1?1:t>360?360:t,this._defaultDirection=new xo(this._layerCount),this._directions=new Map,this._colors=[],this._lastDirectionData=null,this._lastDirection=-1}dispose(){this._defaultDirection&&this._defaultDirection.dispose();for(const e of this._directions.values())e&&e.dispose();for(const e of this._colors)e&&e.dispose();this.reset()}reset(){this._defaultDirection=null,this._colors=[],this._lastDirectionData=null,this._lastDirection=-1,this._directions.clear()}processLayers(e){return e?this.setDirectionLayers(this._defaultDirection,e):!1}processDirections(e){if(!e)return!1;for(const t in e){const i=e[t];if(!i)continue;const n=parseInt(t);if(this._directions.get(n))return!1;const r=new xo(this._layerCount);r.setFromDirection(this._defaultDirection),this.setDirectionLayers(r,i.layers),this._directions.set(n,r),this._lastDirectionData=null,this._lastDirection=-1}return!0}processColors(e){if(!e)return!1;for(const t in e){const i=e[t];if(!i)continue;const n=parseInt(t);if(this._colors[n])return!1;const r=new ju(this._layerCount);for(const a in i.layers){const o=i.layers[a];if(!o)continue;const l=parseInt(a),u=o.color;r.setColorLayer(l,u)}this._colors[n]=r}return!0}setDirectionLayers(e,t){if(!e||!t)return!1;for(const i in t){const n=t[i];if(!n)continue;const r=parseInt(i);if(r<0||r>=this._layerCount)return!1;n.ink!==void 0&&e.setLayerInk(r,ZQ.inkToBlendMode(n.ink)),n.tag!==void 0&&e.setLayerTag(r,n.tag),n.alpha!==void 0&&e.setLayerAlpha(r,n.alpha),n.ignoreMouse!==void 0&&e.setLayerIgnoreMouse(r,n.ignoreMouse),n.x!==void 0&&e.setLayerXOffset(r,n.x),n.y!==void 0&&e.setLayerYOffset(r,n.y),n.z!==void 0&&e.setLayerZOffset(r,n.z/-1e3)}return!0}getValidDirection(e){if(this._directions.get(e))return e;e=(e%360+360)%360;let i=-1,n=-1;for(const r of this._directions.keys()){let a=(r*this._angle-e+360)%360;a>180&&(a=360-a),(a<i||i<0)&&(i=a,n=r)}return n>=0?Math.trunc(n):0}getDirectionData(e){if(e===this._lastDirection&&this._lastDirectionData)return this._lastDirectionData;let t=this._directions.get(e);return t||(t=this._defaultDirection),this._lastDirection=e,this._lastDirectionData=t,this._lastDirectionData}getLayerTag(e,t){const i=this.getDirectionData(e);return i?i.getLayerTag(t):rt.DEFAULT_TAG}getLayerInk(e,t){const i=this.getDirectionData(e);return i?i.getLayerInk(t):rt.DEFAULT_INK}getLayerAlpha(e,t){const i=this.getDirectionData(e);return i?i.getLayerAlpha(t):rt.DEFAULT_ALPHA}getLayerColor(e,t){const i=this._colors[t];return i?i.getLayerColor(e):ju.DEFAULT_COLOR}getLayerIgnoreMouse(e,t){const i=this.getDirectionData(e);return i?i.getLayerIgnoreMouse(t):rt.DEFAULT_IGNORE_MOUSE}getLayerXOffset(e,t){const i=this.getDirectionData(e);return i?i.getLayerXOffset(t):rt.DEFAULT_XOFFSET}getLayerYOffset(e,t){const i=this.getDirectionData(e);return i?i.getLayerYOffset(t):rt.DEFAULT_YOFFSET}getLayerZOffset(e,t){const i=this.getDirectionData(e);return i?i.getLayerZOffset(t):rt.DEFAULT_ZOFFSET}get layerCount(){return this._layerCount}};i_.MAX_LAYERS=26;let Lv=i_;class Uv extends Lv{constructor(e,t){super(e,t),this._animations=new Map,this._animationIds=[]}dispose(){super.dispose();for(const e of this._animations.values())e&&e.dispose();this._animations.clear(),this._animationIds=[]}defineAnimations(e){if(!e)return!0;for(const t in e){const i=e[t];if(!i)return!1;let n=parseInt(t.split("_")[0]),r=!1;const a=i.transitionTo,o=i.transitionFrom;a!==void 0&&(n=fi.getTransitionToAnimationId(a),r=!0),o!==void 0&&(n=fi.getTransitionFromAnimationId(o),r=!0);const l=this.createAnimationData();if(!l.initialize(i))return l.dispose(),!1;const u=i.immediateChangeFrom;if(u!==void 0){const c=u.split(","),h=[];for(const f of c){const d=parseInt(f);h.indexOf(d)===-1&&h.push(d)}l.setImmediateChanges(h)}this._animations.set(n,l),r||this._animationIds.push(n)}return!0}createAnimationData(){return new fi}hasAnimation(e){return!!this._animations.get(e)}getAnimationCount(){return this._animationIds.length||0}getAnimationId(e){const t=this.getAnimationCount();return e<0||t<=0?0:this._animationIds[e%t]}isImmediateChange(e,t){const i=this._animations.get(e);return i?i.isImmediateChange(t):!1}getStartFrame(e,t){const i=this._animations.get(e);return i?i.getStartFrame(t):0}getFrame(e,t,i,n){const r=this._animations.get(e);return r?r.getFrame(t,i,n):null}getFrameFromSequence(e,t,i,n,r,a){const o=this._animations.get(e);return o?o.getFrameFromSequence(t,i,n,r,a):null}}class x5{constructor(){this._animationId=-1,this._animationAfterTransitionId=0,this._animationOver=!1,this._frameCounter=0,this._frames=[],this._lastFramePlayed=[],this._animationPlayed=[],this._layerCount=0}get animationOver(){return this._animationOver}set animationOver(e){this._animationOver=e}get frameCounter(){return this._frameCounter}set frameCounter(e){this._frameCounter=e}get animationId(){return this._animationId}set animationId(e){e!==this._animationId&&(this._animationId=e,this.resetAnimationFrames(!1))}get animationAfterTransitionId(){return this._animationAfterTransitionId}set animationAfterTransitionId(e){this._animationAfterTransitionId=e}dispose(){this.recycleFrames(),this._frames=null,this._lastFramePlayed=null,this._animationPlayed=null}setLayerCount(e){this._layerCount=e,this.resetAnimationFrames()}resetAnimationFrames(e=!0){(e||!this._frames)&&(this.recycleFrames(),this._frames=[]),this._lastFramePlayed=[],this._animationPlayed=[],this._animationOver=!1,this._frameCounter=0;let t=0;for(;t<this._layerCount;){if(e||this._frames.length<=t)this._frames[t]=null;else{const i=this._frames[t];i&&(i.recycle(),this._frames[t]=qo.allocate(i.id,i.x,i.y,i.repeats,0,i.isLastFrame))}this._lastFramePlayed[t]=!1,this._animationPlayed[t]=!1,t++}}recycleFrames(){if(!(!this._frames||!this._frames.length))for(const e of this._frames)e&&e.recycle()}getFrame(e){return e<0||e>=this._layerCount?null:this._frames[e]}setFrame(e,t){if(e<0||e>=this._layerCount)return;const i=this._frames[e];i&&i.recycle(),this._frames[e]=t}getAnimationPlayed(e){return e<0||e>=this._layerCount?!0:this._animationPlayed[e]}setAnimationPlayed(e,t){e<0||e>=this._layerCount||(this._animationPlayed[e]=t)}getLastFramePlayed(e){return e<0||e>=this._layerCount?!0:this._lastFramePlayed[e]}setLastFramePlayed(e,t){e<0||e>=this._layerCount||(this._lastFramePlayed[e]=t)}}const xE=class xE extends Uv{constructor(e,t){super(e,t),this._posturesToAnimations=new Map,this._gesturesToAnimations=new Map,this._defaultPosture=null}processPostures(e){if(!e||(e.defaultPosture&&e.defaultPosture.length&&(this._defaultPosture=e.defaultPosture),!e.postures))return!1;for(const t of e.postures)this._posturesToAnimations.get(t.id)||(this._defaultPosture===null&&(this._defaultPosture=t.id),this._posturesToAnimations.set(t.id,t.animationId));return this._posturesToAnimations.get(this._defaultPosture)!==void 0}processGestures(e){if(!e)return!1;for(const t of e)this._gesturesToAnimations.get(t.id)||this._gesturesToAnimations.set(t.id,t.animationId);return!0}postureToAnimation(e){return this._posturesToAnimations.get(e)||(e=this._defaultPosture),this._posturesToAnimations.get(e)}getGestureDisabled(e){return e==="ded"}gestureToAnimation(e){return this._gesturesToAnimations.get(e)?this._gesturesToAnimations.get(e):xE.DEFAULT}animationToPosture(e,t){if(e>=0&&e<this._posturesToAnimations.size){const i=this._posturesToAnimations.keys();for(;;){const n=i.next();if(n.done)return null;if(e<=0)return n.value;--e}}return t?this._defaultPosture:null}animationToGesture(e){if(e>=0&&e<this._gesturesToAnimations.size){const t=this._gesturesToAnimations.keys();for(;;){const i=t.next();if(i.done)return null;if(e<=0)return i.value;--e}}return null}getGestureForAnimationId(e){for(const t of this._gesturesToAnimations.keys())if(this._gesturesToAnimations.get(t)===e)return t;return null}get totalPostures(){return this._posturesToAnimations.size}get totalGestures(){return this._gesturesToAnimations.size}};xE.DEFAULT=-1;let Ll=xE;const _C=class _C{constructor(){this._type="",this._sizes=[],this._sizeDatas=new Map,this._lastSize=-1,this._lastSizeScale=-1,this._lastSizeData=null,this._lastSizeDataScale=-1}initialize(e){return this.reset(),e?(this._type=e.name,this.defineVisualizations(e.visualizations)?!0:(this.reset(),!1)):!1}dispose(){if(this._sizeDatas&&this._sizeDatas.size){for(const e of this._sizeDatas.values())e&&e.dispose();this._sizeDatas=null}this._lastSizeData=null,this._sizes=null}reset(){if(this._type="",this._sizeDatas&&this._sizeDatas.size)for(const e of this._sizeDatas.values())e&&e.dispose();this._sizeDatas.clear(),this._sizes=[],this._lastSizeData=null,this._lastSizeDataScale=-1}createSizeData(e,t,i){return new Lv(t,i)}defineVisualizations(e){if(!e)return!1;for(const t in e){const i=e[t],n=i.layerCount,r=i.angle;let a=i.size;if(a<1&&(a=1),this._sizeDatas.get(a))return!1;const o=this.createSizeData(a,n,r);if(!o)return!1;for(const l in i){const u=i[l];if(!this.processVisualElement(o,l,u))return o.dispose(),!1}this._sizeDatas.set(a,o),this._sizes.push(a)}return this._sizes.sort(),!0}processVisualElement(e,t,i){if(!e||!t||!i)return!1;switch(t){case"layers":if(!e.processLayers(i))return!1;break;case"directions":if(!e.processDirections(i))return!1;break;case"colors":if(!e.processColors(i))return!1;break}return!0}getValidSize(e){if(e===this._lastSizeScale)return this._lastSize;const t=this.getSizeIndex(e);let i=-1;return t<this._sizes.length&&(i=this._sizes[t]),this._lastSizeScale=e,this._lastSize=i,i}getSizeIndex(e){if(e<=0)return 0;let t=0,i=1;for(;i<this._sizes.length;){if(this._sizes[i]>e){this._sizes[i]/e<e/this._sizes[i-1]&&(t=i);break}t=i,i++}return t}getSizeData(e){if(e===this._lastSizeDataScale)return this._lastSizeData;const t=this.getSizeIndex(e);return t<this._sizes.length?this._lastSizeData=this._sizeDatas.get(this._sizes[t]):this._lastSizeData=null,this._lastSizeDataScale=e,this._lastSizeData}getLayerCount(e){const t=this.getSizeData(e);return t?t.layerCount:rt.DEFAULT_COUNT}getValidDirection(e,t){const i=this.getSizeData(e);return i?i.getValidDirection(t):rt.DEFAULT_DIRECTION}getLayerTag(e,t,i){const n=this.getSizeData(e);return n?n.getLayerTag(t,i):rt.DEFAULT_TAG}getLayerInk(e,t,i){const n=this.getSizeData(e);return n?n.getLayerInk(t,i):rt.DEFAULT_INK}getLayerAlpha(e,t,i){const n=this.getSizeData(e);return n?n.getLayerAlpha(t,i):rt.DEFAULT_ALPHA}getLayerColor(e,t,i){const n=this.getSizeData(e);return n?n.getLayerColor(t,i):ju.DEFAULT_COLOR}getLayerIgnoreMouse(e,t,i){const n=this.getSizeData(e);return n?n.getLayerIgnoreMouse(t,i):rt.DEFAULT_IGNORE_MOUSE}getLayerXOffset(e,t,i){const n=this.getSizeData(e);return n?n.getLayerXOffset(t,i):rt.DEFAULT_XOFFSET}getLayerYOffset(e,t,i){const n=this.getSizeData(e);return n?n.getLayerYOffset(t,i):rt.DEFAULT_YOFFSET}getLayerZOffset(e,t,i){const n=this.getSizeData(e);return n?n.getLayerZOffset(t,i):rt.DEFAULT_ZOFFSET}get type(){return this._type}};_C.LAYER_LETTERS=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];let Fr=_C;class Ww extends Fr{createSizeData(e,t,i){return new Uv(t,i)}processVisualElement(e,t,i){if(!e||!t||!i)return!1;switch(t){case"animations":if(!(e instanceof Uv)||!e.defineAnimations(i))return!1;break;default:if(!super.processVisualElement(e,t,i))return!1;break}return!0}hasAnimation(e,t){const i=this.getSizeData(e);return i?i.hasAnimation(t):null}getAnimationCount(e){const t=this.getSizeData(e);return t?t.getAnimationCount():null}getAnimationId(e,t){const i=this.getSizeData(e);return i?i.getAnimationId(t):null}isImmediateChange(e,t,i){const n=this.getSizeData(e);return n?n.isImmediateChange(t,i):null}getStartFrame(e,t,i){const n=this.getSizeData(e);return n?n.getStartFrame(t,i):null}getFrame(e,t,i,n,r){const a=this.getSizeData(e);return a?a.getFrame(t,i,n,r):null}getFrameFromSequence(e,t,i,n,r,a,o){const l=this.getSizeData(e);return l?l.getFrameFromSequence(t,i,n,r,a,o):null}}const s_=class s_ extends Kc{constructor(){super(),this._data=null,this._type=null,this._direction=0,this._lastCameraAngle=NaN,this._selectedColor=0,this._furnitureLift=0,this._alphaMultiplier=1,this._alphaChanged=!1,this._clickUrl=null,this._clickHandling=!1,this._cacheDirection=-1,this._cacheScale=0,this._cacheSize=-1,this._layerCount=0,this._shadowLayerIndex=-1,this._updatedLayers=[],this._assetNames=[],this._spriteTags=[],this._spriteInks=[],this._spriteAlphas=[],this._spriteColors=[],this._spriteMouseCaptures=[],this._spriteXOffsets=[],this._spriteYOffsets=[],this._spriteZOffsets=[],this._animationNumber=0}initialize(e){return this.reset(),e instanceof Fr?(this._type=e.type,this._data=e,!0):!1}dispose(){super.dispose(),this._data=null,this._updatedLayers=null,this._assetNames=null,this._spriteTags=null,this._spriteInks=null,this._spriteAlphas=null,this._spriteColors=null,this._spriteMouseCaptures=null,this._spriteXOffsets=null,this._spriteYOffsets=null,this._spriteZOffsets=null}reset(){super.reset(),this.setDirection(-1),this._data=null,this._updatedLayers=[],this._assetNames=[],this._spriteTags=[],this._spriteInks=[],this._spriteAlphas=[],this._spriteColors=[],this._spriteMouseCaptures=[],this._spriteXOffsets=[],this._spriteYOffsets=[],this._spriteZOffsets=[],this.createSprites(0)}resetLayers(e,t){this._cacheDirection===t&&this._cacheScale===e||(this._updatedLayers=[],this._assetNames=[],this._spriteTags=[],this._spriteInks=[],this._spriteAlphas=[],this._spriteColors=[],this._spriteMouseCaptures=[],this._spriteXOffsets=[],this._spriteYOffsets=[],this._spriteZOffsets=[],this._cacheDirection=t,this._cacheScale=e,this._cacheSize=this.getValidSize(e),this.setLayerCount((this._data&&this._data.getLayerCount(e)||0)+this.getAdditionalLayerCount()))}update(e,t,i,n){if(!e)return;const r=e.scale;let a=!1;this.updateObject(r,e.direction.x)&&(a=!0),this.updateModel(r)&&(a=!0);let o=0;n?this._animationNumber=this._animationNumber|this.updateAnimation(r):(o=this.updateAnimation(r)|this._animationNumber,this._animationNumber=0),(a||o!==0)&&(this.updateSprites(r,a,o),this._scale=r,this.updateSpriteCounter++)}updateObject(e,t){if(!this.object||this.updateObjectCounter===this.object.updateCounter&&e===this._scale&&this._lastCameraAngle===t)return!1;let i=this.object.getDirection().x-(t+135);if(i=(i%360+360)%360,this._data){const n=this._data.getValidDirection(e,i);this.setDirection(n)}return this._lastCameraAngle=t,this._scale=e,this.updateObjectCounter=this.object.updateCounter,this.resetLayers(e,this._direction),!0}updateModel(e){const t=this.object&&this.object.model;if(!t||this.updateModelCounter===t.updateCounter)return!1;this._selectedColor=t.getValue(b.FURNITURE_COLOR),this._clickUrl=t.getValue(b.FURNITURE_AD_URL),this._clickHandling=this._clickUrl&&this._clickUrl!==""&&this._clickUrl.indexOf("http")===0||!1,this._furnitureLift=t.getValue(b.FURNITURE_LIFT_AMOUNT)||0;let i=t.getValue(b.FURNITURE_ALPHA_MULTIPLIER);return isNaN(i)&&(i=1),this._alphaMultiplier!==i&&(this._alphaMultiplier=i,this._alphaChanged=!0),this.updateModelCounter=t.updateCounter,!0}updateSprites(e,t,i){if(this._layerCount!==this.totalSprites&&this.createSprites(this._layerCount),t){let n=this.totalSprites-1;for(;n>=0;)this.updateSprite(e,n),n--}else{let n=0;for(;i>0;)i&&this.updateSprite(e,n),n++,i=i>>1}this._alphaChanged=!1}updateSprite(e,t){const i=this.getSpriteAssetName(e,t),n=this.getSprite(t);if(i&&n){const r=this.getAsset(i,t);if(r&&r.texture){n.visible=!0,n.type=this._type,n.texture=r.texture,n.flipH=r.flipH,n.flipV=r.flipV,n.direction=this._direction;let a=0;t!==this._shadowLayerIndex?(n.tag=this.getLayerTag(e,this._direction,t),n.alpha=this.getLayerAlpha(e,this._direction,t),n.color=this.getLayerColor(e,t,this._selectedColor),n.offsetX=r.offsetX+this.getLayerXOffset(e,this._direction,t),n.offsetY=r.offsetY+this.getLayerYOffset(e,this._direction,t),n.blendMode=this.getLayerInk(e,this._direction,t),n.alphaTolerance=this.getLayerIgnoreMouse(e,this._direction,t)?tr.MATCH_NOTHING:tr.MATCH_OPAQUE_PIXELS,a=this.getLayerZOffset(e,this._direction,t),a=a-t*.001):(n.offsetX=r.offsetX,n.offsetY=r.offsetY+this.getLayerYOffset(e,this._direction,t),n.alpha=48*this._alphaMultiplier,n.alphaTolerance=tr.MATCH_NOTHING,a=1),n.relativeDepth=a*s_.DEPTH_MULTIPLIER,n.name=i,n.libraryAssetName=this.getLibraryAssetNameForSprite(r,n),n.posture=this.getPostureForAsset(e,r.source),n.clickHandling=this._clickHandling}else this.resetSprite(n)}else n&&this.resetSprite(n)}getLibraryAssetNameForSprite(e,t){return e.source}getPostureForAssetFile(e,t){return null}resetSprite(e){e&&(e.texture=null,e.libraryAssetName="",e.posture="",e.tag="",e.offsetX=0,e.offsetY=0,e.flipH=!1,e.flipV=!1,e.relativeDepth=0,e.clickHandling=!1)}getSpriteAssetName(e,t){if(!this._data||t>=Fr.LAYER_LETTERS.length)return"";let i=this._assetNames[t],n=this._updatedLayers[t];return(!i||!i.length)&&(i=this.cacheSpriteAssetName(e,t,!0),n=this._cacheSize!==1),n&&(i+=this.getFrameNumber(e,t)),i}cacheSpriteAssetName(e,t,i){this._type;const n=i?this._cacheSize:this.getValidSize(e);let r="";const a=n!==1;if(t!==this._shadowLayerIndex?r=Fr.LAYER_LETTERS[t]||"":r="sd",r==="")return null;const o=this._type+(a?"_"+n+"_"+r+"_"+this._direction+"_":"_icon_"+r);return i&&(this._assetNames[t]=o,this._updatedLayers[t]=a),o}getLayerTag(e,t,i){const n=this._spriteTags[i];if(n!==void 0)return n;if(!this._data)return rt.DEFAULT_TAG;const r=this._data.getLayerTag(e,t,i);return this._spriteTags[i]=r,r}getLayerInk(e,t,i){const n=this._spriteInks[i];if(n!==void 0)return n;if(!this._data)return rt.DEFAULT_INK;const r=this._data.getLayerInk(e,t,i);return this._spriteInks[i]=r,r}getLayerAlpha(e,t,i){if(!this._alphaChanged){const r=this._spriteAlphas[i];if(r!==void 0)return r}if(!this._data)return rt.DEFAULT_ALPHA;let n=this._data.getLayerAlpha(e,t,i);return this._alphaMultiplier!==null&&(n=n*this._alphaMultiplier),this._spriteAlphas[i]=n,n}getLayerColor(e,t,i){const n=this._spriteColors[t];if(n!==void 0)return n;if(!this._data)return ju.DEFAULT_COLOR;const r=this._data.getLayerColor(e,t,i);return this._spriteColors[t]=r,r}getLayerIgnoreMouse(e,t,i){const n=this._spriteMouseCaptures[i];if(n!==void 0)return n;if(!this._data)return rt.DEFAULT_IGNORE_MOUSE;const r=this._data.getLayerIgnoreMouse(e,t,i);return this._spriteMouseCaptures[i]=r,r}getLayerXOffset(e,t,i){const n=this._spriteXOffsets[i];if(n!==void 0)return n;if(!this._data)return rt.DEFAULT_XOFFSET;const r=this._data.getLayerXOffset(e,t,i);return this._spriteXOffsets[i]=r,r}getLayerYOffset(e,t,i){if(i===this._shadowLayerIndex)return Math.ceil(this._furnitureLift*(e/2));const n=this._spriteYOffsets[i];if(n!==void 0)return n;if(!this._data)return rt.DEFAULT_YOFFSET;const r=this._data.getLayerYOffset(e,t,i);return this._spriteYOffsets[i]=r,r}getLayerZOffset(e,t,i){const n=this._spriteZOffsets[i];if(n!==void 0)return n;if(!this._data)return rt.DEFAULT_ZOFFSET;const r=this._data.getLayerZOffset(e,t,i);return this._spriteZOffsets[i]=r,r}getValidSize(e){return this._data?this._data.getValidSize(e):e}setLayerCount(e){this._layerCount=e,this._shadowLayerIndex=e-this.getAdditionalLayerCount()}setDirection(e){this._direction!==e&&(this._direction=e)}getAdditionalLayerCount(){return 1}updateAnimation(e){return 0}getFrameNumber(e,t){return 0}getPostureForAsset(e,t){return null}getAsset(e,t=-1){return this.asset?this.asset.getAsset(e):null}get direction(){return this._direction}get data(){return this._data}};s_.DEPTH_MULTIPLIER=Math.sqrt(.5),s_.TYPE=Z.FURNITURE_STATIC;let za=s_;const mc=class mc extends za{constructor(){super(),this._state=-1,this._frameIncrease=1,this._animationData=new x5,this._animationScale=0,this._animationChangeTime=0,this._animatedLayerCount=0,this._directionChanged=!1}initialize(e){return e instanceof Ww?super.initialize(e):!1}dispose(){super.dispose(),this._animationData&&(this._animationData.dispose(),this._animationData=null)}get animatedLayerCount(){return this._animatedLayerCount}get animationId(){return this._animationData.animationId}getAnimationId(e){return this.animationId!==mc.DEFAULT_ANIMATION_ID&&this.data.hasAnimation(this._animationScale,this.animationId)?this.animationId:mc.DEFAULT_ANIMATION_ID}updateObject(e,t){if(super.updateObject(e,t)){const i=this.object.getState(0);return i!==this._state&&(this.setAnimation(i),this._state=i,this._animationChangeTime=this.object.model.getValue(b.FURNITURE_STATE_UPDATE_TIME)||0),!0}return!1}updateModel(e){if(super.updateModel(e)){if(this.usesAnimationResetting()){const i=this.object.model.getValue(b.FURNITURE_STATE_UPDATE_TIME);i>this._animationChangeTime&&(this._animationChangeTime=i,this.setAnimation(this._state))}const t=this.object.model.getValue(b.FURNITURE_AUTOMATIC_STATE_INDEX);if(!isNaN(t)){const i=this.data.getAnimationId(this._animationScale,t);this.setAnimation(i)}return!0}return!1}isPlayingTransition(e,t){return!(!fi.isTransitionFromAnimation(e.animationId)&&!fi.isTransitionToAnimation(e.animationId)||t!==e.animationAfterTransitionId||e.animationOver)}getCurrentState(e){const t=e.animationId;return!fi.isTransitionFromAnimation(t)&&!fi.isTransitionToAnimation(t)?t:e.animationAfterTransitionId}setAnimation(e){this.data&&this.setSubAnimation(this._animationData,e,this._state>=0)}setSubAnimation(e,t,i=!0){const n=e.animationId;if(i){if(this.isPlayingTransition(e,t))return!1;const r=this.getCurrentState(e);if(t!==r){if(!this.data.isImmediateChange(this._animationScale,t,r)){let a=fi.getTransitionFromAnimationId(r);this.data.hasAnimation(this._animationScale,a)?(e.animationAfterTransitionId=t,t=a):(a=fi.getTransitionToAnimationId(t),this.data.hasAnimation(this._animationScale,a)&&(e.animationAfterTransitionId=t,t=a))}}else if(fi.isTransitionFromAnimation(e.animationId)){const a=fi.getTransitionToAnimationId(t);this.data.hasAnimation(this._animationScale,a)&&(e.animationAfterTransitionId=t,t=a)}else if(!fi.isTransitionToAnimation(e.animationId)&&this.usesAnimationResetting()){const a=fi.getTransitionFromAnimationId(r);if(this.data.hasAnimation(this._animationScale,a))e.animationAfterTransitionId=t,t=a;else{const o=fi.getTransitionToAnimationId(t);this.data.hasAnimation(this._animationScale,o)&&(e.animationAfterTransitionId=t,t=o)}}}return n!==t?(e.animationId=t,!0):!1}getLastFramePlayed(e){return this._animationData.getLastFramePlayed(e)}resetAllAnimationFrames(){this._animationData&&this._animationData.setLayerCount(this._animatedLayerCount)}updateAnimation(e){if(!this.data)return 0;e!==this._animationScale&&(this._animationScale=e,this._animatedLayerCount=this.data.getLayerCount(e),this.resetAllAnimationFrames());const t=this.updateAnimations(e);return this._directionChanged=!1,t}updateAnimations(e){if(this._animationData.animationOver&&!this._directionChanged)return 0;const t=this.updateFramesForAnimation(this._animationData,e);return this._animationData.animationOver&&(fi.isTransitionFromAnimation(this._animationData.animationId)||fi.isTransitionToAnimation(this._animationData.animationId))&&(this.setAnimation(this._animationData.animationAfterTransitionId),this._animationData.animationOver=!1),t}updateFramesForAnimation(e,t){if(e.animationOver&&!this._directionChanged)return 0;const i=this.getAnimationId(e);let n=e.frameCounter;n||(n=this.data.getStartFrame(t,i,this._direction)),n+=this.frameIncrease,e.frameCounter=n,e.animationOver=!0;let r=!1,a=this._animatedLayerCount-1,o=0,l=1<<this._animatedLayerCount-1;for(;a>=0;){let u=0;if(r=e.getAnimationPlayed(a),!r||this._directionChanged){let c=e.getLastFramePlayed(a),h=e.getFrame(a);h&&h.isLastFrame&&h.remainingFrameRepeats<=this.frameIncrease&&(c=!0),(this._directionChanged||!h||h.remainingFrameRepeats>=0&&(h.remainingFrameRepeats=h.remainingFrameRepeats-this.frameIncrease)<=0)&&(u=qo.SEQUENCE_NOT_DEFINED,h&&(u=h.activeSequence),u===qo.SEQUENCE_NOT_DEFINED?h=this.data.getFrame(t,i,this._direction,a,n):h=this.data.getFrameFromSequence(t,i,this._direction,a,u,h.activeSequenceOffset+h.repeats,n),e.setFrame(a,h),o=o|l),!h||h.remainingFrameRepeats==qo.FRAME_REPEAT_FOREVER?(c=!0,r=!0):e.animationOver=!1,e.setLastFramePlayed(a,c),e.setAnimationPlayed(a,r)}l=l>>1,a--}return o}getFrameNumber(e,t){const i=this._animationData.getFrame(t);return i?i.id:super.getFrameNumber(e,t)}getLayerXOffset(e,t,i){const n=super.getLayerXOffset(e,t,i),r=this._animationData.getFrame(i);return r?n+r.x:n}getLayerYOffset(e,t,i){const n=super.getLayerYOffset(e,t,i),r=this._animationData.getFrame(i);return r?n+r.y:n}usesAnimationResetting(){return!1}setDirection(e){this._direction!==e&&(super.setDirection(e),this._directionChanged=!0)}get frameIncrease(){return this._frameIncrease}get data(){return this._data}};mc.TYPE=Z.FURNITURE_ANIMATED,mc.DEFAULT_ANIMATION_ID=0;let Kt=mc;const vc=class vc extends Kt{constructor(){super(),this._badgeId="",this._badgeAssetNameNormalScale="",this._badgeAssetNameSmallScale="",this._badgeVisibleInState=-1}updateModel(e){let t=super.updateModel(e);const i=this.object.model.getValue(b.FURNITURE_BADGE_IMAGE_STATUS),n=this.object.model.getValue(b.FURNITURE_BADGE_ASSET_NAME);if(i===-1)this._badgeAssetNameNormalScale="",this._badgeAssetNameSmallScale="";else if(i===1&&n!==this._badgeId){this._badgeId=n,this._badgeAssetNameNormalScale=this._badgeId,this._badgeAssetNameSmallScale===""&&(this._badgeAssetNameSmallScale=this._badgeAssetNameNormalScale+"_32");const r=this.object.model.getValue(b.FURNITURE_BADGE_VISIBLE_IN_STATE);isNaN(r)||(this._badgeVisibleInState=r),t=!0}return t}getSpriteAssetName(e,t){return this.getLayerTag(e,this.direction,t)!==vc.BADGE||this._badgeVisibleInState!==-1&&this.object.getState(0)!==this._badgeVisibleInState?super.getSpriteAssetName(e,t):e===32?this._badgeAssetNameSmallScale:this._badgeAssetNameNormalScale}getLayerXOffset(e,t,i){let n=super.getLayerXOffset(e,t,i);if(this.getLayerTag(e,t,i)===vc.BADGE){const r=this.getAsset(e===32?this._badgeAssetNameSmallScale:this._badgeAssetNameNormalScale,i);r&&(e===64?n+=(40-r.width)/2:n+=(20-r.width)/2)}return n}getLayerYOffset(e,t,i){let n=super.getLayerYOffset(e,t,i);if(this.getLayerTag(e,t,i)===vc.BADGE){const r=this.getAsset(e===32?this._badgeAssetNameSmallScale:this._badgeAssetNameNormalScale,i);r&&(e===64?n+=(40-r.height)/2:n+=(20-r.height)/2)}return n}};vc.BADGE="BADGE";let Kb=vc;const zs=class zs extends za{constructor(){super(),this._imageUrl=null,this._shortUrl=null,this._imageReady=!1,this._isAnimated=!1,this._gifCollection=null,this._offsetX=0,this._offsetY=0,this._offsetZ=0,this._currentFrame=-1,this._totalFrames=-1}dispose(){super.dispose(),this._imageUrl&&this.asset&&this.asset.disposeAsset(this._imageUrl)}updateObject(e,t){return super.updateObject(e,t)?(this._imageReady&&this.checkAndCreateImageForCurrentState(),!0):!1}updateModel(e){const t=super.updateModel(e);if(t&&(this._offsetX=this.object.model.getValue(b.FURNITURE_BRANDING_OFFSET_X)||0,this._offsetY=this.object.model.getValue(b.FURNITURE_BRANDING_OFFSET_Y)||0,this._offsetZ=this.object.model.getValue(b.FURNITURE_BRANDING_OFFSET_Z)||0,this._isAnimated=this.object.model.getValue(b.FURNITURE_BRANDING_IS_ANIMATED)||!1),this._imageReady){if(this.checkIfImageChanged())return this._imageReady=!1,this._imageUrl=null,!0}else if(this._imageReady=this.checkIfImageReady(),this._imageReady)return this.checkAndCreateImageForCurrentState(),!0;return t}checkIfImageChanged(){const e=this.object.model.getValue(b.FURNITURE_BRANDING_IMAGE_URL);return e&&e===this._imageUrl?!1:(this._gifCollection,this.asset&&this.asset.disposeAsset(this._imageUrl),!0)}checkIfImageReady(){if(!(this.object&&this.object.model))return!1;const t=this.object.model.getValue(b.FURNITURE_BRANDING_IMAGE_URL);if(!t||this._imageUrl&&this._imageUrl===t)return!1;if(this.object.model.getValue(b.FURNITURE_BRANDING_IMAGE_STATUS)===1){let n=null;if(this._isAnimated){const r=ce.instance.roomEngine.roomContentLoader.getGifCollection(t);r&&(this._gifCollection=r,n=r.textures[0])}else n=wn().getTexture(t);return n?(this.imageReady(n,t),!0):!1}return!1}imageReady(e,t){if(!e){this._imageUrl=null;return}this._imageUrl=t}checkAndCreateImageForCurrentState(){if(this._isAnimated){this.buildAssetsForGif();return}if(!this._imageUrl)return;const e=wn().getTexture(this._imageUrl);if(!e)return;const t=this.object.getState(0);this.addBackgroundAsset(e,t,0)}buildAssetsForGif(){if(!this._gifCollection)return;const e=this._gifCollection.textures,t=this._gifCollection.durations;if(!e.length||!t.length||e.length!==t.length)return;const i=this.object.getState(0);for(let n=0;n<e.length;n++){const r=e[n];t[n],r&&this.addBackgroundAsset(r,i,n)}this._currentFrame=-1,this._totalFrames=e.length}addBackgroundAsset(e,t,i){let n=0,r=0,a=!1,o=!1;switch(t){case zs.STATE_0:n=0,r=0,a=!1,o=!1;break;case zs.STATE_1:n=-e.width,r=0,a=!0,o=!1;break;case zs.STATE_2:n=-e.width,r=-e.height,a=!0,o=!0;break;case zs.STATE_3:n=0,r=-e.height,a=!1,o=!0;break}this.asset.addAsset(`${this._imageUrl}_${i}`,e,!0,n,r,a,o)}getSpriteAssetName(e,t){return this.getLayerTag(e,this._direction,t)===zs.BRANDED_IMAGE&&this._imageUrl?`${this._imageUrl}_${this.getFrameNumber(e,t)}`:super.getSpriteAssetName(e,t)}updateAnimation(e){return!this._imageReady||!this._isAnimated||this._totalFrames<=0?0:1}getFrameNumber(e,t){if(!this._imageReady||!this._isAnimated||this._totalFrames<=0)return 0;if(this.getLayerTag(e,this._direction,t)===zs.BRANDED_IMAGE&&this._imageUrl){let n=this._currentFrame;return n<0?n=0:n+=1,n===this._totalFrames&&(n=0),this._currentFrame=n,this._currentFrame}return 0}};zs.BRANDED_IMAGE="branded_image",zs.STATE_0=0,zs.STATE_1=1,zs.STATE_2=2,zs.STATE_3=3;let Q_=zs;class D5 extends Q_{getLayerXOffset(e,t,i){return super.getLayerXOffset(e,t,i)+this._offsetX}getLayerYOffset(e,t,i){return super.getLayerYOffset(e,t,i)+this._offsetY}getLayerZOffset(e,t,i){return super.getLayerZOffset(e,t,i)+this._offsetZ}}const yo=class yo extends Kt{constructor(){super(),this._stateQueue=[],this._running=!1}setAnimation(e){if(e===-1&&!this._running){this._running=!0,this._stateQueue=[],this._stateQueue.push(yo.ANIMATION_ID_ROLL);return}if(e>=0&&e<=7){if(this._running){this._running=!1,this._stateQueue=[],this._stateQueue.push(yo.ANIMATION_ID_OFFSET_SLOW1),this._stateQueue.push(yo.ANIMATION_ID_OFFSET_SLOW2+e),this._stateQueue.push(e);return}super.setAnimation(e)}}updateAnimation(e){return this.getLastFramePlayed(0)&&this._stateQueue.length&&super.setAnimation(this._stateQueue.shift()),super.updateAnimation(e)}};yo.ANIMATION_ID_OFFSET_SLOW1=20,yo.ANIMATION_ID_OFFSET_SLOW2=9,yo.ANIMATION_ID_ROLL=-1;let qb=yo;class Aye extends za{}const Rr=class Rr extends Kt{getFrameNumber(e,t){const i=this.getLayerTag(e,this.direction,t),n=this.object.getState(0);switch(i){case Rr.SECONDS_SPRITE:return Math.floor(n%60%10);case Rr.TEN_SECONDS_SPRITE:return Math.floor(n%60/10);case Rr.MINUTES_SPRITE:return Math.floor(n/60%10);case Rr.TEN_MINUTES_SPRITE:return Math.floor(n/60/10%10);default:return super.getFrameNumber(e,t)}}get animationId(){return 0}};Rr.SECONDS_SPRITE="seconds_sprite",Rr.TEN_SECONDS_SPRITE="ten_seconds_sprite",Rr.MINUTES_SPRITE="minutes_sprite",Rr.TEN_MINUTES_SPRITE="ten_minutes_sprite";let $b=Rr;class Oye extends Kc{}const n_=class n_ extends Kt{constructor(){super(),this._thumbnailAssetNameNormal=null,this._thumbnailImageNormal=null,this._thumbnailDirection=-1,this._thumbnailChanged=!1,this._hasOutline=!1}get hasThumbnailImage(){return this._thumbnailImageNormal!=null}setThumbnailImages(e){this._thumbnailImageNormal=e,this._thumbnailChanged=!0}updateModel(e){const t=super.updateModel(e);return!this._thumbnailChanged&&this._thumbnailDirection===this.direction?t:(this.refreshThumbnail(),!0)}refreshThumbnail(){this.asset!=null&&(this._thumbnailImageNormal?this.addThumbnailAsset(this._thumbnailImageNormal,64):this.asset.disposeAsset(this.getThumbnailAssetName(64)),this._thumbnailChanged=!1,this._thumbnailDirection=this.direction)}addThumbnailAsset(e,t){let i=0;for(;i<this.totalSprites;){if(this.getLayerTag(t,this.direction,i)===n_.THUMBNAIL){const n=this.cacheSpriteAssetName(t,i,!1)+this.getFrameNumber(t,i),r=this.getAsset(n,i);if(r){const a=this.generateTransformedThumbnail(e,r),o=this.getThumbnailAssetName(t);this.asset.disposeAsset(o),this.asset.addAsset(o,a,!0,r.offsetX,r.offsetY,!1,!1)}return}i++}}generateTransformedThumbnail(e,t){if(this._hasOutline){const r=new kt,a=new kt(u4.WHITE);a.tint=0,a.width=e.width+40,a.height=e.height+40;const o=new kt(e),l=(a.width-o.width)/2,u=(a.height-o.height)/2;o.position.set(l,u),r.addChild(a,o),e=St.generateTexture(r)}e.orig.width=t.width,e.orig.height=t.height;const i=new dt;switch(this.direction){case 2:i.b=-.5,i.d/=1.6,i.ty=.5*e.width;break;case 0:case 4:i.b=.5,i.d/=1.6,i.tx=-.5;break}const n=new kt(e);return n.transform.setFromMatrix(i),St.generateTexture(n)}getSpriteAssetName(e,t){return this._thumbnailImageNormal&&this.getLayerTag(e,this.direction,t)===n_.THUMBNAIL?this.getThumbnailAssetName(e):super.getSpriteAssetName(e,t)}getThumbnailAssetName(e){return this._thumbnailAssetNameNormal=this.getFullThumbnailAssetName(this.object.id,64),this._thumbnailAssetNameNormal}getFullThumbnailAssetName(e,t){return[this._type,e,"thumb",t].join("_")}};n_.THUMBNAIL="THUMBNAIL";let Fv=n_;class L5 extends Fv{constructor(){super(),this._cachedUrl=null,this._hasOutline=!0}updateModel(e){if(this.object){const t=this.getThumbnailURL();if(this._cachedUrl!==t)if(this._cachedUrl=t,this._cachedUrl&&this._cachedUrl!==""){const i=new Image;i.src=t,i.crossOrigin="*",i.onload=()=>{const n=Ne.from(i);n.baseTexture.scaleMode=tn.LINEAR,this.setThumbnailImages(n)}}else this.setThumbnailImages(null)}return super.updateModel(e)}getThumbnailURL(){throw new Error("This method must be overridden!")}}class wye extends L5{constructor(){super(),this._url=null,this._typePrefix=null}getThumbnailURL(){if(!this.object)return null;if(this._url)return this._url;const e=this.object.model.getValue(b.FURNITURE_DATA);if(!e||e==="")return null;this.object.type.indexOf("")>=0&&(this._typePrefix=this.object.type.indexOf("")>=0?"":"postcards/selfie/");let i=JSON.parse(e).w||"";return i=this.buildThumbnailUrl(i),this._url=i,this._url}buildThumbnailUrl(e){return e=e.replace(".png","_small.png"),e.indexOf(".png")===-1&&(e=e+"_small.png"),e}}class nk{constructor(){this._hasMoved=!1,this._age=0,this._isEmitter=!1,this._fade=!1,this._alphaMultiplier=1}init(e,t,i,n,r,a,o,l=!1,u=null,c=!1){this._x=e,this._y=t,this._z=i,this._particleDirection=new rn(n.x,n.y,n.z),this._particleDirection.scaleBy(r),this._lastX=this._x-this._particleDirection.x*a,this._lastY=this._y-this._particleDirection.y*a,this._lastZ=this._z-this._particleDirection.z*a,this._age=0,this._hasMoved=!1,this._lifeTime=o,this._isEmitter=l,this._frames=u,this._fade=c,this._alphaMultiplier=1,this._fadeTime=.5+Math.random()*.5}dispose(){this._particleDirection=null}update(){this._age++,this._age===this._lifeTime&&this.ignite(),this._fade&&this._age/this._lifeTime>this._fadeTime&&(this._alphaMultiplier=(this._lifeTime-this._age)/(this._lifeTime*(1-this._fadeTime)))}getAsset(){return this._frames&&this._frames.length>0?this._frames[this._age%this._frames.length]:null}ignite(){}get fade(){return this._fade}get alphaMultiplier(){return this._alphaMultiplier}get direction(){return this._particleDirection}get age(){return this._age}get isEmitter(){return this._isEmitter}get isAlive(){return this._age<=this._lifeTime}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}get lastX(){return this._lastX}set lastX(e){this._hasMoved=!0,this._lastX=e}get lastY(){return this._lastY}set lastY(e){this._hasMoved=!0,this._lastY=e}get lastZ(){return this._lastZ}set lastZ(e){this._hasMoved=!0,this._lastZ=e}get hasMoved(){return this._hasMoved}toString(){return[this._x,this._y,this._z].toString()}copy(e,t){this._x=e._x*t,this._y=e._y*t,this._z=e._z*t,this._lastX=e._lastX*t,this._lastY=e._lastY*t,this._lastZ=e._lastZ*t,this._hasMoved=e.hasMoved,this._particleDirection=e._particleDirection,this._age=e._age,this._lifeTime=e._lifeTime,this._isEmitter=e._isEmitter,this._fade=e._fade,this._fadeTime=e._fadeTime,this._alphaMultiplier=e._alphaMultiplier}}const To=class To extends nk{constructor(e="",t=-1){super(),this._roomObjectSpriteId=-1,this._timeStep=.1,this._fuseTime=10,this._energy=1,this._hasIgnited=!1,this._burstPulse=1,this._particles=[],this._name=e,this._roomObjectSpriteId=t,this._particleConfigurations=[]}dispose(){for(const e of this._particles)e.dispose();this._particles=null,this._particleConfigurations=null,super.dispose()}setup(e,t,i,n,r,a,o,l,u,c){this._maxNumberOfParticles=e,this._particlesPerFrame=t,this._force=i,this._emitterDirection=n,this._emitterDirection.normalize(),this._gravity=r,this._airFriction=a,this._explosionShape=o,this._fuseTime=u,this._energy=l,this._burstPulse=c,this.reset()}reset(){for(const e of this._particles)e.dispose();this._particles=[],this._emittedParticles=0,this._hasIgnited=!1,this.init(0,0,0,this._emitterDirection,this._force,this._timeStep,this._fuseTime,!0)}copyStateFrom(e,t){super.copy(e,t),this._force=e._force,this._emitterDirection=e._emitterDirection,this._gravity=e._gravity,this._airFriction=e._airFriction,this._explosionShape=e._explosionShape,this._fuseTime=e._fuseTime,this._energy=e._energy,this._burstPulse=e._burstPulse,this._timeStep=e._timeStep,this._hasIgnited=e._hasIgnited}configureParticle(e,t,i,n){const r={};r.lifeTime=e,r.isEmitter=t,r.frames=i,r.fade=n,this._particleConfigurations.push(r)}ignite(){this._hasIgnited=!0,this._emittedParticles<this._maxNumberOfParticles&&this.age>1&&this.releaseParticles(this,this.direction)}releaseParticles(e,t=null){t||(t=new rn);const i=new rn,n=this.getRandomParticleConfiguration();let r=0;for(;r<this._particlesPerFrame;){switch(this._explosionShape){case To.CONE:i.x=this.randomBoolean(.5)?Math.random():-Math.random(),i.y=-(Math.random()+1),i.z=this.randomBoolean(.5)?Math.random():-Math.random();break;case To.PLANE:i.x=this.randomBoolean(.5)?Math.random():-Math.random(),i.y=0,i.z=this.randomBoolean(.5)?Math.random():-Math.random();break;case To.SPHERE:i.x=this.randomBoolean(.5)?Math.random():-Math.random(),i.y=this.randomBoolean(.5)?Math.random():-Math.random(),i.z=this.randomBoolean(.5)?Math.random():-Math.random();break}i.normalize();const a=new nk;let o=0,l=!1,u=!1,c=[];n?(o=Math.floor(Math.random()*n.lifeTime+10),l=n.isEmitter,c=n.frames,u=n.fade):(o=Math.trunc(Math.floor(Math.random()*20+10)),l=!1,c=[]),a.init(e.x,e.y,e.z,i,this._energy,this._timeStep,o,l,c,u),this._particles.push(a),this._emittedParticles++,r++}}getRandomParticleConfiguration(){const e=Math.trunc(Math.floor(Math.random()*this._particleConfigurations.length));return this._particleConfigurations[e]}update(){super.update(),this.accumulateForces(),this.verlet(),this.satisfyConstraints(),!this.isAlive&&this._emittedParticles<this._maxNumberOfParticles&&this.age%this._burstPulse===0&&this.releaseParticles(this,this.direction)}verlet(){if(this.isAlive||this._emittedParticles<this._maxNumberOfParticles){const t=this.x,i=this.y,n=this.z;this.x=(2-this._airFriction)*this.x-(1-this._airFriction)*this.lastX,this.y=(2-this._airFriction)*this.y-(1-this._airFriction)*this.lastY+this._gravity*this._timeStep*this._timeStep,this.z=(2-this._airFriction)*this.z-(1-this._airFriction)*this.lastZ,this.lastX=t,this.lastY=i,this.lastZ=n}const e=[];for(const t of this._particles){t.update();const i=t.x,n=t.y,r=t.z;t.x=(2-this._airFriction)*t.x-(1-this._airFriction)*t.lastX,t.y=(2-this._airFriction)*t.y-(1-this._airFriction)*t.lastY+this._gravity*this._timeStep*this._timeStep,t.z=(2-this._airFriction)*t.z-(1-this._airFriction)*t.lastZ,t.lastX=i,t.lastY=n,t.lastZ=r,(t.y>10||!t.isAlive)&&e.push(t)}for(const t of e)t.isEmitter,this._particles.splice(this._particles.indexOf(t),1),t.dispose()}satisfyConstraints(){}accumulateForces(){for(const e of this._particles);}get particles(){return this._particles}get hasIgnited(){return this._hasIgnited}randomBoolean(e){return Math.random()<e}get roomObjectSpriteId(){return this._roomObjectSpriteId}};To.CONE="cone",To.PLANE="plane",To.SPHERE="sphere";let Qb=To;class Cye{constructor(e){this._canvasId=-1,this._hasIgnited=!1,this._centerX=0,this._centerY=0,this._scaleMultiplier=1,this._blend=1,this._bgColor=4278190080,this._isDone=!1,this._emitters=new li,this._visualization=e,this._blackOverlayAlphaTransform=new rR,this._blackOverlayAlphaTransform.alpha=1,this._particleColorTransform=new rR,this._identityMatrix=new dt,this._translationMatrix=new dt}dispose(){for(const e of this._emitters.getValues())e.dispose();this._emitters=null,this._canvasTexture&&(this._canvasTexture.destroy(),this._canvasTexture=null),this._blackOverlay&&(this._blackOverlay.destroy(),this._blackOverlay=null),this._emptySprite&&(this._emptySprite.destroy(),this._emptySprite=null),this._blackOverlayAlphaTransform=null,this._particleColorTransform=null,this._identityMatrix=null,this._translationMatrix=null}reset(){this._currentEmitter&&this._currentEmitter.reset(),this._currentEmitter=null,this._hasIgnited=!1,this._isDone=!1,this.updateCanvas()}setAnimation(e){this._currentEmitter&&this._currentEmitter.reset(),this._currentEmitter=this._emitters.getValue(e),this._hasIgnited=!1,this._isDone=!1,this.updateCanvas()}updateCanvas(){if(!(!this._currentEmitter||this._canvasId===-1)&&(this._roomSprite=this._visualization.getSprite(this._canvasId),this._roomSprite&&this._roomSprite.texture)){if(this._roomSprite.width<=1||this._roomSprite.height<=1)return;this._canvasTexture&&(this._canvasTexture.width!==this._roomSprite.width||this._canvasTexture.height!==this._roomSprite.height)&&(this._canvasTexture=null),this.clearCanvas(),this._centerX=-this._roomSprite.offsetX,this._centerY=-this._roomSprite.offsetY,this._roomSprite.texture=this._canvasTexture}}getLayerYOffset(e,t,i){return this._currentEmitter&&this._currentEmitter.roomObjectSpriteId===i?this._currentEmitter.y*this._scaleMultiplier:0}controlsSprite(e){return this._currentEmitter?this._currentEmitter.roomObjectSpriteId==e:!1}updateSprites(){!this._currentEmitter||!this._roomSprite||(this._canvasTexture&&this._roomSprite.texture!==this._canvasTexture&&(this._roomSprite.texture=this._canvasTexture),this._hasIgnited&&this._currentEmitter.roomObjectSpriteId>=0&&(this._visualization.getSprite(this._currentEmitter.roomObjectSpriteId).visible=!1))}updateAnimation(){if(!this._currentEmitter||!this._roomSprite||this._isDone)return;const e=10;!this._hasIgnited&&this._currentEmitter.hasIgnited&&(this._hasIgnited=!0);const t=this._offsetY*this._scaleMultiplier;if(this._currentEmitter.update(),this._hasIgnited){this._currentEmitter.roomObjectSpriteId>=0&&(this._visualization.getSprite(this._currentEmitter.roomObjectSpriteId).visible=!1),this._canvasTexture||this.updateCanvas(),this.clearCanvas();for(const i of this._currentEmitter.particles){const n=this._centerX+(i.x-i.z)*e/10*this._scaleMultiplier,r=this._centerY-t+(i.y+(i.x+i.z)/2)*e/10*this._scaleMultiplier,a=i.getAsset();if(a&&a.texture)if(i.fade&&i.alphaMultiplier<1){this._translationMatrix.identity(),this._translationMatrix.translate(n+a.offsetX,r+a.offsetY);const o=new kt(a.texture);this._particleColorTransform.alpha=i.alphaMultiplier,o.filters=[this._particleColorTransform],oi.instance.renderer.render(o,{renderTexture:this._canvasTexture,transform:this._translationMatrix,clear:!1})}else{const o=new Bm(n+a.offsetX,r+a.offsetY),l=new kt(a.texture);l.x=o.x,l.y=o.y,oi.instance.renderer.render(l,{renderTexture:this._canvasTexture,clear:!1})}else{const o=new kt(Ne.WHITE);o.tint=16777215,o.x=n-1,o.y=r-1,o.width=2,o.height=2,oi.instance.renderer.render(o,{renderTexture:this._canvasTexture,clear:!1})}}if(!this._currentEmitter.particles.length){this._isDone=!0;return}}}parseData(e){this._size=e.size,this._canvasId=e.canvasId!==void 0?e.canvasId:-1,this._offsetY=e.offsetY!==void 0?e.offsetY:10,this._scaleMultiplier=this._size/64,this._blend=e.blend!==void 0?e.blend:1,this._blend=Math.min(this._blend,1),this._blackOverlayAlphaTransform.alpha=this._blend;const t=e.bgColor!==void 0?e.bgColor:"0";if(this._bgColor=parseInt(t,16)||0,!(!e.emitters||!e.emitters.length))for(const i of e.emitters){const n=i.id,r=i.name,a=i.spriteId,o=new Qb(r,a);this._emitters.add(n,o);const l=i.maxNumParticles,u=i.particlesPerFrame,c=i.burstPulse!==void 0?i.burstPulse:1,h=i.fuseTime,f=i.simulation.force,d=i.simulation.direction,_=i.simulation.gravity,g=i.simulation.airFriction,p=i.simulation.shape,m=i.simulation.energy;for(const v of i.particles){const E=v.lifeTime,y=v.isEmitter||!1,T=v.fade||!1,w=[];for(const C of v.frames)w.push(this._visualization.asset.getAsset(C));o.configureParticle(E,y,w,T)}o.setup(l,u,f,new rn(0,d,0),_,g,p,m,h,c)}}copyStateFrom(e){let t=0;e._emitters&&e._currentEmitter&&(t=e._emitters.getKey(e._emitters.getValues().indexOf(e._currentEmitter))),this.setAnimation(t),this._currentEmitter&&this._currentEmitter.copyStateFrom(e._currentEmitter,e._size/this._size),this._canvasTexture=null}clearCanvas(){this._emptySprite||(this._emptySprite=new kt(Ne.EMPTY),this._emptySprite.alpha=0),this._canvasTexture?oi.instance.renderer.render(this._emptySprite,{renderTexture:this._canvasTexture,clear:!0}):this._canvasTexture=Pi.create({width:this._roomSprite.width,height:this._roomSprite.height})}}class U5 extends Kt{dispose(){if(super.dispose(),this._currentParticleSystem=null,this._particleSystems){for(const e of this._particleSystems.getValues())e.dispose();this._particleSystems=null}}updateObject(e,t){if(super.updateObject(e,t)){if(!this._particleSystems)this.readDefinition(),this._particleSystems?this._currentParticleSystem=this._particleSystems.getValue(e):le.log("ERROR Particle systems could not be read!",this.object.type);else if(e!==this._scale||this._particleSystems.getValue(e)!==this._currentParticleSystem){const i=this._particleSystems.getValue(e);i.copyStateFrom(this._currentParticleSystem),this._currentParticleSystem&&this._currentParticleSystem.reset(),this._currentParticleSystem=i}return!0}return!1}updateSprites(e,t,i){super.updateSprites(e,t,i),this._currentParticleSystem&&this._currentParticleSystem.updateSprites()}updateAnimation(e){return this._currentParticleSystem&&this._currentParticleSystem.updateAnimation(),super.updateAnimation(e)}setAnimation(e){this._currentParticleSystem&&this._currentParticleSystem.setAnimation(e),super.setAnimation(e)}getLayerYOffset(e,t,i){return this._currentParticleSystem&&this._currentParticleSystem.controlsSprite(i)?this._currentParticleSystem.getLayerYOffset(e,t,i):super.getLayerYOffset(e,t,i)}readDefinition(){if(!this.object||!this.object.model)return!1;const e=this.object.model.getValue(b.FURNITURE_FIREWORKS_DATA);if(!e||!e.length)return!1;this._particleSystems=new li;for(const t of e){const i=t.size,n=new Cye(this);n.parseData(t),this._particleSystems.add(i,n)}return!0}}const Io=class Io extends U5{constructor(){super(...arguments),this._packetType=0,this._ribbonType=0,this._lastAnimationId=0}update(e,t,i,n){this.updatePresentWrap(),super.update(e,t,i,n)}updatePresentWrap(){if(!this.object)return;const e=1e3,t=this.object.model.getValue(b.FURNITURE_EXTRAS),i=parseInt(t),n=Math.floor(i/e),r=i%e;this._packetType=n>Io.MAX_PACKET_TYPE_VALUE?0:n,this._ribbonType=r>Io.MAX_RIBBON_TYPE_VALUE?0:r}getFrameNumber(e,t){if(this._lastAnimationId===Io.PRESENT_DEFAULT_STATE){if(t<=1)return this._packetType;if(t===2)return this._ribbonType}return super.getFrameNumber(e,t)}getSpriteAssetName(e,t){const i=this.getValidSize(e);let n=this._type,r="";t<this.spriteCount-1?r=String.fromCharCode(97+t):r="sd";const a=this.getFrameNumber(e,t);return n=n+("_"+i+"_"+r+"_"+this.direction),n=n+("_"+a),n}setAnimation(e){this._lastAnimationId=e,super.setAnimation(e)}};Io.PRESENT_DEFAULT_STATE=0,Io.MAX_PACKET_TYPE_VALUE=9,Io.MAX_RIBBON_TYPE_VALUE=11;let Zb=Io;class Mye extends za{constructor(){super(...arguments),this._packetType=0,this._ribbonType=0}update(e,t,i,n){this.updatePresentWrap(),super.update(e,t,i,n)}updatePresentWrap(){if(!this.object)return;const e=this.object.model.getValue(b.FURNITURE_EXTRAS),t=1e3,i=parseInt(e);this._packetType=Math.floor(i/t),this._ribbonType=i%t}getFrameNumber(e,t){return t<=1?this._packetType:this._ribbonType}getSpriteAssetName(e,t){const i=this.getValidSize(e);let n=this._type,r="";t<this.spriteCount-1?r=String.fromCharCode(97+t):r="sd";const a=this.getFrameNumber(e,t);return n=n+("_"+i+"_"+r+"_"+this.direction),n=n+("_"+a),n}}const ls=class ls extends Kt{constructor(){super(),this._color1=ls.DEFAULT_COLOR_1,this._color2=ls.DEFAULT_COLOR_2,this._badgeAssetNameNormalScale="",this._badgeAssetNameSmallScale=""}updateModel(e){const t=super.updateModel(e);if(this._badgeAssetNameNormalScale===""){const r=this.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_ASSET_NAME);r&&(this._badgeAssetNameNormalScale=r,this._badgeAssetNameSmallScale=this._badgeAssetNameNormalScale+"_32")}const i=this.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_COLOR_1);this._color1=i||ls.DEFAULT_COLOR_1;const n=this.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_COLOR_2);return this._color2=n||ls.DEFAULT_COLOR_2,t}getLayerColor(e,t,i){switch(this.getLayerTag(e,this._direction,t)){case ls.PRIMARY_COLOUR_SPRITE_TAG:return this._color1;case ls.SECONDARY_COLOUR_SPRITE_TAG:return this._color2}return super.getLayerColor(e,t,i)}getSpriteAssetName(e,t){return this.getLayerTag(e,this._direction,t)===ls.BADGE?e===32?this._badgeAssetNameSmallScale:this._badgeAssetNameNormalScale:super.getSpriteAssetName(e,t)}getLibraryAssetNameForSprite(e,t){return t.tag===ls.BADGE?"%group.badge.url%"+t.libraryAssetName.replace("badge_",""):super.getLibraryAssetNameForSprite(e,t)}};ls.PRIMARY_COLOUR_SPRITE_TAG="COLOR1",ls.SECONDARY_COLOUR_SPRITE_TAG="COLOR2",ls.BADGE="BADGE",ls.DEFAULT_COLOR_1=15658734,ls.DEFAULT_COLOR_2=4934475;let Jb=ls;const Wn=class Wn extends Fv{updateModel(e){const t=super.updateModel(e);if(!this.hasThumbnailImage){const r=this.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_ASSET_NAME);r&&r.length&&this.setThumbnailImages(this.getBitmapAsset(r))}const i=this.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_COLOR_1);this._color1=i||Wn.DEFAULT_COLOR_1;const n=this.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_COLOR_2);return this._color2=n||Wn.DEFAULT_COLOR_2,t}generateTransformedThumbnail(e,t){const n=new dt,r=t.width/e.width;switch(this.direction){case 2:n.a=r,n.b=-.5*r,n.c=0,n.d=r*1.1,n.tx=0,n.ty=.5*r*e.width;break;case 0:case 4:n.a=r,n.b=.5*r,n.c=0,n.d=r*1.1,n.tx=0,n.ty=0;break;default:n.a=r,n.b=0,n.c=0,n.d=r,n.tx=0,n.ty=0}const a=new kt(e);return a.transform.setFromMatrix(n),a.position.set(0),St.generateTexture(a)}getLayerColor(e,t,i){switch(this.getLayerTag(e,this._direction,t)){case Wn.PRIMARY_COLOUR_SPRITE_TAG:return this._color1;case Wn.SECONDARY_COLOUR_SPRITE_TAG:return this._color2}return super.getLayerColor(e,t,i)}getLibraryAssetNameForSprite(e,t){return t.tag===Wn.THUMBNAIL&&this.object&&this.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_ASSET_NAME)?"%group.badge.url%"+this.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_ASSET_NAME):super.getLibraryAssetNameForSprite(e,t)}getBitmapAsset(e){const t=this.asset.getAsset(e);return!t||!t.texture?null:t.texture}};Wn.PRIMARY_COLOUR_SPRITE_TAG="COLOR1",Wn.SECONDARY_COLOUR_SPRITE_TAG="COLOR2",Wn.DEFAULT_COLOR_1=15658734,Wn.DEFAULT_COLOR_2=4934475;let eA=Wn;const Yn=class Yn extends Kt{constructor(){super(),this._stateQueue=[],this._running=!1}setAnimation(e){if(e===-1&&!this._running){this._running=!0,this._stateQueue=[],this._stateQueue.push(Yn.ANIMATION_ID_START_ROLL),this._stateQueue.push(Yn.ANIMATION_ID_ROLL);return}if(e>0&&e<=Yn.ANIMATION_ID_OFFSET_SLOW1){if(this._running){this._running=!1,this._stateQueue=[],this._stateQueue.push(Yn.ANIMATION_ID_OFFSET_SLOW1+e),this._stateQueue.push(Yn.ANIMATION_ID_OFFSET_SLOW2+e),this._stateQueue.push(e);return}super.setAnimation(e)}}updateAnimation(e){return this.getLastFramePlayed(1)&&this.getLastFramePlayed(2)&&this.getLastFramePlayed(3)&&this._stateQueue.length&&super.setAnimation(this._stateQueue.shift()),super.updateAnimation(e)}};Yn.ANIMATION_ID_OFFSET_SLOW1=10,Yn.ANIMATION_ID_OFFSET_SLOW2=20,Yn.ANIMATION_ID_START_ROLL=31,Yn.ANIMATION_ID_ROLL=32;let tA=Yn;class Nye extends D5{constructor(){super(...arguments),this._needsTransform=!0}transformGifTextures(e){if(!this._gifCollection)return;const t=this._gifCollection.textures;if(t.length){for(let i=0;i<t.length;i++){const n=t[i];if(!n||!this.getAsset(`${this._imageUrl}_${i}`))continue;const a=1.1,o=new dt,l=e.width/n.width;switch(this.direction){case 2:o.a=l,o.b=-.5*l,o.c=0,o.d=l*a,o.tx=0,o.ty=.5*l*n.width;break;case 0:case 4:o.a=l,o.b=.5*l,o.c=0,o.d=l*a,o.tx=0,o.ty=0;break;default:o.a=l,o.b=0,o.c=0,o.d=l,o.tx=0,o.ty=0}const u=new kt(n),c=Pi.create({width:e.width+o.tx,height:e.height+o.ty});oi.instance.renderer.render(u,{renderTexture:c,clear:!0,transform:o}),this.asset.disposeAsset(`${this._imageUrl}_${i}`),this.asset.addAsset(`${this._imageUrl}_${i}`,c,!0,e.x,e.y,e.flipH,e.flipV)}this._needsTransform=!1}}generateTransformedImage(e,t){const n=new dt,r=t.width/e.width;switch(this.direction){case 2:n.a=r,n.b=-.5*r,n.c=0,n.d=r*1.1,n.tx=0,n.ty=.5*r*e.width;break;case 0:case 4:n.a=r,n.b=.5*r,n.c=0,n.d=r*1.1,n.tx=0,n.ty=0;break;default:n.a=r,n.b=0,n.c=0,n.d=r,n.tx=0,n.ty=0}const a=new kt(e),o=Pi.create({width:t.width+n.tx,height:t.height+n.ty});oi.instance.renderer.render(a,{renderTexture:o,clear:!0,transform:n}),this.asset.disposeAsset(`${this._imageUrl}_0`),this.asset.addAsset(`${this._imageUrl}_0`,o,!0,a.x,a.y,t.flipH,t.flipV),this._needsTransform=!1}checkAndCreateImageForCurrentState(){super.checkAndCreateImageForCurrentState(),this._needsTransform=!0}getSpriteAssetName(e,t){return this.getLayerTag(e,this._direction,t)===Q_.BRANDED_IMAGE&&this._imageUrl?(this._needsTransform&&(this._isAnimated?this.transformGifTextures(this.getAsset(super.getSpriteAssetName(e,t))):this.generateTransformedImage(wn().getTexture(this._imageUrl),this.getAsset(super.getSpriteAssetName(e,t)))),`${this._imageUrl}_${this.getFrameNumber(e,t)}`):super.getSpriteAssetName(e,t)}}class iA extends Fr{constructor(){super(),this._avatarData=new Dv}dispose(){super.dispose(),this._avatarData&&(this._avatarData.dispose(),this._avatarData=null)}createAvatarImage(e,t,i=null,n=null,r=null){return this._avatarData.createAvatarImage(e,t,i,n,r)}set avatarManager(e){this._avatarData.avatarManager=e}}const Ec=class Ec extends za{constructor(){super(),this._mannequinScale=-1,this._figure=null,this._gender=null,this._dynamicAssetName=null,this._needsUpdate=!1,this._placeHolderFigure="hd-99999-99998",this._disposed=!1}initialize(e){return e instanceof iA?super.initialize(e):!1}dispose(){this._disposed||(this._disposed=!0,this._dynamicAssetName&&this.asset&&(this.asset.disposeAsset(this._dynamicAssetName),this._dynamicAssetName=null),super.dispose())}updateObject(e,t){const i=super.updateObject(e,t);return i&&this._mannequinScale!==e&&(this._mannequinScale=e,this.updateAvatar()),i}updateModel(e){let t=super.updateModel(e);if(t){const i=this.object.model.getValue(b.FURNITURE_MANNEQUIN_FIGURE)||null;i&&(this._figure=i+"."+this._placeHolderFigure,this._gender=this.object.model.getValue(b.FURNITURE_MANNEQUIN_GENDER)||null,this.updateAvatar())}return t=t||this._needsUpdate,this._needsUpdate=!1,t}updateAvatar(e=!1){if(!this.avatarExists()||e){const t=this.data.createAvatarImage(this._figure,this._mannequinScale,this._gender,this);t&&(t.setDirection(_s.FULL,this.direction),this._dynamicAssetName&&this.asset.disposeAsset(this._dynamicAssetName),this.asset.addAsset(this.getAvatarAssetName(),t.getImage(_s.FULL,!1,1,!1),!0),this._dynamicAssetName=this.getAvatarAssetName(),this._needsUpdate=!0,t.dispose())}}avatarExists(){return this._figure&&this.getAsset(this.getAvatarAssetName())!==null}getAvatarAssetName(){return"mannequin_"+this._figure+"_"+this._mannequinScale+"_"+this.direction+"_"+this.object.id}resetFigure(e){e===this._figure&&this.updateAvatar(!0)}getSpriteAssetName(e,t){const i=this.getLayerTag(e,this.direction,t);return this._figure&&i===Ec.AVATAR_IMAGE_SPRITE_TAG&&this.avatarExists()?this.getAvatarAssetName():super.getSpriteAssetName(e,t)}getLayerXOffset(e,t,i){return this.getLayerTag(e,t,i)===Ec.AVATAR_IMAGE_SPRITE_TAG&&this.avatarExists()?-this.getSprite(i).width/2:super.getLayerXOffset(e,t,i)}getLayerYOffset(e,t,i){return this.getLayerTag(e,t,i)===Ec.AVATAR_IMAGE_SPRITE_TAG&&this.avatarExists()?-this.getSprite(i).height:super.getLayerYOffset(e,t,i)}get disposed(){return this._disposed}get data(){return this._data}};Ec.AVATAR_IMAGE_SPRITE_TAG="avatar_image";let sA=Ec;const Hs=class Hs extends Kt{constructor(){super(),this._animOffsetIndex=[]}updateAnimation(e){this._animSpeedIndex||this.initItems(e);let t=this.getSprite(2);return t&&(this._animOffsetIndex[0]=this.getNewPoint(e,0)),t=this.getSprite(3),t&&(this._animOffsetIndex[1]=this.getNewPoint(e,1)),super.updateAnimation(e)}getNewPoint(e,t){let i=0,n=this._animPhaseIndex[t],r=this._animDirectionIndex[t];const a=this._animSpeedIndex[t],o=this._animFactorIndex[t];let l=1;e==32?(i=Hs.AREA_DIAMETER_SMALL,l=.5):i=Hs.AREA_DIAMETER_LARGE;const u=n+r*a;Math.abs(u)>=i&&(r>0?n=n-(u-i):n=n+(-i-u),r=-r,this._animDirectionIndex[t]=r);const c=(i-Math.abs(n))*o;let h=r*Math.sin(Math.abs(n/4))*c;return r>0?h=h-c:h=h+c,n=n+r*a*l,this._animPhaseIndex[t]=n,Math.trunc(h)==0&&(this._animFactorIndex[t]=this.getRandomAmplitudeFactor()),new Bm(n,h)}initItems(e){let t;e===32?t=Hs.AREA_DIAMETER_SMALL:t=Hs.AREA_DIAMETER_LARGE,this._animPhaseIndex=[],this._animPhaseIndex.push(Math.random()*t*1.5),this._animPhaseIndex.push(Math.random()*t*1.5),this._animDirectionIndex=[],this._animDirectionIndex.push(1),this._animDirectionIndex.push(-1),this._animSpeedIndex=[],this._animSpeedIndex.push(Hs.ANIM_SPEED_FAST),this._animSpeedIndex.push(Hs.ANIM_SPEED_SLOW),this._animFactorIndex=[],this._animFactorIndex.push(this.getRandomAmplitudeFactor()),this._animFactorIndex.push(this.getRandomAmplitudeFactor())}getLayerXOffset(e,t,i){return(i===2||i===3)&&this._animOffsetIndex.length==2?this._animOffsetIndex[i-2].x:super.getLayerXOffset(e,t,i)}getLayerYOffset(e,t,i){return(i===2||i===3)&&this._animOffsetIndex.length==2?this._animOffsetIndex[i-2].y:super.getLayerYOffset(e,t,i)}getRandomAmplitudeFactor(){return Math.random()*30/100+.15}};Hs.UPDATE_INTERVAL=2,Hs.AREA_DIAMETER_SMALL=15,Hs.AREA_DIAMETER_LARGE=31,Hs.ANIM_SPEED_FAST=2,Hs.ANIM_SPEED_SLOW=1;let nA=Hs;const DE=class DE{constructor(e,t,i,n,r,a){this._name=e,this._index=t,this._radius=i,this._arcSpeed=n*Math.PI*2/360,this._arcOffset=r*Math.PI*2/360,this._height=a,this._position=0,this._positionVector=new M(0,0,0),this._children=[]}dispose(){for(;this._children.length>0;)this._children.shift().dispose()}update(e,t,i){this._position=this._position+this._arcSpeed/DE.SYSTEM_TEMPO,e[this._index]=this.getPositionVector(t,i);for(const n of this._children)n.update(e,this._positionVector,i)}getPositionVector(e,t){const i=this._radius*Math.cos(this._position+this._arcOffset),n=this._radius*Math.sin(this._position+this._arcOffset);return this._positionVector.x=(i-n)*(t/2),this._positionVector.y=(n+i)*(t/2)*.5-this._height*(t/2),this._positionVector.z=-Math.trunc(4*(i+n)-.7),e&&this._positionVector.add(e),this._positionVector}addChild(e){this._children.indexOf(e)>=0||this._children.push(e)}hasChild(e){return!!this.getChild(e)}getChild(e){for(const t of this._children){if(t.name===e)return t;if(t.hasChild(e))return t.getChild(e)}return null}get name(){return this._name}};DE.SYSTEM_TEMPO=30;let rA=DE;class Pye extends Kt{constructor(){super(),this._offsetArray=[],this._rootPosition=new M}dispose(){if(this._planetIndex)for(;this._planetIndex.length>0;)this._planetIndex.shift().dispose();this._planetIndex=null,this._planetNameIndex=null}updateAnimation(e){if(!this._planetIndex&&this.spriteCount>0&&!this.processPlanets())return 0;if(this._planetIndex){for(const t of this._planetIndex)t.update(this._offsetArray,this._rootPosition,e);return super.updateAnimation(e)}return 0}getLayerXOffset(e,t,i){return this._offsetArray[i]?this._offsetArray[i].x:super.getLayerXOffset(e,t,i)}getLayerYOffset(e,t,i){return this._offsetArray[i]?this._offsetArray[i].y:super.getLayerYOffset(e,t,i)}getLayerZOffset(e,t,i){return this._offsetArray[i]?this._offsetArray[i].z:super.getLayerZOffset(e,t,i)}processPlanets(){if(!this.object||!this.object.model)return;const e=this.object.model.getValue(b.FURNITURE_PLANETSYSTEM_DATA);if(!e)return!1;this._planetIndex=[],this._planetNameIndex=[];for(const t of e)this.getSprite(t.id)&&this.addPlanet(t.name,t.id,t.parent,t.radius||0,t.arcSpeed||0,t.arcOffset||0,t.height||0);return!0}addPlanet(e,t,i,n,r,a,o){if(!this._planetIndex)return;const l=new rA(e,t,n,r,a,o),u=this.getPlanet(i);u?u.addChild(l):(this._planetIndex.push(l),this._planetNameIndex.push(e))}getPlanet(e){for(const t of this._planetIndex){if(t.name===e)return t;if(t.hasChild(e))return t.getChild(e)}return null}}class kye extends Kt{}const ha=class ha extends Kt{constructor(){super(),this._stateQueue=[],this._animationCounter=-1}setAnimation(e){return e===ha.ANIMATION_ID_ROLL_ONCE&&(this._stateQueue=[],this._stateQueue.push(ha.ANIMATION_ID_NORMAL),this._animationCounter=ha.ANIMATION_DURATION),super.setAnimation(e)}updateAnimation(e){return this._animationCounter>0&&this._animationCounter--,this._animationCounter||this._stateQueue.length&&super.setAnimation(this._stateQueue.shift()),super.updateAnimation(e)}usesAnimationResetting(){return!0}};ha.ANIMATION_ID_ROLL=3,ha.ANIMATION_ID_ROLL_ONCE=2,ha.ANIMATION_ID_NORMAL=1,ha.ANIMATION_DURATION=15;let aA=ha;class xye extends Kt{usesAnimationResetting(){return!0}}class Dye extends Q_{imageReady(e,t){super.imageReady(e,t),e&&this.setImageOffset(e.width,e.height)}setImageOffset(e,t){const i=new k5;i.setDirection(1,0,-t),i.setDirection(3,0,0),i.setDirection(5,-e,0),i.setDirection(7,-e,-t),i.setDirection(4,-e/2,-t/2),this._imageOffset=i}getLayerXOffset(e,t,i){if(this._imageOffset){const n=this._imageOffset.getXOffset(t,0);if(n!==void 0)return n+this._offsetX}return super.getLayerXOffset(e,t,i)+this._offsetX}getLayerYOffset(e,t,i){if(this._imageOffset){const n=this._imageOffset.getYOffset(t,0);if(n!==void 0)return n+this._offsetY}return super.getLayerYOffset(e,t,i)+this._offsetY}getLayerZOffset(e,t,i){return super.getLayerZOffset(e,t,i)+-this._offsetZ}getLayerIgnoreMouse(e,t,i){return!0}}const Sr=class Sr extends Kt{getFrameNumber(e,t){const i=this.getLayerTag(e,this.direction,t),n=this.object.getState(0);switch(i){case Sr.ONES_SPRITE:return Math.floor(n%10);case Sr.TENS_SPRITE:return Math.floor(n/10%10);case Sr.HUNDREDS_SPRITE:return Math.floor(n/100%10);case Sr.THOUSANDS_SPRITE:return Math.floor(n/1e3%10);default:return super.getFrameNumber(e,t)}}};Sr.ONES_SPRITE="ones_sprite",Sr.TENS_SPRITE="tens_sprite",Sr.HUNDREDS_SPRITE="hundreds_sprite",Sr.THOUSANDS_SPRITE="thousands_sprite";let oA=Sr;class Lye extends Kt{constructor(){super(...arguments),this._internalFrameIncreaseCounter=0}updateAnimations(e){return this._internalFrameIncreaseCounter=this._internalFrameIncreaseCounter+this.object.model.getValue(b.FURNITURE_SOUNDBLOCK_RELATIVE_ANIMATION_SPEED),this._frameIncrease=this._internalFrameIncreaseCounter,this._internalFrameIncreaseCounter=this._internalFrameIncreaseCounter-this._frameIncrease,super.updateAnimations(e)}}class Uye extends za{getLayerColor(e,t,i){return this._data?this._data.getLayerColor(e,t,i):ju.DEFAULT_COLOR}}const Li=class Li extends Kt{constructor(){super(),this._stateQueue=[],this._running=!1,super.setAnimation(Li.ANIMATION_ID_OFF)}setAnimation(e){if(e===0&&!this._running){this._running=!0,this._stateQueue=[],this._stateQueue.push(Li.ANIMATION_ID_START_ROLL),this._stateQueue.push(Li.ANIMATION_ID_ROLL);return}if(e>0&&e<=Li.ANIMATION_ID_OFFSET_SLOW2){if(this._running){this._running=!1,this._stateQueue=[],this.direction===2?(this._stateQueue.push(Li.ANIMATION_ID_OFFSET_SLOW1+5),this._stateQueue.push(Li.ANIMATION_ID_OFFSET_SLOW2+5)):(this._stateQueue.push(Li.ANIMATION_ID_OFFSET_SLOW1+e),this._stateQueue.push(Li.ANIMATION_ID_OFFSET_SLOW2+e)),this._stateQueue.push(Li.ANIMATION_ID_OFF);return}super.setAnimation(Li.ANIMATION_ID_OFF)}}updateAnimation(e){return this.getLastFramePlayed(11)&&this._stateQueue.length&&super.setAnimation(this._stateQueue.shift()),super.updateAnimation(e)}};Li.ANIMATION_ID_OFFSET_SLOW1=20,Li.ANIMATION_ID_OFFSET_SLOW2=10,Li.ANIMATION_ID_START_ROLL=31,Li.ANIMATION_ID_ROLL=32,Li.ANIMATION_ID_OFF=30;let lA=Li;const Ws=class Ws extends Kt{updateObject(e,t){return super.updateObject(e,t),!0}getFrameNumber(e,t){const i=this.object.model.getValue(b.FURNITURE_VOTE_COUNTER_COUNT);switch(this.getLayerTag(e,this.direction,t)){case Ws.ONES_SPRITE:return i%10;case Ws.TENS_SPRITE:return i/10%10;case Ws.HUNDREDS_SPRITE:return i/100%10;default:return super.getFrameNumber(e,t)}}getLayerAlpha(e,t,i){if(this.object.model.getValue(b.FURNITURE_VOTE_COUNTER_COUNT)===Ws.HIDE_COUNTER_SCORE)switch(this.getLayerTag(e,t,i)){case Ws.ONES_SPRITE:case Ws.TENS_SPRITE:case Ws.HUNDREDS_SPRITE:return 0}return super.getLayerAlpha(e,t,i)}};Ws.ONES_SPRITE="ones_sprite",Ws.TENS_SPRITE="tens_sprite",Ws.HUNDREDS_SPRITE="hundreds_sprite",Ws.HIDE_COUNTER_SCORE=-1;let uA=Ws;const us=class us extends Kt{getFrameNumber(e,t){const i=this.object.model.getValue(b.FURNITURE_VOTE_MAJORITY_RESULT);switch(this.getLayerTag(e,this.direction,t)){case us.ONES_SPRITE:return i%10;case us.TENS_SPRITE:return i/10%10;case us.HUNDREDS_SPRITE:return i/100%10;default:return super.getFrameNumber(e,t)}}getLayerAlpha(e,t,i){const n=this.object.model.getValue(b.FURNITURE_VOTE_MAJORITY_RESULT);if(us.HIDE_RESULTS_STATES.indexOf(this.object.getState(0))!==-1||n===us.HIDE_RESULTS_VALUE)switch(this.getLayerTag(e,t,i)){case us.ONES_SPRITE:case us.TENS_SPRITE:case us.HUNDREDS_SPRITE:return 0}return super.getLayerAlpha(e,t,i)}};us.ONES_SPRITE="ones_sprite",us.TENS_SPRITE="tens_sprite",us.HUNDREDS_SPRITE="hundreds_sprite",us.HIDE_RESULTS_STATES=[-1,1],us.HIDE_RESULTS_VALUE=-1;let hA=us;class Fye extends Kt{}const LE=class LE extends L5{getThumbnailURL(){if(!this.object)return null;const e=this.object.model.getValue(b.FURNITURE_DATA);return e&&e[LE.THUMBNAIL_URL]||null}};LE.THUMBNAIL_URL="THUMBNAIL_URL";let cA=LE;/*!
* @pixi/text - v6.5.10
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
*
* @pixi/text is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var fA=function(s,e){return fA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},fA(s,e)};function Bye(s,e){fA(s,e);function t(){this.constructor=s}s.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Bv;(function(s){s[s.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",s[s.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(Bv||(Bv={}));var _T={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:Bv.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},Gye=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],rk=function(){function s(e){this.styleID=0,this.reset(),pT(this,e,e)}return s.prototype.clone=function(){var e={};return pT(e,this,_T),new s(e)},s.prototype.reset=function(){pT(this,_T,_T)},Object.defineProperty(s.prototype,"align",{get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"breakWords",{get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(e){var t=gT(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fill",{get:function(){return this._fill},set:function(e){var t=gT(e);this._fill!==t&&(this._fill=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(e){Vye(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"leading",{get:function(){return this._leading},set:function(e){this._leading!==e&&(this._leading=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"stroke",{get:function(){return this._stroke},set:function(e){var t=gT(e);this._stroke!==t&&(this._stroke=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"trim",{get:function(){return this._trim},set:function(e){this._trim!==e&&(this._trim=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)},enumerable:!1,configurable:!0}),s.prototype.toFontString=function(){var e=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(var i=t.length-1;i>=0;i--){var n=t[i].trim();!/([\"\'])[^\'\"]+\1/.test(n)&&Gye.indexOf(n)<0&&(n='"'+n+'"'),t[i]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+t.join(",")},s}();function ak(s){return typeof s=="number"?TU(s):(typeof s=="string"&&s.indexOf("0x")===0&&(s=s.replace("0x","#")),s)}function gT(s){if(Array.isArray(s)){for(var e=0;e<s.length;++e)s[e]=ak(s[e]);return s}else return ak(s)}function Vye(s,e){if(!Array.isArray(s)||!Array.isArray(e)||s.length!==e.length)return!1;for(var t=0;t<s.length;++t)if(s[t]!==e[t])return!1;return!0}function pT(s,e,t){for(var i in t)Array.isArray(e[i])?s[i]=e[i].slice():s[i]=e[i]}var gp={willReadFrequently:!0},fl=function(){function s(e,t,i,n,r,a,o,l,u){this.text=e,this.style=t,this.width=i,this.height=n,this.lines=r,this.lineWidths=a,this.lineHeight=o,this.maxLineWidth=l,this.fontProperties=u}return s.measureText=function(e,t,i,n){n===void 0&&(n=s._canvas),i=i??t.wordWrap;var r=t.toFontString(),a=s.measureFont(r);a.fontSize===0&&(a.fontSize=t.fontSize,a.ascent=t.fontSize);var o=n.getContext("2d",gp);o.font=r;for(var l=i?s.wordWrap(e,t,n):e,u=l.split(/(?:\r\n|\r|\n)/),c=new Array(u.length),h=0,f=0;f<u.length;f++){var d=o.measureText(u[f]).width+(u[f].length-1)*t.letterSpacing;c[f]=d,h=Math.max(h,d)}var _=h+t.strokeThickness;t.dropShadow&&(_+=t.dropShadowDistance);var g=t.lineHeight||a.fontSize+t.strokeThickness,p=Math.max(g,a.fontSize+t.strokeThickness)+(u.length-1)*(g+t.leading);return t.dropShadow&&(p+=t.dropShadowDistance),new s(e,t,_,p,u,c,g+t.leading,h,a)},s.wordWrap=function(e,t,i){i===void 0&&(i=s._canvas);for(var n=i.getContext("2d",gp),r=0,a="",o="",l=Object.create(null),u=t.letterSpacing,c=t.whiteSpace,h=s.collapseSpaces(c),f=s.collapseNewlines(c),d=!h,_=t.wordWrapWidth+u,g=s.tokenize(e),p=0;p<g.length;p++){var m=g[p];if(s.isNewline(m)){if(!f){o+=s.addLine(a),d=!h,a="",r=0;continue}m=" "}if(h){var v=s.isBreakingSpace(m),E=s.isBreakingSpace(a[a.length-1]);if(v&&E)continue}var y=s.getFromCache(m,u,l,n);if(y>_)if(a!==""&&(o+=s.addLine(a),a="",r=0),s.canBreakWords(m,t.breakWords))for(var T=s.wordWrapSplit(m),w=0;w<T.length;w++){for(var C=T[w],N=1;T[w+N];){var P=T[w+N],k=C[C.length-1];if(!s.canBreakChars(k,P,m,w,t.breakWords))C+=P;else break;N++}w+=C.length-1;var L=s.getFromCache(C,u,l,n);L+r>_&&(o+=s.addLine(a),d=!1,a="",r=0),a+=C,r+=L}else{a.length>0&&(o+=s.addLine(a),a="",r=0);var j=p===g.length-1;o+=s.addLine(m,!j),d=!1,a="",r=0}else y+r>_&&(d=!1,o+=s.addLine(a),a="",r=0),(a.length>0||!s.isBreakingSpace(m)||d)&&(a+=m,r+=y)}return o+=s.addLine(a,!1),o},s.addLine=function(e,t){return t===void 0&&(t=!0),e=s.trimRight(e),e=t?e+`
`:e,e},s.getFromCache=function(e,t,i,n){var r=i[e];if(typeof r!="number"){var a=e.length*t;r=n.measureText(e).width+a,i[e]=r}return r},s.collapseSpaces=function(e){return e==="normal"||e==="pre-line"},s.collapseNewlines=function(e){return e==="normal"},s.trimRight=function(e){if(typeof e!="string")return"";for(var t=e.length-1;t>=0;t--){var i=e[t];if(!s.isBreakingSpace(i))break;e=e.slice(0,-1)}return e},s.isNewline=function(e){return typeof e!="string"?!1:s._newlines.indexOf(e.charCodeAt(0))>=0},s.isBreakingSpace=function(e,t){return typeof e!="string"?!1:s._breakingSpaces.indexOf(e.charCodeAt(0))>=0},s.tokenize=function(e){var t=[],i="";if(typeof e!="string")return t;for(var n=0;n<e.length;n++){var r=e[n],a=e[n+1];if(s.isBreakingSpace(r,a)||s.isNewline(r)){i!==""&&(t.push(i),i=""),t.push(r);continue}i+=r}return i!==""&&t.push(i),t},s.canBreakWords=function(e,t){return t},s.canBreakChars=function(e,t,i,n,r){return!0},s.wordWrapSplit=function(e){return e.split("")},s.measureFont=function(e){if(s._fonts[e])return s._fonts[e];var t={ascent:0,descent:0,fontSize:0},i=s._canvas,n=s._context;n.font=e;var r=s.METRICS_STRING+s.BASELINE_SYMBOL,a=Math.ceil(n.measureText(r).width),o=Math.ceil(n.measureText(s.BASELINE_SYMBOL).width),l=Math.ceil(s.HEIGHT_MULTIPLIER*o);o=o*s.BASELINE_MULTIPLIER|0,i.width=a,i.height=l,n.fillStyle="#f00",n.fillRect(0,0,a,l),n.font=e,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(r,0,o);var u=n.getImageData(0,0,a,l).data,c=u.length,h=a*4,f=0,d=0,_=!1;for(f=0;f<o;++f){for(var g=0;g<h;g+=4)if(u[d+g]!==255){_=!0;break}if(!_)d+=h;else break}for(t.ascent=o-f,d=c-h,_=!1,f=l;f>o;--f){for(var g=0;g<h;g+=4)if(u[d+g]!==255){_=!0;break}if(!_)d-=h;else break}return t.descent=f-o,t.fontSize=t.ascent+t.descent,s._fonts[e]=t,t},s.clearMetrics=function(e){e===void 0&&(e=""),e?delete s._fonts[e]:s._fonts={}},Object.defineProperty(s,"_canvas",{get:function(){if(!s.__canvas){var e=void 0;try{var t=new OffscreenCanvas(0,0),i=t.getContext("2d",gp);if(i&&i.measureText)return s.__canvas=t,t;e=de.ADAPTER.createCanvas()}catch{e=de.ADAPTER.createCanvas()}e.width=e.height=10,s.__canvas=e}return s.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(s,"_context",{get:function(){return s.__context||(s.__context=s._canvas.getContext("2d",gp)),s.__context},enumerable:!1,configurable:!0}),s}();fl._fonts={};fl.METRICS_STRING="|ÉqÅ";fl.BASELINE_SYMBOL="M";fl.BASELINE_MULTIPLIER=1.4;fl.HEIGHT_MULTIPLIER=2;fl._newlines=[10,13];fl._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var jye={texture:!0,children:!1,baseTexture:!0},zye=function(s){Bye(e,s);function e(t,i,n){var r=this,a=!1;n||(n=de.ADAPTER.createCanvas(),a=!0),n.width=3,n.height=3;var o=Ne.from(n);return o.orig=new ve,o.trim=new ve,r=s.call(this,o)||this,r._ownCanvas=a,r.canvas=n,r.context=n.getContext("2d",{willReadFrequently:!0}),r._resolution=de.RESOLUTION,r._autoResolution=!0,r._text=null,r._style=null,r._styleListener=null,r._font="",r.text=t,r.style=i,r.localStyleID=-1,r}return e.prototype.updateText=function(t){var i=this._style;if(this.localStyleID!==i.styleID&&(this.dirty=!0,this.localStyleID=i.styleID),!(!this.dirty&&t)){this._font=this._style.toFontString();var n=this.context,r=fl.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),a=r.width,o=r.height,l=r.lines,u=r.lineHeight,c=r.lineWidths,h=r.maxLineWidth,f=r.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,a)+i.padding*2)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,o)+i.padding*2)*this._resolution),n.scale(this._resolution,this._resolution),n.clearRect(0,0,this.canvas.width,this.canvas.height),n.font=this._font,n.lineWidth=i.strokeThickness,n.textBaseline=i.textBaseline,n.lineJoin=i.lineJoin,n.miterLimit=i.miterLimit;for(var d,_,g=i.dropShadow?2:1,p=0;p<g;++p){var m=i.dropShadow&&p===0,v=m?Math.ceil(Math.max(1,o)+i.padding*2):0,E=v*this._resolution;if(m){n.fillStyle="black",n.strokeStyle="black";var y=i.dropShadowColor,T=km(typeof y=="number"?y:TX(y)),w=i.dropShadowBlur*this._resolution,C=i.dropShadowDistance*this._resolution;n.shadowColor="rgba("+T[0]*255+","+T[1]*255+","+T[2]*255+","+i.dropShadowAlpha+")",n.shadowBlur=w,n.shadowOffsetX=Math.cos(i.dropShadowAngle)*C,n.shadowOffsetY=Math.sin(i.dropShadowAngle)*C+E}else n.fillStyle=this._generateFillStyle(i,l,r),n.strokeStyle=i.stroke,n.shadowColor="black",n.shadowBlur=0,n.shadowOffsetX=0,n.shadowOffsetY=0;var N=(u-f.fontSize)/2;(!e.nextLineHeightBehavior||u-f.fontSize<0)&&(N=0);for(var P=0;P<l.length;P++)d=i.strokeThickness/2,_=i.strokeThickness/2+P*u+f.ascent+N,i.align==="right"?d+=h-c[P]:i.align==="center"&&(d+=(h-c[P])/2),i.stroke&&i.strokeThickness&&this.drawLetterSpacing(l[P],d+i.padding,_+i.padding-v,!0),i.fill&&this.drawLetterSpacing(l[P],d+i.padding,_+i.padding-v)}this.updateTexture()}},e.prototype.drawLetterSpacing=function(t,i,n,r){r===void 0&&(r=!1);var a=this._style,o=a.letterSpacing,l=e.experimentalLetterSpacing&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype);if(o===0||l){l&&(this.context.letterSpacing=o,this.context.textLetterSpacing=o),r?this.context.strokeText(t,i,n):this.context.fillText(t,i,n);return}for(var u=i,c=Array.from?Array.from(t):t.split(""),h=this.context.measureText(t).width,f=0,d=0;d<c.length;++d){var _=c[d];r?this.context.strokeText(_,u,n):this.context.fillText(_,u,n);for(var g="",p=d+1;p<c.length;++p)g+=c[p];f=this.context.measureText(g).width,u+=h-f+o,h=f}},e.prototype.updateTexture=function(){var t=this.canvas;if(this._style.trim){var i=AX(t);i.data&&(t.width=i.width,t.height=i.height,this.context.putImageData(i.data,0,0))}var n=this._texture,r=this._style,a=r.trim?0:r.padding,o=n.baseTexture;n.trim.width=n._frame.width=t.width/this._resolution,n.trim.height=n._frame.height=t.height/this._resolution,n.trim.x=-a,n.trim.y=-a,n.orig.width=n._frame.width-a*2,n.orig.height=n._frame.height-a*2,this._onTextureUpdate(),o.setRealSize(t.width,t.height,this._resolution),n.updateUvs(),this.dirty=!1},e.prototype._render=function(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0),this.updateText(!0),s.prototype._render.call(this,t)},e.prototype.updateTransform=function(){this.updateText(!0),s.prototype.updateTransform.call(this)},e.prototype.getBounds=function(t,i){return this.updateText(!0),this._textureID===-1&&(t=!1),s.prototype.getBounds.call(this,t,i)},e.prototype.getLocalBounds=function(t){return this.updateText(!0),s.prototype.getLocalBounds.call(this,t)},e.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addQuad(this.vertexData)},e.prototype._generateFillStyle=function(t,i,n){var r=t.fill;if(Array.isArray(r)){if(r.length===1)return r[0]}else return r;var a,o=t.dropShadow?t.dropShadowDistance:0,l=t.padding||0,u=this.canvas.width/this._resolution-o-l*2,c=this.canvas.height/this._resolution-o-l*2,h=r.slice(),f=t.fillGradientStops.slice();if(!f.length)for(var d=h.length+1,_=1;_<d;++_)f.push(_/d);if(h.unshift(r[0]),f.unshift(0),h.push(r[r.length-1]),f.push(1),t.fillGradientType===Bv.LINEAR_VERTICAL){a=this.context.createLinearGradient(u/2,l,u/2,c+l);for(var g=n.fontProperties.fontSize+t.strokeThickness,_=0;_<i.length;_++){var p=n.lineHeight*(_-1)+g,m=n.lineHeight*_,v=m;_>0&&p>m&&(v=(m+p)/2);var E=m+g,y=n.lineHeight*(_+1),T=E;_+1<i.length&&y<E&&(T=(E+y)/2);for(var w=(T-v)/c,C=0;C<h.length;C++){var N=0;typeof f[C]=="number"?N=f[C]:N=C/h.length;var P=Math.min(1,Math.max(0,v/c+N*w));P=Number(P.toFixed(5)),a.addColorStop(P,h[C])}}}else{a=this.context.createLinearGradient(l,c/2,u+l,c/2);for(var k=h.length+1,L=1,_=0;_<h.length;_++){var j=void 0;typeof f[_]=="number"?j=f[_]:j=L/k,a.addColorStop(j,h[_]),L++}}return a},e.prototype.destroy=function(t){typeof t=="boolean"&&(t={children:t}),t=Object.assign({},jye,t),s.prototype.destroy.call(this,t),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){this.updateText(!0);var i=Ah(this.scale.x)||1;this.scale.x=i*t/this._texture.orig.width,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){this.updateText(!0);var i=Ah(this.scale.y)||1;this.scale.y=i*t/this._texture.orig.height,this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(t){t=t||{},t instanceof rk?this._style=t:this._style=new rk(t),this.localStyleID=-1,this.dirty=!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){t=String(t??""),this._text!==t&&(this._text=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)},enumerable:!1,configurable:!0}),e.nextLineHeightBehavior=!1,e.experimentalLetterSpacing=!1,e}(mt);class Hye{constructor(e){this._sprite=new kt(e),this._texture=null,this._amount=-1,this._alpha=0}renderBubble(e){if(!this._sprite||this._amount===e)return null;const t=new Qn;t.addChild(this._sprite);const i=new zye("+"+e,{fontFamily:"Arial",fontSize:9,fill:16777215,align:"center"});return i.anchor.x=.5,i.x=this._sprite.width/2,i.y=19,t.addChild(i),this._texture?oi.instance.renderer.render(t,{renderTexture:this._texture,clear:!0}):this._texture=St.generateTexture(t),this._texture}get amount(){return this._amount}set amount(e){this._amount=e}get alpha(){return this._alpha}set alpha(e){this._alpha=e}}class F5 extends Ww{constructor(){super(),this._isAllowedToTurnHead=!0}createSizeData(e,t,i){return e>1?new Ll(t,i):new Uv(t,i)}defineVisualizations(e){return this._isAllowedToTurnHead=!0,super.defineVisualizations(e)}processVisualElement(e,t,i){if(!e||!t||!i)return!1;switch(t){case"postures":if(!(e instanceof Ll)||!e.processPostures(i))return!1;break;case"gestures":if(!(e instanceof Ll)||!e.processGestures(i))return!1;break;default:if(!super.processVisualElement(e,t,i))return!1;break}return!0}postureToAnimation(e,t){const i=this.getSizeData(e);return i?i.postureToAnimation(t):Ll.DEFAULT}getGestureDisabled(e,t){const i=this.getSizeData(e);return i?i.getGestureDisabled(t):!1}gestureToAnimation(e,t){const i=this.getSizeData(e);return i?i.gestureToAnimation(t):Ll.DEFAULT}animationToPosture(e,t,i){const n=this.getSizeData(e);return n?n.animationToPosture(t,i):null}animationToGesture(e,t){const i=this.getSizeData(e);return i?i.animationToGesture(t):null}getGestureForAnimationId(e,t){const i=this.getSizeData(e);return i?i.getGestureForAnimationId(t):null}totalPostures(e){const t=this.getSizeData(e);return t?t.totalPostures:0}totalGestures(e){const t=this.getSizeData(e);return t?t.totalGestures:0}get isAllowedToTurnHead(){return this._isAllowedToTurnHead}}const Tt=class Tt extends Kt{constructor(){for(super(),this._posture="",this._gesture="",this._isSleeping=!1,this._headDirection=-1,this._headOnly=!1,this._nonHeadSprites=[],this._headSprites=[],this._saddleSprites=[],this._animationOver=!1,this._paletteIndex=-1,this._paletteName="",this._customLayerIds=[],this._customPartIds=[],this._customPaletteIds=[],this._isRiding=!1,this._color=16777215,this._experience=0,this._experienceTimestamp=0,this._experienceData=null,this._previousAnimationDirection=-1,this._animationStates=[];this._animationStates.length<Tt.ANIMATION_INDEX_COUNT;)this._animationStates.push(new x5)}initialize(e){if(!(e instanceof F5))return!1;const t=this.getPetAdditionAsset(Tt.PET_EXPERIENCE_BUBBLE);return t&&(this._experienceData=new Hye(t)),super.initialize(e)}dispose(){if(super.dispose(),this._animationStates){for(;this._animationStates.length;){const e=this._animationStates[0];e&&e.dispose(),this._animationStates.pop()}this._animationStates=null}}getAnimationId(e){return e.animationId}update(e,t,i,n){super.update(e,t,i,n),this.updateExperienceBubble(t)}updateExperienceBubble(e){if(this._experienceData&&(this._experienceData.alpha=0,this._experienceTimestamp)){const t=e-this._experienceTimestamp;t<Tt.EXPERIENCE_BUBBLE_VISIBLE_IN_MS?this._experienceData.alpha=Math.sin(t/Tt.EXPERIENCE_BUBBLE_VISIBLE_IN_MS*Math.PI)*255:this._experienceTimestamp=0;const i=this.getSprite(this.totalSprites-1);if(i){if(this._experienceData.alpha>0){const n=this._experienceData.renderBubble(this._experience);if(n){i.texture=n,i.offsetX=-20,i.offsetY=-80,i.alpha=this._experienceData.alpha,i.visible=!0,i.relativeDepth=-.2;return}}i.texture=null,i.visible=!1}}}updateModel(e){const t=this.object&&this.object.model;if(!t||this.updateModelCounter===t.updateCounter)return!1;const i=t.getValue(b.FIGURE_POSTURE),n=t.getValue(b.FIGURE_GESTURE);this.setPostureAndGesture(i,n);let r=t.getValue(b.FURNITURE_ALPHA_MULTIPLIER)||null;(r===null||isNaN(r))&&(r=1),this._alphaMultiplier!==r&&(this._alphaMultiplier=r,this._alphaChanged=!0),this._isSleeping=t.getValue(b.FIGURE_SLEEP)>0;const a=t.getValue(b.HEAD_DIRECTION);!isNaN(a)&&this.data.isAllowedToTurnHead?this._headDirection=a:this._headDirection=this.object.getDirection().x,this._experience=t.getValue(b.FIGURE_GAINED_EXPERIENCE),this._experienceTimestamp=t.getValue(b.FIGURE_EXPERIENCE_TIMESTAMP);const o=t.getValue(b.PET_PALETTE_INDEX),l=t.getValue(b.PET_CUSTOM_LAYER_IDS),u=t.getValue(b.PET_CUSTOM_PARTS_IDS),c=t.getValue(b.PET_CUSTOM_PALETTE_IDS),h=t.getValue(b.PET_IS_RIDING),f=t.getValue(b.PET_HEAD_ONLY),d=t.getValue(b.PET_COLOR);return o!==this._paletteIndex&&(this._paletteIndex=o,this._paletteName=this._paletteIndex.toString()),this._customLayerIds=l||[],this._customPartIds=u||[],this._customPaletteIds=c||[],this._isRiding=!isNaN(h)&&h>0,this._headOnly=!isNaN(f)&&f>0,!isNaN(d)&&this._color!==d&&(this._color=d),this.updateModelCounter=t.updateCounter,!0}updateAnimation(e){if(this.object){const t=this.object.getDirection().x;t!==this._previousAnimationDirection&&(this._previousAnimationDirection=t,this.resetAllAnimationFrames())}return super.updateAnimation(e)}setPostureAndGesture(e,t){this.data&&(e!==this._posture&&(this._posture=e,this.setAnimationForIndex(Tt.POSTURE_ANIMATION_INDEX,this.data.postureToAnimation(this._scale,e))),this.data.getGestureDisabled(this._scale,e)&&(t=null),t!==this._gesture&&(this._gesture=t,this.setAnimationForIndex(Tt.GESTURE_ANIMATION_INDEX,this.data.gestureToAnimation(this._scale,t))))}getAnimationStateData(e){return e>=0&&e<this._animationStates.length?this._animationStates[e]:null}setAnimationForIndex(e,t){const i=this.getAnimationStateData(e);i&&this.setSubAnimation(i,t)&&(this._animationOver=!1)}resetAllAnimationFrames(){this._animationOver=!1;let e=this._animationStates.length-1;for(;e>=0;){const t=this._animationStates[e];t&&t.setLayerCount(this.animatedLayerCount),e--}}updateAnimations(e){if(this._animationOver)return 0;let t=!0,i=0,n=0;for(;n<this._animationStates.length;){const r=this._animationStates[n];if(r&&!r.animationOver){const a=this.updateFramesForAnimation(r,e);i=i|a,r.animationOver?(fi.isTransitionFromAnimation(r.animationId)||fi.isTransitionToAnimation(r.animationId))&&(this.setAnimationForIndex(n,r.animationAfterTransitionId),t=!1):t=!1}n++}return this._animationOver=t,i}getSpriteAssetName(e,t){if(this._headOnly&&this.isNonHeadSprite(t)||this._isRiding&&this._parser3(t))return null;const i=this.totalSprites;if(t<i-Tt.ADDITIONAL_SPRITE_COUNT){const n=this.getValidSize(e);if(t<i-(1+Tt.ADDITIONAL_SPRITE_COUNT)){if(t>=Fr.LAYER_LETTERS.length)return null;const r=Fr.LAYER_LETTERS[t];return n===1?this._type+"_icon_"+r:this._type+"_"+n+"_"+r+"_"+this.getDirection(e,t)+"_"+this.getFrameNumber(n,t)}return this._type+"_"+n+"_sd_"+this.getDirection(e,t)+"_0"}return null}getLayerColor(e,t,i){return t<this.totalSprites-Tt.ADDITIONAL_SPRITE_COUNT?this._color:16777215}getLayerXOffset(e,t,i){let n=super.getLayerXOffset(e,t,i),r=this._animationStates.length-1;for(;r>=0;){const a=this._animationStates[r];if(a){const o=a.getFrame(i);o&&(n+=o.x)}r--}return n}getLayerYOffset(e,t,i){let n=super.getLayerYOffset(e,t,i),r=this._animationStates.length-1;for(;r>=0;){const a=this._animationStates[r];if(a){const o=a.getFrame(i);o&&(n+=o.y)}r--}return n}getLayerZOffset(e,t,i){return this.data?this.data.getLayerZOffset(e,this.getDirection(e,i),i):rt.DEFAULT_ZOFFSET}getDirection(e,t){return this.isHeadSprite(t)?this.data.getValidDirection(e,this._headDirection):this._direction}getFrameNumber(e,t){let i=this._animationStates.length-1;for(;i>=0;){const n=this._animationStates[i];if(n){const r=n.getFrame(t);if(r)return r.id}i--}return super.getFrameNumber(e,t)}isHeadSprite(e){if(this._headSprites[e]===void 0){const t=this.data.getLayerTag(this._scale,xo.USE_DEFAULT_DIRECTION,e)===Tt.HEAD,i=this.data.getLayerTag(this._scale,xo.USE_DEFAULT_DIRECTION,e)===Tt.HAIR;t||i?this._headSprites[e]=!0:this._headSprites[e]=!1}return this._headSprites[e]}isNonHeadSprite(e){if(this._nonHeadSprites[e]===void 0)if(e<this.totalSprites-(1+Tt.ADDITIONAL_SPRITE_COUNT)){const t=this.data.getLayerTag(this._scale,xo.USE_DEFAULT_DIRECTION,e);t&&t.length>0&&t!==Tt.HEAD&&t!==Tt.HAIR?this._nonHeadSprites[e]=!0:this._nonHeadSprites[e]=!1}else this._nonHeadSprites[e]=!0;return this._nonHeadSprites[e]}_parser3(e){return this._saddleSprites[e]===void 0&&(this.data.getLayerTag(this._scale,xo.USE_DEFAULT_DIRECTION,e)===Tt.SADDLE?this._saddleSprites[e]=!0:this._saddleSprites[e]=!1),this._saddleSprites[e]}getAsset(e,t=-1){if(!this.asset)return null;const i=this._customLayerIds.indexOf(t);let n=this._paletteName,r=-1,a=-1;return i>-1&&(r=this._customPartIds[i],a=this._customPaletteIds[i],n=a>-1?a.toString():this._paletteName),!isNaN(r)&&r>-1&&(e=e+"_"+r),this.asset.getAssetWithPalette(e,n)}getAdditionalLayerCount(){return super.getAdditionalLayerCount()+Tt.ADDITIONAL_SPRITE_COUNT}setLayerCount(e){super.setLayerCount(e),this._headSprites=[]}getPostureForAsset(e,t){const i=t.split("_");let n=i.length,r=0;for(;r<i.length;){if(i[r]==="64"||i[r]==="32"){n=r+3;break}r++}let a=null;if(n<i.length){let o=i[n];o=o.split("@")[0],a=this.data.animationToPosture(e,parseInt(o)/100,!1),a||(a=this.data.getGestureForAnimationId(e,parseInt(o)/100))}return a}getPetAdditionAsset(e){return wn().getTexture(e)}get data(){return this._data}};Tt.TYPE=Z.PET_ANIMATED,Tt.HEAD="head",Tt.SADDLE="saddle",Tt.HAIR="hair",Tt.ADDITIONAL_SPRITE_COUNT=1,Tt.EXPERIENCE_BUBBLE_VISIBLE_IN_MS=1e3,Tt.PET_EXPERIENCE_BUBBLE="avatar_addition_pet_experience_bubble",Tt.POSTURE_ANIMATION_INDEX=0,Tt.GESTURE_ANIMATION_INDEX=1,Tt.ANIMATION_INDEX_COUNT=2;let dA=Tt;const UE=class UE{constructor(e,t=-1,i=1,n=-1,r=1){this._normalMinX=t,this._normalMaxX=i,this._normalMinY=n,this._normalMaxY=r,this._asset=e}get asset(){return this._asset}get normalMinX(){return this._normalMinX}get normalMaxX(){return this._normalMaxX}get normalMinY(){return this._normalMinY}get normalMaxY(){return this._normalMaxY}dispose(){this._asset=null}};UE.MIN_NORMAL_COORDINATE_VALUE=-1,UE.MAX_NORMAL_COORDINATE_VALUE=1;let _A=UE;const FE=class FE{constructor(){this._bitmaps=[]}dispose(){for(const e of this._bitmaps)e&&e.dispose();this._bitmaps=null}addBitmap(e,t=-1,i=1,n=-1,r=1){this._bitmaps.push(new _A(e,t,i,n,r))}getAsset(e){if(!e)return null;for(const t of this._bitmaps)if(t&&e.x>=t.normalMinX&&e.x<=t.normalMaxX&&e.y>=t.normalMinY&&e.y<=t.normalMaxY)return t.asset;return null}};FE.MIN_NORMAL_COORDINATE_VALUE=-1,FE.MAX_NORMAL_COORDINATE_VALUE=1;let pu=FE;class Wye{constructor(){this._sizes=[],this._maskVisualizations=new Map,this._assetNames=new Map,this._lastMaskVisualization=null,this._lastSize=-1}dispose(){if(this._maskVisualizations){for(const e of this._maskVisualizations.values())e&&e.dispose();this._maskVisualizations=null}this._lastMaskVisualization=null,this._sizes=null}createMaskVisualization(e){if(this._maskVisualizations.get(e))return null;const i=new pu;return this._maskVisualizations.set(e,i),this._sizes.push(e),this._sizes.sort(),i}getSizeIndex(e){let t=0,i=1;for(;i<this._sizes.length;){if(this._sizes[i]>e){this._sizes[i]-e<e-this._sizes[i-1]&&(t=i);break}t=i,i++}return t}getMaskVisualization(e){if(e===this._lastSize)return this._lastMaskVisualization;const t=this.getSizeIndex(e);return t<this._sizes.length?this._lastMaskVisualization=this._maskVisualizations.get(this._sizes[t]):this._lastMaskVisualization=null,this._lastSize=e,this._lastMaskVisualization}getGraphicAsset(e,t){const i=this.getMaskVisualization(e);return i?i.getAsset(t):null}getAssetName(e){return this._assetNames&&this._assetNames.get(e)||null}setAssetName(e,t){this._assetNames&&this._assetNames.set(e,t)}}class Yye{constructor(){this._assetCollection=null,this._masks=new Map,this._data=null}get data(){return this._data}dispose(){if(this._assetCollection=null,this._data=null,this._masks&&this._masks.size){for(const e of this._masks.values())e&&e.dispose();this._masks.clear()}}initialize(e){this._data=e}initializeAssetCollection(e){this.data&&(this._assetCollection=e,this.parseMasks(this.data,e))}parseMasks(e,t){if(!(!e||!t)&&e.masks&&e.masks.length){let i=0;for(;i<e.masks.length;){const n=e.masks[i];if(n){const r=n.id;if(this._masks.get(r))continue;const o=new Wye;if(n.visualizations&&n.visualizations.length){let l=0;for(;l<n.visualizations.length;){const u=n.visualizations[l];if(u){const c=u.size,h=o.createMaskVisualization(c);if(h){const f=this.parseMaskBitmaps(u.bitmaps,h,t);o.setAssetName(c,f)}}l++}}this._masks.set(r,o)}i++}}}parseMaskBitmaps(e,t,i){if(!e||!e.length)return null;let n=null;for(const r of e){if(!r)continue;const a=r.assetName,o=i.getAsset(a);if(!o)continue;let l=pu.MIN_NORMAL_COORDINATE_VALUE,u=pu.MAX_NORMAL_COORDINATE_VALUE,c=pu.MIN_NORMAL_COORDINATE_VALUE,h=pu.MAX_NORMAL_COORDINATE_VALUE;r.normalMinX!==void 0&&(l=r.normalMinX),r.normalMaxX!==void 0&&(u=r.normalMaxX),r.normalMinY!==void 0&&(c=r.normalMinY),r.normalMaxY!==void 0&&(h=r.normalMaxY),o.flipH||(n=a),t.addBitmap(o,l,u,c,h)}return n}updateMask(e,t,i,n,r,a){const o=this._masks.get(t);if(!o)return!0;const l=o.getGraphicAsset(i,n);if(!l)return!0;const u=l.texture;if(!u)return!0;const c=new Q(r+l.offsetX,a+l.offsetY),h=new dt;let f=1,d=1,_=0,g=0,p=c.x+_,m=c.y+g;return l.flipH&&(f=-1,_=u.width,p=c.x+_-u.width),l.flipV&&(d=-1,g=u.height,m=c.y+g-u.height),h.scale(f,d),h.translate(p,m),oi.instance.renderer.render(new mt(u),{renderTexture:e,clear:!1,transform:h}),!0}getMask(e){return!this._masks||!this._masks.size?null:this._masks.get(e)||null}}class zf{constructor(e=null,t=0,i=!1){this._assetNames=[],this._maskAssetNames=[],this._maskAssetLocations=[],this._maskAssetFlipHs=[],this._maskAssetFlipVs=[],e!=null&&(this._maskAssetNames=e._maskAssetNames,this._maskAssetLocations=e._maskAssetLocations,this._maskAssetFlipHs=e._maskAssetFlipHs,this._maskAssetFlipVs=e._maskAssetFlipVs),this._color=t,this._alignBottom=i}addMask(e,t,i,n){this._maskAssetNames.push(e),this._maskAssetLocations.push(t),this._maskAssetFlipHs.push(i),this._maskAssetFlipVs.push(n)}addAssetColumn(e){this._assetNames.push(e)}set z(e){this._z=e}get z(){return this._z}set cornerPoints(e){this._points=e}get cornerPoints(){return this._points}get color(){return this._color}get maskAssetNames(){return this._maskAssetNames}get maskAssetLocations(){return this._maskAssetLocations}get maskAssetFlipHs(){return this._maskAssetFlipHs}get maskAssetFlipVs(){return this._maskAssetFlipVs}isBottomAligned(){return this._alignBottom}get assetNameColumns(){return this._assetNames}}class Xye{constructor(e,t,i,n,r){this._x=e,this._y=t,this._speedX=i,this._speedY=n,this._asset=r,isNaN(this._x)&&(this._x=0),isNaN(this._y)&&(this._y=0),isNaN(this._speedX)&&(this._speedX=0),isNaN(this._speedY)&&(this._speedY=0)}get bitmapData(){return this._asset}dispose(){this._asset=null}getPosition(e,t,i,n,r){let a=this._x,o=this._y;i>0&&(a=a+this._speedX/i*r/1e3),n>0&&(o=o+this._speedY/n*r/1e3);const l=Math.trunc(a%1*e),u=Math.trunc(o%1*t);return new Q(l,u)}}const Ro=class Ro{constructor(e,t,i,n=0){this._material=e,this._offset=n,this._align=i,this._color=t,this._isDisposed=!1}get offset(){return this._offset}get align(){return this._align}get disposed(){return this._isDisposed}dispose(){this._isDisposed=!0,this._material=null,this.clearCache()}clearCache(){}render(e,t,i,n,r,a,o,l,u){const c=this._color>>16,h=this._color>>8&255,f=this._color&255,d=c<255||h<255||f<255;if(this._material){const _=this._material.render(e,t,d?null:i,n,r,a,o,l,u+this.offset,this.align===Ro.ALIGN_TOP);if(_&&d){const g=new mt(_);d&&(g.tint=this._color),t.writeToRenderTexture(g,i,!1)}}else{const _=t.createAndFillRenderTexture(n,r,e,this._color);t.writeToRenderTexture(new mt(_),i,!1)}return i}getMaterial(){return this._material}getColor(){return this._color}};Ro.DEFAULT_OFFSET=0,Ro.ALIGN_TOP=1,Ro.ALIGN_BOTTOM=2,Ro.ALIGN_DEFAULT=Ro.ALIGN_TOP;let Nn=Ro;class Kye{constructor(e,t,i){this._layers=[],this._geometry=i,this._cachedBitmapNormal=new M,this._isCached=!1,this._hasAnimationLayers=!1,t<0&&(t=0);let n=0;for(;n<t;)this._layers.push(null),n++}get geometry(){return this._geometry}get hasAnimationLayers(){return this._hasAnimationLayers}dispose(){if(this._layers&&this._layers.length){for(const e of this._layers)e&&e.dispose();this._layers=null}this._geometry=null,this._cachedBitmapNormal&&(this._cachedBitmapNormal=null)}clearCache(){if(this._isCached){if(this._cachedBitmapNormal&&this._cachedBitmapNormal.assign(new M),this._layers&&this._layers.length)for(const e of this._layers){if(!e)continue;e.clearCache()}this._isCached=!1}}setLayer(e,t,i,n,r=0){if(e<0||e>this._layers.length)return!1;let a=this._layers[e];return a&&a.dispose(),a=new Nn(t,i,n,r),this._layers[e]=a,!0}setAnimationLayer(e,t,i){if(e<0||e>this._layers.length)return!1;let n=this._layers[e];return n&&n.dispose(),n=new ok(t,i),this._layers[e]=n,this._hasAnimationLayers=!0,!0}getLayers(){return this._layers}render(e,t,i,n,r,a,o,l=0,u=0,c=0,h=0,f=0,d=0,_=0){n<1&&(n=1),r<1&&(r=1),(!i||i.width!==n||i.height!==r)&&(i=null),this._isCached=!0;const g=t.createAndFillRenderTexture(n,r,e);if(this._cachedBitmapNormal.assign(a),this._layers&&this._layers.length)for(const p of this._layers)p&&(p instanceof Nn?p.render(`${e}:${this._layers.indexOf(p)}`,t,g,n,r,a,o,l,u):p instanceof ok&&p.render(t,g,n,r,a,l,u,c,h,f,d,_));return g}}class Yw{constructor(){this._planeVisualizations=new Map,this._sizes=[],this._lastPlaneVisualization=null,this._lastSize=-1}isStatic(e){return!0}dispose(){for(const e of this._planeVisualizations.values())e&&e.dispose();this._planeVisualizations=null,this._lastPlaneVisualization=null,this._sizes=null,this._lastSize=-1}clearCache(){for(const e of this._planeVisualizations.values())e&&e.clearCache()}createPlaneVisualization(e,t,i){if(this._planeVisualizations.get(e.toString()))return null;const r=new Kye(e,t,i);return this._planeVisualizations.set(e.toString(),r),this._sizes.push(e),this._sizes.sort(),r}getSizeIndex(e){let t=0,i=1;for(;i<this._sizes.length;){if(this._sizes[i]>e){this._sizes[i]-e<e-this._sizes[i-1]&&(t=i);break}t=i,i++}return t}getPlaneVisualization(e){if(e===this._lastSize)return this._lastPlaneVisualization;const t=this.getSizeIndex(e);return t<this._sizes.length?this._lastPlaneVisualization=this._planeVisualizations.get(this._sizes[t].toString()):this._lastPlaneVisualization=null,this._lastSize=e,this._lastPlaneVisualization}getLayers(){return this.getPlaneVisualization(this._lastSize).getLayers()}}const r_=class r_ extends Yw{render(e,t,i,n,r,a,o,l,u,c){const h=this.getPlaneVisualization(a);if(!h||!h.geometry)return null;const f=h.geometry.getScreenPoint(new M(0,0,0)),d=h.geometry.getScreenPoint(new M(0,r/h.geometry.scale,0)),_=h.geometry.getScreenPoint(new M(n/h.geometry.scale,0,0));let g=0,p=0;if(f&&d&&_){n=Math.round(Math.abs(f.x-_.x)),r=Math.round(Math.abs(f.x-d.x));const m=f.x-h.geometry.getScreenPoint(new M(1,0,0)).x;g=u*Math.trunc(Math.abs(m)),p=c*Math.trunc(Math.abs(m))}return h.render(e,t,i,n,r,o,l,g,p)}};r_.DEFAULT_COLOR=16777215,r_.HORIZONTAL_ANGLE_DEFAULT=45,r_.VERTICAL_ANGLE_DEFAULT=30;let xc=r_;class Gv{constructor(e,t){this._texture=e,this._timeStamp=t}dispose(){this._texture=null}get texture(){return this._texture}get timeStamp(){return this._timeStamp}}const ii=class ii{constructor(){this._seed=1,this._modulus=16777216,this._multiplier=69069,this._increment=5}static setSeed(e=1){ii._randomizer||(ii._randomizer=new ii),ii._randomizer.seed=e}static setModulus(e=16777216){ii._randomizer||(ii._randomizer=new ii),ii._randomizer.modulus=e}static getValues(e,t,i){return ii._randomizer||(ii._randomizer=new ii),ii._randomizer.getRandomValues(e,t,i)}static getArray(e,t){return ii._randomizer||(ii._randomizer=new ii),ii._randomizer.getRandomArray(e,t)}set seed(e){this._seed=e}set modulus(e){e<1&&(e=1),this._modulus=e}dispose(){}getRandomValues(e,t,i){const n=[];let r=0;for(;r<e;)n.push(this.iterateScaled(t,i-t)),r++;return n}getRandomArray(e,t){if(e>t||t>1e3)return null;const i=[];let n=0;for(;n<=t;)i.push(n),n++;const r=[];let a=0;for(;a<e;){const o=this.iterateScaled(0,i.length-1);r.push(i[o]),i.splice(o,1),a++}return r}iterate(){let e=V5(Math.trunc(this._multiplier*this._seed)+this._increment);return e<0&&(e=-e),e=e%this._modulus,this._seed=e,e}iterateScaled(e,t){let i=this.iterate();return t<1?e:(i=Math.trunc(e+i/this._modulus*t),i)}};ii.DEFAULT_SEED=1,ii.DEFAULT_MODULUS=16777216,ii._randomizer=null;let il=ii;const hs=class hs{constructor(e,t,i=1){if(this._cells=[],this._repeatMode=i,this._width=e<1?1:e,this._cachedBitmapData=null,this._cachedBitmapNormal=null,this._cachedBitmapDataOffsetX=0,this._cachedBitmapDataOffsetY=0,this._isCached=!1,this._isStatic=!0,t&&t.length){let n=0;for(;n<t.length;){const r=t[n];r&&(this._cells.push(r),r.isStatic||(this._isStatic=!1)),n++}}}get isStatic(){return this._isStatic}isRepeated(){return this._repeatMode!==hs.REPEAT_MODE_NONE}get width(){return this._width}dispose(){if(this._cells&&this._cells.length){for(const e of this._cells)e&&e.dispose();this._cells=null}this._cachedBitmapData=null,this._cachedBitmapNormal&&(this._cachedBitmapNormal=null)}clearCache(){if(this._isCached){if(this._cachedBitmapData&&(this._cachedBitmapData=null),this._cachedBitmapNormal&&(this._cachedBitmapNormal.x=0,this._cachedBitmapNormal.y=0,this._cachedBitmapNormal.z=0),this._cells&&this._cells.length)for(const e of this._cells)e&&e.clearCache();this._isCached=!1}}render(e,t,i,n,r,a){if(this._repeatMode===hs.REPEAT_MODE_NONE&&(i=this.getCellsHeight(this._cells,n)),this._cachedBitmapNormal||(this._cachedBitmapNormal=new M),this.isStatic){if(this._cachedBitmapData){if(this._cachedBitmapData.height===i&&M.isEqual(this._cachedBitmapNormal,n)&&this._cachedBitmapDataOffsetX===r&&this._cachedBitmapDataOffsetY===a)return this._cachedBitmapData;this._cachedBitmapData=null}}else this._cachedBitmapData=null;if(this._isCached=!0,this._cachedBitmapData||(this._cachedBitmapData=t.createRenderTexture(this._width,i,`${e}:column`)),this._cachedBitmapNormal.assign(n),this._cachedBitmapDataOffsetX=r,this._cachedBitmapDataOffsetY=a,!this._cells.length)return this._cachedBitmapData;switch(this._repeatMode){case hs.REPEAT_MODE_NONE:this.renderRepeatNone(n);break;case hs.REPEAT_MODE_BORDERS:this.renderRepeatBorders(n);break;case hs.REPEAT_MODE_CENTER:this.renderRepeatCenter(n);break;case hs.REPEAT_MODE_FIRST:this.renderRepeatFirst(n);break;case hs.REPEAT_MODE_LAST:this.renderRepeatLast(n);break;default:this.renderRepeatAll(n,r,a);break}return this._cachedBitmapData}getCellsHeight(e,t){if(!e||!e.length)return 0;let i=0,n=0;for(;n<e.length;){const r=e[n];r&&(i+=r.getHeight(t)),n++}return i}renderCells(e,t,i,n,r=0,a=0){if(!e||!e.length||!this._cachedBitmapData)return t;let o=0;for(;o<e.length;){let l=null;if(i?l=e[o]:l=e[e.length-1-o],l){const u=l.render(n,r,a);if(u&&(i||(t-=u.height),u.y=t,St.writeToRenderTexture(u,this._cachedBitmapData,!1),i&&(t=t+u.height),i&&t>=this._cachedBitmapData.height||!i&&t<=0))return t}o++}return t}renderRepeatNone(e){!this._cells.length||!this._cachedBitmapData||this.renderCells(this._cells,0,!0,e)}renderRepeatAll(e,t,i){if(!this._cells.length||!this._cachedBitmapData)return;let n=0;for(;n<this._cachedBitmapData.height;)if(n=this.renderCells(this._cells,n,!0,e,t,i),!n)return}renderRepeatBorders(e){if(!this._cells.length||!this._cachedBitmapData)return;const t=[];let i=0,n=1;for(;n<this._cells.length-1;){const l=this._cells[n];if(l){const u=l.getHeight(e);u>0&&(i=i+u,t.push(l))}n++}if(this._cells.length==1){const l=this._cells[0];if(l){const u=l.getHeight(e);u>0&&(i=i+u,t.push(l))}}let r=this._cachedBitmapData.height-i>>1,a=this.renderCells(t,r,!0,e),o=this._cells[0];if(o){const l=[o];for(;r>=0;)r=this.renderCells(l,r,!1,e)}if(o=this._cells[this._cells.length-1],o){const l=[o];for(;a<this._cachedBitmapData.height;)a=this.renderCells(l,a,!0,e)}}renderRepeatCenter(e){if(!this._cells.length||!this._cachedBitmapData)return;const t=[],i=[];let n=0,r=0,a=0;for(;a<this._cells.length>>1;){const u=this._cells[a];if(u){const c=u.getHeight(e);c>0&&(n=n+c,t.push(u))}a++}for(a=(this._cells.length>>1)+1;a<this._cells.length;){const u=this._cells[a];if(u){const c=u.getHeight(e);c>0&&(r=r+c,i.push(u))}a++}let o=0,l=this._cachedBitmapData.height;if(n+r>this._cachedBitmapData.height&&(o=n+r-this._cachedBitmapData.height,l=l+(o-(o>>1))),o==0){const u=this._cells[this._cells.length>>1];if(u){const c=u.getHeight(e);if(c>0){const h=this._cachedBitmapData.height-(n+r),f=Math.ceil(h/c)*c;let d=n-(f-h>>1);const _=d+f,g=[u];for(;d<_;)d=this.renderCells(g,d,!0,e)}}}this.renderCells(t,0,!0,e),this.renderCells(i,l,!1,e)}renderRepeatFirst(e){if(!this._cells.length||!this._cachedBitmapData)return;let t=this.renderCells(this._cells,this._cachedBitmapData.height,!1,e);const i=this._cells[0];if(!i)return;const n=[i];for(;t>=0;)t=this.renderCells(n,t,!1,e)}renderRepeatLast(e){if(!this._cells.length||!this._cachedBitmapData)return;let t=this.renderCells(this._cells,0,!0,e);const i=this._cells[this._cells.length-1];if(!i)return;const n=[i];for(;t<this._cachedBitmapData.height;)t=this.renderCells(n,t,!0,e)}getCells(){return this._cells}};hs.REPEAT_MODE_NONE=0,hs.REPEAT_MODE_ALL=1,hs.REPEAT_MODE_BORDERS=2,hs.REPEAT_MODE_CENTER=3,hs.REPEAT_MODE_FIRST=4,hs.REPEAT_MODE_LAST=5;let wr=hs;const It=class It{constructor(e,t=1,i=1,n=-1,r=1,a=-1,o=1){this._repeatMode=1,this._align=1,this._cachedBitmapNormal=null,this._cachedBitmapHeight=0,this._isCached=!1,this._isStatic=!0,this._normalMinX=-1,this._normalMaxX=1,this._normalMinY=-1,this._normalMaxY=1,this._columns=[],e<1&&(e=1);let l=0;for(;l<e;)this._columns.push(null),l++;this._repeatMode=t,this._align=i,this._normalMinX=n,this._normalMaxX=r,this._normalMinY=a,this._normalMaxY=o,this._repeatMode===It.REPEAT_MODE_RANDOM&&(this._isStatic=!1)}static nextRandomColumnIndex(e){return il.getValues(1,0,e*17631)[0]%e}get normalMinX(){return this._normalMinX}get normalMaxX(){return this._normalMaxX}get normalMinY(){return this._normalMinY}get normalMaxY(){return this._normalMaxY}isBottomAligned(){return this._align===It.ALIGN_BOTTOM}get isStatic(){return this._isStatic}dispose(){this._cachedBitmapNormal&&(this._cachedBitmapNormal=null)}clearCache(){if(this._isCached){if(this._cachedBitmapNormal&&(this._cachedBitmapNormal.x=0,this._cachedBitmapNormal.y=0,this._cachedBitmapNormal.z=0),this._columns&&this._columns.length)for(const e of this._columns)e&&e.clearCache();this._isCached=!1}}createColumn(e,t,i,n=1){if(e<0||e>=this._columns.length)return!1;const r=new wr(t,i,n),a=this._columns[e];return a&&a.dispose(),this._columns[e]=r,r&&!r.isStatic&&(this._isStatic=!1),!0}render(e,t,i,n,r,a,o,l,u,c){if(n<1&&(n=1),r<1&&(r=1),this._cachedBitmapNormal||(this._cachedBitmapNormal=new M),this.isStatic){if(this._cachedBitmapData){if(this._cachedBitmapData.baseTexture&&this._cachedBitmapData.width===n&&this._cachedBitmapData.height===r&&M.isEqual(this._cachedBitmapNormal,a))return i?(this.copyCachedBitmapOnCanvas(i,this._cachedBitmapHeight,u,c),i):this._cachedBitmapData;this._cachedBitmapData=null}}else this._cachedBitmapData=null;if(this._isCached=!0,this._cachedBitmapNormal.assign(a),!o)return this._cachedBitmapHeight=r,this._cachedBitmapData?t.clearAndFillRenderTexture(this._cachedBitmapData):this._cachedBitmapData=t.createAndFillRenderTexture(n,r,`${e}:matrix`),this._cachedBitmapData;this._cachedBitmapData||(this._cachedBitmapHeight=r,this._cachedBitmapData=t.createRenderTexture(n,r,`${e}:matrix`),t.clearRenderTexture(this._cachedBitmapData));const h=[];let f=0;for(;f<this._columns.length;){const _=this._columns[f];if(_){const g=_.render(e,t,r,a,l,u);g&&h.push(g)}f++}if(!h.length)return i||this._cachedBitmapData;let d=0;switch(this._repeatMode){case It.REPEAT_MODE_BORDERS:le.log("REPEAT_MODE_BORDERS");break;case It.REPEAT_MODE_CENTER:le.log("REPEAT_MODE_CENTER");break;case It.REPEAT_MODE_FIRST:le.log("REPEAT_MODE_FIRST");break;case It.REPEAT_MODE_LAST:le.log("REPEAT_MODE_LAST");break;case It.REPEAT_MODE_RANDOM:d=this.renderRepeatRandom(this._cachedBitmapData,h);break;default:d=this.renderRepeatAll(this._cachedBitmapData,h);break}return this._cachedBitmapHeight=d,i?(this.copyCachedBitmapOnCanvas(i,d,u,c),i):this._cachedBitmapData}copyCachedBitmapOnCanvas(e,t,i,n){if(!e||!this._cachedBitmapData||e===this._cachedBitmapData)return;n||(i=e.height-t-i);let r=null;this._align===It.ALIGN_TOP?r=new ve(0,0,this._cachedBitmapData.width,this._cachedBitmapHeight):r=new ve(0,this._cachedBitmapData.height-this._cachedBitmapHeight,this._cachedBitmapData.width,this._cachedBitmapHeight);const a=new Pi(this._cachedBitmapData.baseTexture,r),o=new mt(a);o.position.set(0,i),St.writeToRenderTexture(o,e,!1)}getColumnsWidth(e){if(!e||!e.length)return 0;let t=0;for(const i of e)i&&(t+=i.width);return t}renderColumns(e,t,i,n){if(!e||!t||!t.length)return new Q(i,0);let r=0,a=0;for(;a<t.length;){const o=n?t[a]:t[t.length-1-a];if(o){n||(i=i-o.width);let l=0;this._align==It.ALIGN_BOTTOM&&(l=e.height-o.height);const u=new mt(o);if(u.position.set(i,l),St.writeToRenderTexture(u,e,!1),o.height>r&&(r=o.height),n&&(i=i+o.width),n&&i>=e.width||!n&&i<=0)return new Q(i,r)}a++}return new Q(i,r)}renderRepeatAll(e,t){if(!e||!t||!t.length)return 0;this.getColumnsWidth(t);let i=0,n=0;for(;i<e.width;){const r=this.renderColumns(e,t,i,!0);if(i=r.x,r.y>n&&(n=r.y),!r.x)return n}return n}renderRepeatRandom(e,t){if(!e||!t||!t.length)return 0;let i=0,n=0;for(;n<e.width;){const r=t[It.nextRandomColumnIndex(t.length)];if(r!=null){const a=this.renderColumns(e,[r],n,!0);n=a.x,a.y>i&&(i=a.y)}else return i}return i}getColumns(e){if(this._repeatMode===It.REPEAT_MODE_RANDOM){const t=[];let i=0;for(;i<e;){const n=this._columns[It.nextRandomColumnIndex(this._columns.length)];if(n)if(t.push(n),n.width>1)i+=n.width;else break;else break}return t}return this._columns}};It.REPEAT_MODE_ALL=1,It.REPEAT_MODE_BORDERS=2,It.REPEAT_MODE_CENTER=3,It.REPEAT_MODE_FIRST=4,It.REPEAT_MODE_LAST=5,It.REPEAT_MODE_RANDOM=6,It.REPEAT_MODE_DEFAULT=It.REPEAT_MODE_ALL,It.MIN_NORMAL_COORDINATE_VALUE=-1,It.MAX_NORMAL_COORDINATE_VALUE=1,It.ALIGN_TOP=1,It.ALIGN_BOTTOM=2,It.ALIGN_DEFAULT=It.ALIGN_TOP;let Si=It;const BE=class BE{constructor(){this._planeMaterialItems=[],this._isCached=!1}dispose(){if(this._planeMaterialItems&&this._planeMaterialItems.length){for(const e of this._planeMaterialItems)e&&e.dispose();this._planeMaterialItems=null}this._isCached=!1}clearCache(){if(this._isCached){if(this._planeMaterialItems&&this._planeMaterialItems.length)for(const e of this._planeMaterialItems)e&&e.clearCache();this._isCached=!1}}addMaterialCellMatrix(e,t,i,n=-1,r=1,a=-1,o=1){const l=new Si(e,t,i,n,r,a,o);return this._planeMaterialItems.push(l),l}getMaterialCellMatrix(e){if(!e)return null;if(this._planeMaterialItems&&this._planeMaterialItems.length){for(const t of this._planeMaterialItems)if(t&&e.x>=t.normalMinX&&e.x<=t.normalMaxX&&e.y>=t.normalMinY&&e.y<=t.normalMaxY)return t}return null}render(e,t,i,n,r,a,o,l,u,c){n<1&&(n=1),r<1&&(r=1);const h=this.getMaterialCellMatrix(a);return h?(this._isCached=!0,h.render(e,t,i,n,r,a,o,l,u,c)):null}};BE.MIN_NORMAL_COORDINATE_VALUE=-1,BE.MAX_NORMAL_COORDINATE_VALUE=1;let gA=BE;class qye{constructor(e,t=null,i=null,n=0){if(this._extraItemCount=0,this._texture=e,this._extraItemOffsets=[],this._extraItemAssets=[],this._extraItemCount=0,t&&t.length&&n>0){let r=0;for(;r<t.length;){const a=t[r];a&&this._extraItemAssets.push(a),r++}if(this._extraItemAssets.length){if(i){let a=0;for(;a<i.length;){const o=i[a];o&&this._extraItemOffsets.push(new Q(o.x,o.y)),a++}}this._extraItemCount=n}}}get isStatic(){return this._extraItemCount===0}dispose(){this._texture&&(this._texture.dispose(),this._texture=null),this._extraItemAssets=null,this._extraItemOffsets=null,this._extraItemCount=0}clearCache(){}getHeight(e){if(this._texture){const t=this._texture.getBitmap(e);if(t)return t.height}return 0}render(e,t,i){if(!this._texture)return null;const n=this._texture.getBitmap(e);if(!n)return null;const r=new YEe(n,n.width,n.height);if(t!==0||i!==0){for(;t<0;)t+=n.width;for(;i<0;)i+=n.height;r.tilePosition.set(t%n.width,i%n.height),r.uvRespectAnchor=!0,t&&(r.anchor.x=1,r.scale.x=-1),i&&(r.anchor.y=1,r.scale.y=-1)}if(!this.isStatic){const a=Math.min(this._extraItemCount,this._extraItemOffsets.length),o=Math.max(this._extraItemCount,this._extraItemOffsets.length),l=il.getArray(this._extraItemCount,o);let u=0;for(;u<a;){const c=this._extraItemOffsets[l[u]],h=this._extraItemAssets[u%this._extraItemAssets.length];if(c&&h){const f=h.texture;if(f){let d=h.offsetX,_=h.offsetY,g=1,p=1,m=0,v=0;h.flipH&&(g=-1,m=f.width,d=-(h.width+h.x)),h.flipV&&(p=-1,v=f.height,_=-(h.height+h.y));const E=new Q(c.x+d,c.y+_),y=new dt;let T=E.x+m;T=T>>1<<1,y.scale(g,p),y.translate(T,E.y+v);const w=new mt(f);w.transform.setFromMatrix(y),r.addChild(w)}}u++}}return r}getAssetName(e){return this._texture==null?null:this._texture.getAssetName(e)}}const GE=class GE{constructor(e,t=-1,i=1,n=-1,r=1,a=null){this._bitmap=e,this._normalMinX=t,this._normalMaxX=i,this._normalMinY=n,this._normalMaxY=r,this._assetName=a}get bitmap(){return this._bitmap}get normalMinX(){return this._normalMinX}get normalMaxX(){return this._normalMaxX}get normalMinY(){return this._normalMinY}get normalMaxY(){return this._normalMaxY}get assetName(){return this._assetName}dispose(){this._bitmap=null}};GE.MIN_NORMAL_COORDINATE_VALUE=-1,GE.MAX_NORMAL_COORDINATE_VALUE=1;let pA=GE;const VE=class VE{constructor(){this._bitmaps=[]}dispose(){if(this._bitmaps){for(const e of this._bitmaps)e&&e.dispose();this._bitmaps=null}}addBitmap(e,t=-1,i=1,n=-1,r=1,a=null){this._bitmaps.push(new pA(e,t,i,n,r,a))}getBitmap(e){const t=this.getPlaneTextureBitmap(e);return t?t.bitmap:null}getPlaneTextureBitmap(e){if(!e)return null;for(const t of this._bitmaps)if(t&&e.x>=t.normalMinX&&e.x<=t.normalMaxX&&e.y>=t.normalMinY&&e.y<=t.normalMaxY)return t;return null}getAssetName(e){const t=this.getPlaneTextureBitmap(e);return t?t.assetName:null}};VE.MIN_NORMAL_COORDINATE_VALUE=-1,VE.MAX_NORMAL_COORDINATE_VALUE=1;let Ul=VE;const jE=class jE{constructor(){this._assetCollection=null,this._textures=new Map,this._materials=new Map,this._planes=new Map,this._geometries=new Map,this._data=null}get data(){return this._data}get assetCollection(){return this._assetCollection}initializeDimensions(e,t){return!0}dispose(){if(this._planes){for(const e of this._planes.values())e&&e.dispose();this._planes=null}if(this._materials&&(this.resetMaterials(),this._materials=null),this._textures&&(this.resetTextures(),this._textures=null),this._geometries){for(const e of this._geometries.values())e&&e.dispose();this._geometries=null}this._data=null,this._assetCollection=null}clearCache(){for(const e of this._planes.values())e&&e.clearCache();for(const e of this._materials.values())e&&e.clearCache()}initialize(e){this._data=e}reinitialize(){this.resetTextures(),this.resetMaterials(),this.initializeAll()}resetMaterials(){for(const e of this._materials.values())e&&e.dispose();this._materials.clear()}resetTextures(){for(const e of this._textures.values())e&&e.dispose();this._textures.clear()}getTexture(e){return this._textures.get(e)}getMaterial(e){return this._materials.get(e)}getPlane(e){return this._planes.get(e)}addPlane(e,t){return t?this._planes.get(e)?!1:(this._planes.set(e,t),!0):!1}initializeAssetCollection(e){this._data&&(this._assetCollection=e,this.initializeAll())}initializeAll(){this._data&&(this.initializeTexturesAndMaterials(),this.initializePlanes())}initializeTexturesAndMaterials(){this._data.textures&&this._data.textures.length&&this.parseTextures(this._data.textures,this.assetCollection),this._data.materials&&this._data.materials.length&&this.parsePlaneMaterials(this._data.materials)}initializePlanes(){}parseTextures(e,t){if(!(!e||!t)&&e.length)for(const i of e){if(!i)continue;const n=i.id;if(!this._textures.get(n)){const r=new Ul;if(i.bitmaps&&i.bitmaps.length)for(const a of i.bitmaps){if(!a)continue;const o=a.assetName;let l=Ul.MIN_NORMAL_COORDINATE_VALUE,u=Ul.MAX_NORMAL_COORDINATE_VALUE,c=Ul.MIN_NORMAL_COORDINATE_VALUE,h=Ul.MAX_NORMAL_COORDINATE_VALUE;a.normalMinX!==void 0&&(l=a.normalMinX),a.normalMaxX!==void 0&&(u=a.normalMaxX),a.normalMinY!==void 0&&(c=a.normalMinY),a.normalMaxY!==void 0&&(h=a.normalMaxY);const f=t.getAsset(o);if(f){const d=f.texture;if(d){let _=d;f.flipH?_=QQ.getFlipHBitmapData(d):_=_.clone(),r.addBitmap(_,l,u,c,h,o)}}}this._textures.set(n,r)}}}parsePlaneMaterials(e){if(!(!e||!e.length))for(const t of e){if(!t)continue;const i=t.id,n=new gA;if(t.matrices&&t.matrices.length)for(const r of t.matrices){if(!r)continue;let a=Si.REPEAT_MODE_DEFAULT,o=Si.ALIGN_DEFAULT,l=Si.MIN_NORMAL_COORDINATE_VALUE,u=Si.MAX_NORMAL_COORDINATE_VALUE,c=Si.MIN_NORMAL_COORDINATE_VALUE,h=Si.MAX_NORMAL_COORDINATE_VALUE;switch(r.normalMinX!==void 0&&(l=r.normalMinX),r.normalMaxX!==void 0&&(u=r.normalMaxX),r.normalMinY!==void 0&&(c=r.normalMinY),r.normalMaxY!==void 0&&(h=r.normalMaxY),r.repeatMode){case"borders":a=Si.REPEAT_MODE_BORDERS;break;case"center":a=Si.REPEAT_MODE_CENTER;break;case"first":a=Si.REPEAT_MODE_FIRST;break;case"last":a=Si.REPEAT_MODE_LAST;break;case"random":a=Si.REPEAT_MODE_RANDOM;break;default:a=Si.REPEAT_MODE_DEFAULT;break}switch(r.align){case"top":o=Si.ALIGN_TOP;break;case"bottom":o=Si.ALIGN_BOTTOM;break;default:o=Si.ALIGN_DEFAULT;break}if(r.columns&&r.columns.length){const f=n.addMaterialCellMatrix(r.columns.length,a,o,l,u,c,h);let d=0;for(;d<r.columns.length;){const _=r.columns[d];_&&this.parsePlaneMaterialCellColumn(_,f,d),d++}}}this._materials.set(i,n)}}parsePlaneMaterialCellColumn(e,t,i){if(!e||!t)return;let n=wr.REPEAT_MODE_ALL;const r=e.width,a=this.parsePlaneMaterialCells(e);switch(e.repeatMode){case"borders":n=wr.REPEAT_MODE_BORDERS;break;case"center":n=wr.REPEAT_MODE_CENTER;break;case"first":n=wr.REPEAT_MODE_FIRST;break;case"last":n=wr.REPEAT_MODE_LAST;break;case"none":n=wr.REPEAT_MODE_NONE;break;default:n=wr.REPEAT_MODE_ALL;break}t.createColumn(i,r,a,n)}parsePlaneMaterialCells(e){if(!e||!e.cells||!e.cells.length)return null;const t=[];let i=0;for(;i<e.cells.length;){const n=e.cells[i];if(n){const r=n.textureId;let a=null,o=null,l=null,u=0;if(n.extraData){const f=n.extraData.extraItemTypes,d=n.extraData.offsets;f&&d&&f.length&&d.length&&(a=this.parseExtraItemTypes(f),o=this.parseExtraItemOffsets(d),u=o.length,n.extraData.limitMax!==void 0&&(u=n.extraData.limitMax))}if(a&&a.length){l=[];for(const f of a){if(!f)continue;const d=this._assetCollection.getAsset(f);d&&l.push(d)}}const c=this.getTexture(r),h=new qye(c,l,o,u);t.push(h)}i++}return!t||!t.length?null:t}parseExtraItemTypes(e){const t=[];if(e&&e.length){let i=0;for(;i<e.length;){const n=e[i];n&&t.push(n),i++}}return t}parseExtraItemOffsets(e){const t=[];if(e&&e.length){let i=0;for(;i<e.length;){const[n,r]=e[i];t.push(new Q(n,r)),i++}}return t}getGeometry(e,t,i){t=Math.abs(t),t>90&&(t=90),i=Math.abs(i),i>90&&(i=90);const n=`${e}_${Math.round(t)}_${Math.round(i)}`;let r=this._geometries.get(n);return r||(r=new Bu(e,new M(t,i),new M(-10,0,0)),this._geometries.set(n,r),r)}parseVisualizations(e,t){if(!(!e||!t)&&t&&t.length)for(const i of t){if(!i)continue;const n=i.size;let r=xc.HORIZONTAL_ANGLE_DEFAULT,a=xc.VERTICAL_ANGLE_DEFAULT;i.horizontalAngle!==void 0&&(r=i.horizontalAngle),i.verticalAngle!==void 0&&(a=i.verticalAngle);const o=i.allLayers,l=e.createPlaneVisualization(n,o&&o.length||0,this.getGeometry(n,r,a));if(l&&o&&o.length){let u=0;for(;u<o.length;){const c=o[u];if(c){let h=null,f=Nn.ALIGN_DEFAULT,d=xc.DEFAULT_COLOR,_=Nn.DEFAULT_OFFSET;c.materialId&&(h=this.getMaterial(c.materialId)),c.color&&(d=c.color),c.offset&&(_=c.offset),c.align&&(c.align==="bottom"?f=Nn.ALIGN_BOTTOM:c.align=="top"&&(f=Nn.ALIGN_TOP)),l.setLayer(u,h,d,f,_)}u++}}}}render(e,t,i,n,r,a,o,l,u,c=0,h=0,f=0,d=0,_=0){return null}getTextureIdentifier(e,t){return e.toString()}getLayers(e){let t=this.getPlane(e);return t||(t=this.getPlane(jE.DEFAULT)),t.getLayers()}};jE.DEFAULT="default";let zu=jE;class $ye extends zu{initializePlanes(){if(!this.data)return;const e=this.data.planes;e&&e.length&&this.parseFloors(e)}parseFloors(e){if(e)for(const t in e){const i=e[t];if(!i)continue;const n=i.id,r=i.visualizations,a=new xc;this.parseVisualizations(a,r),this.addPlane(n,a)||a.dispose()}}render(e,t,i,n,r,a,o,l,u,c=0,h=0,f=0,d=0,_=0){let g=this.getPlane(n);if(g||(g=this.getPlane(zu.DEFAULT)),!g)return null;i&&t.clearAndFillRenderTexture(i);let p=g.render(e,t,i,r,a,o,l,u,c,h);return p&&p!==i&&(p=new Pi(p.baseTexture),!p)?null:new Gv(p,-1)}}const a_=class a_ extends Yw{render(e,t,i,n,r,a,o,l){const u=this.getPlaneVisualization(a);if(!u||!u.geometry)return null;const c=u.geometry.getScreenPoint(new M(0,0,0)),h=u.geometry.getScreenPoint(new M(0,0,r/u.geometry.scale)),f=u.geometry.getScreenPoint(new M(0,n/u.geometry.scale,0));return c&&h&&f&&(n=Math.round(Math.abs(c.x-f.x)),r=Math.round(Math.abs(c.y-h.y))),u.render(e,t,i,n,r,o,l)}};a_.DEFAULT_COLOR=16777215,a_.HORIZONTAL_ANGLE_DEFAULT=45,a_.VERTICAL_ANGLE_DEFAULT=30;let mA=a_;class Qye extends zu{initializePlanes(){if(!this.data)return;const e=this.data.planes;e&&e.length&&this.parseWalls(e)}parseWalls(e){if(e)for(const t in e){const i=e[t];if(!i)continue;const n=i.id,r=i.visualizations,a=new mA;this.parseVisualizations(a,r),this.addPlane(n,a)||a.dispose()}}render(e,t,i,n,r,a,o,l,u,c=0,h=0,f=0,d=0,_=0){let g=this.getPlane(n);if(g||(g=this.getPlane(zu.DEFAULT)),!g)return null;i&&t.clearAndFillRenderTexture(i);let p=g.render(e,t,i,r,a,o,l,u);return p&&p!==i&&(p=new Pi(p.baseTexture),!p)?null:new Gv(p,-1)}getTextureIdentifier(e,t){return t?`${e}_${t.x}_${t.y}_${t.z}`:super.getTextureIdentifier(e,t)}}const o_=class o_ extends Yw{constructor(){super(...arguments),this._width=0,this._height=0}isStatic(e){const t=this.getPlaneVisualization(e);return t?!t.hasAnimationLayers:super.isStatic(e)}initializeDimensions(e,t){e<0&&(e=0),t<0&&(t=0),(e!==this._width||t!==this._height)&&(this._width=e,this._height=t)}render(e,t,i,n,r,a,o,l,u,c,h,f,d){const _=this.getPlaneVisualization(a);if(!_||!_.geometry)return null;const g=_.geometry.getScreenPoint(new M(0,0,0)),p=_.geometry.getScreenPoint(new M(0,0,1)),m=_.geometry.getScreenPoint(new M(0,1,0));if(g&&p&&m){n=Math.round(Math.abs((g.x-m.x)*n/_.geometry.scale)),r=Math.round(Math.abs((g.y-p.y)*r/_.geometry.scale));const v=Math.trunc(u*Math.abs(g.x-m.x)),E=Math.trunc(c*Math.abs(g.y-p.y)),y=Math.trunc(h*Math.abs(g.x-m.x)),T=Math.trunc(f*Math.abs(g.y-p.y));return _.render(e,t,i,n,r,o,l,v,E,y,T,h,f,d)}return null}};o_.DEFAULT_COLOR=16777215,o_.HORIZONTAL_ANGLE_DEFAULT=45,o_.VERTICAL_ANGLE_DEFAULT=30;let xh=o_;const br=class br extends zu{constructor(){super(...arguments),this._landscapeWidth=0,this._landscapeHeight=0,this._cachedBitmap=null}initializeDimensions(e,t){return e<0&&(e=0),t<0&&(t=0),this._landscapeWidth=e,this._landscapeHeight=t,!0}initializePlanes(){if(!this.data)return;const e=this.data.planes;e&&e.length&&this.parseLandscapes(e)}parseLandscapes(e){if(!e)return;const t=Math.trunc(Math.random()*654321);for(const i in e){const n=e[i];if(!n)continue;const r=n.id,a=n.animatedVisualization,o=new xh;for(const l of a){if(!l)continue;const u=l.size;let c=xh.HORIZONTAL_ANGLE_DEFAULT,h=xh.VERTICAL_ANGLE_DEFAULT;l.horizontalAngle!==void 0&&(c=l.horizontalAngle),l.verticalAngle!==void 0&&(h=l.verticalAngle);const f=l.allLayers.length??0,d=o.createPlaneVisualization(u,f||0,this.getGeometry(u,c,h));if(d){il.setSeed(t);let _=0;for(;_<f;){const g=l.allLayers[_];if(g){if(g.items===void 0){const p=g;let m=null,v=Nn.ALIGN_DEFAULT,E=xh.DEFAULT_COLOR,y=Nn.DEFAULT_OFFSET;p.materialId&&(m=this.getMaterial(p.materialId)),p.color&&(E=p.color),p.offset&&(y=p.offset),p.align&&(p.align==="bottom"?v=Nn.ALIGN_BOTTOM:p.align==="top"&&(v=Nn.ALIGN_TOP)),d.setLayer(_,m,E,v,y)}else{const m=g.items,v=[];if(m&&m.length){for(const E of m)if(E){E.id;const y=E.assetId,T=this.getCoordinateValue(E.x||"",E.randomX||""),w=this.getCoordinateValue(E.y||"",E.randomY||""),C=E.speedX,N=E.speedY;v.push({asset:y,x:T,y:w,speedX:C,speedY:N})}}d.setAnimationLayer(_,v,this.assetCollection)}_++}}}}this.addPlane(r,o)||o.dispose()}}getCoordinateValue(e,t){let i=0;if(e.length>0&&e.charAt(e.length-1)==="%"&&(e=e.substr(0,e.length-1),i=parseFloat(e)/100),t.length>0){const a=il.getValues(1,0,1e4)[0]/1e4;t.charAt(t.length-1)==="%"&&(t=t.substr(0,t.length-1),i=i+a*parseFloat(t)/100)}return i}render(e,t,i,n,r,a,o,l,u,c=0,h=0,f=0,d=0,_=0){let g=this.getPlane(n);if(g||(g=this.getPlane(br.DEFAULT)),!g)return null;i&&t.clearRenderTexture(i);let p=g.render(e,t,i,r,a,o,l,u,c,h,f,d,_);if(p&&p!==i&&(p=new Pi(p.baseTexture),!p))return null;let m=null;return!g.isStatic(o)&&br.UPDATE_INTERVAL>0?m=new Gv(p,Math.round(_/br.UPDATE_INTERVAL)*br.UPDATE_INTERVAL+br.UPDATE_INTERVAL):m=new Gv(p,-1),m}getTextureIdentifier(e,t){return t?t.x<0?e+"_0":e+"_1":super.getTextureIdentifier(e,t)}};br.LANDSCAPES_ENABLED=!0,br.LANDSCAPE_DEFAULT_COLOR=8828617,br.UPDATE_INTERVAL=500;let Vv=br;class ok{constructor(e,t){if(this._color=0,this._isDisposed=!1,this._color=0,this._isDisposed=!1,this._items=[],e&&t)for(const i of e){if(!i)continue;const n=i.asset;if(n){const r=t.getAsset(n);r&&this._items.push(new Xye(i.x,i.y,i.speedX,i.speedY,r))}}}get disposed(){return this._isDisposed}dispose(){if(this._isDisposed=!0,this._items){for(const e of this._items)e&&e.dispose();this._items=[]}}clearCache(){}render(e,t,i,n,r,a,o,l,u,c,h,f){if(l>0&&u>0){let d=0;for(;d<this._items.length;){const _=this._items[d];if(_){const g=_.getPosition(l,u,c,h,f);if(g.x=Math.trunc(g.x-a),g.y=Math.trunc(g.y-o),_.bitmapData){if(g.x>-_.bitmapData.width&&g.x<t.width&&g.y>-_.bitmapData.height&&g.y<t.height){const p=new mt(_.bitmapData.texture);p.position.set(g.x,g.y),e.writeToRenderTexture(p,t,!1)}if(g.x-l>-_.bitmapData.width&&g.x-l<t.width&&g.y>-_.bitmapData.height&&g.y<t.height){const p=new mt(_.bitmapData.texture);p.position.set(g.x-l,g.y),e.writeToRenderTexture(p,t,!1)}if(g.x>-_.bitmapData.width&&g.x<t.width&&g.y-u>-_.bitmapData.height&&g.y-u<t.height){const p=new mt(_.bitmapData.texture);p.position.set(g.x,g.y-u),e.writeToRenderTexture(p,t,!1)}if(g.x-l>-_.bitmapData.width&&g.x-l<t.width&&g.y-u>-_.bitmapData.height&&g.y-u<t.height){const p=new mt(_.bitmapData.texture);p.position.set(g.x-l,g.y-u),e.writeToRenderTexture(p,t,!1)}}}d++}}return t}}class lk{constructor(e,t,i){this._type=e,this._leftSideLoc=t,this._rightSideLoc=i}get type(){return this._type}get leftSideLoc(){return this._leftSideLoc}get rightSideLoc(){return this._rightSideLoc}}class uk{constructor(e,t,i,n){this._leftSideLoc=e,this._rightSideLoc=t,this._leftSideLength=i,this._rightSideLength=n}get leftSideLoc(){return this._leftSideLoc}get rightSideLoc(){return this._rightSideLoc}get leftSideLength(){return this._leftSideLength}get rightSideLength(){return this._rightSideLength}}const cs=class cs{constructor(e,t,i,n,r,a,o,l,u,c=0,h=0,f=0,d=0){if(this._maskManager=null,this._width=0,this._height=0,this._textureCache=e,this._secondaryNormals=[],this._bitmapMasks=[],this._rectangleMasks=[],this._bitmapMasksOld=[],this._rectangleMasksOld=[],this._randomSeed=u,this._bitmapData=null,this._maskBitmapData=null,this._maskChanged=!1,this._activeTexture=null,this._origin=new M,this._origin.assign(t),this._location=new M,this._location.assign(i),this._leftSide=new M,this._leftSide.assign(n),this._rightSide=new M,this._rightSide.assign(r),this._normal=M.crossProduct(this._leftSide,this._rightSide),this._normal.length>0&&this._normal.multiply(1/this._normal.length),l!=null)for(const _ of l){if(!_)continue;const g=new M;g.assign(_),this._secondaryNormals.push(g)}this._disposed=!1,this._isVisible=!1,this._id=null,this._hasTexture=!0,this._geometryUpdateId=-1,this._offset=new Q,this._relativeDepth=0,this._type=a,this._color=0,this._rasterizer=null,this._canBeVisible=!0,this._cornerA=new M,this._cornerB=new M,this._cornerC=new M,this._cornerD=new M,this._width=0,this._height=0,this._textureOffsetX=c,this._textureOffsetY=h,this._textureMaxX=f,this._textureMaxY=d,this._useMask=o,this._uniqueId=++cs._uniqueIdCounter}static blend(e,t){return z_.colorize(t,e|4278190080)&16777215}set canBeVisible(e){e!==this._canBeVisible&&(this._canBeVisible||this.resetTextureCache(),this._canBeVisible=e)}get canBeVisible(){return this._canBeVisible}get bitmapData(){return!this.visible||!this._bitmapData?null:this._bitmapData}get maskBitmapData(){return!this.visible||!this._maskBitmapData?null:this._maskBitmapData}get visible(){return this._isVisible&&this._canBeVisible}get offset(){return this._offset}get relativeDepth(){return this._relativeDepth}get color(){return this._color}set color(e){this._color=e}get type(){return this._type}get leftSide(){return this._leftSide}get rightSide(){return this._rightSide}get location(){return this._location}get normal(){return this._normal}get hasTexture(){return this._hasTexture}set hasTexture(e){this._hasTexture=e}set rasterizer(e){this._rasterizer=e}set maskManager(e){this._maskManager=e}set id(e){e!==this._id&&(this.resetTextureCache(),this._id=e)}get uniqueId(){return this._uniqueId}dispose(){this._activeTexture=null,this._location=null,this._origin=null,this._leftSide=null,this._rightSide=null,this._normal=null,this._rasterizer=null,this._cornerA=null,this._cornerB=null,this._cornerC=null,this._cornerD=null,this._bitmapMasks=null,this._rectangleMasks=null,this._maskPixels=null,this._disposed=!0}copyBitmapData(e){return!this.visible||!this._bitmapData||!e||this._bitmapData.width!==e.width||this._bitmapData.height!==e.height?null:e}resetTextureCache(e=null){this._activeTexture=null}getTextureIdentifier(e){return this._rasterizer?this._rasterizer.getTextureIdentifier(e,this.normal):e.toString()}needsNewTexture(e,t){if(!e)return!1;const i=this._activeTexture;return this.updateMaskChangeStatus(),!!(this._canBeVisible&&(!i||i.timeStamp>=0&&t>i.timeStamp||this._maskChanged))}getTexture(e,t){if(!e)return null;let i=null;if(this.needsNewTexture(e,t)){this.getTextureIdentifier(e.scale);const n=this._leftSide.length*e.scale,r=this._rightSide.length*e.scale,a=e.getCoordinatePosition(this._normal);i=this._rasterizer.render(this._uniqueId.toString(),this._textureCache,null,this._id,n,r,e.scale,a,this._hasTexture,this._textureOffsetX,this._textureOffsetY,this._textureMaxX,this._textureMaxY,t),i&&this.updateMask(i.texture,e)}else this._activeTexture&&(i=this._activeTexture);return i?(this._activeTexture=i,i.texture):null}resolveMasks(e){if(!this._useMask)return null;const t=new zf,i=0;for(;i<this._bitmapMasks.length;){const n=this._bitmapMasks[i];if(n){const r=this._maskManager.getMask(n.type);if(r){const a=r.getAssetName(e.scale);if(a){const o=e.getCoordinatePosition(this._normal),l=r.getGraphicAsset(e.scale,o);if(l){const u=this._maskBitmapData.width*(1-n.leftSideLoc/this._leftSide.length),c=this._maskBitmapData.height*(1-n.rightSideLoc/this._rightSide.length);t.addMask(a,new Q(u+l.offsetX,c+l.offsetY),l.flipH,l.flipV)}}}}}return t}screenWidth(e){const t=e.getScreenPoint(new M(0,0,0)),i=e.getScreenPoint(new M(0,1,0));return Math.round(this._leftSide.length*Math.abs(t.x-i.x))}getDrawingDatas(e){const t=[];if(this._isVisible){const i=this.resolveMasks(e),n=this._rasterizer.getLayers(this._id);for(const r of n)if(this._hasTexture&&r.getMaterial()){const a=e.getCoordinatePosition(this._normal),o=r.getMaterial().getMaterialCellMatrix(a),l=new zf(i,cs.blend(this._color,r.getColor()),o.isBottomAligned());il.setSeed(this._randomSeed);for(const u of o.getColumns(this.screenWidth(e))){const c=[];for(const h of u.getCells()){const f=h.getAssetName(a);f&&c.push(f)}c.length>0&&(u.isRepeated()||c.push(""),l.addAssetColumn(c))}l.assetNameColumns.length>0&&t.push(l)}else{const a=new zf(i,cs.blend(this._color,r.getColor()));t.push(a)}t.length||t.push(new zf(i,this._color))}return t}update(e,t){if(!e||this._disposed)return!1;let i=!1;if(this._geometryUpdateId!=e.updateId&&(i=!0),(!i||!this._canBeVisible)&&!this.visible)return!1;if(i){this._activeTexture=null;let n=0;if(n=M.cosAngle(e.directionAxis,this.normal),n>-.001)return this._isVisible?(this._isVisible=!1,!0):!1;let r=0;for(;r<this._secondaryNormals.length;){if(n=M.cosAngle(e.directionAxis,this._secondaryNormals[r]),n>-.001)return this._isVisible?(this._isVisible=!1,!0):!1;r++}this.updateCorners(e);const o=e.getScreenPosition(this._origin).z;let l=Math.max(this._cornerA.z,this._cornerB.z,this._cornerC.z,this._cornerD.z)-o;this._type===cs.TYPE_FLOOR&&(l=l-(this._location.z+Math.min(0,this._leftSide.z,this._rightSide.z))*8),this._type===cs.TYPE_LANDSCAPE&&(l=l+.02),this._relativeDepth=l,this._isVisible=!0,this._geometryUpdateId=e.updateId}if(i||this.needsNewTexture(e,t)){if(!this._bitmapData||this._width!==this._bitmapData.width||this._height!==this._bitmapData.height){if(this._bitmapData)if(this._width!==this._bitmapData.width||this._height!==this._bitmapData.height){if(this._bitmapData.destroy(),this._bitmapData=null,this._width<1||this._height<1)return!0;this._bitmapData=this._textureCache.createAndFillRenderTexture(this._width,this._height)}else{if(this._width<1||this._height<1)return this._bitmapData.destroy(),this._bitmapData=null,!0;this._textureCache.clearAndFillRenderTexture(this._bitmapData)}else{if(this._width<1||this._height<1)return!1;this._bitmapData=this._textureCache.createAndFillRenderTexture(this._width,this._height)}if(!this._bitmapData)return!1}else this._textureCache.clearAndFillRenderTexture(this._bitmapData);il.setSeed(this._randomSeed);const n=this.getTexture(e,t);if(n)this.renderTexture(e,n);else return this.dispose(),!1;return n!==null||i}return!1}updateCorners(e){this._cornerA.assign(e.getScreenPosition(this._location)),this._cornerB.assign(e.getScreenPosition(M.sum(this._location,this._rightSide))),this._cornerC.assign(e.getScreenPosition(M.sum(M.sum(this._location,this._leftSide),this._rightSide))),this._cornerD.assign(e.getScreenPosition(M.sum(this._location,this._leftSide))),this._offset=e.getScreenPoint(this._origin),this._cornerA.x=Math.round(this._cornerA.x),this._cornerA.y=Math.round(this._cornerA.y),this._cornerB.x=Math.round(this._cornerB.x),this._cornerB.y=Math.round(this._cornerB.y),this._cornerC.x=Math.round(this._cornerC.x),this._cornerC.y=Math.round(this._cornerC.y),this._cornerD.x=Math.round(this._cornerD.x),this._cornerD.y=Math.round(this._cornerD.y),this._offset.x=Math.round(this._offset.x),this._offset.y=Math.round(this._offset.y);const t=Math.min(this._cornerA.x,this._cornerB.x,this._cornerC.x,this._cornerD.x),i=Math.max(this._cornerA.x,this._cornerB.x,this._cornerC.x,this._cornerD.x)-t,n=Math.min(this._cornerA.y,this._cornerB.y,this._cornerC.y,this._cornerD.y),r=Math.max(this._cornerA.y,this._cornerB.y,this._cornerC.y,this._cornerD.y)-n;this._offset.x=this._offset.x-t,this._cornerA.x=this._cornerA.x-t,this._cornerB.x=this._cornerB.x-t,this._cornerC.x=this._cornerC.x-t,this._cornerD.x=this._cornerD.x-t,this._offset.y=this._offset.y-n,this._cornerA.y=this._cornerA.y-n,this._cornerB.y=this._cornerB.y-n,this._cornerC.y=this._cornerC.y-n,this._cornerD.y=this._cornerD.y-n,this._width=i,this._height=r}getMatrixForDimensions(e,t){let i=this._cornerD.x-this._cornerC.x,n=this._cornerD.y-this._cornerC.y,r=this._cornerB.x-this._cornerC.x,a=this._cornerB.y-this._cornerC.y;(this._type===cs.TYPE_WALL||this._type===cs.TYPE_LANDSCAPE)&&(Math.abs(r-e)<=1&&(r=e),Math.abs(a-e)<=1&&(a=e),Math.abs(i-t)<=1&&(i=t),Math.abs(n-t)<=1&&(n=t));const o=r/e,l=a/e,u=i/t,c=n/t,h=new dt(o,l,u,c);return h.translate(this._cornerC.x,this._cornerC.y),h}renderTexture(e,t){this._cornerA==null||this._cornerB==null||this._cornerC==null||this._cornerD==null||t==null||this._bitmapData==null||this.draw(t,this.getMatrixForDimensions(t.width,t.height))}draw(e,t){this._textureCache.writeToRenderTexture(new mt(e),this._bitmapData,!0,t)}resetBitmapMasks(){this._disposed||!this._useMask||!this._bitmapMasks.length||(this._maskChanged=!0,this._bitmapMasks=[])}addBitmapMask(e,t,i){if(!this._useMask)return!1;for(const r of this._bitmapMasks)if(r&&r.type===e&&r.leftSideLoc===t&&r.rightSideLoc===i)return!1;const n=new lk(e,t,i);return this._bitmapMasks.push(n),this._maskChanged=!0,!0}resetRectangleMasks(){!this._useMask||!this._rectangleMasks.length||(this._maskChanged=!0,this._rectangleMasks=[])}addRectangleMask(e,t,i,n){if(this._useMask){for(const a of this._rectangleMasks)if(a&&a.leftSideLoc===e&&a.rightSideLoc===t&&a.leftSideLength===i&&a.rightSideLength===n)return!1;const r=new uk(e,t,i,n);return this._rectangleMasks.push(r),this._maskChanged=!0,!0}return!1}updateMaskChangeStatus(){if(!this._maskChanged)return;let e=!0;if(this._bitmapMasks.length===this._bitmapMasksOld.length)for(const t of this._bitmapMasks){if(!t)continue;let i=!1;for(const n of this._bitmapMasksOld)if(n&&n.type===t.type&&n.leftSideLoc===t.leftSideLoc&&n.rightSideLoc===t.rightSideLoc){i=!0;break}if(!i){e=!1;break}}else e=!1;this._rectangleMasks.length>this._rectangleMasksOld.length&&(e=!1),e&&(this._maskChanged=!1)}updateMask(e,t){if(!e||!t||!this._useMask||!this._bitmapMasks.length&&!this._rectangleMasks.length&&!this._maskChanged||!this._maskManager)return;const i=e.width,n=e.height;if(this.updateMaskChangeStatus(),(!this._maskBitmapData||this._maskBitmapData.width!==i||this._maskBitmapData.height!==n)&&(this._maskBitmapData=this._textureCache.createAndFillRenderTexture(i,n,"mask"),this._maskChanged=!0),this._maskChanged){this._bitmapMasksOld=[],this._rectangleMasksOld=[],this._maskBitmapData&&this._textureCache.clearAndFillRenderTexture(this._maskBitmapData),this.resetTextureCache(e);const r=t.getCoordinatePosition(this._normal);let a=null,o=0,l=0,u=0;for(;u<this._bitmapMasks.length;){const c=this._bitmapMasks[u];c&&(a=c.type,o=this._maskBitmapData.width-this._maskBitmapData.width*c.leftSideLoc/this._leftSide.length,l=this._maskBitmapData.height-this._maskBitmapData.height*c.rightSideLoc/this._rightSide.length,this._maskManager.updateMask(this._maskBitmapData,a,t.scale,r,o,l),this._bitmapMasksOld.push(new lk(a,c.leftSideLoc,c.rightSideLoc))),u++}for(u=0;u<this._rectangleMasks.length;){const c=this._rectangleMasks[u];if(c){o=this._maskBitmapData.width-this._maskBitmapData.width*c.leftSideLoc/this._leftSide.length,l=this._maskBitmapData.height-this._maskBitmapData.height*c.rightSideLoc/this._rightSide.length;const h=this._maskBitmapData.width*c.leftSideLength/this._leftSide.length,f=this._maskBitmapData.height*c.rightSideLength/this._rightSide.length,d=new mt(Ne.WHITE);d.tint=0,d.width=h,d.height=f,d.position.set(o-h,l-f),this._textureCache.writeToRenderTexture(d,this._maskBitmapData,!1),this._rectangleMasksOld.push(new uk(c.leftSideLength,c.rightSideLoc,c.leftSideLength,c.rightSideLength))}u++}this._maskPixels=this._textureCache.getPixels(this._maskBitmapData),this._maskChanged=!1}this.combineTextureMask(e,this._maskPixels)}combineTextureMask(e,t){var a,o;if(!e||!t)return;const i=this._textureCache.getPixels(e);for(let l=0;l<i.length;l+=4){const u=t[l],c=t[l+1],h=t[l+2];t[l+3],!u&&!c&&!h&&(i[l+3]=0)}const n=(a=e.baseTexture._glTextures[1])==null?void 0:a.texture,r=(o=oi.instance.renderer)==null?void 0:o.gl;!n||!r||(r.bindTexture(r.TEXTURE_2D,n),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,e.width,e.height,0,r.RGBA,r.UNSIGNED_BYTE,i),r.bindTexture(r.TEXTURE_2D,null))}};cs.ZERO_POINT=new Q(0,0),cs.TYPE_UNDEFINED=0,cs.TYPE_WALL=1,cs.TYPE_FLOOR=2,cs.TYPE_LANDSCAPE=3,cs._uniqueIdCounter=1;let nt=cs;class B5 extends Bs{constructor(){super(),this._wallRasterizer=new Qye,this._floorRasterizer=new $ye,this._landscapeRasterizer=new Vv,this._maskManager=new Yye,this._initialized=!1}initialize(e){if(!e.roomVisualization)return!1;const t=e.roomVisualization.wallData;t&&this._wallRasterizer.initialize(t);const i=e.roomVisualization.floorData;i&&this._floorRasterizer.initialize(i);const n=e.roomVisualization.landscapeData;n&&this._landscapeRasterizer.initialize(n);const r=e.roomVisualization.maskData;return r&&this._maskManager.initialize(r),!0}onDispose(){this._wallRasterizer&&(this._wallRasterizer.dispose(),this._wallRasterizer=null),this._floorRasterizer&&(this._floorRasterizer.dispose(),this._floorRasterizer=null),this._landscapeRasterizer&&(this._landscapeRasterizer.dispose(),this._landscapeRasterizer=null),this._maskManager&&(this._maskManager.dispose(),this._maskManager=null),super.onDispose()}setGraphicAssetCollection(e){this._initialized||(this._wallRasterizer.initializeAssetCollection(e),this._floorRasterizer.initializeAssetCollection(e),this._landscapeRasterizer.initializeAssetCollection(e),this._maskManager.initializeAssetCollection(e),this._initialized=!0)}clearCache(){this._wallRasterizer&&this._wallRasterizer.clearCache(),this._floorRasterizer&&this._floorRasterizer.clearCache(),this._landscapeRasterizer&&this._landscapeRasterizer.clearCache()}get wallRasterizer(){return this._wallRasterizer}get floorRasterizer(){return this._floorRasterizer}get landscapeRasterizer(){return this._landscapeRasterizer}get maskManager(){return this._maskManager}}const _t=class _t extends Kc{constructor(){super(),this._data=null,this._roomPlaneParser=new ri,this._roomPlaneBitmapMaskParser=new M5,this._geometryUpdateId=-1,this._directionX=0,this._directionY=0,this._directionZ=0,this._floorThickness=1,this._wallThickness=1,this._holeUpdateTime=NaN,this._planes=[],this._visiblePlanes=[],this._visiblePlaneSpriteNumbers=[],this._roomScale=0,this._lastUpdateTime=-1e3,this._updateIntervalTime=250,this._wallType=null,this._floorType=null,this._landscapeType=null,this._colorBackgroundOnly=!0,this._color=16777215,this._redColor=255,this._greenColor=255,this._blueColor=255,this._typeVisibility=[],this._assetUpdateCounter=0,this._maskData=null,this._isPlaneSet=!1,this._textureCache=new oR,this._typeVisibility[nt.TYPE_UNDEFINED]=!1,this._typeVisibility[nt.TYPE_FLOOR]=!0,this._typeVisibility[nt.TYPE_WALL]=!0,this._typeVisibility[nt.TYPE_LANDSCAPE]=!0}initialize(e){return e instanceof B5?(this._data=e,super.initialize(e),this._data.setGraphicAssetCollection(this.asset),!0):!1}dispose(){super.dispose(),this.clearPlanes(),this._planes=null,this._visiblePlanes=null,this._visiblePlaneSpriteNumbers=null,this._roomPlaneParser&&(this._roomPlaneParser.dispose(),this._roomPlaneParser=null),this._roomPlaneBitmapMaskParser&&(this._roomPlaneBitmapMaskParser.dispose(),this._roomPlaneBitmapMaskParser=null),this._data&&(this._data.clearCache(),this._data=null),this._textureCache&&this._textureCache.clearCache()}reset(){super.reset(),this._floorType=null,this._wallType=null,this._landscapeType=null,this._maskData=null,this._geometryUpdateId=-1,this._roomScale=0}update(e,t,i,n){if(!this.object||!e)return;const r=this.updateGeometry(e),a=this.object.model;let o=!1;if(this.updateThickness(a)&&(o=!0),this.updateHole(a)&&(o=!0),this.initializeRoomPlanes(),o=this.updateMasks(a),!(t<this._lastUpdateTime+this._updateIntervalTime&&!r&&!o)){if(this.updatePlaneTexturesAndVisibilities(a)&&(o=!0),this.updatePlanes(e,r,t)&&(o=!0),o){let l=0;for(;l<this._visiblePlanes.length;){const u=this._visiblePlaneSpriteNumbers[l],c=this.getSprite(u),h=this._visiblePlanes[l];if(c&&h&&h.type!==nt.TYPE_LANDSCAPE)if(this._colorBackgroundOnly){let f=h.color;const d=(f&255)*this._redColor/255,_=(f>>8&255)*this._greenColor/255,g=(f>>16&255)*this._blueColor/255;f=(f>>24<<24)+(g<<16)+(_<<8)+d,c.color=f}else c.color=h.color;l++}this.updateSpriteCounter++}this.updateModelCounter=a.updateCounter,this._lastUpdateTime=t}}updateGeometry(e){if(!e||this._geometryUpdateId===e.updateId)return!1;this._geometryUpdateId=e.updateId,this._boundingRectangle=null;const t=e.direction;return t&&(t.x!==this._directionX||t.y!==this._directionY||t.z!==this._directionZ||e.scale!==this._roomScale)?(this._directionX=t.x,this._directionY=t.y,this._directionZ=t.z,this._roomScale=e.scale,!0):!1}updateThickness(e){if(this.updateModelCounter===e.updateCounter)return!1;const t=e.getValue(b.ROOM_FLOOR_THICKNESS),i=e.getValue(b.ROOM_WALL_THICKNESS);return!isNaN(t)&&!isNaN(i)&&(t!==this._floorThickness||i!==this._wallThickness)?(this._floorThickness=t,this._wallThickness=i,this.clearPlanes(),!0):!1}updateHole(e){if(this.updateModelCounter===e.updateCounter)return!1;const t=e.getValue(b.ROOM_FLOOR_HOLE_UPDATE_TIME);return!isNaN(t)&&t!==this._holeUpdateTime?(this._holeUpdateTime=t,this.clearPlanes(),!0):!1}updateMasks(e){if(this.updateModelCounter===e.updateCounter)return!1;let t=!1;const i=e.getValue(b.ROOM_PLANE_MASK_XML);i!==this._maskData&&(this.updatePlaneMasks(i),this._maskData=i,t=!0);const n=e.getValue(b.ROOM_BACKGROUND_COLOR);n!==this._color&&(this._color=n,this._redColor=this._color&255,this._greenColor=this._color>>8&255,this._blueColor=this._color>>16&255,t=!0);const r=e.getValue(b.ROOM_COLORIZE_BG_ONLY)||!1;return r!==this._colorBackgroundOnly&&(this._colorBackgroundOnly=r,t=!0),t}updatePlaneTexturesAndVisibilities(e){if(this.updateModelCounter===e.updateCounter)return!1;const t=e.getValue(b.ROOM_FLOOR_TYPE),i=e.getValue(b.ROOM_WALL_TYPE),n=e.getValue(b.ROOM_LANDSCAPE_TYPE),r=e.getValue(b.ROOM_FLOOR_VISIBILITY)===1,a=e.getValue(b.ROOM_WALL_VISIBILITY)===1,o=e.getValue(b.ROOM_LANDSCAPE_VISIBILITY)===1;return this.updatePlaneTypes(t,i,n)||this.updatePlaneVisibility(r,a,o)}clearPlanes(){if(this._planes){for(;this._planes.length;){const e=this._planes[0];e&&e.dispose(),this._planes.pop()}this._planes=[],this._planes=[]}this._isPlaneSet=!1,this._assetUpdateCounter=this._assetUpdateCounter+1,this.reset()}initializeRoomPlanes(){if(!this.object||this._isPlaneSet)return;isNaN(this._floorThickness)||(this._roomPlaneParser.floorThicknessMultiplier=this._floorThickness),isNaN(this._wallThickness)||(this._roomPlaneParser.wallThicknessMultiplier=this._wallThickness);const e=this.object.model.getValue(b.ROOM_MAP_DATA);if(!this._roomPlaneParser.initializeFromMapData(e))return;const t=this.getLandscapeWidth(),i=this.getLandscapeHeight();let n=0,r=this.object.model.getValue(b.ROOM_RANDOM_SEED),a=0;for(;a<this._roomPlaneParser.planeCount;){const o=this._roomPlaneParser.getPlaneLocation(a),l=this._roomPlaneParser.getPlaneLeftSide(a),u=this._roomPlaneParser.getPlaneRightSide(a),c=this._roomPlaneParser.getPlaneSecondaryNormals(a),h=this._roomPlaneParser.getPlaneType(a);let f=null;if(o&&l&&u){const d=M.crossProduct(l,u);if(r=V5(Math.trunc(r*7613+517)>>>0),f=null,h===Nt.PLANE_FLOOR){const _=o.x+l.x+.5,g=o.y+u.y+.5,p=Math.trunc(_)-_,m=Math.trunc(g)-g;f=new nt(this._textureCache,this.object.getLocation(),o,l,u,nt.TYPE_FLOOR,!0,c,r,-p,-m),d.z!==0?f.color=_t.FLOOR_COLOR:f.color=d.x!==0?_t.FLOOR_COLOR_RIGHT:_t.FLOOR_COLOR_LEFT,this._data&&(f.rasterizer=this._data.floorRasterizer)}else h===Nt.PLANE_WALL?(f=new nt(this._textureCache,this.object.getLocation(),o,l,u,nt.TYPE_WALL,!0,c,r),(l.length<1||u.length<1)&&(f.hasTexture=!1),d.x===0&&d.y===0?f.color=_t.WALL_COLOR_BORDER:d.y>0?f.color=_t.WALL_COLOR_TOP:d.y===0?f.color=_t.WALL_COLOR_SIDE:f.color=_t.WALL_COLOR_BOTTOM,this._data&&(f.rasterizer=this._data.wallRasterizer)):h===Nt.PLANE_LANDSCAPE?(f=new nt(this._textureCache,this.object.getLocation(),o,l,u,nt.TYPE_LANDSCAPE,!0,c,r,n,0,t,i),d.y>0?f.color=_t.LANDSCAPE_COLOR_TOP:d.y==0?f.color=_t.LANDSCAPE_COLOR_SIDE:f.color=_t.LANDSCAPE_COLOR_BOTTOM,this._data&&(f.rasterizer=this._data.landscapeRasterizer),n=n+l.length):h==Nt.PLANE_BILLBOARD&&(f=new nt(this._textureCache,this.object.getLocation(),o,l,u,nt.TYPE_WALL,!0,c,r),(l.length<1||u.length<1)&&(f.hasTexture=!1),d.x==0&&d.y==0?f.color=_t.WALL_COLOR_BORDER:d.y>0?f.color=_t.WALL_COLOR_TOP:d.y==0?f.color=_t.WALL_COLOR_SIDE:f.color=_t.WALL_COLOR_BOTTOM);if(f){f.maskManager=this._data.maskManager;let _=0;for(;_<this._roomPlaneParser.getPlaneMaskCount(a);){const g=this._roomPlaneParser.getPlaneMaskLeftSideLoc(a,_),p=this._roomPlaneParser.getPlaneMaskRightSideLoc(a,_),m=this._roomPlaneParser.getPlaneMaskLeftSideLength(a,_),v=this._roomPlaneParser.getPlaneMaskRightSideLength(a,_);f.addRectangleMask(g,p,m,v),_++}this._planes.push(f)}}else return;a++}this._isPlaneSet=!0,this.defineSprites()}defineSprites(){this.createSprites(this._planes.length);let e=0;for(;e<this._planes.length;){const t=this._planes[e],i=this.getSprite(e);t&&i&&t.leftSide&&t.rightSide&&(t.type===nt.TYPE_WALL&&(t.leftSide.length<1||t.rightSide.length<1)?i.alphaTolerance=tr.MATCH_NOTHING:i.alphaTolerance=tr.MATCH_OPAQUE_PIXELS,t.type===nt.TYPE_WALL?i.tag="plane.wall@"+(e+1):t.type===nt.TYPE_FLOOR?i.tag="plane.floor@"+(e+1):i.tag="plane@"+(e+1),i.spriteType=Js.ROOM_PLANE),e++}}getLandscapeWidth(){let e=0,t=0;for(;t<this._roomPlaneParser.planeCount;){if(this._roomPlaneParser.getPlaneType(t)===Nt.PLANE_LANDSCAPE){const n=this._roomPlaneParser.getPlaneLeftSide(t);e+=n.length}t++}return e}getLandscapeHeight(){let e=0,t=0;for(;t<this._roomPlaneParser.planeCount;){if(this._roomPlaneParser.getPlaneType(t)===Nt.PLANE_LANDSCAPE){const n=this._roomPlaneParser.getPlaneRightSide(t);n.length>e&&(e=n.length)}t++}return e>5&&(e=5),e}updatePlaneTypes(e,t,i){if(e!==this._floorType?this._floorType=e:e=null,t!==this._wallType?this._wallType=t:t=null,i!==this._landscapeType?this._landscapeType=i:i=null,!e&&!t&&!i)return!1;let n=0;for(;n<this._planes.length;){const r=this._planes[n];r&&(r.type===nt.TYPE_FLOOR&&e?r.id=e:r.type===nt.TYPE_WALL&&t?r.id=t:r.type===nt.TYPE_LANDSCAPE&&i&&(r.id=i)),n++}return!0}updatePlaneVisibility(e,t,i){return e===this._typeVisibility[nt.TYPE_FLOOR]&&t===this._typeVisibility[nt.TYPE_WALL]&&i===this._typeVisibility[nt.TYPE_LANDSCAPE]?!1:(this._typeVisibility[nt.TYPE_FLOOR]=e,this._typeVisibility[nt.TYPE_WALL]=t,this._typeVisibility[nt.TYPE_LANDSCAPE]=i,this._visiblePlanes=[],this._visiblePlaneSpriteNumbers=[],!0)}updatePlanes(e,t,i){if(!e||!this.object)return!1;this._assetUpdateCounter++,t&&(this._visiblePlanes=[],this._visiblePlaneSpriteNumbers=[]);const n=this._visiblePlanes.length>0;let r=this._visiblePlanes;this._visiblePlanes.length||(r=this._planes);let a=0,o=!1,l=0;for(;l<r.length;){let u=l;n&&(u=this._visiblePlaneSpriteNumbers[l]);const c=this.getSprite(u);if(c){const h=r[l];h?(c.id=h.uniqueId,h.update(e,i)&&(h.visible&&(a=h.relativeDepth+this.floorRelativeDepth+u/1e3,h.type!==nt.TYPE_FLOOR&&(a=h.relativeDepth+this.wallRelativeDepth+u/1e3,(h.leftSide.length<1||h.rightSide.length<1)&&(a=a+_t.ROOM_DEPTH_OFFSET*.5)),this.updateSprite(c,e,h,`plane ${u} ${e.scale}`,a)),o=!0),c.visible!=(h.visible&&this._typeVisibility[h.type])&&(c.visible=!c.visible,o=!0),c.visible&&(n||(this._visiblePlanes.push(h),this._visiblePlaneSpriteNumbers.push(l)))):(c.id=0,c.visible&&(c.visible=!1,o=!0))}l++}return o}updatePlaneMasks(e){if(!e)return;this._roomPlaneBitmapMaskParser.initialize(e);const t=[],i=[];let n=!1,r=0;for(;r<this._planes.length;){const a=this._planes[r];a&&(a.resetBitmapMasks(),a.type===nt.TYPE_LANDSCAPE&&t.push(r)),r++}for(const a of this._roomPlaneBitmapMaskParser.masks.values()){const o=this._roomPlaneBitmapMaskParser.getMaskType(a),l=this._roomPlaneBitmapMaskParser.getMaskLocation(a),u=this._roomPlaneBitmapMaskParser.getMaskCategory(a);if(l){let c=0;for(;c<this._planes.length;){const h=this._planes[c];if((h.type===nt.TYPE_WALL||h.type===nt.TYPE_LANDSCAPE)&&h&&h.location&&h.normal){const f=M.dif(l,h.location);if(Math.abs(M.scalarProjection(f,h.normal))<.01&&h.leftSide&&h.rightSide){const _=M.scalarProjection(f,h.leftSide),g=M.scalarProjection(f,h.rightSide);h.type===nt.TYPE_WALL||h.type===nt.TYPE_LANDSCAPE&&u===Vu.HOLE?h.addBitmapMask(o,_,g):h.type===nt.TYPE_LANDSCAPE&&(h.canBeVisible||(n=!0),h.canBeVisible=!0,i.push(c))}}c++}}}for(r=0;r<t.length;){const a=t[r];if(i.indexOf(a)<0){const o=this._planes[a];o.canBeVisible=!1,n=!0}r++}n&&(this._visiblePlanes=[],this._visiblePlaneSpriteNumbers=[])}updateSprite(e,t,i,n,r){const a=i.offset;e.offsetX=-a.x,e.offsetY=-a.y,e.relativeDepth=r,e.color=i.color,e.texture=i.bitmapData,e.name=n+"_"+this._assetUpdateCounter}getBoundingRectangle(){return this._boundingRectangle||(this._boundingRectangle=super.getBoundingRectangle()),new ve(this._boundingRectangle.x,this._boundingRectangle.y,this._boundingRectangle.width,this._boundingRectangle.height)}get planes(){const e=[];for(const t of this._visiblePlanes)e.push(t);return e}get floorRelativeDepth(){return _t.ROOM_DEPTH_OFFSET+.1}get wallRelativeDepth(){return _t.ROOM_DEPTH_OFFSET+.5}};_t.FLOOR_COLOR=16777215,_t.FLOOR_COLOR_LEFT=14540253,_t.FLOOR_COLOR_RIGHT=12303291,_t.WALL_COLOR_TOP=16777215,_t.WALL_COLOR_SIDE=13421772,_t.WALL_COLOR_BOTTOM=10066329,_t.WALL_COLOR_BORDER=10066329,_t.LANDSCAPE_COLOR_TOP=16777215,_t.LANDSCAPE_COLOR_SIDE=13421772,_t.LANDSCAPE_COLOR_BOTTOM=10066329,_t.ROOM_DEPTH_OFFSET=1e3;let vA=_t;class Zye extends Kt{constructor(){super(),this._tileHeight=0}getLayerYOffset(e,t,i){return i===1?(this._tileHeight=this.object.model.getValue(b.TILE_CURSOR_HEIGHT),-this._tileHeight*32):super.getLayerYOffset(e,t,i)}}const zE=class zE{constructor(){this._visualizationDatas=new Map}getVisualization(e){const t=this.getVisualizationType(e);return t?new t:null}getVisualizationType(e){if(!e)return null;let t=null;switch(e){case Z.ROOM:t=vA;break;case Z.TILE_CURSOR:t=Zye;break;case Z.USER:case Z.BOT:case Z.RENTABLE_BOT:t=Xb;break;case Z.PET_ANIMATED:t=dA;break;case Z.FURNITURE_STATIC:t=za;break;case Z.FURNITURE_ANIMATED:t=Kt;break;case Z.FURNITURE_RESETTING_ANIMATED:t=xye;break;case Z.FURNITURE_BADGE_DISPLAY:t=Kb;break;case Z.FURNITURE_BG:t=Dye;break;case Z.FURNITURE_BB:t=D5;break;case Z.FURNITURE_ISOMETRIC_BB:t=Nye;break;case Z.FURNITURE_BOTTLE:t=qb;break;case Z.FURNITURE_BUILDER_PLACEHOLDER:t=Aye;break;case Z.FURNITURE_COUNTER_CLOCK:t=$b;break;case Z.FURNITURE_CUBOID:t=Oye;break;case Z.FURNITURE_EXTERNAL_IMAGE:t=wye;break;case Z.FURNITURE_FIREWORKS:t=U5;break;case Z.FURNITURE_GIFT_WRAPPED_FIREWORKS:t=Zb;break;case Z.FURNITURE_GIFT_WRAPPED:t=Mye;break;case Z.FURNITURE_GUILD_CUSTOMIZED:t=Jb;break;case Z.FURNITURE_GUILD_ISOMETRIC_BADGE:t=eA;break;case Z.FURNITURE_HABBOWHEEL:t=tA;break;case Z.FURNITURE_MANNEQUIN:t=sA;break;case Z.FURNITURE_PARTY_BEAMER:t=nA;break;case Z.FURNITURE_PLANET_SYSTEM:t=Pye;break;case Z.FURNITURE_POSTER:t=kye;break;case Z.FURNITURE_QUEUE_TILE:t=aA;break;case Z.FURNITURE_SCORE_BOARD:t=oA;break;case Z.FURNITURE_SOUNDBLOCK:t=Lye;break;case Z.FURNITURE_STICKIE:t=Uye;break;case Z.FURNITURE_VAL_RANDOMIZER:t=lA;break;case Z.FURNITURE_VOTE_COUNTER:t=uA;break;case Z.FURNITURE_VOTE_MAJORITY:t=hA;break;case Z.FURNITURE_WATER_AREA:t=Fye;break;case Z.FURNITURE_YOUTUBE:t=cA;break}return t||(le.log("Unknown Visualization",e),null)}getVisualizationData(e,t,i){const n=this._visualizationDatas.get(e);if(n)return n;let r=null;switch(t){case Z.FURNITURE_STATIC:case Z.FURNITURE_GIFT_WRAPPED:case Z.FURNITURE_BB:case Z.FURNITURE_ISOMETRIC_BB:case Z.FURNITURE_BG:case Z.FURNITURE_STICKIE:case Z.FURNITURE_BUILDER_PLACEHOLDER:r=new Fr;break;case Z.FURNITURE_ANIMATED:case Z.FURNITURE_RESETTING_ANIMATED:case Z.FURNITURE_POSTER:case Z.FURNITURE_HABBOWHEEL:case Z.FURNITURE_VAL_RANDOMIZER:case Z.FURNITURE_BOTTLE:case Z.FURNITURE_PLANET_SYSTEM:case Z.FURNITURE_QUEUE_TILE:case Z.FURNITURE_PARTY_BEAMER:case Z.FURNITURE_COUNTER_CLOCK:case Z.FURNITURE_WATER_AREA:case Z.FURNITURE_SCORE_BOARD:case Z.FURNITURE_FIREWORKS:case Z.FURNITURE_GIFT_WRAPPED_FIREWORKS:case Z.FURNITURE_GUILD_CUSTOMIZED:case Z.FURNITURE_GUILD_ISOMETRIC_BADGE:case Z.FURNITURE_VOTE_COUNTER:case Z.FURNITURE_VOTE_MAJORITY:case Z.FURNITURE_SOUNDBLOCK:case Z.FURNITURE_BADGE_DISPLAY:case Z.FURNITURE_EXTERNAL_IMAGE:case Z.FURNITURE_YOUTUBE:case Z.TILE_CURSOR:r=new Ww;break;case Z.FURNITURE_MANNEQUIN:r=new iA;break;case Z.ROOM:r=new B5;break;case Z.USER:case Z.BOT:case Z.RENTABLE_BOT:r=new Dv;break;case Z.PET_ANIMATED:r=new F5;break}return r?r.initialize(i)?((r instanceof Dv||r instanceof iA)&&(r.avatarManager=ce.instance.avatar),zE.CACHING_ENABLED&&this._visualizationDatas.set(e,r),r):(r.dispose(),null):null}};zE.CACHING_ENABLED=!0;let EA=zE;const Ys=class Ys{};Ys.ROOM_MIN_X="room_min_x",Ys.ROOM_MAX_X="room_max_x",Ys.ROOM_MIN_Y="room_min_y",Ys.ROOM_MAX_Y="room_max_y",Ys.ROOM_IS_PUBLIC="room_is_public",Ys.ROOM_Z_SCALE="room_z_scale",Ys.AD_DISPLAY_DELAY="ad_display_delay",Ys.IS_PLAYING_GAME="is_playing_game",Ys.RESTRICTS_DRAGGING="restricts_dragging",Ys.RESTRICTS_SCALING="restricts_scaling",Ys.RESTRICTED_SCALE="room_scale";let Qt=Ys;class Jye{constructor(e,t){this._width=e,this._height=t,this._heights=[],this._isNotStackable=[],this._isRoomTile=[];let i=e*t;for(;i>0;)this._heights.push(0),this._isNotStackable.push(!1),this._isRoomTile.push(!1),i--}dispose(){this._width=0,this._height=0,this._height=null,this._isNotStackable=null,this._isRoomTile=null}validPosition(e,t){return e>=0&&e<this._width&&t>=0&&t<this._height}getTileHeight(e,t){return this.validPosition(e,t)?this._heights[t*this._width+e]:0}setTileHeight(e,t,i){this.validPosition(e,t)&&(this._heights[t*this._width+e]=i)}setStackingBlocked(e,t,i){this.validPosition(e,t)&&(this._isNotStackable[t*this._width+e]=i)}setIsRoomTile(e,t,i){this.validPosition(e,t)&&(this._isRoomTile[t*this._width+e]=i)}validateLocation(e,t,i,n,r,a,o,l,u,c=-1){let h=0,f=0;if(!this.validPosition(e,t)||!this.validPosition(e+i-1,t+n-1))return!1;(r<0||r>=this._width)&&(r=0),(a<0||a>=this._height)&&(a=0),o=Math.min(o,this._width-r),l=Math.min(l,this._height-a),c===-1&&(c=this.getTileHeight(e,t));let d=t;for(;d<t+n;){for(h=e;h<e+i;){if(h<r||h>=r+o||d<a||d>=a+l){if(f=d*this._width+h,u){if(!this._isRoomTile[f])return!1}else if(this._isNotStackable[f]||!this._isRoomTile[f]||Math.abs(this._heights[f]-c)>.01)return!1}h++}d++}return!0}get width(){return this._width}get height(){return this._height}}const Xs=class Xs{constructor(){this._isDisposed=!1,this._scale=64,this._heightMap=[],this._width=0,this._height=0,this._floorHeight=0}get disposed(){return this._isDisposed}get scale(){return this._scale}set scale(e){this._scale=e}dispose(){this.reset(),this._isDisposed=!0}initialize(e,t,i){if(e<=this._width&&t<=this._height){this._width=e,this._height=t,this._floorHeight=i;return}this.reset();let n=0;for(;n<t;){const r=[];this._heightMap.push(r);let a=0;for(;a<e;)r.push(0),a++;n++}this._width=e,this._height=t,this._floorHeight=i}reset(){this._heightMap=[]}setHeight(e,t,i){if(e<0||e>=this._width||t<0||t>=this._height)return!1;const n=this._heightMap[t];return n?(n[e]=i,!0):!1}getHeight(e,t){if(e<0||e>=this._width||t<0||t>=this._height)return 0;const i=this._heightMap[t];return i?i[e]:0}getLocation(e,t,i,n,r){if(e==0&&t==0){e=this._width,t=this._height;const c=Math.round(this.scale/10);if(r==Xs.R){let h=this._width-1;for(;h>=0;){let f=1;for(;f<this._height;){if(this.getHeight(h,f)<=this._floorHeight){f-1<t&&(e=h,t=f-1);break}f++}h--}n=n+(this.scale/4-c/2),i=i+this.scale/2}else{let h=this._height-1;for(;h>=0;){let f=1;for(;f<this._width;){if(this.getHeight(f,h)<=this._floorHeight){f-1<e&&(e=f-1,t=h);break}f++}h--}n=n+(this.scale/4-c/2),i=i-c}}let a=e,o=t,l=this.getHeight(e,t);return r==Xs.R?(a=a+(i/(this._scale/2)-.5),o=o+.5,l=l-(n-i/2)/(this._scale/2)):(o=o+((this._scale/2-i)/(this._scale/2)-.5),a=a+.5,l=l-(n-(this._scale/2-i)/2)/(this._scale/2)),new M(a,o,l)}getLocationOldFormat(e,t,i){let n,r,a=0,o=0;r=Math.ceil(e),a=r-e;let l,u,c,h=0;for(n=0;n<this._width;){if(r>=0&&r<this._height){if(this.getHeight(n,r)<=this._floorHeight){l=n-1,u=r,o=n,i=Xs.L;break}if(this.getHeight(n,r+1)<=this._floorHeight){l=n,u=r,o=u-e,i=Xs.R;break}}r++,n++}const f=this.scale/2*a;let d=-o*this.scale/2;return d=d+-t*18/32*this.scale/2,h=this.getHeight(l,u),c=h*this.scale/2+d,i==Xs.R?c=c+a*this.scale/4:c=c+(1-a)*this.scale/4,this.getLocation(l,u,f,c,i)}getOldLocation(e,t){if(e==null)return null;let i=0,n=0,r=0,a=0,o="",l=0;if(t==90)i=Math.floor(e.x-.5),n=Math.floor(e.y+.5),l=this.getHeight(i,n),r=this._scale/2-(e.y-n+.5)*(this._scale/2),a=(l-e.z)*(this._scale/2)+(this._scale/2-r)/2,o=Xs.L;else if(t==180)i=Math.floor(e.x+.5),n=Math.floor(e.y-.5),l=this.getHeight(i,n),r=(e.x+.5-i)*(this._scale/2),a=(l-e.z)*(this._scale/2)+r/2,o=Xs.R;else return null;return[i,n,r,a,o]}getOldLocationString(e,t){const i=this.getOldLocation(e,t);if(i==null)return null;const n=Math.trunc(i[0]),r=Math.trunc(i[1]),a=Math.trunc(i[2]),o=Math.trunc(i[3]),l=i[4];return":w="+n+","+r+" l="+a+","+o+" "+l}getDirection(e){return e==Xs.R?180:90}getFloorAltitude(e,t){const i=this.getHeight(e,t),n=i+1;return i+(Math.trunc(this.getHeight(e-1,t-1))==n||Math.trunc(this.getHeight(e,t-1))==n||Math.trunc(this.getHeight(e+1,t-1))==n||Math.trunc(this.getHeight(e-1,t))==n||Math.trunc(this.getHeight(e+1,t))==n||Math.trunc(this.getHeight(e-1,t+1))==n||Math.trunc(this.getHeight(e,t+1))==n||Math.trunc(this.getHeight(e+1,t+1))==n?.5:0)}isRoomTile(e,t){return e>=0&&e<this._width&&t>=0&&t<this._height&&this._heightMap[t][e]>=0}};Xs.DEFAULT_SCALE=32,Xs.L="l",Xs.R="r";let jv=Xs;const HE=class HE{constructor(){this._targetId=-1,this._targetCategory=-2,this._targetLoc=null,this._moveDistance=0,this._previousMoveSpeed=0,this._maintainPreviousMoveSpeed=!1,this._currentLoc=null,this._limitedLocX=!1,this._limitedLocY=!1,this._centeredLocX=!1,this._centeredLocY=!1,this._screenWd=0,this._screenHt=0,this._scale=0,this._roomWd=0,this._roomHt=0,this._geometryUpdateId=-1,this._scaleChanged=!1,this._targetObjectLoc=new M}get location(){return this._currentLoc}get targetId(){return this._targetId}set targetId(e){this._targetId=e}get targetCategory(){return this._targetCategory}set targetCategory(e){this._targetCategory=e}get targetObjectLoc(){return this._targetObjectLoc}set targetObjectLoc(e){this._targetObjectLoc.assign(e)}get limitedLocationX(){return this._limitedLocX}set limitedLocationX(e){this._limitedLocX=e}get limitedLocationY(){return this._limitedLocY}set limitedLocationY(e){this._limitedLocY=e}get centeredLocX(){return this._centeredLocX}set centeredLocX(e){this._centeredLocX=e}get centeredLocY(){return this._centeredLocY}set centeredLocY(e){this._centeredLocY=e}get screenWd(){return this._screenWd}set screenWd(e){this._screenWd=e}get screenHt(){return this._screenHt}set screenHt(e){this._screenHt=e}get scale(){return this._scale}set scale(e){this._scale!=e&&(this._scale=e,this._scaleChanged=!0)}get roomWd(){return this._roomWd}set roomWd(e){this._roomWd=e}get roomHt(){return this._roomHt}set roomHt(e){this._roomHt=e}get geometryUpdateId(){return this._geometryUpdateId}set geometryUpdateId(e){this._geometryUpdateId=e}get isMoving(){return this._targetLoc!=null&&this._currentLoc!=null}set target(e){let t;this._targetLoc==null&&(this._targetLoc=new M),(this._targetLoc.x!=e.x||this._targetLoc.y!=e.y||this._targetLoc.z!=e.z)&&(this._targetLoc.assign(e),t=M.dif(this._targetLoc,this._currentLoc),this._moveDistance=t.length,this._maintainPreviousMoveSpeed=!0)}dispose(){this._targetLoc=null,this._currentLoc=null}initializeLocation(e){this._currentLoc==null&&(this._currentLoc=new M,this._currentLoc.assign(e))}resetLocation(e){this._currentLoc==null&&(this._currentLoc=new M),this._currentLoc.assign(e)}update(e,t){let i,n,r,a,o;if(this._followDuration>0&&this._targetLoc!=null&&this._currentLoc!=null){if(this._scaleChanged){this._scaleChanged=!1,this._currentLoc=this._targetLoc,this._targetLoc=null;return}i=M.dif(this._targetLoc,this._currentLoc),i.length>this._moveDistance&&(this._moveDistance=i.length),i.length<=t?(this._currentLoc=this._targetLoc,this._targetLoc=null,this._previousMoveSpeed=0):(n=Math.sin(Math.PI*i.length/this._moveDistance),r=t*.5,a=this._moveDistance/HE.MOVE_SPEED_DENOMINATOR,o=r+(a-r)*n,this._maintainPreviousMoveSpeed&&(o<this._previousMoveSpeed?(o=this._previousMoveSpeed,o>i.length&&(o=i.length)):this._maintainPreviousMoveSpeed=!1),this._previousMoveSpeed=o,i.divide(i.length),i.multiply(o),this._currentLoc=M.sum(this._currentLoc,i))}}reset(){this._geometryUpdateId=-1}activateFollowing(e){this._followDuration=e}};HE.MOVE_SPEED_DENOMINATOR=12;let yA=HE;class hk{constructor(e,t){this._roomId=e,this._data=t,this._floorType=null,this._wallType=null,this._landscapeType=null}get roomId(){return this._roomId}get data(){return this._data}get floorType(){return this._floorType}set floorType(e){this._floorType=e}get wallType(){return this._wallType}set wallType(e){this._wallType=e}get landscapeType(){return this._landscapeType}set landscapeType(e){this._landscapeType=e}}class mT{constructor(e,t,i,n,r,a,o,l=NaN,u=-1,c=0,h=0,f="",d=!0,_=!0,g=-1){this._id=e,this._typeId=t,this._type=i,this._state=a,this._data=o,this._extra=l,this._expiryTime=u,this._usagePolicy=c,this._ownerId=h,this._ownerName=f,this._synchronized=d,this._realRoomObject=_,this._sizeZ=g,this._location=new M,this._direction=new M,this._location.assign(n),this._direction.assign(r)}get id(){return this._id}get typeId(){return this._typeId}get type(){return this._type}get location(){return this._location}get direction(){return this._direction}get state(){return this._state}get data(){return this._data}get extra(){return this._extra}get expiryTime(){return this._expiryTime}get usagePolicy(){return this._usagePolicy}get ownerId(){return this._ownerId}get ownerName(){return this._ownerName}get synchronized(){return this._synchronized}get realRoomObject(){return this._realRoomObject}get sizeZ(){return this._sizeZ}}class eTe{constructor(e,t){this._tileObjectMap=new Map;let i=0;for(;i<t;)this._tileObjectMap.set(i,new Map),i++;this._width=e,this._height=t}clear(){for(const e of this._tileObjectMap.values())e&&e.clear();this._tileObjectMap.clear()}populate(e){this.clear();for(const t of e)this.addRoomObject(t)}dispose(){this._tileObjectMap=null,this._width=0,this._height=0}getObjectIntTile(e,t){if(e>=0&&e<this._width&&t>=0&&t<this._height){const i=this._tileObjectMap.get(t);if(i)return i.get(e)}return null}setObjectInTile(e,t,i){if(!i.isReady){le.log("Assigning non initialized object to tile object map!");return}if(e>=0&&e<this._width&&t>=0&&t<this._height){const n=this._tileObjectMap.get(t);n&&n.set(e,i)}}addRoomObject(e){if(!e||!e.model||!e.isReady)return;const t=e.getLocation(),i=e.getDirection();if(!t||!i)return;let n=e.model.getValue(b.FURNITURE_SIZE_X),r=e.model.getValue(b.FURNITURE_SIZE_Y);n<1&&(n=1),r<1&&(r=1);const a=Math.trunc(i.x+45)%360/90;(a===1||a===3)&&([n,r]=[r,n]);let o=t.y;for(;o<t.y+r;){let l=t.x;for(;l<t.x+n;){const u=this.getObjectIntTile(l,o);(!u||u!==e&&u.getLocation().z<=t.z)&&this.setObjectInTile(l,o,e),l++}o++}}}class tTe{constructor(e){this._roomId=e,this._modelName=null,this._legacyGeometry=new jv,this._tileObjectMap=null,this._roomCamera=new yA,this._selectedObject=null,this._placedObject=null,this._furnitureStackingHeightMap=null,this._floorStack=new Map,this._wallStack=new Map,this._mouseButtonCursorOwners=[]}dispose(){}setModelName(e){this._modelName=e}setSelectedObject(e){this._selectedObject&&this._selectedObject.dispose(),this._selectedObject=e}setPlacedObject(e){this._placedObject&&this._placedObject.dispose(),this._placedObject=e}setFurnitureStackingHeightMap(e){this._furnitureStackingHeightMap&&this._furnitureStackingHeightMap.dispose(),this._furnitureStackingHeightMap=e,this._tileObjectMap&&this._tileObjectMap.dispose(),this._furnitureStackingHeightMap&&(this._tileObjectMap=new eTe(this._furnitureStackingHeightMap.width,this._furnitureStackingHeightMap.height))}addPendingFurnitureFloor(e){e&&(this._floorStack.delete(e.id),this._floorStack.set(e.id,e))}removePendingFunitureFloor(e){const t=this._floorStack.get(e);return t?(this._floorStack.delete(e),t):null}getPendingFurnitureFloor(e){const t=this._floorStack.get(e);return t?(this._floorStack.delete(e),t):null}getNextPendingFurnitureFloor(){if(!this._floorStack.size)return null;const e=this._floorStack.keys();return this.getPendingFurnitureFloor(e.next().value)}addPendingFurnitureWall(e){e&&(this._wallStack.delete(e.id),this._wallStack.set(e.id,e))}removePendingFurnitureWall(e){const t=this._wallStack.get(e);return t?(this._wallStack.delete(e),t):null}getPendingFurnitureWall(e){const t=this._wallStack.get(e);return t?(this._wallStack.delete(e),t):null}getNextPendingFurnitureWall(){if(!this._wallStack.size)return null;const e=this._wallStack.keys();return this.getPendingFurnitureWall(e.next().value)}addButtonMouseCursorOwner(e){return this._mouseButtonCursorOwners.indexOf(e)===-1?(this._mouseButtonCursorOwners.push(e),!0):!1}removeButtonMouseCursorOwner(e){const t=this._mouseButtonCursorOwners.indexOf(e);return t>-1?(this._mouseButtonCursorOwners.splice(t,1),!0):!1}hasButtonMouseCursorOwners(){return this._mouseButtonCursorOwners.length>0}get roomId(){return this._roomId}get modelName(){return this._modelName}get legacyGeometry(){return this._legacyGeometry}get tileObjectMap(){return this._tileObjectMap}get roomCamera(){return this._roomCamera}get selectedObject(){return this._selectedObject}get placedObject(){return this._placedObject}get furnitureStackingHeightMap(){return this._furnitureStackingHeightMap}}class iTe{constructor(e,t){this._object=e,this._groupBadge=t}get object(){return this._object}get groupBadge(){return this._groupBadge}}class vT{constructor(e,t,i,n,r,a=0,o=null,l=null,u=-1,c=-1,h=null){this._id=0,this._category=0,this._operation="",this._loc=null,this._dir=null,this._typeId=0,this._instanceData=null,this._stuffData=null,this._state=-1,this._animFrame=-1,this._posture=null,this._id=e,this._category=t,this._operation=i,this._loc=new M,this._loc.assign(n),this._dir=new M,this._dir.assign(r),this._typeId=a,this._instanceData=o,this._stuffData=l,this._state=u,this._animFrame=c,this._posture=h}get id(){return this._id}get category(){return this._category}get operation(){return this._operation}get loc(){return this._loc}get dir(){return this._dir}get typeId(){return this._typeId}get instanceData(){return this._instanceData}get stuffData(){return this._stuffData}get state(){return this._state}get animFrame(){return this._animFrame}get posture(){return this._posture}dispose(){this._loc=null,this._dir=null}}const fs=class fs{constructor(){this.spriteCount=0,this.externalImageCount=0}static addMannequinSprites(e,t){const i=[];for(const n of e)if(n)if(n.type==="boutique_mannequin1"&&n.name.indexOf("mannequin_")===0){const r=t.getRoomObject(t.activeRoomId,n.objectId,U.FLOOR);if(r){const a=r.visualization.getSpriteList();if(a)for(const o of a)o.x=o.x+(n.x+n.width/2+fs.MANNEQUIN_MAGIC_X_OFFSET),o.y=o.y+(n.y+n.height+fs.MANNEQUIN_MAGIC_Y_OFFSET),o.z=o.z+n.z,i.push(o)}}else i.push(n);return i}static sortSpriteDataObjects(e,t){return e.z<t.z?1:(e.z>t.z,-1)}static isSpriteInViewPort(e,t,i){return!0}static sortQuadPoints(e,t,i,n){const r=[];if(e.x==t.x?r.push(e,i,t,n):e.x==i.x?r.push(e,t,i,n):t.x<e.x&&t.y>e.y||t.x>e.x&&t.y<e.y?r.push(e,i,t,n):r.push(e,t,i,n),r[0].x<r[1].x){let a=r[0];r[0]=r[1],r[1]=a,a=r[2],r[2]=r[3],r[3]=a}if(r[0].y<r[2].y){let a=r[0];r[0]=r[2],r[2]=a,a=r[1],r[1]=r[3],r[3]=a}return r}getFurniData(e,t,i,n){const r=[];let a=t.getSortableSpriteList();const o=i.getRoomObjects(i.activeRoomId,U.UNIT);for(const l of o)if(l.id!==n){const u=l.visualization.getSpriteList();if(u){let c=0,h=0;for(const d of a)if(d.name==="avatar_"+l.id){c=d.z,h=d.y+d.height-t.geometry.scale/4;break}const f=i.getRoomObjectScreenLocation(i.activeRoomId,l.id,U.UNIT,t.id);if(f){h===0&&(h=f.y);for(const d of u)d.x=d.x+(f.x-t.screenOffsetX),d.y=d.y+h,d.z=d.z+c,(d.name.indexOf("h_std_fx29_")===0||d.name.indexOf("h_std_fx185_")===0)&&(d.y=d.y+fs.AVATAR_WATER_EFFECT_MAGIC_Y_OFFSET),a.push(d)}}}a=fs.addMannequinSprites(a,i),a.sort(fs.sortSpriteDataObjects);for(const l of a)l.name!==null&&l.name.length>0&&l.name.indexOf("tile_cursor_")!==0&&fs.isSpriteInViewPort(l,e,t)&&(n<0||l.objectId!=n)&&(r.push(this.getSpriteDataObject(l,e,t,i)),this.maxZ||(this.maxZ=l.z),this.spriteCount++);return JSON.stringify(r)}getRoomRenderingModifiers(e){return JSON.stringify(new Object)}getSpriteDataObject(e,t,i,n){let r=[];const a={};let o=e.name;return e.name.indexOf("@")!==-1&&(r=e.name.split("@"),o=r[0],r[1]),a.name=o,a.x=e.x-t.x,a.y=e.y-t.y,a.x=a.x+i.screenOffsetX,a.y=a.y+i.screenOffsetY,a.z=e.z,e.alpha&&e.alpha.toString()!=="255"&&(a.alpha=e.alpha),e.flipH&&(a.flipH=e.flipH),e.skew&&(a.skew=e.skew),e.frame&&(a.frame=e.frame),e.color&&e.color.length>0&&(a.color=parseInt(e.color)),e.blendMode&&e.blendMode!=="normal"&&(a.blendMode=e.blendMode),o.indexOf("http")===0&&(a.width=e.width,a.height=e.height,this.externalImageCount++,this.externalImageCount>fs.MAX_EXTERNAL_IMAGE_COUNT&&(a.name="box")),e.posture&&(a.posture=e.posture),a}makeBackgroundPlane(e,t,i){const n=new Q(0,0),r=new Q(e.width,0),a=new Q(0,e.height),o=new Q(e.width,e.height),l=fs.sortQuadPoints(n,r,a,o);let u=0;i.length>0?(u=i[0].z,this.maxZ&&(u=Math.max(this.maxZ,u))):u=this.maxZ?this.maxZ:0,u=u+(this.spriteCount*1.776104+i.length*2.31743);const c=new zf(null,t);return c.cornerPoints=l,c.z=u,c}sortRoomPlanes(e,t,i){const n=new Map;let r=1;this.maxZ&&(r=r+this.maxZ);for(const l of e){const u={plane:l,z:r};n.set(l.uniqueId,u)}const a=t.getPlaneSortableSprites();a.sort((l,u)=>u.z-l.z),a.reverse();let o=[];for(const l of a){const u=l.sprite;if(u){const c=n.get(u.id);c&&(n.delete(u.id),c.z=l.z,o.push(c))}}return o=o.concat(Array.from(n.values())),o}getRoomPlanes(e,t,i,n){const r=[],o=i.getRoomObject(i.activeRoomId,Z_.ROOM_OBJECT_ID,U.ROOM).visualization;if(o){const l=t.geometry,u=this.sortRoomPlanes(o.planes,t,i),c=oi.instance.stage;for(const h of u){const f=h.plane,d=[],_=M.sum(f.location,f.leftSide),g=l.getScreenPoint(f.location),p=l.getScreenPoint(_),m=l.getScreenPoint(M.sum(f.location,f.rightSide)),v=l.getScreenPoint(M.sum(_,f.rightSide));d.push(g,p,m,v);let E=0,y=0;for(const T of d)T.x+=c.width/2,T.y+=c.height/2,T.x+=t.screenOffsetX,T.y+=t.screenOffsetY,T.x+=-e.x,T.y+=-e.y,T.x<0?E--:T.x>=e.width&&E++,T.y<0?y--:T.y>=e.height&&y++;if(!(Math.abs(E)===4||Math.abs(y)===4)){const T=fs.sortQuadPoints(g,p,m,v);for(const w of f.getDrawingDatas(l))w.cornerPoints=T,w.z=h.z,r.push(w)}}r.unshift(this.makeBackgroundPlane(e,n,r))}return r}};fs.MANNEQUIN_MAGIC_X_OFFSET=1,fs.MANNEQUIN_MAGIC_Y_OFFSET=-16,fs.AVATAR_WATER_EFFECT_MAGIC_Y_OFFSET=-52,fs.MAX_EXTERNAL_IMAGE_COUNT=30;let TA=fs;class sTe extends Bs{constructor(e){super(),this._connection=null,this._roomCreator=e,this._planeParser=new ri,this._latestEntryTileEvent=null,this._currentRoomId=0,this._ownUserId=0,this._initialConnection=!0,this._guideId=-1,this._requesterId=-1}onDispose(){super.onDispose(),this._connection=null,this._roomCreator=null,this._latestEntryTileEvent=null,this._planeParser&&(this._planeParser.dispose(),this._planeParser=null)}setConnection(e){this._connection||!e||(this._connection=e,this._connection.addMessageEvent(new Av(this.onUserInfoEvent.bind(this))),this._connection.addMessageEvent(new Zc(this.onRoomReadyMessageEvent.bind(this))),this._connection.addMessageEvent(new rb(this.onRoomPaintEvent.bind(this))),this._connection.addMessageEvent(new tb(this.onRoomModelEvent.bind(this))),this._connection.addMessageEvent(new sb(this.onRoomHeightMapEvent.bind(this))),this._connection.addMessageEvent(new nb(this.onRoomHeightMapUpdateEvent.bind(this))),this._connection.addMessageEvent(new ab(this.onRoomThicknessEvent.bind(this))),this._connection.addMessageEvent(new ib(this.onRoomDoorEvent.bind(this))),this._connection.addMessageEvent(new VS(this.onRoomRollingEvent.bind(this))),this._connection.addMessageEvent(new GS(this.onObjectsDataUpdateEvent.bind(this))),this._connection.addMessageEvent(new XS(this.onFurnitureAliasesEvent.bind(this))),this._connection.addMessageEvent(new zS(this.onFurnitureFloorAddEvent.bind(this))),this._connection.addMessageEvent(new HS(this.onFurnitureFloorEvent.bind(this))),this._connection.addMessageEvent(new WS(this.onFurnitureFloorRemoveEvent.bind(this))),this._connection.addMessageEvent(new YS(this.onFurnitureFloorUpdateEvent.bind(this))),this._connection.addMessageEvent(new QS(this.onFurnitureWallAddEvent.bind(this))),this._connection.addMessageEvent(new ZS(this.onFurnitureWallEvent.bind(this))),this._connection.addMessageEvent(new JS(this.onFurnitureWallRemoveEvent.bind(this))),this._connection.addMessageEvent(new eb(this.onFurnitureWallUpdateEvent.bind(this))),this._connection.addMessageEvent(new KS(this.onFurnitureDataEvent.bind(this))),this._connection.addMessageEvent(new qS(this.onItemDataUpdateMessageEvent.bind(this))),this._connection.addMessageEvent(new $S(this.onOneWayDoorStatusMessageEvent.bind(this))),this._connection.addMessageEvent(new Iv(this.onRoomUnitDanceEvent.bind(this))),this._connection.addMessageEvent(new lb(this.onRoomUnitEffectEvent.bind(this))),this._connection.addMessageEvent(new Rv(this.onRoomUnitEvent.bind(this))),this._connection.addMessageEvent(new ub(this.onRoomUnitExpressionEvent.bind(this))),this._connection.addMessageEvent(new hb(this.onRoomUnitHandItemEvent.bind(this))),this._connection.addMessageEvent(new cb(this.onRoomUnitIdleEvent.bind(this))),this._connection.addMessageEvent(new Sv(this.onRoomUnitInfoEvent.bind(this))),this._connection.addMessageEvent(new fb(this.onRoomUnitNumberEvent.bind(this))),this._connection.addMessageEvent(new bv(this.onRoomUnitRemoveEvent.bind(this))),this._connection.addMessageEvent(new db(this.onRoomUnitStatusEvent.bind(this))),this._connection.addMessageEvent(new Lw(this.onRoomUnitChatEvent.bind(this))),this._connection.addMessageEvent(new yv(this.onRoomUnitChatEvent.bind(this))),this._connection.addMessageEvent(new Tv(this.onRoomUnitChatEvent.bind(this))),this._connection.addMessageEvent(new ob(this.onRoomUnitTypingEvent.bind(this))),this._connection.addMessageEvent(new Ev(this.onPetFigureUpdateEvent.bind(this))),this._connection.addMessageEvent(new J4(this.onPetExperienceEvent.bind(this))),this._connection.addMessageEvent(new iF(this.onYouArePlayingGameEvent.bind(this))),this._connection.addMessageEvent(new jS(this.onDiceValueMessageEvent.bind(this))),this._connection.addMessageEvent(new Fw(this.onIgnoreResultEvent.bind(this))),this._connection.addMessageEvent(new P4(this.onGuideSessionStartedMessageEvent.bind(this))),this._connection.addMessageEvent(new M4(this.onGuideSessionEndedMessageEvent.bind(this))),this._connection.addMessageEvent(new N4(this.onGuideSessionErrorMessageEvent.bind(this))))}setRoomId(e){this._currentRoomId!==0&&this._roomCreator&&this._roomCreator.destroyRoom(this._currentRoomId),this._currentRoomId=e,this._latestEntryTileEvent=null}clearRoomId(){this._currentRoomId=0,this._latestEntryTileEvent=null}onUserInfoEvent(e){if(!(e instanceof Av)||!e.connection)return;const t=e.getParser();t&&(this._ownUserId=t.userInfo.userId)}onRoomReadyMessageEvent(e){const t=e.getParser();if(this._currentRoomId!==t.roomId&&this.setRoomId(t.roomId),this._roomCreator&&this._roomCreator.setRoomInstanceModelName(t.roomId,t.name),this._initialConnection){e.connection.send(new h6),this._initialConnection=!1;return}e.connection.send(new bb)}onRoomPaintEvent(e){if(!(e instanceof rb))return;const t=e.getParser();if(!t)return;const i=t.floorType,n=t.wallType,r=t.landscapeType;this._roomCreator&&this._roomCreator.updateRoomInstancePlaneType(this._currentRoomId,i,n,r)}onRoomModelEvent(e){if(!(e instanceof tb)||!e.connection||!this._roomCreator)return;const t=e.getParser();if(!t)return;const i=this._roomCreator.getLegacyWallGeometry(this._currentRoomId);if(!i)return;this._planeParser.reset();const n=t.width,r=t.height;this._planeParser.initializeTileMap(n,r);let a=null;this._latestEntryTileEvent&&(a=this._latestEntryTileEvent.getParser());let o=-1,l=-1,u=0,c=0,h=0;for(;h<r;){let _=0;for(;_<n;){const g=t.getHeight(_,h);(h>0&&h<r-1||_>0&&_<n-1)&&g!=ri.TILE_BLOCKED&&(a==null||_==a.x&&h==a.y)&&(t.getHeight(_,h-1)==ri.TILE_BLOCKED&&t.getHeight(_-1,h)==ri.TILE_BLOCKED&&t.getHeight(_,h+1)==ri.TILE_BLOCKED&&(o=_+.5,l=h,u=g,c=90),t.getHeight(_,h-1)==ri.TILE_BLOCKED&&t.getHeight(_-1,h)==ri.TILE_BLOCKED&&t.getHeight(_+1,h)==ri.TILE_BLOCKED&&(o=_,l=h+.5,u=g,c=180)),this._planeParser.setTileHeight(_,h,g),_++}h++}this._planeParser.setTileHeight(Math.floor(o),Math.floor(l),u),this._planeParser.initializeFromTileData(t.wallHeight),this._planeParser.setTileHeight(Math.floor(o),Math.floor(l),u+this._planeParser.wallHeight),i.scale=t.scale,i.initialize(n,r,this._planeParser.floorHeight);let f=t.height-1;for(;f>=0;){let _=t.width-1;for(;_>=0;)i.setHeight(_,f,this._planeParser.getTileHeight(_,f)),_--;f--}const d=this._planeParser.getMapData();d.doors.push({x:o,y:l,z:u,dir:c}),this._roomCreator.createRoomInstance(this._currentRoomId,d)}onRoomHeightMapEvent(e){if(!(e instanceof sb)||!e.connection||!this._roomCreator)return;const t=e.getParser();if(!t)return;const i=t.width,n=t.height,r=new Jye(i,n);let a=0;for(;a<n;){let o=0;for(;o<i;)r.setTileHeight(o,a,t.getTileHeight(o,a)),r.setStackingBlocked(o,a,t.getStackingBlocked(o,a)),r.setIsRoomTile(o,a,t.isRoomTile(o,a)),o++;a++}this._roomCreator.setFurnitureStackingHeightMap(this._currentRoomId,r)}onRoomHeightMapUpdateEvent(e){if(!(e instanceof nb)||!e.connection||!this._roomCreator)return;const t=e.getParser();if(!t)return;const i=this._roomCreator.getFurnitureStackingHeightMap(this._currentRoomId);if(i){for(;t.next();)i.setTileHeight(t.x,t.y,t.tileHeight()),i.setStackingBlocked(t.x,t.y,t.isStackingBlocked()),i.setIsRoomTile(t.x,t.y,t.isRoomTile());this._roomCreator.refreshTileObjectMap(this._currentRoomId,"RoomMessageHandler.onRoomHeightMapUpdateEvent()")}}onRoomThicknessEvent(e){if(!(e instanceof ab))return;const t=e.getParser();if(!t)return;const i=!t.hideWalls,n=!0,r=t.thicknessWall,a=t.thicknessFloor;this._roomCreator&&(this._roomCreator.updateRoomInstancePlaneVisibility(this._currentRoomId,i,n),this._roomCreator.updateRoomInstancePlaneThickness(this._currentRoomId,r,a))}onRoomDoorEvent(e){e instanceof ib&&(this._latestEntryTileEvent=e)}onRoomRollingEvent(e){if(!(e instanceof VS)||!e.connection||!this._roomCreator)return;const t=e.getParser();this._roomCreator.updateRoomObjectFloor(this._currentRoomId,t.rollerId,null,null,1,null),this._roomCreator.updateRoomObjectFloor(this._currentRoomId,t.rollerId,null,null,2,null);const i=t.itemsRolling;if(i&&i.length)for(const r of i)r&&this._roomCreator.rollRoomObjectFloor(this._currentRoomId,r.id,r.location,r.targetLocation);const n=t.unitRolling;if(n){this._roomCreator.updateRoomObjectUserLocation(this._currentRoomId,n.id,n.location,n.targetLocation);const r=this._roomCreator.getRoomObjectUser(this._currentRoomId,n.id);if(r&&r.type!==tt.MONSTER_PLANT){let a="std";switch(n.movementType){case pa.MOVE:a="mv";break;case pa.SLIDE:a="std";break}this._roomCreator.updateRoomObjectUserPosture(this._currentRoomId,n.id,a)}}}onObjectsDataUpdateEvent(e){if(!(e instanceof GS)||!e.connection||!this._roomCreator)return;const t=e.getParser();if(t)for(const i of t.objects)this._roomCreator.updateRoomObjectFloor(this._currentRoomId,i.id,null,null,i.state,i.data)}onFurnitureAliasesEvent(e){!(e instanceof XS)||!e.connection||!this._roomCreator||(e.getParser().aliases,this._connection.send(new bb))}onFurnitureFloorAddEvent(e){if(!(e instanceof zS)||!e.connection||!this._roomCreator)return;const t=e.getParser().item;t&&this.addRoomObjectFurnitureFloor(this._currentRoomId,t)}onFurnitureFloorEvent(e){if(!(e instanceof HS)||!e.connection||!this._roomCreator)return;const t=e.getParser();if(!t)return;const i=t.items.length;let n=0;for(;n<i;){const r=t.items[n];r&&this.addRoomObjectFurnitureFloor(this._currentRoomId,r),n++}}onFurnitureFloorRemoveEvent(e){if(!(e instanceof WS)||!e.connection||!this._roomCreator)return;const t=e.getParser();t&&(t.delay>0?setTimeout(()=>{this._roomCreator.removeRoomObjectFloor(this._currentRoomId,t.itemId,t.isExpired?-1:t.userId,!0)},t.delay):this._roomCreator.removeRoomObjectFloor(this._currentRoomId,t.itemId,t.isExpired?-1:t.userId,!0))}onFurnitureFloorUpdateEvent(e){if(!(e instanceof YS)||!e.connection||!this._roomCreator)return;const t=e.getParser().item;if(!t)return;const i=new M(t.x,t.y,t.z),n=new M(t.direction);this._roomCreator.updateRoomObjectFloor(this._currentRoomId,t.itemId,i,n,t.data.state,t.data,t.extra),this._roomCreator.updateRoomObjectFloorHeight(this._currentRoomId,t.itemId,t.stackHeight),this._roomCreator.updateRoomObjectFloorExpiration(this._currentRoomId,t.itemId,t.expires)}onFurnitureWallAddEvent(e){if(!(e instanceof QS)||!e.connection||!this._roomCreator)return;const t=e.getParser().item;t&&this.addRoomObjectFurnitureWall(this._currentRoomId,t)}onFurnitureWallEvent(e){if(!(e instanceof ZS)||!e.connection||!this._roomCreator)return;const t=e.getParser();if(!t)return;const i=t.items.length;let n=0;for(;n<i;){const r=t.items[n];r&&this.addRoomObjectFurnitureWall(this._currentRoomId,r),n++}}onFurnitureWallRemoveEvent(e){if(!(e instanceof JS)||!e.connection||!this._roomCreator)return;const t=e.getParser();t&&this._roomCreator.removeRoomObjectWall(this._currentRoomId,t.itemId,t.userId)}onFurnitureWallUpdateEvent(e){if(!(e instanceof eb)||!e.connection||!this._roomCreator)return;const t=this._roomCreator.getLegacyWallGeometry(this._currentRoomId);if(!t)return;const i=e.getParser().item;if(!i)return;const n=t.getLocation(i.width,i.height,i.localX,i.localY,i.direction),r=new M(t.getDirection(i.direction));this._roomCreator.updateRoomObjectWall(this._currentRoomId,i.itemId,n,r,i.state,i.stuffData),this._roomCreator.updateRoomObjectWallExpiration(this._currentRoomId,i.itemId,i.secondsToExpiration)}onFurnitureDataEvent(e){if(!(e instanceof KS)||!e.connection||!this._roomCreator)return;const t=e.getParser();this._roomCreator.updateRoomObjectFloor(this._currentRoomId,t.furnitureId,null,null,t.objectData.state,t.objectData)}onItemDataUpdateMessageEvent(e){if(!(e instanceof qS)||!e.connection||!this._roomCreator)return;const t=e.getParser();this._roomCreator.updateRoomObjectWallItemData(this._currentRoomId,t.furnitureId,t.data)}onOneWayDoorStatusMessageEvent(e){if(!(e instanceof $S)||!e.connection||!this._roomCreator)return;const t=e.getParser();this._roomCreator.updateRoomObjectFloor(this._currentRoomId,t.itemId,null,null,t.state,new ps)}onDiceValueMessageEvent(e){if(!(e instanceof jS)||!e.connection||!this._roomCreator)return;const t=e.getParser();this._roomCreator.updateRoomObjectFloor(this._currentRoomId,t.itemId,null,null,t.value,new ps)}onRoomUnitDanceEvent(e){!(e instanceof Iv)||!e.connection||!this._roomCreator||this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,e.getParser().unitId,b.FIGURE_DANCE,e.getParser().danceId)}onRoomUnitEffectEvent(e){!(e instanceof lb)||!e.connection||!this._roomCreator||this._roomCreator.updateRoomObjectUserEffect(this._currentRoomId,e.getParser().unitId,e.getParser().effectId,e.getParser().delay)}onRoomUnitEvent(e){if(!(e instanceof Rv)||!e.connection||!this._roomCreator)return;const t=e.getParser().users;if(!(!t||!t.length)){for(const i of t){if(!i)continue;const n=new M(i.x,i.y,i.z),r=new M(i.dir);this._roomCreator.addRoomObjectUser(this._currentRoomId,i.roomIndex,n,r,i.dir,i.userType,i.figure),i.webID===this._ownUserId&&(this._roomCreator.setRoomSessionOwnUser(this._currentRoomId,i.roomIndex),this._roomCreator.updateRoomObjectUserOwn(this._currentRoomId,i.roomIndex)),this._roomCreator.updateRoomObjectUserFigure(this._currentRoomId,i.roomIndex,i.figure,i.sex,i.subType,i.isRiding),tt.getTypeString(i.userType)===tt.PET&&this._roomCreator.getPetTypeId(i.figure)===U_.MONSTERPLANT&&this._roomCreator.updateRoomObjectUserPosture(this._currentRoomId,i.roomIndex,i.petPosture),this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,i.roomIndex,b.FIGURE_IS_MUTED,this._roomCreator.sessionDataManager.isUserIgnored(i.name)?1:0)}this.updateGuideMarker()}}onRoomUnitExpressionEvent(e){!(e instanceof ub)||!e.connection||!this._roomCreator||this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,e.getParser().unitId,b.FIGURE_EXPRESSION,e.getParser().expression)}onRoomUnitHandItemEvent(e){!(e instanceof hb)||!e.connection||!this._roomCreator||this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,e.getParser().unitId,b.FIGURE_CARRY_OBJECT,e.getParser().handId)}onRoomUnitIdleEvent(e){!(e instanceof cb)||!e.connection||!this._roomCreator||this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,e.getParser().unitId,b.FIGURE_SLEEP,e.getParser().isIdle?1:0)}onRoomUnitInfoEvent(e){!(e instanceof Sv)||!e.connection||!this._roomCreator||this._roomCreator.updateRoomObjectUserFigure(this._currentRoomId,e.getParser().unitId,e.getParser().figure,e.getParser().gender)}onRoomUnitNumberEvent(e){if(!(e instanceof fb)||!e.connection||!this._roomCreator)return;const t=e.getParser();t&&this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,t.unitId,b.FIGURE_NUMBER_VALUE,t.value)}onRoomUnitRemoveEvent(e){!(e instanceof bv)||!e.connection||!this._roomCreator||(this._roomCreator.removeRoomObjectUser(this._currentRoomId,e.getParser().unitId),this.updateGuideMarker())}onRoomUnitStatusEvent(e){if(!(e instanceof db)||!e.connection||!this._roomCreator)return;const t=e.getParser().statuses;if(!t||!t.length)return;const i=this._roomCreator.getRoomInstance(this._currentRoomId);if(!i)return;const n=i.model.getValue(Qt.ROOM_Z_SCALE)||1;for(const r of t){if(!r)continue;let a=r.height;a&&(a=a/n);const o=new M(r.x,r.y,r.z+a),l=new M(r.direction);let u=null;r.didMove&&(u=new M(r.targetX,r.targetY,r.targetZ)),this._roomCreator.updateRoomObjectUserLocation(this._currentRoomId,r.id,o,u,r.canStandUp,a,l,r.headDirection),this._roomCreator.updateRoomObjectUserFlatControl(this._currentRoomId,r.id,"0");let c=!0,h=!1,f=b.STD,d="";if(r.actions&&r.actions.length){for(const _ of r.actions)if(_)switch(_.action){case"flatctrl":this._roomCreator.updateRoomObjectUserFlatControl(this._currentRoomId,r.id,_.value);break;case"sign":r.actions.length===1&&(c=!1),this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,r.id,b.FIGURE_SIGN,parseInt(_.value));break;case"gst":r.actions.length===1&&(c=!1),this._roomCreator.updateRoomObjectUserPetGesture(this._currentRoomId,r.id,_.value);break;case"wav":case"mv":h=!0,f=_.action,d=_.value;break;case"trd":break;default:h=!0,f=_.action,d=_.value;break}}h?this._roomCreator.updateRoomObjectUserPosture(this._currentRoomId,r.id,f,d):c&&this._roomCreator.updateRoomObjectUserPosture(this._currentRoomId,r.id,b.STD,"")}this.updateGuideMarker()}onRoomUnitChatEvent(e){if(!e.connection||!this._roomCreator)return;const t=e.getParser();t&&(this._roomCreator.updateRoomObjectUserGesture(this._currentRoomId,t.roomIndex,t.gesture),this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,t.roomIndex,b.FIGURE_TALK,t.message.length/10))}onRoomUnitTypingEvent(e){!(e instanceof ob)||!e.connection||!this._roomCreator||this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,e.getParser().unitId,b.FIGURE_IS_TYPING,e.getParser().isTyping?1:0)}onPetFigureUpdateEvent(e){if(!(e instanceof Ev)||!e.connection||!this._roomCreator)return;const t=e.getParser();t&&this._roomCreator.updateRoomObjectUserFigure(this._currentRoomId,t.roomIndex,t.figureData.figuredata,"","",t.isRiding)}onPetExperienceEvent(e){const t=e.getParser();t&&this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,t.roomIndex,b.FIGURE_GAINED_EXPERIENCE,t.gainedExperience)}onYouArePlayingGameEvent(e){if(!e)return;const t=e.getParser();t&&this._roomCreator.setRoomEngineGameMode(this._currentRoomId,t.isPlaying)}addRoomObjectFurnitureFloor(e,t){if(!t||!this._roomCreator)return;const i=new M(t.x,t.y,t.z),n=new M(t.direction);t.spriteName?this._roomCreator.addFurnitureFloorByTypeName(e,t.itemId,t.spriteName,i,n,t.state,t.data,t.extra,t.expires,t.usagePolicy,t.userId,t.username,!0,!0,t.stackHeight):this._roomCreator.addFurnitureFloor(e,t.itemId,t.spriteId,i,n,t.state,t.data,t.extra,t.expires,t.usagePolicy,t.userId,t.username,!0,!0,t.stackHeight)}addRoomObjectFurnitureWall(e,t){if(!t||!this._roomCreator)return;const i=this._roomCreator.getLegacyWallGeometry(e);if(!i)return;let n=null;t.isOldFormat||(n=i.getLocation(t.width,t.height,t.localX,t.localY,t.direction));const r=new M(i.getDirection(t.direction));this._roomCreator.addFurnitureWall(e,t.itemId,t.spriteId,n,r,t.state,t.stuffData,t.secondsToExpiration,t.usagePolicy,t.userId,t.username)}onIgnoreResultEvent(e){if(!e)return;const t=e.getParser();if(!t)return;const i=this._roomCreator.roomSessionManager.getSession(this._currentRoomId);if(!i)return;const n=i.userDataManager.getUserDataByName(t.name);if(n)switch(t.result){case 1:case 2:this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,n.roomIndex,b.FIGURE_IS_MUTED,1);return;case 3:this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,n.roomIndex,b.FIGURE_IS_MUTED,0);return}}onGuideSessionStartedMessageEvent(e){const t=e.getParser();this._guideId=t.guideUserId,this._requesterId=t.requesterUserId,this.updateGuideMarker()}onGuideSessionEndedMessageEvent(e){this.removeGuideMarker()}onGuideSessionErrorMessageEvent(e){this.removeGuideMarker()}updateGuideMarker(){const e=this._roomCreator.sessionDataManager.userId;this.setUserGuideStatus(this._guideId,this._requesterId===e?Mr.GUIDE:Mr.NONE),this.setUserGuideStatus(this._requesterId,this._guideId===e?Mr.REQUESTER:Mr.NONE)}removeGuideMarker(){this.setUserGuideStatus(this._guideId,Mr.NONE),this.setUserGuideStatus(this._requesterId,Mr.NONE),this._guideId=-1,this._requesterId=-1}setUserGuideStatus(e,t){if(!this._roomCreator||!this._roomCreator.roomSessionManager)return;const i=this._roomCreator.roomSessionManager.getSession(this._currentRoomId);if(!i)return;const n=i.userDataManager.getDataByType(e,Ra.USER);n&&this._roomCreator.updateRoomObjectUserAction(this._currentRoomId,n.roomIndex,b.FIGURE_GUIDE_STATUS,t)}get currentRoomId(){return this._currentRoomId}}class nTe extends Bs{constructor(e){super(),this._roomEngine=e,this._eventIds=new Map,this._selectedAvatarId=-1,this._selectedObjectId=-1,this._selectedObjectCategory=-2,this._whereYouClickIsWhereYouGo=!0,this._objectPlacementSource=null,this.onRoomEngineObjectEvent=this.onRoomEngineObjectEvent.bind(this),this._roomEngine.events.addEventListener(Se.ADDED,this.onRoomEngineObjectEvent)}dispose(){this._eventIds&&(this._eventIds=null),this._roomEngine.events.removeEventListener(Se.ADDED,this.onRoomEngineObjectEvent),this._roomEngine=null}onRoomEngineObjectEvent(e){let t=this.getSelectedRoomObjectData(e.roomId);if(t&&t.operation===Ve.OBJECT_PLACE&&t.id===e.objectId){const i=this._roomEngine.getRoomObject(e.roomId,t.id,t.category);if(i&&i.model&&t.category===U.FLOOR){const n=i.model.getValue(b.FURNITURE_ALLOWED_DIRECTIONS);if(n&&n.length){const r=new M(n[0]);if(i.setDirection(r),this.updateSelectedObjectData(e.roomId,t.id,t.category,t.loc,r,t.operation,t.typeId,t.instanceData,t.stuffData,t.state,t.animFrame,t.posture),t=this.getSelectedRoomObjectData(e.roomId),!t)return}}this.setFurnitureAlphaMultiplier(i,.5)}}processRoomCanvasMouseEvent(e,t,i){if(!e||!t||Pr.isRunning())return;const n=t.type;let r=this._roomEngine.getRoomObjectCategoryForType(n);if(r!==U.ROOM&&(!this._roomEngine.isPlayingGame()||r!==U.UNIT)&&(r=U.MINIMUM),this.getMouseEventId(r,e.type)===e.eventId){if(e.type===ue.MOUSE_CLICK||e.type===ue.DOUBLE_CLICK||e.type===ue.MOUSE_DOWN||e.type===ue.MOUSE_UP||e.type===ue.MOUSE_MOVE)return}else e.eventId&&this.setMouseEventId(r,e.type,e.eventId);t.mouseHandler&&t.mouseHandler.mouseEvent(e,i)}processRoomObjectPlacement(e,t,i,n,r,a=null,o=null,l=-1,u=-1,c=null){this._objectPlacementSource=e;const h=new M(-100,-100),f=new M(0);return this.setSelectedRoomObjectData(t,i,n,h,f,Ve.OBJECT_PLACE,r,a,o,l,u,c),this._roomEngine&&(this._roomEngine.setObjectMoverIconSprite(r,n,!1,a,o,l,u,c),this._roomEngine.setObjectMoverIconSpriteVisible(!1)),!0}cancelRoomObjectInsert(e){return this.resetSelectedObjectData(e),!0}getMouseEventId(e,t){const i=this._eventIds.get(e);return i&&i.get(t)||null}setMouseEventId(e,t,i){let n=this._eventIds.get(e);n||(n=new Map,this._eventIds.set(e,n)),n.delete(t),n.set(t,i)}handleRoomObjectEvent(e,t){if(e){if(e instanceof Ee){this.handleRoomObjectMouseEvent(e,t);return}switch(e.type){case We.STATE_CHANGE:case We.STATE_RANDOM:this.onRoomObjectStateChangedEvent(e,t);return;case bu.DIMMER_STATE:this.onRoomObjectDimmerStateUpdateEvent(e,t);return;case es.POSITION_CHANGED:case es.OBJECT_REMOVED:this.handleSelectedObjectRemove(e,t);return;case x.OPEN_WIDGET:case x.CLOSE_WIDGET:case x.OPEN_FURNI_CONTEXT_MENU:case x.CLOSE_FURNI_CONTEXT_MENU:case x.PLACEHOLDER:case x.CREDITFURNI:case x.STACK_HEIGHT:case x.EXTERNAL_IMAGE:case x.STICKIE:case x.PRESENT:case x.TROPHY:case x.TEASER:case x.ECOTRONBOX:case x.DIMMER:case x.WIDGET_REMOVE_DIMMER:case x.CLOTHING_CHANGE:case x.JUKEBOX_PLAYLIST_EDITOR:case x.MANNEQUIN:case x.PET_PRODUCT_MENU:case x.GUILD_FURNI_CONTEXT_MENU:case x.MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG:case x.PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG:case x.BACKGROUND_COLOR:case x.MYSTERYBOX_OPEN_DIALOG:case x.EFFECTBOX_OPEN_DIALOG:case x.MYSTERYTROPHY_OPEN_DIALOG:case x.ACHIEVEMENT_RESOLUTION_OPEN:case x.ACHIEVEMENT_RESOLUTION_ENGRAVING:case x.ACHIEVEMENT_RESOLUTION_FAILED:case x.FRIEND_FURNITURE_CONFIRM:case x.FRIEND_FURNITURE_ENGRAVING:case x.BADGE_DISPLAY_ENGRAVING:case x.HIGH_SCORE_DISPLAY:case x.HIDE_HIGH_SCORE_DISPLAY:case x.INERNAL_LINK:case x.ROOM_LINK:case x.YOUTUBE:this.onRoomObjectWidgetRequestEvent(e,t);return;case X.DICE_ACTIVATE:case X.DICE_OFF:case X.USE_HABBOWHEEL:case X.STICKIE:case X.ENTER_ONEWAYDOOR:this.onRoomObjectFurnitureActionEvent(e,t);return;case X.SOUND_MACHINE_INIT:case X.SOUND_MACHINE_START:case X.SOUND_MACHINE_STOP:case X.SOUND_MACHINE_DISPOSE:this.handleObjectSoundMachineEvent(e,t);return;case X.JUKEBOX_INIT:case X.JUKEBOX_START:case X.JUKEBOX_MACHINE_STOP:case X.JUKEBOX_DISPOSE:this.handleObjectJukeboxEvent(e,t);return;case qi.ADD_HOLE:case qi.REMOVE_HOLE:this.onRoomObjectFloorHoleEvent(e,t);return;case Rt.ROOM_AD_FURNI_CLICK:case Rt.ROOM_AD_FURNI_DOUBLE_CLICK:case Rt.ROOM_AD_TOOLTIP_SHOW:case Rt.ROOM_AD_TOOLTIP_HIDE:case Rt.ROOM_AD_LOAD_IMAGE:this.onRoomObjectRoomAdEvent(e,t);return;case ir.LOAD_BADGE:this.onRoomObjectBadgeAssetEvent(e,t);return;case X.MOUSE_ARROW:case X.MOUSE_BUTTON:this.handleMousePointer(e,t);return;case Aa.PLAY_SOUND:case Aa.PLAY_SOUND_AT_PITCH:this.handleRoomObjectPlaySoundEvent(e,t);return;case Zt.ROOM_OBJECT_INITIALIZED:case Zt.ROOM_OBJECT_DISPOSED:case Zt.PLAY_SAMPLE:case Zt.CHANGE_PITCH:this.handleRoomObjectSamplePlaybackEvent(e,t);return;case ma.ROOM_BACKGROUND_COLOR:this.onHSLColorEnableEvent(e,t);return;case Mn.RODRE_CURRENT_USER_ID:case Mn.RODRE_URL_PREFIX:this.onRoomObjectDataRequestEvent(e,t);return;default:le.warn("Unhandled Event",e.constructor.name,"Object ID",e.object.id);return}}}handleRoomObjectMouseEvent(e,t){if(!(!e||!e.type))switch(e.type){case Ee.CLICK:this.handleRoomObjectMouseClickEvent(e,t);return;case Ee.DOUBLE_CLICK:this.handleRoomObjectMouseDoubleClickEvent(e,t);return;case Ee.MOUSE_MOVE:this.handleRoomObjectMouseMoveEvent(e,t);return;case Ee.MOUSE_DOWN:this.handleRoomObjectMouseDownEvent(e,t);return;case Ee.MOUSE_DOWN_LONG:this.handleRoomObjectMouseDownLongEvent(e,t);return;case Ee.MOUSE_ENTER:this.handleRoomObjectMouseEnterEvent(e,t);return;case Ee.MOUSE_LEAVE:this.handleRoomObjectMouseLeaveEvent(e,t);return}}handleRoomObjectMouseClickEvent(e,t){if(!e)return;let i=Ve.OBJECT_UNDEFINED;const n=this.getSelectedRoomObjectData(t);n&&(i=n.operation);let r=!1,a=!1;this._whereYouClickIsWhereYouGo&&(!i||i===Ve.OBJECT_UNDEFINED)&&(r=this.handleMoveTargetFurni(t,e));const o=this._roomEngine.getRoomObjectCategoryForType(e.objectType);switch(i){case Ve.OBJECT_MOVE:o===U.ROOM?n&&this.modifyRoomObject(t,n.id,n.category,Ve.OBJECT_MOVE_TO):o===U.UNIT&&(n&&e.objectType===tt.MONSTER_PLANT&&this.modifyRoomObject(t,n.id,n.category,Ve.OBJECT_MOVE_TO),e.eventId&&this.setMouseEventId(U.ROOM,ue.MOUSE_CLICK,e.eventId),this.placeObjectOnUser(t,e.objectId,o)),a=!0,e.objectId!==-1&&this.setSelectedObject(t,e.objectId,o);break;case Ve.OBJECT_PLACE:if(o===U.ROOM)this.placeObject(t,e instanceof Qr,e instanceof hh);else if(o===U.UNIT)switch(e.objectType){case tt.MONSTER_PLANT:case tt.RENTABLE_BOT:this.placeObject(t,e instanceof Qr,e instanceof hh);break;default:e.eventId&&this.setMouseEventId(U.ROOM,ue.MOUSE_CLICK,e.eventId),this.placeObjectOnUser(t,e.objectId,o);break}break;case Ve.OBJECT_UNDEFINED:o===U.ROOM?!r&&e instanceof Qr&&this.onRoomObjectTileMouseEvent(t,e):(this.setSelectedObject(t,e.objectId,o),a=!1,o===U.UNIT?(e.ctrlKey&&!e.altKey&&!e.shiftKey&&e.objectType===tt.RENTABLE_BOT?this.modifyRoomObject(t,e.objectId,o,Ve.OBJECT_PICKUP_BOT):e.ctrlKey&&!e.altKey&&!e.shiftKey&&e.objectType===tt.MONSTER_PLANT?this.modifyRoomObject(t,e.objectId,o,Ve.OBJECT_PICKUP_PET):!e.ctrlKey&&!e.altKey&&e.shiftKey&&e.objectType===tt.MONSTER_PLANT&&this.modifyRoomObject(t,e.objectId,o,Ve.OBJECT_ROTATE_POSITIVE),this._roomEngine.isPlayingGame()?a=!0:r=!0):(o===U.FLOOR||o===U.WALL)&&(e.altKey||e.ctrlKey||e.shiftKey)&&(!e.ctrlKey&&!e.altKey&&e.shiftKey?o===U.FLOOR&&this._roomEngine.events&&this._roomEngine.events.dispatchEvent(new Se(Se.REQUEST_ROTATE,t,e.objectId,o)):e.ctrlKey&&!e.altKey&&!e.shiftKey&&this.modifyRoomObject(t,e.objectId,o,Ve.OBJECT_PICKUP),this._roomEngine.isPlayingGame()?a=!0:r=!0),e.eventId&&(r&&this.setMouseEventId(U.ROOM,ue.MOUSE_CLICK,e.eventId),a&&this.setMouseEventId(U.MINIMUM,ue.MOUSE_CLICK,e.eventId)));break}if(o===U.ROOM){const l=this.getMouseEventId(U.MINIMUM,ue.MOUSE_CLICK),u=this.getMouseEventId(U.UNIT,ue.MOUSE_CLICK);l!==e.eventId&&u!==e.eventId&&!a&&(this.deselectObject(t),this._roomEngine.events&&this._roomEngine.events.dispatchEvent(new Se(Se.DESELECTED,t,-1,U.MINIMUM)),this.setSelectedAvatar(t,0,!1))}}handleRoomObjectMouseDoubleClickEvent(e,t){const i=e.objectId,n=e.objectType,r=this._roomEngine.getRoomObjectCategoryForType(n);this._roomEngine.events&&this._roomEngine.events.dispatchEvent(new Se(Se.DOUBLE_CLICK,t,i,r))}handleRoomObjectMouseMoveEvent(e,t){if(!e)return;let i=Ve.OBJECT_UNDEFINED;const n=this.getSelectedRoomObjectData(t);n&&(i=n.operation);const r=this._roomEngine.getRoomObjectCategoryForType(e.objectType);if(this._roomEngine){const a=this._roomEngine.getRoomObjectCursor(t);if(a&&a.logic){let o=null;e instanceof Qr?o=this.handleMouseOverTile(e,t):e.object&&e.object.id!==-1?this._whereYouClickIsWhereYouGo&&(o=this.handleMouseOverObject(r,t,e)):o=new ch(null,0,!1,e.eventId),a.processUpdateMessage(o)}}switch(i){case Ve.OBJECT_MOVE:r===U.ROOM&&this.handleObjectMove(e,t);return;case Ve.OBJECT_PLACE:r===U.ROOM&&this.handleObjectPlace(e,t);return}}handleRoomObjectMouseDownEvent(e,t){if(!e)return;let i=Ve.OBJECT_UNDEFINED;const n=this.getSelectedRoomObjectData(t);n&&(i=n.operation);const r=this._roomEngine.getRoomObjectCategoryForType(e.objectType);switch(i){case Ve.OBJECT_UNDEFINED:(r===U.FLOOR||r===U.WALL||e.objectType===tt.MONSTER_PLANT)&&(e.altKey&&!e.ctrlKey&&!e.shiftKey||this.decorateModeMove(e))&&this._roomEngine.events&&this._roomEngine.events.dispatchEvent(new Se(Se.REQUEST_MOVE,t,e.objectId,r));return}}handleRoomObjectMouseDownLongEvent(e,t){if(!e)return;let i=Ve.OBJECT_UNDEFINED;const n=this.getSelectedRoomObjectData(t);n&&(i=n.operation);const r=this._roomEngine.getRoomObjectCategoryForType(e.objectType);switch(i){case Ve.OBJECT_UNDEFINED:(r===U.FLOOR||r===U.WALL||e.objectType===tt.MONSTER_PLANT)&&(!e.ctrlKey&&!e.shiftKey||this.decorateModeMove(e))&&this._roomEngine.events&&this._roomEngine.events.dispatchEvent(new Se(Se.REQUEST_MANIPULATION,t,e.objectId,r));return}}handleRoomObjectMouseEnterEvent(e,t){const i=e.objectId,n=e.objectType,r=this._roomEngine.getRoomObjectCategoryForType(n);this._roomEngine.events&&this._roomEngine.events.dispatchEvent(new Se(Se.MOUSE_ENTER,t,i,r))}handleRoomObjectMouseLeaveEvent(e,t){const i=e.objectId,n=e.objectType,r=this._roomEngine.getRoomObjectCategoryForType(n);if(r!==U.ROOM&&r===U.UNIT){const a=this._roomEngine.getRoomObjectCursor(t);a&&a.processUpdateMessage(new ht(0,null))}this._roomEngine.events&&this._roomEngine.events.dispatchEvent(new Se(Se.MOUSE_LEAVE,t,i,r))}onRoomObjectStateChangedEvent(e,t){if(e)switch(e.type){case We.STATE_CHANGE:this.changeObjectState(t,e.object.id,e.object.type,e.state,!1);return;case We.STATE_RANDOM:this.changeObjectState(t,e.object.id,e.object.type,e.state,!0);return}}onRoomObjectDimmerStateUpdateEvent(e,t){if(e)switch(e.type){case bu.DIMMER_STATE:this._roomEngine.events.dispatchEvent(new TR(t,e.state,e.presetId,e.effectId,e.color,e.brightness));return}}handleSelectedObjectRemove(e,t){if(!(!e||!this._roomEngine))switch(e.type){case es.POSITION_CHANGED:{const i=e.objectId,n=e.objectType,r=this._roomEngine.getRoomObjectCategoryForType(n),a=this._roomEngine.getRoomObject(t,i,r),o=this._roomEngine.getRoomObjectSelectionArrow(t);if(a&&o&&o.logic){const l=a.getLocation();o.logic.processUpdateMessage(new ui(l,null))}return}case es.OBJECT_REMOVED:this.setSelectedAvatar(t,0,!1);return}}onRoomObjectWidgetRequestEvent(e,t){if(!e||!this._roomEngine)return;const i=e.objectId,n=e.objectType,r=this._roomEngine.getRoomObjectCategoryForType(n),a=this._roomEngine.events;if(a&&!hv.isRoomPreviewerId(t))switch(e.type){case x.OPEN_WIDGET:a.dispatchEvent(new se(se.OPEN_WIDGET,t,i,r,e.object.logic.widget));return;case x.CLOSE_WIDGET:a.dispatchEvent(new se(se.CLOSE_WIDGET,t,i,r,e.object.logic.widget));return;case x.OPEN_FURNI_CONTEXT_MENU:a.dispatchEvent(new se(se.OPEN_FURNI_CONTEXT_MENU,t,i,r,e.object.logic.contextMenu));return;case x.CLOSE_FURNI_CONTEXT_MENU:a.dispatchEvent(new se(se.CLOSE_FURNI_CONTEXT_MENU,t,i,r));return;case x.PLACEHOLDER:a.dispatchEvent(new se(se.REQUEST_PLACEHOLDER,t,i,r));return;case x.CREDITFURNI:a.dispatchEvent(new se(se.REQUEST_CREDITFURNI,t,i,r));return;case x.STACK_HEIGHT:a.dispatchEvent(new se(se.REQUEST_STACK_HEIGHT,t,i,r));return;case x.EXTERNAL_IMAGE:a.dispatchEvent(new se(se.REQUEST_EXTERNAL_IMAGE,t,i,r));return;case x.STICKIE:a.dispatchEvent(new se(se.REQUEST_STICKIE,t,i,r));return;case x.PRESENT:a.dispatchEvent(new se(se.REQUEST_PRESENT,t,i,r));return;case x.TROPHY:a.dispatchEvent(new se(se.REQUEST_TROPHY,t,i,r));return;case x.TEASER:a.dispatchEvent(new se(se.REQUEST_TEASER,t,i,r));return;case x.ECOTRONBOX:a.dispatchEvent(new se(se.REQUEST_ECOTRONBOX,t,i,r));return;case x.DIMMER:a.dispatchEvent(new se(se.REQUEST_DIMMER,t,i,r));return;case x.WIDGET_REMOVE_DIMMER:a.dispatchEvent(new se(se.REMOVE_DIMMER,t,i,r));return;case x.CLOTHING_CHANGE:a.dispatchEvent(new se(se.REQUEST_CLOTHING_CHANGE,t,i,r));return;case x.JUKEBOX_PLAYLIST_EDITOR:a.dispatchEvent(new se(se.REQUEST_PLAYLIST_EDITOR,t,i,r));return;case x.MANNEQUIN:a.dispatchEvent(new se(se.REQUEST_MANNEQUIN,t,i,r));return;case x.PET_PRODUCT_MENU:a.dispatchEvent(new $m($m.USE_PRODUCT_FROM_ROOM,t,i,r));return;case x.GUILD_FURNI_CONTEXT_MENU:this._roomEngine.connection.send(new c6(e.objectId,e.object.model.getValue(b.FURNITURE_GUILD_CUSTOMIZED_GUILD_ID)));return;case x.MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG:a.dispatchEvent(new se(se.REQUEST_MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG,t,i,r));return;case x.PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG:a.dispatchEvent(new se(se.REQUEST_PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG,t,i,r));return;case x.BACKGROUND_COLOR:a.dispatchEvent(new se(se.REQUEST_BACKGROUND_COLOR,t,i,r));return;case x.MYSTERYBOX_OPEN_DIALOG:a.dispatchEvent(new se(se.REQUEST_MYSTERYBOX_OPEN_DIALOG,t,i,r));return;case x.EFFECTBOX_OPEN_DIALOG:a.dispatchEvent(new se(se.REQUEST_EFFECTBOX_OPEN_DIALOG,t,i,r));return;case x.MYSTERYTROPHY_OPEN_DIALOG:a.dispatchEvent(new se(se.REQUEST_MYSTERYTROPHY_OPEN_DIALOG,t,i,r));return;case x.ACHIEVEMENT_RESOLUTION_OPEN:this._roomEngine.connection.send(new SF(e.objectId,0));return;case x.ACHIEVEMENT_RESOLUTION_ENGRAVING:a.dispatchEvent(new se(se.REQUEST_ACHIEVEMENT_RESOLUTION_ENGRAVING,t,i,r));return;case x.ACHIEVEMENT_RESOLUTION_FAILED:a.dispatchEvent(new se(se.REQUEST_ACHIEVEMENT_RESOLUTION_FAILED,t,i,r));return;case x.FRIEND_FURNITURE_CONFIRM:a.dispatchEvent(new se(se.REQUEST_FRIEND_FURNITURE_CONFIRM,t,i,r));return;case x.FRIEND_FURNITURE_ENGRAVING:a.dispatchEvent(new se(se.REQUEST_FRIEND_FURNITURE_ENGRAVING,t,i,r));return;case x.BADGE_DISPLAY_ENGRAVING:a.dispatchEvent(new se(se.REQUEST_BADGE_DISPLAY_ENGRAVING,t,i,r));return;case x.HIGH_SCORE_DISPLAY:a.dispatchEvent(new se(se.REQUEST_HIGH_SCORE_DISPLAY,t,i,r));return;case x.HIDE_HIGH_SCORE_DISPLAY:a.dispatchEvent(new se(se.REQUEST_HIDE_HIGH_SCORE_DISPLAY,t,i,r));return;case x.INERNAL_LINK:a.dispatchEvent(new se(se.REQUEST_INTERNAL_LINK,t,i,r));return;case x.ROOM_LINK:a.dispatchEvent(new se(se.REQUEST_ROOM_LINK,t,i,r));return;case x.YOUTUBE:a.dispatchEvent(new se(se.REQUEST_YOUTUBE,t,i,r));return}}onRoomObjectFurnitureActionEvent(e,t){e&&this.useObject(t,e.object.id,e.object.type,e.type)}handleObjectSoundMachineEvent(e,t){if(!e)return;const i=this._roomEngine.getRoomObjectCategoryForType(e.objectType),n=this.getSelectedRoomObjectData(t);if(!(n&&n.category===i&&n.id===e.objectId&&n.operation===Ve.OBJECT_PLACE))switch(e.type){case X.SOUND_MACHINE_INIT:this._roomEngine.events.dispatchEvent(new Ot(Ot.SOUND_MACHINE_INIT,t,e.objectId,i));return;case X.SOUND_MACHINE_START:this._roomEngine.events.dispatchEvent(new Ot(Ot.SOUND_MACHINE_SWITCHED_ON,t,e.objectId,i));return;case X.SOUND_MACHINE_STOP:this._roomEngine.events.dispatchEvent(new Ot(Ot.SOUND_MACHINE_SWITCHED_OFF,t,e.objectId,i));return;case X.SOUND_MACHINE_DISPOSE:this._roomEngine.events.dispatchEvent(new Ot(Ot.SOUND_MACHINE_DISPOSE,t,e.objectId,i));return}}handleObjectJukeboxEvent(e,t){if(!e)return;const i=this._roomEngine.getRoomObjectCategoryForType(e.objectType),n=this.getSelectedRoomObjectData(t);if(!(n&&n.category===i&&n.id===e.objectId&&n.operation===Ve.OBJECT_PLACE))switch(e.type){case X.JUKEBOX_INIT:this._roomEngine.events.dispatchEvent(new Ot(Ot.JUKEBOX_INIT,t,e.objectId,i));return;case X.JUKEBOX_START:this._roomEngine.events.dispatchEvent(new Ot(Ot.JUKEBOX_SWITCHED_ON,t,e.objectId,i));return;case X.JUKEBOX_MACHINE_STOP:this._roomEngine.events.dispatchEvent(new Ot(Ot.JUKEBOX_SWITCHED_OFF,t,e.objectId,i));return;case X.JUKEBOX_DISPOSE:this._roomEngine.events.dispatchEvent(new Ot(Ot.JUKEBOX_DISPOSE,t,e.objectId,i));return}}onRoomObjectFloorHoleEvent(e,t){if(e)switch(e.type){case qi.ADD_HOLE:this._roomEngine.addRoomInstanceFloorHole(t,e.objectId);return;case qi.REMOVE_HOLE:this._roomEngine.removeRoomInstanceFloorHole(t,e.objectId);return}}onRoomObjectRoomAdEvent(e,t){if(!e)return;let i=null;switch(e.type){case Rt.ROOM_AD_FURNI_CLICK:this._roomEngine.events.dispatchEvent(e),e.clickUrl&&e.clickUrl.length>0&&ce.instance.createLinkEvent(e.clickUrl),i=Mh.FURNI_CLICK;break;case Rt.ROOM_AD_FURNI_DOUBLE_CLICK:if(e.clickUrl&&e.clickUrl.length>0){const n="CATALOG_PAGE";e.clickUrl.indexOf(n)===0&&ce.instance.createLinkEvent(e.clickUrl.substr(n.length))}i=Mh.FURNI_DOUBLE_CLICK;break;case Rt.ROOM_AD_TOOLTIP_SHOW:i=Mh.TOOLTIP_SHOW;break;case Rt.ROOM_AD_TOOLTIP_HIDE:i=Mh.TOOLTIP_HIDE;break}i&&this._roomEngine.events.dispatchEvent(new Se(i,t,e.objectId,this._roomEngine.getRoomObjectCategoryForType(e.objectType)))}onRoomObjectBadgeAssetEvent(e,t){if(!(!e||!this._roomEngine))switch(e.type){case ir.LOAD_BADGE:{const i=e.objectId,n=e.objectType,r=this._roomEngine.getRoomObjectCategoryForType(n);this._roomEngine.loadRoomObjectBadgeImage(t,i,r,e.badgeId,e.groupBadge);return}}}handleMousePointer(e,t){e&&this._roomEngine.updateMousePointer(e.type,e.objectId,e.objectType)}handleRoomObjectPlaySoundEvent(e,t){const i=this._roomEngine.getRoomObjectCategoryForType(e.objectType);switch(e.type){case Aa.PLAY_SOUND:this._roomEngine.events.dispatchEvent(new Ch(Ch.PLAY_SOUND,t,e.objectId,i,e.soundId,e.pitch));return;case Aa.PLAY_SOUND_AT_PITCH:this._roomEngine.events.dispatchEvent(new Ch(Ch.PLAY_SOUND_AT_PITCH,t,e.objectId,i,e.soundId,e.pitch));return}}handleRoomObjectSamplePlaybackEvent(e,t){if(!e)return;const i=this._roomEngine.getRoomObjectCategoryForType(e.objectType);switch(e.type){case Zt.ROOM_OBJECT_INITIALIZED:this._roomEngine.events.dispatchEvent(new $s($s.ROOM_OBJECT_INITIALIZED,t,e.objectId,i,e.sampleId,e.pitch));break;case Zt.ROOM_OBJECT_DISPOSED:this._roomEngine.events.dispatchEvent(new $s($s.ROOM_OBJECT_DISPOSED,t,e.objectId,i,e.sampleId,e.pitch));break;case Zt.PLAY_SAMPLE:this._roomEngine.events.dispatchEvent(new $s($s.PLAY_SAMPLE,t,e.objectId,i,e.sampleId,e.pitch));break;case Zt.CHANGE_PITCH:this._roomEngine.events.dispatchEvent(new $s($s.CHANGE_PITCH,t,e.objectId,i,e.sampleId,e.pitch));break}}onHSLColorEnableEvent(e,t){if(!(!e||!this._roomEngine))switch(e.type){case ma.ROOM_BACKGROUND_COLOR:this._roomEngine.events.dispatchEvent(new Qm(Qm.ROOM_BACKGROUND_COLOR,t,e.enable,e.hue,e.saturation,e.lightness));return}}onRoomObjectDataRequestEvent(e,t){if(!(!e||!this._roomEngine||!e.object))switch(e.type){case Mn.RODRE_CURRENT_USER_ID:e.object.model.setValue(b.SESSION_CURRENT_USER_ID,this._roomEngine.sessionDataManager.userId);return;case Mn.RODRE_URL_PREFIX:e.object.model.setValue(b.SESSION_URL_PREFIX,Te.getValue("url.prefix"));return}}onRoomObjectTileMouseEvent(e,t){if(!this._roomEngine||this._roomEngine.isDecorating||!this._roomEngine.roomSessionManager)return;const i=this._roomEngine.roomSessionManager.getSession(e);!i||i.isSpectator||this.sendWalkUpdate(t.tileXAsInt,t.tileYAsInt)}handleObjectMove(e,t){if(!e||!this._roomEngine||!this._roomEngine.events)return;const n=this.getSelectedRoomObjectData(t);if(!n)return;const r=this._roomEngine.getRoomObject(t,n.id,n.category);if(!r)return;let a=!0;if(n.category===U.FLOOR||n.category===U.UNIT){const o=this._roomEngine.getFurnitureStackingHeightMap(t);e instanceof Qr&&this.handleFurnitureMove(r,n,Math.trunc(e.tileX+.5),Math.trunc(e.tileY+.5),o)||(this.handleFurnitureMove(r,n,n.loc.x,n.loc.y,o),a=!1)}else if(n.category===U.WALL){if(a=!1,e instanceof hh){const o=e.wallLocation,l=e.wallWidth,u=e.wallHeight,c=e.x,h=e.y,f=e.direction;this.handleWallItemMove(r,n,o,l,u,c,h,f)&&(a=!0)}a||(r.setLocation(n.loc),r.setDirection(n.dir)),this._roomEngine.updateRoomObjectMask(t,n.id,a)}a?(this.setFurnitureAlphaMultiplier(r,.5),this._roomEngine.setObjectMoverIconSpriteVisible(!1)):(this.setFurnitureAlphaMultiplier(r,0),this._roomEngine.setObjectMoverIconSpriteVisible(!0))}handleObjectPlace(e,t){if(!e||!this._roomEngine||!this._roomEngine.events)return;let n=this.getSelectedRoomObjectData(t);if(!n)return;let r=this._roomEngine.getRoomObject(t,n.id,n.category);if(!r){if(e instanceof Qr){if(n.category===U.FLOOR)this._roomEngine.addFurnitureFloor(t,n.id,n.typeId,n.loc,n.dir,0,n.stuffData,parseFloat(n.instanceData),-1,0,0,"",!1);else if(n.category===U.UNIT){this._roomEngine.addRoomObjectUser(t,n.id,new M,new M(180),180,n.typeId,n.instanceData);const a=this._roomEngine.getRoomObject(t,n.id,n.category);a&&n.posture&&a.model.setValue(b.FIGURE_POSTURE,n.posture)}}else e instanceof hh&&n.category===U.WALL&&this._roomEngine.addFurnitureWall(t,n.id,n.typeId,n.loc,n.dir,0,n.instanceData,0);if(r=this._roomEngine.getRoomObject(t,n.id,n.category),r&&n.category===U.FLOOR){const a=r.model.getValue(b.FURNITURE_ALLOWED_DIRECTIONS);if(a&&a.length){const o=new M(a[0]);if(r.setDirection(o),this.updateSelectedObjectData(t,n.id,n.category,n.loc,o,n.operation,n.typeId,n.instanceData,n.stuffData,n.state,n.animFrame,n.posture),n=this.getSelectedRoomObjectData(t),!n)return}}this.setFurnitureAlphaMultiplier(r,.5),this._roomEngine.setObjectMoverIconSpriteVisible(!0)}if(r){let a=!0;const o=this._roomEngine.getFurnitureStackingHeightMap(t);if(n.category===U.FLOOR)e instanceof Qr&&this.handleFurnitureMove(r,n,Math.trunc(e.tileX+.5),Math.trunc(e.tileY+.5),o)||(this._roomEngine.removeRoomObjectFloor(t,n.id),a=!1);else if(n.category===U.WALL){if(a=!1,e instanceof hh){const l=e.wallLocation,u=e.wallWidth,c=e.wallHeight,h=e.x,f=e.y,d=e.direction;this.handleWallItemMove(r,n,l,u,c,h,f,d)&&(a=!0)}a||this._roomEngine.removeRoomObjectWall(t,n.id),this._roomEngine.updateRoomObjectMask(t,n.id,a)}else n.category===U.UNIT&&(e instanceof Qr&&this.handleUserPlace(r,Math.trunc(e.tileX+.5),Math.trunc(e.tileY+.5),this._roomEngine.getLegacyWallGeometry(t))||(this._roomEngine.removeRoomObjectUser(t,n.id),a=!1));this._roomEngine.setObjectMoverIconSpriteVisible(!a)}}handleFurnitureMove(e,t,i,n,r){if(!e||!t)return!1;const a=new M;a.assign(e.getDirection()),e.setDirection(t.dir);const o=new M(i,n,0),l=new M;l.assign(e.getDirection());let u=this.validateFurnitureLocation(e,o,t.loc,t.dir,r);return u||(l.x=this.getValidRoomObjectDirection(e,!0),e.setDirection(l),u=this.validateFurnitureLocation(e,o,t.loc,t.dir,r)),u?(e.setLocation(u),l&&e.setDirection(l),!0):(e.setDirection(a),!1)}handleWallItemMove(e,t,i,n,r,a,o,l){if(!e||!t)return!1;const u=new M(l),c=this.validateWallItemLocation(e,i,n,r,a,o,t);return c?(e.setLocation(c),e.setDirection(u),!0):!1}validateFurnitureLocation(e,t,i,n,r){if(!e||!e.model||!t)return null;let a=null;const o=e.getDirection();if(!o||!i||!n)return null;if(t.x===i.x&&t.y===i.y&&o.x===n.x)return a=new M,a.assign(i),a;let l=e.model.getValue(b.FURNITURE_SIZE_X),u=e.model.getValue(b.FURNITURE_SIZE_Y);l<1&&(l=1),u<1&&(u=1);const c=i.x,h=i.y;let f=l,d=u,_=0,g=Math.trunc(Math.trunc(o.x+45)%360/90);if((g===1||g===3)&&(_=l,l=u,u=_),g=Math.trunc(Math.trunc(n.x+45)%360/90),(g===1||g===3)&&(_=f,f=d,d=_),r&&t){const p=e.model.getValue(b.FURNITURE_ALWAYS_STACKABLE)===1;return r.validateLocation(t.x,t.y,l,u,c,h,f,d,p)?new M(t.x,t.y,r.getTileHeight(t.x,t.y)):null}return null}validateWallItemLocation(e,t,i,n,r,a,o){if(e==null||e.model==null||t==null||i==null||n==null||o==null)return null;const l=e.model.getValue(b.FURNITURE_SIZE_X),u=e.model.getValue(b.FURNITURE_SIZE_Z),c=e.model.getValue(b.FURNITURE_CENTER_Z);if((r<l/2||r>i.length-l/2||a<c||a>n.length-(u-c))&&(r<l/2&&r<=i.length-l/2?r=l/2:r>=l/2&&r>i.length-l/2&&(r=i.length-l/2),a<c&&a<=n.length-(u-c)?a=c:a>=c&&a>n.length-(u-c)&&(a=n.length-(u-c))),r<l/2||r>i.length-l/2||a<c||a>n.length-(u-c))return null;let h=M.sum(M.product(i,r/i.length),M.product(n,a/n.length));return h=M.sum(t,h),h}changeObjectState(e,t,i,n,r){const a=this._roomEngine.getRoomObjectCategoryForType(i);this.changeRoomObjectState(e,t,a,n,r)}useObject(e,t,i,n){if(!(!this._roomEngine||!this._roomEngine.connection))switch(n){case X.DICE_ACTIVATE:this._roomEngine.connection.send(new p6(t));return;case X.DICE_OFF:this._roomEngine.connection.send(new m6(t));return;case X.USE_HABBOWHEEL:this._roomEngine.connection.send(new g6(t));return;case X.STICKIE:this._roomEngine.connection.send(new JF(t));return;case X.ENTER_ONEWAYDOOR:this._roomEngine.connection.send(new v6(t));return}}changeRoomObjectState(e,t,i,n,r){return!this._roomEngine||!this._roomEngine.connection||(i===U.FLOOR?r?this._roomEngine.connection.send(new E6(t,n)):this._roomEngine.connection.send(new Bw(t,n)):i===U.WALL&&this._roomEngine.connection.send(new y6(t,n))),!0}sendWalkUpdate(e,t){!this._roomEngine||!this._roomEngine.connection||this._roomEngine.connection.send(new L6(e,t))}handleMouseOverObject(e,t,i){if(e!==U.FLOOR)return null;const n=this._roomEngine.getRoomObject(t,i.objectId,U.FLOOR);if(!n)return null;const r=this.getActiveSurfaceLocation(n,i);if(!r||!this._roomEngine.getFurnitureStackingHeightMap(t))return null;const o=r.x,l=r.y,u=r.z;return new ch(new M(o,l,n.getLocation().z),u,!0,i.eventId)}handleMoveTargetFurni(e,t){if(t.objectType===tt.USER||t.objectType===tt.PET||t.objectType===tt.BOT||t.objectType===tt.RENTABLE_BOT||t.objectType===tt.MONSTER_PLANT)return;const i=this._roomEngine.getRoomObject(e,t.objectId,U.FLOOR),n=this.getActiveSurfaceLocation(i,t);return n?(this.sendWalkUpdate(n.x,n.y),!0):!1}getActiveSurfaceLocation(e,t){if(!e||!t)return null;const i=this._roomEngine.sessionDataManager.getFloorItemDataByName(e.type);if(!i||!i.canStandOn&&!i.canSitOn&&!i.canLayOn)return null;const n=e.model;if(!n)return null;const r=e.getLocation(),a=e.getDirection();let o=n.getValue(b.FURNITURE_SIZE_X),l=n.getValue(b.FURNITURE_SIZE_Y);const u=n.getValue(b.FURNITURE_SIZE_Z);(a.x===90||a.x===270)&&([o,l]=[l,o]),o<1&&(o=1),l<1&&(l=1);const c=this._roomEngine.getActiveRoomInstanceRenderingCanvas();if(!c)return null;const h=c.geometry.scale,f=i.canSitOn?.5:0,d=(h/2+t.spriteOffsetX+t.localX)/(h/4),_=(t.spriteOffsetY+t.localY+(u-f)*h/2)/(h/4),g=(d+2*_)/4,p=(d-2*_)/4,m=Math.floor(r.x+g),v=Math.floor(r.y-p+1);let E=!1;(m<r.x||m>=r.x+o||v<r.y||v>=r.y+l)&&(E=!0);const y=i.canSitOn?u-.5:u;return E?null:new M(m,v,y)}handleMouseOverTile(e,t){if(this._whereYouClickIsWhereYouGo)return new ch(new M(e.tileXAsInt,e.tileYAsInt,e.tileZAsInt),0,!0,e.eventId);const i=this._roomEngine.getRoomObjectCursor(t);if(i&&i.visualization){const n=e.tileXAsInt,r=e.tileYAsInt,a=e.tileZAsInt;if(this._roomEngine.getRoomInstance(t)){const l=this._roomEngine.getRoomTileObjectMap(t);if(l){const u=l.getObjectIntTile(n,r),c=this._roomEngine.getFurnitureStackingHeightMap(t);if(c){if(u&&u.model&&u.model.getValue(b.FURNITURE_IS_VARIABLE_HEIGHT)>0){const h=c.getTileHeight(n,r),f=this._roomEngine.getLegacyWallGeometry(t).getHeight(n,r);return new ch(new M(n,r,a),h-f,!0,e.eventId)}return new ch(new M(n,r,a),0,!0,e.eventId)}}}}return null}placeObject(e,t,i){const n=this.getSelectedRoomObjectData(e);if(!n)return;let r=null,a=n.id;const o=n.category;let l=0,u=0,c=0,h=0,f="";if(this._roomEngine&&this._roomEngine.connection&&(r=this._roomEngine.getRoomObject(e,a,o),r)){const d=r.getLocation();if(h=r.getDirection().x,o===U.FLOOR||o===U.UNIT)l=d.x,u=d.y,c=d.z;else if(o===U.WALL){l=d.x,u=d.y,c=d.z;const _=this._roomEngine.getLegacyWallGeometry(e);_&&(f=_.getOldLocationString(d,h))}h=(h/45%8+8)%8,a<0&&o===U.UNIT&&(a=a*-1),this._objectPlacementSource!==dR.CATALOG&&(o===U.UNIT?n.typeId===Ra.PET?this._roomEngine.connection.send(new t6(a,Math.trunc(l),Math.trunc(u))):n.typeId===Ra.RENTABLE_BOT&&this._roomEngine.connection.send(new qF(a,Math.trunc(l),Math.trunc(u))):r.model.getValue(b.FURNITURE_IS_STICKIE)!==void 0?this._roomEngine.connection.send(new _6(a,f)):this._roomEngine.connection.send(new d6(a,o,f,Math.trunc(l),Math.trunc(u),h)))}if(this._roomEngine.setPlacedRoomObjectData(e,new vT(n.id,n.category,null,n.dir,null)),this.resetSelectedObjectData(e),this._roomEngine&&this._roomEngine.events){const d=r&&r.id===n.id;this._roomEngine.events.dispatchEvent(new rQ(Se.PLACED,e,a,o,f,l,u,c,h,d,t,i,n.instanceData))}}modifyRoomObject(e,t,i,n){if(!this._roomEngine)return!1;const r=this._roomEngine.getRoomObject(e,t,i);if(!r)return!1;let a=!0;switch(n){case Ve.OBJECT_ROTATE_POSITIVE:case Ve.OBJECT_ROTATE_NEGATIVE:if(this._roomEngine.connection){let o=0;n==Ve.OBJECT_ROTATE_NEGATIVE?o=this.getValidRoomObjectDirection(r,!1):o=this.getValidRoomObjectDirection(r,!0);const l=r.getLocation().x,u=r.getLocation().y;if(this.isValidLocation(r,new M(o),this._roomEngine.getFurnitureStackingHeightMap(e)))if(o=Math.trunc(o/45),r.type===tt.MONSTER_PLANT){const c=this._roomEngine.roomSessionManager.getSession(e);if(c){const h=c.userDataManager.getUserDataByIndex(t);h&&this._roomEngine.connection.send(new Rb(h.webID,Math.trunc(l),Math.trunc(u),o))}}else this._roomEngine.connection.send(new Sb(t,l,u,o))}break;case Ve.OBJECT_EJECT:case Ve.OBJECT_PICKUP:this._roomEngine.connection&&this._roomEngine.connection.send(new f6(i,t));break;case Ve.OBJECT_PICKUP_PET:if(this._roomEngine.connection){const o=this._roomEngine.roomSessionManager.getSession(e);if(o){const l=o.userDataManager.getUserDataByIndex(t);o.pickupPet(l.webID)}}break;case Ve.OBJECT_PICKUP_BOT:if(this._roomEngine.connection){const o=this._roomEngine.roomSessionManager.getSession(e);if(o){const l=o.userDataManager.getUserDataByIndex(t);o.pickupBot(l.webID)}}break;case Ve.OBJECT_MOVE:a=!1,this.setFurnitureAlphaMultiplier(r,.5),this.setSelectedRoomObjectData(e,r.id,i,r.getLocation(),r.getDirection(),n),this._roomEngine.setObjectMoverIconSprite(r.id,i,!0),this._roomEngine.setObjectMoverIconSpriteVisible(!1);break;case Ve.OBJECT_MOVE_TO:{const o=this.getSelectedRoomObjectData(e);if(this.updateSelectedObjectData(e,o.id,o.category,o.loc,o.dir,Ve.OBJECT_MOVE_TO,o.typeId,o.instanceData,o.stuffData,o.state,o.animFrame,o.posture),this.setFurnitureAlphaMultiplier(r,1),this._roomEngine.removeObjectMoverIconSprite(),this._roomEngine.connection){if(i===U.FLOOR){const l=r.getDirection().x%360,u=r.getLocation(),c=l/45;this._roomEngine.connection.send(new Sb(t,u.x,u.y,c))}else if(i===U.WALL){const l=r.getDirection().x%360,u=this._roomEngine.getLegacyWallGeometry(e);if(u){const c=u.getOldLocationString(r.getLocation(),l);c&&this._roomEngine.connection.send(new R6(t,c))}}else if(i===U.UNIT){const l=r.getDirection().x%360,u=r.getLocation(),c=l/45;parseInt(r.model.getValue(b.RACE));const h=this._roomEngine.roomSessionManager.getSession(e);if(h){const f=h.userDataManager.getUserDataByIndex(t);f&&this._roomEngine.connection.send(new Rb(f.webID,u.x,u.y,c))}}}break}}return a&&this.resetSelectedObjectData(e),!0}modifyRoomObjectDataWithMap(e,t,i,n,r){if(!this._roomEngine||!this._roomEngine.getRoomObject(e,t,i))return!1;switch(n){case Ve.OBJECT_SAVE_STUFF_DATA:this._roomEngine.connection&&this._roomEngine.connection.send(new a6(t,r));break}return!0}modifyWallItemData(e,t,i,n){return!this._roomEngine||!this._roomEngine.connection?!1:(this._roomEngine.connection.send(new r6(t,i,n)),!0)}deleteWallItem(e,t){return!this._roomEngine||!this._roomEngine.connection?!1:(this._roomEngine.connection.send(new s6(t)),!0)}getValidRoomObjectDirection(e,t){if(!e||!e.model)return 0;let i=0,n=0,r=[];e.type===tt.MONSTER_PLANT?r=e.model.getValue(b.PET_ALLOWED_DIRECTIONS):r=e.model.getValue(b.FURNITURE_ALLOWED_DIRECTIONS);let a=e.getDirection().x;if(r&&r.length){if(i=r.indexOf(a),i<0){for(i=0,n=0;n<r.length&&!(a<=r[n]);)i++,n++;i=i%r.length}t?i=(i+1)%r.length:i=(i-1+r.length)%r.length,a=r[i]}return a}isValidLocation(e,t,i){if(!e||!e.model||!t)return!1;const n=e.getDirection(),r=e.getLocation();if(!n||!r)return!1;if(n.x%180===t.x%180)return!0;let a=e.model.getValue(b.FURNITURE_SIZE_X),o=e.model.getValue(b.FURNITURE_SIZE_Y);a<1&&(a=1),o<1&&(o=1);let l=a,u=o,c=Math.trunc(Math.trunc(t.x+45)%360/90);if((c===1||c===3)&&([a,o]=[o,a]),c=Math.trunc(Math.trunc(n.x+45)%360/90),(c===1||c===3)&&([l,u]=[u,l]),i&&r){const h=e.model.getValue(b.FURNITURE_ALWAYS_STACKABLE)===1;if(i.validateLocation(r.x,r.y,a,o,r.x,r.y,l,u,h,r.z))return!0}return!1}placeObjectOnUser(e,t,i){const n=this.getSelectedRoomObjectData(e);!n||!this._roomEngine.getRoomObject(e,t,i)||!this._roomEngine||!this._roomEngine.events||this._roomEngine.events.dispatchEvent(new aQ(Se.PLACED_ON_USER,e,t,i,n.id,n.category))}setSelectedObject(e,t,i){if(!this._roomEngine)return;const n=this._roomEngine.events;if(n)switch(i){case U.UNIT:case U.FLOOR:case U.WALL:if(i===U.UNIT)this.deselectObject(e),this.setSelectedAvatar(e,t,!0);else if(this.setSelectedAvatar(e,0,!1),t!==this._selectedObjectId){this.deselectObject(e);const r=this._roomEngine.getRoomObject(e,t,i);r&&r.logic&&(r.logic.processUpdateMessage(new $_(!0)),this._selectedObjectId=t,this._selectedObjectCategory=i)}n.dispatchEvent(new Se(Se.SELECTED,e,t,i));return}}deselectObject(e){if(this._selectedObjectId===-1)return;const t=this._roomEngine.getRoomObject(e,this._selectedObjectId,this._selectedObjectCategory);t&&t.logic&&(t.logic.processUpdateMessage(new $_(!1)),this._selectedObjectId=-1,this._selectedObjectCategory=U.MINIMUM)}setSelectedAvatar(e,t,i){if(!this._roomEngine)return;const n=U.UNIT,r=this._roomEngine.getRoomObject(e,this._selectedAvatarId,n);r&&r.logic&&(r.logic.processUpdateMessage(new Cv(!1)),this._selectedAvatarId=-1);let a=!1;if(i){const l=this._roomEngine.getRoomObject(e,t,n);if(l&&l.logic){l.logic.processUpdateMessage(new Cv(!0)),a=!0,this._selectedAvatarId=t;const u=l.getLocation();u&&this._roomEngine.connection.send(new k6(~~u.x,~~u.y))}}const o=this._roomEngine.getRoomObjectSelectionArrow(e);o&&o.logic&&(a&&!this._roomEngine.isPlayingGame()?o.logic.processUpdateMessage(new Ma(Ma.ENABLED)):o.logic.processUpdateMessage(new Ma(Ma.DISABLED)))}resetSelectedObjectData(e){if(!this._roomEngine)return;this._roomEngine.removeObjectMoverIconSprite();const t=this.getSelectedRoomObjectData(e);if(t){if(t.operation===Ve.OBJECT_MOVE||t.operation===Ve.OBJECT_MOVE_TO){const i=this._roomEngine.getRoomObject(e,t.id,t.category);i&&t.operation!==Ve.OBJECT_MOVE_TO&&(i.setLocation(t.loc),i.setDirection(t.dir)),this.setFurnitureAlphaMultiplier(i,1),t.category===U.WALL&&this._roomEngine.updateRoomObjectMask(e,t.id,!0),this.updateSelectedObjectData(e,t.id,t.category,t.loc,t.dir,Ve.OBJECT_MOVE,t.typeId,t.instanceData,t.stuffData,t.state,t.animFrame,t.posture)}else if(t.operation===Ve.OBJECT_PLACE){const i=t.id;switch(t.category){case U.FLOOR:this._roomEngine.removeRoomObjectFloor(e,i);break;case U.WALL:this._roomEngine.removeRoomObjectWall(e,i);break;case U.UNIT:this._roomEngine.removeRoomObjectUser(e,i);break}}this._roomEngine.setSelectedRoomObjectData(e,null)}}getSelectedRoomObjectData(e){return this._roomEngine?this._roomEngine.getSelectedRoomObjectData(e):null}setFurnitureAlphaMultiplier(e,t){!e||!e.model||e.model.setValue(b.FURNITURE_ALPHA_MULTIPLIER,t)}decorateModeMove(e){return this._roomEngine.isDecorating&&!(e.ctrlKey||e.shiftKey)}cancelRoomObjectPlacement(e){return this.resetSelectedObjectData(e),!0}setSelectedRoomObjectData(e,t,i,n,r,a,o=0,l=null,u=null,c=-1,h=-1,f=null){if(this.resetSelectedObjectData(e),!this._roomEngine)return;const d=new vT(t,i,a,n,r,o,l,u,c,h,f);this._roomEngine.setSelectedRoomObjectData(e,d)}updateSelectedObjectData(e,t,i,n,r,a,o=0,l=null,u=null,c=-1,h=-1,f=null){if(!this._roomEngine)return null;const d=new vT(t,i,a,n,r,o,l,u,c,h,f);this._roomEngine.setSelectedRoomObjectData(e,d)}handleUserPlace(e,t,i,n){return n.isRoomTile(t,i)?(e.setLocation(new M(t,i,n.getHeight(t,i))),!0):!1}get engine(){return this._roomEngine}get selectedAvatarId(){return this._selectedAvatarId}}class rTe{constructor(){this._events=new fn,this._cachedEvents=new Map,this._registeredEvents=new Map,this._functions=[]}getLogic(e){const t=this.getLogicType(e);if(!t)return null;const i=new t;if(!i)return null;if(i.eventDispatcher=this._events,!this._cachedEvents.get(e)){this._cachedEvents.set(e,!0);const n=i.getEventTypes();for(const r of n)r&&this.registerEventType(r)}return i}registerEventType(e){if(!this._registeredEvents.get(e)){this._registeredEvents.set(e,!0);for(const t of this._functions)t&&this._events.addEventListener(e,t)}}registerEventFunction(e){if(e&&!(this._functions.indexOf(e)>=0)){this._functions.push(e);for(const t of this._registeredEvents.keys())t&&this._events.addEventListener(t,e)}}removeEventFunction(e){if(!e)return;const t=this._functions.indexOf(e);if(t!==-1){this._functions.splice(t,1);for(const i of this._registeredEvents.keys())i&&this._events.removeEventListener(i,e)}}getLogicType(e){if(!e)return null;let t=null;switch(e){case re.ROOM:t=mye;break;case re.TILE_CURSOR:t=jb;break;case re.SELECTION_ARROW:t=vye;break;case re.USER:case re.BOT:case re.RENTABLE_BOT:t=Nb;break;case re.PET:t=dye;break;case re.FURNITURE_BASIC:t=qe;break;case re.FURNITURE_BADGE_DISPLAY:t=R5;break;case re.FURNITURE_CHANGE_STATE_WHEN_STEP_ON:t=JEe;break;case re.FURNITURE_COUNTER_CLOCK:t=t0e;break;case re.FURNITURE_CRACKABLE:t=i0e;break;case re.FURNITURE_CREDIT:t=n0e;break;case re.FURNITURE_CUSTOM_STACK_HEIGHT:t=a0e;break;case re.FURNITURE_DICE:t=o0e;break;case re.FURNITURE_EDITABLE_INTERNAL_LINK:t=u0e;break;case re.FURNITURE_EDITABLE_ROOM_LINK:t=h0e;break;case re.FURNITURE_EXTERNAL_IMAGE_WALLITEM:t=f0e;break;case re.FURNITURE_FIREWORKS:t=d0e;break;case re.FURNITURE_FLOOR_HOLE:t=kb;break;case re.FURNITURE_GUILD_CUSTOMIZED:t=kv;break;case re.FURNITURE_HIGH_SCORE:t=xb;break;case re.FURNITURE_HOCKEY_SCORE:t=p0e;break;case re.FURNITURE_ES:t=v0e;break;case re.FURNITURE_MANNEQUIN:t=Db;break;case re.FURNITURE_MULTIHEIGHT:t=R0e;break;case re.FURNITURE_MULTISTATE:t=qt;break;case re.FURNITURE_ONE_WAY_DOOR:t=A0e;break;case re.FURNITURE_PET_CUSTOMIZATION:t=O0e;break;case re.FURNITURE_PRESENT:t=Lb;break;case re.FURNITURE_PURCHASABLE_CLOTHING:t=M0e;break;case re.FURNITURE_PUSHABLE:t=Ub;break;case re.FURNITURE_BACKGROUND_COLOR:t=x0e;break;case re.FURNITURE_BG:t=sye;break;case re.FURNITURE_BB:t=nye;break;case re.FURNITURE_ROOMDIMMER:t=rye;break;case re.FURNITURE_SCORE:t=Fb;break;case re.FURNITURE_SOUNDBLOCK:t=Bb;break;case re.FURNITURE_STICKIE:t=Gb;break;case re.FURNITURE_TROPHY:t=lye;break;case re.FURNITURE_VOTE_COUNTER:t=Vb;break;case re.FURNITURE_VOTE_MAJORITY:t=uye;break;case re.FURNITURE_WINDOW:t=cye;break;case re.FURNITURE_LOVELOCK:t=T0e;break;case re.FURNITURE_YOUTUBE:t=fye;break;case re.FURNITURE_CRAFTING_GIZMO:t=s0e;break;case re.FURNITURE_RENTABLE_SPACE:t=k0e;break;case re.FURNITURE_EFFECTBOX:t=c0e;break;case re.FURNITURE_MONSTERPLANT_SEED:t=I0e;break;case re.FURNITURE_MYSTERYBOX:t=S0e;break;case re.FURNITURE_MYSTERYTROPHY:t=b0e;break;case re.FURNITURE_RANDOM_TELEPORT:t=P0e;break;case re.FURNITURE_CLOTHING_CHANGE:t=e0e;break;case re.FURNITURE_CUCKOO_CLOCK:t=r0e;break;case re.FURNITURE_ECOTRON_BOX:t=l0e;break;case re.FURNITURE_GROUP_FORUM_TERMINAL:t=_0e;break;case re.FURNITURE_HWEEN_LOVELOCK:t=m0e;break;case re.FURNITURE_INTERNAL_LINK:t=E0e;break;case re.FURNITURE_JUKEBOX:t=y0e;break;case re.FURNITURE_PLACEHOLDER:t=w0e;break;case re.FURNITURE_PLANET_SYSTEM:t=C0e;break;case re.FURNITURE_RANDOMSTATE:t=N0e;break;case re.FURNITURE_SONG_DISK:t=aye;break;case re.FURNITURE_SOUND_MACHINE:t=oye;break;case re.FURNITURE_WELCOME_GIFT:t=hye;break;case re.FURNITURE_ACHIEVEMENT_RESOLUTION:t=Pb;break;case re.FURNITURE_HABBOWHEEL:t=g0e;break;default:t=qe;break}return t||(le.warn("Unknown Logic",e),null)}get events(){return this._events}}const Le=class Le extends Yr{constructor(e){super(),this._communication=e,this._sessionDataManager=null,this._roomSessionManager=null,this._roomManager=null,this._roomObjectEventHandler=new nTe(this),this._roomMessageHandler=new sTe(this),this._roomContentLoader=new kc,this._ready=!1,this._roomContentLoaderReady=!1,this._activeRoomId=-1,this._activeRoomActiveCanvas=-1,this._roomInstanceDatas=new Map,this._roomDatas=new Map,this._roomRendererFactory=new iZ,this._visualizationFactory=new EA,this._logicFactory=new rTe,this._activeRoomActiveCanvasMouseX=0,this._activeRoomActiveCanvasMouseY=0,this._activeRoomIsDragged=!1,this._activeRoomWasDragged=!1,this._activeRoomDragStartX=0,this._activeRoomDragStartY=0,this._activeRoomDragX=0,this._activeRoomDragY=0,this._skipFurnitureCreationForNextFrame=!1,this._mouseCursorUpdate=!1,this._imageObjectIdBank=null,this._imageCallbacks=new Map,this._thumbnailCallbacks=new Map,this._roomDraggingAlwaysCenters=!1,this._roomAllowsDragging=!0,this._badgeListenerObjects=new Map,this.runVisibilityUpdate=this.runVisibilityUpdate.bind(this),this.processRoomObjectEvent=this.processRoomObjectEvent.bind(this),this.onRoomSessionEvent=this.onRoomSessionEvent.bind(this),this.onRoomContentLoaderReadyEvent=this.onRoomContentLoaderReadyEvent.bind(this),this.onBadgeImageReadyEvent=this.onBadgeImageReadyEvent.bind(this)}onInit(){this._ready||(this._imageObjectIdBank=new WP(1e3),this._thumbnailObjectIdBank=new WP(1e3),this._logicFactory.registerEventFunction(this.processRoomObjectEvent),this._roomManager&&(this._roomManager.setContentLoader(this._roomContentLoader),this._roomManager.addUpdateCategory(U.FLOOR),this._roomManager.addUpdateCategory(U.WALL),this._roomManager.addUpdateCategory(U.UNIT),this._roomManager.addUpdateCategory(U.CURSOR),this._roomManager.addUpdateCategory(U.ROOM)),this._roomMessageHandler.setConnection(this._communication.connection),this._roomContentLoader.initialize(this.events),this._roomContentLoader.setSessionDataManager(this._sessionDataManager),this._roomContentLoader.setIconListener(this),this._roomSessionManager&&(this._roomSessionManager.events.addEventListener(Ae.STARTED,this.onRoomSessionEvent),this._roomSessionManager.events.addEventListener(Ae.ENDED,this.onRoomSessionEvent)),this.events.addEventListener(kc.LOADER_READY,this.onRoomContentLoaderReadyEvent),ga().add(this.update,this),document.addEventListener("visibilitychange",this.runVisibilityUpdate))}onDispose(){if(this._ready){for(const[e,t]of this._roomInstanceDatas)this.removeRoomInstance(e);document.removeEventListener("visibilitychange",this.runVisibilityUpdate),ga().remove(this.update,this),this._roomObjectEventHandler&&this._roomObjectEventHandler.dispose(),this._roomMessageHandler&&this._roomMessageHandler.dispose(),this._roomContentLoader&&this._roomContentLoader.dispose(),this.events.removeEventListener(kc.LOADER_READY,this.onRoomContentLoaderReadyEvent),this._roomSessionManager&&(this._roomSessionManager.events.removeEventListener(Ae.STARTED,this.onRoomSessionEvent),this._roomSessionManager.events.removeEventListener(Ae.ENDED,this.onRoomSessionEvent)),super.onDispose()}}onRoomSessionEvent(e){if(e instanceof Ae)switch(e.type){case Ae.STARTED:this._roomMessageHandler&&this._roomMessageHandler.setRoomId(e.session.roomId);return;case Ae.ENDED:this._roomMessageHandler&&(this._roomMessageHandler.clearRoomId(),this.removeRoomInstance(e.session.roomId));return}}onRoomContentLoaderReadyEvent(e){this._roomContentLoaderReady=!0,this._roomManager.init()}setActiveRoomId(e){this._activeRoomId=e}destroyRoom(e){this.removeRoomInstance(e)}getRoomInstance(e){return this._roomManager&&this._roomManager.getRoomInstance(this.getRoomId(e))||null}removeRoomInstance(e){this.getRoomInstance(e)&&this._roomManager&&this._roomManager.removeRoomInstance(this.getRoomId(e));const i=this._roomInstanceDatas.get(e);i&&(this._roomInstanceDatas.delete(i.roomId),i.dispose()),this.events.dispatchEvent(new ft(ft.DISPOSED,e))}createRoomInstance(e,t){let i="111",n="201",r="1";if(!this._ready){let l=this._roomDatas.get(e);l&&(this._roomDatas.delete(e),i=l.floorType,n=l.wallType,r=l.landscapeType),l=new hk(e,t),l.floorType=i,l.wallType=n,l.landscapeType=r,this._roomDatas.set(e,l),le.warn("Room Engine not initilized yet, can not create room. Room data stored for later initialization.");return}if(!t){le.warn("Room property messages");return}const a=this._roomDatas.get(e);a&&(this._roomDatas.delete(e),a.floorType&&(i=a.floorType),a.wallType&&(n=a.wallType),a.landscapeType&&(r=a.landscapeType)),this.setupRoomInstance(e,t,i,n,r,this.getRoomInstanceModelName(e))&&(t.restrictsDragging?this._roomAllowsDragging=!1:this._roomAllowsDragging=!0,this.events.dispatchEvent(new ft(ft.INITIALIZED,e)))}setupRoomInstance(e,t,i,n,r,a){if(!this._ready||!this._roomManager)return;const o=this._roomManager.createRoomInstance(this.getRoomId(e));if(!o)return null;const l=U.ROOM,u=o.createRoomObjectAndInitalize(Le.ROOM_OBJECT_ID,Le.ROOM_OBJECT_TYPE,l);if(o.model.setValue(Qt.ROOM_IS_PUBLIC,0),o.model.setValue(Qt.ROOM_Z_SCALE,1),t&&(o.model.setValue(Qt.RESTRICTS_DRAGGING,t.restrictsDragging),o.model.setValue(Qt.RESTRICTS_SCALING,t.restrictsScaling),o.model.setValue(Qt.RESTRICTED_SCALE,t.restrictedScale),t.dimensions)){const f=t.dimensions.minX,d=t.dimensions.maxX,_=t.dimensions.minY,g=t.dimensions.maxY;o.model.setValue(Qt.ROOM_MIN_X,f),o.model.setValue(Qt.ROOM_MAX_X,d),o.model.setValue(Qt.ROOM_MIN_Y,_),o.model.setValue(Qt.ROOM_MAX_Y,g);const p=Math.trunc(f*423+d*671+_*913+g*7509);u&&u.model&&u.model.setValue(b.ROOM_RANDOM_SEED,p)}const c=u&&u.logic||null;if(c&&(c.initialize(t),i&&(c.processUpdateMessage(new bi(bi.ROOM_FLOOR_UPDATE,i)),o.model.setValue(b.ROOM_FLOOR_TYPE,i)),n&&(c.processUpdateMessage(new bi(bi.ROOM_WALL_UPDATE,n)),o.model.setValue(b.ROOM_WALL_TYPE,n)),r&&(c.processUpdateMessage(new bi(bi.ROOM_LANDSCAPE_UPDATE,r)),o.model.setValue(b.ROOM_LANDSCAPE_TYPE,r))),t&&t.doors.length){let h=0;for(;h<t.doors.length;){const f=t.doors[h];if(f){const d=f.x,_=f.y,g=f.z,p=f.dir,m=$i.DOOR,v="door_"+h,E=new M(d,_,g);c.processUpdateMessage(new $i($i.ADD_MASK,v,m,E,$i.HOLE)),(p===90||p===180)&&(p===90&&(o.model.setValue(b.ROOM_DOOR_X,d-.5),o.model.setValue(b.ROOM_DOOR_Y,_)),p===180&&(o.model.setValue(b.ROOM_DOOR_X,d),o.model.setValue(b.ROOM_DOOR_Y,_-.5)),o.model.setValue(b.ROOM_DOOR_Z,g),o.model.setValue(b.ROOM_DOOR_DIR,p))}h++}}return o.createRoomObjectAndInitalize(Le.CURSOR_OBJECT_ID,Le.CURSOR_OBJECT_TYPE,U.CURSOR),Te.getValue("enable.avatar.arrow",!1)&&o.createRoomObjectAndInitalize(Le.ARROW_OBJECT_ID,Le.ARROW_OBJECT_TYPE,U.CURSOR),o}getRoomInstanceDisplay(e,t,i,n,r){const a=this.getRoomInstance(e);if(!a)return null;let o=a.renderer;if(!o&&(o=this._roomRendererFactory.createRenderer(),!o))return null;o.roomObjectVariableAccurateZ=b.OBJECT_ACCURATE_Z_VALUE,a.setRenderer(o);const l=o.createCanvas(t,i,n,r);if(!l)return null;if(a.model.getValue(Qt.RESTRICTS_SCALING)){let c=a.model.getValue(Qt.RESTRICTED_SCALE);c||(c=1),l.setScale(c),l.restrictsScaling=!0}else l.restrictsScaling=!1;if(l.setMouseListener(this._roomObjectEventHandler),l.geometry){l.geometry.z_scale=a.model.getValue(Qt.ROOM_Z_SCALE);const c=a.model.getValue(b.ROOM_DOOR_X),h=a.model.getValue(b.ROOM_DOOR_Y),f=a.model.getValue(b.ROOM_DOOR_Z),d=a.model.getValue(b.ROOM_DOOR_DIR),_=new M(c,h,f);let g=null;d===90&&(g=new M(-2e3,0,0)),d===180&&(g=new M(0,-2e3,0)),l.geometry.setDisplacement(_,g);const p=l.master;if(p){const m=new kt(Ne.EMPTY);m.name=Le.OVERLAY,m.interactive=!1,p.addChild(m)}}return l.master}setRoomInstanceRenderingCanvasMask(e,t,i){const n=this.getRoomInstanceRenderingCanvas(e,t);n&&n.setMask(i)}setRoomInstanceRenderingCanvasScale(e,t,i,n=null,r=null,a=!1,o=!1){const l=this.getRoomInstanceRenderingCanvas(e,t);if(l){if(l.restrictsScaling&&!a)return;l.setScale(i,n,r,a,o),this.events.dispatchEvent(new ft(ft.ROOM_ZOOMED,e))}}getRoomInstanceRenderingCanvas(e,t=-1){const i=this.getRoomInstance(e);if(!i)return null;const n=i.renderer;if(!n)return null;t===-1&&(t=this._activeRoomActiveCanvas);const r=n.getCanvas(t);return r||null}getActiveRoomInstanceRenderingCanvas(){return this.getRoomInstanceRenderingCanvas(this._activeRoomId,this._activeRoomActiveCanvas)}getRoomInstanceRenderingCanvasOffset(e,t=-1){t===-1&&(t=this._activeRoomActiveCanvas);const i=this.getRoomInstanceRenderingCanvas(e,t);return i?new Q(i.screenOffsetX,i.screenOffsetY):null}setRoomInstanceRenderingCanvasOffset(e,t,i){const n=this.getRoomInstanceRenderingCanvas(e,t);if(!n||!i)return!1;const r=~~i.x,a=~~i.y;if(!(n.screenOffsetX===r&&n.screenOffsetY===a))return this.events.dispatchEvent(new yR(e,-(n.screenOffsetX-r),-(n.screenOffsetY-a))),n.screenOffsetX=r,n.screenOffsetY=a,!0}getRoomInstanceRenderingCanvasScale(e=-1e3,t=-1){e===-1e3&&(e=this._activeRoomId),t===-1&&(t=this._activeRoomActiveCanvas);const i=this.getRoomInstanceRenderingCanvas(e,t);return i?i.scale:1}initializeRoomInstanceRenderingCanvas(e,t,i,n){const r=this.getRoomInstanceRenderingCanvas(e,t);r&&r.initialize(i,n)}getRoomInstanceGeometry(e,t=-1){const i=this.getRoomInstance(e);if(!i)return null;const n=i.renderer;if(!n)return null;t===-1&&(t=this._activeRoomActiveCanvas);const r=n.getCanvas(t);return r?r.geometry:null}getRoomInstanceVariable(e,t){const i=this.getRoomInstance(e);return i&&i.model&&i.model.getValue(t)||null}updateRoomInstancePlaneVisibility(e,t,i=!0){const n=this.getRoomOwnObject(e);return n?(n.processUpdateMessage(new Ca(Ca.WALL_VISIBILITY,t)),n.processUpdateMessage(new Ca(Ca.FLOOR_VISIBILITY,i)),!0):!1}updateRoomInstancePlaneThickness(e,t,i){const n=this.getRoomOwnObject(e);return n?(n.processUpdateMessage(new wa(wa.WALL_THICKNESS,t)),n.processUpdateMessage(new wa(wa.FLOOR_THICKNESS,i)),!0):!1}updateRoomInstancePlaneType(e,t=null,i=null,n=null,r=!1){const a=this.getRoomOwnObject(e),o=this.getRoomInstance(e);if(!a){let l=this._roomDatas.get(e);return l||(l=new hk(e,null),this._roomDatas.set(e,l)),t&&(l.floorType=t),i&&(l.wallType=i),n&&(l.landscapeType=n),!0}return t&&(o&&!r&&o.model.setValue(b.ROOM_FLOOR_TYPE,t),a.processUpdateMessage(new bi(bi.ROOM_FLOOR_UPDATE,t))),i&&(o&&!r&&o.model.setValue(b.ROOM_WALL_TYPE,i),a.processUpdateMessage(new bi(bi.ROOM_WALL_UPDATE,i))),n&&(o&&!r&&o.model.setValue(b.ROOM_LANDSCAPE_TYPE,n),a.processUpdateMessage(new bi(bi.ROOM_LANDSCAPE_UPDATE,n))),!0}updateObjectRoomColor(e,t,i,n){const r=this.getRoomOwnObject(e);if(!r||!r.logic)return!1;const a=new q_(q_.BACKGROUND_COLOR,t,i,n);return r.logic.processUpdateMessage(a),this.events.dispatchEvent(new ER(e,t,i,n)),!0}addRoomInstanceFloorHole(e,t){if(t<0)return;const i=this.getRoomOwnObject(e),n=this.getRoomObjectFloor(e,t);if(i&&i.logic&&n&&n.model){const r=n.getLocation(),a=n.model.getValue(b.FURNITURE_SIZE_X),o=n.model.getValue(b.FURNITURE_SIZE_Y);i.processUpdateMessage(new Oa(Oa.ADD,t,r.x,r.y,a,o))}}removeRoomInstanceFloorHole(e,t){if(t<0)return;const i=this.getRoomOwnObject(e);i&&i.processUpdateMessage(new Oa(Oa.REMOVE,t))}setRoomEngineGameMode(e,t){const i=this.getRoomInstance(e);if(!i)return;const n=t?1:0;i.model.setValue(Qt.IS_PLAYING_GAME,n),n===0?this.events.dispatchEvent(new ft(ft.NORMAL_MODE,e)):this.events.dispatchEvent(new ft(ft.GAME_MODE,e))}isRoomIdPlayingGame(e){const t=this.getRoomInstance(e);return t?t.model.getValue(Qt.IS_PLAYING_GAME)>0:!1}isPlayingGame(){return this.isRoomIdPlayingGame(this._activeRoomId)}disableUpdate(e){e?ga().remove(this.update,this):(ga().remove(this.update,this),ga().add(this.update,this))}runUpdate(){this.update(1)}runVisibilityUpdate(){document.hidden||this.update(1,!0)}update(e,t=!1){this._roomManager&&(e=Pe(),Pr.turnVisualizationOn(),this.processPendingFurniture(),this._roomManager.update(e,t),this.updateRoomCameras(e),this._mouseCursorUpdate&&this.setPointer(),Pr.turnVisualizationOff())}setPointer(){this._mouseCursorUpdate=!1;const e=this.getRoomInstanceData(this._activeRoomId);e&&e.hasButtonMouseCursorOwners()?document.body.style.cursor="pointer":document.body.style.cursor="auto"}processPendingFurniture(){if(this._skipFurnitureCreationForNextFrame){this._skipFurnitureCreationForNextFrame=!1;return}const e=new Date().valueOf(),t=5;for(const i of this._roomInstanceDatas.values()){if(!i)continue;let n=null,r=0,a=!1;for(;n=i.getNextPendingFurnitureFloor();)if(a=this.processPendingFurnitureFloor(i.roomId,n.id,n),!(++r%t)&&new Date().valueOf()-e>=40){this._skipFurnitureCreationForNextFrame=!0;break}for(;!this._skipFurnitureCreationForNextFrame&&(n=i.getNextPendingFurnitureWall());)if(a=this.processPendingFurnitureWall(i.roomId,n.id,n),!(++r%t)&&new Date().valueOf()-e>=40){this._skipFurnitureCreationForNextFrame=!0;break}if(a&&this._roomManager&&(this._roomManager.getRoomInstance(this.getRoomId(i.roomId)).hasUninitializedObjects()||this.objectsInitialized(i.roomId.toString())),this._skipFurnitureCreationForNextFrame)return}}onRoomEngineInitalized(e){if(e){this._ready=!0,this.events.dispatchEvent(new ft(ft.ENGINE_INITIALIZED,0));for(const t of this._roomDatas.values())t&&this.createRoomInstance(t.roomId,t.data)}}processPendingFurnitureFloor(e,t,i){if(!i){const l=this.getRoomInstanceData(e);if(l&&(i=l.getPendingFurnitureFloor(t)),!i)return!1}let n=i.type;n||(n=this.getFurnitureFloorName(i.typeId));const r=this.createRoomObjectFloor(e,t,n);if(!r)return!1;const a=r.model;if(a&&(a.setValue(b.FURNITURE_COLOR,this.getFurnitureFloorColorIndex(i.typeId)),a.setValue(b.FURNITURE_TYPE_ID,i.typeId),a.setValue(b.FURNITURE_AD_URL,this.getRoomObjectAdUrl(i.type)),a.setValue(b.FURNITURE_REAL_ROOM_OBJECT,i.realRoomObject?1:0),a.setValue(b.FURNITURE_EXPIRY_TIME,i.expiryTime),a.setValue(b.FURNITURE_EXPIRTY_TIMESTAMP,Pe()),a.setValue(b.FURNITURE_USAGE_POLICY,i.usagePolicy),a.setValue(b.FURNITURE_OWNER_ID,i.ownerId),a.setValue(b.FURNITURE_OWNER_NAME,i.ownerName)),!this.updateRoomObjectFloor(e,t,i.location,i.direction,i.state,i.data,i.extra)||i.sizeZ>=0&&!this.updateRoomObjectFloorHeight(e,t,i.sizeZ))return!1;this.events&&this.events.dispatchEvent(new Se(Se.ADDED,e,t,U.FLOOR));const o=this.getPlacedRoomObjectData(e);return o&&o.id===t&&o.category===U.FLOOR&&this.selectRoomObject(e,t,U.FLOOR),r.isReady&&i.synchronized&&this.addObjectToTileMap(e,r),!0}processPendingFurnitureWall(e,t,i){if(!i){const u=this.getRoomInstanceData(e);if(u&&(i=u.getPendingFurnitureWall(t)),!i)return!1}let n="";i.data&&(n=i.data.getLegacyString());let r=this.getFurnitureWallName(i.typeId,n);r||(r="");const a=this.createRoomObjectWall(e,t,r);if(!a)return!1;const o=a.model;if(o&&(o.setValue(b.FURNITURE_COLOR,this.getFurnitureWallColorIndex(i.typeId)),o.setValue(b.FURNITURE_TYPE_ID,i.typeId),o.setValue(b.FURNITURE_AD_URL,this.getRoomObjectAdUrl(i.type)),o.setValue(b.FURNITURE_REAL_ROOM_OBJECT,i.realRoomObject?1:0),o.setValue(b.OBJECT_ACCURATE_Z_VALUE,1),o.setValue(b.FURNITURE_EXPIRY_TIME,i.expiryTime),o.setValue(b.FURNITURE_EXPIRTY_TIMESTAMP,Pe()),o.setValue(b.FURNITURE_USAGE_POLICY,i.usagePolicy),o.setValue(b.FURNITURE_OWNER_ID,i.ownerId),o.setValue(b.FURNITURE_OWNER_NAME,i.ownerName)),!this.updateRoomObjectWall(e,t,i.location,i.direction,i.state,n))return!1;this.events&&this.events.dispatchEvent(new Se(Se.ADDED,e,t,U.WALL));const l=this.getPlacedRoomObjectData(e);return l&&Math.abs(l.id)===t&&l.category===U.WALL&&this.selectRoomObject(e,t,U.WALL),!0}setRoomSessionOwnUser(e,t){if(!this._roomSessionManager)return;const i=this._roomSessionManager.getSession(e);i&&i.setOwnRoomIndex(t);const n=this.getRoomCamera(e);n&&(n.targetId=t,n.targetCategory=U.UNIT,n.activateFollowing(this.cameraFollowDuration))}get cameraFollowDuration(){return 1e3}updateRoomCameras(e){for(const t of this._roomInstanceDatas.values()){if(!t)continue;const i=t.roomCamera;if(!i)continue;let n=null;const r=this.getRoomObject(t.roomId,i.targetId,i.targetCategory);r&&(n=r.getLocation()),n&&(t.roomId!==this._activeRoomId||!this._activeRoomIsDragged)&&this.updateRoomCamera(t.roomId,1,n,e)}if(this._activeRoomWasDragged){const t=this.getRoomInstanceRenderingCanvas(this._activeRoomId,1);t&&this.setRoomInstanceRenderingCanvasOffset(this._activeRoomId,1,new Q(t.screenOffsetX+this._activeRoomDragX,t.screenOffsetY+this._activeRoomDragY)),this._activeRoomDragX=0,this._activeRoomDragY=0}}updateRoomCamera(e,t,i,n){const r=this.getRoomInstanceRenderingCanvas(e,t),a=this.getRoomInstanceData(e);if(!r||!a||r.scale!==1)return;const o=r.geometry,l=a.roomCamera,u=this.getRoomInstance(e);if(!o||!l||!u)return;const c=this.getRoomCanvasRectangle(e,t);if(!c)return;let h=Math.floor(i.z)+1;const f=Math.round(c.width),d=Math.round(c.height),_=this.getCanvasBoundingRectangle(t);if(_&&(_.right<0||_.bottom<0||_.left>=f||_.top>=d)&&l.reset(),l.screenWd!==f||l.screenHt!==d||l.scale!==o.scale||l.geometryUpdateId!==o.updateId||!M.isEqual(i,l.targetObjectLoc)||l.isMoving){l.targetObjectLoc=i;const g=new M;g.assign(i),g.x=Math.round(g.x),g.y=Math.round(g.y);const p=u.model.getValue(Qt.ROOM_MIN_X)-.5,m=u.model.getValue(Qt.ROOM_MIN_Y)-.5,v=u.model.getValue(Qt.ROOM_MAX_X)+.5,E=u.model.getValue(Qt.ROOM_MAX_Y)+.5,y=Math.round((p+v)/2),T=Math.round((m+E)/2),w=2;let C=new Q(g.x-y,g.y-T);const N=o.scale/Math.sqrt(2),P=N/2,k=new dt;k.rotate(-(o.direction.x+90)/180*Math.PI),C=k.apply(C),C.y=C.y*(P/N);const L=c.width/2/N-1,j=c.height/2/P-1;let z=0,ne=0,G=0,Y=0,K=o.getScreenPoint(new M(y,T,w));if(!K)return;if(K.x=K.x+Math.round(c.width/2),K.y=K.y+Math.round(c.height/2),_)if(_.x+=-r.screenOffsetX,_.y+=-r.screenOffsetY,_.width>1&&_.height>1)z=(_.left-K.x-o.scale*.25)/N,G=(_.right-K.x+o.scale*.25)/N,ne=(_.top-K.y-o.scale*.5)/P,Y=(_.bottom-K.y+o.scale*.5)/P;else{o.adjustLocation(new M(-30,-30),25);return}else{o.adjustLocation(new M(0,0),25);return}let H=!1,J=!1,B=!1,$=!1;Math.round((G-z)*N)<c.width?(h=2,C.x=(G+z)/2,B=!0):(C.x>G-L&&(C.x=G-L,H=!0),C.x<z+L&&(C.x=z+L,H=!0)),Math.round((Y-ne)*P)<c.height?(h=2,C.y=(Y+ne)/2,$=!0):(C.y>Y-j&&(C.y=Y-j,J=!0),C.y<ne+j&&(C.y=ne+j,J=!0),J&&(C.y=C.y/(P/N))),k.invert(),C=k.apply(C),C.x=C.x+y,C.y=C.y+T;let me=.35,De=.2,we=.2;const it=10,at=10;if(we*f>100&&(we=100/f),me*d>150&&(me=150/d),De*d>150&&(De=150/d),l.limitedLocationX&&l.screenWd==f&&l.screenHt==d&&(we=0),l.limitedLocationY&&l.screenWd==f&&l.screenHt==d&&(me=0,De=0),c.width=c.width*(1-we*2),c.height=c.height*(1-(me+De)),c.width<it&&(c.width=it),c.height<at&&(c.height=at),me+De>0?(c.x+=-c.width/2,c.y+=-c.height*(De/(me+De))):(c.x+=-c.width/2,c.y+=-c.height/2),K=o.getScreenPoint(g),!K)return;if(K){K.x=K.x+r.screenOffsetX,K.y=K.y+r.screenOffsetY,g.z=h,g.x=Math.round(C.x*2)/2,g.y=Math.round(C.y*2)/2,l.location||(o.location=g,this.useOffsetScrolling?l.initializeLocation(new M(0,0,0)):l.initializeLocation(g));const bt=o.getScreenPoint(g),At=new M(0,0,0);bt&&(At.x=bt.x,At.y=bt.y),(K.x<c.left||K.x>c.right)&&!l.centeredLocX||(K.y<c.top||K.y>c.bottom)&&!l.centeredLocY||B&&!l.centeredLocX&&l.screenWd!=f||$&&!l.centeredLocY&&l.screenHt!=d||l.roomWd!=_.width||l.roomHt!=_.height||l.screenWd!=f||l.screenHt!=d?(l.limitedLocationX=H,l.limitedLocationY=J,this.useOffsetScrolling?l.target=At:l.target=g):(H||(l.limitedLocationX=!1),J||(l.limitedLocationY=!1))}l.centeredLocX=B,l.centeredLocY=$,l.screenWd=f,l.screenHt=d,l.scale=o.scale,l.geometryUpdateId=o.updateId,l.roomWd=_.width,l.roomHt=_.height,this._sessionDataManager.isCameraFollowDisabled||(this.useOffsetScrolling?l.update(n,8):l.update(n,.5)),this.useOffsetScrolling?this.setRoomInstanceRenderingCanvasOffset(this.activeRoomId,1,new Q(-l.location.x,-l.location.y)):o.adjustLocation(l.location,25)}else l.limitedLocationX=!1,l.limitedLocationY=!1,l.centeredLocX=!1,l.centeredLocY=!1}getRoomCanvasRectangle(e,t){const i=this.getRoomInstanceRenderingCanvas(e,t);return i?new ve(0,0,i.width,i.height):null}getRoomObjectBoundingRectangle(e,t,i,n){const r=this.getRoomInstanceGeometry(e,n);if(!r)return null;const a=this.getRoomObject(e,t,i);if(!a)return null;const o=a.visualization;if(!o)return null;const l=o.getBoundingRectangle(),u=this.getRoomInstanceRenderingCanvas(e,n),c=u?u.scale:1,h=r.getScreenPoint(a.getLocation());return!h||(h.x=Math.round(h.x),h.y=Math.round(h.y),l.x=l.x*c,l.y=l.y*c,l.width=l.width*c,l.height=l.height*c,h.x=h.x*c,h.y=h.y*c,l.x+=h.x,l.y+=h.y,!u)?null:(l.x+=Math.round(u.width/2)+u.screenOffsetX,l.y+=Math.round(u.height/2)+u.screenOffsetY,l)}getCanvasBoundingRectangle(e){return this.getRoomObjectBoundingRectangle(this._activeRoomId,Le.ROOM_OBJECT_ID,U.ROOM,e)}getFurnitureFloorName(e){return this._roomContentLoader?this._roomContentLoader.getFurnitureFloorNameForTypeId(e):null}getFurnitureWallName(e,t=null){return this._roomContentLoader?this._roomContentLoader.getFurnitureWallNameForTypeId(e,t):null}getFurnitureFloorColorIndex(e){return this._roomContentLoader?this._roomContentLoader.getFurnitureFloorColorIndex(e):null}getFurnitureWallColorIndex(e){return this._roomContentLoader?this._roomContentLoader.getFurnitureWallColorIndex(e):null}getRoomInstanceData(e){const t=this._roomInstanceDatas.get(e);if(t)return t;const i=new tTe(e);return this._roomInstanceDatas.set(i.roomId,i),i}getRoomInstanceModelName(e){const t=this.getRoomInstanceData(e);return t?t.modelName:null}setRoomInstanceModelName(e,t){const i=this.getRoomInstanceData(e);i&&i.setModelName(t)}getRoomTileObjectMap(e){const t=this.getRoomInstanceData(e);return t?t.tileObjectMap:null}getCurrentRoomCamera(){return this.getRoomCamera(this._activeRoomId)}getRoomCamera(e){const t=this.getRoomInstanceData(e);return t?t.roomCamera:null}getSelectedRoomObjectData(e){const t=this.getRoomInstanceData(e);return t?t.selectedObject:null}setSelectedRoomObjectData(e,t){const i=this.getRoomInstanceData(e);if(!i)return null;i.setSelectedObject(t),t&&i.setPlacedObject(null)}getPlacedRoomObjectData(e){const t=this.getRoomInstanceData(e);return t?t.placedObject:null}setPlacedRoomObjectData(e,t){const i=this.getRoomInstanceData(e);if(!i)return null;i.setPlacedObject(t)}cancelRoomObjectPlacement(){this._roomObjectEventHandler&&this._roomObjectEventHandler.cancelRoomObjectPlacement(this._activeRoomId)}getFurnitureStackingHeightMap(e){const t=this.getRoomInstanceData(e);return t?t.furnitureStackingHeightMap:null}setFurnitureStackingHeightMap(e,t){const i=this.getRoomInstanceData(e);if(!i)return null;i.setFurnitureStackingHeightMap(t)}getLegacyWallGeometry(e){const t=this.getRoomInstanceData(e);return t?t.legacyGeometry:null}createRoomObjectAndInitialize(e,t,i,n){const r=this.getRoomInstance(e);return r?r.createRoomObjectAndInitalize(t,i,n):null}getTotalObjectsForManager(e,t){const i=this.getRoomInstance(e);return i?i.getTotalObjectsForManager(t):0}getRoomObject(e,t,i){if(!this._ready)return null;let n=this.getRoomId(e);return e===0&&(n=Le.TEMPORARY_ROOM),this.getObject(n,t,i)}getObject(e,t,i){let n=null;if(this._roomManager&&(n=this._roomManager.getRoomInstance(e)),!n)return null;let r=n.getRoomObject(t,i);if(!r)switch(i){case U.FLOOR:this.processPendingFurnitureFloor(this.getRoomIdFromString(e),t,null),r=n.getRoomObject(t,i);break;case U.WALL:this.processPendingFurnitureWall(this.getRoomIdFromString(e),t,null),r=n.getRoomObject(t,i);break}return r}getRoomObjectByIndex(e,t,i){const n=this.getRoomInstance(e);return n?n.getRoomObjectByIndex(t,i):null}getRoomObjectCategoryForType(e){return!e||!this._roomContentLoader?U.MINIMUM:this._roomContentLoader.getCategoryForType(e)}getRoomObjectCursor(e){return this.getObject(this.getRoomId(e),Le.CURSOR_OBJECT_ID,U.CURSOR)}getRoomObjectSelectionArrow(e){return this.getObject(this.getRoomId(e),Le.ARROW_OBJECT_ID,U.CURSOR)}getRoomOwnObject(e){return this.getObject(this.getRoomId(e),Le.ROOM_OBJECT_ID,U.ROOM)}getRoomObjectUser(e,t){return this.getObject(this.getRoomId(e),t,U.UNIT)}removeRoomObjectUser(e,t){return this.removeRoomObject(e,t,U.UNIT)}createRoomObjectUser(e,t,i){return this.createRoomObjectAndInitialize(e,t,i,U.UNIT)}getRoomObjectFloor(e,t){return this.getObject(this.getRoomId(e),t,U.FLOOR)}createRoomObjectFloor(e,t,i){return this.createRoomObjectAndInitialize(e,t,i,U.FLOOR)}removeRoomObjectFloor(e,t,i=-1,n=!1){const r=this.getRoomInstanceData(e);if(r&&r.removePendingFunitureFloor(t),this._sessionDataManager&&i===this._sessionDataManager.userId&&!zv.isBuilderClubId(t)){const a=this.getRoomObject(e,t,U.FLOOR);if(a){const o=this.getRoomObjectScreenLocation(e,t,U.FLOOR,this._activeRoomActiveCanvas);if(o&&!(a.model.getValue(b.FURNITURE_DISABLE_PICKING_ANIMATION)===1)){const u=a.model.getValue(b.FURNITURE_TYPE_ID),c=a.model.getValue(b.FURNITURE_EXTRAS),h=a.model.getValue(b.FURNITURE_DATA_FORMAT),f=No.getData(h),d=this.getFurnitureFloorIcon(u,null,c,f).data;if(d){const _=St.generateImage(d);if(this.events){const g=new qm(_,o.x,o.y);g.iconName=jm.INVENTORY,this.events.dispatchEvent(g)}}}}}this.removeRoomObject(e,t,U.FLOOR),this.setMouseDefault(e,U.FLOOR,t),n&&this.refreshTileObjectMap(e,"RoomEngine.disposeObjectFurniture()")}getRoomObjectWall(e,t){return this.getObject(this.getRoomId(e),t,U.WALL)}removeRoomObjectWall(e,t,i=-1){if(this._sessionDataManager&&i===this._sessionDataManager.userId&&!zv.isBuilderClubId(t)){const n=this.getRoomObject(e,t,U.WALL);if(n&&n.type.indexOf("post_it")===-1&&n.type.indexOf("external_image_wallitem")===-1){const r=this.getRoomObjectScreenLocation(e,t,U.WALL,this._activeRoomActiveCanvas);if(r){const a=n.model.getValue(b.FURNITURE_TYPE_ID),o=n.model.getValue(b.FURNITURE_DATA),l=this.getFurnitureWallIcon(a,null,o).data;if(l){const u=St.generateImage(l);if(this.events){const c=new qm(u,r.x,r.y);c.iconName=jm.INVENTORY,this.events.dispatchEvent(c)}}}}}this.removeRoomObject(e,t,U.WALL),this.updateRoomObjectMask(e,t,!1),this.setMouseDefault(e,U.WALL,t)}createRoomObjectWall(e,t,i){return this.createRoomObjectAndInitialize(e,t,i,U.WALL)}removeRoomObject(e,t,i){const n=this.getRoomInstance(e);if(!n)return null;n.removeRoomObject(t,i),this.events&&this.events.dispatchEvent(new Se(Se.REMOVED,e,t,i))}addFurnitureFloor(e,t,i,n,r,a,o,l=NaN,u=-1,c=0,h=0,f="",d=!0,_=!0,g=-1){const p=this.getRoomInstanceData(e);if(!p)return!1;const m=new mT(t,i,null,n,r,a,o,l,u,c,h,f,d,_,g);return p.addPendingFurnitureFloor(m),!0}addFurnitureFloorByTypeName(e,t,i,n,r,a,o,l=NaN,u=-1,c=0,h=0,f="",d=!0,_=!0,g=-1){const p=this.getRoomInstanceData(e);if(!p)return!1;const m=new mT(t,0,i,n,r,a,o,l,u,c,h,f,d,_,g);return p.addPendingFurnitureFloor(m),!0}addFurnitureWall(e,t,i,n,r,a,o,l=-1,u=0,c=0,h="",f=!0){const d=this.getRoomInstanceData(e);if(!d)return!1;const _=new ps;_.setString(o);const g=new mT(t,i,null,n,r,a,_,NaN,l,u,c,h,!0,f);return d.addPendingFurnitureWall(g),!0}updateRoomObjectFloor(e,t,i,n,r,a,o=null){const l=this.getRoomObjectFloor(e,t);return l?(l.processUpdateMessage(new ui(i,n)),l.processUpdateMessage(new ht(r,a,o)),!0):!1}updateRoomObjectWall(e,t,i,n,r,a=null){const o=this.getRoomObjectWall(e,t);if(!o||!o.logic)return!1;const l=new ui(i,n),u=new ps,c=new ht(r,u);return u.setString(a),o.logic.processUpdateMessage(l),o.logic.processUpdateMessage(c),this.updateRoomObjectMask(e,t),!0}updateRoomObjectWallItemData(e,t,i){const n=this.getRoomObjectWall(e,t);return!n||!n.logic?!1:(n.logic.processUpdateMessage(new Hw(i)),!0)}updateRoomObjectFloorHeight(e,t,i){const n=this.getRoomObjectFloor(e,t);return n?(n.processUpdateMessage(new T5(null,null,i)),!0):!1}updateRoomObjectFloorExpiration(e,t,i){const n=this.getRoomObjectFloor(e,t);return n?(n.model.setValue(b.FURNITURE_EXPIRY_TIME,i),n.model.setValue(b.FURNITURE_EXPIRTY_TIMESTAMP,Pe()),!0):!1}updateRoomObjectWallExpiration(e,t,i){const n=this.getRoomObjectWall(e,t);return n?(n.model.setValue(b.FURNITURE_EXPIRY_TIME,i),n.model.setValue(b.FURNITURE_EXPIRTY_TIMESTAMP,Pe()),!0):!1}updateRoomObjectMask(e,t,i=!0){const n=U.WALL+"_"+t,r=this.getRoomObjectWall(e,t);let a=null;if(r&&r.model){if(r.model.getValue(b.FURNITURE_USES_PLANE_MASK)>0){const l=r.model.getValue(b.FURNITURE_PLANE_MASK_TYPE),u=r.getLocation();i?a=new $i($i.ADD_MASK,n,l,u):a=new $i($i.REMOVE_MASK,n)}}else a=new $i($i.REMOVE_MASK,n);const o=this.getRoomOwnObject(e);o&&o.logic&&a&&o.logic.processUpdateMessage(a)}rollRoomObjectFloor(e,t,i,n){const r=this.getRoomObjectFloor(e,t);r&&r.processUpdateMessage(new Xo(i,n,null,!!n))}updateRoomObjectWallLocation(e,t,i){const n=this.getRoomObjectWall(e,t);return n?(n.logic&&n.logic.processUpdateMessage(new Xo(i,null,null)),this.updateRoomObjectMask(e,t),!0):!1}getFurniLocation(e,t,i){return i?this.getRoomObjectWall(e,t).getLocation().toString():this.getRoomObjectFloor(e,t).getLocation().toString()}getFurniDirection(e,t,i){return i?this.getRoomObjectWall(e,t).getDirection().toString():this.getRoomObjectFloor(e,t).getDirection().toString()}getFurniState(e,t,i){return i?this.getRoomObjectWall(e,t).getState():this.getRoomObjectFloor(e,t).getState()}addRoomObjectUser(e,t,i,n,r,a,o){if(this.getRoomObjectUser(e,t))return!1;let u=tt.getTypeString(a);u===tt.PET&&(u=this.getPetType(o));const c=this.createRoomObjectUser(e,t,u);return c?(c.processUpdateMessage(new Mv(this.fixedUserLocation(e,i),null,n,r,!1,0)),o&&c.processUpdateMessage(new wv(o)),this.events&&this.events.dispatchEvent(new Se(Se.ADDED,e,t,U.UNIT)),!0):!1}updateRoomObjectUserLocation(e,t,i,n,r=!1,a=0,o=null,l=NaN){const u=this.getRoomObjectUser(e,t);if(!u)return!1;i||(i=u.getLocation()),o||(o=u.getDirection()),isNaN(l)&&(l=u.model.getValue(b.HEAD_DIRECTION)),u.processUpdateMessage(new Mv(this.fixedUserLocation(e,i),this.fixedUserLocation(e,n),o,l,r,a));const c=this._roomSessionManager&&this._roomSessionManager.getSession(e)||null;return c&&c.ownRoomIndex===t&&this._logicFactory.events.dispatchEvent(new Yc(Yc.ROAME_MOVE_TO,n)),!0}fixedUserLocation(e,t){if(!t)return null;const i=this.getFurnitureStackingHeightMap(e),n=this.getLegacyWallGeometry(e);if(!i||!n)return t;let r=t.z;const a=i.getTileHeight(t.x,t.y),o=n.getHeight(t.x,t.y);return Math.abs(r-a)<.1&&Math.abs(a-o)<.1&&(r=n.getFloorAltitude(t.x,t.y)),new M(t.x,t.y,r)}updateRoomObjectUserAction(e,t,i,n,r=null){const a=this.getRoomObjectUser(e,t);if(!a)return!1;let o=null;switch(i){case b.FIGURE_TALK:o=new Vw(n);break;case b.FIGURE_SLEEP:o=new zw(n===1);break;case b.FIGURE_IS_TYPING:o=new E5(n===1);break;case b.FIGURE_IS_MUTED:o=new d5(n===1);break;case b.FIGURE_CARRY_OBJECT:o=new a5(n,r);break;case b.FIGURE_USE_OBJECT:o=new y5(n);break;case b.FIGURE_DANCE:o=new o5(n);break;case b.FIGURE_GAINED_EXPERIENCE:o=new u5(n);break;case b.FIGURE_NUMBER_VALUE:o=new p5(n);break;case b.FIGURE_SIGN:o=new v5(n);break;case b.FIGURE_EXPRESSION:o=new h5(n);break;case b.FIGURE_IS_PLAYING_GAME:o=new m5(n===1);break;case b.FIGURE_GUIDE_STATUS:o=new ZEe(n);break}return o?(a.processUpdateMessage(o),!0):!1}updateRoomObjectUserFigure(e,t,i,n=null,r=null,a=!1){const o=this.getRoomObjectUser(e,t);return o?(o.processUpdateMessage(new wv(i,n,r,a)),!0):!1}updateRoomObjectUserFlatControl(e,t,i){const n=this.getRoomObjectUser(e,t);return n?(n.processUpdateMessage(new c5(parseInt(i))),!0):!1}updateRoomObjectUserEffect(e,t,i,n=0){const r=this.getRoomObjectUser(e,t);return r?(r.processUpdateMessage(new l5(i,n)),!0):!1}updateRoomObjectUserGesture(e,t,i){const n=this.getRoomObjectUser(e,t);return n?(n.processUpdateMessage(new f5(i)),!0):!1}updateRoomObjectUserPetGesture(e,t,i){const n=this.getRoomObjectUser(e,t);return n?(n.processUpdateMessage(new g5(i)),!0):!1}updateRoomObjectUserPosture(e,t,i,n=null){const r=this.getRoomObjectUser(e,t);return r?(r.processUpdateMessage(new jw(i,n)),!0):!1}updateRoomObjectUserOwn(e,t){const i=this.getRoomObjectUser(e,t);i&&i.processUpdateMessage(new _5)}useRoomObject(e,t){const i=this.getRoomObject(this._activeRoomId,e,t);if(i){const n=i.logic;if(n)return n.useObject(),!0}return!1}objectInitialized(e,t,i){const n=this.getRoomIdFromString(e);i===U.WALL&&this.updateRoomObjectMask(n,t);const r=this.getRoomObject(n,t,i);if(r&&r.model&&r.logic){const a=r.model.getValue(b.FURNITURE_DATA_FORMAT);if(!isNaN(a)){const o=No.getData(a);o.initializeFromRoomObjectModel(r.model),r.processUpdateMessage(new ht(r.getState(0),o))}this.events.dispatchEvent(new Se(Se.CONTENT_UPDATED,n,t,i))}e!==Le.TEMPORARY_ROOM&&this.addObjectToTileMap(n,r)}changeObjectModelData(e,t,i,n,r){const a=this.getObject(this.getRoomId(e),t,i);if(!a||!a.logic)return!1;const o=new I5(n,r);return a.processUpdateMessage(o),!0}changeObjectState(e,t,i){const n=this.getObject(this.getRoomId(e),t,i);if(!n||!n.model)return;let r=n.model.getValue(b.FURNITURE_AUTOMATIC_STATE_INDEX);isNaN(r)?r=1:r=r+1,n.model.setValue(b.FURNITURE_AUTOMATIC_STATE_INDEX,r);const a=n.model.getValue(b.FURNITURE_DATA_FORMAT),o=No.getData(a);o.initializeFromRoomObjectModel(n.model),n.logic&&n.logic.processUpdateMessage(new ht(r,o))}loadRoomObjectBadgeImage(e,t,i,n,r=!0){if(!this._sessionDataManager)return;let a=null;if(e===0){const l=this._roomManager.getRoomInstance(Le.TEMPORARY_ROOM);l&&(a=l.getRoomObject(t,i))}else a=this.getRoomObjectFloor(e,t);if(!a||!a.logic)return;let o=r?this._sessionDataManager.loadGroupBadgeImage(n):this._sessionDataManager.loadBadgeImage(n);if(o)this.putBadgeInObjectAssets(a,n,r);else{o="loading_icon",this._badgeListenerObjects||(this._badgeListenerObjects=new Map),this._badgeListenerObjects.size||this._sessionDataManager.events.addEventListener(Xc.IMAGE_READY,this.onBadgeImageReadyEvent);let l=this._badgeListenerObjects.get(n);l||(l=[]),l.push(new iTe(a,r)),this._badgeListenerObjects.set(n,l)}a.logic.processUpdateMessage(new Gu(n,o))}onBadgeImageReadyEvent(e){if(!this._sessionDataManager)return;const t=this._badgeListenerObjects&&this._badgeListenerObjects.get(e.badgeId);if(t){for(const i of t){if(!i)continue;this.putBadgeInObjectAssets(i.object,e.badgeId,i.groupBadge);const n=i.groupBadge?this._sessionDataManager.loadGroupBadgeImage(e.badgeId):this._sessionDataManager.loadBadgeImage(e.badgeId);i.object&&i.object.logic&&i.object.logic.processUpdateMessage(new Gu(e.badgeId,n))}this._badgeListenerObjects.delete(e.badgeId),this._badgeListenerObjects.size||this._sessionDataManager.events.removeEventListener(Xc.IMAGE_READY,this.onBadgeImageReadyEvent)}}putBadgeInObjectAssets(e,t,i=!1){if(!this._roomContentLoader||!this._sessionDataManager)return;const n=i?this._sessionDataManager.loadGroupBadgeImage(t):this._sessionDataManager.loadBadgeImage(t),r=i?this._sessionDataManager.getGroupBadgeImage(t):this._sessionDataManager.getBadgeImage(t);r&&this._roomContentLoader.addAssetToCollection(e.type,n,r,!1)}dispatchMouseEvent(e,t,i,n,r,a,o,l){const u=this.getRoomInstanceRenderingCanvas(this._activeRoomId,e);if(!u)return;const c=this.getRenderingCanvasOverlay(u),h=this.getOverlayIconSprite(c,Le.OBJECT_ICON_SPRITE);if(h){const f=h.getLocalBounds();h.x=t-f.width/2,h.y=i-f.height/2}if(!this.handleRoomDragging(u,t,i,n,r,a,o)&&!u.handleMouseEvent(t,i,n,r,a,o,l)){let f=null;n===ue.MOUSE_CLICK?(this.events&&this.events.dispatchEvent(new Se(Se.DESELECTED,this._activeRoomId,-1,U.MINIMUM)),f=Ee.CLICK):n===ue.MOUSE_MOVE?f=Ee.MOUSE_MOVE:n===ue.MOUSE_DOWN?f=Ee.MOUSE_DOWN:n===ue.MOUSE_DOWN_LONG?f=Ee.MOUSE_DOWN_LONG:n===ue.MOUSE_UP&&(f=Ee.MOUSE_UP),this._roomObjectEventHandler.handleRoomObjectEvent(new Ee(f,this.getRoomObject(this._activeRoomId,Le.ROOM_OBJECT_ID,U.ROOM),null,r),this._activeRoomId)}this._activeRoomActiveCanvas=e,this._activeRoomActiveCanvasMouseX=t,this._activeRoomActiveCanvasMouseY=i}handleRoomDragging(e,t,i,n,r,a,o){let l=t-this._activeRoomActiveCanvasMouseX,u=i-this._activeRoomActiveCanvasMouseY;if(n===ue.MOUSE_DOWN)!r&&!a&&!o&&!this.isDecorating&&this._roomAllowsDragging&&(this._activeRoomIsDragged=!0,this._activeRoomWasDragged=!1,this._activeRoomDragStartX=this._activeRoomActiveCanvasMouseX,this._activeRoomDragStartY=this._activeRoomActiveCanvasMouseY);else if(n===ue.MOUSE_UP){if(this._activeRoomIsDragged&&(this._activeRoomIsDragged=!1,this._activeRoomWasDragged)){const c=this.getRoomInstanceData(this._activeRoomId);if(c){const h=c.roomCamera;h&&(this.useOffsetScrolling&&(h.isMoving||(h.centeredLocX=!1,h.centeredLocY=!1),h.resetLocation(new M(-e.screenOffsetX,-e.screenOffsetY))),this._roomDraggingAlwaysCenters&&h.reset())}}}else if(n===ue.MOUSE_MOVE)this._activeRoomIsDragged&&(this._activeRoomWasDragged||(l=t-this._activeRoomDragStartX,u=i-this._activeRoomDragStartY,(l<=-Le.DRAG_THRESHOLD||l>=Le.DRAG_THRESHOLD||u<=-Le.DRAG_THRESHOLD||u>=Le.DRAG_THRESHOLD)&&(this._activeRoomWasDragged=!0),l=0,u=0),(l!=0||u!=0)&&(this._activeRoomDragX+=l,this._activeRoomDragY+=u,this._activeRoomWasDragged=!0));else if((n===ue.MOUSE_CLICK||n===ue.DOUBLE_CLICK)&&(this._activeRoomIsDragged=!1,this._activeRoomWasDragged))return this._activeRoomWasDragged=!1,!0;return!1}updateMousePointer(e,t,i){const n=this.getRoomObjectCategoryForType(i);switch(e){case X.MOUSE_BUTTON:this.setMouseButton(this._activeRoomId,n,t);return;default:this.setMouseDefault(this._activeRoomId,n,t);return}}setMouseButton(e,t,i){if(!this._roomSessionManager)return;const n=this._roomSessionManager.getSession(e);if(n&&(t!==U.FLOOR&&t!==U.WALL||n.controllerLevel>=Sa.GUEST)){const r=this.getRoomInstanceData(e);r&&r.addButtonMouseCursorOwner(t+"_"+i)&&(this._mouseCursorUpdate=!0)}}setMouseDefault(e,t,i){if(!this._roomSessionManager)return;const n=this.getRoomInstanceData(e);n&&n.removeButtonMouseCursorOwner(t+"_"+i)&&(this._mouseCursorUpdate=!0)}processRoomObjectOperation(e,t,i){if(!this._roomObjectEventHandler)return!1;this._roomObjectEventHandler.modifyRoomObject(this._activeRoomId,e,t,i)}modifyRoomObjectDataWithMap(e,t,i,n){if(!this._roomObjectEventHandler)return!1;t===U.FLOOR&&this._roomObjectEventHandler.modifyRoomObjectDataWithMap(this._activeRoomId,e,t,i,n)}modifyRoomObjectData(e,t,i,n){if(!this._roomObjectEventHandler)return!1;t===U.WALL&&this._roomObjectEventHandler.modifyWallItemData(this._activeRoomId,e,i,n)}processRoomObjectEvent(e){if(!this._roomObjectEventHandler)return;const t=this.getRoomObjectRoomId(e.object);if(!t)return;const i=this.getRoomIdFromString(t);this._roomObjectEventHandler.handleRoomObjectEvent(e,i)}processRoomObjectPlacement(e,t,i,n,r=null,a=null,o=-1,l=-1,u=null){const c=this.getRoomInstance(this._activeRoomId);return!c||c.model.getValue(Qt.ROOM_IS_PUBLIC)!==0||!this._roomObjectEventHandler?!1:this._roomObjectEventHandler.processRoomObjectPlacement(e,this._activeRoomId,t,i,n,r,a,o,l,u)}getRoomObjectScreenLocation(e,t,i,n=-1){n==-1&&(n=this._activeRoomActiveCanvas);const r=this.getRoomInstanceGeometry(e,n);if(!r)return null;const a=this.getRoomObject(e,t,i);if(!a)return null;const o=r.getScreenPoint(a.getLocation());if(!o)return null;const l=this.getRoomInstanceRenderingCanvas(e,n);return l?(o.x=o.x*l.scale,o.y=o.y*l.scale,o.x+=l.width/2+l.screenOffsetX,o.y+=l.height/2+l.screenOffsetY,o.x=Math.round(o.x),o.y=Math.round(o.y),o):null}selectRoomObject(e,t,i){this._roomObjectEventHandler&&this._roomObjectEventHandler.setSelectedObject(e,t,i)}setSelectedAvatar(e,t){this._roomObjectEventHandler||this._roomObjectEventHandler.setSelectedAvatar(e,t,!0)}cancelRoomObjectInsert(){this._roomObjectEventHandler&&this._roomObjectEventHandler.cancelRoomObjectInsert(this._activeRoomId)}addOverlayIconSprite(e,t,i,n=1){if(!e||!i)return;let r=this.getOverlayIconSprite(e,t);return r?null:(r=new kt(i),r.name=t,r.scale.set(n),e.addChild(r),r)}onRoomContentLoaded(e,t,i){if(!this._roomContentLoader||e===-1)return;this._thumbnailObjectIdBank.freeNumber(e-1);const n=this._thumbnailCallbacks.get(t);if(n){this._thumbnailCallbacks.delete(t);const r=this._roomContentLoader.getImage(t);if(r)for(const a of n)a&&a.imageReady(e,null,r)}}setObjectMoverIconSprite(e,t,i,n=null,r=null,a=-1,o=-1,l=null){let u=null,c=0,h=null;const f=1;if(i)h=this.getRoomObjectImage(this._activeRoomId,e,t,new M,1,null);else if(this._roomContentLoader)if(t===U.FLOOR?(u=this._roomContentLoader.getFurnitureFloorNameForTypeId(e),c=this._roomContentLoader.getFurnitureFloorColorIndex(e)):t===U.WALL&&(u=this._roomContentLoader.getFurnitureWallNameForTypeId(e,n),c=this._roomContentLoader.getFurnitureWallColorIndex(e)),t===U.UNIT)if(u=tt.getTypeString(e),u==="pet"){u=this.getPetType(n);const p=new Hv(n);h=this.getRoomObjectPetImage(p.typeId,p.paletteId,p.color,new M(180),64,null,!0,0,p.customParts,l)}else h=this.getGenericRoomObjectImage(u,n,new M(180),64,null,0,null,r,a,o,l);else h=this.getGenericRoomObjectImage(u,c.toString(),new M,1,null,0,n,r,a,o,l);if(!h||!h.data)return;const d=this.getActiveRoomInstanceRenderingCanvas();if(!d)return;const _=this.getRenderingCanvasOverlay(d);this.removeOverlayIconSprite(_,Le.OBJECT_ICON_SPRITE);const g=this.addOverlayIconSprite(_,Le.OBJECT_ICON_SPRITE,h.data,f);g&&(g.x=this._activeRoomActiveCanvasMouseX-h.data.width/2,g.y=this._activeRoomActiveCanvasMouseY-h.data.height/2)}getRoomObjectImage(e,t,i,n,r,a,o=0){if(!this._roomManager)return null;let l=-1,u=null,c=null,h="",f=null;const d=this.getRoomId(e),_=this._roomManager.getRoomInstance(d);if(_){const g=_.getRoomObject(t,i);if(g&&g.model)switch(l=g.id,u=g.type,i){case U.FLOOR:case U.WALL:{h=g.model.getValue(b.FURNITURE_COLOR).toString(),f=g.model.getValue(b.FURNITURE_EXTRAS);const p=g.model.getValue(b.FURNITURE_DATA_FORMAT);p!==ps.FORMAT_KEY&&(c=No.getData(p),c.initializeFromRoomObjectModel(g.model));break}case U.UNIT:h=g.model.getValue(b.FIGURE);break}}return this.getGenericRoomObjectImage(u,h,n,r,a,o,f,c,-1,-1,null,l)}getFurnitureFloorIconUrl(e){let t=null,i="";return this._roomContentLoader?(t=this._roomContentLoader.getFurnitureFloorNameForTypeId(e),i=this._roomContentLoader.getFurnitureFloorColorIndex(e).toString(),this._roomContentLoader.getAssetIconUrl(t,i)):null}getFurnitureFloorIcon(e,t,i=null,n=null){return this.getFurnitureFloorImage(e,new M,1,t,0,i,-1,-1,n)}getFurnitureWallIconUrl(e,t=null){let i=null,n="";return this._roomContentLoader?(i=this._roomContentLoader.getFurnitureWallNameForTypeId(e,t),n=this._roomContentLoader.getFurnitureWallColorIndex(e).toString(),this._roomContentLoader.getAssetIconUrl(i,n)):null}getFurnitureWallIcon(e,t,i=null){return this.getFurnitureWallImage(e,new M,1,t,0,i)}getFurnitureFloorImage(e,t,i,n,r=0,a=null,o=-1,l=-1,u=null){let c=null,h="";return this._roomContentLoader&&(c=this._roomContentLoader.getFurnitureFloorNameForTypeId(e),h=this._roomContentLoader.getFurnitureFloorColorIndex(e).toString()),i===1&&n?this.getGenericRoomObjectThumbnail(c,h,n,a,u):this.getGenericRoomObjectImage(c,h,t,i,n,r,a,u,o,l)}getFurnitureWallImage(e,t,i,n,r=0,a=null,o=-1,l=-1){let u=null,c="";return this._roomContentLoader&&(u=this._roomContentLoader.getFurnitureWallNameForTypeId(e),c=this._roomContentLoader.getFurnitureWallColorIndex(e).toString()),i===1&&n?this.getGenericRoomObjectThumbnail(u,c,n,a,null):this.getGenericRoomObjectImage(u,c,t,i,n,r,a,null,o,l)}getRoomObjectPetImage(e,t,i,n,r,a,o=!1,l=0,u=null,c=null){let h=null,f=e+" "+t+" "+i.toString(16);if(o&&(f=f+" head"),u){f=f+(" "+u.length);for(const d of u)f=f+(" "+d.layerId+" "+d.partId+" "+d.paletteId)}return this._roomContentLoader&&(h=this._roomContentLoader.getPetNameForType(e)),this.getGenericRoomObjectImage(h,f,n,r,a,l,null,null,-1,-1,c)}getGenericRoomObjectImage(e,t,i,n,r,a=0,o=null,l=null,u=-1,c=-1,h=null,f=-1){if(!this._roomManager)return null;const d=new sk;if(d.id=-1,!this._ready||!e)return d;let _=this._roomManager.getRoomInstance(Le.TEMPORARY_ROOM);if(!_&&(_=this._roomManager.createRoomInstance(Le.TEMPORARY_ROOM),!_))return d;let g=this._imageObjectIdBank.reserveNumber();const p=this.getRoomObjectCategoryForType(e);if(g<0)return d;g++;const m=_.createRoomObjectAndInitalize(g,e,p);if(!m||!m.model||!m.logic)return d;const v=m.model;switch(p){case U.FLOOR:case U.WALL:v.setValue(b.FURNITURE_COLOR,parseInt(t)),v.setValue(b.FURNITURE_EXTRAS,o);break;case U.UNIT:if(e===tt.USER||e===tt.BOT||e===tt.RENTABLE_BOT||e===tt.PET)v.setValue(b.FIGURE,t);else{const w=new Hv(t);v.setValue(b.PET_PALETTE_INDEX,w.paletteId),v.setValue(b.PET_COLOR,w.color),w.headOnly&&v.setValue(b.PET_HEAD_ONLY,1),w.hasCustomParts&&(v.setValue(b.PET_CUSTOM_LAYER_IDS,w.customLayerIds),v.setValue(b.PET_CUSTOM_PARTS_IDS,w.customPartIds),v.setValue(b.PET_CUSTOM_PALETTE_IDS,w.customPaletteIds)),h&&v.setValue(b.FIGURE_POSTURE,h)}break}m.setDirection(i);const E=m.visualization;if(!E)return _.removeRoomObject(g,p),d;(u>-1||l)&&(l&&l.getLegacyString()!==""?m.logic.processUpdateMessage(new ht(parseInt(l.getLegacyString()),l)):m.logic.processUpdateMessage(new ht(u,l)));const y=new Bu(n,new M(-135,30,0),new M(11,11,5));if(E.update(y,0,!0,!1),c>0){let w=0;for(;w<c;)E.update(y,0,!0,!1),w++}const T=E.getImage(a,f);if(d.data=T,d.id=g,!this.isRoomContentTypeLoaded(e)&&r){let w=this._imageCallbacks.get(g.toString());w||(w=[],this._imageCallbacks.set(g.toString(),w)),w.push(r),v.setValue(b.IMAGE_QUERY_SCALE,n)}else _.removeRoomObject(g,p),this._imageObjectIdBank.freeNumber(g-1),d.id=0;return y.dispose(),d}getGenericRoomObjectThumbnail(e,t,i,n=null,r=null){if(!this._roomManager)return null;const a=new sk;if(a.id=-1,!this._ready||!e)return a;let o=this._roomManager.getRoomInstance(Le.TEMPORARY_ROOM);if(!o&&(o=this._roomManager.createRoomInstance(Le.TEMPORARY_ROOM),!o))return a;let l=this._thumbnailObjectIdBank.reserveNumber();if(this.getRoomObjectCategoryForType(e),l<0)return a;l++,a.id=l,a.data=null,a.image=null;const u=[e,t].join("_"),c=this._roomContentLoader.getImage(u);if(!c&&i){let h=this._thumbnailCallbacks.get(u);h||(h=[],this._thumbnailCallbacks.set(u,h),this._roomContentLoader.downloadImage(l,e,t,null)),h.push(i)}else c&&(a.image=c),this._thumbnailObjectIdBank.freeNumber(l-1),a.id=0;return a}initalizeTemporaryObjectsByType(e,t){const i=this._roomManager.getRoomInstance(Le.TEMPORARY_ROOM);if(!i||!this._roomContentLoader)return;const n=this._roomContentLoader.getCategoryForType(e),r=i.getManager(n);let a=null,o=0;if(r&&r.objects.length){for(const l of r.objects.getValues())if(l&&l.model&&l.type===e){const u=l.id,c=l.visualization;let h=null;if(c){const d=l.model.getValue(b.IMAGE_QUERY_SCALE);a&&o!==d&&(a.dispose(),a=null),a||(o=d,a=new Bu(d,new M(-135,30,0),new M(11,11,5))),c.update(a,0,!0,!1),h=c.image}i.removeRoomObject(u,n),this._imageObjectIdBank.freeNumber(u-1);const f=this._imageCallbacks.get(u.toString());if(f){this._imageCallbacks.delete(u.toString());for(const d of f)d&&(h?d.imageReady(u,h):d.imageFailed(u))}}}a&&a.dispose()}setObjectMoverIconSpriteVisible(e){const t=this.getActiveRoomInstanceRenderingCanvas();if(!t)return;const i=this.getRenderingCanvasOverlay(t),n=this.getOverlayIconSprite(i,Le.OBJECT_ICON_SPRITE);n&&(n.visible=e)}removeObjectMoverIconSprite(){const e=this.getActiveRoomInstanceRenderingCanvas();if(!e)return;const t=this.getRenderingCanvasOverlay(e);this.removeOverlayIconSprite(t,Le.OBJECT_ICON_SPRITE)}getRenderingCanvasOverlay(e){if(!e)return null;const t=e.master;return t&&t.getChildByName(Le.OVERLAY)||null}removeOverlayIconSprite(e,t){if(!e)return!1;let i=e.children.length-1;for(;i>=0;){const n=e.getChildAt(i);if(n&&n.name===t){if(e.removeChildAt(i),n.children.length){const r=n.getChildAt(0);r.parent.removeChild(r),r.destroy()}return!0}i--}return!1}getOverlayIconSprite(e,t){if(!e)return null;let i=e.children.length-1;for(;i>=0;){const n=e.getChildAt(i);if(n&&n.name===t)return n;i--}return null}getRoomObjects(e,t){if(this._ready){const i=this.getRoomId(e),n=this._roomManager.getRoomInstance(i);if(n)return n.getRoomObjectsForCategory(t)}return[]}addObjectToTileMap(e,t){const i=this.getRoomInstanceData(e).tileObjectMap;i&&i.addRoomObject(t)}refreshTileObjectMap(e,t){const i=this.getRoomInstanceData(e).tileObjectMap;i&&i.populate(this.getRoomObjects(e,U.FLOOR))}getRenderRoomMessage(e,t,i=!1,n=!0,r=!1,a=-1){let o=null;if(a>-1?o=this.getRoomInstanceRenderingCanvas(this._activeRoomId,a):o=this.getActiveRoomInstanceRenderingCanvas(),!o)return null;r&&o.skipSpriteVisibilityChecking();let l=-1;!n&&this._roomSessionManager.getSession(this._activeRoomId)!=null&&(l=this._roomSessionManager.getSession(this._activeRoomId).ownRoomIndex);const u=new TA,c=u.getFurniData(e,o,this,l),h=u.getRoomRenderingModifiers(this),f=u.getRoomPlanes(e,o,this,t);return r&&o.resumeSpriteVisibilityChecking(),le.log(c,h,f),null}createTextureFromRoom(e,t=-1,i=null){let n=null;t>-1?n=this.getRoomInstanceRenderingCanvas(this._activeRoomId,t):n=this.getActiveRoomInstanceRenderingCanvas();let r=null;return i?r=St.generateTexture(n.master,i):r=n.getDisplayAsTexture(),r}saveTextureAsScreenshot(e,t=!1){let i=null;t?i=new pb:i=new Ov,i.assignBitmap(e),this._communication.connection.send(i)}saveBase64AsScreenshot(e,t=!1){let i=null;t?i=new pb:i=new Ov,i.assignBase64(e),this._communication.connection.send(i)}objectsInitialized(e){const t=this.getRoomIdFromString(e);this.events.dispatchEvent(new ft(ft.OBJECTS_INITIALIZED,t))}getRoomId(e){return e.toString()}getRoomIdFromString(e){if(!e)return-1;const t=e.split("_");return t.length<=0?-1:parseInt(t[0])||0}getRoomObjectRoomId(e){return!e||!e.model?null:e.model.getValue(b.OBJECT_ROOM_ID)}getRoomObjectAdUrl(e){return this._roomContentLoader.getRoomObjectAdUrl(e)}getPetTypeId(e){let t=-1;if(e){const i=e.split(" ");i.length>1&&(t=parseInt(i[0]))}return t}getPetType(e){if(!e)return null;const t=e.split(" ");if(t.length>1){const i=parseInt(t[0]);return this._roomContentLoader?this._roomContentLoader.getPetNameForType(i):"pet"}return null}isRoomContentTypeLoaded(e){return this._roomContentLoader?this._roomContentLoader.getCollection(e)!==null:!1}getPetColorResult(e,t){return this._roomContentLoader?this._roomContentLoader.getPetColorResult(e,t):null}getPetColorResultsForTag(e,t){return this._roomContentLoader?this._roomContentLoader.getPetColorResultsForTag(e,t):null}deleteRoomObject(e,t){return!this._roomObjectEventHandler||t!==U.WALL?!1:this._roomObjectEventHandler.deleteWallItem(this._activeRoomId,e)}get connection(){return this._communication.connection}get sessionDataManager(){return this._sessionDataManager}set sessionDataManager(e){this._sessionDataManager=e}get roomSessionManager(){return this._roomSessionManager}set roomSessionManager(e){this._roomSessionManager=e}get roomManager(){return this._roomManager}set roomManager(e){this._roomManager=e}get objectEventHandler(){return this._roomObjectEventHandler}get roomRendererFactory(){return this._roomRendererFactory}get visualizationFactory(){return this._visualizationFactory}get logicFactory(){return this._logicFactory}get activeRoomId(){return this._activeRoomId}get ready(){return this._ready}get roomContentLoader(){return this._roomContentLoader}get isDecorating(){if(!this._roomSessionManager)return!1;const e=this._roomSessionManager.getSession(this._activeRoomId);return e&&e.isDecorating||!1}get useOffsetScrolling(){return!0}get selectedAvatarId(){return this._roomObjectEventHandler?this._roomObjectEventHandler.selectedAvatarId:-1}getRoomObjectCount(e,t){return this._roomManager==null?0:this._roomManager.getRoomInstance(e.toString()).getRoomObjectsForCategory(t).length}};Le.ROOM_OBJECT_ID=-1,Le.ROOM_OBJECT_TYPE="room",Le.CURSOR_OBJECT_ID=-2,Le.CURSOR_OBJECT_TYPE="tile_cursor",Le.ARROW_OBJECT_ID=-3,Le.ARROW_OBJECT_TYPE="selection_arrow",Le.OVERLAY="overlay",Le.OBJECT_ICON_SPRITE="object_icon_sprite",Le.DRAG_THRESHOLD=15,Le.TEMPORARY_ROOM="temporary_room";let Z_=Le;const q=class q{constructor(e,t=1){this._previewRoomId=1,this._currentPreviewObjectType=0,this._currentPreviewObjectCategory=0,this._currentPreviewObjectData="",this._currentPreviewRectangle=null,this._currentPreviewCanvasWidth=0,this._currentPreviewCanvasHeight=0,this._currentPreviewScale=64,this._backgroundColor=305148561,this._backgroundSprite=null,this._disableUpdate=!1,this._roomEngine=e,this._planeParser=new ri,this._previewRoomId=hv.makeRoomPreviewerId(t),this._addViewOffset=new Q(0,0),this.onRoomObjectAdded=this.onRoomObjectAdded.bind(this),this.onRoomInitializedonRoomInitialized=this.onRoomInitializedonRoomInitialized.bind(this),this.isRoomEngineReady&&this._roomEngine.events&&(this._roomEngine.events.addEventListener(Se.ADDED,this.onRoomObjectAdded),this._roomEngine.events.addEventListener(Se.CONTENT_UPDATED,this.onRoomObjectAdded),this._roomEngine.events.addEventListener(ft.INITIALIZED,this.onRoomInitializedonRoomInitialized)),this.createRoomForPreview()}dispose(){this.reset(!0),this.isRoomEngineReady&&this._roomEngine.events&&(this._roomEngine.events.removeEventListener(Se.ADDED,this.onRoomObjectAdded),this._roomEngine.events.removeEventListener(Se.CONTENT_UPDATED,this.onRoomObjectAdded),this._roomEngine.events.removeEventListener(ft.INITIALIZED,this.onRoomInitializedonRoomInitialized)),this._backgroundSprite&&(this._backgroundSprite.destroy(),this._backgroundSprite=null),this._planeParser&&(this._planeParser.dispose(),this._planeParser=null)}createRoomForPreview(){if(this.isRoomEngineReady){const t=new ri;t.initializeTileMap(9,9);let i=1;for(;i<8;){let n=1;for(;n<8;)t.setTileHeight(n,i,0),n++;i++}t.initializeFromTileData(),this._roomEngine.createRoomInstance(this._previewRoomId,t.getMapData()),t.dispose()}}reset(e){this.isRoomEngineReady&&(this._roomEngine.removeRoomObjectFloor(this._previewRoomId,q.PREVIEW_OBJECT_ID),this._roomEngine.removeRoomObjectWall(this._previewRoomId,q.PREVIEW_OBJECT_ID),this._roomEngine.removeRoomObjectUser(this._previewRoomId,q.PREVIEW_OBJECT_ID),e||this.updatePreviewRoomView()),this._currentPreviewObjectCategory=U.MINIMUM}updatePreviewModel(e,t,i=!0){const n=new pv;n.flush(),n.parseModel(e,t,i);const r=this._roomEngine.getLegacyWallGeometry(this._previewRoomId);if(!r)return;this._planeParser.reset();const a=n.width,o=n.height;this._planeParser.initializeTileMap(a,o);const l=null;let u=-1,c=-1,h=0,f=0,d=0;for(;d<o;){let m=0;for(;m<a;){const v=n.getHeight(m,d);(d>0&&d<o-1||m>0&&m<a-1)&&v!=ri.TILE_BLOCKED&&l==null&&(n.getHeight(m,d-1)==ri.TILE_BLOCKED&&n.getHeight(m-1,d)==ri.TILE_BLOCKED&&n.getHeight(m,d+1)==ri.TILE_BLOCKED&&(u=m+.5,c=d,h=v,f=90),n.getHeight(m,d-1)==ri.TILE_BLOCKED&&n.getHeight(m-1,d)==ri.TILE_BLOCKED&&n.getHeight(m+1,d)==ri.TILE_BLOCKED&&(u=m,c=d+.5,h=v,f=180)),this._planeParser.setTileHeight(m,d,v),m++}d++}this._planeParser.setTileHeight(Math.floor(u),Math.floor(c),h),this._planeParser.initializeFromTileData(n.wallHeight),this._planeParser.setTileHeight(Math.floor(u),Math.floor(c),h+this._planeParser.wallHeight),r.scale=jv.DEFAULT_SCALE,r.initialize(a,o,this._planeParser.floorHeight);let _=n.height-1;for(;_>=0;){let m=n.width-1;for(;m>=0;)r.setHeight(m,_,this._planeParser.getTileHeight(m,_)),m--;_--}const g=this._planeParser.getMapData();g.doors.push({x:u,y:c,z:h,dir:f});const p=this.getRoomPreviewOwnRoomObject();p&&p.processUpdateMessage(new Nv(g))}addFurnitureIntoRoom(e,t,i=null,n=null){if(i||(i=new ps),this.isRoomEngineReady&&(this.reset(!1),this._currentPreviewObjectType=e,this._currentPreviewObjectCategory=U.FLOOR,this._currentPreviewObjectData="",this._roomEngine.addFurnitureFloor(this._previewRoomId,q.PREVIEW_OBJECT_ID,e,new M(q.PREVIEW_OBJECT_LOCATION_X,q.PREVIEW_OBJECT_LOCATION_Y,0),t,0,i,NaN,-1,0,-1,"",!0,!1))){this._previousAutomaticStateChangeTime=Pe(),this._automaticStateChange=!0;const r=this._roomEngine.getRoomObject(this._previewRoomId,q.PREVIEW_OBJECT_ID,this._currentPreviewObjectCategory);return r&&n&&r.model.setValue(b.FURNITURE_EXTRAS,n),this.updatePreviewRoomView(),q.PREVIEW_OBJECT_ID}return-1}addWallItemIntoRoom(e,t,i){if(this.isRoomEngineReady){if(this._currentPreviewObjectCategory===U.WALL&&this._currentPreviewObjectType===e&&this._currentPreviewObjectData===i)return q.PREVIEW_OBJECT_ID;if(this.reset(!1),this._currentPreviewObjectType=e,this._currentPreviewObjectCategory=U.WALL,this._currentPreviewObjectData=i,this._roomEngine.addFurnitureWall(this._previewRoomId,q.PREVIEW_OBJECT_ID,e,new M(.5,2.3,1.8),t,0,i,0,0,-1,"",!1))return this._previousAutomaticStateChangeTime=Pe(),this._automaticStateChange=!0,this.updatePreviewRoomView(),q.PREVIEW_OBJECT_ID}return-1}addAvatarIntoRoom(e,t){return this.isRoomEngineReady?(this.reset(!1),this._currentPreviewObjectType=1,this._currentPreviewObjectCategory=U.UNIT,this._currentPreviewObjectData=e,this._roomEngine.addRoomObjectUser(this._previewRoomId,q.PREVIEW_OBJECT_ID,new M(q.PREVIEW_OBJECT_LOCATION_X,q.PREVIEW_OBJECT_LOCATION_Y,0),new M(90,0,0),135,tt.getTypeNumber(tt.USER),e)&&(this._previousAutomaticStateChangeTime=Pe(),this._automaticStateChange=!0,this.updateUserGesture(1),this.updateUserEffect(t),this.updateUserPosture("std")),this.updatePreviewRoomView(),q.PREVIEW_OBJECT_ID):-1}addPetIntoRoom(e){return this.isRoomEngineReady?(this.reset(!1),this._currentPreviewObjectType=1,this._currentPreviewObjectCategory=U.UNIT,this._currentPreviewObjectData=e,this._roomEngine.addRoomObjectUser(this._previewRoomId,q.PREVIEW_OBJECT_ID,new M(q.PREVIEW_OBJECT_LOCATION_X,q.PREVIEW_OBJECT_LOCATION_Y,0),new M(90,0,0),90,tt.getTypeNumber(tt.PET),e)&&(this._previousAutomaticStateChangeTime=Pe(),this._automaticStateChange=!1,this.updateUserGesture(1),this.updateUserPosture("std")),this.updatePreviewRoomView(),q.PREVIEW_OBJECT_ID):-1}updateUserPosture(e,t=""){this.isRoomEngineReady&&this._roomEngine.updateRoomObjectUserPosture(this._previewRoomId,q.PREVIEW_OBJECT_ID,e,t)}updateUserGesture(e){this.isRoomEngineReady&&this._roomEngine.updateRoomObjectUserGesture(this._previewRoomId,q.PREVIEW_OBJECT_ID,e)}updateUserEffect(e){this.isRoomEngineReady&&this._roomEngine.updateRoomObjectUserEffect(this._previewRoomId,q.PREVIEW_OBJECT_ID,e)}updateObjectUserFigure(e,t=null,i=null,n=!1){return this.isRoomEngineReady?this._roomEngine.updateRoomObjectUserFigure(this._previewRoomId,q.PREVIEW_OBJECT_ID,e,t,i,n):!1}updateObjectUserAction(e,t,i=null){this.isRoomEngineReady&&this._roomEngine.updateRoomObjectUserAction(this._previewRoomId,q.PREVIEW_OBJECT_ID,e,t,i)}updateObjectStuffData(e){this.isRoomEngineReady&&this._roomEngine.updateRoomObjectFloor(this._previewRoomId,q.PREVIEW_OBJECT_ID,null,null,e.state,e)}changeRoomObjectState(){this.isRoomEngineReady&&(this._automaticStateChange=!1,this._currentPreviewObjectCategory!==U.UNIT&&this._roomEngine.changeObjectState(this._previewRoomId,q.PREVIEW_OBJECT_ID,this._currentPreviewObjectCategory))}changeRoomObjectDirection(){if(this.isRoomEngineReady){const e=this._roomEngine.getRoomObject(this._previewRoomId,q.PREVIEW_OBJECT_ID,this._currentPreviewObjectCategory);if(!e)return;const t=this._roomEngine.objectEventHandler.getValidRoomObjectDirection(e,!0);switch(this._currentPreviewObjectCategory){case U.FLOOR:{const i=new M(q.PREVIEW_OBJECT_LOCATION_X,q.PREVIEW_OBJECT_LOCATION_Y),n=new M(t,t,t);this._roomEngine.updateRoomObjectFloor(this._previewRoomId,q.PREVIEW_OBJECT_ID,i,n,null,null);return}case U.WALL:return}}}checkAutomaticRoomObjectStateChange(){if(this._automaticStateChange){const e=Pe();e>this._previousAutomaticStateChangeTime+q.AUTOMATIC_STATE_CHANGE_INTERVAL&&(this._previousAutomaticStateChangeTime=e,this.isRoomEngineReady&&this._roomEngine.changeObjectState(this._previewRoomId,q.PREVIEW_OBJECT_ID,this._currentPreviewObjectCategory))}}getRoomCanvas(e,t){if(this.isRoomEngineReady){const i=this._roomEngine.getRoomInstanceDisplay(this._previewRoomId,q.PREVIEW_CANVAS_ID,e,t,this._currentPreviewScale);if(i&&this._backgroundColor!==null){let r=this._backgroundSprite;r||(r=new kt(Ne.WHITE),i.addChildAt(r,0)),r.width=e,r.height=t,r.tint=this._backgroundColor}this._roomEngine.setRoomInstanceRenderingCanvasMask(this._previewRoomId,q.PREVIEW_CANVAS_ID,!0);const n=this._roomEngine.getRoomInstanceGeometry(this._previewRoomId,q.PREVIEW_CANVAS_ID);return n&&n.adjustLocation(new M(q.PREVIEW_OBJECT_LOCATION_X,q.PREVIEW_OBJECT_LOCATION_Y,0),30),this._currentPreviewCanvasWidth=e,this._currentPreviewCanvasHeight=t,i}return null}modifyRoomCanvas(e,t){this.isRoomEngineReady&&(this._currentPreviewCanvasWidth=e,this._currentPreviewCanvasHeight=t,this._backgroundSprite&&(this._backgroundSprite.width=e,this._backgroundSprite.height=t),this._roomEngine.initializeRoomInstanceRenderingCanvas(this._previewRoomId,q.PREVIEW_CANVAS_ID,e,t))}set addViewOffset(e){this._addViewOffset=e}get addViewOffset(){return this._addViewOffset}updatePreviewObjectBoundingRectangle(e){const t=this._roomEngine.getRoomObjectBoundingRectangle(this._previewRoomId,q.PREVIEW_OBJECT_ID,this._currentPreviewObjectCategory,q.PREVIEW_CANVAS_ID);if(t&&e)if(t.x+=-(this._currentPreviewCanvasWidth>>1),t.y+=-(this._currentPreviewCanvasHeight>>1),t.x+=-e.x,t.y+=-e.y,!this._currentPreviewRectangle)this._currentPreviewRectangle=t;else{const i=this._currentPreviewRectangle.clone().enlarge(t);(i.width-this._currentPreviewRectangle.width>this._currentPreviewCanvasWidth-this._currentPreviewRectangle.width>>1||i.height-this._currentPreviewRectangle.height>this._currentPreviewCanvasHeight-this._currentPreviewRectangle.height>>1||this._currentPreviewRectangle.width<1||this._currentPreviewRectangle.height<1)&&(this._currentPreviewRectangle=i)}}validatePreviewSize(e){if(this._currentPreviewRectangle.width<1||this._currentPreviewRectangle.height<1)return e;if(this.isRoomEngineReady){const t=this._roomEngine.getRoomInstanceGeometry(this._previewRoomId,q.PREVIEW_CANVAS_ID);this._currentPreviewRectangle.width>this._currentPreviewCanvasWidth*(1+q.ALLOWED_IMAGE_CUT)||this._currentPreviewRectangle.height>this._currentPreviewCanvasHeight*(1+q.ALLOWED_IMAGE_CUT)?q.ZOOM_ENABLED?this._roomEngine.getRoomInstanceRenderingCanvasScale(this._previewRoomId,q.PREVIEW_CANVAS_ID)!==.5&&(this._roomEngine.setRoomInstanceRenderingCanvasScale(this._previewRoomId,q.PREVIEW_CANVAS_ID,.5,null,null),this._currentPreviewScale=q.SCALE_SMALL,this._currentPreviewNeedsZoomOut=!0,e.x=e.x>>1,e.y=e.y>>1,this._currentPreviewRectangle.x=this._currentPreviewRectangle.x>>2,this._currentPreviewRectangle.y=this._currentPreviewRectangle.y>>2,this._currentPreviewRectangle.width=this._currentPreviewRectangle.width>>2,this._currentPreviewRectangle.height=this._currentPreviewRectangle.height>>2):t.isZoomedIn()&&(t.performZoomOut(),this._currentPreviewScale=q.SCALE_SMALL,this._currentPreviewNeedsZoomOut=!0):this._currentPreviewNeedsZoomOut||(q.ZOOM_ENABLED?this._roomEngine.getRoomInstanceRenderingCanvasScale(this._previewRoomId,q.PREVIEW_CANVAS_ID)!==1&&(this._roomEngine.setRoomInstanceRenderingCanvasScale(this._previewRoomId,q.PREVIEW_CANVAS_ID,1,null,null),this._currentPreviewScale=q.SCALE_NORMAL):t.isZoomedIn()||(t.performZoomIn(),this._currentPreviewScale=q.SCALE_NORMAL))}return e}zoomIn(){this.isRoomEngineReady&&(q.ZOOM_ENABLED?this._roomEngine.setRoomInstanceRenderingCanvasScale(this._previewRoomId,q.PREVIEW_CANVAS_ID,1):this._roomEngine.getRoomInstanceGeometry(this._previewRoomId,q.PREVIEW_CANVAS_ID).performZoomIn()),this._currentPreviewScale=q.SCALE_NORMAL}zoomOut(){this.isRoomEngineReady&&(q.ZOOM_ENABLED?this._roomEngine.setRoomInstanceRenderingCanvasScale(this._previewRoomId,q.PREVIEW_CANVAS_ID,.5):this._roomEngine.getRoomInstanceGeometry(this._previewRoomId,q.PREVIEW_CANVAS_ID).performZoomOut()),this._currentPreviewScale=q.SCALE_SMALL}updateAvatarDirection(e,t){this.isRoomEngineReady&&this._roomEngine.updateRoomObjectUserLocation(this._previewRoomId,q.PREVIEW_OBJECT_ID,new M(q.PREVIEW_OBJECT_LOCATION_X,q.PREVIEW_OBJECT_LOCATION_Y,0),new M(q.PREVIEW_OBJECT_LOCATION_X,q.PREVIEW_OBJECT_LOCATION_Y,0),!1,0,new M(e*45,0,0),t*45)}updateObjectRoom(e=null,t=null,i=null,n=!1){return this.isRoomEngineReady?this._roomEngine.updateRoomInstancePlaneType(this._previewRoomId,e,t,i,n):!1}updateRoomWallsAndFloorVisibility(e,t=!0){this.isRoomEngineReady&&this._roomEngine.updateRoomInstancePlaneVisibility(this._previewRoomId,e,t)}getCanvasOffset(e){if(this._currentPreviewRectangle.width<1||this._currentPreviewRectangle.height<1)return e;let t=-(this._currentPreviewRectangle.left+this._currentPreviewRectangle.right)>>1,i=-(this._currentPreviewRectangle.top+this._currentPreviewRectangle.bottom)>>1;const n=this._currentPreviewCanvasHeight-this._currentPreviewRectangle.height>>1;n>10?i=i+Math.min(15,n-10):this._currentPreviewObjectCategory!==U.UNIT?i=i+(5-Math.max(0,n/2)):i=i-(5-Math.min(0,n/2)),i=i+this._addViewOffset.y,t=t+this._addViewOffset.x;const r=t-e.x,a=i-e.y;if(r!==0||a!==0){const o=Math.sqrt(r*r+a*a);return o>10&&(t=e.x+r*10/o,i=e.y+a*10/o),new Q(t,i)}return null}updatePreviewRoomView(e=!1){if(!(this._disableUpdate&&!e)&&(this.checkAutomaticRoomObjectStateChange(),this.isRoomEngineReady)){let t=this._roomEngine.getRoomInstanceRenderingCanvasOffset(this._previewRoomId,q.PREVIEW_CANVAS_ID);if(t&&(this.updatePreviewObjectBoundingRectangle(t),this._currentPreviewRectangle)){const i=this._currentPreviewScale;t=this.validatePreviewSize(t);const n=this.getCanvasOffset(t);n&&this._roomEngine.setRoomInstanceRenderingCanvasOffset(this._previewRoomId,q.PREVIEW_CANVAS_ID,n),this._currentPreviewScale!==i&&(this._currentPreviewRectangle=null)}}}set disableUpdate(e){this._disableUpdate=e}set disableRoomEngineUpdate(e){this.isRoomEngineReady&&this._roomEngine.disableUpdate(e)}onRoomInitializedonRoomInitialized(e){if(e)switch(e.type){case ft.INITIALIZED:e.roomId===this._previewRoomId&&this.isRoomEngineReady&&this._roomEngine.updateRoomInstancePlaneType(this._previewRoomId,"110","99999");return}}onRoomObjectAdded(e){if(e.roomId===this._previewRoomId&&e.objectId===q.PREVIEW_OBJECT_ID&&e.category===this._currentPreviewObjectCategory){this._currentPreviewRectangle=null,this._currentPreviewNeedsZoomOut=!1;const t=this._roomEngine.getRoomObject(e.roomId,e.objectId,e.category);if(t&&t.model&&e.category===U.WALL){const i=t.model.getValue(b.FURNITURE_SIZE_Z),n=t.model.getValue(b.FURNITURE_CENTER_Z);(i!==null||n!==null)&&this._roomEngine.updateRoomObjectWallLocation(e.roomId,e.objectId,new M(.5,2.3,(3.6-i)/2+n))}}}updateRoomEngine(){this.isRoomEngineReady&&this._roomEngine.runUpdate()}getRenderingCanvas(){const e=this._roomEngine.getRoomInstanceRenderingCanvas(this._previewRoomId,q.PREVIEW_CANVAS_ID);return e||null}getGenericRoomObjectImage(e,t,i,n,r,a=0,o=null,l=null,u=-1,c=-1,h=null){return this.isRoomEngineReady?this._roomEngine.getGenericRoomObjectImage(e,t,i,n,r,a,o,l,u,c,h):null}getRoomObjectImage(e,t,i,n=0){return this.isRoomEngineReady?this._roomEngine.getRoomObjectImage(this._previewRoomId,q.PREVIEW_OBJECT_ID,this._currentPreviewObjectCategory,e,t,i,n):null}getRoomObjectCurrentImage(){if(this.isRoomEngineReady){const e=this._roomEngine.getRoomObject(this._previewRoomId,q.PREVIEW_OBJECT_ID,this._currentPreviewObjectCategory);if(e&&e.visualization)return e.visualization.getImage(16777215,-1)}return null}getRoomPreviewObject(){if(this.isRoomEngineReady){const e=this._roomEngine.getRoomObject(this._previewRoomId,q.PREVIEW_OBJECT_ID,this._currentPreviewObjectCategory);if(e)return e}return null}getRoomPreviewOwnRoomObject(){if(this.isRoomEngineReady){const e=this._roomEngine.getRoomObject(this._previewRoomId,Z_.ROOM_OBJECT_ID,U.ROOM);if(e)return e}return null}get isRoomEngineReady(){return this._roomEngine&&this._roomEngine.ready}get roomId(){return this._previewRoomId}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){this._backgroundColor=e}get width(){return this._currentPreviewCanvasWidth}get height(){return this._currentPreviewCanvasHeight}};q.SCALE_NORMAL=64,q.SCALE_SMALL=32,q.PREVIEW_COUNTER=0,q.PREVIEW_CANVAS_ID=1,q.PREVIEW_OBJECT_ID=1,q.PREVIEW_OBJECT_LOCATION_X=2,q.PREVIEW_OBJECT_LOCATION_Y=2,q.ALLOWED_IMAGE_CUT=.25,q.AUTOMATIC_STATE_CHANGE_INTERVAL=2500,q.ZOOM_ENABLED=!0;let ck=q;class fk{constructor(e,t){this._image=e,this._placeHolder=t}get image(){return this._image}get placeHolder(){return this._placeHolder}}class aTe{constructor(e){this._code=e,this._parts=[]}get code(){return this._code}get parts(){return this._parts}}const Lt=class Lt{constructor(e,t=0,i=0,n=0){this.type=e,this.key=t,this.color=i,this.position=n}get code(){return this.key===0?null:Lt.getCode(this.type,this.key,this.color,this.position)}static getCode(e,t,i,n){return(e===Lt.BASE?e:t>=100?Lt.SYMBOL_ALT:Lt.SYMBOL)+(t<10?"0":"")+(e===Lt.BASE?t:t>=100?t-100:t)+(i<10?"0":"")+i+n}calculatePosition(e){const t=this.calculateGridPos(this.position);let i=Lt.CELL_WIDTH*t.x+Lt.CELL_WIDTH/2-e.width/2,n=Lt.CELL_HEIGHT*t.y+Lt.CELL_HEIGHT/2-e.height/2;return i<0&&(i=0),i+e.width>Lt.IMAGE_WIDTH&&(i=Lt.IMAGE_WIDTH-e.width),n<0&&(n=0),n+e.height>Lt.IMAGE_HEIGHT&&(n=Lt.IMAGE_HEIGHT-e.height),new Bm(Math.floor(i),Math.floor(n))}calculateGridPos(e){const t=new Bm;return t.x=Math.floor(e%3),t.y=Math.floor(e/3),t}};Lt.BASE="b",Lt.SYMBOL="s",Lt.SYMBOL_ALT="t",Lt.BASE_PART=0,Lt.LAYER_PART=1,Lt.IMAGE_WIDTH=39,Lt.IMAGE_HEIGHT=39,Lt.CELL_WIDTH=13,Lt.CELL_HEIGHT=13;let fd=Lt;const Rn=class Rn{constructor(e,t){this._assets=e,this._sessionDataManager=t,this._groupBases=new Map,this._groupSymbols=new Map,this._groupPartColors=new Map,this._requestedBadges=new Map,this._groupBadgesQueue=new Map,this._readyToGenerateGroupBadges=!1}init(){if(this._sessionDataManager&&this._sessionDataManager.communication){this._messages=[new w4(this.onGroupBadgePartsEvent.bind(this))];for(const e of this._messages)this._sessionDataManager.communication.registerMessageEvent(e)}}dispose(){if(this._messages&&this._messages.length){for(const e of this._messages)this._sessionDataManager.communication.removeMessageEvent(e);this._messages=null}this._sessionDataManager=null}getBadgeImage(e,t=Rn.NORMAL_BADGE,i=!0){let n=this.getBadgeTexture(e,t);return!n&&i&&(n=this.getBadgePlaceholder()),n}getBadgeInfo(e){const t=this.getBadgeTexture(e);return t?new fk(t,!1):new fk(this.getBadgePlaceholder(),!0)}loadBadgeImage(e,t=Rn.NORMAL_BADGE){return this._assets.getTexture(this.getBadgeUrl(e,t))?e:(this.getBadgeTexture(e,t),null)}getBadgeTexture(e,t=Rn.NORMAL_BADGE){const i=this.getBadgeUrl(e,t);if(!i||!i.length)return null;const n=this._assets.getTexture(i);if(n)return n.clone();if(t===Rn.NORMAL_BADGE){if(this._requestedBadges.get(e))return null;this._requestedBadges.set(e,!0),this._assets.downloadAsset(i).then(r=>{if(!r)return;this._requestedBadges.delete(e);const a=this._assets.getTexture(i);a&&this._sessionDataManager&&this._sessionDataManager.events.dispatchEvent(new Xc(e,a.clone()))}).catch(r=>{})}else if(t===Rn.GROUP_BADGE){if(this._groupBadgesQueue.get(e))return;this._groupBadgesQueue.set(e,!0),this._readyToGenerateGroupBadges&&this.loadGroupBadge(e)}return null}getBadgePlaceholder(){const e=Te.getValue("images.url")+"/loading_icon.png",t=this._assets.getTexture(e);return t?t.clone():null}getBadgeUrl(e,t=Rn.NORMAL_BADGE){let i=null;switch(t){case Rn.NORMAL_BADGE:i=Te.getValue("badge.asset.url").replace("%badgename%",e);break;case Rn.GROUP_BADGE:i=e;break}return i}loadGroupBadge(e){const t=new aTe(e),i=[...e.matchAll(/[b|s][0-9]{4,6}/g)];for(const n of i){const r=n[0],a=r.length===6,o=r[0],l=parseInt(r.slice(1,a?3:4)),u=parseInt(r.slice(a?3:4,a?5:6)),c=r.length<6?0:parseInt(r.slice(a?5:6,a?6:7)),h=new fd(o,l,u,c);t.parts.push(h)}this.renderGroupBadge(t)}renderGroupBadge(e){const t=new Qn,i=new kt(u4.EMPTY);i.width=fd.IMAGE_WIDTH,i.height=fd.IMAGE_HEIGHT,t.addChild(i);for(const r of e.parts){let a=!0;const o=r.type==="b"?this._groupBases.get(r.key):this._groupSymbols.get(r.key);if(o)for(const l of o){if(!l||!l.length)continue;const u=this._assets.getTexture(`badgepart_${l}`);if(!u)continue;const{x:c,y:h}=r.calculatePosition(u),f=new kt(u);f.position.set(c,h),a&&(f.tint=parseInt(this._groupPartColors.get(r.color),16)),a=!1,t.addChild(f)}}this._requestedBadges.delete(e.code),this._groupBadgesQueue.delete(e.code);const n=St.generateTexture(t);this._assets.setTexture(e.code,n),this._sessionDataManager&&this._sessionDataManager.events.dispatchEvent(new Xc(e.code,n))}onGroupBadgePartsEvent(e){if(!e)return;const t=e.getParser();if(t){t.bases.forEach((i,n)=>this._groupBases.set(n,i.map(r=>r.replace(".png","").replace(".gif","")))),t.symbols.forEach((i,n)=>this._groupSymbols.set(n,i.map(r=>r.replace(".png","").replace(".gif","")))),this._groupPartColors=t.partColors,this._readyToGenerateGroupBadges=!0;for(const i of this._groupBadgesQueue.keys())this.loadGroupBadge(i)}}get disposed(){return!!this._sessionDataManager}};Rn.GROUP_BADGE="group_badge",Rn.NORMAL_BADGE="normal_badge";let Dh=Rn;class dk{constructor(e,t,i,n,r,a,o,l,u,c,h,f,d,_,g,p,m,v,E,y,T,w,C,N,P,k,L,j,z){this._type=e,this._id=t,this._fullName=i,this._className=n,this._category=r,this._revision=l,this._tileSizeX=u,this._tileSizeY=c,this._tileSizeZ=h,this._colors=f,this._hasIndexedColor=d,this._colourIndex=_,this._localizedName=a,this._description=o,this._adUrl=g,this._purchaseOfferId=p,this._purchaseCouldBeUsedForBuyout=m,this._rentOfferId=v,this._rentCouldBeUsedForBuyout=E,this._customParams=T,this._specialType=w,this._availableForBuildersClub=y,this._canStandOn=C,this._canSitOn=N,this._canLayOn=P,this._excludedFromDynamic=k,this._furniLine=L,this._environment=j,this._rare=z}get type(){return this._type}get id(){return this._id}get className(){return this._className}set className(e){this._className=e}get fullName(){return this._fullName}get category(){return this._category}get hasIndexedColor(){return this._hasIndexedColor}get colorIndex(){return this._colourIndex}get revision(){return this._revision}get tileSizeX(){return this._tileSizeX}get tileSizeY(){return this._tileSizeY}get tileSizeZ(){return this._tileSizeZ}get colors(){return this._colors}get name(){return this._localizedName}get description(){return this._description}get adUrl(){return this._adUrl}get purchaseOfferId(){return this._purchaseOfferId}get customParams(){return this._customParams}get specialType(){return this._specialType}get rentOfferId(){return this._rentOfferId}get purchaseCouldBeUsedForBuyout(){return this._purchaseCouldBeUsedForBuyout}get rentCouldBeUsedForBuyout(){return this._rentCouldBeUsedForBuyout}get availableForBuildersClub(){return this._availableForBuildersClub}get canStandOn(){return this._canStandOn}get canSitOn(){return this._canSitOn}get canLayOn(){return this._canLayOn}get isExternalImage(){return this._className.indexOf("external_image")!==-1}get excludeDynamic(){return this._excludedFromDynamic}get furniLine(){return this._furniLine}get environment(){return this._environment}get rare(){return this._rare}}const yc=class yc extends fn{constructor(e,t,i){super(),this._floorItems=e,this._wallItems=t,this._localization=i}loadFurnitureData(e){e&&fetch(e).then(t=>t.json()).then(t=>this.onFurnitureDataLoaded(t)).catch(t=>this.onFurnitureDataError(t))}onFurnitureDataLoaded(e){e&&((typeof e.roomitemtypes>"u"||typeof e.wallitemtypes>"u")&&le.warn("Could not find `roomitemtypes` or `wallitemtypes` in furnidata."),e.roomitemtypes&&this.parseFloorItems(e.roomitemtypes),e.wallitemtypes&&this.parseWallItems(e.wallitemtypes),this.dispatchEvent(new Ye(yc.FURNITURE_DATA_READY)))}onFurnitureDataError(e){e&&(le.error(e),this.dispatchEvent(new Ye(yc.FURNITURE_DATA_ERROR)))}parseFloorItems(e){if(!(!e||!e.furnitype))for(const t of e.furnitype){if(!t)continue;const i=[];if(t.partcolors)for(const u of t.partcolors.color){let c=u;c.charAt(0)==="#"&&(c=c.replace("#","")),i.push(parseInt(c,16))}const n=t.classname.split("*"),r=n[0],a=n.length>1?parseInt(n[1]):0,o=n.length>1,l=new dk(du.FLOOR,t.id,t.classname,r,t.category,t.name,t.description,t.revision,t.xdim,t.ydim,0,i,o,a,t.adurl,t.offerid,t.buyout,t.rentofferid,t.rentbuyout,t.bc,t.customparams,t.specialtype,t.canstandon,t.cansiton,t.canlayon,t.excludeddynamic,t.furniline,t.environment,t.rare);this._floorItems.set(l.id,l),this.updateLocalizations(l)}}parseWallItems(e){if(!(!e||!e.furnitype))for(const t of e.furnitype){if(!t)continue;const i=new dk(du.WALL,t.id,t.classname,t.classname,t.category,t.name,t.description,t.revision,0,0,0,null,!1,0,t.adurl,t.offerid,t.buyout,t.rentofferid,t.rentbuyout,t.bc,null,t.specialtype,!1,!1,!1,t.excludeddynamic,t.furniline,t.environment,t.rare);this._wallItems.set(i.id,i),this.updateLocalizations(i)}}updateLocalizations(e){if(this._localization)switch(e.type){case du.FLOOR:this._localization.setValue("roomItem.name."+e.id,e.name),this._localization.setValue("roomItem.desc."+e.id,e.description);return;case du.WALL:this._localization.setValue("wallItem.name."+e.id,e.name),this._localization.setValue("wallItem.desc."+e.id,e.description);return}}};yc.FURNITURE_DATA_READY="FDP_FURNITURE_DATA_READY",yc.FURNITURE_DATA_ERROR="FDP_FURNITURE_DATA_ERROR";let dd=yc;class oTe{constructor(e){this._sessionDataManager=e,this._groupBadges=new Map}init(){if(this._sessionDataManager&&this._sessionDataManager.communication){this._messages=[new Zc(this.onRoomReadyMessageEvent.bind(this)),new vF(this.onGroupBadgesEvent.bind(this))];for(const e of this._messages)this._sessionDataManager.communication.registerMessageEvent(e)}}dispose(){if(!this.disposed){if(this._messages&&this._messages.length){for(const e of this._messages)this._sessionDataManager.communication.removeMessageEvent(e);this._messages=null}this._groupBadges=null,this._sessionDataManager=null}}onRoomReadyMessageEvent(e){this._sessionDataManager.send(new K6)}onGroupBadgesEvent(e){const t=e.getParser();for(const[i,n]of t.badges.entries())this._groupBadges.set(i,n)}getGroupBadge(e){return this._groupBadges.get(e)}get disposed(){return!!this._sessionDataManager}}const l_=class l_{};l_.NO_CLUB=0,l_.CLUB=1,l_.VIP=2;let _k=l_;class rr extends Bs{constructor(e,t){super(),this._connection=e,this._listener=t,this._roomId=0}onDispose(){this._connection=null,this._listener=null}setRoomId(e){this._roomId=e}get connection(){return this._connection}get listener(){return this._listener}get roomId(){return this._roomId}}class lTe extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new MS(this.onRoomGenericError.bind(this)))}onRoomGenericError(e){if(!(e instanceof MS))return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);if(!i)return;let n=null;switch(t.errorCode){case gR.KICKED_OUT_OF_ROOM:n=Ui.RSEME_KICKED;break;default:return}!n||n.length==0||this.listener.events.dispatchEvent(new Ui(n,i))}}class uTe extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new B4(this.onOpenPetPackageRequested.bind(this))),e.addMessageEvent(new G4(this.onOpenPetPackageResult.bind(this)))}onOpenPetPackageRequested(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener.events.dispatchEvent(new Nh(Nh.RSOPPE_OPEN_PET_PACKAGE_REQUESTED,i,t.objectId,t.figureData,0,null))}onOpenPetPackageResult(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener.events.dispatchEvent(new Nh(Nh.RSOPPE_OPEN_PET_PACKAGE_RESULT,i,t.objectId,null,t.nameValidationStatus,t.nameValidationInfo))}}class hTe extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new z4(this.onPollContentsEvent.bind(this))),e.addMessageEvent(new W4(this.onPollOfferEvent.bind(this))),e.addMessageEvent(new H4(this.onPollErrorEvent.bind(this))),e.addMessageEvent(new q4(this.onStartRoomPollEvent.bind(this)))}onPollContentsEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=new so(so.CONTENT,t,i.id);n.startMessage=i.startMessage,n.endMessage=i.endMessage,n.numQuestions=i.numQuestions,n.questionArray=i.questionArray,n.npsPoll=i.npsPoll,this.listener.events.dispatchEvent(n)}onPollOfferEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=new so(so.OFFER,t,i.id);n.summary=i.headline,n.summary=i.summary,this.listener.events.dispatchEvent(n)}onPollErrorEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t||!e.getParser())return;const n=new so(so.ERROR,t,-1);n.headline="???",n.summary="???",this.listener.events.dispatchEvent(n)}onStartRoomPollEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=new iv(iv.VOTE_QUESTION,t,i.question,i.choices);this.listener.events.dispatchEvent(n)}}class cTe extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new Lw(this.onRoomUnitChatEvent.bind(this))),e.addMessageEvent(new yv(this.onRoomUnitChatEvent.bind(this))),e.addMessageEvent(new Tv(this.onRoomUnitChatEvent.bind(this))),e.addMessageEvent(new aF(this.onRoomUnitHandItemReceivedEvent.bind(this))),e.addMessageEvent(new RF(this.onRespectReceivedEvent.bind(this))),e.addMessageEvent(new TF(this.onPetRespectNoficationEvent.bind(this))),e.addMessageEvent(new IF(this.onPetSupplementedNotificationEvent.bind(this))),e.addMessageEvent(new nF(this.onFloodControlEvent.bind(this))),e.addMessageEvent(new rF(this.onRemainingMuteEvent.bind(this)))}onRoomUnitChatEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;let n=yt.CHAT_TYPE_SPEAK;e instanceof yv?n=yt.CHAT_TYPE_SHOUT:e instanceof Tv&&(n=yt.CHAT_TYPE_WHISPER);const r=new yt(yt.CHAT_EVENT,t,i.roomIndex,i.message,n,i.bubble,i.chatColours);this.listener.events.dispatchEvent(r)}onRoomUnitHandItemReceivedEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();i&&this.listener.events.dispatchEvent(new yt(yt.CHAT_EVENT,t,i.giverUserId,"",yt.CHAT_TYPE_HAND_ITEM_RECEIVED,xl.GENERIC,null,i.handItemType))}onRespectReceivedEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=t.userDataManager.getUserData(i.userId);n&&this.listener.events.dispatchEvent(new yt(yt.CHAT_EVENT,t,n.roomIndex,"",yt.CHAT_TYPE_RESPECT,xl.GENERIC))}onPetRespectNoficationEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=t.userDataManager.getPetData(i.petData.id);if(!n)return;let r=yt.CHAT_TYPE_PETRESPECT;i.isTreat&&(r=yt.CHAT_TYPE_PETTREAT),this.listener.events.dispatchEvent(new yt(yt.CHAT_EVENT,t,n.roomIndex,"",r,xl.GENERIC))}onPetSupplementedNotificationEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=t.userDataManager.getPetData(i.petId);if(!n)return;let r=-1;const a=t.userDataManager.getUserData(i.userId);a&&(r=a.roomIndex);let o=yt.CHAT_TYPE_PETREVIVE;switch(i.supplementType){case cd.REVIVE:o=yt.CHAT_TYPE_PETREVIVE;break;case cd.REBREED_FERTILIZER:o=yt.CHAT_TYPE_PET_REBREED_FERTILIZE;break;case cd.SPEED_FERTILIZER:o=yt.CHAT_TYPE_PET_SPEED_FERTILIZE;break}this.listener.events.dispatchEvent(new yt(yt.CHAT_EVENT,t,n.roomIndex,"",o,xl.GENERIC,null,r))}onFloodControlEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=i.seconds;this.listener.events.dispatchEvent(new yt(yt.FLOOD_EVENT,t,-1,n.toString(),0,0))}onRemainingMuteEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();i&&this.listener.events.dispatchEvent(new yt(yt.CHAT_EVENT,t,t.ownRoomIndex,"",yt.CHAT_TYPE_MUTE_REMAINING,xl.GENERIC,null,i.seconds))}}class fTe extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new PS(this.onGetGuestRoomResultEvent.bind(this)))}onGetGuestRoomResultEvent(e){if(!(e instanceof PS))return;const t=e.getParser();if(!t||t.roomForward)return;const i=this.listener.getSession(this.roomId);if(!i)return;const n=t.data;i.tradeMode=n.tradeMode,i.isGuildRoom=n.habboGroupId!==0,i.doorMode=n.doorMode,i.allowPets=n.allowPets,i.moderationSettings=t.moderation,this.listener.events.dispatchEvent(new ev(ev.RSDUE_ALLOW_PETS,i)),this.listener.events.dispatchEvent(new Ae(Ae.ROOM_DATA,i))}}class dTe extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new Q4(this.onRoomDimmerPresets.bind(this)))}onRoomDimmerPresets(e){if(!e)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);if(!i)return;const n=new Zm(Zm.ROOM_DIMMER_PRESETS,i);n.selectedPresetId=t.selectedPresetId;let r=0;for(;r<t.presetCount;){const a=t.getPreset(r);a&&n.storePreset(a.id,a.type,a.color,a.brightness),r++}this.listener&&this.listener.events.dispatchEvent(n)}}class _Te extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new US(this.onRoomRightsEvent.bind(this))),e.addMessageEvent(new LS(this.onRoomRightsClearEvent.bind(this))),e.addMessageEvent(new FS(this.onRoomRightsOwnerEvent.bind(this)))}onRoomRightsEvent(e){if(!(e instanceof US))return;const t=this.listener.getSession(this.roomId);t&&t.setControllerLevel(e.getParser().controllerLevel)}onRoomRightsClearEvent(e){if(!(e instanceof LS))return;const t=this.listener.getSession(this.roomId);t&&t.setControllerLevel(Sa.NONE)}onRoomRightsOwnerEvent(e){if(!(e instanceof FS))return;const t=this.listener.getSession(this.roomId);t&&t.setRoomOwner()}}class gTe extends rr{constructor(e,t){super(e,t),e&&e.addMessageEvent(new x4(this.onFurnitureGiftOpenedEvent.bind(this)))}onFurnitureGiftOpenedEvent(e){if(!e)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener&&this.listener.events&&this.listener.events.dispatchEvent(new Jm(Jm.RSPE_PRESENT_OPENED,i,t.classId,t.itemType,t.productCode,t.placedItemId,t.placedItemType,t.placedInRoom,t.petFigureString))}}const ca=class ca extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new BS(this.onRoomEnterEvent.bind(this))),e.addMessageEvent(new Zc(this.onRoomReadyMessageEvent.bind(this))),e.addMessageEvent(new CS(this.onDesktopViewEvent.bind(this))),e.addMessageEvent(new DS(this.onRoomDoorbellAcceptedEvent.bind(this))),e.addMessageEvent(new NS(this.onRoomDoorbellRejectedEvent.bind(this))),e.addMessageEvent(new sF(this.onYouAreSpectatorMessageEvent.bind(this)))}onRoomEnterEvent(e){e instanceof BS&&this.listener&&this.listener.sessionUpdate(this.roomId,ca.RS_CONNECTED)}onRoomReadyMessageEvent(e){if(!(e instanceof Zc))return;const t=this.roomId,i=e.getParser().roomId;this.listener&&(this.listener.sessionReinitialize(t,i),this.listener.sessionUpdate(this.roomId,ca.RS_READY))}onDesktopViewEvent(e){e instanceof CS&&this.listener&&this.listener.sessionUpdate(this.roomId,ca.RS_DISCONNECTED)}onRoomDoorbellAcceptedEvent(e){if(!(e instanceof DS)||!this.listener)return;const t=e.getParser();if(!t)return;const i=t.userName;if(!i||!i.length)this.connection.send(new b6(this.roomId));else if(this.listener.events){const n=this.listener.getSession(this.roomId);if(!n)return;this.listener.events.dispatchEvent(new Po(Po.RSDE_ACCEPTED,n,i))}}onRoomDoorbellRejectedEvent(e){if(!(e instanceof NS)||!this.listener)return;const t=e.getParser();if(!t)return;const i=t.userName;if(!i||!i.length)this.listener.sessionUpdate(this.roomId,ca.RS_DISCONNECTED);else if(this.listener.events){const n=this.listener.getSession(this.roomId);if(!n)return;this.listener.events.dispatchEvent(new Po(Po.RSDE_REJECTED,n,i))}}onYouAreSpectatorMessageEvent(e){if(this.listener){const t=this.listener.getSession(this.roomId);if(!t)return;t.isSpectator=!0,this.listener.events.dispatchEvent(new tv(tv.SPECTATOR_MODE,t))}}};ca.RS_CONNECTED="RS_CONNECTED",ca.RS_READY="RS_READY",ca.RS_DISCONNECTED="RS_DISCONNECTED";let Lh=ca;class pTe{constructor(){this._adultLevel=7}get id(){return this._id}set id(e){this._id=e}get level(){return this._level}set level(e){this._level=e}get maximumLevel(){return this._maximumLevel}set maximumLevel(e){this._maximumLevel=e}get experience(){return this._experience}set experience(e){this._experience=e}get levelExperienceGoal(){return this._levelExperienceGoal}set levelExperienceGoal(e){this._levelExperienceGoal=e}get energy(){return this._energy}set energy(e){this._energy=e}get maximumEnergy(){return this._maximumEnergy}set maximumEnergy(e){this._maximumEnergy=e}get happyness(){return this._happyness}set happyness(e){this._happyness=e}get maximumHappyness(){return this._maximumHappyness}set maximumHappyness(e){this._maximumHappyness=e}get ownerId(){return this._ownerId}set ownerId(e){this._ownerId=e}get ownerName(){return this._ownerName}set ownerName(e){this._ownerName=e}get respect(){return this._respect}set respect(e){this._respect=e}get age(){return this._age}set age(e){this._age=e}get unknownRarity(){return this._unknownRarity}set unknownRarity(e){this._unknownRarity=e}get saddle(){return this._saddle}set saddle(e){this._saddle=e}get rider(){return this._rider}set rider(e){this._rider=e}get skillTresholds(){return this._skillThresholds}set skillTresholds(e){this._skillThresholds=e}get publiclyRideable(){return this._publiclyRideable}set publiclyRideable(e){this._publiclyRideable=e}get breedable(){return this._breedable}set breedable(e){this._breedable=e}get fullyGrown(){return this._fullyGrown}set fullyGrown(e){this._fullyGrown=e}get dead(){return this._dead}set dead(e){this._dead=e}get rarityLevel(){return this._rarityLevel}set rarityLevel(e){this._rarityLevel=e}get maximumTimeToLive(){return this._maximumTimeToLive}set maximumTimeToLive(e){this._maximumTimeToLive=e}get remainingTimeToLive(){return this._remainingTimeToLive}set remainingTimeToLive(e){this._remainingTimeToLive=e}get remainingGrowTime(){return this._remainingGrowTime}set remainingGrowTime(e){this._remainingGrowTime=e}get publiclyBreedable(){return this._publiclyBreedable}set publiclyBreedable(e){this._publiclyBreedable=e}get adultLevel(){return this._adultLevel}}class mTe{constructor(e){this._roomIndex=-1,this._name="",this._type=0,this._sex="",this._figure="",this._custom="",this._webID=0,this._groupID=0,this._groupStatus=0,this._groupName="",this._ownerId=0,this._ownerName="",this._petLevel=0,this._rarityLevel=0,this._roomIndex=e}get roomIndex(){return this._roomIndex}get activityPoints(){return this._activityPoints}set activityPoints(e){this._activityPoints=e}get background(){return this._background}set background(e){this._background=e}get stand(){return this._stand}set stand(e){this._stand=e}get overlay(){return this._overlay}set overlay(e){this._overlay=e}get name(){return this._name}set name(e){this._name=e}get type(){return this._type}set type(e){this._type=e}get sex(){return this._sex}set sex(e){this._sex=e}get figure(){return this._figure}set figure(e){this._figure=e}get custom(){return this._custom}set custom(e){this._custom=e}get webID(){return this._webID}set webID(e){this._webID=e}get groupId(){return this._groupID}set groupId(e){this._groupID=e}get groupName(){return this._groupName}set groupName(e){this._groupName=e}get groupStatus(){return this._groupStatus}set groupStatus(e){this._groupStatus=e}get ownerId(){return this._ownerId}set ownerId(e){this._ownerId=e}get ownerName(){return this._ownerName}set ownerName(e){this._ownerName=e}get rarityLevel(){return this._rarityLevel}set rarityLevel(e){this._rarityLevel=e}get hasSaddle(){return this._hasSaddle}set hasSaddle(e){this._hasSaddle=e}get isRiding(){return this._isRiding}set isRiding(e){this._isRiding=e}get canBreed(){return this._canBreed}set canBreed(e){this._canBreed=e}get canHarvest(){return this._canHarvest}set canHarvest(e){this._canHarvest=e}get canRevive(){return this._canRevive}set canRevive(e){this._canRevive=e}get hasBreedingPermission(){return this._hasBreedingPermission}set hasBreedingPermission(e){this._hasBreedingPermission=e}get petLevel(){return this._petLevel}set petLevel(e){this._petLevel=e}get botSkills(){return this._botSkills}set botSkills(e){this._botSkills=e}get isModerator(){return this._isModerator}set isModerator(e){this._isModerator=e}}class vTe extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new Rv(this.onRoomUnitEvent.bind(this))),e.addMessageEvent(new Sv(this.onRoomUnitInfoEvent.bind(this))),e.addMessageEvent(new bv(this.onRoomUnitRemoveEvent.bind(this))),e.addMessageEvent(new Iv(this.onRoomUnitDanceEvent.bind(this))),e.addMessageEvent(new gF(this.onUserCurrentBadgesEvent.bind(this))),e.addMessageEvent(new L4(this.onRoomDoorbellEvent.bind(this))),e.addMessageEvent(new Uw(this.onUserNameChangeMessageEvent.bind(this))),e.addMessageEvent(new A4(this.onNewFriendRequestEvent.bind(this))),e.addMessageEvent(new eF(this.onPetInfoEvent.bind(this))),e.addMessageEvent(new tF(this.onPetStatusUpdateEvent.bind(this))),e.addMessageEvent(new ife(this.onPetBreedingMessageEvent.bind(this))),e.addMessageEvent(new V4(this.onPetLevelUpdateMessageEvent.bind(this))),e.addMessageEvent(new vhe(this.onConfirmBreedingResultEvent.bind(this))),e.addMessageEvent(new Ehe(this.onNestBreedingSuccessEvent.bind(this))),e.addMessageEvent(new mhe(this.onConfirmBreedingRequestEvent.bind(this))),e.addMessageEvent(new Ev(this.onPetFigureUpdateEvent.bind(this))),e.addMessageEvent(new Z4(this.onPetBreedingResultEvent.bind(this))),e.addMessageEvent(new F4(this.onPetPlacingError.bind(this))),e.addMessageEvent(new U4(this.onBotError.bind(this))),e.addMessageEvent(new $4(this.onFavoriteMembershipUpdateMessageEvent.bind(this)))}onRoomUnitEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser().users,n=[];if(i&&i.length)for(const r of i){if(!r)continue;const a=new mTe(r.roomIndex);a.name=r.name,a.custom=r.custom,a.background=r.background,a.stand=r.stand,a.overlay=r.overlay,a.activityPoints=r.activityPoints,a.figure=r.figure,a.type=r.userType,a.webID=r.webID,a.groupId=r.groupID,a.groupName=r.groupName,a.groupStatus=r.groupStatus,a.sex=r.sex,a.ownerId=r.ownerId,a.ownerName=r.ownerName,a.rarityLevel=r.rarityLevel,a.hasSaddle=r.hasSaddle,a.isRiding=r.isRiding,a.canBreed=r.canBreed,a.canHarvest=r.canHarvest,a.canRevive=r.canRevive,a.hasBreedingPermission=r.hasBreedingPermission,a.petLevel=r.petLevel,a.botSkills=r.botSkills,a.isModerator=r.isModerator,t.userDataManager.getUserData(r.roomIndex)||n.push(a),t.userDataManager.updateUserData(a)}this.listener.events.dispatchEvent(new LR(t,n))}onRoomUnitInfoEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();i&&(t.userDataManager.updateFigure(i.unitId,i.figure,i.gender,!1,!1),t.userDataManager.updateMotto(i.unitId,i.motto),t.userDataManager.updateAchievementScore(i.unitId,i.achievementScore),t.userDataManager.updateBackground(i.unitId,i.backgroundId,i.standId,i.overlayId),this.listener.events.dispatchEvent(new UR(t,i.unitId,i.figure,i.gender,i.motto,i.achievementScore,i.backgroundId,i.standId,i.overlayId)))}onRoomUnitRemoveEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);t&&t.userDataManager.removeUserData(e.getParser().unitId)}onRoomUnitDanceEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener.events.dispatchEvent(new bR(i,t.unitId,t.danceId))}onUserCurrentBadgesEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&(i.userDataManager.setUserBadges(t.userId,t.badges),this.listener.events.dispatchEvent(new DR(i,t.userId,t.badges)))}onRoomDoorbellEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=t.userName;if(!i||!i.length)return;const n=this.listener.getSession(this.roomId);n&&this.listener.events.dispatchEvent(new Po(Po.DOORBELL,n,i))}onUserNameChangeMessageEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&i.userDataManager.updateName(t.id,t.newName)}onNewFriendRequestEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);if(!i)return;const n=t.request;this.listener.events.dispatchEvent(new OR(i,n.requestId,n.requesterUserId,n.requesterName))}onPetInfoEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);if(!i)return;const n=new pTe;n.id=t.id,n.level=t.level,n.maximumLevel=t.maximumLevel,n.experience=t.experience,n.levelExperienceGoal=t.levelExperienceGoal,n.energy=t.energy,n.maximumEnergy=t.maximumEnergy,n.happyness=t.happyness,n.maximumHappyness=t.maximumHappyness,n.ownerId=t.ownerId,n.ownerName=t.ownerName,n.respect=t.respect,n.age=t.age,n.unknownRarity=t.unknownRarity,n.saddle=t.saddle,n.rider=t.rider,n.breedable=t.breedable,n.fullyGrown=t.fullyGrown,n.rarityLevel=t.rarityLevel,n.dead=t.dead,n.skillTresholds=t.skillTresholds,n.publiclyRideable=t.publiclyRideable,n.maximumTimeToLive=t.maximumTimeToLive,n.remainingTimeToLive=t.remainingTimeToLive,n.remainingGrowTime=t.remainingGrowTime,n.publiclyBreedable=t.publiclyBreedable,this.listener.events.dispatchEvent(new PR(i,n))}onPetStatusUpdateEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&(i.userDataManager.updatePetBreedingStatus(t.roomIndex,t.canBreed,t.canHarvest,t.canRevive,t.hasBreedingPermission),this.listener.events.dispatchEvent(new xR(i,t.petId,t.canBreed,t.canHarvest,t.canRevive,t.hasBreedingPermission)))}onPetBreedingMessageEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener.events.dispatchEvent(new CR(i,t.state,t.ownPetId,t.otherPetId))}onPetLevelUpdateMessageEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&(i.userDataManager.updatePetLevel(t.roomIndex,t.level),this.listener.events.dispatchEvent(new kR(i,t.petId,t.level)))}onConfirmBreedingResultEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener.events.dispatchEvent(new SR(i,t.breedingNestStuffId,t.result))}onNestBreedingSuccessEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener.events.dispatchEvent(new wR(i,t.petId,t.rarityCategory))}onConfirmBreedingRequestEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener.events.dispatchEvent(new RR(i,t.nestId,t.pet1,t.pet2,t.rarityCategories,t.resultPetType))}onPetFigureUpdateEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);if(!i)return;const n=t.figureData.figuredata;i.userDataManager.updateFigure(t.roomIndex,n,"",t.hasSaddle,t.isRiding),this.listener.events.dispatchEvent(new NR(i,t.petId,n))}onPetBreedingResultEvent(e){if(!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);i&&this.listener.events.dispatchEvent(new MR(i,t.resultData,t.otherResultData))}onPetPlacingError(e){if(!e||!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);if(!i)return;let n=null;switch(t.errorCode){case 0:n=Ui.RSEME_PETS_FORBIDDEN_IN_HOTEL;break;case 1:n=Ui.RSEME_PETS_FORBIDDEN_IN_FLAT;break;case 2:n=Ui.RSEME_MAX_PETS;break;case 3:n=Ui.RSEME_NO_FREE_TILES_FOR_PET;break;case 4:n=Ui.RSEME_SELECTED_TILE_NOT_FREE_FOR_PET;break;case 5:n=Ui.RSEME_MAX_NUMBER_OF_OWN_PETS;break}!n||n.length==0||this.listener.events.dispatchEvent(new Ui(n,i))}onBotError(e){if(!e||!this.listener)return;const t=e.getParser();if(!t)return;const i=this.listener.getSession(this.roomId);if(!i)return;let n=null;switch(t.errorCode){case 0:n=Ui.RSEME_BOTS_FORBIDDEN_IN_HOTEL;break;case 1:n=Ui.RSEME_BOTS_FORBIDDEN_IN_FLAT;break;case 2:n=Ui.RSEME_BOT_LIMIT_REACHED;break;case 3:n=Ui.RSEME_SELECTED_TILE_NOT_FREE_FOR_BOT;break;case 4:n=Ui.RSEME_BOT_NAME_NOT_ACCEPTED;break}!n||n.length==0||this.listener.events.dispatchEvent(new Ui(n,i))}onFavoriteMembershipUpdateMessageEvent(e){if(!this.listener)return;const t=e.getParser(),i=this.listener.getSession(this.roomId);if(!i)return;const n=i.userDataManager.getUserDataByIndex(t.roomIndex);n&&(n.groupId=t.groupId,n.groupName=t.groupName,this.listener.events.dispatchEvent(new AR(i,t.roomIndex,t.groupId,t.status,t.groupName)))}}class ETe extends rr{constructor(e,t){super(e,t),e.addMessageEvent(new X4(this.onQuestionEvent.bind(this))),e.addMessageEvent(new Y4(this.onQuestionAnsweredEvent.bind(this))),e.addMessageEvent(new K4(this.onQuestionFinishedEvent.bind(this)))}onQuestionEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=new no(no.QUESTION,t,i.pollId);n.question=i.question,n.duration=i.duration,n.pollType=i.pollType,n.questionId=i.questionId,n.pollId=i.pollId,this.listener.events.dispatchEvent(n)}onQuestionAnsweredEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=new no(no.ANSWERED,t,i.userId);n.value=i.value,n.userId=i.userId,n.answerCounts=i.answerCounts,this.listener.events.dispatchEvent(n)}onQuestionFinishedEvent(e){if(!this.listener)return;const t=this.listener.getSession(this.roomId);if(!t)return;const i=e.getParser();if(!i)return;const n=new no(no.FINISHED,t);n.questionId=i.questionId,n.answerCounts=i.answerCounts,this.listener.events.dispatchEvent(n)}}class yTe{constructor(e){this._sessionDataManager=e,this._ignoredUsers=[]}init(){if(this._sessionDataManager&&this._sessionDataManager.communication){this._messages=[new EF(this.onIgnoredUsersEvent.bind(this)),new Fw(this.onIgnoreResultEvent.bind(this))];for(const e of this._messages)this._sessionDataManager.communication.registerMessageEvent(e)}}dispose(){if(!this.disposed){if(this._messages&&this._messages.length){for(const e of this._messages)this._sessionDataManager.communication.removeMessageEvent(e);this._messages=null}this._sessionDataManager=null}}requestIgnoredUsers(){this._sessionDataManager.send(new V6(this._sessionDataManager.userName))}onIgnoredUsersEvent(e){if(!e)return;const t=e.getParser();t&&(this._ignoredUsers=t.ignoredUsers)}onIgnoreResultEvent(e){if(!e)return;const t=e.getParser();if(!t)return;const i=t.name;switch(t.result){case 0:return;case 1:this.addUserToIgnoreList(i);return;case 2:this.addUserToIgnoreList(i),this._ignoredUsers.shift();return;case 3:this.removeUserFromIgnoreList(i);return}}addUserToIgnoreList(e){this._ignoredUsers.indexOf(e)<0&&this._ignoredUsers.push(e)}removeUserFromIgnoreList(e){const t=this._ignoredUsers.indexOf(e);t>=0&&this._ignoredUsers.splice(t,1)}ignoreUserId(e){this._sessionDataManager.send(new H6(e))}ignoreUser(e){this._sessionDataManager.send(new z6(e))}unignoreUser(e){this._sessionDataManager.send(new W6(e))}isIgnored(e){return this._ignoredUsers.indexOf(e)>=0}get disposed(){return!!this._sessionDataManager}}class TTe{constructor(e,t,i){this._type=e,this._name=t,this._description=i}get type(){return this._type}get name(){return this._name}get description(){return this._description}}const Tc=class Tc extends fn{constructor(e){super(),this._products=e}dispose(){this._products=null}loadProductData(e){e&&fetch(e).then(t=>t.json()).then(t=>this.onProductDataLoadedEvent(t)).catch(t=>this.onProductDataError(t))}onProductDataLoadedEvent(e){e&&(this.parseProducts(e.productdata),this.dispatchEvent(new Ye(Tc.PDP_PRODUCT_DATA_READY)))}onProductDataError(e){e&&this.dispatchEvent(new Ye(Tc.PDP_PRODUCT_DATA_FAILED))}parseProducts(e){if(e)for(const t of e.product)t&&this._products.set(t.code,new TTe(t.code,t.name,t.description))}};Tc.PDP_PRODUCT_DATA_READY="PDP_PRODUCT_DATA_READY",Tc.PDP_PRODUCT_DATA_FAILED="PDP_PRODUCT_DATA_FAILED";let _d=Tc;const Ar=class Ar extends Bs{constructor(){super(),this._connection=null,this._userDataByType=new Map,this._userDataByRoomIndex=new Map,this._userBadges=new Map}onDispose(){this._connection=null}setConnection(e){this._connection=e}getUserData(e){return this.getDataByType(e,Ar.TYPE_USER)}getPetData(e){return this.getDataByType(e,Ar.TYPE_PET)}getBotData(e){return this.getDataByType(e,Ar.TYPE_BOT)}getRentableBotData(e){return this.getDataByType(e,Ar.TYPE_RENTABLE_BOT)}getDataByType(e,t){const i=this._userDataByType.get(t);if(!i)return null;const n=i.get(e);return n||null}getUserDataByIndex(e){const t=this._userDataByRoomIndex.get(e);return t||null}getUserDataByName(e){for(const t of this._userDataByRoomIndex.values())if(!(!t||t.name!==e))return t;return null}updateUserData(e){if(!e)return;this.removeUserData(e.roomIndex);let t=this._userDataByType.get(e.type);t||(t=new Map,this._userDataByType.set(e.type,t)),t.set(e.webID,e),this._userDataByRoomIndex.set(e.roomIndex,e)}removeUserData(e){const t=this.getUserDataByIndex(e);if(!t)return;this._userDataByRoomIndex.delete(e);const i=this._userDataByType.get(t.type);i&&i.delete(t.webID)}getUserBadges(e){this._connection&&this._connection.send(new Y6(e));const t=this._userBadges.get(e);return t||[]}setUserBadges(e,t){this._userBadges.set(e,t)}updateFigure(e,t,i,n,r){const a=this.getUserDataByIndex(e);a&&(a.figure=t,a.sex=i,a.hasSaddle=n,a.isRiding=r)}updateName(e,t){const i=this.getUserDataByIndex(e);i&&(i.name=t)}updateMotto(e,t){const i=this.getUserDataByIndex(e);i&&(i.custom=t)}updateBackground(e,t,i,n){const r=this.getUserDataByIndex(e);r&&(r.background=t,r.stand=i,r.overlay=n)}updateAchievementScore(e,t){const i=this.getUserDataByIndex(e);i&&(i.activityPoints=t)}updatePetLevel(e,t){const i=this.getUserDataByIndex(e);i&&(i.petLevel=t)}updatePetBreedingStatus(e,t,i,n,r){const a=this.getUserDataByIndex(e);a&&(a.canBreed=t,a.canHarvest=i,a.canRevive=n,a.hasBreedingPermission=r)}requestPetInfo(e){!this._connection||!this.getPetData(e)||this._connection.send(new xF(e))}get connection(){return this._connection}};Ar.TYPE_USER=1,Ar.TYPE_PET=2,Ar.TYPE_BOT=3,Ar.TYPE_RENTABLE_BOT=4;let IA=Ar;class ITe extends Bs{constructor(){super(),this._connection=null,this._userData=new IA,this._roomId=0,this._password=null,this._state=Ae.CREATED,this._tradeMode=pR.NO_TRADING,this._doorMode=0,this._controllerLevel=Sa.NONE,this._ownRoomIndex=-1,this._isGuildRoom=!1,this._isRoomOwner=!1,this._isDecorating=!1,this._isSpectator=!1,this._moderationSettings=null}onDispose(){this._userData&&(this._userData.dispose(),this._userData=null),this._connection=null}setConnection(e){this._connection||!e||(this._connection=e,this._userData&&this._userData.setConnection(e))}setControllerLevel(e){if(e>=Sa.NONE&&e<=Sa.MODERATOR){this._controllerLevel=e;return}this._controllerLevel=Sa.NONE}setOwnRoomIndex(e){this._ownRoomIndex=e}setRoomOwner(){this._isRoomOwner=!0}start(){return this._state!==Ae.CREATED||!this._connection?!1:(this._state=Ae.STARTED,this.enterRoom())}enterRoom(){return this._connection?(this._connection.send(new jF(this._roomId,this._password)),!0):!1}reset(e){e!==this._roomId&&(this._roomId=e)}sendChatMessage(e,t,i){this._connection.send(new Gw(e,t,i))}sendShoutMessage(e,t,i){this._connection.send(new A6(e,t,i))}sendWhisperMessage(e,t,i){this._connection.send(new O6(e,t,i))}sendChatTypingMessage(e){e?this._connection.send(new w6):this._connection.send(new C6)}sendMottoMessage(e){this._connection.send(new X6(e))}sendBackgroundMessage(e,t,i){this._connection.send(new N6(e,t,i))}sendDanceMessage(e){this._connection.send(new P6(e))}sendExpressionMessage(e){this._connection.send(new M6(e))}sendSignMessage(e){e<0||e>17||this._connection.send(new D6(e))}sendPostureMessage(e){this._connection.send(new x6(e))}sendDoorbellApprovalMessage(e,t){this._connection.send(new VF(e,t))}sendAmbassadorAlertMessage(e){this._connection.send(new zF(e))}sendWhisperGroupMessage(e){this._connection.send(new ChatWhisperGroupComposer(e))}sendKickMessage(e){this._connection.send(new YF(e))}sendMuteMessage(e,t){this._connection.send(new XF(e,t,this._roomId))}sendBanMessage(e,t){this._connection.send(new HF(e,this._roomId,t))}sendGiveRightsMessage(e){this._connection.send(new WF(e))}sendTakeRightsMessage(e){this._connection.send(new KF(e))}sendPollStartMessage(e){this._connection.send(new GF(e))}sendPollRejectMessage(e){this._connection.send(new BF(e))}sendPollAnswerMessage(e,t,i){this._connection.send(new FF(e,t,i))}sendPeerUsersClassificationMessage(e){this._connection.send(new $6(e))}sendOpenPetPackageMessage(e,t){this._connection.send(new T6(e,t))}sendRoomUsersClassificationMessage(e){this._connection.send(new Q6(e))}updateMoodlightData(e,t,i,n,r){let a="000000"+i.toString(16).toUpperCase();a="#"+a.substring(a.length-6),this.connection.send(new l6(e,t,a,n,r))}toggleMoodlightState(){this.connection.send(new u6)}pickupPet(e){this._connection&&this._connection.send(new i6(e))}pickupBot(e){this._connection&&this._connection.send(new $F(e))}requestMoodlightSettings(){this._connection&&this._connection.send(new o6)}openGift(e){this._connection.send(new I6(e))}mountPet(e){this._connection.send(new Ib(e,!0))}dismountPet(e){this._connection.send(new Ib(e,!1))}usePetProduct(e,t){this._connection.send(new UF(e,t))}removePetSaddle(e){this._connection.send(new kF(e))}togglePetBreeding(e){this._connection.send(new DF(e))}togglePetRiding(e){this._connection.send(new LF(e))}useMultistateItem(e){this._connection.send(new Bw(e))}harvestPet(e){this._connection.send(new e6(e))}compostPlant(e){this._connection.send(new ZF(e))}requestPetCommands(e){this._connection.send(new NF(e))}sendScriptProceed(){this._connection.send(new MF)}sendUpdateClothingChangeFurniture(e,t,i){this._connection.send(new n6(e,t,i))}changeQueue(e){this._connection.send(new S6(e))}votePoll(e){this._connection.send(new VotePollCounterMessageComposer(e))}get connection(){return this._connection}get userDataManager(){return this._userData}get roomId(){return this._roomId}set roomId(e){this._roomId=e}get password(){return this._password}set password(e){this._password=e}get state(){return this._state}get isPrivateRoom(){return!0}get tradeMode(){return this._tradeMode}set tradeMode(e){this._tradeMode=e}get doorMode(){return this._doorMode}set doorMode(e){this._doorMode=e}get allowPets(){return this._allowPets}set allowPets(e){this._allowPets=e}get controllerLevel(){return this._controllerLevel}get ownRoomIndex(){return this._ownRoomIndex}get isGuildRoom(){return this._isGuildRoom}set isGuildRoom(e){this._isGuildRoom=e}get isRoomOwner(){return this._isRoomOwner}get isDecorating(){return this._isDecorating}set isDecorating(e){this._isDecorating=e}get isSpectator(){return this._isSpectator}set isSpectator(e){this._isSpectator=e}get moderationSettings(){return this._moderationSettings}set moderationSettings(e){this._moderationSettings=e}}class RTe extends Yr{constructor(e,t){super(),this._communication=e,this._roomEngine=t,this._handlers=[],this._sessions=new Map,this._pendingSession=null,this._sessionStarting=!1,this._viewerSession=null,this.onRoomEngineEvent=this.onRoomEngineEvent.bind(this)}onInit(){this.createHandlers(),this.processPendingSession(),this._roomEngine.events.addEventListener(ft.ENGINE_INITIALIZED,this.onRoomEngineEvent)}onDispose(){this._roomEngine.events.removeEventListener(ft.ENGINE_INITIALIZED,this.onRoomEngineEvent),super.onDispose()}createHandlers(){const e=this._communication&&this._communication.connection;e&&this._handlers.push(new cTe(e,this),new fTe(e,this),new dTe(e,this),new _Te(e,this),new Lh(e,this),new vTe(e,this),new gTe(e,this),new lTe(e,this),new ETe(e,this),new hTe(e,this),new uTe(e,this))}setHandlers(e){if(!(!this._handlers||!this._handlers.length))for(const t of this._handlers)t&&t.setRoomId(e.roomId)}onRoomEngineEvent(e){this.processPendingSession()}processPendingSession(){!this._pendingSession||!this._roomEngine.ready||(this.addSession(this._pendingSession),this._pendingSession=null)}getSession(e){const t=this._sessions.get(this.getRoomId(e));return t||null}createSession(e,t=null){const i=new ITe;return i.roomId=e,i.password=t,this.addSession(i)}addSession(e){return this._roomEngine.ready?(this._sessionStarting=!0,this._sessions.get(this.getRoomId(e.roomId))&&this.removeSession(e.roomId,!1),e.setConnection(this._communication.connection),this._sessions.set(this.getRoomId(e.roomId),e),this.events.dispatchEvent(new Ae(Ae.CREATED,e)),this._viewerSession=e,this.startSession(this._viewerSession),!0):(this._pendingSession=e,!1)}startSession(e){return e.state===Ae.STARTED?!1:(this._sessionStarting=!1,e.start()?(this.events.dispatchEvent(new Ae(Ae.STARTED,e)),this.setHandlers(e),!0):(this.removeSession(e.roomId),!1))}removeSession(e,t=!0){const i=this.getSession(e);i&&(this._sessions.delete(this.getRoomId(e)),this.events.dispatchEvent(new Ae(Ae.ENDED,i,t)),i.dispose())}sessionUpdate(e,t){if(this.getSession(e))switch(t){case Lh.RS_CONNECTED:return;case Lh.RS_READY:return;case Lh.RS_DISCONNECTED:this.removeSession(e);return}}sessionReinitialize(e,t){const i=this.getSession(e);i&&(this._sessions.delete(this.getRoomId(e)),i.reset(t),this._sessions.set(this.getRoomId(t),i),this.setHandlers(i))}getRoomId(e){return"hard_coded_room_id"}get communication(){return this._communication}get roomEngine(){return this._roomEngine}get viewerSession(){return this._viewerSession}}const Ic=class Ic{static logEventLog(e){try{He.available&&He.call("logEventLog",e)}catch{le.log("External interface not working, failed to log event log.")}}static openPage(e){try{He.available&&He.call("openPage",e)}catch{le.log("Failed to open web page",e)}}static openWebPage(e){window.open(e)}static sendHeartBeat(){try{He.available&&He.call("heartBeat")}catch{le.log("Failed to send heartbeat")}}static openWebPageAndMinimizeClient(e){try{He.available&&Ic.openPage(e)}catch{le.log("Failed to open web page",e)}}static closeWebPageAndRestoreClient(){try{He.available&&He.call("closeWebPageAndRestoreClient")}catch{le.log("Failed to close web page and restore client!")}}static openHabblet(e,t=null){try{He.available&&He.call("openHabblet",e,t)}catch{le.log("Failed to open Habblet",e)}}static closeHabblet(e,t=null){try{He.available&&He.call("closeHabblet",e,t)}catch{le.log("Failed to close Habblet",e)}}static send(e,t){try{He.available&&He.call("disconnect",e,t)}catch{le.log("Failed to close send ")}}static showGame(e){try{He.available&&He.callGame("showGame",e)}catch(t){le.log("Failed to open game",t)}}static hideGame(){try{He.available&&He.callGame("hideGame")}catch{le.log("Failed to hide game")}}static open(e){try{He.available&&He.call("openExternalLink",escape(e))}catch{le.log("External interface not working. Could not request to open: "+e)}}static roomVisited(e){try{He.available&&He.call("roomVisited",e)}catch{le.log("External interface not working. Could not store last room visit.")}}static openMinimail(e){try{He.available&&He.call("openMinimail",e)}catch{le.log("External interface not working. Could not open minimail.")}}static openNews(){try{He.available&&He.call("openNews")}catch{le.log("External interface not working. Could not open news.")}}static closeNews(){try{He.available&&He.call("closeNews")}catch{le.log("External interface not working. Could not close news.")}}static openAvatars(){try{He.available&&He.call("openAvatars")}catch{le.log("External interface not working. Could not open avatars.")}}static openRoomEnterAd(){try{He.available&&He.call("openRoomEnterAd")}catch{le.log("External interface not working. Could not open roomenterad.")}}static updateFigure(e){try{He.available&&He.call("updateFigure",e)}catch{le.log("External interface not working. Could not update figure.")}}};Ic.ADVERTISEMENT="advertisement",Ic.OPENLINK="openlink",Ic.OPENROOM="openroom";let Jc=Ic;class STe extends Yr{constructor(e){super(),this._communication=e,this.resetUserInfo(),this._ignoredUsersManager=new yTe(this),this._groupInformationManager=new oTe(this),this._clubLevel=0,this._securityLevel=0,this._isAmbassador=!1,this._noobnessLevel=-1,this._isEmailVerified=!1,this._systemOpen=!1,this._systemShutdown=!1,this._isAuthenticHabbo=!1,this._isRoomCameraFollowDisabled=!1,this._uiFlags=0,this._floorItems=new Map,this._wallItems=new Map,this._products=new Map,this._furnitureData=null,this._furnitureReady=!1,this._productsReady=!1,this._furnitureListenersNotified=!1,this._pendingFurnitureListeners=[],this._pendingProductListeners=[],this._tags=[],this._badgeImageManager=null,this.onFurnitureDataReadyEvent=this.onFurnitureDataReadyEvent.bind(this),this.onProductDataReadyEvent=this.onProductDataReadyEvent.bind(this),this.onNitroSettingsEvent=this.onNitroSettingsEvent.bind(this)}onInit(){this.loadFurnitureData(),this.loadProductData(),this.loadBadgeImageManager(),this._ignoredUsersManager&&this._ignoredUsersManager.init(),this._groupInformationManager&&this._groupInformationManager.init(),this._communication.registerMessageEvent(new S4(this.onUserFigureEvent.bind(this))),this._communication.registerMessageEvent(new Av(this.onUserInfoEvent.bind(this))),this._communication.registerMessageEvent(new dF(this.onUserPermissionsEvent.bind(this))),this._communication.registerMessageEvent(new R4(this.onAvailabilityStatusMessageEvent.bind(this))),this._communication.registerMessageEvent(new j4(this.onPetRespectFailed.bind(this))),this._communication.registerMessageEvent(new X_(this.onChangeNameUpdateEvent.bind(this))),this._communication.registerMessageEvent(new Uw(this.onUserNameChangeMessageEvent.bind(this))),this._communication.registerMessageEvent(new pF(this.onUserTags.bind(this))),this._communication.registerMessageEvent(new Zc(this.onRoomModelNameEvent.bind(this))),this._communication.registerMessageEvent(new yF(this.onInClientLinkEvent.bind(this))),this._communication.registerMessageEvent(new D4(this.onMysteryBoxKeysEvent.bind(this))),this._communication.registerMessageEvent(new C4(this.onNoobnessLevelMessageEvent.bind(this))),this._communication.registerMessageEvent(new _F(this.onAccountSafetyLockStatusChangeMessageEvent.bind(this))),this._communication.registerMessageEvent(new mF(this.onEmailStatus.bind(this))),ce.instance.events.addEventListener(Su.SETTINGS_UPDATED,this.onNitroSettingsEvent)}onDispose(){this.destroyFurnitureData(),this._ignoredUsersManager&&(this._ignoredUsersManager.dispose(),this._ignoredUsersManager=null),this._groupInformationManager&&(this._groupInformationManager.dispose(),this._groupInformationManager=null),ce.instance.events.removeEventListener(Su.SETTINGS_UPDATED,this.onNitroSettingsEvent),super.onDispose()}resetUserInfo(){this._userId=0,this._name=null,this._figure=null,this._gender=null,this._realName=null,this._canChangeName=!1,this._safetyLocked=!1}loadFurnitureData(){this.destroyFurnitureData(),this._furnitureData=new dd(this._floorItems,this._wallItems,ce.instance.localization),this._furnitureData.addEventListener(dd.FURNITURE_DATA_READY,this.onFurnitureDataReadyEvent),this._furnitureData.loadFurnitureData(Te.getValue("furnidata.url"))}loadProductData(){this.destroyProductData(),this._productData=new _d(this._products),this._productData.addEventListener(_d.PDP_PRODUCT_DATA_READY,this.onProductDataReadyEvent),this._productData.loadProductData(Te.getValue("productdata.url"))}loadBadgeImageManager(){this._badgeImageManager||(this._badgeImageManager=new Dh(wn(),this),this._badgeImageManager.init())}hasProductData(e){return this._productsReady?!0:(e&&this._pendingProductListeners.indexOf(e)===-1&&this._pendingProductListeners.push(e),!1)}getAllFurnitureData(e){if(!this._furnitureReady)return this._pendingFurnitureListeners.indexOf(e)===-1&&this._pendingFurnitureListeners.push(e),null;const t=[];for(const i of this._floorItems.values())i&&t.push(i);for(const i of this._wallItems.values())i&&t.push(i);return t}removePendingFurniDataListener(e){if(!this._pendingFurnitureListeners)return;const t=this._pendingFurnitureListeners.indexOf(e);t!==-1&&this._pendingFurnitureListeners.splice(t,1)}onUserFigureEvent(e){!e||!e.connection||(this._figure=e.getParser().figure,this._gender=e.getParser().gender,Jc.updateFigure(this._figure))}onUserInfoEvent(e){if(!e||!e.connection)return;this.resetUserInfo();const t=e.getParser().userInfo;t&&(this._userId=t.userId,this._name=t.username,this._figure=t.figure,this._gender=t.gender,this._realName=t.realName,this._respectsReceived=t.respectsReceived,this._respectsLeft=t.respectsRemaining,this._respectsPetLeft=t.respectsPetRemaining,this._canChangeName=t.canChangeName,this._safetyLocked=t.safetyLocked,this._ignoredUsersManager&&this._ignoredUsersManager.requestIgnoredUsers())}onUserPermissionsEvent(e){!e||!e.connection||(this._clubLevel=e.getParser().clubLevel,this._securityLevel=e.getParser().securityLevel,this._isAmbassador=e.getParser().isAmbassador)}onAvailabilityStatusMessageEvent(e){if(!e||!e.connection)return;const t=e.getParser();t&&(this._systemOpen=t.isOpen,this._systemShutdown=t.onShutdown,this._isAuthenticHabbo=t.isAuthenticUser)}onPetRespectFailed(e){!e||!e.connection||this._respectsPetLeft++}onChangeNameUpdateEvent(e){if(!e||!e.connection)return;const t=e.getParser();t&&t.resultCode===X_.NAME_OK&&(this._canChangeName=!1,this.events.dispatchEvent(new sv(t.name)))}onUserNameChangeMessageEvent(e){if(!e||!e.connection)return;const t=e.getParser();t&&t.webId===this.userId&&(this._name=t.newName,this._canChangeName=!1,this.events.dispatchEvent(new sv(this._name)))}onUserTags(e){if(!e||!e.connection)return;const t=e.getParser();t&&(this._tags=t.tags)}onRoomModelNameEvent(e){if(!e)return;const t=e.getParser();t&&Jc.roomVisited(t.roomId)}onFurnitureDataReadyEvent(e){if(this._furnitureData.removeEventListener(dd.FURNITURE_DATA_READY,this.onFurnitureDataReadyEvent),this._furnitureReady=!0,!this._furnitureListenersNotified&&(this._furnitureListenersNotified=!0,this._pendingFurnitureListeners&&this._pendingFurnitureListeners.length))for(const t of this._pendingFurnitureListeners)t&&t.loadFurnitureData();this._pendingProductListeners=[]}onProductDataReadyEvent(e){this._productData.removeEventListener(_d.PDP_PRODUCT_DATA_READY,this.onProductDataReadyEvent),this._productsReady=!0;for(const t of this._pendingProductListeners)t&&t.loadProductData();this._pendingProductListeners=[]}onInClientLinkEvent(e){if(!e)return;const t=e.getParser();t&&ce.instance.createLinkEvent(t.link)}onMysteryBoxKeysEvent(e){if(!e)return;const t=e.getParser();t&&this.events.dispatchEvent(new IR(t.boxColor,t.keyColor))}onNoobnessLevelMessageEvent(e){this._noobnessLevel=e.getParser().noobnessLevel,this._noobnessLevel!==ud.OLD_IDENTITY&&Te.setValue("new.identity",1)}onAccountSafetyLockStatusChangeMessageEvent(e){if(!e)return;const t=e.getParser();t&&(this._safetyLocked=t.status==dv.SAFETY_LOCK_STATUS_LOCKED)}onEmailStatus(e){if(!e)return;const t=e.getParser();t&&(this._isEmailVerified=t.isVerified)}onNitroSettingsEvent(e){this._isRoomCameraFollowDisabled=e.cameraFollow,this._uiFlags=e.flags,this.events.dispatchEvent(new FR(this._uiFlags))}destroyFurnitureData(){this._furnitureData&&(this._furnitureData.dispose(),this._furnitureData=null)}destroyProductData(){this._productData&&(this._productData.dispose(),this._productData=null)}getFloorItemData(e){const t=this._floorItems.get(e);return t||null}getFloorItemDataByName(e){if(!e||!this._floorItems||!this._floorItems.size)return null;for(const t of this._floorItems.values())if(!(!t||t.className!==e))return t}getWallItemData(e){const t=this._wallItems.get(e);return t||null}getWallItemDataByName(e){if(!e||!this._wallItems||!this._wallItems.size)return null;for(const t of this._wallItems.values())if(!(!t||t.className!==e))return t}getProductData(e){return this._productsReady||this.loadProductData(),this._products.get(e)}getBadgeUrl(e){return this._badgeImageManager.getBadgeUrl(e)}getGroupBadgeUrl(e){return this._badgeImageManager.getBadgeUrl(e,Dh.GROUP_BADGE)}getBadgeImage(e){return this._badgeImageManager.getBadgeImage(e)}getGroupBadgeImage(e){return this._badgeImageManager.getBadgeImage(e,Dh.GROUP_BADGE)}getUserTags(e){e<0||this.send(new j6(e))}loadBadgeImage(e){return this._badgeImageManager.loadBadgeImage(e)}loadGroupBadgeImage(e){return this._badgeImageManager.loadBadgeImage(e,Dh.GROUP_BADGE)}hasSecurity(e){return this._securityLevel>=e}giveRespect(e){e<0||this._respectsLeft<=0||(this.send(new q6(e)),this._respectsLeft--)}givePetRespect(e){e<0||this._respectsPetLeft<=0||(this.send(new PF(e)),this._respectsPetLeft--)}sendSpecialCommandMessage(e,t=0){this.send(new Gw(e))}ignoreUser(e){this._ignoredUsersManager&&this._ignoredUsersManager.ignoreUser(e)}unignoreUser(e){this._ignoredUsersManager&&this._ignoredUsersManager.unignoreUser(e)}isUserIgnored(e){return this._ignoredUsersManager&&this._ignoredUsersManager.isIgnored(e)}getGroupBadge(e){return this._groupInformationManager&&this._groupInformationManager.getGroupBadge(e)}send(e){this._communication.connection.send(e)}get communication(){return this._communication}get userId(){return this._userId}get userName(){return this._name}get figure(){return this._figure}get gender(){return this._gender}get realName(){return this._realName}get ignoredUsersManager(){return this._ignoredUsersManager}get groupInformationManager(){return this._groupInformationManager}get respectsReceived(){return this._respectsReceived}get respectsLeft(){return this._respectsLeft}get respectsPetLeft(){return this._respectsPetLeft}get canChangeName(){return this._canChangeName}get clubLevel(){return this._clubLevel}get securityLevel(){return this._securityLevel}get isAmbassador(){return this._isAmbassador}get isEmailVerified(){return this._isEmailVerified}get isNoob(){return this._noobnessLevel!==ud.OLD_IDENTITY}get isRealNoob(){return this._noobnessLevel===ud.REAL_NOOB}get isSystemOpen(){return this._systemOpen}get isSystemShutdown(){return this._systemShutdown}get isAuthenticHabbo(){return this._isAuthenticHabbo}get isModerator(){return this._securityLevel>=mR.MODERATOR}get isCameraFollowDisabled(){return this._isRoomCameraFollowDisabled}get uiFlags(){return this._uiFlags}get tags(){return this._tags}}class G5 extends A0{constructor(e,t,i,n,r=""){super(e,t,i,n),this._jukeboxDiskId=-1,this._songData=r}get id(){return this._id}get length(){return this._length}get name(){return this._name}get creator(){return this._creator}get songData(){return this._songData}set songData(e){this._songData=e}get diskId(){return this._jukeboxDiskId}set diskId(e){this._jukeboxDiskId=e}}class bTe{constructor(e,t,i,n,r){this._songId=e,this._startPos=t,this._playLength=i,this._fadeInSeconds=n,this._fadeOutSeconds=r,this._playRequestTime=Date.now()}get songId(){return this._songId}get startPos(){return this._startPos<0?0:this._startPos+(Date.now()-this._playRequestTime)/1e3}get playLength(){return this._playLength}get playRequestTime(){return this._playRequestTime}get fadeInSeconds(){return this._fadeInSeconds}get fadeOutSeconds(){return this._fadeOutSeconds}}const WE=class WE extends Ye{constructor(e,t){super(WE.NOTIFY_PLAYED_SONG),this._name=e,this._creator=t}get name(){return this._name}get creator(){return this._creator}};WE.NOTIFY_PLAYED_SONG="UIEW_NOTIFY_PLAYED_SONG";let RA=WE;const u_=class u_ extends Ye{constructor(e,t,i,n){super(e),this._id=i,this._position=n,this._priority=t}get id(){return this._id}get position(){return this._position}get priority(){return this._priority}};u_.NPE_USER_PLAY_SONG="NPE_USER_PLAY_SONG",u_.NPW_USER_STOP_SONG="NPW_USER_STOP_SONG",u_.NPE_SONG_CHANGED="NPE_SONG_CHANGED";let Do=u_;const YE=class YE extends Ye{constructor(e){super(e)}};YE.PLUE_PLAY_LIST_UPDATED="PLUE_PLAY_LIST_UPDATED",YE.PLUE_PLAY_LIST_FULL="PLUE_PLAY_LIST_FULL";let ro=YE;const gC=class gC extends Ye{constructor(e){super(e)}};gC.SDIR_SONG_DISK_INVENTORY_RECEIVENT_EVENT="SDIR_SONG_DISK_INVENTORY_RECEIVENT_EVENT";let Uh=gC;const pC=class pC extends Ye{constructor(e,t){super(e),this._id=t}get id(){return this._id}};pC.SIR_TRAX_SONG_INFO_RECEIVED="SIR_TRAX_SONG_INFO_RECEIVED";let ef=pC;const mC=class mC extends Ye{constructor(e,t){super(e),this._id=t}get id(){return this._id}};mC.TRAX_SONG_COMPLETE="SME_TRAX_SONG_COMPLETE";let tf=mC;const au=class au{};au.PRIORITY_ROOM_PLAYLIST=0,au.PRIORITY_USER_PLAYLIST=1,au.PRIORITY_SONG_PLAY=2,au.PRIORITY_PURCHASE_PREVIEW=3,au.PRIORITY_COUNT=4;let Qs=au;class ATe{constructor(){this._isPlaying=!1,this._disposed=!1,this._entries=[],this._missingSongInfo=[],this._messageEvents=[new hF(this.onNowPlayingMessageEvent.bind(this)),new uF(this.onJukeboxSongDisksMessageEvent.bind(this)),new lF(this.onJukeboxPlayListFullMessageEvent.bind(this))],this.onSongInfoReceivedEvent=this.onSongInfoReceivedEvent.bind(this)}init(){this._messageEvents.forEach(e=>ce.instance.communication.connection.addMessageEvent(e)),ce.instance.soundManager.events.addEventListener(ef.SIR_TRAX_SONG_INFO_RECEIVED,this.onSongInfoReceivedEvent)}get priority(){return Qs.PRIORITY_ROOM_PLAYLIST}onNowPlayingMessageEvent(e){const t=e.getParser();this._isPlaying=t.currentSongId!==-1,t.currentSongId>=0?(ce.instance.soundManager.musicController.playSong(t.currentSongId,Qs.PRIORITY_ROOM_PLAYLIST,t.syncCount/1e3,0,1,1),this._currentEntryId=t.currentSongId):this.stopPlaying(),t.nextSongId>=0&&ce.instance.soundManager.musicController.addSongInfoRequest(t.nextSongId),this._playPosition=t.currentPosition,ce.instance.soundManager.events.dispatchEvent(new Do(Do.NPE_SONG_CHANGED,Qs.PRIORITY_ROOM_PLAYLIST,t.currentSongId,t.currentPosition))}onJukeboxSongDisksMessageEvent(e){const t=e.getParser();this._entries=[];for(let i=0;i<t.songDisks.length;i++){const n=t.songDisks.getWithIndex(i),r=t.songDisks.getKey(i);let a=ce.instance.soundManager.musicController.getSongInfo(n);a==null&&(a=new G5(n,-1,null,null,null),this._missingSongInfo.indexOf(n)<0&&(this._missingSongInfo.push(n),ce.instance.soundManager.musicController.requestSongInfoWithoutSamples(n))),a.diskId=r,this._entries.push(a)}this._missingSongInfo.length==0&&ce.instance.soundManager.events.dispatchEvent(new ro(ro.PLUE_PLAY_LIST_UPDATED))}onJukeboxPlayListFullMessageEvent(e){ce.instance.soundManager.events.dispatchEvent(new ro(ro.PLUE_PLAY_LIST_FULL))}onSongInfoReceivedEvent(e){for(let i=0;i<this.length;i++){const n=this._entries[i];if(n.id===e.id){const r=n.diskId,a=ce.instance.soundManager.musicController.getSongInfo(e.id);a!=null&&(a.diskId=r,this._entries[i]=a);break}}const t=this._missingSongInfo.indexOf(e.id);t>=0&&this._missingSongInfo.splice(t,1),this._missingSongInfo.length==0&&ce.instance.soundManager.events.dispatchEvent(new ro(ro.PLUE_PLAY_LIST_UPDATED))}stopPlaying(){ce.instance.soundManager.musicController.stop(this.priority),this._currentEntryId=-1,this._playPosition=-1,this._isPlaying=!1}get length(){return this._entries?this._entries.length:0}get playPosition(){return this._playPosition}get nowPlayingSongId(){return this._currentEntryId}get isPlaying(){return this._isPlaying}get entries(){return this._entries}getEntry(e){return e<0||e>=this._entries.length?null:this._entries[e]}requestPlayList(){ce.instance.communication.connection.send(new U6)}dispose(){this._disposed||(this._disposed=!0,this.stopPlaying(),ce.instance.soundManager.events&&ce.instance.soundManager.events.removeEventListener(ef.SIR_TRAX_SONG_INFO_RECEIVED,this.onSongInfoReceivedEvent),this._messageEvents.forEach(e=>ce.instance.communication.connection.removeMessageEvent(e)),this._messageEvents=null)}}class OTe{constructor(e){this._id=e,this._items=[]}addChannelItem(e){this._items.push(e)}get items(){return this._items}}class wTe{constructor(e,t){this._id=e,this._length=t}get id(){return this._id}get length(){return this._length}}class SA{constructor(e){this._channels=[],this._metaData=new Map;let t=[];const i=e.split(":"),n=i[i.length-1];if(n.indexOf("meta")>-1){const r=n.split(";");for(const a of r){const o=a.split(",");this._metaData.set(o[0],o[1])}t=i.slice(0,i.length-1)}else t=i;for(let r=0;r<t.length/2;r++)if(t[r*2].length>0){const a=parseInt(t[r*2]),o=t[r*2+1].split(";"),l=new OTe(a);for(const u of o){const c=u.split(",");if(c.length!==2)return;l.addChannelItem(new wTe(parseInt(c[0]),parseInt(c[1])))}this._channels.push(l)}}get channels(){return this._channels}getSampleIds(){const e=[];for(const t of this._channels)for(const i of t.items)e.indexOf(i.id)===-1&&e.push(i.id);return e}get hasMetaData(){return this._metaData.has("meta")}get metaCutMode(){return this._metaData.has("c")}get metaTempo(){const e=this._metaData.get("t");return e?parseInt(e):null}}var Cl={};/*!
* howler.js v2.2.4
* howlerjs.com
*
* (c) 2013-2020, James Simpson of GoldFire Studios
* goldfirestudios.com
*
* MIT License
*/(function(s){(function(){var e=function(){this.init()};e.prototype={init:function(){var h=this||t;return h._counter=1e3,h._html5AudioPool=[],h.html5PoolSize=10,h._codecs={},h._howls=[],h._muted=!1,h._volume=1,h._canPlayEvent="canplaythrough",h._navigator=typeof window<"u"&&window.navigator?window.navigator:null,h.masterGain=null,h.noAudio=!1,h.usingWebAudio=!0,h.autoSuspend=!0,h.ctx=null,h.autoUnlock=!0,h._setup(),h},volume:function(h){var f=this||t;if(h=parseFloat(h),f.ctx||c(),typeof h<"u"&&h>=0&&h<=1){if(f._volume=h,f._muted)return f;f.usingWebAudio&&f.masterGain.gain.setValueAtTime(h,t.ctx.currentTime);for(var d=0;d<f._howls.length;d++)if(!f._howls[d]._webAudio)for(var _=f._howls[d]._getSoundIds(),g=0;g<_.length;g++){var p=f._howls[d]._soundById(_[g]);p&&p._node&&(p._node.volume=p._volume*h)}return f}return f._volume},mute:function(h){var f=this||t;f.ctx||c(),f._muted=h,f.usingWebAudio&&f.masterGain.gain.setValueAtTime(h?0:f._volume,t.ctx.currentTime);for(var d=0;d<f._howls.length;d++)if(!f._howls[d]._webAudio)for(var _=f._howls[d]._getSoundIds(),g=0;g<_.length;g++){var p=f._howls[d]._soundById(_[g]);p&&p._node&&(p._node.muted=h?!0:p._muted)}return f},stop:function(){for(var h=this||t,f=0;f<h._howls.length;f++)h._howls[f].stop();return h},unload:function(){for(var h=this||t,f=h._howls.length-1;f>=0;f--)h._howls[f].unload();return h.usingWebAudio&&h.ctx&&typeof h.ctx.close<"u"&&(h.ctx.close(),h.ctx=null,c()),h},codecs:function(h){return(this||t)._codecs[h.replace(/^x-/,"")]},_setup:function(){var h=this||t;if(h.state=h.ctx&&h.ctx.state||"suspended",h._autoSuspend(),!h.usingWebAudio)if(typeof Audio<"u")try{var f=new Audio;typeof f.oncanplaythrough>"u"&&(h._canPlayEvent="canplay")}catch{h.noAudio=!0}else h.noAudio=!0;try{var f=new Audio;f.muted&&(h.noAudio=!0)}catch{}return h.noAudio||h._setupCodecs(),h},_setupCodecs:function(){var h=this||t,f=null;try{f=typeof Audio<"u"?new Audio:null}catch{return h}if(!f||typeof f.canPlayType!="function")return h;var d=f.canPlayType("audio/mpeg;").replace(/^no$/,""),_=h._navigator?h._navigator.userAgent:"",g=_.match(/OPR\/(\d+)/g),p=g&&parseInt(g[0].split("/")[1],10)<33,m=_.indexOf("Safari")!==-1&&_.indexOf("Chrome")===-1,v=_.match(/Version\/(.*?) /),E=m&&v&&parseInt(v[1],10)<15;return h._codecs={mp3:!!(!p&&(d||f.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!d,opus:!!f.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!f.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!f.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(f.canPlayType('audio/wav; codecs="1"')||f.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!f.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!f.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(f.canPlayType("audio/x-m4a;")||f.canPlayType("audio/m4a;")||f.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(f.canPlayType("audio/x-m4b;")||f.canPlayType("audio/m4b;")||f.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(f.canPlayType("audio/x-mp4;")||f.canPlayType("audio/mp4;")||f.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!E&&f.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!E&&f.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!f.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(f.canPlayType("audio/x-flac;")||f.canPlayType("audio/flac;")).replace(/^no$/,"")},h},_unlockAudio:function(){var h=this||t;if(!(h._audioUnlocked||!h.ctx)){h._audioUnlocked=!1,h.autoUnlock=!1,!h._mobileUnloaded&&h.ctx.sampleRate!==44100&&(h._mobileUnloaded=!0,h.unload()),h._scratchBuffer=h.ctx.createBuffer(1,1,22050);var f=function(d){for(;h._html5AudioPool.length<h.html5PoolSize;)try{var _=new Audio;_._unlocked=!0,h._releaseHtml5Audio(_)}catch{h.noAudio=!0;break}for(var g=0;g<h._howls.length;g++)if(!h._howls[g]._webAudio)for(var p=h._howls[g]._getSoundIds(),m=0;m<p.length;m++){var v=h._howls[g]._soundById(p[m]);v&&v._node&&!v._node._unlocked&&(v._node._unlocked=!0,v._node.load())}h._autoResume();var E=h.ctx.createBufferSource();E.buffer=h._scratchBuffer,E.connect(h.ctx.destination),typeof E.start>"u"?E.noteOn(0):E.start(0),typeof h.ctx.resume=="function"&&h.ctx.resume(),E.onended=function(){E.disconnect(0),h._audioUnlocked=!0,document.removeEventListener("touchstart",f,!0),document.removeEventListener("touchend",f,!0),document.removeEventListener("click",f,!0),document.removeEventListener("keydown",f,!0);for(var y=0;y<h._howls.length;y++)h._howls[y]._emit("unlock")}};return document.addEventListener("touchstart",f,!0),document.addEventListener("touchend",f,!0),document.addEventListener("click",f,!0),document.addEventListener("keydown",f,!0),h}},_obtainHtml5Audio:function(){var h=this||t;if(h._html5AudioPool.length)return h._html5AudioPool.pop();var f=new Audio().play();return f&&typeof Promise<"u"&&(f instanceof Promise||typeof f.then=="function")&&f.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(h){var f=this||t;return h._unlocked&&f._html5AudioPool.push(h),f},_autoSuspend:function(){var h=this;if(!(!h.autoSuspend||!h.ctx||typeof h.ctx.suspend>"u"||!t.usingWebAudio)){for(var f=0;f<h._howls.length;f++)if(h._howls[f]._webAudio){for(var d=0;d<h._howls[f]._sounds.length;d++)if(!h._howls[f]._sounds[d]._paused)return h}return h._suspendTimer&&clearTimeout(h._suspendTimer),h._suspendTimer=setTimeout(function(){if(h.autoSuspend){h._suspendTimer=null,h.state="suspending";var _=function(){h.state="suspended",h._resumeAfterSuspend&&(delete h._resumeAfterSuspend,h._autoResume())};h.ctx.suspend().then(_,_)}},3e4),h}},_autoResume:function(){var h=this;if(!(!h.ctx||typeof h.ctx.resume>"u"||!t.usingWebAudio))return h.state==="running"&&h.ctx.state!=="interrupted"&&h._suspendTimer?(clearTimeout(h._suspendTimer),h._suspendTimer=null):h.state==="suspended"||h.state==="running"&&h.ctx.state==="interrupted"?(h.ctx.resume().then(function(){h.state="running";for(var f=0;f<h._howls.length;f++)h._howls[f]._emit("resume")}),h._suspendTimer&&(clearTimeout(h._suspendTimer),h._suspendTimer=null)):h.state==="suspending"&&(h._resumeAfterSuspend=!0),h}};var t=new e,i=function(h){var f=this;if(!h.src||h.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}f.init(h)};i.prototype={init:function(h){var f=this;return t.ctx||c(),f._autoplay=h.autoplay||!1,f._format=typeof h.format!="string"?h.format:[h.format],f._html5=h.html5||!1,f._muted=h.mute||!1,f._loop=h.loop||!1,f._pool=h.pool||5,f._preload=typeof h.preload=="boolean"||h.preload==="metadata"?h.preload:!0,f._rate=h.rate||1,f._sprite=h.sprite||{},f._src=typeof h.src!="string"?h.src:[h.src],f._volume=h.volume!==void 0?h.volume:1,f._xhr={method:h.xhr&&h.xhr.method?h.xhr.method:"GET",headers:h.xhr&&h.xhr.headers?h.xhr.headers:null,withCredentials:h.xhr&&h.xhr.withCredentials?h.xhr.withCredentials:!1},f._duration=0,f._state="unloaded",f._sounds=[],f._endTimers={},f._queue=[],f._playLock=!1,f._onend=h.onend?[{fn:h.onend}]:[],f._onfade=h.onfade?[{fn:h.onfade}]:[],f._onload=h.onload?[{fn:h.onload}]:[],f._onloaderror=h.onloaderror?[{fn:h.onloaderror}]:[],f._onplayerror=h.onplayerror?[{fn:h.onplayerror}]:[],f._onpause=h.onpause?[{fn:h.onpause}]:[],f._onplay=h.onplay?[{fn:h.onplay}]:[],f._onstop=h.onstop?[{fn:h.onstop}]:[],f._onmute=h.onmute?[{fn:h.onmute}]:[],f._onvolume=h.onvolume?[{fn:h.onvolume}]:[],f._onrate=h.onrate?[{fn:h.onrate}]:[],f._onseek=h.onseek?[{fn:h.onseek}]:[],f._onunlock=h.onunlock?[{fn:h.onunlock}]:[],f._onresume=[],f._webAudio=t.usingWebAudio&&!f._html5,typeof t.ctx<"u"&&t.ctx&&t.autoUnlock&&t._unlockAudio(),t._howls.push(f),f._autoplay&&f._queue.push({event:"play",action:function(){f.play()}}),f._preload&&f._preload!=="none"&&f.load(),f},load:function(){var h=this,f=null;if(t.noAudio){h._emit("loaderror",null,"No audio support.");return}typeof h._src=="string"&&(h._src=[h._src]);for(var d=0;d<h._src.length;d++){var _,g;if(h._format&&h._format[d])_=h._format[d];else{if(g=h._src[d],typeof g!="string"){h._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}_=/^data:audio\/([^;,]+);/i.exec(g),_||(_=/\.([^.]+)$/.exec(g.split("?",1)[0])),_&&(_=_[1].toLowerCase())}if(_||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),_&&t.codecs(_)){f=h._src[d];break}}if(!f){h._emit("loaderror",null,"No codec support for selected audio sources.");return}return h._src=f,h._state="loading",window.location.protocol==="https:"&&f.slice(0,5)==="http:"&&(h._html5=!0,h._webAudio=!1),new n(h),h._webAudio&&a(h),h},play:function(h,f){var d=this,_=null;if(typeof h=="number")_=h,h=null;else{if(typeof h=="string"&&d._state==="loaded"&&!d._sprite[h])return null;if(typeof h>"u"&&(h="__default",!d._playLock)){for(var g=0,p=0;p<d._sounds.length;p++)d._sounds[p]._paused&&!d._sounds[p]._ended&&(g++,_=d._sounds[p]._id);g===1?h=null:_=null}}var m=_?d._soundById(_):d._inactiveSound();if(!m)return null;if(_&&!h&&(h=m._sprite||"__default"),d._state!=="loaded"){m._sprite=h,m._ended=!1;var v=m._id;return d._queue.push({event:"play",action:function(){d.play(v)}}),v}if(_&&!m._paused)return f||d._loadQueue("play"),m._id;d._webAudio&&t._autoResume();var E=Math.max(0,m._seek>0?m._seek:d._sprite[h][0]/1e3),y=Math.max(0,(d._sprite[h][0]+d._sprite[h][1])/1e3-E),T=y*1e3/Math.abs(m._rate),w=d._sprite[h][0]/1e3,C=(d._sprite[h][0]+d._sprite[h][1])/1e3;m._sprite=h,m._ended=!1;var N=function(){m._paused=!1,m._seek=E,m._start=w,m._stop=C,m._loop=!!(m._loop||d._sprite[h][2])};if(E>=C){d._ended(m);return}var P=m._node;if(d._webAudio){var k=function(){d._playLock=!1,N(),d._refreshBuffer(m);var ne=m._muted||d._muted?0:m._volume;P.gain.setValueAtTime(ne,t.ctx.currentTime),m._playStart=t.ctx.currentTime,typeof P.bufferSource.start>"u"?m._loop?P.bufferSource.noteGrainOn(0,E,86400):P.bufferSource.noteGrainOn(0,E,y):m._loop?P.bufferSource.start(0,E,86400):P.bufferSource.start(0,E,y),T!==1/0&&(d._endTimers[m._id]=setTimeout(d._ended.bind(d,m),T)),f||setTimeout(function(){d._emit("play",m._id),d._loadQueue()},0)};t.state==="running"&&t.ctx.state!=="interrupted"?k():(d._playLock=!0,d.once("resume",k),d._clearTimer(m._id))}else{var L=function(){P.currentTime=E,P.muted=m._muted||d._muted||t._muted||P.muted,P.volume=m._volume*t.volume(),P.playbackRate=m._rate;try{var ne=P.play();if(ne&&typeof Promise<"u"&&(ne instanceof Promise||typeof ne.then=="function")?(d._playLock=!0,N(),ne.then(function(){d._playLock=!1,P._unlocked=!0,f?d._loadQueue():d._emit("play",m._id)}).catch(function(){d._playLock=!1,d._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),m._ended=!0,m._paused=!0})):f||(d._playLock=!1,N(),d._emit("play",m._id)),P.playbackRate=m._rate,P.paused){d._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}h!=="__default"||m._loop?d._endTimers[m._id]=setTimeout(d._ended.bind(d,m),T):(d._endTimers[m._id]=function(){d._ended(m),P.removeEventListener("ended",d._endTimers[m._id],!1)},P.addEventListener("ended",d._endTimers[m._id],!1))}catch(G){d._emit("playerror",m._id,G)}};P.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(P.src=d._src,P.load());var j=window&&window.ejecta||!P.readyState&&t._navigator.isCocoonJS;if(P.readyState>=3||j)L();else{d._playLock=!0,d._state="loading";var z=function(){d._state="loaded",L(),P.removeEventListener(t._canPlayEvent,z,!1)};P.addEventListener(t._canPlayEvent,z,!1),d._clearTimer(m._id)}}return m._id},pause:function(h){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"pause",action:function(){f.pause(h)}}),f;for(var d=f._getSoundIds(h),_=0;_<d.length;_++){f._clearTimer(d[_]);var g=f._soundById(d[_]);if(g&&!g._paused&&(g._seek=f.seek(d[_]),g._rateSeek=0,g._paused=!0,f._stopFade(d[_]),g._node))if(f._webAudio){if(!g._node.bufferSource)continue;typeof g._node.bufferSource.stop>"u"?g._node.bufferSource.noteOff(0):g._node.bufferSource.stop(0),f._cleanBuffer(g._node)}else(!isNaN(g._node.duration)||g._node.duration===1/0)&&g._node.pause();arguments[1]||f._emit("pause",g?g._id:null)}return f},stop:function(h,f){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"stop",action:function(){d.stop(h)}}),d;for(var _=d._getSoundIds(h),g=0;g<_.length;g++){d._clearTimer(_[g]);var p=d._soundById(_[g]);p&&(p._seek=p._start||0,p._rateSeek=0,p._paused=!0,p._ended=!0,d._stopFade(_[g]),p._node&&(d._webAudio?p._node.bufferSource&&(typeof p._node.bufferSource.stop>"u"?p._node.bufferSource.noteOff(0):p._node.bufferSource.stop(0),d._cleanBuffer(p._node)):(!isNaN(p._node.duration)||p._node.duration===1/0)&&(p._node.currentTime=p._start||0,p._node.pause(),p._node.duration===1/0&&d._clearSound(p._node))),f||d._emit("stop",p._id))}return d},mute:function(h,f){var d=this;if(d._state!=="loaded"||d._playLock)return d._queue.push({event:"mute",action:function(){d.mute(h,f)}}),d;if(typeof f>"u")if(typeof h=="boolean")d._muted=h;else return d._muted;for(var _=d._getSoundIds(f),g=0;g<_.length;g++){var p=d._soundById(_[g]);p&&(p._muted=h,p._interval&&d._stopFade(p._id),d._webAudio&&p._node?p._node.gain.setValueAtTime(h?0:p._volume,t.ctx.currentTime):p._node&&(p._node.muted=t._muted?!0:h),d._emit("mute",p._id))}return d},volume:function(){var h=this,f=arguments,d,_;if(f.length===0)return h._volume;if(f.length===1||f.length===2&&typeof f[1]>"u"){var g=h._getSoundIds(),p=g.indexOf(f[0]);p>=0?_=parseInt(f[0],10):d=parseFloat(f[0])}else f.length>=2&&(d=parseFloat(f[0]),_=parseInt(f[1],10));var m;if(typeof d<"u"&&d>=0&&d<=1){if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"volume",action:function(){h.volume.apply(h,f)}}),h;typeof _>"u"&&(h._volume=d),_=h._getSoundIds(_);for(var v=0;v<_.length;v++)m=h._soundById(_[v]),m&&(m._volume=d,f[2]||h._stopFade(_[v]),h._webAudio&&m._node&&!m._muted?m._node.gain.setValueAtTime(d,t.ctx.currentTime):m._node&&!m._muted&&(m._node.volume=d*t.volume()),h._emit("volume",m._id))}else return m=_?h._soundById(_):h._sounds[0],m?m._volume:0;return h},fade:function(h,f,d,_){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"fade",action:function(){g.fade(h,f,d,_)}}),g;h=Math.min(Math.max(0,parseFloat(h)),1),f=Math.min(Math.max(0,parseFloat(f)),1),d=parseFloat(d),g.volume(h,_);for(var p=g._getSoundIds(_),m=0;m<p.length;m++){var v=g._soundById(p[m]);if(v){if(_||g._stopFade(p[m]),g._webAudio&&!v._muted){var E=t.ctx.currentTime,y=E+d/1e3;v._volume=h,v._node.gain.setValueAtTime(h,E),v._node.gain.linearRampToValueAtTime(f,y)}g._startFadeInterval(v,h,f,d,p[m],typeof _>"u")}}return g},_startFadeInterval:function(h,f,d,_,g,p){var m=this,v=f,E=d-f,y=Math.abs(E/.01),T=Math.max(4,y>0?_/y:_),w=Date.now();h._fadeTo=d,h._interval=setInterval(function(){var C=(Date.now()-w)/_;w=Date.now(),v+=E*C,v=Math.round(v*100)/100,E<0?v=Math.max(d,v):v=Math.min(d,v),m._webAudio?h._volume=v:m.volume(v,h._id,!0),p&&(m._volume=v),(d<f&&v<=d||d>f&&v>=d)&&(clearInterval(h._interval),h._interval=null,h._fadeTo=null,m.volume(d,h._id),m._emit("fade",h._id))},T)},_stopFade:function(h){var f=this,d=f._soundById(h);return d&&d._interval&&(f._webAudio&&d._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(d._interval),d._interval=null,f.volume(d._fadeTo,h),d._fadeTo=null,f._emit("fade",h)),f},loop:function(){var h=this,f=arguments,d,_,g;if(f.length===0)return h._loop;if(f.length===1)if(typeof f[0]=="boolean")d=f[0],h._loop=d;else return g=h._soundById(parseInt(f[0],10)),g?g._loop:!1;else f.length===2&&(d=f[0],_=parseInt(f[1],10));for(var p=h._getSoundIds(_),m=0;m<p.length;m++)g=h._soundById(p[m]),g&&(g._loop=d,h._webAudio&&g._node&&g._node.bufferSource&&(g._node.bufferSource.loop=d,d&&(g._node.bufferSource.loopStart=g._start||0,g._node.bufferSource.loopEnd=g._stop,h.playing(p[m])&&(h.pause(p[m],!0),h.play(p[m],!0)))));return h},rate:function(){var h=this,f=arguments,d,_;if(f.length===0)_=h._sounds[0]._id;else if(f.length===1){var g=h._getSoundIds(),p=g.indexOf(f[0]);p>=0?_=parseInt(f[0],10):d=parseFloat(f[0])}else f.length===2&&(d=parseFloat(f[0]),_=parseInt(f[1],10));var m;if(typeof d=="number"){if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"rate",action:function(){h.rate.apply(h,f)}}),h;typeof _>"u"&&(h._rate=d),_=h._getSoundIds(_);for(var v=0;v<_.length;v++)if(m=h._soundById(_[v]),m){h.playing(_[v])&&(m._rateSeek=h.seek(_[v]),m._playStart=h._webAudio?t.ctx.currentTime:m._playStart),m._rate=d,h._webAudio&&m._node&&m._node.bufferSource?m._node.bufferSource.playbackRate.setValueAtTime(d,t.ctx.currentTime):m._node&&(m._node.playbackRate=d);var E=h.seek(_[v]),y=(h._sprite[m._sprite][0]+h._sprite[m._sprite][1])/1e3-E,T=y*1e3/Math.abs(m._rate);(h._endTimers[_[v]]||!m._paused)&&(h._clearTimer(_[v]),h._endTimers[_[v]]=setTimeout(h._ended.bind(h,m),T)),h._emit("rate",m._id)}}else return m=h._soundById(_),m?m._rate:h._rate;return h},seek:function(){var h=this,f=arguments,d,_;if(f.length===0)h._sounds.length&&(_=h._sounds[0]._id);else if(f.length===1){var g=h._getSoundIds(),p=g.indexOf(f[0]);p>=0?_=parseInt(f[0],10):h._sounds.length&&(_=h._sounds[0]._id,d=parseFloat(f[0]))}else f.length===2&&(d=parseFloat(f[0]),_=parseInt(f[1],10));if(typeof _>"u")return 0;if(typeof d=="number"&&(h._state!=="loaded"||h._playLock))return h._queue.push({event:"seek",action:function(){h.seek.apply(h,f)}}),h;var m=h._soundById(_);if(m)if(typeof d=="number"&&d>=0){var v=h.playing(_);v&&h.pause(_,!0),m._seek=d,m._ended=!1,h._clearTimer(_),!h._webAudio&&m._node&&!isNaN(m._node.duration)&&(m._node.currentTime=d);var E=function(){v&&h.play(_,!0),h._emit("seek",_)};if(v&&!h._webAudio){var y=function(){h._playLock?setTimeout(y,0):E()};setTimeout(y,0)}else E()}else if(h._webAudio){var T=h.playing(_)?t.ctx.currentTime-m._playStart:0,w=m._rateSeek?m._rateSeek-m._seek:0;return m._seek+(w+T*Math.abs(m._rate))}else return m._node.currentTime;return h},playing:function(h){var f=this;if(typeof h=="number"){var d=f._soundById(h);return d?!d._paused:!1}for(var _=0;_<f._sounds.length;_++)if(!f._sounds[_]._paused)return!0;return!1},duration:function(h){var f=this,d=f._duration,_=f._soundById(h);return _&&(d=f._sprite[_._sprite][1]/1e3),d},state:function(){return this._state},unload:function(){for(var h=this,f=h._sounds,d=0;d<f.length;d++)f[d]._paused||h.stop(f[d]._id),h._webAudio||(h._clearSound(f[d]._node),f[d]._node.removeEventListener("error",f[d]._errorFn,!1),f[d]._node.removeEventListener(t._canPlayEvent,f[d]._loadFn,!1),f[d]._node.removeEventListener("ended",f[d]._endFn,!1),t._releaseHtml5Audio(f[d]._node)),delete f[d]._node,h._clearTimer(f[d]._id);var _=t._howls.indexOf(h);_>=0&&t._howls.splice(_,1);var g=!0;for(d=0;d<t._howls.length;d++)if(t._howls[d]._src===h._src||h._src.indexOf(t._howls[d]._src)>=0){g=!1;break}return r&&g&&delete r[h._src],t.noAudio=!1,h._state="unloaded",h._sounds=[],h=null,null},on:function(h,f,d,_){var g=this,p=g["_on"+h];return typeof f=="function"&&p.push(_?{id:d,fn:f,once:_}:{id:d,fn:f}),g},off:function(h,f,d){var _=this,g=_["_on"+h],p=0;if(typeof f=="number"&&(d=f,f=null),f||d)for(p=0;p<g.length;p++){var m=d===g[p].id;if(f===g[p].fn&&m||!f&&m){g.splice(p,1);break}}else if(h)_["_on"+h]=[];else{var v=Object.keys(_);for(p=0;p<v.length;p++)v[p].indexOf("_on")===0&&Array.isArray(_[v[p]])&&(_[v[p]]=[])}return _},once:function(h,f,d){var _=this;return _.on(h,f,d,1),_},_emit:function(h,f,d){for(var _=this,g=_["_on"+h],p=g.length-1;p>=0;p--)(!g[p].id||g[p].id===f||h==="load")&&(setTimeout((function(m){m.call(this,f,d)}).bind(_,g[p].fn),0),g[p].once&&_.off(h,g[p].fn,g[p].id));return _._loadQueue(h),_},_loadQueue:function(h){var f=this;if(f._queue.length>0){var d=f._queue[0];d.event===h&&(f._queue.shift(),f._loadQueue()),h||d.action()}return f},_ended:function(h){var f=this,d=h._sprite;if(!f._webAudio&&h._node&&!h._node.paused&&!h._node.ended&&h._node.currentTime<h._stop)return setTimeout(f._ended.bind(f,h),100),f;var _=!!(h._loop||f._sprite[d][2]);if(f._emit("end",h._id),!f._webAudio&&_&&f.stop(h._id,!0).play(h._id),f._webAudio&&_){f._emit("play",h._id),h._seek=h._start||0,h._rateSeek=0,h._playStart=t.ctx.currentTime;var g=(h._stop-h._start)*1e3/Math.abs(h._rate);f._endTimers[h._id]=setTimeout(f._ended.bind(f,h),g)}return f._webAudio&&!_&&(h._paused=!0,h._ended=!0,h._seek=h._start||0,h._rateSeek=0,f._clearTimer(h._id),f._cleanBuffer(h._node),t._autoSuspend()),!f._webAudio&&!_&&f.stop(h._id,!0),f},_clearTimer:function(h){var f=this;if(f._endTimers[h]){if(typeof f._endTimers[h]!="function")clearTimeout(f._endTimers[h]);else{var d=f._soundById(h);d&&d._node&&d._node.removeEventListener("ended",f._endTimers[h],!1)}delete f._endTimers[h]}return f},_soundById:function(h){for(var f=this,d=0;d<f._sounds.length;d++)if(h===f._sounds[d]._id)return f._sounds[d];return null},_inactiveSound:function(){var h=this;h._drain();for(var f=0;f<h._sounds.length;f++)if(h._sounds[f]._ended)return h._sounds[f].reset();return new n(h)},_drain:function(){var h=this,f=h._pool,d=0,_=0;if(!(h._sounds.length<f)){for(_=0;_<h._sounds.length;_++)h._sounds[_]._ended&&d++;for(_=h._sounds.length-1;_>=0;_--){if(d<=f)return;h._sounds[_]._ended&&(h._webAudio&&h._sounds[_]._node&&h._sounds[_]._node.disconnect(0),h._sounds.splice(_,1),d--)}}},_getSoundIds:function(h){var f=this;if(typeof h>"u"){for(var d=[],_=0;_<f._sounds.length;_++)d.push(f._sounds[_]._id);return d}else return[h]},_refreshBuffer:function(h){var f=this;return h._node.bufferSource=t.ctx.createBufferSource(),h._node.bufferSource.buffer=r[f._src],h._panner?h._node.bufferSource.connect(h._panner):h._node.bufferSource.connect(h._node),h._node.bufferSource.loop=h._loop,h._loop&&(h._node.bufferSource.loopStart=h._start||0,h._node.bufferSource.loopEnd=h._stop||0),h._node.bufferSource.playbackRate.setValueAtTime(h._rate,t.ctx.currentTime),f},_cleanBuffer:function(h){var f=this,d=t._navigator&&t._navigator.vendor.indexOf("Apple")>=0;if(!h.bufferSource)return f;if(t._scratchBuffer&&h.bufferSource&&(h.bufferSource.onended=null,h.bufferSource.disconnect(0),d))try{h.bufferSource.buffer=t._scratchBuffer}catch{}return h.bufferSource=null,f},_clearSound:function(h){var f=/MSIE |Trident\//.test(t._navigator&&t._navigator.userAgent);f||(h.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(h){this._parent=h,this.init()};n.prototype={init:function(){var h=this,f=h._parent;return h._muted=f._muted,h._loop=f._loop,h._volume=f._volume,h._rate=f._rate,h._seek=0,h._paused=!0,h._ended=!0,h._sprite="__default",h._id=++t._counter,f._sounds.push(h),h.create(),h},create:function(){var h=this,f=h._parent,d=t._muted||h._muted||h._parent._muted?0:h._volume;return f._webAudio?(h._node=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),h._node.gain.setValueAtTime(d,t.ctx.currentTime),h._node.paused=!0,h._node.connect(t.masterGain)):t.noAudio||(h._node=t._obtainHtml5Audio(),h._errorFn=h._errorListener.bind(h),h._node.addEventListener("error",h._errorFn,!1),h._loadFn=h._loadListener.bind(h),h._node.addEventListener(t._canPlayEvent,h._loadFn,!1),h._endFn=h._endListener.bind(h),h._node.addEventListener("ended",h._endFn,!1),h._node.src=f._src,h._node.preload=f._preload===!0?"auto":f._preload,h._node.volume=d*t.volume(),h._node.load()),h},reset:function(){var h=this,f=h._parent;return h._muted=f._muted,h._loop=f._loop,h._volume=f._volume,h._rate=f._rate,h._seek=0,h._rateSeek=0,h._paused=!0,h._ended=!0,h._sprite="__default",h._id=++t._counter,h},_errorListener:function(){var h=this;h._parent._emit("loaderror",h._id,h._node.error?h._node.error.code:0),h._node.removeEventListener("error",h._errorFn,!1)},_loadListener:function(){var h=this,f=h._parent;f._duration=Math.ceil(h._node.duration*10)/10,Object.keys(f._sprite).length===0&&(f._sprite={__default:[0,f._duration*1e3]}),f._state!=="loaded"&&(f._state="loaded",f._emit("load"),f._loadQueue()),h._node.removeEventListener(t._canPlayEvent,h._loadFn,!1)},_endListener:function(){var h=this,f=h._parent;f._duration===1/0&&(f._duration=Math.ceil(h._node.duration*10)/10,f._sprite.__default[1]===1/0&&(f._sprite.__default[1]=f._duration*1e3),f._ended(h)),h._node.removeEventListener("ended",h._endFn,!1)}};var r={},a=function(h){var f=h._src;if(r[f]){h._duration=r[f].duration,u(h);return}if(/^data:[^;]+;base64,/.test(f)){for(var d=atob(f.split(",")[1]),_=new Uint8Array(d.length),g=0;g<d.length;++g)_[g]=d.charCodeAt(g);l(_.buffer,h)}else{var p=new XMLHttpRequest;p.open(h._xhr.method,f,!0),p.withCredentials=h._xhr.withCredentials,p.responseType="arraybuffer",h._xhr.headers&&Object.keys(h._xhr.headers).forEach(function(m){p.setRequestHeader(m,h._xhr.headers[m])}),p.onload=function(){var m=(p.status+"")[0];if(m!=="0"&&m!=="2"&&m!=="3"){h._emit("loaderror",null,"Failed loading audio file with status: "+p.status+".");return}l(p.response,h)},p.onerror=function(){h._webAudio&&(h._html5=!0,h._webAudio=!1,h._sounds=[],delete r[f],h.load())},o(p)}},o=function(h){try{h.send()}catch{h.onerror()}},l=function(h,f){var d=function(){f._emit("loaderror",null,"Decoding audio data failed.")},_=function(g){g&&f._sounds.length>0?(r[f._src]=g,u(f,g)):d()};typeof Promise<"u"&&t.ctx.decodeAudioData.length===1?t.ctx.decodeAudioData(h).then(_).catch(d):t.ctx.decodeAudioData(h,_,d)},u=function(h,f){f&&!h._duration&&(h._duration=f.duration),Object.keys(h._sprite).length===0&&(h._sprite={__default:[0,h._duration*1e3]}),h._state!=="loaded"&&(h._state="loaded",h._emit("load"),h._loadQueue())},c=function(){if(t.usingWebAudio){try{typeof AudioContext<"u"?t.ctx=new AudioContext:typeof webkitAudioContext<"u"?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch{t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var h=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),f=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),d=f?parseInt(f[1],10):null;if(h&&d&&d<9){var _=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase());t._navigator&&!_&&(t.usingWebAudio=!1)}t.usingWebAudio&&(t.masterGain=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:t._volume,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}};s.Howler=t,s.Howl=i,typeof Zi<"u"?(Zi.HowlerGlobal=e,Zi.Howler=t,Zi.Howl=i,Zi.Sound=n):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=t,window.Howl=i,window.Sound=n)})();/*!
* Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
*
* howler.js v2.2.4
* howlerjs.com
*
* (c) 2013-2020, James Simpson of GoldFire Studios
* goldfirestudios.com
*
* MIT License
*/(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){var i=this;if(!i.ctx||!i.ctx.listener)return i;for(var n=i._howls.length-1;n>=0;n--)i._howls[n].stereo(t);return i},HowlerGlobal.prototype.pos=function(t,i,n){var r=this;if(!r.ctx||!r.ctx.listener)return r;if(i=typeof i!="number"?r._pos[1]:i,n=typeof n!="number"?r._pos[2]:n,typeof t=="number")r._pos=[t,i,n],typeof r.ctx.listener.positionX<"u"?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]);else return r._pos;return r},HowlerGlobal.prototype.orientation=function(t,i,n,r,a,o){var l=this;if(!l.ctx||!l.ctx.listener)return l;var u=l._orientation;if(i=typeof i!="number"?u[1]:i,n=typeof n!="number"?u[2]:n,r=typeof r!="number"?u[3]:r,a=typeof a!="number"?u[4]:a,o=typeof o!="number"?u[5]:o,typeof t=="number")l._orientation=[t,i,n,r,a,o],typeof l.ctx.listener.forwardX<"u"?(l.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),l.ctx.listener.forwardY.setTargetAtTime(i,Howler.ctx.currentTime,.1),l.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),l.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),l.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),l.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):l.ctx.listener.setOrientation(t,i,n,r,a,o);else return u;return l},Howl.prototype.init=function(t){return function(i){var n=this;return n._orientation=i.orientation||[1,0,0],n._stereo=i.stereo||null,n._pos=i.pos||null,n._pannerAttr={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:360,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:360,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:0,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:"inverse",maxDistance:typeof i.maxDistance<"u"?i.maxDistance:1e4,panningModel:typeof i.panningModel<"u"?i.panningModel:"HRTF",refDistance:typeof i.refDistance<"u"?i.refDistance:1,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:1},n._onstereo=i.onstereo?[{fn:i.onstereo}]:[],n._onpos=i.onpos?[{fn:i.onpos}]:[],n._onorientation=i.onorientation?[{fn:i.onorientation}]:[],t.call(this,i)}}(Howl.prototype.init),Howl.prototype.stereo=function(t,i){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"stereo",action:function(){n.stereo(t,i)}}),n;var r=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof i>"u")if(typeof t=="number")n._stereo=t,n._pos=[t,0,0];else return n._stereo;for(var a=n._getSoundIds(i),o=0;o<a.length;o++){var l=n._soundById(a[o]);if(l)if(typeof t=="number")l._stereo=t,l._pos=[t,0,0],l._node&&(l._pannerAttr.panningModel="equalpower",(!l._panner||!l._panner.pan)&&e(l,r),r==="spatial"?typeof l._panner.positionX<"u"?(l._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):l._panner.setPosition(t,0,0):l._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),n._emit("stereo",l._id);else return l._stereo}return n},Howl.prototype.pos=function(t,i,n,r){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"pos",action:function(){a.pos(t,i,n,r)}}),a;if(i=typeof i!="number"?0:i,n=typeof n!="number"?-.5:n,typeof r>"u")if(typeof t=="number")a._pos=[t,i,n];else return a._pos;for(var o=a._getSoundIds(r),l=0;l<o.length;l++){var u=a._soundById(o[l]);if(u)if(typeof t=="number")u._pos=[t,i,n],u._node&&((!u._panner||u._panner.pan)&&e(u,"spatial"),typeof u._panner.positionX<"u"?(u._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(i,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):u._panner.setPosition(t,i,n)),a._emit("pos",u._id);else return u._pos}return a},Howl.prototype.orientation=function(t,i,n,r){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"orientation",action:function(){a.orientation(t,i,n,r)}}),a;if(i=typeof i!="number"?a._orientation[1]:i,n=typeof n!="number"?a._orientation[2]:n,typeof r>"u")if(typeof t=="number")a._orientation=[t,i,n];else return a._orientation;for(var o=a._getSoundIds(r),l=0;l<o.length;l++){var u=a._soundById(o[l]);if(u)if(typeof t=="number")u._orientation=[t,i,n],u._node&&(u._panner||(u._pos||(u._pos=a._pos||[0,0,-.5]),e(u,"spatial")),typeof u._panner.orientationX<"u"?(u._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),u._panner.orientationY.setValueAtTime(i,Howler.ctx.currentTime),u._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):u._panner.setOrientation(t,i,n)),a._emit("orientation",u._id);else return u._orientation}return a},Howl.prototype.pannerAttr=function(){var t=this,i=arguments,n,r,a;if(!t._webAudio)return t;if(i.length===0)return t._pannerAttr;if(i.length===1)if(typeof i[0]=="object")n=i[0],typeof r>"u"&&(n.pannerAttr||(n.pannerAttr={coneInnerAngle:n.coneInnerAngle,coneOuterAngle:n.coneOuterAngle,coneOuterGain:n.coneOuterGain,distanceModel:n.distanceModel,maxDistance:n.maxDistance,refDistance:n.refDistance,rolloffFactor:n.rolloffFactor,panningModel:n.panningModel}),t._pannerAttr={coneInnerAngle:typeof n.pannerAttr.coneInnerAngle<"u"?n.pannerAttr.coneInnerAngle:t._coneInnerAngle,coneOuterAngle:typeof n.pannerAttr.coneOuterAngle<"u"?n.pannerAttr.coneOuterAngle:t._coneOuterAngle,coneOuterGain:typeof n.pannerAttr.coneOuterGain<"u"?n.pannerAttr.coneOuterGain:t._coneOuterGain,distanceModel:typeof n.pannerAttr.distanceModel<"u"?n.pannerAttr.distanceModel:t._distanceModel,maxDistance:typeof n.pannerAttr.maxDistance<"u"?n.pannerAttr.maxDistance:t._maxDistance,refDistance:typeof n.pannerAttr.refDistance<"u"?n.pannerAttr.refDistance:t._refDistance,rolloffFactor:typeof n.pannerAttr.rolloffFactor<"u"?n.pannerAttr.rolloffFactor:t._rolloffFactor,panningModel:typeof n.pannerAttr.panningModel<"u"?n.pannerAttr.panningModel:t._panningModel});else return a=t._soundById(parseInt(i[0],10)),a?a._pannerAttr:t._pannerAttr;else i.length===2&&(n=i[0],r=parseInt(i[1],10));for(var o=t._getSoundIds(r),l=0;l<o.length;l++)if(a=t._soundById(o[l]),a){var u=a._pannerAttr;u={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:u.coneInnerAngle,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:u.coneOuterAngle,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:u.coneOuterGain,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:u.distanceModel,maxDistance:typeof n.maxDistance<"u"?n.maxDistance:u.maxDistance,refDistance:typeof n.refDistance<"u"?n.refDistance:u.refDistance,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:u.rolloffFactor,panningModel:typeof n.panningModel<"u"?n.panningModel:u.panningModel};var c=a._panner;c||(a._pos||(a._pos=t._pos||[0,0,-.5]),e(a,"spatial"),c=a._panner),c.coneInnerAngle=u.coneInnerAngle,c.coneOuterAngle=u.coneOuterAngle,c.coneOuterGain=u.coneOuterGain,c.distanceModel=u.distanceModel,c.maxDistance=u.maxDistance,c.refDistance=u.refDistance,c.rolloffFactor=u.rolloffFactor,c.panningModel=u.panningModel}return t},Sound.prototype.init=function(t){return function(){var i=this,n=i._parent;i._orientation=n._orientation,i._stereo=n._stereo,i._pos=n._pos,i._pannerAttr=n._pannerAttr,t.call(this),i._stereo?n.stereo(i._stereo):i._pos&&n.pos(i._pos[0],i._pos[1],i._pos[2],i._id)}}(Sound.prototype.init),Sound.prototype.reset=function(t){return function(){var i=this,n=i._parent;return i._orientation=n._orientation,i._stereo=n._stereo,i._pos=n._pos,i._pannerAttr=n._pannerAttr,i._stereo?n.stereo(i._stereo):i._pos?n.pos(i._pos[0],i._pos[1],i._pos[2],i._id):i._panner&&(i._panner.disconnect(0),i._panner=void 0,n._refreshBuffer(i)),t.call(this)}}(Sound.prototype.reset);var e=function(t,i){i=i||"spatial",i==="spatial"?(t._panner=Howler.ctx.createPanner(),t._panner.coneInnerAngle=t._pannerAttr.coneInnerAngle,t._panner.coneOuterAngle=t._pannerAttr.coneOuterAngle,t._panner.coneOuterGain=t._pannerAttr.coneOuterGain,t._panner.distanceModel=t._pannerAttr.distanceModel,t._panner.maxDistance=t._pannerAttr.maxDistance,t._panner.refDistance=t._pannerAttr.refDistance,t._panner.rolloffFactor=t._pannerAttr.rolloffFactor,t._panner.panningModel=t._pannerAttr.panningModel,typeof t._panner.positionX<"u"?(t._panner.positionX.setValueAtTime(t._pos[0],Howler.ctx.currentTime),t._panner.positionY.setValueAtTime(t._pos[1],Howler.ctx.currentTime),t._panner.positionZ.setValueAtTime(t._pos[2],Howler.ctx.currentTime)):t._panner.setPosition(t._pos[0],t._pos[1],t._pos[2]),typeof t._panner.orientationX<"u"?(t._panner.orientationX.setValueAtTime(t._orientation[0],Howler.ctx.currentTime),t._panner.orientationY.setValueAtTime(t._orientation[1],Howler.ctx.currentTime),t._panner.orientationZ.setValueAtTime(t._orientation[2],Howler.ctx.currentTime)):t._panner.setOrientation(t._orientation[0],t._orientation[1],t._orientation[2])):(t._panner=Howler.ctx.createStereoPanner(),t._panner.pan.setValueAtTime(t._stereo,Howler.ctx.currentTime)),t._panner.connect(t._node),t._paused||t._parent.pause(t._id,!0).play(t._id,!0)}})()})(Cl);class CTe{constructor(e){this._sampleUrl=e,this._isPlaying=!1,this._startPos=0,this._currentPos=0,this._playLength=0,this._sequence=[],this._cache=new Map}async play(e,t,i=0,n=-1){this.reset(),this._currentSong=new SA(e),this._startPos=Math.trunc(i),this._playLength=n,this._currentPos=this._startPos,this._currentSongId=t,await this.preload(),this._isPlaying=!0,this.tick(),this._tickerInterval=window.setInterval(()=>this.tick(),1e3)}reset(){this._isPlaying=!1,window.clearInterval(this._tickerInterval),Cl.Howler.stop(),this._currentSongId=-1,this._currentSong=void 0,this._tickerInterval=void 0,this._startPos=0,this._playLength=0,this._sequence=[],this._currentPos=0}pause(){this._isPlaying=!1,Cl.Howler.stop()}resume(){this._isPlaying=!0}stop(){const e=this._currentSongId;this.reset(),ce.instance.soundManager.events.dispatchEvent(new tf(tf.TRAX_SONG_COMPLETE,e))}setVolume(e){Cl.Howler.volume(e)}getVolume(){return Cl.Howler.volume()}async getSample(e){let t=this._cache.get(e);return t||(t=await this.loadSong(e)),Promise.resolve(t)}async preload(){if(this._sequence=[],!!this._currentSong){for(const e of this._currentSong.channels){const t=[];for(const i of e.items){const n=await this.getSample(i.id),r=Math.ceil(i.length*2/Math.ceil(n.duration()));for(let a=0;a<r;a++)for(let o=0;o<Math.ceil(n.duration());o++)t.push({sampleId:i.id,offset:o})}this._sequence.push(t)}this._playLength<=0&&(this._playLength=Math.max(...this._sequence.map(e=>e.length)))}}async preloadSamplesForSong(e){const t=new SA(e);await Promise.all(t.getSampleIds().map(i=>this.getSample(i)))}async loadSong(e){return new Promise((t,i)=>{const n=new Cl.Howl({src:[this._sampleUrl.replace("%sample%",e.toString())],preload:!0});n.once("load",()=>{this._cache.set(e,n),t(n)}),n.once("loaderror",()=>{le.error("failed to load sample "+e),i("failed to load sample "+e)})})}tick(){this._currentPos>this._playLength-1&&this.stop(),this._isPlaying&&(this._currentSong&&this.playPosition(this._currentPos),this._currentPos++)}playPosition(e){if(!(!this._currentSong||!this._sequence)&&Cl.Howler._audioUnlocked)for(const t of this._sequence){const i=t[e];if(!i||i.sampleId===-1||i.sampleId===0)continue;const n=this._cache.get(i.sampleId);n&&(i.offset===0?n.play():n.playing()||(n.seek(i.offset),n.play()))}}}const ou=class ou{constructor(){this._priorityPlaying=-1,this._requestNumberPlaying=-1,this._previousNotificationTime=-1,this._timerInstance=-1,this._songRequestList=[],this._requestedSongs=new Map,this._availableSongs=new Map,this._songDiskInventory=new li,this._songRequestsPerPriority=[],this._songRequestCountsPerPriority=[],this._diskInventoryMissingData=[],this._songIdPlaying=-1,this._previousNotifiedSongId=-1,this._messageEvents=[new cF(this.onTraxSongInfoMessageEvent.bind(this)),new fF(this.onSongDiskInventoryMessage.bind(this))],this.onJukeboxInit=this.onJukeboxInit.bind(this),this.onJukeboxDispose=this.onJukeboxDispose.bind(this),this.onSoundMachineInit=this.onSoundMachineInit.bind(this),this.onSoundMachineDispose=this.onSoundMachineDispose.bind(this),this.onTraxSongComplete=this.onTraxSongComplete.bind(this)}init(){this._timerInstance=window.setInterval(this.onTick.bind(this),1e3),this._musicPlayer=new CTe(ce.instance.getConfiguration("external.samples.url")),this._messageEvents.forEach(e=>ce.instance.communication.connection.addMessageEvent(e)),ce.instance.roomEngine.events.addEventListener(Ot.JUKEBOX_INIT,this.onJukeboxInit),ce.instance.roomEngine.events.addEventListener(Ot.JUKEBOX_DISPOSE,this.onJukeboxDispose),ce.instance.roomEngine.events.addEventListener(Ot.SOUND_MACHINE_INIT,this.onSoundMachineInit),ce.instance.roomEngine.events.addEventListener(Ot.SOUND_MACHINE_DISPOSE,this.onSoundMachineDispose),ce.instance.soundManager.events.addEventListener(tf.TRAX_SONG_COMPLETE,this.onTraxSongComplete)}getRoomItemPlaylist(e){return this._roomItemPlaylist}get songDiskInventory(){return this._songDiskInventory}getSongDiskInventorySize(){return this._songDiskInventory.length}getSongDiskInventoryDiskId(e){return e>=0&&e<this._songDiskInventory.length?this._songDiskInventory.getKey(e):-1}getSongDiskInventorySongId(e){return e>=0&&e<this._songDiskInventory.length?this._songDiskInventory.getWithIndex(e):-1}getSongInfo(e){const t=this.getSongDataEntry(e);return t||this.requestSongInfoWithoutSamples(e),t}getSongIdPlayingAtPriority(e){return e!==this._priorityPlaying?-1:this._songIdPlaying}stop(e){const t=e===this._priorityPlaying,i=this.getTopRequestPriority()===e;t?(this.resetSongStartRequest(e),this.stopSongAtPriority(e)):(this.resetSongStartRequest(e),i&&this.reRequestSongAtPriority(this._priorityPlaying))}addSongInfoRequest(e){this.requestSong(e,!0)}requestSongInfoWithoutSamples(e){this.requestSong(e,!1)}requestUserSongDisks(){ce.instance.communication.connection.send(new G6)}updateVolume(e){this._musicPlayer.setVolume(e)}dispose(){this._timerInstance&&(clearInterval(this._timerInstance),this._timerInstance=void 0),this._messageEvents.forEach(e=>ce.instance.communication.connection.removeMessageEvent(e)),ce.instance.roomEngine.events.removeEventListener(Ot.JUKEBOX_INIT,this.onJukeboxInit),ce.instance.roomEngine.events.removeEventListener(Ot.JUKEBOX_DISPOSE,this.onJukeboxDispose),ce.instance.roomEngine.events.removeEventListener(Ot.SOUND_MACHINE_INIT,this.onSoundMachineInit),ce.instance.roomEngine.events.removeEventListener(Ot.SOUND_MACHINE_DISPOSE,this.onSoundMachineDispose),ce.instance.soundManager.events.removeEventListener(tf.TRAX_SONG_COMPLETE,this.onTraxSongComplete)}get samplesIdsInUse(){let e,t,i=[];for(let n=0;n<this._songRequestsPerPriority.length;n++)if(this._songRequestsPerPriority[n]&&(e=this._songRequestsPerPriority[n],t=this._availableSongs.get(e.songId),t)){const r=t.songData;if(r.length>0){const a=new SA(r);i=i.concat(a.getSampleIds())}}return i}onSongLoaded(e){const t=this.getTopRequestPriority();if(t>=0){const i=this.getSongIdRequestedAtPriority(t);e===i&&this.playSongObject(t,e)}}samplesUnloaded(e){throw new Error("Method not implemented.")}onTraxSongComplete(e){if(this.getSongIdPlayingAtPriority(this._priorityPlaying)===e.id){this.getTopRequestPriority()===this._priorityPlaying&&this.getSongRequestCountAtPriority(this._priorityPlaying)==this._requestNumberPlaying&&this.resetSongStartRequest(this._priorityPlaying);const t=this._priorityPlaying;this.playSongWithHighestPriority(),t>=Qs.PRIORITY_SONG_PLAY&&ce.instance.soundManager.events.dispatchEvent(new Do(Do.NPW_USER_STOP_SONG,t,e.id,-1))}}onTraxSongInfoMessageEvent(e){const t=e.getParser();for(const i of t.songs){const n=!!this.getSongDataEntry(i.id);if(this.areSamplesRequested(i.id),!n){const r=new G5(i.id,i.length,i.name,i.creator,i.data);this._availableSongs.set(i.id,r);const a=this.getTopRequestPriority(),o=this.getSongIdRequestedAtPriority(a);for(i.id===o&&this.playSongObject(a,o),ce.instance.soundManager.events.dispatchEvent(new ef(ef.SIR_TRAX_SONG_INFO_RECEIVED,i.id));this._diskInventoryMissingData.indexOf(i.id)!=-1;)this._diskInventoryMissingData.splice(this._diskInventoryMissingData.indexOf(i.id),1),this._diskInventoryMissingData.length===0&&ce.instance.soundManager.events.dispatchEvent(new Uh(Uh.SDIR_SONG_DISK_INVENTORY_RECEIVENT_EVENT))}}}onSongDiskInventoryMessage(e){const t=e.getParser();this._songDiskInventory.reset();for(let i=0;i<t.songDiskCount;i++){const n=t.getDiskId(i),r=t.getSongId(i);this._songDiskInventory.add(n,r),this._availableSongs.get(r)||(this._diskInventoryMissingData.push(r),this.requestSongInfoWithoutSamples(r))}this._diskInventoryMissingData.length===0&&ce.instance.soundManager.events.dispatchEvent(new Uh(Uh.SDIR_SONG_DISK_INVENTORY_RECEIVENT_EVENT))}onTick(){this._songRequestList.length!==0&&(ce.instance.communication.connection.send(new B6(...this._songRequestList)),this._songRequestList=[])}requestSong(e,t){this._requestedSongs.get(e)===void 0&&(this._requestedSongs.set(e,t),this._songRequestList.push(e))}areSamplesRequested(e){return this._requestedSongs.get(e)?this._requestedSongs.get(e):!1}processSongEntryForPlaying(e,t=!0){return this.getSongDataEntry(e)?!0:(this.addSongInfoRequest(e),!1)}playSong(e,t,i=0,n=0,r=.5,a=.5){return!this.addSongStartRequest(t,e,i,n,r,a)||!this.processSongEntryForPlaying(e)?!1:(t>=this._priorityPlaying&&this.playSongObject(t,e),!0)}playSongObject(e,t){if(t===-1||e<0||e>=Qs.PRIORITY_COUNT)return!1;let i=!1;this.stopSongAtPriority(this._priorityPlaying)&&(i=!0);const n=this.getSongDataEntry(t);if(!n)return!1;if(i)return!0;this._musicPlayer.setVolume(ce.instance.soundManager.traxVolume);let r=ou.SKIP_POSITION_SET,a=0;const o=this.getSongStartRequest(e);return o&&(r=o.startPos,a=o.playLength,o.fadeInSeconds,o.fadeOutSeconds),r>=n.length/1e3?!1:(r<=ou.SKIP_POSITION_SET&&(r=0),r=Math.trunc(r),this._priorityPlaying=e,this._requestNumberPlaying=this.getSongRequestCountAtPriority(e),this._songIdPlaying=t,this._priorityPlaying<=ou.MAXIMUM_NOTIFY_PRIORITY&&this.notifySongPlaying(n),this._musicPlayer.preloadSamplesForSong(n.songData).then(()=>this._musicPlayer.play(n.songData,n.id,r,a)),e>Qs.PRIORITY_ROOM_PLAYLIST&&ce.instance.soundManager.events.dispatchEvent(new Do(Do.NPE_USER_PLAY_SONG,e,n.id,-1)),!0)}notifySongPlaying(e){const i=Date.now();e.length>=8e3&&(this._previousNotifiedSongId!=e.id||i>this._previousNotificationTime+8e3)&&(ce.instance.soundManager.events.dispatchEvent(new RA(e.name,e.creator)),this._previousNotifiedSongId=e.id,this._previousNotificationTime=i)}addSongStartRequest(e,t,i,n,r,a){if(e<0||e>=Qs.PRIORITY_COUNT)return!1;const o=new bTe(t,i,n,r,a);return this._songRequestsPerPriority[e]=o,this._songRequestCountsPerPriority[e]=this._songRequestCountsPerPriority[e]+1,!0}getSongDataEntry(e){let t;return this._availableSongs&&(t=this._availableSongs.get(e)),t}getSongStartRequest(e){return this._songRequestsPerPriority[e]}getTopRequestPriority(){return this._songRequestsPerPriority.length-1}getSongIdRequestedAtPriority(e){return e<0||e>=Qs.PRIORITY_COUNT||!this._songRequestsPerPriority[e]?-1:this._songRequestsPerPriority[e].songId}getSongRequestCountAtPriority(e){return e<0||e>=Qs.PRIORITY_COUNT?-1:this._songRequestCountsPerPriority[e]}playSongWithHighestPriority(){let e;this._priorityPlaying=-1,this._songIdPlaying=-1,this._requestNumberPlaying=-1;let i=this.getTopRequestPriority();for(;i>=0;){if(e=this.getSongIdRequestedAtPriority(i),e>=0&&this.playSongObject(i,e))return;i--}}resetSongStartRequest(e){e>=0&&e<Qs.PRIORITY_COUNT&&(this._songRequestsPerPriority[e]=void 0)}reRequestSongAtPriority(e){this._songRequestCountsPerPriority[e]=this._songRequestCountsPerPriority[e]+1}stopSongAtPriority(e){if(e===this._priorityPlaying&&this._priorityPlaying>=0){const t=this.getSongIdPlayingAtPriority(e);if(t>=0)return this.getSongDataEntry(t),this._musicPlayer.stop(),!0}return!1}onSoundMachineInit(e){this.disposeRoomPlaylist()}onSoundMachineDispose(e){this.disposeRoomPlaylist()}onJukeboxInit(e){this.disposeRoomPlaylist(),this._roomItemPlaylist=new ATe,this._roomItemPlaylist.init(),ce.instance.communication.connection.send(new F6)}onJukeboxDispose(e){this.disposeRoomPlaylist()}disposeRoomPlaylist(){this._roomItemPlaylist&&(this._roomItemPlaylist.dispose(),this._roomItemPlaylist=void 0)}};ou.SKIP_POSITION_SET=-1,ou.MAXIMUM_NOTIFY_PRIORITY=Qs.PRIORITY_ROOM_PLAYLIST;let bA=ou;class MTe extends Yr{constructor(){super(),this._volumeSystem=.5,this._volumeFurni=.5,this._volumeTrax=.5,this._internalSamples=new li,this._furniSamples=new li,this._furnitureBeingPlayed=new li,this._musicController=new bA,this.onEvent=this.onEvent.bind(this)}onInit(){this._musicController.init(),ce.instance.roomEngine.events.addEventListener($s.PLAY_SAMPLE,this.onEvent),ce.instance.roomEngine.events.addEventListener(Se.REMOVED,this.onEvent),ce.instance.roomEngine.events.addEventListener(ft.DISPOSED,this.onEvent),ce.instance.events.addEventListener(Su.SETTINGS_UPDATED,this.onEvent),ce.instance.events.addEventListener(hd.PLAY_SOUND,this.onEvent)}onDispose(){this._musicController&&(this._musicController.dispose(),this._musicController=null),ce.instance.roomEngine.events.removeEventListener($s.PLAY_SAMPLE,this.onEvent),ce.instance.roomEngine.events.removeEventListener(Se.REMOVED,this.onEvent),ce.instance.roomEngine.events.removeEventListener(ft.DISPOSED,this.onEvent),ce.instance.events.removeEventListener(Su.SETTINGS_UPDATED,this.onEvent),ce.instance.events.removeEventListener(hd.PLAY_SOUND,this.onEvent)}onEvent(e){var t;switch(e.type){case $s.PLAY_SAMPLE:{const i=e;this.playFurniSample(i.objectId,i.sampleId,i.pitch);return}case Se.REMOVED:{const i=e;this.stopFurniSample(i.objectId);return}case ft.DISPOSED:{this._furnitureBeingPlayed.getKeys().forEach(i=>{this.stopFurniSample(i)});return}case Su.SETTINGS_UPDATED:{const i=e,n=i.volumeFurni!==this._volumeFurni,r=i.volumeTrax!==this._volumeTrax;this._volumeSystem=i.volumeSystem/100,this._volumeFurni=i.volumeFurni/100,this._volumeTrax=i.volumeTrax/100,n&&this.updateFurniSamplesVolume(this._volumeFurni),r&&((t=this._musicController)==null||t.updateVolume(this._volumeTrax));return}case hd.PLAY_SOUND:{const i=e;this.playInternalSample(i.sampleCode);return}}}playSample(e,t,i=1){e.volume=t,e.currentTime=0;try{e.play()}catch(n){le.error(n)}}playInternalSample(e){let t=this._internalSamples.getValue(e);if(!t){const i=Te.getValue("sounds.url");t=new Audio(i.replace("%sample%",e)),this._internalSamples.add(e,t)}this.playSample(t,this._volumeSystem)}playFurniSample(e,t,i){let n=this._furniSamples.getValue(t);if(!n){const r=Te.getValue("external.samples.url");n=new Audio(r.replace("%sample%",t.toString())),this._furniSamples.add(t,n)}this._furnitureBeingPlayed.hasKey(e)||this._furnitureBeingPlayed.add(e,t),n.onended=r=>{this.stopFurniSample(e)},n.onpause=r=>{this.stopFurniSample(e)},n.onerror=r=>{this.stopFurniSample(e)},this.playSample(n,this._volumeFurni,i)}stopInternalSample(e){const t=this._internalSamples.getValue(e);if(t)try{t.pause()}catch(i){le.error(i)}}stopFurniSample(e){const t=this._furnitureBeingPlayed.getValue(e);if(!t)return;const i=this._furniSamples.getValue(t);if(this._furnitureBeingPlayed.remove(e),!!i)try{i.pause()}catch(n){le.error(n)}}updateInternalSamplesVolume(e){this._internalSamples.getValues().forEach(t=>{t.volume=e})}updateFurniSamplesVolume(e){this._furniSamples.getValues().forEach(t=>{t.volume=e})}get traxVolume(){return this._volumeTrax}get musicController(){return this._musicController}}He.available;de.SCALE_MODE=window.devicePixelRatio%1?tn.LINEAR:tn.NEAREST;de.ROUND_PIXELS=!0;de.GC_MAX_IDLE=120;const Sn=class Sn{constructor(e,t){Sn.INSTANCE||(Sn.INSTANCE=this),this._application=new oi(t),this._core=e,this._events=new fn,this._communication=new pEe(e.communication),this._localization=new vEe(this._communication),this._avatar=new OA,this._roomEngine=new Z_(this._communication),this._sessionDataManager=new STe(this._communication),this._roomSessionManager=new RTe(this._communication,this._roomEngine),this._roomManager=new QR(this._roomEngine,this._roomEngine.visualizationFactory,this._roomEngine.logicFactory),this._cameraManager=new aZ,this._soundManager=new MTe,this._linkTrackers=[],this._isReady=!1,this._isDisposed=!1,this._core.configuration.events.addEventListener(Ao.LOADED,this.onConfigurationLoadedEvent.bind(this)),this._roomEngine.events.addEventListener(ft.ENGINE_INITIALIZED,this.onRoomEngineReady.bind(this))}static bootstrap(){Sn.INSTANCE&&(Sn.INSTANCE.dispose(),Sn.INSTANCE=null);const e=document.createElement("canvas"),t=new this(new _Q,{autoDensity:!1,width:window.innerWidth,height:window.innerHeight,resolution:window.devicePixelRatio,view:e});e.addEventListener("webglcontextlost",()=>t.events.dispatchEvent(new Ye(Sn.WEBGL_CONTEXT_LOST)))}init(){if(!(this._isReady||this._isDisposed)){if(this._avatar&&this._avatar.init(),this._soundManager&&this._soundManager.init(),this._roomEngine&&(this._roomEngine.sessionDataManager=this._sessionDataManager,this._roomEngine.roomSessionManager=this._roomSessionManager,this._roomEngine.roomManager=this._roomManager,this._sessionDataManager&&this._sessionDataManager.init(),this._roomSessionManager&&this._roomSessionManager.init(),this._roomEngine.init()),!this._communication.connection)throw new Error("No connection found");new mEe(this._communication.connection),this._isReady=!0}}dispose(){this._isDisposed||(this._roomManager&&(this._roomManager.dispose(),this._roomManager=null),this._roomSessionManager&&(this._roomSessionManager.dispose(),this._roomSessionManager=null),this._sessionDataManager&&(this._sessionDataManager.dispose(),this._sessionDataManager=null),this._roomEngine&&(this._roomEngine.dispose(),this._roomEngine=null),this._avatar&&(this._avatar.dispose(),this._avatar=null),this._soundManager&&(this._soundManager.dispose(),this._soundManager=null),this._communication&&(this._communication.dispose(),this._communication=null),this._application&&(this._application.destroy(),this._application=null),this._isDisposed=!0,this._isReady=!1)}onConfigurationLoadedEvent(e){ga().maxFPS=Te.getValue("system.fps.max",24),le.LOG_DEBUG=Te.getValue("system.log.debug",!0),le.LOG_WARN=Te.getValue("system.log.warn",!1),le.LOG_ERROR=Te.getValue("system.log.error",!1),le.LOG_EVENTS=Te.getValue("system.log.events",!1),le.LOG_PACKETS=Te.getValue("system.log.packets",!1),Vv.LANDSCAPES_ENABLED=Te.getValue("room.landscapes.enabled",!0)}onRoomEngineReady(e){this.startSendingHeartBeat()}getConfiguration(e,t=null){return Te.getValue(e,t)}getLocalization(e){return this._localization.getValue(e)}getLocalizationWithParameter(e,t,i){return this._localization.getValueWithParameter(e,t,i)}getLocalizationWithParameters(e,t,i){return this._localization.getValueWithParameters(e,t,i)}addLinkEventTracker(e){this._linkTrackers.indexOf(e)>=0||this._linkTrackers.push(e)}removeLinkEventTracker(e){const t=this._linkTrackers.indexOf(e);t!==-1&&this._linkTrackers.splice(t,1)}createLinkEvent(e){if(!(!e||e===""))for(const t of this._linkTrackers){if(!t)continue;const i=t.eventUrlPrefix;i.length>0?e.substr(0,i.length)===i&&t.linkReceived(e):t.linkReceived(e)}}startSendingHeartBeat(){this.sendHeartBeat(),window.setInterval(this.sendHeartBeat,1e4)}sendHeartBeat(){Jc.sendHeartBeat()}get application(){return this._application}get core(){return this._core}get events(){return this._events}get localization(){return this._localization}get communication(){return this._communication}get avatar(){return this._avatar}get roomEngine(){return this._roomEngine}get sessionDataManager(){return this._sessionDataManager}get roomSessionManager(){return this._roomSessionManager}get roomManager(){return this._roomManager}get cameraManager(){return this._cameraManager}get soundManager(){return this._soundManager}get width(){return this._application.renderer.width}get height(){return this._application.renderer.height}get isReady(){return this._isReady}get isDisposed(){return this._isDisposed}static get instance(){return this.INSTANCE||null}};Sn.WEBGL_CONTEXT_LOST="NE_WEBGL_CONTEXT_LOST",Sn.WEBGL_UNAVAILABLE="NE_WEBGL_UNAVAILABLE",Sn.READY="NE_READY!",Sn.INSTANCE=null;let ce=Sn;const Me=class Me{static format(e,t="",i=3){return e>i*Me.YEAR?Me.getLocalization("friendlytime.years"+t,Math.round(e/Me.YEAR)):e>i*Me.MONTH?Me.getLocalization("friendlytime.months"+t,Math.round(e/Me.MONTH)):e>i*Me.DAY?Me.getLocalization("friendlytime.days"+t,Math.round(e/Me.DAY)):e>i*Me.HOUR?Me.getLocalization("friendlytime.hours"+t,Math.round(e/Me.HOUR)):e>i*Me.MINUTE?Me.getLocalization("friendlytime.minutes"+t,Math.round(e/Me.MINUTE)):Me.getLocalization("friendlytime.seconds"+t,Math.round(e))}static shortFormat(e,t="",i=3){return e>i*Me.YEAR?Me.getLocalization("friendlytime.years.short"+t,Math.round(e/Me.YEAR)):e>i*Me.MONTH?Me.getLocalization("friendlytime.months.short"+t,Math.round(e/Me.MONTH)):e>i*Me.DAY?Me.getLocalization("friendlytime.days.short"+t,Math.round(e/Me.DAY)):e>i*Me.HOUR?Me.getLocalization("friendlytime.hours.short"+t,Math.round(e/Me.HOUR)):e>i*Me.MINUTE?Me.getLocalization("friendlytime.minutes.short"+t,Math.round(e/Me.MINUTE)):Me.getLocalization("friendlytime.seconds.short"+t,Math.round(e))}static getLocalization(e,t){return ce.instance.getLocalizationWithParameter(e,"amount",t.toString())}};Me.MINUTE=60,Me.HOUR=60*Me.MINUTE,Me.DAY=24*Me.HOUR,Me.WEEK=7*Me.DAY,Me.MONTH=30*Me.DAY,Me.YEAR=365*Me.DAY;let gk=Me;const XE=class XE{static isBuilderClubId(e){return e>=XE.BUILDER_CLUB_FURNI_ID_BASE}};XE.BUILDER_CLUB_FURNI_ID_BASE=2147418112;let zv=XE;const NTe=s=>s>>>0,V5=s=>{const e=NTe(s);return e>=Math.pow(2,31)?e-Math.pow(2,32):e};class Xw{constructor(e){if(this._id=e.id,this._isMain=e.main||!1,this._avatarSets=new Map,this._bodyParts=[],this._allBodyParts=[],e.avatarSets&&e.avatarSets.length>0)for(const i of e.avatarSets){if(!i)continue;const n=new Xw(i);this._avatarSets.set(n.id,n)}if(e.bodyParts&&e.bodyParts.length>0)for(const i of e.bodyParts)i&&this._bodyParts.push(i.id);let t=this._bodyParts.concat();for(const i of this._avatarSets.values())i&&(t=t.concat(i.getBodyParts()));this._allBodyParts=t}findAvatarSet(e){if(e===this._id)return this;for(const t of this._avatarSets.values())if(t&&t.findAvatarSet(e))return t;return null}getBodyParts(){return this._allBodyParts.concat()}get id(){return this._id}get isMain(){if(this._isMain)return!0;for(const e of this._avatarSets.values())if(e&&e.isMain)return!0;return!1}}class rn{constructor(e=0,t=0,i=0){this._x=e,this._y=t,this._z=i}static dot(e,t){return e.x*t.x+e.y*t.y+e.z*t.z}static cross(e,t){const i=new rn;return i.x=e.y*t.z-e.z*t.y,i.y=e.z*t.x-e.x*t.z,i.z=e.x*t.y-e.y*t.x,i}static subtract(e,t){return new rn(e.x-t.x,e.y-t.y,e.z-t.z)}dot(e){return this._x*e.x+this._y*e.y+this._z*e.z}cross(e){const t=new rn;return t.x=this._y*e.z-this._z*e.y,t.y=this._z*e.x-this._x*e.z,t.z=this._x*e.y-this._y*e.x,t}subtract(e){this._x=this._x-e.x,this._y=this._y-e.y,this._z=this._z-e.z}add(e){this._x=this._x+e.x,this._y=this._y+e.y,this._z=this._z+e.z}normalize(){const e=1/this.length();this._x=this._x*e,this._y=this._y*e,this._z=this._z*e}scaleBy(e){this._x*=e,this._y*=e,this._z*=e}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z)}toString(){return"Vector3D: ("+this._x+","+this._y+","+this._z+")"}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}}class j5{constructor(e,t,i){this._location=new rn(e,t,i),this._transformedLocation=new rn,this._needsTransformation=!1,(e!=0||t!=0||i!=0)&&(this._needsTransformation=!0)}get location(){return this._location}get transformedLocation(){return this._transformedLocation}applyTransform(e){this._needsTransformation&&(this._transformedLocation=e.vectorMultiplication(this._location))}}class pk extends j5{constructor(e,t=!1){super(parseFloat(e.x),parseFloat(e.y),parseFloat(e.z)),this._id=e.id,this._radius=parseFloat(e.radius),this._normal=new rn(parseFloat(e.nx),parseFloat(e.ny),parseFloat(e.nz)),this._isDoubleSided=e.double||!1,this._isDynamic=t}getDistance(e){const t=Math.abs(e.z-this.transformedLocation.z-this._radius),i=Math.abs(e.z-this.transformedLocation.z+this._radius);return Math.min(t,i)}get id(){return this._id}get normal(){return this._normal}get isDoubleSided(){return this._isDoubleSided}toString(){return this._id+": "+this.location+" - "+this.transformedLocation}get isDynamic(){return this._isDynamic}}class PTe extends j5{constructor(e){if(super(parseFloat(e.x),parseFloat(e.y),parseFloat(e.z)),this._id=e.id,this._radius=parseFloat(e.radius),this._parts=new Map,this._dynamicParts=new Map,e.items&&e.items.length>0)for(const t of e.items){if(!t)continue;const i=new pk(t);this._parts.set(i.id,i)}}getDynamicParts(e){const t=this._dynamicParts.get(e),i=[];if(t)for(const n in t){const r=t[n];r&&i.push(r)}return i}getPartIds(e){const t=[];for(const i of this._parts.values())i&&t.push(i.id);if(e){const i=this._dynamicParts.get(e);if(i)for(const n in i){const r=i[n];r&&t.push(r.id)}}return t}removeDynamicParts(e){return this._dynamicParts.delete(e),!0}addPart(e,t){if(this.hasPart(e.id,t))return!1;let i=this._dynamicParts.get(t);return i||(i={},this._dynamicParts.set(t,i)),i[e.id]=new pk(e,!0),!0}hasPart(e,t){let i=this._parts.get(e)||null;return!i&&this._dynamicParts.get(t)!==void 0&&(i=this._dynamicParts.get(t)[e]||null),i!==null}getParts(e,t,i,n){const r=[];for(const l of this._parts.values())l&&(l.applyTransform(e),r.push([l.getDistance(t),l]));const a=this._dynamicParts.get(n);if(a)for(const l in a){const u=a[l];u&&(u.applyTransform(e),r.push([u.getDistance(t),u]))}r.sort((l,u)=>{const c=l[0],h=u[0];return c<h?-1:c>h?1:0});const o=[];for(const l of r)l&&o.push(l[1].id);return o}getDistance(e){const t=Math.abs(e.z-this.transformedLocation.z-this._radius),i=Math.abs(e.z-this.transformedLocation.z+this._radius);return Math.min(t,i)}get id(){return this._id}get radius(){return this._radius}}const Ks=class Ks{constructor(e=0,t=0,i=0,n=0,r=0,a=0,o=0,l=0,u=0){this._data=[e,t,i,n,r,a,o,l,u]}static getXRotationMatrix(e){const t=e*Math.PI/180,i=Math.cos(t),n=Math.sin(t);return new Ks(1,0,0,0,i,-n,0,n,i)}static getYRotationMatrix(e){const t=e*Math.PI/180,i=Math.cos(t),n=Math.sin(t);return new Ks(i,0,n,0,1,0,-n,0,i)}static getZRotationMatrix(e){const t=e*Math.PI/180,i=Math.cos(t),n=Math.sin(t);return new Ks(i,-n,0,n,i,0,0,0,1)}identity(){return this._data=[1,0,0,0,1,0,0,0,1],this}vectorMultiplication(e){const t=e.x*this._data[0]+e.y*this._data[3]+e.z*this._data[6],i=e.x*this._data[1]+e.y*this._data[4]+e.z*this._data[7],n=e.x*this._data[2]+e.y*this._data[5]+e.z*this._data[8];return new rn(t,i,n)}multiply(e){const t=this._data[0]*e.data[0]+this._data[1]*e.data[3]+this._data[2]*e.data[6],i=this._data[0]*e.data[1]+this._data[1]*e.data[4]+this._data[2]*e.data[7],n=this._data[0]*e.data[2]+this._data[1]*e.data[5]+this._data[2]*e.data[8],r=this._data[3]*e.data[0]+this._data[4]*e.data[3]+this._data[5]*e.data[6],a=this._data[3]*e.data[1]+this._data[4]*e.data[4]+this._data[5]*e.data[7],o=this._data[3]*e.data[2]+this._data[4]*e.data[5]+this._data[5]*e.data[8],l=this._data[6]*e.data[0]+this._data[7]*e.data[3]+this._data[8]*e.data[6],u=this._data[6]*e.data[1]+this._data[7]*e.data[4]+this._data[8]*e.data[7],c=this._data[6]*e.data[2]+this._data[7]*e.data[5]+this._data[8]*e.data[8];return new Ks(t,i,n,r,a,o,l,u,c)}scalarMultiply(e){let t=0;for(;t<this._data.length;)this._data[t]=this._data[t]*e,t++}rotateX(e){const t=e*Math.PI/180,i=Math.cos(t),n=Math.sin(t);return new Ks(1,0,0,0,i,-n,0,n,i).multiply(this)}rotateY(e){const t=e*Math.PI/180,i=Math.cos(t),n=Math.sin(t);return new Ks(i,0,n,0,1,0,-n,0,i).multiply(this)}rotateZ(e){const t=e*Math.PI/180,i=Math.cos(t),n=Math.sin(t);return new Ks(i,-n,0,n,i,0,0,0,1).multiply(this)}skew(){}transpose(){return new Ks(this._data[0],this._data[3],this._data[6],this._data[1],this._data[4],this._data[7],this._data[2],this._data[5],this._data[8])}equals(e){return!1}get data(){return this._data}};Ks.IDENTITY=new Ks(1,0,0,0,1,0,0,0,1),Ks.TOLERANS=1e-18;let gd=Ks;class kTe{constructor(e){this._camera=new rn(0,0,10),this._avatarSet=new Xw(e.avatarSets[0]),this._geometryTypes=new Map,this._itemIdToBodyPartMap=new Map,this._transformation=new gd,this._canvases=new Map;const t=e.camera;if(t&&(this._camera.x=parseFloat(t.x),this._camera.y=parseFloat(t.y),this._camera.z=parseFloat(t.z)),e.canvases&&e.canvases.length>0)for(const i of e.canvases){if(!i)continue;const n=i.scale,r=new Map;if(i.geometries&&i.geometries.length>0)for(const a of i.geometries){if(!a)continue;const o=new PQ(a,n);r.set(o.id,o)}this._canvases.set(n,r)}if(e.types&&e.types.length>0)for(const i of e.types){if(!i)continue;const n=new Map,r=new Map;if(i.bodyParts&&i.bodyParts.length>0)for(const a of i.bodyParts){if(!a)continue;const o=new PTe(a);n.set(o.id,o);for(const l of o.getPartIds(null))r.set(l,o)}this._geometryTypes.set(i.id,n),this._itemIdToBodyPartMap.set(i.id,r)}}removeDynamicItems(e){for(const t of this._geometryTypes.values())if(t)for(const i of t.values())i&&i.removeDynamicParts(e)}getBodyPartIdsInAvatarSet(e){const t=this._avatarSet.findAvatarSet(e);return t?t.getBodyParts():[]}isMainAvatarSet(e){const t=this._avatarSet.findAvatarSet(e);return t?t.isMain:!1}getCanvas(e,t){const i=this._canvases.get(e);return i&&i.get(t)||null}typeExists(e){return!!this._geometryTypes.get(e)}hasBodyPart(e,t){if(this.typeExists(e)){const i=this._geometryTypes.get(e);if(i&&i.get(t))return!0}return!1}getBodyPartIDs(e){const t=this.getBodyPartsOfType(e),i=[];if(t)for(const n of t.values())n&&i.push(n.id);return i}getBodyPartsOfType(e){return this.typeExists(e)?this._geometryTypes.get(e):new Map}getBodyPart(e,t){return this.getBodyPartsOfType(e).get(t)||null}getBodyPartOfItem(e,t,i){const n=this._itemIdToBodyPartMap.get(e);if(n){const r=n.get(t);if(r)return r;const a=this.getBodyPartsOfType(e);if(a){for(const o of a.values())if(o&&o.hasPart(t,i))return o}}return null}getBodyPartsInAvatarSet(e,t){const i=this.getBodyPartIdsInAvatarSet(t),n=[];for(const r of i){if(!r)continue;const a=e.get(r);a&&n.push(a)}return n}getBodyPartsAtAngle(e,t,i){if(!i)return[];const n=this.getBodyPartsOfType(i),r=this.getBodyPartsInAvatarSet(n,e),a=[],o=[];this._transformation=gd.getYRotationMatrix(t);for(const l of r.values())l&&(l.applyTransform(this._transformation),a.push([l.getDistance(this._camera),l]));a.sort((l,u)=>{const c=l[0],h=u[0];return c<h?-1:c>h?1:0});for(const l of a)l&&o.push(l[1].id);return o}getParts(e,t,i,n,r){if(this.hasBodyPart(e,t)){const a=this.getBodyPartsOfType(e).get(t);return this._transformation=gd.getYRotationMatrix(i),a.getParts(this._transformation,this._camera,n,r)}return[]}}class xTe extends fn{constructor(e){super(),this._renderManager=e,this._geometry=null,this._figureData=new LQ,this._partSetsData=new UQ,this._animationData=new NQ,this._animationManager=new SQ,this._mandatorySetTypeIds={},this._actionManager=null,this._defaultAction=null}init(){}dispose(){this.disposed||(super.dispose(),this._renderManager=null,this._figureData=null,this._partSetsData=null,this._animationData=null,this._mandatorySetTypeIds=null)}initGeometry(e){e&&(this._geometry=new kTe(e))}initActions(e,t){t&&(this._actionManager=new mQ(e,t),this._defaultAction=this._actionManager.getDefaultAction())}updateActions(e){this._actionManager.updateActions(e),this._defaultAction=this._actionManager.getDefaultAction()}initPartSets(e){return e&&this._partSetsData.parse(e)?(this._partSetsData.getPartDefinition("ri").appendToFigure=!0,this._partSetsData.getPartDefinition("li").appendToFigure=!0,!0):!1}initAnimation(e){return e?this._animationData.parse(e):!1}initFigureData(e){return e?this._figureData.parse(e):!1}injectFigureData(e){this._figureData.injectJSON(e)}registerAnimations(e,t="fx",i=200){let n=0;for(;n<i;){const r=e.getCollection(t+n);if(r){const a=r.data;this._animationManager.registerAnimation(this,a.animations)}n++}}registerAnimation(e){this._animationManager.registerAnimation(this,e)}getPartColor(e,t,i=0){const n=e.getPartColorIds(t);if(!n||n.length<i)return null;const r=this._figureData.getSetType(t);if(r==null)return null;const a=this._figureData.getPalette(r.paletteID);return a?a.getColor(n[i]):null}getBodyPartData(e,t,i){return this._animationManager.getLayerData(e,t,i)}getAnimation(e){return this._animationManager.getAnimation(e)}getActionDefinition(e){return this._actionManager.getActionDefinition(e)}getActionDefinitionWithState(e){return this._actionManager.getActionDefinitionWithState(e)}isMainAvatarSet(e){return this._geometry.isMainAvatarSet(e)}sortActions(e){return this._actionManager.sortActions(e)}maxFrames(e){let t=0;for(const i of e)t=Math.max(t,this._animationData.getFrameCount(i.definition));return t}getMandatorySetTypeIds(e,t){return this._mandatorySetTypeIds[e]||(this._mandatorySetTypeIds[e]=[]),this._mandatorySetTypeIds[e][t]?this._mandatorySetTypeIds[e][t]:(this._mandatorySetTypeIds[e][t]=this._figureData.getMandatorySetTypeIds(e,t),this._mandatorySetTypeIds[e][t])}getDefaultPartSet(e,t){return this._figureData.getDefaultPartSet(e,t)}getCanvasOffsets(e,t,i){return this._actionManager.getCanvasOffsets(e,t,i)}getCanvas(e,t){return this._geometry.getCanvas(e,t)}removeDynamicItems(e){this._geometry.removeDynamicItems(e)}getActiveBodyPartIds(e,t){let i=[];const n=[],r=e.definition.geometryType;if(e.definition.isAnimation){const a=e.definition.state+"."+e.actionParameter,o=this._animationManager.getAnimation(a);if(o&&(i=o.getAnimatedBodyPartIds(0,e.overridingAction),o.hasAddData())){const l={id:"",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:1},u={setType:""};for(const c of o.addData){const h=this._geometry.getBodyPart(r,c.align);if(h){l.id=c.id,h.addPart(l,t),u.setType=c.id;const f=this._partSetsData.addPartDefinition(u);f.appendToFigure=!0,c.base===""&&(f.staticId=1),n.indexOf(h.id)===-1&&n.push(h.id)}}}for(const l of i){const u=this._geometry.getBodyPart(r,l);u&&n.indexOf(u.id)===-1&&n.push(u.id)}}else{i=this._partSetsData.getActiveParts(e.definition);for(const a of i){const o=this._geometry.getBodyPartOfItem(r,a,t);o&&n.indexOf(o.id)===-1&&n.push(o.id)}}return n}getBodyPartsUnordered(e){return this._geometry.getBodyPartIdsInAvatarSet(e)}getBodyParts(e,t,i){const n=Mo.DIRECTION_TO_ANGLE[i];return this._geometry.getBodyPartsAtAngle(e,n,t)}getFrameBodyPartOffset(e,t,i,n){const r=this._animationData.getAction(e.definition);return r?r.getFrameBodyPartOffset(t,i,n):V_.DEFAULT_OFFSET}getParts(e,t,i,n,r,a,o,l=null){let u=null,c=[],h=null;if(!i==null)return[];const f=this._partSetsData.getActiveParts(i.definition),d=[];let _=[0];const g=this._animationData.getAction(i.definition);if(i.definition.isAnimation){const E=i.definition.state+"."+i.actionParameter,y=this._animationManager.getAnimation(E);if(y){_=this.getPopulatedArray(y.frameCount(i.overridingAction));for(const T of y.getAnimatedBodyPartIds(0,i.overridingAction))if(T===e){const w=this._geometry.getBodyPart(n,T);if(w)for(const C of w.getDynamicParts(o))f.push(C.id)}}}const p=this._geometry.getParts(n,e,r,f,o),m=t.getPartTypeIds();for(const E of m){if(l&&l.get(E))continue;const y=t.getPartSetId(E),T=t.getPartColorIds(E),w=this._figureData.getSetType(E);if(w){const C=this._figureData.getPalette(w.paletteID);if(C){const N=w.getPartSet(y);if(N){a=a.concat(N.hiddenLayers);for(const P of N.parts)if(p.indexOf(P.type)>-1){if(g){const ne=g.getPart(P.type);ne?c=ne.frames:c=_}else c=_;u=i.definition,f.indexOf(P.type)===-1&&(u=this._defaultAction);const k=this._partSetsData.getPartDefinition(P.type);let L=k?k.flippedSetType:P.type;(!L||L==="")&&(L=P.type),T&&T.length>P.colorLayerIndex-1&&(h=C.getColor(T[P.colorLayerIndex-1]));const j=P.colorLayerIndex>0,z=new oT(e,P.type,P.id.toString(),h,c,u,j,P.paletteMap,L);d.push(z)}}}}}const v=[];for(const E of p){let y=null,T=!1;const w=l&&l.get(E);for(const C of d)C.partType===E&&(w?y=C.color:(T=!0,a.indexOf(E)===-1&&v.push(C)));if(!T){if(w){const C=l.get(E);let N=0,P=0;for(;P<C.length;)N=N+C.charCodeAt(P),P++;if(g){const L=g.getPart(E);L?c=L.frames:c=_}else c=_;const k=new oT(e,E,C,y,c,i.definition,y!=null,-1,E,!1,1);v.push(k)}else if(f.indexOf(E)>-1){const C=this._geometry.getBodyPartOfItem(n,E,o);if(e===C.id){const N=this._partSetsData.getPartDefinition(E);let P=!1,k=1;if(N.appendToFigure){let L="1";if(i.actionParameter!==""&&(L=i.actionParameter),N.hasStaticId()&&(L=N.staticId.toString()),g){const z=g.getPart(E);z?c=z.frames:c=_}else c=_;const j=new oT(e,E,L,null,c,i.definition,!1,-1,E,P,k);v.push(j)}}}}}return v}getPopulatedArray(e){const t=[];let i=0;for(;i<e;)t.push(i),i++;return t}getItemIds(){if(this._actionManager){const e=this._actionManager.getActionDefinition("CarryItem").params,t=[];for(const i of e.values())t.push(i);return t}return[]}get renderManager(){return this._renderManager}get figureData(){return this._figureData}get partData(){return this._partSetsData}get animationManager(){return this._animationManager}}const DTe={animations:[{id:"Move",parts:[{setType:"bd",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"bds",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"ss",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"lg",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"sh",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"lh",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"lhs",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"ls",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"lc",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"rh",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"rhs",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"rs",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"rc",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]},{setType:"ch",frames:[{number:0,assetPartDefinition:"wlk"},{number:1,assetPartDefinition:"wlk"},{number:2,assetPartDefinition:"wlk"},{number:3,assetPartDefinition:"wlk"}]}]},{id:"Wave",parts:[{setType:"lh",frames:[{number:0,assetPartDefinition:"wav"},{number:1,assetPartDefinition:"wav"}]},{setType:"lhs",frames:[{number:0,assetPartDefinition:"wav"},{number:1,assetPartDefinition:"wav"}]},{setType:"ls",frames:[{number:0,assetPartDefinition:"wav"},{number:1,assetPartDefinition:"wav"}]},{setType:"lc",frames:[{number:0,assetPartDefinition:"wav"},{number:1,assetPartDefinition:"wav"}]},{setType:"ch",frames:[{number:0,assetPartDefinition:"wav"},{number:1,assetPartDefinition:"wav"},{number:2,assetPartDefinition:"wav"},{number:3,assetPartDefinition:"wav"}]}]},{id:"Talk",parts:[{setType:"hd",frames:[{number:0,assetPartDefinition:"spk"},{number:1,assetPartDefinition:"spk"}]},{setType:"fc",frames:[{number:0,assetPartDefinition:"spk"},{number:1,assetPartDefinition:"spk"}]},{setType:"fa",frames:[{number:0,assetPartDefinition:"spk"},{number:1,assetPartDefinition:"spk"}]}]},{id:"Sign",parts:[{setType:"lh",frames:[{number:0,assetPartDefinition:"sig"}]},{setType:"li",frames:[{number:0,assetPartDefinition:"sig"}]},{setType:"ls",frames:[{number:0,assetPartDefinition:"wav"}]},{setType:"lc",frames:[{number:0,assetPartDefinition:"wav"}]}]},{id:"Respect",parts:[{setType:"lh",frames:[{number:0,assetPartDefinition:"respect",repeats:15},{number:1,assetPartDefinition:"respect",repeats:15}]},{setType:"ls",frames:[{number:0,assetPartDefinition:"wav",repeats:15},{number:1,assetPartDefinition:"wav",repeats:15}]},{setType:"lc",frames:[{number:0,assetPartDefinition:"wav",repeats:15},{number:1,assetPartDefinition:"wav",repeats:15}]}]},{id:"Blow",parts:[{setType:"rh",frames:[{number:0,assetPartDefinition:"blw",repeats:10},{number:1,assetPartDefinition:"blw",repeats:10}]},{setType:"rs",frames:[{number:0,assetPartDefinition:"drk"}]},{setType:"rc",frames:[{number:0,assetPartDefinition:"drk"}]},{setType:"ri",frames:[{number:0,assetPartDefinition:""}]},{setType:"ey",frames:[{number:0,assetPartDefinition:"std",repeats:10},{number:0,assetPartDefinition:"eyb",repeats:10}]},{setType:"fc",frames:[{number:0,assetPartDefinition:"std",repeats:10},{number:0,assetPartDefinition:"blw",repeats:10}]}]},{id:"Laugh",parts:[{setType:"rh",frames:[{number:0,assetPartDefinition:"blw"}]},{setType:"rs",frames:[{number:0,assetPartDefinition:"drk"}]},{setType:"rc",frames:[{number:0,assetPartDefinition:"drk"}]},{setType:"ri",frames:[{number:0,assetPartDefinition:""}]},{setType:"ey",frames:[{number:0,assetPartDefinition:"std",repeats:2}]},{setType:"fc",frames:[{number:0,assetPartDefinition:"sml"}]}],offsets:{frames:[{id:0,directions:[{id:0,bodyParts:[{id:"head",dx:0,dy:1}]},{id:1,bodyParts:[{id:"head",dx:0,dy:1}]},{id:2,bodyParts:[{id:"head",dx:0,dy:1}]},{id:3,bodyParts:[{id:"head",dx:0,dy:1}]},{id:4,bodyParts:[{id:"head",dx:0,dy:1}]},{id:5,bodyParts:[{id:"head",dx:0,dy:1}]},{id:6,bodyParts:[{id:"head",dx:0,dy:1}]},{id:7,bodyParts:[{id:"head",dx:0,dy:1}]}]},{id:1,directions:[{id:0,bodyParts:[{id:"head",dx:0,dy:0}]},{id:1,bodyParts:[{id:"head",dx:0,dy:0}]},{id:2,bodyParts:[{id:"head",dx:0,dy:0}]},{id:3,bodyParts:[{id:"head",dx:0,dy:0}]},{id:4,bodyParts:[{id:"head",dx:0,dy:0}]},{id:5,bodyParts:[{id:"head",dx:0,dy:0}]},{id:6,bodyParts:[{id:"head",dx:0,dy:0}]},{id:7,bodyParts:[{id:"head",dx:0,dy:0}]}]}]}}]},LTe={geometry:{direction:0,camera:{x:0,y:0,z:10},canvases:[{scale:"h",geometries:[{id:"vertical",width:90,height:130,dx:0,dy:0},{id:"sitting",width:90,height:130,dx:0,dy:0},{id:"horizontal",width:128,height:80,dx:30,dy:0},{id:"swhorizontal",width:192,height:120,dx:0,dy:-40}]},{scale:"sh",geometries:[{id:"vertical",width:45,height:72,dx:0,dy:0},{id:"sitting",width:45,height:72,dx:0,dy:0},{id:"horizontal",width:64,height:50,dx:15,dy:-10},{id:"swhorizontal",width:96,height:70,dx:0,dy:-20},{id:"swim",width:64,height:70,dx:25,dy:10}]}],avatarSets:[{id:"full",avatarSets:[{id:"body",main:!0,bodyParts:[{id:"top"},{id:"bottom"},{id:"behind"},{id:"torso"},{id:"leftitem"},{id:"rightitem"},{id:"leftarm"},{id:"rightarm"}]},{id:"head",bodyParts:[{id:"head"}]}]}],types:[{id:"vertical",bodyParts:[{id:"top",x:0,y:0,z:0,radius:2},{id:"bottom",x:0,y:0,z:0,radius:.001},{id:"behind",x:0,y:0,z:.2,radius:.3},{id:"torso",x:0,y:0,z:0,radius:.4,items:[{id:"bd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"bds",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"ch",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!1},{id:"sh",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"lg",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"ss",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!1},{id:"cp",x:0,y:0,z:0,radius:.045,nx:0,ny:0,nz:-1,double:!1},{id:"wa",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!1},{id:"cc",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ca",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1}]},{id:"leftitem",x:0,y:0,z:-.29,radius:.3,items:[{id:"li",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1}]},{id:"rightitem",x:0,y:0,z:-.29,radius:.3,items:[{id:"ri",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1}]},{id:"leftarm",x:-1,y:0,z:-.51,radius:.5,items:[{id:"lh",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"lhs",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"ls",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"lc",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1}]},{id:"rightarm",x:1,y:0,z:-.51,radius:.5,items:[{id:"rh",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"rhs",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"rs",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"rc",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1}]},{id:"head",x:0,y:0,z:0,radius:.5,items:[{id:"hd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"fc",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"ey",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"hr",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!0},{id:"hrb",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!0},{id:"fa",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ea",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1},{id:"ha",x:0,y:0,z:0,radius:.08,nx:0,ny:0,nz:-1,double:!1},{id:"he",x:0,y:0,z:0,radius:.09,nx:0,ny:0,nz:-1,double:!1}]}]},{id:"sitting",bodyParts:[{id:"top",x:0,y:0,z:0,radius:2},{id:"bottom",x:0,y:0,z:0,radius:.001},{id:"behind",x:0,y:0,z:.2,radius:.3},{id:"torso",x:0,y:0,z:0,radius:.4,items:[{id:"bd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"bds",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"ch",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"sh",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!1},{id:"lg",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"ss",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!1},{id:"cp",x:0,y:0,z:0,radius:.045,nx:0,ny:0,nz:-1,double:!1},{id:"wa",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!1},{id:"cc",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ca",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1}]},{id:"leftitem",x:0,y:0,z:-.29,radius:.3,items:[{id:"li",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1}]},{id:"rightitem",x:0,y:0,z:-.29,radius:.3,items:[{id:"ri",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1}]},{id:"leftarm",x:-1,y:0,z:-.51,radius:.5,items:[{id:"lh",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"lhs",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"ls",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"lc",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1}]},{id:"rightarm",x:1,y:0,z:-.51,radius:.5,items:[{id:"rh",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"rhs",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"rs",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"rc",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1}]},{id:"head",x:0,y:0,z:0,radius:.5,items:[{id:"hd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"fc",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"ey",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"hr",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!0},{id:"hrb",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!0},{id:"fa",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ea",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1},{id:"ha",x:0,y:0,z:0,radius:.08,nx:0,ny:0,nz:-1,double:!1},{id:"he",x:0,y:0,z:0,radius:.09,nx:0,ny:0,nz:-1,double:!1}]}]},{id:"horizontal",bodyParts:[{id:"torso",x:0,y:0,z:0,radius:.4,items:[{id:"bd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"bds",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"ch",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"cp",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1},{id:"sh",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!1},{id:"lg",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"ss",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"wa",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!1},{id:"cc",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ca",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1}]},{id:"leftitem",x:0,y:0,z:-.29,radius:.3,items:[{id:"li",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1}]},{id:"rightitem",x:0,y:0,z:-.29,radius:.3,items:[{id:"ri",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1}]},{id:"leftarm",x:-1,y:0,z:-.51,radius:.6,items:[{id:"lh",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"lhs",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"ls",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"lc",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1}]},{id:"rightarm",x:1,y:0,z:-.51,radius:.6,items:[{id:"rh",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"rhs",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"rs",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"rc",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1}]},{id:"head",x:0,y:0,z:0,radius:.5,items:[{id:"hd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"fc",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"ey",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"hr",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!0},{id:"hrb",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!0},{id:"fa",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ea",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1},{id:"ha",x:0,y:0,z:0,radius:.08,nx:0,ny:0,nz:-1,double:!1},{id:"he",x:0,y:0,z:0,radius:.09,nx:0,ny:0,nz:-1,double:!1}]}]},{id:"swhorizontal",bodyParts:[{id:"torso",x:0,y:0,z:0,radius:.4,items:[{id:"bd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"bds",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"ch",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"cp",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1},{id:"sh",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!1},{id:"lg",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"ss",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"wa",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!1},{id:"cc",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ca",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1}]},{id:"leftitem",x:0,y:0,z:-.29,radius:.3,items:[{id:"li",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1}]},{id:"rightitem",x:0,y:0,z:-.29,radius:.3,items:[{id:"ri",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1}]},{id:"leftarm",x:-1,y:0,z:-.51,radius:.6,items:[{id:"lh",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"lhs",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"ls",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"lc",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1}]},{id:"rightarm",x:1,y:0,z:-.51,radius:.6,items:[{id:"rh",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"rhs",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!1},{id:"rs",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"rc",x:0,y:0,z:0,radius:.025,nx:0,ny:0,nz:-1,double:!1}]},{id:"head",x:0,y:0,z:0,radius:.5,items:[{id:"hd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"fc",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"ey",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"hr",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!0},{id:"hrb",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!0},{id:"fa",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ea",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1},{id:"ha",x:0,y:0,z:0,radius:.08,nx:0,ny:0,nz:-1,double:!1},{id:"he",x:0,y:0,z:0,radius:.09,nx:0,ny:0,nz:-1,double:!1}]}]},{id:"swim",bodyParts:[{id:"torso",x:0,y:0,z:0,radius:.4,items:[{id:"bds",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"ss",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1}]},{id:"head",x:0,y:0,z:0,radius:.5,items:[{id:"hd",x:0,y:0,z:0,radius:.01,nx:0,ny:0,nz:-1,double:!0},{id:"fc",x:0,y:0,z:0,radius:.02,nx:0,ny:0,nz:-1,double:!1},{id:"ey",x:0,y:0,z:0,radius:.03,nx:0,ny:0,nz:-1,double:!1},{id:"hr",x:0,y:0,z:0,radius:.04,nx:0,ny:0,nz:-1,double:!0},{id:"hrb",x:0,y:0,z:0,radius:.05,nx:0,ny:0,nz:-1,double:!0},{id:"fa",x:0,y:0,z:0,radius:.06,nx:0,ny:0,nz:-1,double:!1},{id:"ea",x:0,y:0,z:0,radius:.07,nx:0,ny:0,nz:-1,double:!1},{id:"ha",x:0,y:0,z:0,radius:.08,nx:0,ny:0,nz:-1,double:!1},{id:"he",x:0,y:0,z:0,radius:.09,nx:0,ny:0,nz:-1,double:!1}]}]}]}},UTe={partSets:{partSet:[{setType:"ri",flippedSetType:"ri"},{setType:"ri",flippedSetType:"ri"},{setType:"rh",flippedSetType:"lh"},{setType:"rhs",flippedSetType:"lhs"},{setType:"rs",swim:"0",flippedSetType:"ls"},{setType:"rc",flippedSetType:"lc"},{setType:"bd"},{setType:"bds"},{setType:"ss"},{setType:"sh"},{setType:"lg"},{setType:"ch"},{setType:"cp"},{setType:"cc"},{setType:"hd"},{setType:"fc"},{setType:"ey"},{setType:"hr"},{setType:"hrb",removeSetType:"hr"},{setType:"li",flippedSetType:"li"},{setType:"lh",flippedSetType:"rh"},{setType:"lhs",flippedSetType:"rhs"},{setType:"ls",flippedSetType:"rs"},{setType:"lc",flippedSetType:"rc"},{setType:"wa"},{setType:"ea"},{setType:"ca"},{setType:"fa"},{setType:"ha"},{setType:"he"}],activePartSets:[{id:"figure",activeParts:[{setType:"rh"},{setType:"rh"},{setType:"rhs"},{setType:"rs"},{setType:"rc"},{setType:"bd"},{setType:"bds"},{setType:"ss"},{setType:"sh"},{setType:"lg"},{setType:"ch"},{setType:"cp"},{setType:"cc"},{setType:"wa"},{setType:"hd"},{setType:"fc"},{setType:"ey"},{setType:"hr"},{setType:"hrb"},{setType:"lh"},{setType:"lhs"},{setType:"ls"},{setType:"lc"},{setType:"ea"},{setType:"ca"},{setType:"fa"},{setType:"ha"},{setType:"he"}]},{id:"head",activeParts:[{setType:"hd"},{setType:"fc"},{setType:"ey"},{setType:"hr"},{setType:"hrb"},{setType:"ea"},{setType:"fa"},{setType:"ha"},{setType:"he"}]},{id:"speak",activeParts:[{setType:"hd"},{setType:"hr"},{setType:"hrb"},{setType:"fc"},{setType:"fa"},{setType:"ha"}]},{id:"gesture",activeParts:[{setType:"ey"},{setType:"fc"}]},{id:"eye",activeParts:[{setType:"ey"}]},{id:"handRight",activeParts:[{setType:"rh"},{setType:"rhs"},{setType:"rs"},{setType:"rc"},{setType:"ri"}]},{id:"handRightAndHead",activeParts:[{setType:"rh"},{setType:"rhs"},{setType:"rs"},{setType:"rc"},{setType:"ri"},{setType:"ey"},{setType:"fc"},{setType:"hd"}]},{id:"handLeft",activeParts:[{setType:"lh"},{setType:"lhs"},{setType:"ls"},{setType:"lc"},{setType:"li"}]},{id:"walk",activeParts:[{setType:"bd"},{setType:"bds"},{setType:"ss"},{setType:"lg"},{setType:"lh"},{setType:"lhs"},{setType:"rh"},{setType:"rhs"},{setType:"ls"},{setType:"lc"},{setType:"rs"},{setType:"rc"},{setType:"sh"}]},{id:"sit",activeParts:[{setType:"bd"},{setType:"bds"},{setType:"ss"},{setType:"lg"},{setType:"sh"},{setType:"cc"}]},{id:"itemRight",activeParts:[{setType:"ri"}]}]}},Cs=class Cs extends fn{constructor(e,t,i,n){super(),this._state=Cs.NOT_LOADED,this._libraryName=e,this._revision=t,this._downloadUrl=n,this._assets=i,this._animation=null,this._downloadUrl=this._downloadUrl.replace(/%libname%/gi,this._libraryName),this._downloadUrl=this._downloadUrl.replace(/%revision%/gi,this._revision),this._assets.getCollection(this._libraryName)&&(this._state=Cs.LOADED)}async downloadAsset(){if(!this._assets||this._state===Cs.LOADING||this._state===Cs.LOADED)return;if(this._assets.getCollection(this._libraryName)){this._state=Cs.LOADED,this.dispatchEvent(new _u(_u.DOWNLOAD_COMPLETE,this));return}if(this._state=Cs.LOADING,!await this._assets.downloadAsset(this._downloadUrl))return;this._state=Cs.LOADED;const i=this._assets.getCollection(this._libraryName);i&&(this._animation=i.data.animations),this.dispatchEvent(new _u(_u.DOWNLOAD_COMPLETE,this))}get libraryName(){return this._libraryName}get animation(){return this._animation}get isLoaded(){return this._state===Cs.LOADED}};Cs.DOWNLOAD_COMPLETE="EADL_DOWNLOAD_COMPLETE",Cs.NOT_LOADED=0,Cs.LOADING=1,Cs.LOADED=2;let AA=Cs;const lu=class lu extends fn{constructor(e,t){super(),this._assets=e,this._structure=t,this._missingMandatoryLibs=Te.getValue("avatar.mandatory.effect.libraries"),this._effectMap=new Map,this._effectListeners=new Map,this._incompleteEffects=new Map,this._initDownloadBuffer=[],this._pendingDownloadQueue=[],this._currentDownloads=[],this._libraryNames=[],this._isReady=!1,this.onLibraryLoaded=this.onLibraryLoaded.bind(this),this.onAvatarRenderReady=this.onAvatarRenderReady.bind(this),this.loadEffectMap(),this._structure.renderManager.events.addEventListener(G_.AVATAR_RENDER_READY,this.onAvatarRenderReady)}loadEffectMap(){const e=new XMLHttpRequest;try{e.open("GET",Te.getValue("avatar.effectmap.url")),e.send(),e.onloadend=t=>{if(e.responseText){const i=JSON.parse(e.responseText);this.processEffectMap(i.effects),this.processMissingLibraries(),this._isReady=!0,this.dispatchEvent(new Ye(lu.DOWNLOADER_READY))}},e.onerror=t=>{throw new Error("invalid_avatar_effect_map")}}catch(t){le.error(t)}}processEffectMap(e){if(e)for(const t of e){if(!t)continue;const i=t.id,n=t.lib,r=t.revision||"";if(this._libraryNames.indexOf(n)>=0)continue;this._libraryNames.push(n);const a=new AA(n,r,this._assets,Te.getValue("avatar.asset.effect.url"));a.addEventListener(_u.DOWNLOAD_COMPLETE,this.onLibraryLoaded);let o=this._effectMap.get(i);o||(o=[]),o.push(a),this._effectMap.set(i,o)}}downloadAvatarEffect(e,t){if(!this._isReady||!this._structure.renderManager.isReady){this._initDownloadBuffer.push([e,t]);return}const i=this.getAvatarEffectPendingLibraries(e);if(i&&i.length){if(t&&!t.disposed){let n=this._effectListeners.get(e.toString());n||(n=[]),n.push(t),this._effectListeners.set(e.toString(),n)}this._incompleteEffects.set(e.toString(),i);for(const n of i)n&&this.downloadLibrary(n)}else t&&!t.disposed&&t.resetEffect(e)}onAvatarRenderReady(e){if(e){for(const[t,i]of this._initDownloadBuffer)this.downloadAvatarEffect(t,i);this._initDownloadBuffer=[]}}onLibraryLoaded(e){if(!e||!e.library)return;const t=[];this._structure.registerAnimation(e.library.animation);for(const[n,r]of this._incompleteEffects.entries()){let a=!0;for(const o of r)if(!(!o||o.isLoaded)){a=!1;break}if(a){t.push(n);const o=this._effectListeners.get(n);for(const l of o)!l||l.disposed||l.resetEffect(parseInt(n));this._effectListeners.delete(n),this.dispatchEvent(new Ye(lu.LIBRARY_LOADED))}}for(const n of t)this._incompleteEffects.delete(n);let i=0;for(;i<this._currentDownloads.length;){const n=this._currentDownloads[i];n&&n.libraryName===e.library.libraryName&&this._currentDownloads.splice(i,1),i++}}processMissingLibraries(){const e=this._missingMandatoryLibs.slice();for(const t of e){if(!t)continue;const i=this._effectMap.get(t);if(i)for(const n of i)n&&this.downloadLibrary(n)}}isAvatarEffectReady(e){return!this._isReady||!this._structure.renderManager.isReady?!1:!this.getAvatarEffectPendingLibraries(e).length}getAvatarEffectPendingLibraries(e){const t=[];if(!this._structure)return t;const i=this._effectMap.get(e.toString());if(i)for(const n of i)!n||n.isLoaded||t.indexOf(n)===-1&&t.push(n);return t}downloadLibrary(e){!e||e.isLoaded||this._pendingDownloadQueue.indexOf(e)>=0||this._currentDownloads.indexOf(e)>=0||(this._pendingDownloadQueue.push(e),this.processDownloadQueue())}processDownloadQueue(){for(;this._pendingDownloadQueue.length;)this._pendingDownloadQueue[0].downloadAsset(),this._currentDownloads.push(this._pendingDownloadQueue.shift())}};lu.DOWNLOADER_READY="EADM_DOWNLOADER_READY",lu.LIBRARY_LOADED="EADM_LIBRARY_LOADED",lu.MAX_DOWNLOADS=2;let Fl=lu;class FTe extends av{constructor(e,t,i,n,r){super(e,t,i,n,r,null)}isPlaceholder(){return!0}}const KE=class KE extends Yr{constructor(){super(),this._structure=null,this._avatarAssetDownloadManager=null,this._placeHolderFigure=null,this._figureMapReady=!1,this._effectMapReady=!1,this._actionsReady=!1,this._geometryReady=!1,this._partSetsReady=!1,this._animationsReady=!1,this._isReady=!1,this.onAvatarAssetDownloaderReady=this.onAvatarAssetDownloaderReady.bind(this),this.onAvatarAssetDownloaded=this.onAvatarAssetDownloaded.bind(this),this.onEffectAssetDownloaderReady=this.onEffectAssetDownloaderReady.bind(this),this.onEffectAssetDownloaded=this.onEffectAssetDownloaded.bind(this),this.onAvatarStructureDownloadDone=this.onAvatarStructureDownloadDone.bind(this)}onInit(){this._structure=new xTe(this),this.loadGeometry(),this.loadPartSets(),this.loadActions(),this.loadAnimations(),this.loadFigureData(),this._aliasCollection=new EQ(this,wn()),this._aliasCollection.init(),this._avatarAssetDownloadManager||(this._avatarAssetDownloadManager=new Dl(wn(),this._structure),this._avatarAssetDownloadManager.addEventListener(Dl.DOWNLOADER_READY,this.onAvatarAssetDownloaderReady),this._avatarAssetDownloadManager.addEventListener(Dl.LIBRARY_LOADED,this.onAvatarAssetDownloaded)),this._effectAssetDownloadManager||(this._effectAssetDownloadManager=new Fl(wn(),this._structure),this._effectAssetDownloadManager.addEventListener(Fl.DOWNLOADER_READY,this.onEffectAssetDownloaderReady),this._effectAssetDownloadManager.addEventListener(Fl.LIBRARY_LOADED,this.onEffectAssetDownloaded)),this.checkReady()}onDispose(){this._avatarAssetDownloadManager&&(this._avatarAssetDownloadManager.removeEventListener(Dl.DOWNLOADER_READY,this.onAvatarAssetDownloaderReady),this._avatarAssetDownloadManager.removeEventListener(Dl.LIBRARY_LOADED,this.onAvatarAssetDownloaded)),this._effectAssetDownloadManager&&(this._effectAssetDownloadManager.removeEventListener(Fl.DOWNLOADER_READY,this.onEffectAssetDownloaderReady),this._effectAssetDownloadManager.removeEventListener(Fl.LIBRARY_LOADED,this.onEffectAssetDownloaded))}loadGeometry(){this._structure&&(this._structure.initGeometry(LTe.geometry),this._geometryReady=!0,this.checkReady())}loadPartSets(){this._structure&&(this._structure.initPartSets(UTe.partSets),this._partSetsReady=!0,this.checkReady())}loadActions(){const e=Te.getValue("avatar.default.actions");e&&this._structure.initActions(wn(),e);const t=Te.getValue("avatar.actions.url");fetch(t).then(i=>i.json()).then(i=>{this._structure&&(this._structure.updateActions(i),this._actionsReady=!0,this.checkReady())}).catch(i=>le.error(i))}loadAnimations(){this._structure&&(this._structure.initAnimation(DTe.animations),this._animationsReady=!0,this.checkReady())}loadFigureData(){const e=Te.getValue("avatar.default.figuredata");if(!e||typeof e=="string"){le.error("XML figuredata is no longer supported");return}this._structure&&this._structure.initFigureData(e),new ov(Te.getValue("avatar.figuredata.url"),this._structure.figureData).addEventListener(ov.AVATAR_STRUCTURE_DONE,this.onAvatarStructureDownloadDone)}onAvatarStructureDownloadDone(e){this._structureReady=!0,this._structure.init(),this.checkReady()}onAvatarAssetDownloaderReady(e){e&&(this._figureMapReady=!0,this.checkReady())}onAvatarAssetDownloaded(e){e&&this._aliasCollection.reset()}onEffectAssetDownloaderReady(e){e&&(this._effectMapReady=!0,this.checkReady())}onEffectAssetDownloaded(e){e&&this._aliasCollection.reset()}checkReady(){this._isReady||!this._geometryReady||!this._partSetsReady||!this._actionsReady||!this._animationsReady||!this._figureMapReady||!this._effectMapReady||!this._structureReady||(this._isReady=!0,this.events&&this.events.dispatchEvent(new Ye(G_.AVATAR_RENDER_READY)))}createFigureContainer(e){return new Hp(e)}isFigureContainerReady(e){return this._avatarAssetDownloadManager?this._avatarAssetDownloadManager.isAvatarFigureContainerReady(e):!1}createAvatarImage(e,t,i,n=null,r=null){if(!this._structure||!this._avatarAssetDownloadManager)return null;const a=new Hp(e);return i&&this.validateAvatarFigure(a,i),this._avatarAssetDownloadManager.isAvatarFigureContainerReady(a)?new av(this._structure,this._aliasCollection,a,t,this._effectAssetDownloadManager,r):(this._placeHolderFigure||(this._placeHolderFigure=new Hp(KE.DEFAULT_FIGURE)),this._avatarAssetDownloadManager.downloadAvatarFigure(a,n),new FTe(this._structure,this._aliasCollection,this._placeHolderFigure,t,this._effectAssetDownloadManager))}downloadAvatarFigure(e,t){this._avatarAssetDownloadManager&&this._avatarAssetDownloadManager.downloadAvatarFigure(e,t)}validateAvatarFigure(e,t){let i=!1;const n=this._structure.getMandatorySetTypeIds(t,2);if(n){const r=this._structure.figureData;for(const a of n)if(e.hasPartType(a)){const o=r.getSetType(a);if(o&&!o.getPartSet(e.getPartSetId(a))){const u=this._structure.getDefaultPartSet(a,t);u&&(e.updatePart(a,u.id,[0]),i=!0)}}else{const o=this._structure.getDefaultPartSet(a,t);o&&(e.updatePart(a,o.id,[0]),i=!0)}}return!i}getFigureClubLevel(e,t,i=null){if(!this._structure)return 0;const n=this._structure.figureData,r=Array.from(e.getPartTypeIds());let a=0;for(const o of r){const l=n.getSetType(o);if(!l)continue;const u=e.getPartSetId(o),c=l.getPartSet(u);if(c){a=Math.max(c.clubLevel,a);const h=n.getPalette(l.paletteID),f=e.getPartColorIds(o);for(const d of f){const _=h.getColor(d);_&&(a=Math.max(_.clubLevel,a))}}}i||(i=this._structure.getBodyPartsUnordered(_s.FULL));for(const o of i){const l=n.getSetType(o);l&&r.indexOf(o)===-1&&(a=Math.max(l.optionalFromClubLevel(t),a))}return a}isValidFigureSetForGender(e,t){const n=this.structureData.getFigurePartSet(e);return!!(n&&(n.gender.toUpperCase()==="U"||n.gender.toUpperCase()===t.toUpperCase()))}getFigureStringWithFigureIds(e,t,i){const n=new HR;n.loadAvatarData(e,t);const r=this.resolveFigureSets(i);for(const a of r)n.savePartData(a.type,a.id,n.getColourIds(a.type));return n.getFigureString()}resolveFigureSets(e){const t=this.structureData,i=[];for(const n of e){const r=t.getFigurePartSet(n);r&&i.push(r)}return i}getMandatoryAvatarPartSetIds(e,t){return this._structure?this._structure.getMandatorySetTypeIds(e,t):null}getAssetByName(e){return this._aliasCollection.getAsset(e)}get assets(){return wn()}get isReady(){return this._isReady}get structure(){return this._structure}get structureData(){return this._structure?this._structure.figureData:null}get downloadManager(){return this._avatarAssetDownloadManager}};KE.DEFAULT_FIGURE="hd-99999-99999";let OA=KE;class BTe{constructor(e,t,i){this._layerId=e,this._partId=t,this._paletteId=i}get layerId(){return this._layerId}set layerId(e){this._layerId=e}get partId(){return this._partId}set partId(e){this._partId=e}get paletteId(){return this._paletteId}set paletteId(e){this._paletteId=e}}class Hv{constructor(e){this._typeId=this.getTypeId(e),this._paletteId=this.getPaletteId(e),this._color=this.getColor(e),this._headOnly=this.getHeadOnly(e);const t=this.getCustomData(e);this._customLayerIds=this.getCustomLayerIds(t),this._customPartIds=this.getCustomPartIds(t),this._customPaletteIds=this.getCustomPaletteIds(t),this._customParts=[];let i=0;for(;i<this._customLayerIds.length;)this._customParts.push(new BTe(this._customLayerIds[i],this._customPartIds[i],this._customPaletteIds[i])),i++}get typeId(){return this._typeId}get paletteId(){return this._paletteId}get color(){return this._color}get customLayerIds(){return this._customLayerIds}get customPartIds(){return this._customPartIds}get customPaletteIds(){return this._customPaletteIds}get customParts(){return this._customParts}getCustomPart(e){if(this._customParts){for(const t of this._customParts)if(t.layerId===e)return t}return null}get hasCustomParts(){return this._customLayerIds!=null&&this._customLayerIds.length>0}get headOnly(){return this._headOnly}get figureString(){let e=this.typeId+" "+this.paletteId+" "+this.color.toString(16);e=e+(" "+this.customParts.length);for(const t of this.customParts)e=e+(" "+t.layerId+" "+t.partId+" "+t.paletteId);return e}getCustomData(e){let t=[];if(e){const i=e.split(" "),n=this._headOnly?1:0,r=4+n;if(i.length>r){const a=3+n,o=parseInt(i[a]);t=i.slice(r,r+o*3)}}return t}getCustomLayerIds(e){const t=[];let i=0;for(;i<e.length;)t.push(parseInt(e[i+0])),i=i+3;return t}getCustomPartIds(e){const t=[];let i=0;for(;i<e.length;)t.push(parseInt(e[i+1])),i=i+3;return t}getCustomPaletteIds(e){const t=[];let i=0;for(;i<e.length;)t.push(parseInt(e[i+2])),i=i+3;return t}getTypeId(e){if(e){const t=e.split(" ");if(t.length>=1)return parseInt(t[0])}return 0}getPaletteId(e){if(e){const t=e.split(" ");if(t.length>=2)return parseInt(t[1])}return 0}getColor(e){if(e){const t=e.split(" ");if(t.length>=3)return parseInt(t[2],16)}return 16777215}getHeadOnly(e){if(e){const t=e.split(" ");if(t.length>=4)return t[3]==="head"}return!1}}class M0{constructor(e){this._complete=!0,this._target=e}get running(){return this._running&&!!this._target}get complete(){return this._complete}set target(e){this._target=e}get target(){return this._target}set tag(e){this._tag=e}get tag(){return this._tag}start(){this._running=!0}update(e){}stop(){this._target=null,this._running=!1}tick(e){}}class qCe extends M0{constructor(e){super(e)}tick(e){super.tick(e),this.target&&(this.target.remove(),this.target=null)}}class Kw extends M0{constructor(e,t){super(e),this._complete=!1,this._duration=t}get duration(){return this._duration}start(){super.start(),this._complete=!1,this._startTimeMs=Pe()}tick(e){super.tick(e);const t=(e-this._startTimeMs)/this._duration;t<1?this.update(t):(this.update(1),this._complete=!0)}}class $Ce extends Kw{constructor(e,t,i){super(e,t),this._height=i}start(){super.start(),this._offset=0,this.target.style.top=this._offset-this._height+"px"}update(e){super.update(e),this.target.style.top=this._offset-this._height+this.getBounceOffset(e)*this._height+"px"}getBounceOffset(e){return e<.364?7.5625*e*e:e<.727?(e=e-.545,7.5625*e*e+.75):e<.909?(e=e-.9091,7.5625*e*e+.9375):(e=e-.955,7.5625*e*e+.984375)}stop(){this.target.style.top=this._offset+"px",super.stop()}}class GTe extends Kw{constructor(e){super(e.target,e.duration),this._interval=e}start(){super.start(),this._interval.start()}update(e){super.update(e),this._interval.update(e)}stop(){super.stop(),this._interval.stop()}}class VTe extends GTe{constructor(e,t){super(e),this._rate=t}}class QCe extends VTe{constructor(e,t){super(e,t)}update(e){this._interval.update(Math.pow(e,1/this._rate))}}class ZCe extends Kw{constructor(e,t,i,n,r,a){super(e,t),this._deltaX=i,this._deltaY=n,this._height=-r,this._numJumps=a}start(){super.start(),this._startX=this.target.offsetLeft,this._startY=this.target.offsetTop}update(e){super.update(e),this.target.style.left=this._startX+this._deltaX*e+"px",this.target.style.top=this._startY+this._height*Math.abs(Math.sin(e*Math.PI*this._numJumps))+this._deltaY*e+"px"}}const Ie=class Ie{static get TIMER_TIME(){return 1e3/H$()}static runMotion(e){return Ie._RUNNING_MOTIONS.indexOf(e)===-1&&Ie._QUEUED_MOTIONS.indexOf(e)===-1&&(Ie._IS_UPDATING?Ie._QUEUED_MOTIONS.push(e):(Ie._RUNNING_MOTIONS.push(e),e.start()),Ie.startTimer()),e}static removeMotion(e){let t=Ie._RUNNING_MOTIONS.indexOf(e);t>-1?Ie._IS_UPDATING?(t=Ie._REMOVED_MOTIONS.indexOf(e),t==-1&&Ie._REMOVED_MOTIONS.push(e)):(Ie._RUNNING_MOTIONS.splice(t,1),e.running&&e.stop(),Ie._RUNNING_MOTIONS.length||Ie.stopTimer()):(t=Ie._QUEUED_MOTIONS.indexOf(e),t>-1&&Ie._QUEUED_MOTIONS.splice(t,1))}static getMotionByTag(e){for(const t of Ie._RUNNING_MOTIONS)if(t.tag==e)return t;for(const t of Ie._QUEUED_MOTIONS)if(t.tag==e)return t;return null}static getMotionByTarget(e){for(const t of Ie._RUNNING_MOTIONS)if(t.target==e)return t;for(const t of Ie._QUEUED_MOTIONS)if(t.target==e)return t;return null}static getMotionByTagAndTarget(e,t){for(const i of Ie._RUNNING_MOTIONS)if(i.tag==e&&i.target==t)return i;for(const i of Ie._QUEUED_MOTIONS)if(i.tag==e&&i.target==t)return i;return null}static get isRunning(){return!!Ie._TIMER}static get isUpdating(){return Ie._IS_UPDATING}static onTick(){Ie._IS_UPDATING=!0;const e=Pe();let t=null;for(;t=Ie._QUEUED_MOTIONS.pop();)Ie._RUNNING_MOTIONS.push(t);for(;t=Ie._REMOVED_MOTIONS.pop();)Ie._RUNNING_MOTIONS.splice(Ie._RUNNING_MOTIONS.indexOf(t),1),t.running&&t.stop();for(t of Ie._RUNNING_MOTIONS)t.running?(t.tick(e),t.complete&&Ie.removeMotion(t)):Ie.removeMotion(t);Ie._RUNNING_MOTIONS.length||Ie.stopTimer(),Ie._IS_UPDATING=!1}static startTimer(){Ie._TIMER||(Ie._TIMER=window.setInterval(Ie.onTick,Ie.TIMER_TIME))}static stopTimer(){Ie._TIMER&&(clearInterval(Ie._TIMER),Ie._TIMER=null)}getNumRunningMotions(e){let t=0;for(const i of Ie._RUNNING_MOTIONS)i.target===e&&t++;return t}};Ie._QUEUED_MOTIONS=[],Ie._RUNNING_MOTIONS=[],Ie._REMOVED_MOTIONS=[],Ie._TIMER=null,Ie._IS_UPDATING=!1;let mk=Ie;class JCe extends M0{constructor(...e){super(e?e[0].target:null),this._queue=[];for(const t of e)this._queue.push(t);this._motion=e[0],this._complete=!this._motion}get running(){return this._running&&this._motion?this._motion.running:!1}start(){super.start(),this._motion.start()}update(e){super.update(e),this._motion.running&&this._motion.update(e)}stop(){super.stop(),this._motion.stop()}tick(e){if(super.tick(e),this._motion.tick(e),this._motion.complete){this._motion.stop();const t=this._queue.indexOf(this._motion);t<this._queue.length-1?(this._motion=this._queue[t+1],this._target=this._motion.target,this._motion.start()):this._complete=!0}}}class eMe extends M0{constructor(e){super(null),this._waitTimeMs=e}get running(){return this._running}start(){super.start(),this._complete=!1,this._startTimeMs=Pe()}tick(e){super.tick(e),this._complete=e-this._startTimeMs>=this._waitTimeMs,this._complete&&this.stop()}}const qw=D.createContext({});function $w(s){const e=D.useRef(null);return e.current===null&&(e.current=s()),e.current}const N0=D.createContext(null),Qw=D.createContext({transformPagePoint:s=>s,isStatic:!1,reducedMotion:"never"});class jTe extends D.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zTe({children:s,isPresent:e}){const t=D.useId(),i=D.useRef(null),n=D.useRef({width:0,height:0,top:0,left:0}),{nonce:r}=D.useContext(Qw);return D.useInsertionEffect(()=>{const{width:a,height:o,top:l,left:u}=n.current;if(e||!i.current||!a||!o)return;i.current.dataset.motionPopId=t;const c=document.createElement("style");return r&&(c.nonce=r),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
[data-motion-pop-id="${t}"] {
position: absolute !important;
width: ${a}px !important;
height: ${o}px !important;
top: ${l}px !important;
left: ${u}px !important;
}
`),()=>{document.head.removeChild(c)}},[e]),vt.jsx(jTe,{isPresent:e,childRef:i,sizeRef:n,children:D.cloneElement(s,{ref:i})})}const HTe=({children:s,initial:e,isPresent:t,onExitComplete:i,custom:n,presenceAffectsLayout:r,mode:a})=>{const o=$w(WTe),l=D.useId(),u=D.useCallback(h=>{o.set(h,!0);for(const f of o.values())if(!f)return;i&&i()},[o,i]),c=D.useMemo(()=>({id:l,initial:e,isPresent:t,custom:n,onExitComplete:u,register:h=>(o.set(h,!1),()=>o.delete(h))}),r?[Math.random(),u]:[t,u]);return D.useMemo(()=>{o.forEach((h,f)=>o.set(f,!1))},[t]),D.useEffect(()=>{!t&&!o.size&&i&&i()},[t]),a==="popLayout"&&(s=vt.jsx(zTe,{isPresent:t,children:s})),vt.jsx(N0.Provider,{value:c,children:s})};function WTe(){return new Map}function z5(s=!0){const e=D.useContext(N0);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:i,register:n}=e,r=D.useId();D.useEffect(()=>{s&&n(r)},[s]);const a=D.useCallback(()=>s&&i&&i(r),[r,i,s]);return!t&&i?[!1,a]:[!0]}const pp=s=>s.key||"";function vk(s){const e=[];return D.Children.forEach(s,t=>{D.isValidElement(t)&&e.push(t)}),e}const Zw=typeof window<"u",H5=Zw?D.useLayoutEffect:D.useEffect,tMe=({children:s,custom:e,initial:t=!0,onExitComplete:i,presenceAffectsLayout:n=!0,mode:r="sync",propagate:a=!1})=>{const[o,l]=z5(a),u=D.useMemo(()=>vk(s),[s]),c=a&&!o?[]:u.map(pp),h=D.useRef(!0),f=D.useRef(u),d=$w(()=>new Map),[_,g]=D.useState(u),[p,m]=D.useState(u);H5(()=>{h.current=!1,f.current=u;for(let y=0;y<p.length;y++){const T=pp(p[y]);c.includes(T)?d.delete(T):d.get(T)!==!0&&d.set(T,!1)}},[p,c.length,c.join("-")]);const v=[];if(u!==_){let y=[...u];for(let T=0;T<p.length;T++){const w=p[T],C=pp(w);c.includes(C)||(y.splice(T,0,w),v.push(w))}r==="wait"&&v.length&&(y=v),m(vk(y)),g(u);return}const{forceRender:E}=D.useContext(qw);return vt.jsx(vt.Fragment,{children:p.map(y=>{const T=pp(y),w=a&&!o?!1:u===p||c.includes(T),C=()=>{if(d.has(T))d.set(T,!0);else return;let N=!0;d.forEach(P=>{P||(N=!1)}),N&&(E==null||E(),m(f.current),a&&(l==null||l()),i&&i())};return vt.jsx(HTe,{isPresent:w,initial:!h.current||t?void 0:!1,custom:w?void 0:e,presenceAffectsLayout:n,mode:r,onExitComplete:w?void 0:C,children:y},T)})})},an=s=>s;let W5=an;function Jw(s){let e;return()=>(e===void 0&&(e=s()),e)}const sf=(s,e,t)=>{const i=e-s;return i===0?1:(t-s)/i},xa=s=>s*1e3,Da=s=>s/1e3,YTe={useManualTiming:!1};function XTe(s){let e=new Set,t=new Set,i=!1,n=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function o(u){r.has(u)&&(l.schedule(u),s()),u(a)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&i?e:t;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{t.delete(u),r.delete(u)},process:u=>{if(a=u,i){n=!0;return}i=!0,[e,t]=[t,e],e.forEach(o),e.clear(),i=!1,n&&(n=!1,l.process(u))}};return l}const mp=["read","resolveKeyframes","update","preRender","render","postRender"],KTe=40;function Y5(s,e){let t=!1,i=!0;const n={delta:0,timestamp:0,isProcessing:!1},r=()=>t=!0,a=mp.reduce((m,v)=>(m[v]=XTe(r),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=a,d=()=>{const m=performance.now();t=!1,n.delta=i?1e3/60:Math.max(Math.min(m-n.timestamp,KTe),1),n.timestamp=m,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),c.process(n),h.process(n),f.process(n),n.isProcessing=!1,t&&e&&(i=!1,s(d))},_=()=>{t=!0,i=!0,n.isProcessing||s(d)};return{schedule:mp.reduce((m,v)=>{const E=a[v];return m[v]=(y,T=!1,w=!1)=>(t||_(),E.schedule(y,T,w)),m},{}),cancel:m=>{for(let v=0;v<mp.length;v++)a[mp[v]].cancel(m)},state:n,steps:a}}const{schedule:xt,cancel:sl,state:Bi,steps:ET}=Y5(typeof requestAnimationFrame<"u"?requestAnimationFrame:an,!0),X5=D.createContext({strict:!1}),Ek={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nf={};for(const s in Ek)nf[s]={isEnabled:e=>Ek[s].some(t=>!!e[t])};function qTe(s){for(const e in s)nf[e]={...nf[e],...s[e]}}const $Te=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Wv(s){return s.startsWith("while")||s.startsWith("drag")&&s!=="draggable"||s.startsWith("layout")||s.startsWith("onTap")||s.startsWith("onPan")||s.startsWith("onLayout")||$Te.has(s)}let K5=s=>!Wv(s);function QTe(s){s&&(K5=e=>e.startsWith("on")?!Wv(e):s(e))}try{QTe(require("@emotion/is-prop-valid").default)}catch{}function ZTe(s,e,t){const i={};for(const n in s)n==="values"&&typeof s.values=="object"||(K5(n)||t===!0&&Wv(n)||!e&&!Wv(n)||s.draggable&&n.startsWith("onDrag"))&&(i[n]=s[n]);return i}function JTe(s){if(typeof Proxy>"u")return s;const e=new Map,t=(...i)=>s(...i);return new Proxy(t,{get:(i,n)=>n==="create"?s:(e.has(n)||e.set(n,s(n)),e.get(n))})}const P0=D.createContext({});function J_(s){return typeof s=="string"||Array.isArray(s)}function k0(s){return s!==null&&typeof s=="object"&&typeof s.start=="function"}const e2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t2=["initial",...e2];function x0(s){return k0(s.animate)||t2.some(e=>J_(s[e]))}function q5(s){return!!(x0(s)||s.variants)}function eIe(s,e){if(x0(s)){const{initial:t,animate:i}=s;return{initial:t===!1||J_(t)?t:void 0,animate:J_(i)?i:void 0}}return s.inherit!==!1?e:{}}function tIe(s){const{initial:e,animate:t}=eIe(s,D.useContext(P0));return D.useMemo(()=>({initial:e,animate:t}),[yk(e),yk(t)])}function yk(s){return Array.isArray(s)?s.join(" "):s}const iIe=Symbol.for("motionComponentSymbol");function Fh(s){return s&&typeof s=="object"&&Object.prototype.hasOwnProperty.call(s,"current")}function sIe(s,e,t){return D.useCallback(i=>{i&&s.onMount&&s.onMount(i),e&&(i?e.mount(i):e.unmount()),t&&(typeof t=="function"?t(i):Fh(t)&&(t.current=i))},[e])}const i2=s=>s.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nIe="framerAppearId",$5="data-"+i2(nIe),{schedule:s2}=Y5(queueMicrotask,!1),Q5=D.createContext({});function rIe(s,e,t,i,n){var r,a;const{visualElement:o}=D.useContext(P0),l=D.useContext(X5),u=D.useContext(N0),c=D.useContext(Qw).reducedMotion,h=D.useRef(null);i=i||l.renderer,!h.current&&i&&(h.current=i(s,{visualState:e,parent:o,props:t,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=D.useContext(Q5);f&&!f.projection&&n&&(f.type==="html"||f.type==="svg")&&aIe(h.current,t,n,d);const _=D.useRef(!1);D.useInsertionEffect(()=>{f&&_.current&&f.update(t,u)});const g=t[$5],p=D.useRef(!!g&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,g))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,g)));return H5(()=>{f&&(_.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),s2.render(f.render),p.current&&f.animationState&&f.animationState.animateChanges())}),D.useEffect(()=>{f&&(!p.current&&f.animationState&&f.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,g)}),p.current=!1))}),f}function aIe(s,e,t,i){const{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=e;s.projection=new t(s.latestValues,e["data-framer-portal-id"]?void 0:Z5(s.parent)),s.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!a||o&&Fh(o),visualElement:s,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function Z5(s){if(s)return s.options.allowProjection!==!1?s.projection:Z5(s.parent)}function oIe({preloadedFeatures:s,createVisualElement:e,useRender:t,useVisualState:i,Component:n}){var r,a;s&&qTe(s);function o(u,c){let h;const f={...D.useContext(Qw),...u,layoutId:lIe(u)},{isStatic:d}=f,_=tIe(u),g=i(u,d);if(!d&&Zw){uIe();const p=hIe(f);h=p.MeasureLayout,_.visualElement=rIe(n,g,f,e,p.ProjectionNode)}return vt.jsxs(P0.Provider,{value:_,children:[h&&_.visualElement?vt.jsx(h,{visualElement:_.visualElement,...f}):null,t(n,u,sIe(g,_.visualElement,c),g,d,_.visualElement)]})}o.displayName=`motion.${typeof n=="string"?n:`create(${(a=(r=n.displayName)!==null&&r!==void 0?r:n.name)!==null&&a!==void 0?a:""})`}`;const l=D.forwardRef(o);return l[iIe]=n,l}function lIe({layoutId:s}){const e=D.useContext(qw).id;return e&&s!==void 0?e+"-"+s:s}function uIe(s,e){D.useContext(X5).strict}function hIe(s){const{drag:e,layout:t}=nf;if(!e&&!t)return{};const i={...e,...t};return{MeasureLayout:e!=null&&e.isEnabled(s)||t!=null&&t.isEnabled(s)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const cIe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function n2(s){return typeof s!="string"||s.includes("-")?!1:!!(cIe.indexOf(s)>-1||/[A-Z]/u.test(s))}function Tk(s){const e=[{},{}];return s==null||s.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r2(s,e,t,i){if(typeof e=="function"){const[n,r]=Tk(i);e=e(t!==void 0?t:s.custom,n,r)}if(typeof e=="string"&&(e=s.variants&&s.variants[e]),typeof e=="function"){const[n,r]=Tk(i);e=e(t!==void 0?t:s.custom,n,r)}return e}const wA=s=>Array.isArray(s),fIe=s=>!!(s&&typeof s=="object"&&s.mix&&s.toValue),dIe=s=>wA(s)?s[s.length-1]||0:s,ts=s=>!!(s&&s.getVelocity);function Yp(s){const e=ts(s)?s.get():s;return fIe(e)?e.toValue():e}function _Ie({scrapeMotionValuesFromProps:s,createRenderState:e,onUpdate:t},i,n,r){const a={latestValues:gIe(i,n,r,s),renderState:e()};return t&&(a.onMount=o=>t({props:i,current:o,...a}),a.onUpdate=o=>t(o)),a}const J5=s=>(e,t)=>{const i=D.useContext(P0),n=D.useContext(N0),r=()=>_Ie(s,e,i,n);return t?r():$w(r)};function gIe(s,e,t,i){const n={},r=i(s,{});for(const f in r)n[f]=Yp(r[f]);let{initial:a,animate:o}=s;const l=x0(s),u=q5(s);e&&u&&!l&&s.inherit!==!1&&(a===void 0&&(a=e.initial),o===void 0&&(o=e.animate));let c=t?t.initial===!1:!1;c=c||a===!1;const h=c?o:a;if(h&&typeof h!="boolean"&&!k0(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const _=r2(s,f[d]);if(_){const{transitionEnd:g,transition:p,...m}=_;for(const v in m){let E=m[v];if(Array.isArray(E)){const y=c?E.length-1:0;E=E[y]}E!==null&&(n[v]=E)}for(const v in g)n[v]=g[v]}}}return n}const vf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qu=new Set(vf),eB=s=>e=>typeof e=="string"&&e.startsWith(s),tB=eB("--"),pIe=eB("var(--"),a2=s=>pIe(s)?mIe.test(s.split("/*")[0].trim()):!1,mIe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,iB=(s,e)=>e&&typeof s=="number"?e.transform(s):s,Ha=(s,e,t)=>t>e?e:t<s?s:t,Ef={test:s=>typeof s=="number",parse:parseFloat,transform:s=>s},eg={...Ef,transform:s=>Ha(0,1,s)},vp={...Ef,default:1},Ig=s=>({test:e=>typeof e=="string"&&e.endsWith(s)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${s}`}),Qa=Ig("deg"),Br=Ig("%"),Re=Ig("px"),vIe=Ig("vh"),EIe=Ig("vw"),Ik={...Br,parse:s=>Br.parse(s)/100,transform:s=>Br.transform(s*100)},yIe={borderWidth:Re,borderTopWidth:Re,borderRightWidth:Re,borderBottomWidth:Re,borderLeftWidth:Re,borderRadius:Re,radius:Re,borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomRightRadius:Re,borderBottomLeftRadius:Re,width:Re,maxWidth:Re,height:Re,maxHeight:Re,top:Re,right:Re,bottom:Re,left:Re,padding:Re,paddingTop:Re,paddingRight:Re,paddingBottom:Re,paddingLeft:Re,margin:Re,marginTop:Re,marginRight:Re,marginBottom:Re,marginLeft:Re,backgroundPositionX:Re,backgroundPositionY:Re},TIe={rotate:Qa,rotateX:Qa,rotateY:Qa,rotateZ:Qa,scale:vp,scaleX:vp,scaleY:vp,scaleZ:vp,skew:Qa,skewX:Qa,skewY:Qa,distance:Re,translateX:Re,translateY:Re,translateZ:Re,x:Re,y:Re,z:Re,perspective:Re,transformPerspective:Re,opacity:eg,originX:Ik,originY:Ik,originZ:Re},Rk={...Ef,transform:Math.round},o2={...yIe,...TIe,zIndex:Rk,size:Re,fillOpacity:eg,strokeOpacity:eg,numOctaves:Rk},IIe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RIe=vf.length;function SIe(s,e,t){let i="",n=!0;for(let r=0;r<RIe;r++){const a=vf[r],o=s[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||t){const u=iB(o,o2[a]);if(!l){n=!1;const c=IIe[a]||a;i+=`${c}(${u}) `}t&&(e[a]=u)}}return i=i.trim(),t?i=t(e,n?"":i):n&&(i="none"),i}function l2(s,e,t){const{style:i,vars:n,transformOrigin:r}=s;let a=!1,o=!1;for(const l in e){const u=e[l];if(Qu.has(l)){a=!0;continue}else if(tB(l)){n[l]=u;continue}else{const c=iB(u,o2[l]);l.startsWith("origin")?(o=!0,r[l]=c):i[l]=c}}if(e.transform||(a||t?i.transform=SIe(e,s.transform,t):i.transform&&(i.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}const bIe={offset:"stroke-dashoffset",array:"stroke-dasharray"},AIe={offset:"strokeDashoffset",array:"strokeDasharray"};function OIe(s,e,t=1,i=0,n=!0){s.pathLength=1;const r=n?bIe:AIe;s[r.offset]=Re.transform(-i);const a=Re.transform(e),o=Re.transform(t);s[r.array]=`${a} ${o}`}function Sk(s,e,t){return typeof s=="string"?s:Re.transform(e+t*s)}function wIe(s,e,t){const i=Sk(e,s.x,s.width),n=Sk(t,s.y,s.height);return`${i} ${n}`}function u2(s,{attrX:e,attrY:t,attrScale:i,originX:n,originY:r,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},c,h){if(l2(s,u,h),c){s.style.viewBox&&(s.attrs.viewBox=s.style.viewBox);return}s.attrs=s.style,s.style={};const{attrs:f,style:d,dimensions:_}=s;f.transform&&(_&&(d.transform=f.transform),delete f.transform),_&&(n!==void 0||r!==void 0||d.transform)&&(d.transformOrigin=wIe(_,n!==void 0?n:.5,r!==void 0?r:.5)),e!==void 0&&(f.x=e),t!==void 0&&(f.y=t),i!==void 0&&(f.scale=i),a!==void 0&&OIe(f,a,o,l,!1)}const h2=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),sB=()=>({...h2(),attrs:{}}),c2=s=>typeof s=="string"&&s.toLowerCase()==="svg";function nB(s,{style:e,vars:t},i,n){Object.assign(s.style,e,n&&n.getProjectionStyles(i));for(const r in t)s.style.setProperty(r,t[r])}const rB=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function aB(s,e,t,i){nB(s,e,void 0,i);for(const n in e.attrs)s.setAttribute(rB.has(n)?n:i2(n),e.attrs[n])}const Yv={};function CIe(s){Object.assign(Yv,s)}function oB(s,{layout:e,layoutId:t}){return Qu.has(s)||s.startsWith("origin")||(e||t!==void 0)&&(!!Yv[s]||s==="opacity")}function f2(s,e,t){var i;const{style:n}=s,r={};for(const a in n)(ts(n[a])||e.style&&ts(e.style[a])||oB(a,s)||((i=t==null?void 0:t.getValue(a))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[a]=n[a]);return r}function lB(s,e,t){const i=f2(s,e,t);for(const n in s)if(ts(s[n])||ts(e[n])){const r=vf.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[r]=s[n]}return i}function MIe(s,e){try{e.dimensions=typeof s.getBBox=="function"?s.getBBox():s.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const bk=["x","y","width","height","cx","cy","r"],NIe={useVisualState:J5({scrapeMotionValuesFromProps:lB,createRenderState:sB,onUpdate:({props:s,prevProps:e,current:t,renderState:i,latestValues:n})=>{if(!t)return;let r=!!s.drag;if(!r){for(const o in n)if(Qu.has(o)){r=!0;break}}if(!r)return;let a=!e;if(e)for(let o=0;o<bk.length;o++){const l=bk[o];s[l]!==e[l]&&(a=!0)}a&&xt.read(()=>{MIe(t,i),xt.render(()=>{u2(i,n,c2(t.tagName),s.transformTemplate),aB(t,i)})})}})},PIe={useVisualState:J5({scrapeMotionValuesFromProps:f2,createRenderState:h2})};function uB(s,e,t){for(const i in e)!ts(e[i])&&!oB(i,t)&&(s[i]=e[i])}function kIe({transformTemplate:s},e){return D.useMemo(()=>{const t=h2();return l2(t,e,s),Object.assign({},t.vars,t.style)},[e])}function xIe(s,e){const t=s.style||{},i={};return uB(i,t,s),Object.assign(i,kIe(s,e)),i}function DIe(s,e){const t={},i=xIe(s,e);return s.drag&&s.dragListener!==!1&&(t.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=s.drag===!0?"none":`pan-${s.drag==="x"?"y":"x"}`),s.tabIndex===void 0&&(s.onTap||s.onTapStart||s.whileTap)&&(t.tabIndex=0),t.style=i,t}function LIe(s,e,t,i){const n=D.useMemo(()=>{const r=sB();return u2(r,e,c2(i),s.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(s.style){const r={};uB(r,s.style,s),n.style={...r,...n.style}}return n}function UIe(s=!1){return(t,i,n,{latestValues:r},a)=>{const l=(n2(t)?LIe:DIe)(i,r,a,t),u=ZTe(i,typeof t=="string",s),c=t!==D.Fragment?{...u,...l,ref:n}:{},{children:h}=i,f=D.useMemo(()=>ts(h)?h.get():h,[h]);return D.createElement(t,{...c,children:f})}}function FIe(s,e){return function(i,{forwardMotionProps:n}={forwardMotionProps:!1}){const a={...n2(i)?NIe:PIe,preloadedFeatures:s,useRender:UIe(n),createVisualElement:e,Component:i};return oIe(a)}}function hB(s,e){if(!Array.isArray(e))return!1;const t=e.length;if(t!==s.length)return!1;for(let i=0;i<t;i++)if(e[i]!==s[i])return!1;return!0}function D0(s,e,t){const i=s.getProps();return r2(i,e,t!==void 0?t:i.custom,s)}const BIe=Jw(()=>window.ScrollTimeline!==void 0);class GIe{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=t}attachTimeline(e,t){const i=this.animations.map(n=>{if(BIe()&&n.attachTimeline)return n.attachTimeline(e);if(typeof t=="function")return t(n)});return()=>{i.forEach((n,r)=>{n&&n(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class VIe extends GIe{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function d2(s,e){return s?s[e]||s.default||s:void 0}const CA=2e4;function cB(s){let e=0;const t=50;let i=s.next(e);for(;!i.done&&e<CA;)e+=t,i=s.next(e);return e>=CA?1/0:e}function _2(s){return typeof s=="function"}function Ak(s,e){s.timeline=e,s.onfinish=null}const g2=s=>Array.isArray(s)&&typeof s[0]=="number",jIe={linearEasing:void 0};function zIe(s,e){const t=Jw(s);return()=>{var i;return(i=jIe[e])!==null&&i!==void 0?i:t()}}const Xv=zIe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),fB=(s,e,t=10)=>{let i="";const n=Math.max(Math.round(e/t),2);for(let r=0;r<n;r++)i+=s(sf(0,n-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function dB(s){return!!(typeof s=="function"&&Xv()||!s||typeof s=="string"&&(s in MA||Xv())||g2(s)||Array.isArray(s)&&s.every(dB))}const Hf=([s,e,t,i])=>`cubic-bezier(${s}, ${e}, ${t}, ${i})`,MA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hf([0,.65,.55,1]),circOut:Hf([.55,0,1,.45]),backIn:Hf([.31,.01,.66,-.59]),backOut:Hf([.33,1.53,.69,.99])};function _B(s,e){if(s)return typeof s=="function"&&Xv()?fB(s,e):g2(s)?Hf(s):Array.isArray(s)?s.map(t=>_B(t,e)||MA.easeOut):MA[s]}const Gn={x:!1,y:!1};function gB(){return Gn.x||Gn.y}function HIe(s,e,t){var i;if(s instanceof Element)return[s];if(typeof s=="string"){let n=document;const r=(i=void 0)!==null&&i!==void 0?i:n.querySelectorAll(s);return r?Array.from(r):[]}return Array.from(s)}function pB(s,e){const t=HIe(s),i=new AbortController,n={passive:!0,...e,signal:i.signal};return[t,n,()=>i.abort()]}function Ok(s){return e=>{e.pointerType==="touch"||gB()||s(e)}}function WIe(s,e,t={}){const[i,n,r]=pB(s,t),a=Ok(o=>{const{target:l}=o,u=e(o);if(typeof u!="function"||!l)return;const c=Ok(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,n)});return i.forEach(o=>{o.addEventListener("pointerenter",a,n)}),r}const mB=(s,e)=>e?s===e?!0:mB(s,e.parentElement):!1,p2=s=>s.pointerType==="mouse"?typeof s.button!="number"||s.button<=0:s.isPrimary!==!1,YIe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XIe(s){return YIe.has(s.tagName)||s.tabIndex!==-1}const Wf=new WeakSet;function wk(s){return e=>{e.key==="Enter"&&s(e)}}function yT(s,e){s.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const KIe=(s,e)=>{const t=s.currentTarget;if(!t)return;const i=wk(()=>{if(Wf.has(t))return;yT(t,"down");const n=wk(()=>{yT(t,"up")}),r=()=>yT(t,"cancel");t.addEventListener("keyup",n,e),t.addEventListener("blur",r,e)});t.addEventListener("keydown",i,e),t.addEventListener("blur",()=>t.removeEventListener("keydown",i),e)};function Ck(s){return p2(s)&&!gB()}function qIe(s,e,t={}){const[i,n,r]=pB(s,t),a=o=>{const l=o.currentTarget;if(!Ck(o)||Wf.has(l))return;Wf.add(l);const u=e(o),c=(d,_)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!Ck(d)||!Wf.has(l))&&(Wf.delete(l),typeof u=="function"&&u(d,{success:_}))},h=d=>{c(d,t.useGlobalTarget||mB(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,n),window.addEventListener("pointercancel",f,n)};return i.forEach(o=>{!XIe(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(t.useGlobalTarget?window:o).addEventListener("pointerdown",a,n),o.addEventListener("focus",u=>KIe(u,n),n)}),r}function $Ie(s){return s==="x"||s==="y"?Gn[s]?null:(Gn[s]=!0,()=>{Gn[s]=!1}):Gn.x||Gn.y?null:(Gn.x=Gn.y=!0,()=>{Gn.x=Gn.y=!1})}const vB=new Set(["width","height","top","left","right","bottom",...vf]);let Xp;function QIe(){Xp=void 0}const Gr={now:()=>(Xp===void 0&&Gr.set(Bi.isProcessing||YTe.useManualTiming?Bi.timestamp:performance.now()),Xp),set:s=>{Xp=s,queueMicrotask(QIe)}};function m2(s,e){s.indexOf(e)===-1&&s.push(e)}function v2(s,e){const t=s.indexOf(e);t>-1&&s.splice(t,1)}class E2{constructor(){this.subscriptions=[]}add(e){return m2(this.subscriptions,e),()=>v2(this.subscriptions,e)}notify(e,t,i){const n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,t,i);else for(let r=0;r<n;r++){const a=this.subscriptions[r];a&&a(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function EB(s,e){return e?s*(1e3/e):0}const Mk=30,ZIe=s=>!isNaN(parseFloat(s));class JIe{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,n=!0)=>{const r=Gr.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Gr.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ZIe(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new E2);const i=this.events[e].add(t);return e==="change"?()=>{i(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Gr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Mk)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,Mk);return EB(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tg(s,e){return new JIe(s,e)}function eRe(s,e,t){s.hasValue(e)?s.getValue(e).set(t):s.addValue(e,tg(t))}function tRe(s,e){const t=D0(s,e);let{transitionEnd:i={},transition:n={},...r}=t||{};r={...r,...i};for(const a in r){const o=dIe(r[a]);eRe(s,a,o)}}function iRe(s){return!!(ts(s)&&s.add)}function NA(s,e){const t=s.getValue("willChange");if(iRe(t))return t.add(e)}function yB(s){return s.props[$5]}const TB=(s,e,t)=>(((1-3*t+3*e)*s+(3*t-6*e))*s+3*e)*s,sRe=1e-7,nRe=12;function rRe(s,e,t,i,n){let r,a,o=0;do a=e+(t-e)/2,r=TB(a,i,n)-s,r>0?t=a:e=a;while(Math.abs(r)>sRe&&++o<nRe);return a}function Rg(s,e,t,i){if(s===e&&t===i)return an;const n=r=>rRe(r,0,1,s,t);return r=>r===0||r===1?r:TB(n(r),e,i)}const IB=s=>e=>e<=.5?s(2*e)/2:(2-s(2*(1-e)))/2,RB=s=>e=>1-s(1-e),SB=Rg(.33,1.53,.69,.99),y2=RB(SB),bB=IB(y2),AB=s=>(s*=2)<1?.5*y2(s):.5*(2-Math.pow(2,-10*(s-1))),T2=s=>1-Math.sin(Math.acos(s)),OB=RB(T2),wB=IB(T2),CB=s=>/^0[^.\s]+$/u.test(s);function aRe(s){return typeof s=="number"?s===0:s!==null?s==="none"||s==="0"||CB(s):!0}const pd=s=>Math.round(s*1e5)/1e5,I2=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oRe(s){return s==null}const lRe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,R2=(s,e)=>t=>!!(typeof t=="string"&&lRe.test(t)&&t.startsWith(s)||e&&!oRe(t)&&Object.prototype.hasOwnProperty.call(t,e)),MB=(s,e,t)=>i=>{if(typeof i!="string")return i;const[n,r,a,o]=i.match(I2);return{[s]:parseFloat(n),[e]:parseFloat(r),[t]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},uRe=s=>Ha(0,255,s),TT={...Ef,transform:s=>Math.round(uRe(s))},mu={test:R2("rgb","red"),parse:MB("red","green","blue"),transform:({red:s,green:e,blue:t,alpha:i=1})=>"rgba("+TT.transform(s)+", "+TT.transform(e)+", "+TT.transform(t)+", "+pd(eg.transform(i))+")"};function hRe(s){let e="",t="",i="",n="";return s.length>5?(e=s.substring(1,3),t=s.substring(3,5),i=s.substring(5,7),n=s.substring(7,9)):(e=s.substring(1,2),t=s.substring(2,3),i=s.substring(3,4),n=s.substring(4,5),e+=e,t+=t,i+=i,n+=n),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}const PA={test:R2("#"),parse:hRe,transform:mu.transform},Bh={test:R2("hsl","hue"),parse:MB("hue","saturation","lightness"),transform:({hue:s,saturation:e,lightness:t,alpha:i=1})=>"hsla("+Math.round(s)+", "+Br.transform(pd(e))+", "+Br.transform(pd(t))+", "+pd(eg.transform(i))+")"},Qi={test:s=>mu.test(s)||PA.test(s)||Bh.test(s),parse:s=>mu.test(s)?mu.parse(s):Bh.test(s)?Bh.parse(s):PA.parse(s),transform:s=>typeof s=="string"?s:s.hasOwnProperty("red")?mu.transform(s):Bh.transform(s)},cRe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fRe(s){var e,t;return isNaN(s)&&typeof s=="string"&&(((e=s.match(I2))===null||e===void 0?void 0:e.length)||0)+(((t=s.match(cRe))===null||t===void 0?void 0:t.length)||0)>0}const NB="number",PB="color",dRe="var",_Re="var(",Nk="${}",gRe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ig(s){const e=s.toString(),t=[],i={color:[],number:[],var:[]},n=[];let r=0;const o=e.replace(gRe,l=>(Qi.test(l)?(i.color.push(r),n.push(PB),t.push(Qi.parse(l))):l.startsWith(_Re)?(i.var.push(r),n.push(dRe),t.push(l)):(i.number.push(r),n.push(NB),t.push(parseFloat(l))),++r,Nk)).split(Nk);return{values:t,split:o,indexes:i,types:n}}function kB(s){return ig(s).values}function xB(s){const{split:e,types:t}=ig(s),i=e.length;return n=>{let r="";for(let a=0;a<i;a++)if(r+=e[a],n[a]!==void 0){const o=t[a];o===NB?r+=pd(n[a]):o===PB?r+=Qi.transform(n[a]):r+=n[a]}return r}}const pRe=s=>typeof s=="number"?0:s;function mRe(s){const e=kB(s);return xB(s)(e.map(pRe))}const nl={test:fRe,parse:kB,createTransformer:xB,getAnimatableNone:mRe},vRe=new Set(["brightness","contrast","saturate","opacity"]);function ERe(s){const[e,t]=s.slice(0,-1).split("(");if(e==="drop-shadow")return s;const[i]=t.match(I2)||[];if(!i)return s;const n=t.replace(i,"");let r=vRe.has(e)?1:0;return i!==t&&(r*=100),e+"("+r+n+")"}const yRe=/\b([a-z-]*)\(.*?\)/gu,kA={...nl,getAnimatableNone:s=>{const e=s.match(yRe);return e?e.map(ERe).join(" "):s}},TRe={...o2,color:Qi,backgroundColor:Qi,outlineColor:Qi,fill:Qi,stroke:Qi,borderColor:Qi,borderTopColor:Qi,borderRightColor:Qi,borderBottomColor:Qi,borderLeftColor:Qi,filter:kA,WebkitFilter:kA},S2=s=>TRe[s];function DB(s,e){let t=S2(s);return t!==kA&&(t=nl),t.getAnimatableNone?t.getAnimatableNone(e):void 0}const IRe=new Set(["auto","none","0"]);function RRe(s,e,t){let i=0,n;for(;i<s.length&&!n;){const r=s[i];typeof r=="string"&&!IRe.has(r)&&ig(r).values.length&&(n=s[i]),i++}if(n&&t)for(const r of e)s[r]=DB(t,n)}const Pk=s=>s===Ef||s===Re,kk=(s,e)=>parseFloat(s.split(", ")[e]),xk=(s,e)=>(t,{transform:i})=>{if(i==="none"||!i)return 0;const n=i.match(/^matrix3d\((.+)\)$/u);if(n)return kk(n[1],e);{const r=i.match(/^matrix\((.+)\)$/u);return r?kk(r[1],s):0}},SRe=new Set(["x","y","z"]),bRe=vf.filter(s=>!SRe.has(s));function ARe(s){const e=[];return bRe.forEach(t=>{const i=s.getValue(t);i!==void 0&&(e.push([t,i.get()]),i.set(t.startsWith("scale")?1:0))}),e}const rf={width:({x:s},{paddingLeft:e="0",paddingRight:t="0"})=>s.max-s.min-parseFloat(e)-parseFloat(t),height:({y:s},{paddingTop:e="0",paddingBottom:t="0"})=>s.max-s.min-parseFloat(e)-parseFloat(t),top:(s,{top:e})=>parseFloat(e),left:(s,{left:e})=>parseFloat(e),bottom:({y:s},{top:e})=>parseFloat(e)+(s.max-s.min),right:({x:s},{left:e})=>parseFloat(e)+(s.max-s.min),x:xk(4,13),y:xk(5,14)};rf.translateX=rf.x;rf.translateY=rf.y;const Ou=new Set;let xA=!1,DA=!1;function LB(){if(DA){const s=Array.from(Ou).filter(i=>i.needsMeasurement),e=new Set(s.map(i=>i.element)),t=new Map;e.forEach(i=>{const n=ARe(i);n.length&&(t.set(i,n),i.render())}),s.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const n=t.get(i);n&&n.forEach(([r,a])=>{var o;(o=i.getValue(r))===null||o===void 0||o.set(a)})}),s.forEach(i=>i.measureEndState()),s.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}DA=!1,xA=!1,Ou.forEach(s=>s.complete()),Ou.clear()}function UB(){Ou.forEach(s=>{s.readKeyframes(),s.needsMeasurement&&(DA=!0)})}function ORe(){UB(),LB()}class b2{constructor(e,t,i,n,r,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=r,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ou.add(this),xA||(xA=!0,xt.read(UB),xt.resolveKeyframes(LB))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const a=n==null?void 0:n.get(),o=e[e.length-1];if(a!==void 0)e[0]=a;else if(i&&t){const l=i.readValue(t,o);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=o),n&&a===void 0&&n.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ou.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ou.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const FB=s=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s),wRe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function CRe(s){const e=wRe.exec(s);if(!e)return[,];const[,t,i,n]=e;return[`--${t??i}`,n]}function BB(s,e,t=1){const[i,n]=CRe(s);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const a=r.trim();return FB(a)?parseFloat(a):a}return a2(n)?BB(n,e,t+1):n}const GB=s=>e=>e.test(s),MRe={test:s=>s==="auto",parse:s=>s},VB=[Ef,Re,Br,Qa,EIe,vIe,MRe],Dk=s=>VB.find(GB(s));class jB extends b2{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),a2(u))){const c=BB(u,t.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!vB.has(i)||e.length!==2)return;const[n,r]=e,a=Dk(n),o=Dk(r);if(a!==o)if(Pk(a)&&Pk(o))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,i=[];for(let n=0;n<e.length;n++)aRe(e[n])&&i.push(n);i.length&&RRe(e,i,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rf[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const n=t[t.length-1];n!==void 0&&e.getValue(i,n).jump(n,!1)}measureEndState(){var e;const{element:t,name:i,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const r=t.getValue(i);r&&r.jump(this.measuredOrigin,!1);const a=n.length-1,o=n[a];n[a]=rf[i](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Lk=(s,e)=>e==="zIndex"?!1:!!(typeof s=="number"||Array.isArray(s)||typeof s=="string"&&(nl.test(s)||s==="0")&&!s.startsWith("url("));function NRe(s){const e=s[0];if(s.length===1)return!0;for(let t=0;t<s.length;t++)if(s[t]!==e)return!0}function PRe(s,e,t,i){const n=s[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;const r=s[s.length-1],a=Lk(n,e),o=Lk(r,e);return!a||!o?!1:NRe(s)||(t==="spring"||_2(t))&&i}const kRe=s=>s!==null;function L0(s,{repeat:e,repeatType:t="loop"},i){const n=s.filter(kRe),r=e&&t!=="loop"&&e%2===1?0:n.length-1;return!r||i===void 0?n[r]:i}const xRe=40;class zB{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:a="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Gr.now(),this.options={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:a,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>xRe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ORe(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Gr.now(),this.hasAttemptedResolve=!0;const{name:i,type:n,velocity:r,delay:a,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!PRe(e,i,n,r))if(a)this.options.duration=0;else{l&&l(L0(e,this.options,t)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,t);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Ht=(s,e,t)=>s+(e-s)*t;function IT(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*(2/3-t)*6:s}function DRe({hue:s,saturation:e,lightness:t,alpha:i}){s/=360,e/=100,t/=100;let n=0,r=0,a=0;if(!e)n=r=a=t;else{const o=t<.5?t*(1+e):t+e-t*e,l=2*t-o;n=IT(l,o,s+1/3),r=IT(l,o,s),a=IT(l,o,s-1/3)}return{red:Math.round(n*255),green:Math.round(r*255),blue:Math.round(a*255),alpha:i}}function Kv(s,e){return t=>t>0?e:s}const RT=(s,e,t)=>{const i=s*s,n=t*(e*e-i)+i;return n<0?0:Math.sqrt(n)},LRe=[PA,mu,Bh],URe=s=>LRe.find(e=>e.test(s));function Uk(s){const e=URe(s);if(!e)return!1;let t=e.parse(s);return e===Bh&&(t=DRe(t)),t}const Fk=(s,e)=>{const t=Uk(s),i=Uk(e);if(!t||!i)return Kv(s,e);const n={...t};return r=>(n.red=RT(t.red,i.red,r),n.green=RT(t.green,i.green,r),n.blue=RT(t.blue,i.blue,r),n.alpha=Ht(t.alpha,i.alpha,r),mu.transform(n))},FRe=(s,e)=>t=>e(s(t)),Sg=(...s)=>s.reduce(FRe),LA=new Set(["none","hidden"]);function BRe(s,e){return LA.has(s)?t=>t<=0?s:e:t=>t>=1?e:s}function GRe(s,e){return t=>Ht(s,e,t)}function A2(s){return typeof s=="number"?GRe:typeof s=="string"?a2(s)?Kv:Qi.test(s)?Fk:zRe:Array.isArray(s)?HB:typeof s=="object"?Qi.test(s)?Fk:VRe:Kv}function HB(s,e){const t=[...s],i=t.length,n=s.map((r,a)=>A2(r)(r,e[a]));return r=>{for(let a=0;a<i;a++)t[a]=n[a](r);return t}}function VRe(s,e){const t={...s,...e},i={};for(const n in t)s[n]!==void 0&&e[n]!==void 0&&(i[n]=A2(s[n])(s[n],e[n]));return n=>{for(const r in i)t[r]=i[r](n);return t}}function jRe(s,e){var t;const i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const a=e.types[r],o=s.indexes[a][n[a]],l=(t=s.values[o])!==null&&t!==void 0?t:0;i[r]=l,n[a]++}return i}const zRe=(s,e)=>{const t=nl.createTransformer(e),i=ig(s),n=ig(e);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?LA.has(s)&&!n.values.length||LA.has(e)&&!i.values.length?BRe(s,e):Sg(HB(jRe(i,n),n.values),t):Kv(s,e)};function WB(s,e,t){return typeof s=="number"&&typeof e=="number"&&typeof t=="number"?Ht(s,e,t):A2(s)(s,e)}const HRe=5;function YB(s,e,t){const i=Math.max(e-HRe,0);return EB(t-s(i),e-i)}const Jt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Bk=.001;function WRe({duration:s=Jt.duration,bounce:e=Jt.bounce,velocity:t=Jt.velocity,mass:i=Jt.mass}){let n,r,a=1-e;a=Ha(Jt.minDamping,Jt.maxDamping,a),s=Ha(Jt.minDuration,Jt.maxDuration,Da(s)),a<1?(n=u=>{const c=u*a,h=c*s,f=c-t,d=UA(u,a),_=Math.exp(-h);return Bk-f/d*_},r=u=>{const h=u*a*s,f=h*t+t,d=Math.pow(a,2)*Math.pow(u,2)*s,_=Math.exp(-h),g=UA(Math.pow(u,2),a);return(-n(u)+Bk>0?-1:1)*((f-d)*_)/g}):(n=u=>{const c=Math.exp(-u*s),h=(u-t)*s+1;return-.001+c*h},r=u=>{const c=Math.exp(-u*s),h=(t-u)*(s*s);return c*h});const o=5/s,l=XRe(n,r,o);if(s=xa(s),isNaN(l))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:s};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:a*2*Math.sqrt(i*u),duration:s}}}const YRe=12;function XRe(s,e,t){let i=t;for(let n=1;n<YRe;n++)i=i-s(i)/e(i);return i}function UA(s,e){return s*Math.sqrt(1-e*e)}const KRe=["duration","bounce"],qRe=["stiffness","damping","mass"];function Gk(s,e){return e.some(t=>s[t]!==void 0)}function $Re(s){let e={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...s};if(!Gk(s,qRe)&&Gk(s,KRe))if(s.visualDuration){const t=s.visualDuration,i=2*Math.PI/(t*1.2),n=i*i,r=2*Ha(.05,1,1-(s.bounce||0))*Math.sqrt(n);e={...e,mass:Jt.mass,stiffness:n,damping:r}}else{const t=WRe(s);e={...e,...t,mass:Jt.mass},e.isResolvedFromDuration=!0}return e}function XB(s=Jt.visualDuration,e=Jt.bounce){const t=typeof s!="object"?{visualDuration:s,keyframes:[0,1],bounce:e}:s;let{restSpeed:i,restDelta:n}=t;const r=t.keyframes[0],a=t.keyframes[t.keyframes.length-1],o={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=$Re({...t,velocity:-Da(t.velocity||0)}),_=f||0,g=u/(2*Math.sqrt(l*c)),p=a-r,m=Da(Math.sqrt(l/c)),v=Math.abs(p)<5;i||(i=v?Jt.restSpeed.granular:Jt.restSpeed.default),n||(n=v?Jt.restDelta.granular:Jt.restDelta.default);let E;if(g<1){const T=UA(m,g);E=w=>{const C=Math.exp(-g*m*w);return a-C*((_+g*m*p)/T*Math.sin(T*w)+p*Math.cos(T*w))}}else if(g===1)E=T=>a-Math.exp(-m*T)*(p+(_+m*p)*T);else{const T=m*Math.sqrt(g*g-1);E=w=>{const C=Math.exp(-g*m*w),N=Math.min(T*w,300);return a-C*((_+g*m*p)*Math.sinh(N)+T*p*Math.cosh(N))/T}}const y={calculatedDuration:d&&h||null,next:T=>{const w=E(T);if(d)o.done=T>=h;else{let C=0;g<1&&(C=T===0?xa(_):YB(E,T,w));const N=Math.abs(C)<=i,P=Math.abs(a-w)<=n;o.done=N&&P}return o.value=o.done?a:w,o},toString:()=>{const T=Math.min(cB(y),CA),w=fB(C=>y.next(T*C).value,T,30);return T+"ms "+w}};return y}function Vk({keyframes:s,velocity:e=0,power:t=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){const h=s[0],f={done:!1,value:h},d=N=>o!==void 0&&N<o||l!==void 0&&N>l,_=N=>o===void 0?l:l===void 0||Math.abs(o-N)<Math.abs(l-N)?o:l;let g=t*e;const p=h+g,m=a===void 0?p:a(p);m!==p&&(g=m-h);const v=N=>-g*Math.exp(-N/i),E=N=>m+v(N),y=N=>{const P=v(N),k=E(N);f.done=Math.abs(P)<=u,f.value=f.done?m:k};let T,w;const C=N=>{d(f.value)&&(T=N,w=XB({keyframes:[f.value,_(f.value)],velocity:YB(E,N,f.value),damping:n,stiffness:r,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:N=>{let P=!1;return!w&&T===void 0&&(P=!0,y(N),C(N)),T!==void 0&&N>=T?w.next(N-T):(!P&&y(N),f)}}}const QRe=Rg(.42,0,1,1),ZRe=Rg(0,0,.58,1),KB=Rg(.42,0,.58,1),JRe=s=>Array.isArray(s)&&typeof s[0]!="number",eSe={linear:an,easeIn:QRe,easeInOut:KB,easeOut:ZRe,circIn:T2,circInOut:wB,circOut:OB,backIn:y2,backInOut:bB,backOut:SB,anticipate:AB},jk=s=>{if(g2(s)){W5(s.length===4);const[e,t,i,n]=s;return Rg(e,t,i,n)}else if(typeof s=="string")return eSe[s];return s};function tSe(s,e,t){const i=[],n=t||WB,r=s.length-1;for(let a=0;a<r;a++){let o=n(s[a],s[a+1]);if(e){const l=Array.isArray(e)?e[a]||an:e;o=Sg(l,o)}i.push(o)}return i}function iSe(s,e,{clamp:t=!0,ease:i,mixer:n}={}){const r=s.length;if(W5(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const a=s[0]===s[1];s[0]>s[r-1]&&(s=[...s].reverse(),e=[...e].reverse());const o=tSe(e,i,n),l=o.length,u=c=>{if(a&&c<s[0])return e[0];let h=0;if(l>1)for(;h<s.length-2&&!(c<s[h+1]);h++);const f=sf(s[h],s[h+1],c);return o[h](f)};return t?c=>u(Ha(s[0],s[r-1],c)):u}function sSe(s,e){const t=s[s.length-1];for(let i=1;i<=e;i++){const n=sf(0,e,i);s.push(Ht(t,1,n))}}function nSe(s){const e=[0];return sSe(e,s.length-1),e}function rSe(s,e){return s.map(t=>t*e)}function aSe(s,e){return s.map(()=>e||KB).splice(0,s.length-1)}function qv({duration:s=300,keyframes:e,times:t,ease:i="easeInOut"}){const n=JRe(i)?i.map(jk):jk(i),r={done:!1,value:e[0]},a=rSe(t&&t.length===e.length?t:nSe(e),s),o=iSe(a,e,{ease:Array.isArray(n)?n:aSe(e,n)});return{calculatedDuration:s,next:l=>(r.value=o(l),r.done=l>=s,r)}}const oSe=s=>{const e=({timestamp:t})=>s(t);return{start:()=>xt.update(e,!0),stop:()=>sl(e),now:()=>Bi.isProcessing?Bi.timestamp:Gr.now()}},lSe={decay:Vk,inertia:Vk,tween:qv,keyframes:qv,spring:XB},uSe=s=>s/100;class O2 extends zB{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:t,motionValue:i,element:n,keyframes:r}=this.options,a=(n==null?void 0:n.KeyframeResolver)||b2,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new a(r,o,t,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:a=0}=this.options,o=_2(t)?t:lSe[t]||qv;let l,u;o!==qv&&typeof e[0]!="number"&&(l=Sg(uSe,WB(e[0],e[1])),e=[0,100]);const c=o({...this.options,keyframes:e});r==="mirror"&&(u=o({...this.options,keyframes:[...e].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=cB(c));const{calculatedDuration:h}=c,f=h+n,d=f*(i+1)-n;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){const{resolved:i}=this;if(!i){const{keyframes:N}=this.options;return{done:!0,value:N[N.length-1]}}const{finalKeyframe:n,generator:r,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=i;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:_,repeatDelay:g,onUpdate:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let E=this.currentTime,y=r;if(d){const N=Math.min(this.currentTime,c)/h;let P=Math.floor(N),k=N%1;!k&&N>=1&&(k=1),k===1&&P--,P=Math.min(P,d+1),!!(P%2)&&(_==="reverse"?(k=1-k,g&&(k-=g/h)):_==="mirror"&&(y=a)),E=Ha(0,1,k)*h}const T=v?{done:!1,value:l[0]}:y.next(E);o&&(T.value=o(T.value));let{done:w}=T;!v&&u!==null&&(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return C&&n!==void 0&&(T.value=L0(l,this.options,n)),p&&p(T.value),C&&this.finish(),T}get duration(){const{resolved:e}=this;return e?Da(e.calculatedDuration):0}get time(){return Da(this.currentTime)}set time(e){e=xa(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Da(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=oSe,onPlay:t,startTime:i}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),t&&t();const n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=n):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const hSe=new Set(["opacity","clipPath","filter","transform"]);function cSe(s,e,t,{delay:i=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){const u={[e]:t};l&&(u.offset=l);const c=_B(o,n);return Array.isArray(c)&&(u.easing=c),s.animate(u,{delay:i,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:a==="reverse"?"alternate":"normal"})}const fSe=Jw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$v=10,dSe=2e4;function _Se(s){return _2(s.type)||s.type==="spring"||!dB(s.ease)}function gSe(s,e){const t=new O2({...e,keyframes:s,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:s[0]};const n=[];let r=0;for(;!i.done&&r<dSe;)i=t.sample(r),n.push(i.value),r+=$v;return{times:void 0,keyframes:n,duration:r-$v,ease:"linear"}}const qB={anticipate:AB,backInOut:bB,circInOut:wB};function pSe(s){return s in qB}class zk extends zB{constructor(e){super(e);const{name:t,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new jB(r,(a,o)=>this.onKeyframesResolved(a,o),t,i,n),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:i=300,times:n,ease:r,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof r=="string"&&Xv()&&pSe(r)&&(r=qB[r]),_Se(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,element:_,...g}=this.options,p=gSe(e,g);e=p.keyframes,e.length===1&&(e[1]=e[0]),i=p.duration,n=p.times,r=p.ease,a="keyframes"}const c=cSe(o.owner.current,l,e,{...this.options,duration:i,times:n,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ak(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;o.set(L0(e,this.options,t)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:n,type:a,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Da(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Da(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:i}=t;i.currentTime=xa(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:i}=t;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:t}=this;if(!t)return an;const{animation:i}=t;Ak(i,e)}return an}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:i,duration:n,type:r,ease:a,times:o}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,_=new O2({...d,keyframes:i,duration:n,type:r,ease:a,times:o,isGenerator:!0}),g=xa(this.time);u.setWithVelocity(_.sample(g-$v).value,_.sample(g).value,$v)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:a,type:o}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return fSe()&&i&&hSe.has(i)&&!l&&!u&&!n&&r!=="mirror"&&a!==0&&o!=="inertia"}}const mSe={type:"spring",stiffness:500,damping:25,restSpeed:10},vSe=s=>({type:"spring",stiffness:550,damping:s===0?2*Math.sqrt(550):30,restSpeed:10}),ESe={type:"keyframes",duration:.8},ySe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TSe=(s,{keyframes:e})=>e.length>2?ESe:Qu.has(s)?s.startsWith("scale")?vSe(e[1]):mSe:ySe;function ISe({when:s,delay:e,delayChildren:t,staggerChildren:i,staggerDirection:n,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const w2=(s,e,t,i={},n,r)=>a=>{const o=d2(i,s)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-xa(l);let c={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:f=>{e.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:s,motionValue:e,element:r?void 0:n};ISe(o)||(c={...c,...TSe(s,c)}),c.duration&&(c.duration=xa(c.duration)),c.repeatDelay&&(c.repeatDelay=xa(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&e.get()!==void 0){const f=L0(c.keyframes,o);if(f!==void 0)return xt.update(()=>{c.onUpdate(f),c.onComplete()}),new VIe([])}return!r&&zk.supports(c)?new zk(c):new O2(c)};function RSe({protectedKeys:s,needsAnimating:e},t){const i=s.hasOwnProperty(t)&&e[t]!==!0;return e[t]=!1,i}function $B(s,e,{delay:t=0,transitionOverride:i,type:n}={}){var r;let{transition:a=s.getDefaultTransition(),transitionEnd:o,...l}=e;i&&(a=i);const u=[],c=n&&s.animationState&&s.animationState.getState()[n];for(const h in l){const f=s.getValue(h,(r=s.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&RSe(c,h))continue;const _={delay:t,...d2(a||{},h)};let g=!1;if(window.MotionHandoffAnimation){const m=yB(s);if(m){const v=window.MotionHandoffAnimation(m,h,xt);v!==null&&(_.startTime=v,g=!0)}}NA(s,h),f.start(w2(h,f,d,s.shouldReduceMotion&&vB.has(h)?{type:!1}:_,s,g));const p=f.animation;p&&u.push(p)}return o&&Promise.all(u).then(()=>{xt.update(()=>{o&&tRe(s,o)})}),u}function FA(s,e,t={}){var i;const n=D0(s,e,t.type==="exit"?(i=s.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:r=s.getDefaultTransition()||{}}=n||{};t.transitionOverride&&(r=t.transitionOverride);const a=n?()=>Promise.all($B(s,n,t)):()=>Promise.resolve(),o=s.variantChildren&&s.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return SSe(s,e,c+u,h,f,t)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[a,o]:[o,a];return u().then(()=>c())}else return Promise.all([a(),o(t.delay)])}function SSe(s,e,t=0,i=0,n=1,r){const a=[],o=(s.variantChildren.size-1)*i,l=n===1?(u=0)=>u*i:(u=0)=>o-u*i;return Array.from(s.variantChildren).sort(bSe).forEach((u,c)=>{u.notify("AnimationStart",e),a.push(FA(u,e,{...r,delay:t+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(a)}function bSe(s,e){return s.sortNodePosition(e)}function ASe(s,e,t={}){s.notify("AnimationStart",e);let i;if(Array.isArray(e)){const n=e.map(r=>FA(s,r,t));i=Promise.all(n)}else if(typeof e=="string")i=FA(s,e,t);else{const n=typeof e=="function"?D0(s,e,t.custom):e;i=Promise.all($B(s,n,t))}return i.then(()=>{s.notify("AnimationComplete",e)})}const OSe=t2.length;function QB(s){if(!s)return;if(!s.isControllingVariants){const t=s.parent?QB(s.parent)||{}:{};return s.props.initial!==void 0&&(t.initial=s.props.initial),t}const e={};for(let t=0;t<OSe;t++){const i=t2[t],n=s.props[i];(J_(n)||n===!1)&&(e[i]=n)}return e}const wSe=[...e2].reverse(),CSe=e2.length;function MSe(s){return e=>Promise.all(e.map(({animation:t,options:i})=>ASe(s,t,i)))}function NSe(s){let e=MSe(s),t=Hk(),i=!0;const n=l=>(u,c)=>{var h;const f=D0(s,c,l==="exit"?(h=s.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:_,...g}=f;u={...u,...g,..._}}return u};function r(l){e=l(s)}function a(l){const{props:u}=s,c=QB(s.parent)||{},h=[],f=new Set;let d={},_=1/0;for(let p=0;p<CSe;p++){const m=wSe[p],v=t[m],E=u[m]!==void 0?u[m]:c[m],y=J_(E),T=m===l?v.isActive:null;T===!1&&(_=p);let w=E===c[m]&&E!==u[m]&&y;if(w&&i&&s.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...d},!v.isActive&&T===null||!E&&!v.prevProp||k0(E)||typeof E=="boolean")continue;const C=PSe(v.prevProp,E);let N=C||m===l&&v.isActive&&!w&&y||p>_&&y,P=!1;const k=Array.isArray(E)?E:[E];let L=k.reduce(n(m),{});T===!1&&(L={});const{prevResolvedValues:j={}}=v,z={...j,...L},ne=K=>{N=!0,f.has(K)&&(P=!0,f.delete(K)),v.needsAnimating[K]=!0;const H=s.getValue(K);H&&(H.liveStyle=!1)};for(const K in z){const H=L[K],J=j[K];if(d.hasOwnProperty(K))continue;let B=!1;wA(H)&&wA(J)?B=!hB(H,J):B=H!==J,B?H!=null?ne(K):f.add(K):H!==void 0&&f.has(K)?ne(K):v.protectedKeys[K]=!0}v.prevProp=E,v.prevResolvedValues=L,v.isActive&&(d={...d,...L}),i&&s.blockInitialAnimation&&(N=!1),N&&(!(w&&C)||P)&&h.push(...k.map(K=>({animation:K,options:{type:m}})))}if(f.size){const p={};f.forEach(m=>{const v=s.getBaseTarget(m),E=s.getValue(m);E&&(E.liveStyle=!0),p[m]=v??null}),h.push({animation:p})}let g=!!h.length;return i&&(u.initial===!1||u.initial===u.animate)&&!s.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(h):Promise.resolve()}function o(l,u){var c;if(t[l].isActive===u)return Promise.resolve();(c=s.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),t[l].isActive=u;const h=a(l);for(const f in t)t[f].protectedKeys={};return h}return{animateChanges:a,setActive:o,setAnimateFunction:r,getState:()=>t,reset:()=>{t=Hk(),i=!0}}}function PSe(s,e){return typeof e=="string"?e!==s:Array.isArray(e)?!hB(e,s):!1}function Tl(s=!1){return{isActive:s,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hk(){return{animate:Tl(!0),whileInView:Tl(),whileHover:Tl(),whileTap:Tl(),whileDrag:Tl(),whileFocus:Tl(),exit:Tl()}}class dl{constructor(e){this.isMounted=!1,this.node=e}update(){}}class kSe extends dl{constructor(e){super(e),e.animationState||(e.animationState=NSe(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();k0(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let xSe=0;class DSe extends dl{constructor(){super(...arguments),this.id=xSe++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const LSe={animation:{Feature:kSe},exit:{Feature:DSe}};function sg(s,e,t,i={passive:!0}){return s.addEventListener(e,t,i),()=>s.removeEventListener(e,t)}function bg(s){return{point:{x:s.pageX,y:s.pageY}}}const USe=s=>e=>p2(e)&&s(e,bg(e));function md(s,e,t,i){return sg(s,e,USe(t),i)}const Wk=(s,e)=>Math.abs(s-e);function FSe(s,e){const t=Wk(s.x,e.x),i=Wk(s.y,e.y);return Math.sqrt(t**2+i**2)}class ZB{constructor(e,t,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=bT(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=FSe(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:_}=h,{timestamp:g}=Bi;this.history.push({..._,timestamp:g});const{onStart:p,onMove:m}=this.handlers;f||(p&&p(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ST(f,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:_,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=bT(h.type==="pointercancel"?this.lastMoveEventInfo:ST(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,p),_&&_(h,p)},!p2(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.contextWindow=n||window;const a=bg(e),o=ST(a,this.transformPagePoint),{point:l}=o,{timestamp:u}=Bi;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,bT(o,this.history)),this.removeListeners=Sg(md(this.contextWindow,"pointermove",this.handlePointerMove),md(this.contextWindow,"pointerup",this.handlePointerUp),md(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),sl(this.updatePoint)}}function ST(s,e){return e?{point:e(s.point)}:s}function Yk(s,e){return{x:s.x-e.x,y:s.y-e.y}}function bT({point:s},e){return{point:s,delta:Yk(s,JB(e)),offset:Yk(s,BSe(e)),velocity:GSe(e,.1)}}function BSe(s){return s[0]}function JB(s){return s[s.length-1]}function GSe(s,e){if(s.length<2)return{x:0,y:0};let t=s.length-1,i=null;const n=JB(s);for(;t>=0&&(i=s[t],!(n.timestamp-i.timestamp>xa(e)));)t--;if(!i)return{x:0,y:0};const r=Da(n.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const a={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const e9=1e-4,VSe=1-e9,jSe=1+e9,t9=.01,zSe=0-t9,HSe=0+t9;function ln(s){return s.max-s.min}function WSe(s,e,t){return Math.abs(s-e)<=t}function Xk(s,e,t,i=.5){s.origin=i,s.originPoint=Ht(e.min,e.max,s.origin),s.scale=ln(t)/ln(e),s.translate=Ht(t.min,t.max,s.origin)-s.originPoint,(s.scale>=VSe&&s.scale<=jSe||isNaN(s.scale))&&(s.scale=1),(s.translate>=zSe&&s.translate<=HSe||isNaN(s.translate))&&(s.translate=0)}function vd(s,e,t,i){Xk(s.x,e.x,t.x,i?i.originX:void 0),Xk(s.y,e.y,t.y,i?i.originY:void 0)}function Kk(s,e,t){s.min=t.min+e.min,s.max=s.min+ln(e)}function YSe(s,e,t){Kk(s.x,e.x,t.x),Kk(s.y,e.y,t.y)}function qk(s,e,t){s.min=e.min-t.min,s.max=s.min+ln(e)}function Ed(s,e,t){qk(s.x,e.x,t.x),qk(s.y,e.y,t.y)}function XSe(s,{min:e,max:t},i){return e!==void 0&&s<e?s=i?Ht(e,s,i.min):Math.max(s,e):t!==void 0&&s>t&&(s=i?Ht(t,s,i.max):Math.min(s,t)),s}function $k(s,e,t){return{min:e!==void 0?s.min+e:void 0,max:t!==void 0?s.max+t-(s.max-s.min):void 0}}function KSe(s,{top:e,left:t,bottom:i,right:n}){return{x:$k(s.x,t,n),y:$k(s.y,e,i)}}function Qk(s,e){let t=e.min-s.min,i=e.max-s.max;return e.max-e.min<s.max-s.min&&([t,i]=[i,t]),{min:t,max:i}}function qSe(s,e){return{x:Qk(s.x,e.x),y:Qk(s.y,e.y)}}function $Se(s,e){let t=.5;const i=ln(s),n=ln(e);return n>i?t=sf(e.min,e.max-i,s.min):i>n&&(t=sf(s.min,s.max-n,e.min)),Ha(0,1,t)}function QSe(s,e){const t={};return e.min!==void 0&&(t.min=e.min-s.min),e.max!==void 0&&(t.max=e.max-s.min),t}const BA=.35;function ZSe(s=BA){return s===!1?s=0:s===!0&&(s=BA),{x:Zk(s,"left","right"),y:Zk(s,"top","bottom")}}function Zk(s,e,t){return{min:Jk(s,e),max:Jk(s,t)}}function Jk(s,e){return typeof s=="number"?s:s[e]||0}const ex=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gh=()=>({x:ex(),y:ex()}),tx=()=>({min:0,max:0}),si=()=>({x:tx(),y:tx()});function gn(s){return[s("x"),s("y")]}function i9({top:s,left:e,right:t,bottom:i}){return{x:{min:e,max:t},y:{min:s,max:i}}}function JSe({x:s,y:e}){return{top:e.min,right:s.max,bottom:e.max,left:s.min}}function ebe(s,e){if(!e)return s;const t=e({x:s.left,y:s.top}),i=e({x:s.right,y:s.bottom});return{top:t.y,left:t.x,bottom:i.y,right:i.x}}function AT(s){return s===void 0||s===1}function GA({scale:s,scaleX:e,scaleY:t}){return!AT(s)||!AT(e)||!AT(t)}function Ml(s){return GA(s)||s9(s)||s.z||s.rotate||s.rotateX||s.rotateY||s.skewX||s.skewY}function s9(s){return ix(s.x)||ix(s.y)}function ix(s){return s&&s!=="0%"}function Qv(s,e,t){const i=s-t,n=e*i;return t+n}function sx(s,e,t,i,n){return n!==void 0&&(s=Qv(s,n,i)),Qv(s,t,i)+e}function VA(s,e=0,t=1,i,n){s.min=sx(s.min,e,t,i,n),s.max=sx(s.max,e,t,i,n)}function n9(s,{x:e,y:t}){VA(s.x,e.translate,e.scale,e.originPoint),VA(s.y,t.translate,t.scale,t.originPoint)}const nx=.999999999999,rx=1.0000000000001;function tbe(s,e,t,i=!1){const n=t.length;if(!n)return;e.x=e.y=1;let r,a;for(let o=0;o<n;o++){r=t[o],a=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&jh(s,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,n9(s,a)),i&&Ml(r.latestValues)&&jh(s,r.latestValues))}e.x<rx&&e.x>nx&&(e.x=1),e.y<rx&&e.y>nx&&(e.y=1)}function Vh(s,e){s.min=s.min+e,s.max=s.max+e}function ax(s,e,t,i,n=.5){const r=Ht(s.min,s.max,n);VA(s,e,t,r,i)}function jh(s,e){ax(s.x,e.x,e.scaleX,e.scale,e.originX),ax(s.y,e.y,e.scaleY,e.scale,e.originY)}function r9(s,e){return i9(ebe(s.getBoundingClientRect(),e))}function ibe(s,e,t){const i=r9(s,t),{scroll:n}=e;return n&&(Vh(i.x,n.offset.x),Vh(i.y,n.offset.y)),i}const a9=({current:s})=>s?s.ownerDocument.defaultView:null,sbe=new WeakMap;class nbe{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=si(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const n=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(bg(c).point)},r=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:_}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$Ie(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gn(p=>{let m=this.getAxisMotionValue(p).get()||0;if(Br.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const E=v.layout.layoutBox[p];E&&(m=ln(E)*(parseFloat(m)/100))}}this.originPoint[p]=m}),_&&xt.postRender(()=>_(c,h)),NA(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:_,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:p}=h;if(d&&this.currentDirection===null){this.currentDirection=rbe(p),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",h.point,p),this.updateAxis("y",h.point,p),this.visualElement.render(),g&&g(c,h)},o=(c,h)=>this.stop(c,h),l=()=>gn(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ZB(e,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:a9(this.visualElement)})}stop(e,t){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:r}=this.getProps();r&&xt.postRender(()=>r(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){const{drag:n}=this.getProps();if(!i||!Ep(e,n,this.currentDirection))return;const r=this.getAxisMotionValue(e);let a=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(a=XSe(a,this.constraints[e],this.elastic[e])),r.set(a)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;t&&Fh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=KSe(n.layoutBox,t):this.constraints=!1,this.elastic=ZSe(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&gn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=QSe(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Fh(e))return!1;const i=e.current,{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const r=ibe(i,n.root,this.visualElement.getTransformPagePoint());let a=qSe(n.layout.layoutBox,r);if(t){const o=t(JSe(a));this.hasMutatedConstraints=!!o,o&&(a=i9(o))}return a}startAnimation(e){const{drag:t,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=gn(c=>{if(!Ep(c,t,this.currentDirection))return;let h=l&&l[c]||{};a&&(h={min:0,max:0});const f=n?200:1e6,d=n?40:1e7,_={type:"inertia",velocity:i?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,_)});return Promise.all(u).then(o)}startAxisValueAnimation(e,t){const i=this.getAxisMotionValue(e);return NA(this.visualElement,e),i.start(w2(e,i,0,t,this.visualElement,!1))}stopAnimation(){gn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){gn(e=>{var t;return(t=this.getAxisMotionValue(e).animation)===null||t===void 0?void 0:t.pause()})}getAnimationState(e){var t;return(t=this.getAxisMotionValue(e).animation)===null||t===void 0?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),n=i[t];return n||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){gn(t=>{const{drag:i}=this.getProps();if(!Ep(t,i,this.currentDirection))return;const{projection:n}=this.visualElement,r=this.getAxisMotionValue(t);if(n&&n.layout){const{min:a,max:o}=n.layout.layoutBox[t];r.set(e[t]-Ht(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!Fh(t)||!i||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};gn(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();n[a]=$Se({min:l,max:l},this.constraints[a])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),gn(a=>{if(!Ep(a,e,null))return;const o=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];o.set(Ht(l,u,n[a]))})}addListeners(){if(!this.visualElement.current)return;sbe.set(this.visualElement,this);const e=this.visualElement.current,t=md(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Fh(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),xt.read(i);const a=sg(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(gn(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),t(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:a=BA,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:a,dragMomentum:o}}}function Ep(s,e,t){return(e===!0||e===s)&&(t===null||t===s)}function rbe(s,e=10){let t=null;return Math.abs(s.y)>e?t="y":Math.abs(s.x)>e&&(t="x"),t}class abe extends dl{constructor(e){super(e),this.removeGroupControls=an,this.removeListeners=an,this.controls=new nbe(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||an}unmount(){this.removeGroupControls(),this.removeListeners()}}const ox=s=>(e,t)=>{s&&xt.postRender(()=>s(e,t))};class obe extends dl{constructor(){super(...arguments),this.removePointerDownListener=an}onPointerDown(e){this.session=new ZB(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:a9(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:ox(e),onStart:ox(t),onMove:i,onEnd:(r,a)=>{delete this.session,n&&xt.postRender(()=>n(r,a))}}}mount(){this.removePointerDownListener=md(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lx(s,e){return e.max===e.min?0:s/(e.max-e.min)*100}const Df={correct:(s,e)=>{if(!e.target)return s;if(typeof s=="string")if(Re.test(s))s=parseFloat(s);else return s;const t=lx(s,e.target.x),i=lx(s,e.target.y);return`${t}% ${i}%`}},lbe={correct:(s,{treeScale:e,projectionDelta:t})=>{const i=s,n=nl.parse(s);if(n.length>5)return i;const r=nl.createTransformer(s),a=typeof n[0]!="number"?1:0,o=t.x.scale*e.x,l=t.y.scale*e.y;n[0+a]/=o,n[1+a]/=l;const u=Ht(o,l,.5);return typeof n[2+a]=="number"&&(n[2+a]/=u),typeof n[3+a]=="number"&&(n[3+a]/=u),r(n)}};class ube extends D.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=e;CIe(hbe),r&&(t.group&&t.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Kp.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:i,drag:n,isPresent:r}=this.props,a=i.projection;return a&&(a.isPresent=r,n||e.layoutDependency!==t||t===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?a.promote():a.relegate()||xt.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),s2.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function o9(s){const[e,t]=z5(),i=D.useContext(qw);return vt.jsx(ube,{...s,layoutGroup:i,switchLayoutGroup:D.useContext(Q5),isPresent:e,safeToRemove:t})}const hbe={borderRadius:{...Df,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Df,borderTopRightRadius:Df,borderBottomLeftRadius:Df,borderBottomRightRadius:Df,boxShadow:lbe};function cbe(s,e,t){const i=ts(s)?s:tg(s);return i.start(w2("",i,e,t)),i.animation}function fbe(s){return s instanceof SVGElement&&s.tagName!=="svg"}const dbe=(s,e)=>s.depth-e.depth;class _be{constructor(){this.children=[],this.isDirty=!1}add(e){m2(this.children,e),this.isDirty=!0}remove(e){v2(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(dbe),this.isDirty=!1,this.children.forEach(e)}}function gbe(s,e){const t=Gr.now(),i=({timestamp:n})=>{const r=n-t;r>=e&&(sl(i),s(r-e))};return xt.read(i,!0),()=>sl(i)}const l9=["TopLeft","TopRight","BottomLeft","BottomRight"],pbe=l9.length,ux=s=>typeof s=="string"?parseFloat(s):s,hx=s=>typeof s=="number"||Re.test(s);function mbe(s,e,t,i,n,r){n?(s.opacity=Ht(0,t.opacity!==void 0?t.opacity:1,vbe(i)),s.opacityExit=Ht(e.opacity!==void 0?e.opacity:1,0,Ebe(i))):r&&(s.opacity=Ht(e.opacity!==void 0?e.opacity:1,t.opacity!==void 0?t.opacity:1,i));for(let a=0;a<pbe;a++){const o=`border${l9[a]}Radius`;let l=cx(e,o),u=cx(t,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||hx(l)===hx(u)?(s[o]=Math.max(Ht(ux(l),ux(u),i),0),(Br.test(u)||Br.test(l))&&(s[o]+="%")):s[o]=u}(e.rotate||t.rotate)&&(s.rotate=Ht(e.rotate||0,t.rotate||0,i))}function cx(s,e){return s[e]!==void 0?s[e]:s.borderRadius}const vbe=u9(0,.5,OB),Ebe=u9(.5,.95,an);function u9(s,e,t){return i=>i<s?0:i>e?1:t(sf(s,e,i))}function fx(s,e){s.min=e.min,s.max=e.max}function dn(s,e){fx(s.x,e.x),fx(s.y,e.y)}function dx(s,e){s.translate=e.translate,s.scale=e.scale,s.originPoint=e.originPoint,s.origin=e.origin}function _x(s,e,t,i,n){return s-=e,s=Qv(s,1/t,i),n!==void 0&&(s=Qv(s,1/n,i)),s}function ybe(s,e=0,t=1,i=.5,n,r=s,a=s){if(Br.test(e)&&(e=parseFloat(e),e=Ht(a.min,a.max,e/100)-a.min),typeof e!="number")return;let o=Ht(r.min,r.max,i);s===r&&(o-=e),s.min=_x(s.min,e,t,o,n),s.max=_x(s.max,e,t,o,n)}function gx(s,e,[t,i,n],r,a){ybe(s,e[t],e[i],e[n],e.scale,r,a)}const Tbe=["x","scaleX","originX"],Ibe=["y","scaleY","originY"];function px(s,e,t,i){gx(s.x,e,Tbe,t?t.x:void 0,i?i.x:void 0),gx(s.y,e,Ibe,t?t.y:void 0,i?i.y:void 0)}function mx(s){return s.translate===0&&s.scale===1}function h9(s){return mx(s.x)&&mx(s.y)}function vx(s,e){return s.min===e.min&&s.max===e.max}function Rbe(s,e){return vx(s.x,e.x)&&vx(s.y,e.y)}function Ex(s,e){return Math.round(s.min)===Math.round(e.min)&&Math.round(s.max)===Math.round(e.max)}function c9(s,e){return Ex(s.x,e.x)&&Ex(s.y,e.y)}function yx(s){return ln(s.x)/ln(s.y)}function Tx(s,e){return s.translate===e.translate&&s.scale===e.scale&&s.originPoint===e.originPoint}class Sbe{constructor(){this.members=[]}add(e){m2(this.members,e),e.scheduleRender()}remove(e){if(v2(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){const t=this.members.findIndex(n=>e===n);if(t===0)return!1;let i;for(let n=t;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(e,t){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;n===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bbe(s,e,t){let i="";const n=s.x.translate/e.x,r=s.y.translate/e.y,a=(t==null?void 0:t.z)||0;if((n||r||a)&&(i=`translate3d(${n}px, ${r}px, ${a}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),t){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:_}=t;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),_&&(i+=`skewY(${_}deg) `)}const o=s.x.scale*e.x,l=s.y.scale*e.y;return(o!==1||l!==1)&&(i+=`scale(${o}, ${l})`),i||"none"}const Nl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Yf=typeof window<"u"&&window.MotionDebug!==void 0,OT=["","X","Y","Z"],Abe={visibility:"hidden"},Ix=1e3;let Obe=0;function wT(s,e,t,i){const{latestValues:n}=e;n[s]&&(t[s]=n[s],e.setStaticValue(s,0),i&&(i[s]=0))}function f9(s){if(s.hasCheckedOptimisedAppear=!0,s.root===s)return;const{visualElement:e}=s.options;if(!e)return;const t=yB(e);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:n,layoutId:r}=s.options;window.MotionCancelOptimisedAnimation(t,"transform",xt,!(n||r))}const{parent:i}=s;i&&!i.hasCheckedOptimisedAppear&&f9(i)}function d9({attachResizeListener:s,defaultParent:e,measureScroll:t,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(a={},o=e==null?void 0:e()){this.id=Obe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yf&&(Nl.totalNodes=Nl.resolvedTargetDeltas=Nl.recalculatedProjection=0),this.nodes.forEach(Mbe),this.nodes.forEach(Dbe),this.nodes.forEach(Lbe),this.nodes.forEach(Nbe),Yf&&window.MotionDebug.record(Nl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new _be)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new E2),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fbe(a),this.instance=a;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),s){let h;const f=()=>this.root.updateBlockedByResize=!1;s(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=gbe(f,250),Kp.hasAnimatedSinceResize&&(Kp.hasAnimatedSinceResize=!1,this.nodes.forEach(Sx))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||Vbe,{onLayoutAnimationStart:p,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!c9(this.targetLayout,_)||d,E=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||E||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,E);const y={...d2(g,"layout"),onPlay:p,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y)}else f||Sx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,sl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ube),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&f9(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Rx);return}this.isUpdating||this.nodes.forEach(kbe),this.isUpdating=!1,this.nodes.forEach(xbe),this.nodes.forEach(wbe),this.nodes.forEach(Cbe),this.clearAllSnapshots();const o=Gr.now();Bi.delta=Ha(0,1e3/60,o-Bi.timestamp),Bi.timestamp=o,Bi.isProcessing=!0,ET.update.process(Bi),ET.preRender.process(Bi),ET.render.process(Bi),Bi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,s2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pbe),this.sharedNodes.forEach(Fbe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=si(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!h9(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&(o||Ml(this.latestValues)||c)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),jbe(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:o}=this.options;if(!o)return si();const l=o.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(zbe))){const{scroll:c}=this.root;c&&(Vh(l.x,c.offset.x),Vh(l.y,c.offset.y))}return l}removeElementScroll(a){var o;const l=si();if(dn(l,a),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&dn(l,a),Vh(l.x,h.offset.x),Vh(l.y,h.offset.y))}return l}applyTransform(a,o=!1){const l=si();dn(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&jh(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Ml(c.latestValues)&&jh(l,c.latestValues)}return Ml(this.latestValues)&&jh(l,this.latestValues),l}removeTransform(a){const o=si();dn(o,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Ml(u.latestValues))continue;GA(u.latestValues)&&u.updateSnapshot();const c=si(),h=u.measurePageBox();dn(c,h),px(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Ml(this.latestValues)&&px(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=Bi.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=si(),this.relativeTargetOrigin=si(),Ed(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),dn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=si(),this.targetWithTransforms=si()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),YSe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):dn(this.target,this.layout.layoutBox),n9(this.target,this.targetDelta)):dn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=si(),this.relativeTargetOrigin=si(),Ed(this.relativeTargetOrigin,this.target,d.target),dn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Yf&&Nl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||GA(this.parent.latestValues)||s9(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Bi.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;dn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;tbe(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=si());const{target:_}=o;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dx(this.prevProjectionDelta.x,this.projectionDelta.x),dx(this.prevProjectionDelta.y,this.projectionDelta.y)),vd(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Tx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Tx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Yf&&Nl.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gh(),this.projectionDelta=Gh(),this.projectionDeltaWithTransform=Gh()}setAnimationOrigin(a,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=Gh();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=si(),d=l?l.source:void 0,_=this.layout?this.layout.source:void 0,g=d!==_,p=this.getStack(),m=!p||p.members.length<=1,v=!!(g&&!m&&this.options.crossfade===!0&&!this.path.some(Gbe));this.animationProgress=0;let E;this.mixTargetDelta=y=>{const T=y/1e3;bx(h.x,a.x,T),bx(h.y,a.y,T),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ed(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Bbe(this.relativeTarget,this.relativeTargetOrigin,f,T),E&&Rbe(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=si()),dn(E,this.relativeTarget)),g&&(this.animationValues=c,mbe(c,u,this.latestValues,T,v,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(sl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{Kp.hasAnimatedSinceResize=!0,this.currentAnimation=cbe(0,Ix,{...a,onUpdate:o=>{this.mixTargetDelta(o),a.onUpdate&&a.onUpdate(o)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ix),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=a;if(!(!o||!l||!u)){if(this!==a&&this.layout&&u&&_9(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||si();const h=ln(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+h;const f=ln(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}dn(o,l),jh(o,c),vd(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Sbe),this.sharedNodes.get(a).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&wT("z",a,u,this.animationValues);for(let c=0;c<OT.length;c++)wT(`rotate${OT[c]}`,a,u,this.animationValues),wT(`skew${OT[c]}`,a,u,this.animationValues);a.render();for(const c in u)a.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);a.scheduleRender()}getProjectionStyles(a){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Abe;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Yp(a==null?void 0:a.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Yp(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ml(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=bbe(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:_}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${_.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in Yv){if(f[g]===void 0)continue;const{correct:p,applyTo:m}=Yv[g],v=u.transform==="none"?f[g]:p(f[g],h);if(m){const E=m.length;for(let y=0;y<E;y++)u[m[y]]=v}else u[g]=v}return this.options.layoutId&&(u.pointerEvents=h===this?Yp(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var o;return(o=a.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(Rx),this.root.sharedNodes.clear()}}}function wbe(s){s.updateLayout()}function Cbe(s){var e;const t=((e=s.resumeFrom)===null||e===void 0?void 0:e.snapshot)||s.snapshot;if(s.isLead()&&s.layout&&t&&s.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:n}=s.layout,{animationType:r}=s.options,a=t.source!==s.layout.source;r==="size"?gn(h=>{const f=a?t.measuredBox[h]:t.layoutBox[h],d=ln(f);f.min=i[h].min,f.max=f.min+d}):_9(r,t.layoutBox,i)&&gn(h=>{const f=a?t.measuredBox[h]:t.layoutBox[h],d=ln(i[h]);f.max=f.min+d,s.relativeTarget&&!s.currentAnimation&&(s.isProjectionDirty=!0,s.relativeTarget[h].max=s.relativeTarget[h].min+d)});const o=Gh();vd(o,i,t.layoutBox);const l=Gh();a?vd(l,s.applyTransform(n,!0),t.measuredBox):vd(l,i,t.layoutBox);const u=!h9(o);let c=!1;if(!s.resumeFrom){const h=s.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const _=si();Ed(_,t.layoutBox,f.layoutBox);const g=si();Ed(g,i,d.layoutBox),c9(_,g)||(c=!0),h.options.layoutRoot&&(s.relativeTarget=g,s.relativeTargetOrigin=_,s.relativeParent=h)}}}s.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(s.isLead()){const{onExitComplete:i}=s.options;i&&i()}s.options.transition=void 0}function Mbe(s){Yf&&Nl.totalNodes++,s.parent&&(s.isProjecting()||(s.isProjectionDirty=s.parent.isProjectionDirty),s.isSharedProjectionDirty||(s.isSharedProjectionDirty=!!(s.isProjectionDirty||s.parent.isProjectionDirty||s.parent.isSharedProjectionDirty)),s.isTransformDirty||(s.isTransformDirty=s.parent.isTransformDirty))}function Nbe(s){s.isProjectionDirty=s.isSharedProjectionDirty=s.isTransformDirty=!1}function Pbe(s){s.clearSnapshot()}function Rx(s){s.clearMeasurements()}function kbe(s){s.isLayoutDirty=!1}function xbe(s){const{visualElement:e}=s.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),s.resetTransform()}function Sx(s){s.finishAnimation(),s.targetDelta=s.relativeTarget=s.target=void 0,s.isProjectionDirty=!0}function Dbe(s){s.resolveTargetDelta()}function Lbe(s){s.calcProjection()}function Ube(s){s.resetSkewAndRotation()}function Fbe(s){s.removeLeadSnapshot()}function bx(s,e,t){s.translate=Ht(e.translate,0,t),s.scale=Ht(e.scale,1,t),s.origin=e.origin,s.originPoint=e.originPoint}function Ax(s,e,t,i){s.min=Ht(e.min,t.min,i),s.max=Ht(e.max,t.max,i)}function Bbe(s,e,t,i){Ax(s.x,e.x,t.x,i),Ax(s.y,e.y,t.y,i)}function Gbe(s){return s.animationValues&&s.animationValues.opacityExit!==void 0}const Vbe={duration:.45,ease:[.4,0,.1,1]},Ox=s=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(s),wx=Ox("applewebkit/")&&!Ox("chrome/")?Math.round:an;function Cx(s){s.min=wx(s.min),s.max=wx(s.max)}function jbe(s){Cx(s.x),Cx(s.y)}function _9(s,e,t){return s==="position"||s==="preserve-aspect"&&!WSe(yx(e),yx(t),.2)}function zbe(s){var e;return s!==s.root&&((e=s.scroll)===null||e===void 0?void 0:e.wasRoot)}const Hbe=d9({attachResizeListener:(s,e)=>sg(s,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),CT={current:void 0},g9=d9({measureScroll:s=>({x:s.scrollLeft,y:s.scrollTop}),defaultParent:()=>{if(!CT.current){const s=new Hbe({});s.mount(window),s.setOptions({layoutScroll:!0}),CT.current=s}return CT.current},resetTransform:(s,e)=>{s.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:s=>window.getComputedStyle(s).position==="fixed"}),Wbe={pan:{Feature:obe},drag:{Feature:abe,ProjectionNode:g9,MeasureLayout:o9}};function Mx(s,e,t){const{props:i}=s;s.animationState&&i.whileHover&&s.animationState.setActive("whileHover",t==="Start");const n="onHover"+t,r=i[n];r&&xt.postRender(()=>r(e,bg(e)))}class Ybe extends dl{mount(){const{current:e}=this.node;e&&(this.unmount=WIe(e,t=>(Mx(this.node,t,"Start"),i=>Mx(this.node,i,"End"))))}unmount(){}}class Xbe extends dl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Sg(sg(this.node.current,"focus",()=>this.onFocus()),sg(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Nx(s,e,t){const{props:i}=s;s.animationState&&i.whileTap&&s.animationState.setActive("whileTap",t==="Start");const n="onTap"+(t==="End"?"":t),r=i[n];r&&xt.postRender(()=>r(e,bg(e)))}class Kbe extends dl{mount(){const{current:e}=this.node;e&&(this.unmount=qIe(e,t=>(Nx(this.node,t,"Start"),(i,{success:n})=>Nx(this.node,i,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const jA=new WeakMap,MT=new WeakMap,qbe=s=>{const e=jA.get(s.target);e&&e(s)},$be=s=>{s.forEach(qbe)};function Qbe({root:s,...e}){const t=s||document;MT.has(t)||MT.set(t,{});const i=MT.get(t),n=JSON.stringify(e);return i[n]||(i[n]=new IntersectionObserver($be,{root:s,...e})),i[n]}function Zbe(s,e,t){const i=Qbe(e);return jA.set(s,t),i.observe(s),()=>{jA.delete(s),i.unobserve(s)}}const Jbe={some:0,all:1};class eAe extends dl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:i,amount:n="some",once:r}=e,a={root:t?t.current:void 0,rootMargin:i,threshold:typeof n=="number"?n:Jbe[n]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Zbe(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(tAe(e,t))&&this.startObserver()}unmount(){}}function tAe({viewport:s={}},{viewport:e={}}={}){return t=>s[t]!==e[t]}const iAe={inView:{Feature:eAe},tap:{Feature:Kbe},focus:{Feature:Xbe},hover:{Feature:Ybe}},sAe={layout:{ProjectionNode:g9,MeasureLayout:o9}},zA={current:null},p9={current:!1};function nAe(){if(p9.current=!0,!!Zw)if(window.matchMedia){const s=window.matchMedia("(prefers-reduced-motion)"),e=()=>zA.current=s.matches;s.addListener(e),e()}else zA.current=!1}const rAe=[...VB,Qi,nl],aAe=s=>rAe.find(GB(s)),Px=new WeakMap;function oAe(s,e,t){for(const i in e){const n=e[i],r=t[i];if(ts(n))s.addValue(i,n);else if(ts(r))s.addValue(i,tg(n,{owner:s}));else if(r!==n)if(s.hasValue(i)){const a=s.getValue(i);a.liveStyle===!0?a.jump(n):a.hasAnimated||a.set(n)}else{const a=s.getStaticValue(i);s.addValue(i,tg(a!==void 0?a:n,{owner:s}))}}for(const i in t)e[i]===void 0&&s.removeValue(i);return e}const kx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lAe{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=b2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=Gr.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,xt.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=a;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=x0(t),this.isVariantNode=q5(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(const d in f){const _=f[d];l[d]!==void 0&&ts(_)&&_.set(l[d],!1)}}mount(e){this.current=e,Px.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,i)=>this.bindToMotionValue(i,t)),p9.current||nAe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zA.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Px.delete(this.current),this.projection&&this.projection.unmount(),sl(this.notifyUpdate),sl(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Qu.has(e),n=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&xt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),r(),a&&a(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in nf){const t=nf[e];if(!t)continue;const{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):si()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let i=0;i<kx.length;i++){const n=kx[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r="on"+n,a=e[r];a&&(this.propEventSubscriptions[n]=this.on(n,a))}this.prevMotionValues=oAe(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&t!==void 0&&(i=tg(t===null?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){var i;let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(FB(n)||CB(n))?n=parseFloat(n):!aAe(n)&&nl.test(t)&&(n=DB(e,t)),this.setBaseTarget(e,ts(n)?n.get():n)),ts(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:i}=this.props;let n;if(typeof i=="string"||typeof i=="object"){const a=r2(this.props,i,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);a&&(n=a[e])}if(i&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!ts(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new E2),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class m9 extends lAe{constructor(){super(...arguments),this.KeyframeResolver=jB}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ts(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function uAe(s){return window.getComputedStyle(s)}class hAe extends m9{constructor(){super(...arguments),this.type="html",this.renderInstance=nB}readValueFromInstance(e,t){if(Qu.has(t)){const i=S2(t);return i&&i.default||0}else{const i=uAe(e),n=(tB(t)?i.getPropertyValue(t):i[t])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return r9(e,t)}build(e,t,i){l2(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return f2(e,t,i)}}class cAe extends m9{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=si}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Qu.has(t)){const i=S2(t);return i&&i.default||0}return t=rB.has(t)?t:i2(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return lB(e,t,i)}build(e,t,i){u2(e,t,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,i,n){aB(e,t,i,n)}mount(e){this.isSVGTag=c2(e.tagName),super.mount(e)}}const fAe=(s,e)=>n2(s)?new cAe(e):new hAe(e,{allowProjection:s!==D.Fragment}),dAe=FIe({...LSe,...iAe,...Wbe,...sAe},fAe),sMe=JTe(dAe);var v9={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xx=Bt.createContext&&Bt.createContext(v9),_Ae=["attr","size","title"];function gAe(s,e){if(s==null)return{};var t=pAe(s,e),i,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);for(n=0;n<r.length;n++)i=r[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(s,i)&&(t[i]=s[i])}return t}function pAe(s,e){if(s==null)return{};var t={};for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i)){if(e.indexOf(i)>=0)continue;t[i]=s[i]}return t}function Zv(){return Zv=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[i]=t[i])}return s},Zv.apply(this,arguments)}function Dx(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable})),t.push.apply(t,i)}return t}function Jv(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Dx(Object(t),!0).forEach(function(i){mAe(s,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):Dx(Object(t)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(t,i))})}return s}function mAe(s,e,t){return e=vAe(e),e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function vAe(s){var e=EAe(s,"string");return typeof e=="symbol"?e:e+""}function EAe(s,e){if(typeof s!="object"||!s)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var i=t.call(s,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function E9(s){return s&&s.map((e,t)=>Bt.createElement(e.tag,Jv({key:t},e.attr),E9(e.child)))}function be(s){return e=>Bt.createElement(yAe,Zv({attr:Jv({},s.attr)},e),E9(s.child))}function yAe(s){var e=t=>{var{attr:i,size:n,title:r}=s,a=gAe(s,_Ae),o=n||t.size||"1em",l;return t.className&&(l=t.className),s.className&&(l=(l?l+" ":"")+s.className),Bt.createElement("svg",Zv({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,a,{className:l,style:Jv(Jv({color:s.color||t.color},t.style),s.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),r&&Bt.createElement("title",null,r),s.children)};return xx!==void 0?Bt.createElement(xx.Consumer,null,t=>e(t)):e(v9)}function nMe(s){return be({attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"},child:[]}]})(s)}function rMe(s){return be({attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"},child:[]}]})(s)}function aMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},child:[]}]})(s)}function oMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(s)}function lMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(s)}function uMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(s)}function hMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"},child:[]}]})(s)}function cMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(s)}function fMe(s){return be({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},child:[]}]})(s)}function dMe(s){return be({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"},child:[]}]})(s)}function _Me(s){return be({attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"},child:[]}]})(s)}function gMe(s){return be({attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"},child:[]}]})(s)}function pMe(s){return be({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"},child:[]}]})(s)}function mMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(s)}function vMe(s){return be({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},child:[]}]})(s)}function EMe(s){return be({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(s)}function yMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(s)}function TMe(s){return be({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},child:[]}]})(s)}function IMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"},child:[]}]})(s)}function RMe(s){return be({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"},child:[]}]})(s)}function SMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"},child:[]}]})(s)}function bMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(s)}function AMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(s)}function OMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"},child:[]}]})(s)}function wMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(s)}function CMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"},child:[]}]})(s)}function MMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},child:[]}]})(s)}function NMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},child:[]}]})(s)}function PMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(s)}function kMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"},child:[]}]})(s)}function xMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"},child:[]}]})(s)}function DMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},child:[]}]})(s)}function LMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"},child:[]}]})(s)}function UMe(s){return be({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(s)}function FMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"},child:[]}]})(s)}function BMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32zm70.11-175.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"},child:[]}]})(s)}function GMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(s)}function VMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},child:[]}]})(s)}function jMe(s){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(s)}function zMe(s){return be({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(s)}function HMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"},child:[]}]})(s)}function WMe(s){return be({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(s)}function YMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"},child:[]}]})(s)}function XMe(s){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"},child:[]}]})(s)}function oh(s,e,t){let i=t.initialDeps??[],n;function r(){var a,o,l,u;let c;t.key&&((a=t.debug)!=null&&a.call(t))&&(c=Date.now());const h=s();if(!(h.length!==i.length||h.some((_,g)=>i[g]!==_)))return n;i=h;let d;if(t.key&&((o=t.debug)!=null&&o.call(t))&&(d=Date.now()),n=e(...h),t.key&&((l=t.debug)!=null&&l.call(t))){const _=Math.round((Date.now()-c)*100)/100,g=Math.round((Date.now()-d)*100)/100,p=g/16,m=(v,E)=>{for(v=String(v);v.length<E;)v=" "+v;return v};console.info(`%c⏱ ${m(g,5)} /${m(_,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(u=t==null?void 0:t.onChange)==null||u.call(t,n),n}return r.updateDeps=a=>{i=a},r}function NT(s,e){if(s===void 0)throw new Error("Unexpected undefined");return s}const TAe=(s,e)=>Math.abs(s-e)<1,IAe=(s,e,t)=>{let i;return function(...n){s.clearTimeout(i),i=s.setTimeout(()=>e.apply(this,n),t)}},RAe=s=>s,SAe=s=>{const e=Math.max(s.startIndex-s.overscan,0),t=Math.min(s.endIndex+s.overscan,s.count-1),i=[];for(let n=e;n<=t;n++)i.push(n);return i},bAe=(s,e)=>{const t=s.scrollElement;if(!t)return;const i=s.targetWindow;if(!i)return;const n=a=>{const{width:o,height:l}=a;e({width:Math.round(o),height:Math.round(l)})};if(n(t.getBoundingClientRect()),!i.ResizeObserver)return()=>{};const r=new i.ResizeObserver(a=>{const o=()=>{const l=a[0];if(l!=null&&l.borderBoxSize){const u=l.borderBoxSize[0];if(u){n({width:u.inlineSize,height:u.blockSize});return}}n(t.getBoundingClientRect())};s.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return r.observe(t,{box:"border-box"}),()=>{r.unobserve(t)}},Lx={passive:!0},Ux=typeof window>"u"?!0:"onscrollend"in window,AAe=(s,e)=>{const t=s.scrollElement;if(!t)return;const i=s.targetWindow;if(!i)return;let n=0;const r=s.options.useScrollendEvent&&Ux?()=>{}:IAe(i,()=>{e(n,!1)},s.options.isScrollingResetDelay),a=c=>()=>{const{horizontal:h,isRtl:f}=s.options;n=h?t.scrollLeft*(f&&-1||1):t.scrollTop,r(),e(n,c)},o=a(!0),l=a(!1);l(),t.addEventListener("scroll",o,Lx);const u=s.options.useScrollendEvent&&Ux;return u&&t.addEventListener("scrollend",l,Lx),()=>{t.removeEventListener("scroll",o),u&&t.removeEventListener("scrollend",l)}},OAe=(s,e,t)=>{if(e!=null&&e.borderBoxSize){const i=e.borderBoxSize[0];if(i)return Math.round(i[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(s.getBoundingClientRect()[t.options.horizontal?"width":"height"])},wAe=(s,{adjustments:e=0,behavior:t},i)=>{var n,r;const a=s+e;(r=(n=i.scrollElement)==null?void 0:n.scrollTo)==null||r.call(n,{[i.options.horizontal?"left":"top"]:a,behavior:t})};class CAe{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const i=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(r=>{const a=()=>{this._measureElement(r.target,r)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var n;(n=i())==null||n.disconnect(),t=null},observe:n=>{var r;return(r=i())==null?void 0:r.observe(n,{box:"border-box"})},unobserve:n=>{var r;return(r=i())==null?void 0:r.unobserve(n)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([i,n])=>{typeof n>"u"&&delete t[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:RAe,rangeExtractor:SAe,onChange:()=>{},measureElement:OAe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var i,n;(n=(i=this.options).onChange)==null||n.call(i,this,t)},this.maybeNotify=oh(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,r)=>{this.scrollAdjustments=0,this.scrollDirection=r?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=r,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,i)=>{const n=new Map,r=new Map;for(let a=i-1;a>=0;a--){const o=t[a];if(n.has(o.lane))continue;const l=r.get(o.lane);if(l==null||o.end>l.end?r.set(o.lane,o):o.end<l.end&&n.set(o.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((a,o)=>a.end===o.end?a.index-o.index:a.end-o.end)[0]:void 0},this.getMeasurementOptions=oh(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,i,n,r,a)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:i,scrollMargin:n,getItemKey:r,enabled:a}),{key:!1}),this.getMeasurements=oh(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:i,scrollMargin:n,getItemKey:r,enabled:a},o)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<t;c++){const h=r(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),d=f?f.end+this.options.gap:i+n,_=o.get(h),g=typeof _=="number"?_:this.options.estimateSize(c),p=d+g,m=f?f.lane:c%this.options.lanes;u[c]={index:c,start:d,size:g,end:p,key:h,lane:m}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=oh(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,i,n,r)=>this.range=t.length>0&&i>0?MAe({measurements:t,outerSize:i,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=oh(()=>{let t=null,i=null;const n=this.calculateRange();return n&&(t=n.startIndex,i=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,i]},(t,i,n,r,a)=>r===null||a===null?[]:t({startIndex:r,endIndex:a,overscan:i,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const i=this.options.indexAttribute,n=t.getAttribute(i);return n?parseInt(n,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(t,i)=>{const n=this.indexFromElement(t),r=this.measurementsCache[n];if(!r)return;const a=r.key,o=this.elementsCache.get(a);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(a,t)),t.isConnected&&this.resizeItem(n,this.options.measureElement(t,i,this))},this.resizeItem=(t,i)=>{const n=this.measurementsCache[t];if(!n)return;const r=this.itemSizeCache.get(n.key)??n.size,a=i-r;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,a,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,i)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((i,n)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(n))});return}this._measureElement(t,void 0)},this.getVirtualItems=oh(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,i)=>{const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r],l=i[o];n.push(l)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const i=this.getMeasurements();if(i.length!==0)return NT(i[y9(0,i.length-1,n=>NT(i[n]).start,t)])},this.getOffsetForAlignment=(t,i,n=0)=>{const r=this.getSize(),a=this.getScrollOffset();i==="auto"&&(i=t>=a+r?"end":"start"),i==="center"?t+=(n-r)/2:i==="end"&&(t-=r);const o=this.options.horizontal?"scrollWidth":"scrollHeight",u=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-r;return Math.max(Math.min(u,t),0)},this.getOffsetForIndex=(t,i="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.measurementsCache[t];if(!n)return;const r=this.getSize(),a=this.getScrollOffset();if(i==="auto")if(n.end>=a+r-this.options.scrollPaddingEnd)i="end";else if(n.start<=a+this.options.scrollPaddingStart)i="start";else return[a,i];const o=i==="end"?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,i,n.size),i]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:i="start",behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,i),{adjustments:void 0,behavior:n})},this.scrollToIndex=(t,{align:i="auto",behavior:n}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(t,i);if(!r)return;const[a,o]=r;this._scrollToOffset(a,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[u]=NT(this.getOffsetForIndex(t,o));TAe(u,this.getScrollOffset())||this.scrollToIndex(t,{align:o,behavior:n})}else this.scrollToIndex(t,{align:o,behavior:n})}))},this.scrollBy=(t,{behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var t;const i=this.getMeasurements();let n;if(i.length===0)n=this.options.paddingStart;else if(this.options.lanes===1)n=((t=i[i.length-1])==null?void 0:t.end)??0;else{const r=Array(this.options.lanes).fill(null);let a=i.length-1;for(;a>=0&&r.some(o=>o===null);){const o=i[a];r[o.lane]===null&&(r[o.lane]=o.end),a--}n=Math.max(...r.filter(o=>o!==null))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:i,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const y9=(s,e,t,i)=>{for(;s<=e;){const n=(s+e)/2|0,r=t(n);if(r<i)s=n+1;else if(r>i)e=n-1;else return n}return s>0?s-1:0};function MAe({measurements:s,outerSize:e,scrollOffset:t,lanes:i}){const n=s.length-1,r=l=>s[l].start;if(s.length<=i)return{startIndex:0,endIndex:n};let a=y9(0,n,r,t),o=a;if(i===1)for(;o<n&&s[o].end<t+e;)o++;else if(i>1){const l=Array(i).fill(0);for(;o<n&&l.some(c=>c<t+e);){const c=s[o];l[c.lane]=c.end,o++}const u=Array(i).fill(t+e);for(;a>=0&&u.some(c=>c>=t);){const c=s[a];u[c.lane]=c.start,a--}a=Math.max(0,a-a%i),o=Math.min(n,o+(i-1-o%i))}return{startIndex:a,endIndex:o}}const Fx=typeof document<"u"?D.useLayoutEffect:D.useEffect;function NAe(s){const e=D.useReducer(()=>({}),{})[1],t={...s,onChange:(n,r)=>{var a;r?fw.flushSync(e):e(),(a=s.onChange)==null||a.call(s,n,r)}},[i]=D.useState(()=>new CAe(t));return i.setOptions(t),Fx(()=>i._didMount(),[]),Fx(()=>i._willUpdate()),i}function KMe(s){return NAe({observeElementRect:bAe,observeElementOffset:AAe,scrollToFn:wAe,...s})}const PAe=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,PT=PAe.ReactCurrentDispatcher,kAe=()=>D.useReducer(()=>({}))[1],xAe=s=>()=>{const e=`Hook "${s}" no possible to using inside useBetween scope.`;throw console.error(e),new Error(e)},HA=(s,e)=>Object.is(s,e),Lf=(s,e)=>!s||!e||s.length!==e.length||s.some((t,i)=>!HA(t,e[i])),DAe=()=>typeof window>"u",Bx=new Map;let yd=[],qp=0,zh=[],Lo=[],Td=()=>{},kT=DAe(),LAe;const $a=()=>{const s=qp++;return yd[s]=yd[s]||{}},T9={useState(s){const e=$a(),t=Td;return e.initialized||(e.state=typeof s=="function"?s():s,e.set=i=>{if(typeof i=="function")return e.set(i(e.state));HA(i,e.state)||(e.state=i,t())},e.initialized=!0),[e.state,e.set]},useReducer(s,e,t){const i=$a(),n=Td;return i.initialized||(i.state=t?t(e):e,i.dispatch=r=>{const a=s(i.state,r);HA(a,i.state)||(i.state=a,n())},i.initialized=!0),[i.state,i.dispatch]},useEffect(s,e){if(kT)return;const t=$a();t.initialized?Lf(t.deps,e)&&(t.deps=e,zh.push([t,e,s])):(t.deps=e,t.initialized=!0,zh.push([t,e,s]))},useLayoutEffect(s,e){if(kT)return;const t=$a();t.initialized?Lf(t.deps,e)&&(t.deps=e,Lo.push([t,e,s])):(t.deps=e,t.initialized=!0,Lo.push([t,e,s]))},useCallback(s,e){const t=$a();return t.initialized?Lf(t.deps,e)&&(t.deps=e,t.fn=s):(t.fn=s,t.deps=e,t.initialized=!0),t.fn},useMemo(s,e){const t=$a();return t.initialized?Lf(t.deps,e)&&(t.deps=e,t.state=s()):(t.deps=e,t.state=s(),t.initialized=!0),t.state},useRef(s){const e=$a();return e.initialized||(e.state={current:s},e.initialized=!0),e.state},useImperativeHandle(s,e,t){if(kT)return;const i=$a();i.initialized?Lf(i.deps,t)&&(i.deps=t,Lo.push([i,t,()=>{typeof s=="function"?s(e()):s.current=e()}])):(i.deps=t,i.initialized=!0,Lo.push([i,t,()=>{typeof s=="function"?s(e()):s.current=e()}]))}};["readContext","useContext","useDebugValue","useResponder","useDeferredValue","useTransition"].forEach(s=>T9[s]=xAe(s));const UAe=(s,e)=>{const t=[];let i=[],n,r=[],a=!1;const o=()=>{i.slice().forEach(d=>d())},l=()=>{if(a)return;const d=PT.current,_=[qp,zh,Lo,yd,Td];let g=!1,p=!0;if(qp=0,zh=[],Lo=[],yd=t,Td=()=>{p?g=!0:l()},PT.current=T9,n=s(LAe),[Lo,zh].forEach(m=>m.forEach(([v,E,y])=>{if(v.deps=E,v.unsub){const w=v.unsub;r=r.filter(C=>C!==w),w()}const T=y();typeof T=="function"?(r.push(T),v.unsub=T):v.unsub=null})),[qp,zh,Lo,yd,Td]=_,PT.current=d,p=!1,!g){o();return}l()};return{init:()=>l(),get:()=>n,sub:d=>{i.indexOf(d)===-1&&i.push(d)},unsub:d=>{i=i.filter(_=>_!==d)},unsubs:()=>r,mock:d=>{a=!0,n=d,o()},unmock:()=>{a=!1,l()}}},FAe=s=>{let e=Bx.get(s);return e||(e=UAe(s),Bx.set(s,e),e.init()),e},qMe=s=>{const e=kAe();let t=FAe(s);return t.sub(e),D.useEffect(()=>(t.sub(e),()=>t.unsub(e)),[t,e]),t.get()};function WA(s,e){return WA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},WA(s,e)}function I9(s,e){s.prototype=Object.create(e.prototype),s.prototype.constructor=s,WA(s,e)}function xT(s){return s&&s.stopPropagation&&s.stopPropagation(),s&&s.preventDefault&&s.preventDefault(),!1}function DT(s){return s==null?[]:Array.isArray(s)?s.slice():[s]}function yp(s){return s!==null&&s.length===1?s[0]:s.slice()}function Tp(s){Object.keys(s).forEach(e=>{typeof document<"u"&&document.addEventListener(e,s[e],!1)})}function Il(s,e){return YA(function(t,i){let n=t;return n<=i.min&&(n=i.min),n>=i.max&&(n=i.max),n}(s,e),e)}function YA(s,e){const t=(s-e.min)%e.step;let i=s-t;return 2*Math.abs(t)>=e.step&&(i+=t>0?e.step:-e.step),parseFloat(i.toFixed(5))}let XA=function(s){function e(i){var n;(n=s.call(this,i)||this).onKeyUp=()=>{n.onEnd()},n.onMouseUp=()=>{n.onEnd(n.getMouseEventMap())},n.onTouchEnd=o=>{o.preventDefault(),n.onEnd(n.getTouchEventMap())},n.onBlur=()=>{n.setState({index:-1},n.onEnd(n.getKeyDownEventMap()))},n.onMouseMove=o=>{n.setState({pending:!0});const l=n.getMousePosition(o),u=n.getDiffPosition(l[0]),c=n.getValueFromPosition(u);n.move(c)},n.onTouchMove=o=>{if(o.touches.length>1)return;n.setState({pending:!0});const l=n.getTouchPosition(o);if(n.isScrolling===void 0){const h=l[0]-n.startPosition[0],f=l[1]-n.startPosition[1];n.isScrolling=Math.abs(f)>Math.abs(h)}if(n.isScrolling)return void n.setState({index:-1});const u=n.getDiffPosition(l[0]),c=n.getValueFromPosition(u);n.move(c)},n.onKeyDown=o=>{if(!(o.ctrlKey||o.shiftKey||o.altKey||o.metaKey))switch(n.setState({pending:!0}),o.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":o.preventDefault(),n.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":o.preventDefault(),n.moveUpByStep();break;case"Home":o.preventDefault(),n.move(n.props.min);break;case"End":o.preventDefault(),n.move(n.props.max);break;case"PageDown":o.preventDefault(),n.moveDownByStep(n.props.pageFn(n.props.step));break;case"PageUp":o.preventDefault(),n.moveUpByStep(n.props.pageFn(n.props.step))}},n.onSliderMouseDown=o=>{if(!n.props.disabled&&o.button!==2){if(n.setState({pending:!0}),!n.props.snapDragDisabled){const l=n.getMousePosition(o);n.forceValueFromPosition(l[0],u=>{n.start(u,l[0]),Tp(n.getMouseEventMap())})}xT(o)}},n.onSliderClick=o=>{if(!n.props.disabled&&n.props.onSliderClick&&!n.hasMoved){const l=n.getMousePosition(o),u=Il(n.calcValue(n.calcOffsetFromPosition(l[0])),n.props);n.props.onSliderClick(u)}},n.createOnKeyDown=o=>l=>{n.props.disabled||(n.start(o),Tp(n.getKeyDownEventMap()),xT(l))},n.createOnMouseDown=o=>l=>{if(n.props.disabled||l.button===2)return;n.setState({pending:!0});const u=n.getMousePosition(l);n.start(o,u[0]),Tp(n.getMouseEventMap()),xT(l)},n.createOnTouchStart=o=>l=>{if(n.props.disabled||l.touches.length>1)return;n.setState({pending:!0});const u=n.getTouchPosition(l);n.startPosition=u,n.isScrolling=void 0,n.start(o,u[0]),Tp(n.getTouchEventMap()),function(c){c.stopPropagation&&c.stopPropagation()}(l)},n.handleResize=()=>{const o=window.setTimeout(()=>{n.pendingResizeTimeouts.shift(),n.resize()},0);n.pendingResizeTimeouts.push(o)},n.renderThumb=(o,l)=>{const u=n.props.thumbClassName+" "+n.props.thumbClassName+"-"+l+" "+(n.state.index===l?n.props.thumbActiveClassName:""),c={ref:f=>{n["thumb"+l]=f},key:n.props.thumbClassName+"-"+l,className:u,style:o,onMouseDown:n.createOnMouseDown(l),onTouchStart:n.createOnTouchStart(l),onFocus:n.createOnKeyDown(l),tabIndex:0,role:"slider","aria-orientation":n.props.orientation,"aria-valuenow":n.state.value[l],"aria-valuemin":n.props.min,"aria-valuemax":n.props.max,"aria-label":Array.isArray(n.props.ariaLabel)?n.props.ariaLabel[l]:n.props.ariaLabel,"aria-labelledby":Array.isArray(n.props.ariaLabelledby)?n.props.ariaLabelledby[l]:n.props.ariaLabelledby,"aria-disabled":n.props.disabled},h={index:l,value:yp(n.state.value),valueNow:n.state.value[l]};return n.props.ariaValuetext&&(c["aria-valuetext"]=typeof n.props.ariaValuetext=="string"?n.props.ariaValuetext:n.props.ariaValuetext(h)),n.props.renderThumb(c,h)},n.renderTrack=(o,l,u)=>{const c={key:n.props.trackClassName+"-"+o,className:n.props.trackClassName+" "+n.props.trackClassName+"-"+o,style:n.buildTrackStyle(l,n.state.upperBound-u)},h={index:o,value:yp(n.state.value)};return n.props.renderTrack(c,h)};let r=DT(i.value);r.length||(r=DT(i.defaultValue)),n.pendingResizeTimeouts=[];const a=[];for(let o=0;o<r.length;o+=1)r[o]=Il(r[o],i),a.push(o);return n.resizeObserver=null,n.resizeElementRef=Bt.createRef(),n.state={index:-1,upperBound:0,sliderLength:0,value:r,zIndices:a},n}I9(e,s);var t=e.prototype;return t.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},e.getDerivedStateFromProps=function(i,n){const r=DT(i.value);return r.length?n.pending?null:{value:r.map(a=>Il(a,i))}:null},t.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},t.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},t.onEnd=function(i){i&&function(n){Object.keys(n).forEach(r=>{typeof document<"u"&&document.removeEventListener(r,n[r],!1)})}(i),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},t.getValue=function(){return yp(this.state.value)},t.getClosestIndex=function(i){let n=Number.MAX_VALUE,r=-1;const{value:a}=this.state,o=a.length;for(let l=0;l<o;l+=1){const u=this.calcOffset(a[l]),c=Math.abs(i-u);c<n&&(n=c,r=l)}return r},t.getMousePosition=function(i){return[i["page"+this.axisKey()],i["page"+this.orthogonalAxisKey()]]},t.getTouchPosition=function(i){const n=i.touches[0];return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},t.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},t.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},t.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},t.getValueFromPosition=function(i){const n=i/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Il(this.state.startValue+n,this.props)},t.getDiffPosition=function(i){let n=i-this.state.startPosition;return this.props.invert&&(n*=-1),n},t.resize=function(){const{slider:i,thumb0:n}=this;if(!i||!n)return;const r=this.sizeKey(),a=i.getBoundingClientRect(),o=i[r],l=a[this.posMaxKey()],u=a[this.posMinKey()],c=n.getBoundingClientRect()[r.replace("client","").toLowerCase()],h=o-c,f=Math.abs(l-u);this.state.upperBound===h&&this.state.sliderLength===f&&this.state.thumbSize===c||this.setState({upperBound:h,sliderLength:f,thumbSize:c})},t.calcOffset=function(i){const n=this.props.max-this.props.min;return n===0?0:(i-this.props.min)/n*this.state.upperBound},t.calcValue=function(i){return i/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},t.calcOffsetFromPosition=function(i){const{slider:n}=this,r=n.getBoundingClientRect(),a=r[this.posMaxKey()],o=r[this.posMinKey()];let l=i-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:o));return this.props.invert&&(l=this.state.sliderLength-l),l-=this.state.thumbSize/2,l},t.forceValueFromPosition=function(i,n){const r=this.calcOffsetFromPosition(i),a=this.getClosestIndex(r),o=Il(this.calcValue(r),this.props),l=this.state.value.slice();l[a]=o;for(let u=0;u<l.length-1;u+=1)if(l[u+1]-l[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:l},()=>{n(a),this.fireChangeEvent("onChange")})},t.clearPendingResizeTimeouts=function(){do{const i=this.pendingResizeTimeouts.shift();clearTimeout(i)}while(this.pendingResizeTimeouts.length)},t.start=function(i,n){const r=this["thumb"+i];r&&r.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(i),1),a.push(i),this.setState(o=>({startValue:o.value[i],startPosition:n!==void 0?n:o.startPosition,index:i,zIndices:a}))},t.moveUpByStep=function(i){i===void 0&&(i=this.props.step);const n=this.state.value[this.state.index],r=Il(this.props.invert&&this.props.orientation==="horizontal"?n-i:n+i,this.props);this.move(Math.min(r,this.props.max))},t.moveDownByStep=function(i){i===void 0&&(i=this.props.step);const n=this.state.value[this.state.index],r=Il(this.props.invert&&this.props.orientation==="horizontal"?n+i:n-i,this.props);this.move(Math.max(r,this.props.min))},t.move=function(i){const n=this.state.value.slice(),{index:r}=this.state,{length:a}=n,o=n[r];if(i===o)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:l,max:u,min:c,minDistance:h}=this.props;if(!l){if(r>0){const f=n[r-1];i<f+h&&(i=f+h)}if(r<a-1){const f=n[r+1];i>f-h&&(i=f-h)}}n[r]=i,l&&a>1&&(i>o?(this.pushSucceeding(n,h,r),function(f,d,_,g){for(let p=0;p<f;p+=1){const m=g-p*_;d[f-1-p]>m&&(d[f-1-p]=m)}}(a,n,h,u)):i<o&&(this.pushPreceding(n,h,r),function(f,d,_,g){for(let p=0;p<f;p+=1){const m=g+p*_;d[p]<m&&(d[p]=m)}}(a,n,h,c))),this.setState({value:n},this.fireChangeEvent.bind(this,"onChange"))},t.pushSucceeding=function(i,n,r){let a,o;for(a=r,o=i[a]+n;i[a+1]!==null&&o>i[a+1];a+=1,o=i[a]+n)i[a+1]=YA(o,this.props)},t.pushPreceding=function(i,n,r){for(let a=r,o=i[a]-n;i[a-1]!==null&&o<i[a-1];a-=1,o=i[a]-n)i[a-1]=YA(o,this.props)},t.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},t.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},t.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},t.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},t.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},t.fireChangeEvent=function(i){this.props[i]&&this.props[i](yp(this.state.value),this.state.index)},t.buildThumbStyle=function(i,n){const r={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(n)+1};return r[this.posMinKey()]=i+"px",r},t.buildTrackStyle=function(i,n){const r={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return r[this.posMinKey()]=i,r[this.posMaxKey()]=n,r},t.buildMarkStyle=function(i){var n;return(n={position:"absolute"})[this.posMinKey()]=i,n},t.renderThumbs=function(i){const{length:n}=i,r=[];for(let o=0;o<n;o+=1)r[o]=this.buildThumbStyle(i[o],o);const a=[];for(let o=0;o<n;o+=1)a[o]=this.renderThumb(r[o],o);return a},t.renderTracks=function(i){const n=[],r=i.length-1;n.push(this.renderTrack(0,0,i[0]));for(let a=0;a<r;a+=1)n.push(this.renderTrack(a+1,i[a],i[a+1]));return n.push(this.renderTrack(r+1,i[r],this.state.upperBound)),n},t.renderMarks=function(){let{marks:i}=this.props;const n=this.props.max-this.props.min+1;return typeof i=="boolean"?i=Array.from({length:n}).map((r,a)=>a):typeof i=="number"&&(i=Array.from({length:n}).map((r,a)=>a).filter(r=>r%i==0)),i.map(parseFloat).sort((r,a)=>r-a).map(r=>{const a=this.calcOffset(r),o={key:r,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(o)})},t.render=function(){const i=[],{value:n}=this.state,r=n.length;for(let u=0;u<r;u+=1)i[u]=this.calcOffset(n[u],u);const a=this.props.withTracks?this.renderTracks(i):null,o=this.renderThumbs(i),l=this.props.marks?this.renderMarks():null;return Bt.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,o,l)},e}(Bt.Component);XA.displayName="ReactSlider",XA.defaultProps={min:0,max:100,step:1,pageFn:s=>10*s,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:s=>Bt.createElement("div",s),renderTrack:s=>Bt.createElement("div",s),renderMark:s=>Bt.createElement("span",s)};var $Me=XA;function QMe(s){return be({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M2 20h20v4H2v-4zm3.49-3h2.42l1.27-3.58h5.65L16.09 17h2.42L13.25 3h-2.5L5.49 17zm4.42-5.61 2.03-5.79h.12l2.03 5.79H9.91z"},child:[]}]})(s)}function ZMe(s){return be({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(s)}function JMe(s){return be({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(s)}var R9={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(s){(function(){var e={}.hasOwnProperty;function t(){for(var r="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(r=n(r,i(o)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var o in r)e.call(r,o)&&r[o]&&(a=n(a,o));return a}function n(r,a){return a?r?r+" "+a:r+a:r}s.exports?(t.default=t,s.exports=t):window.classNames=t})()})(R9);var BAe=R9.exports;const Zu=nr(BAe);function GAe(s,e){if(s==null)return{};var t={};for(var i in s)if({}.hasOwnProperty.call(s,i)){if(e.indexOf(i)!==-1)continue;t[i]=s[i]}return t}function VAe(s,e,t){var i=D.useRef(s!==void 0),n=D.useState(e),r=n[0],a=n[1],o=s!==void 0,l=i.current;return i.current=o,!o&&l&&r!==e&&a(e),[o?s:r,D.useCallback(function(u){for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];t&&t.apply(void 0,[u].concat(h)),a(u)},[t])]}const jAe=["xxl","xl","lg","md","sm","xs"],zAe="xs",C2=D.createContext({prefixes:{},breakpoints:jAe,minBreakpoint:zAe}),{Consumer:eNe,Provider:tNe}=C2;function Hu(s,e){const{prefixes:t}=D.useContext(C2);return s||t[e]||e}function S9(){const{dir:s}=D.useContext(C2);return s==="rtl"}function U0(s){return s&&s.ownerDocument||document}function HAe(s){var e=U0(s);return e&&e.defaultView||window}function WAe(s,e){return HAe(s).getComputedStyle(s,e)}var YAe=/([A-Z])/g;function XAe(s){return s.replace(YAe,"-$1").toLowerCase()}var KAe=/^ms-/;function Ip(s){return XAe(s).replace(KAe,"-ms-")}var qAe=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function $Ae(s){return!!(s&&qAe.test(s))}function b9(s,e){var t="",i="";if(typeof e=="string")return s.style.getPropertyValue(Ip(e))||WAe(s).getPropertyValue(Ip(e));Object.keys(e).forEach(function(n){var r=e[n];!r&&r!==0?s.style.removeProperty(Ip(n)):$Ae(n)?i+=n+"("+r+") ":t+=Ip(n)+": "+r+";"}),i&&(t+="transform: "+i+";"),s.style.cssText+=";"+t}var A9={exports:{}},QAe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ZAe=QAe,JAe=ZAe;function O9(){}function w9(){}w9.resetWarningCache=O9;var eOe=function(){function s(i,n,r,a,o,l){if(l!==JAe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}s.isRequired=s;function e(){return s}var t={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:e,element:s,elementType:s,instanceOf:e,node:s,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:w9,resetWarningCache:O9};return t.PropTypes=t,t};A9.exports=eOe();var tOe=A9.exports;const iOe=nr(tOe),Gx={disabled:!1},C9=Bt.createContext(null);var sOe=function(e){return e.scrollTop},Xf="unmounted",Pl="exited",ao="entering",Bl="entered",KA="exiting",Ka=function(s){I9(e,s);function e(i,n){var r;r=s.call(this,i,n)||this;var a=n,o=a&&!a.isMounting?i.enter:i.appear,l;return r.appearStatus=null,i.in?o?(l=Pl,r.appearStatus=ao):l=Bl:i.unmountOnExit||i.mountOnEnter?l=Xf:l=Pl,r.state={status:l},r.nextCallback=null,r}e.getDerivedStateFromProps=function(n,r){var a=n.in;return a&&r.status===Xf?{status:Pl}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(n){var r=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==ao&&a!==Bl&&(r=ao):(a===ao||a===Bl)&&(r=KA)}this.updateStatus(!1,r)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var n=this.props.timeout,r,a,o;return r=a=o=n,n!=null&&typeof n!="number"&&(r=n.exit,a=n.enter,o=n.appear!==void 0?n.appear:a),{exit:r,enter:a,appear:o}},t.updateStatus=function(n,r){if(n===void 0&&(n=!1),r!==null)if(this.cancelNextCallback(),r===ao){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this);a&&sOe(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pl&&this.setState({status:Xf})},t.performEnter=function(n){var r=this,a=this.props.enter,o=this.context?this.context.isMounting:n,l=this.props.nodeRef?[o]:[Sh.findDOMNode(this),o],u=l[0],c=l[1],h=this.getTimeouts(),f=o?h.appear:h.enter;if(!n&&!a||Gx.disabled){this.safeSetState({status:Bl},function(){r.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ao},function(){r.props.onEntering(u,c),r.onTransitionEnd(f,function(){r.safeSetState({status:Bl},function(){r.props.onEntered(u,c)})})})},t.performExit=function(){var n=this,r=this.props.exit,a=this.getTimeouts(),o=this.props.nodeRef?void 0:Sh.findDOMNode(this);if(!r||Gx.disabled){this.safeSetState({status:Pl},function(){n.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:KA},function(){n.props.onExiting(o),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:Pl},function(){n.props.onExited(o)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(n,r){r=this.setNextCallback(r),this.setState(n,r)},t.setNextCallback=function(n){var r=this,a=!0;return this.nextCallback=function(o){a&&(a=!1,r.nextCallback=null,n(o))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(n,r){this.setNextCallback(r);var a=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this),o=n==null&&!this.props.addEndListener;if(!a||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}n!=null&&setTimeout(this.nextCallback,n)},t.render=function(){var n=this.state.status;if(n===Xf)return null;var r=this.props,a=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var o=GAe(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Bt.createElement(C9.Provider,{value:null},typeof a=="function"?a(n,o):Bt.cloneElement(Bt.Children.only(a),o))},e}(Bt.Component);Ka.contextType=C9;Ka.propTypes={};function lh(){}Ka.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lh,onEntering:lh,onEntered:lh,onExit:lh,onExiting:lh,onExited:lh};Ka.UNMOUNTED=Xf;Ka.EXITED=Pl;Ka.ENTERING=ao;Ka.ENTERED=Bl;Ka.EXITING=KA;function nOe(s){return s.code==="Escape"||s.keyCode===27}function rOe(){const s=D.version.split(".");return{major:+s[0],minor:+s[1],patch:+s[2]}}function Ag(s){if(!s||typeof s=="function")return null;const{major:e}=rOe();return e>=19?s.props.ref:s.ref}const M2=!!(typeof window<"u"&&window.document&&window.document.createElement);var qA=!1,$A=!1;try{var LT={get passive(){return qA=!0},get once(){return $A=qA=!0}};M2&&(window.addEventListener("test",LT,LT),window.removeEventListener("test",LT,!0))}catch{}function aOe(s,e,t,i){if(i&&typeof i!="boolean"&&!$A){var n=i.once,r=i.capture,a=t;!$A&&n&&(a=t.__once||function o(l){this.removeEventListener(e,o,r),t.call(this,l)},t.__once=a),s.addEventListener(e,a,qA?i:r)}s.addEventListener(e,t,i)}function oOe(s,e,t,i){var n=i&&typeof i!="boolean"?i.capture:i;s.removeEventListener(e,t,n),t.__once&&s.removeEventListener(e,t.__once,n)}function vu(s,e,t,i){return aOe(s,e,t,i),function(){oOe(s,e,t,i)}}function lOe(s,e,t,i){if(i===void 0&&(i=!0),s){var n=document.createEvent("HTMLEvents");n.initEvent(e,t,i),s.dispatchEvent(n)}}function uOe(s){var e=b9(s,"transitionDuration")||"",t=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*t}function hOe(s,e,t){t===void 0&&(t=5);var i=!1,n=setTimeout(function(){i||lOe(s,"transitionend",!0)},e+t),r=vu(s,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(n),r()}}function cOe(s,e,t,i){t==null&&(t=uOe(s)||0);var n=hOe(s,t,i),r=vu(s,"transitionend",e);return function(){n(),r()}}function Vx(s,e){const t=b9(s,e)||"",i=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*i}function fOe(s,e){const t=Vx(s,"transitionDuration"),i=Vx(s,"transitionDelay"),n=cOe(s,r=>{r.target===s&&(n(),e(r))},t+i)}function dOe(s){s.offsetHeight}const jx=s=>!s||typeof s=="function"?s:e=>{s.current=e};function _Oe(s,e){const t=jx(s),i=jx(e);return n=>{t&&t(n),i&&i(n)}}function N2(s,e){return D.useMemo(()=>_Oe(s,e),[s,e])}function e1(s){return s&&"setState"in s?Sh.findDOMNode(s):s??null}const gOe=Bt.forwardRef(({onEnter:s,onEntering:e,onEntered:t,onExit:i,onExiting:n,onExited:r,addEndListener:a,children:o,childRef:l,...u},c)=>{const h=D.useRef(null),f=N2(h,l),d=w=>{f(e1(w))},_=w=>C=>{w&&h.current&&w(h.current,C)},g=D.useCallback(_(s),[s]),p=D.useCallback(_(e),[e]),m=D.useCallback(_(t),[t]),v=D.useCallback(_(i),[i]),E=D.useCallback(_(n),[n]),y=D.useCallback(_(r),[r]),T=D.useCallback(_(a),[a]);return vt.jsx(Ka,{ref:c,...u,onEnter:g,onEntered:m,onEntering:p,onExit:v,onExited:y,onExiting:E,addEndListener:T,nodeRef:h,children:typeof o=="function"?(w,C)=>o(w,{...C,ref:d}):Bt.cloneElement(o,{ref:d})})});function pOe(s){const e=D.useRef(s);return D.useEffect(()=>{e.current=s},[s]),e}function mOe(s){const e=pOe(s);return D.useCallback(function(...t){return e.current&&e.current(...t)},[e])}function zx(){return D.useState(null)}function vOe(s){const e=D.useRef(s);return D.useEffect(()=>{e.current=s},[s]),e}function ng(s){const e=vOe(s);return D.useCallback(function(...t){return e.current&&e.current(...t)},[e])}function EOe(){const s=D.useRef(!0),e=D.useRef(()=>s.current);return D.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]),e.current}const yOe=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",TOe=typeof document<"u",Hx=TOe||yOe?D.useLayoutEffect:D.useEffect,IOe=["as","disabled"];function ROe(s,e){if(s==null)return{};var t={};for(var i in s)if({}.hasOwnProperty.call(s,i)){if(e.indexOf(i)>=0)continue;t[i]=s[i]}return t}function SOe(s){return!s||s.trim()==="#"}function M9({tagName:s,disabled:e,href:t,target:i,rel:n,role:r,onClick:a,tabIndex:o=0,type:l}){s||(t!=null||i!=null||n!=null?s="a":s="button");const u={tagName:s};if(s==="button")return[{type:l||"button",disabled:e},u];const c=f=>{if((e||s==="a"&&SOe(t))&&f.preventDefault(),e){f.stopPropagation();return}a==null||a(f)},h=f=>{f.key===" "&&(f.preventDefault(),c(f))};return s==="a"&&(t||(t="#"),e&&(t=void 0)),[{role:r??"button",disabled:void 0,tabIndex:e?void 0:o,href:t,target:s==="a"?i:void 0,"aria-disabled":e||void 0,rel:s==="a"?n:void 0,onClick:c,onKeyDown:h},u]}const bOe=D.forwardRef((s,e)=>{let{as:t,disabled:i}=s,n=ROe(s,IOe);const[r,{tagName:a}]=M9(Object.assign({tagName:t,disabled:i},n));return vt.jsx(a,Object.assign({},n,r,{ref:e}))});bOe.displayName="Button";const AOe={[ao]:"show",[Bl]:"show"},QA=D.forwardRef(({className:s,children:e,transitionClasses:t={},onEnter:i,...n},r)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...n},o=D.useCallback((l,u)=>{dOe(l),i==null||i(l,u)},[i]);return vt.jsx(gOe,{ref:r,addEndListener:fOe,...a,onEnter:o,childRef:Ag(e),children:(l,u)=>D.cloneElement(e,{...u,className:Zu("fade",s,e.props.className,AOe[l],t[l])})})});QA.displayName="Fade";const OOe=D.forwardRef(({as:s,bsPrefix:e,variant:t="primary",size:i,active:n=!1,disabled:r=!1,className:a,...o},l)=>{const u=Hu(e,"btn"),[c,{tagName:h}]=M9({tagName:s,disabled:r,...o}),f=h;return vt.jsx(f,{...c,...o,ref:l,disabled:r,className:Zu(a,u,n&&"active",t&&`${u}-${t}`,i&&`${u}-${i}`,o.href&&r&&"disabled")})});OOe.displayName="Button";function wOe(){const s=D.useRef(!0),e=D.useRef(()=>s.current);return D.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]),e.current}function COe(s){const e=D.useRef(s);return e.current=s,e}function MOe(s){const e=COe(s);D.useEffect(()=>()=>e.current(),[])}const ZA=2**31-1;function N9(s,e,t){const i=t-Date.now();s.current=i<=ZA?setTimeout(e,i):setTimeout(()=>N9(s,e,t),ZA)}function NOe(){const s=wOe(),e=D.useRef();return MOe(()=>clearTimeout(e.current)),D.useMemo(()=>{const t=()=>clearTimeout(e.current);function i(n,r=0){s()&&(t(),r<=ZA?e.current=setTimeout(n,r):N9(e,n,Date.now()+r))}return{set:i,clear:t,handleRef:e}},[])}var Wx=Object.prototype.hasOwnProperty;function Yx(s,e,t){for(t of s.keys())if(Id(t,e))return t}function Id(s,e){var t,i,n;if(s===e)return!0;if(s&&e&&(t=s.constructor)===e.constructor){if(t===Date)return s.getTime()===e.getTime();if(t===RegExp)return s.toString()===e.toString();if(t===Array){if((i=s.length)===e.length)for(;i--&&Id(s[i],e[i]););return i===-1}if(t===Set){if(s.size!==e.size)return!1;for(i of s)if(n=i,n&&typeof n=="object"&&(n=Yx(e,n),!n)||!e.has(n))return!1;return!0}if(t===Map){if(s.size!==e.size)return!1;for(i of s)if(n=i[0],n&&typeof n=="object"&&(n=Yx(e,n),!n)||!Id(i[1],e.get(n)))return!1;return!0}if(t===ArrayBuffer)s=new Uint8Array(s),e=new Uint8Array(e);else if(t===DataView){if((i=s.byteLength)===e.byteLength)for(;i--&&s.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(s)){if((i=s.byteLength)===e.byteLength)for(;i--&&s[i]===e[i];);return i===-1}if(!t||typeof s=="object"){i=0;for(t in s)if(Wx.call(s,t)&&++i&&!Wx.call(e,t)||!(t in e)||!Id(s[t],e[t]))return!1;return Object.keys(e).length===i}}return s!==s&&e!==e}function POe(s){const e=EOe();return[s[0],D.useCallback(t=>{if(e())return s[1](t)},[e,s[1]])]}var Ls="top",Ln="bottom",Un="right",Us="left",P2="auto",Og=[Ls,Ln,Un,Us],af="start",rg="end",kOe="clippingParents",P9="viewport",Uf="popper",xOe="reference",Xx=Og.reduce(function(s,e){return s.concat([e+"-"+af,e+"-"+rg])},[]),k9=[].concat(Og,[P2]).reduce(function(s,e){return s.concat([e,e+"-"+af,e+"-"+rg])},[]),DOe="beforeRead",LOe="read",UOe="afterRead",FOe="beforeMain",BOe="main",GOe="afterMain",VOe="beforeWrite",jOe="write",zOe="afterWrite",HOe=[DOe,LOe,UOe,FOe,BOe,GOe,VOe,jOe,zOe];function Vr(s){return s.split("-")[0]}function un(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function Wu(s){var e=un(s).Element;return s instanceof e||s instanceof Element}function jr(s){var e=un(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function k2(s){if(typeof ShadowRoot>"u")return!1;var e=un(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}var wu=Math.max,t1=Math.min,of=Math.round;function JA(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function x9(){return!/^((?!chrome|android).)*safari/i.test(JA())}function lf(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),n=1,r=1;e&&jr(s)&&(n=s.offsetWidth>0&&of(i.width)/s.offsetWidth||1,r=s.offsetHeight>0&&of(i.height)/s.offsetHeight||1);var a=Wu(s)?un(s):window,o=a.visualViewport,l=!x9()&&t,u=(i.left+(l&&o?o.offsetLeft:0))/n,c=(i.top+(l&&o?o.offsetTop:0))/r,h=i.width/n,f=i.height/r;return{width:h,height:f,top:c,right:u+h,bottom:c+f,left:u,x:u,y:c}}function x2(s){var e=lf(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function D9(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&k2(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function rl(s){return s?(s.nodeName||"").toLowerCase():null}function Wa(s){return un(s).getComputedStyle(s)}function WOe(s){return["table","td","th"].indexOf(rl(s))>=0}function _l(s){return((Wu(s)?s.ownerDocument:s.document)||window.document).documentElement}function F0(s){return rl(s)==="html"?s:s.assignedSlot||s.parentNode||(k2(s)?s.host:null)||_l(s)}function Kx(s){return!jr(s)||Wa(s).position==="fixed"?null:s.offsetParent}function YOe(s){var e=/firefox/i.test(JA()),t=/Trident/i.test(JA());if(t&&jr(s)){var i=Wa(s);if(i.position==="fixed")return null}var n=F0(s);for(k2(n)&&(n=n.host);jr(n)&&["html","body"].indexOf(rl(n))<0;){var r=Wa(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function wg(s){for(var e=un(s),t=Kx(s);t&&WOe(t)&&Wa(t).position==="static";)t=Kx(t);return t&&(rl(t)==="html"||rl(t)==="body"&&Wa(t).position==="static")?e:t||YOe(s)||e}function D2(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Rd(s,e,t){return wu(s,t1(e,t))}function XOe(s,e,t){var i=Rd(s,e,t);return i>t?t:i}function L9(){return{top:0,right:0,bottom:0,left:0}}function U9(s){return Object.assign({},L9(),s)}function F9(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}var KOe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,U9(typeof e!="number"?e:F9(e,Og))};function qOe(s){var e,t=s.state,i=s.name,n=s.options,r=t.elements.arrow,a=t.modifiersData.popperOffsets,o=Vr(t.placement),l=D2(o),u=[Us,Un].indexOf(o)>=0,c=u?"height":"width";if(!(!r||!a)){var h=KOe(n.padding,t),f=x2(r),d=l==="y"?Ls:Us,_=l==="y"?Ln:Un,g=t.rects.reference[c]+t.rects.reference[l]-a[l]-t.rects.popper[c],p=a[l]-t.rects.reference[l],m=wg(r),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,E=g/2-p/2,y=h[d],T=v-f[c]-h[_],w=v/2-f[c]/2+E,C=Rd(y,w,T),N=l;t.modifiersData[i]=(e={},e[N]=C,e.centerOffset=C-w,e)}}function $Oe(s){var e=s.state,t=s.options,i=t.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||D9(e.elements.popper,n)&&(e.elements.arrow=n))}const QOe={name:"arrow",enabled:!0,phase:"main",fn:qOe,effect:$Oe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uf(s){return s.split("-")[1]}var ZOe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JOe(s,e){var t=s.x,i=s.y,n=e.devicePixelRatio||1;return{x:of(t*n)/n||0,y:of(i*n)/n||0}}function qx(s){var e,t=s.popper,i=s.popperRect,n=s.placement,r=s.variation,a=s.offsets,o=s.position,l=s.gpuAcceleration,u=s.adaptive,c=s.roundOffsets,h=s.isFixed,f=a.x,d=f===void 0?0:f,_=a.y,g=_===void 0?0:_,p=typeof c=="function"?c({x:d,y:g}):{x:d,y:g};d=p.x,g=p.y;var m=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),E=Us,y=Ls,T=window;if(u){var w=wg(t),C="clientHeight",N="clientWidth";if(w===un(t)&&(w=_l(t),Wa(w).position!=="static"&&o==="absolute"&&(C="scrollHeight",N="scrollWidth")),w=w,n===Ls||(n===Us||n===Un)&&r===rg){y=Ln;var P=h&&w===T&&T.visualViewport?T.visualViewport.height:w[C];g-=P-i.height,g*=l?1:-1}if(n===Us||(n===Ls||n===Ln)&&r===rg){E=Un;var k=h&&w===T&&T.visualViewport?T.visualViewport.width:w[N];d-=k-i.width,d*=l?1:-1}}var L=Object.assign({position:o},u&&ZOe),j=c===!0?JOe({x:d,y:g},un(t)):{x:d,y:g};if(d=j.x,g=j.y,l){var z;return Object.assign({},L,(z={},z[y]=v?"0":"",z[E]=m?"0":"",z.transform=(T.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",z))}return Object.assign({},L,(e={},e[y]=v?g+"px":"",e[E]=m?d+"px":"",e.transform="",e))}function ewe(s){var e=s.state,t=s.options,i=t.gpuAcceleration,n=i===void 0?!0:i,r=t.adaptive,a=r===void 0?!0:r,o=t.roundOffsets,l=o===void 0?!0:o,u={placement:Vr(e.placement),variation:uf(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qx(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qx(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const twe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ewe,data:{}};var Rp={passive:!0};function iwe(s){var e=s.state,t=s.instance,i=s.options,n=i.scroll,r=n===void 0?!0:n,a=i.resize,o=a===void 0?!0:a,l=un(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(c){c.addEventListener("scroll",t.update,Rp)}),o&&l.addEventListener("resize",t.update,Rp),function(){r&&u.forEach(function(c){c.removeEventListener("scroll",t.update,Rp)}),o&&l.removeEventListener("resize",t.update,Rp)}}const swe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iwe,data:{}};var nwe={left:"right",right:"left",bottom:"top",top:"bottom"};function $p(s){return s.replace(/left|right|bottom|top/g,function(e){return nwe[e]})}var rwe={start:"end",end:"start"};function $x(s){return s.replace(/start|end/g,function(e){return rwe[e]})}function L2(s){var e=un(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function U2(s){return lf(_l(s)).left+L2(s).scrollLeft}function awe(s,e){var t=un(s),i=_l(s),n=t.visualViewport,r=i.clientWidth,a=i.clientHeight,o=0,l=0;if(n){r=n.width,a=n.height;var u=x9();(u||!u&&e==="fixed")&&(o=n.offsetLeft,l=n.offsetTop)}return{width:r,height:a,x:o+U2(s),y:l}}function owe(s){var e,t=_l(s),i=L2(s),n=(e=s.ownerDocument)==null?void 0:e.body,r=wu(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=wu(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-i.scrollLeft+U2(s),l=-i.scrollTop;return Wa(n||t).direction==="rtl"&&(o+=wu(t.clientWidth,n?n.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}function F2(s){var e=Wa(s),t=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+i)}function B9(s){return["html","body","#document"].indexOf(rl(s))>=0?s.ownerDocument.body:jr(s)&&F2(s)?s:B9(F0(s))}function Sd(s,e){var t;e===void 0&&(e=[]);var i=B9(s),n=i===((t=s.ownerDocument)==null?void 0:t.body),r=un(i),a=n?[r].concat(r.visualViewport||[],F2(i)?i:[]):i,o=e.concat(a);return n?o:o.concat(Sd(F0(a)))}function eO(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function lwe(s,e){var t=lf(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function Qx(s,e,t){return e===P9?eO(awe(s,t)):Wu(e)?lwe(e,t):eO(owe(_l(s)))}function uwe(s){var e=Sd(F0(s)),t=["absolute","fixed"].indexOf(Wa(s).position)>=0,i=t&&jr(s)?wg(s):s;return Wu(i)?e.filter(function(n){return Wu(n)&&D9(n,i)&&rl(n)!=="body"}):[]}function hwe(s,e,t,i){var n=e==="clippingParents"?uwe(s):[].concat(e),r=[].concat(n,[t]),a=r[0],o=r.reduce(function(l,u){var c=Qx(s,u,i);return l.top=wu(c.top,l.top),l.right=t1(c.right,l.right),l.bottom=t1(c.bottom,l.bottom),l.left=wu(c.left,l.left),l},Qx(s,a,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function G9(s){var e=s.reference,t=s.element,i=s.placement,n=i?Vr(i):null,r=i?uf(i):null,a=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(n){case Ls:l={x:a,y:e.y-t.height};break;case Ln:l={x:a,y:e.y+e.height};break;case Un:l={x:e.x+e.width,y:o};break;case Us:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}var u=n?D2(n):null;if(u!=null){var c=u==="y"?"height":"width";switch(r){case af:l[u]=l[u]-(e[c]/2-t[c]/2);break;case rg:l[u]=l[u]+(e[c]/2-t[c]/2);break}}return l}function ag(s,e){e===void 0&&(e={});var t=e,i=t.placement,n=i===void 0?s.placement:i,r=t.strategy,a=r===void 0?s.strategy:r,o=t.boundary,l=o===void 0?kOe:o,u=t.rootBoundary,c=u===void 0?P9:u,h=t.elementContext,f=h===void 0?Uf:h,d=t.altBoundary,_=d===void 0?!1:d,g=t.padding,p=g===void 0?0:g,m=U9(typeof p!="number"?p:F9(p,Og)),v=f===Uf?xOe:Uf,E=s.rects.popper,y=s.elements[_?v:f],T=hwe(Wu(y)?y:y.contextElement||_l(s.elements.popper),l,c,a),w=lf(s.elements.reference),C=G9({reference:w,element:E,placement:n}),N=eO(Object.assign({},E,C)),P=f===Uf?N:w,k={top:T.top-P.top+m.top,bottom:P.bottom-T.bottom+m.bottom,left:T.left-P.left+m.left,right:P.right-T.right+m.right},L=s.modifiersData.offset;if(f===Uf&&L){var j=L[n];Object.keys(k).forEach(function(z){var ne=[Un,Ln].indexOf(z)>=0?1:-1,G=[Ls,Ln].indexOf(z)>=0?"y":"x";k[z]+=j[G]*ne})}return k}function cwe(s,e){e===void 0&&(e={});var t=e,i=t.placement,n=t.boundary,r=t.rootBoundary,a=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?k9:l,c=uf(i),h=c?o?Xx:Xx.filter(function(_){return uf(_)===c}):Og,f=h.filter(function(_){return u.indexOf(_)>=0});f.length===0&&(f=h);var d=f.reduce(function(_,g){return _[g]=ag(s,{placement:g,boundary:n,rootBoundary:r,padding:a})[Vr(g)],_},{});return Object.keys(d).sort(function(_,g){return d[_]-d[g]})}function fwe(s){if(Vr(s)===P2)return[];var e=$p(s);return[$x(s),e,$x(e)]}function dwe(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var n=t.mainAxis,r=n===void 0?!0:n,a=t.altAxis,o=a===void 0?!0:a,l=t.fallbackPlacements,u=t.padding,c=t.boundary,h=t.rootBoundary,f=t.altBoundary,d=t.flipVariations,_=d===void 0?!0:d,g=t.allowedAutoPlacements,p=e.options.placement,m=Vr(p),v=m===p,E=l||(v||!_?[$p(p)]:fwe(p)),y=[p].concat(E).reduce(function(me,De){return me.concat(Vr(De)===P2?cwe(e,{placement:De,boundary:c,rootBoundary:h,padding:u,flipVariations:_,allowedAutoPlacements:g}):De)},[]),T=e.rects.reference,w=e.rects.popper,C=new Map,N=!0,P=y[0],k=0;k<y.length;k++){var L=y[k],j=Vr(L),z=uf(L)===af,ne=[Ls,Ln].indexOf(j)>=0,G=ne?"width":"height",Y=ag(e,{placement:L,boundary:c,rootBoundary:h,altBoundary:f,padding:u}),K=ne?z?Un:Us:z?Ln:Ls;T[G]>w[G]&&(K=$p(K));var H=$p(K),J=[];if(r&&J.push(Y[j]<=0),o&&J.push(Y[K]<=0,Y[H]<=0),J.every(function(me){return me})){P=L,N=!1;break}C.set(L,J)}if(N)for(var B=_?3:1,$=function(De){var we=y.find(function(it){var at=C.get(it);if(at)return at.slice(0,De).every(function(bt){return bt})});if(we)return P=we,"break"},fe=B;fe>0;fe--){var xe=$(fe);if(xe==="break")break}e.placement!==P&&(e.modifiersData[i]._skip=!0,e.placement=P,e.reset=!0)}}const _we={name:"flip",enabled:!0,phase:"main",fn:dwe,requiresIfExists:["offset"],data:{_skip:!1}};function Zx(s,e,t){return t===void 0&&(t={x:0,y:0}),{top:s.top-e.height-t.y,right:s.right-e.width+t.x,bottom:s.bottom-e.height+t.y,left:s.left-e.width-t.x}}function Jx(s){return[Ls,Un,Ln,Us].some(function(e){return s[e]>=0})}function gwe(s){var e=s.state,t=s.name,i=e.rects.reference,n=e.rects.popper,r=e.modifiersData.preventOverflow,a=ag(e,{elementContext:"reference"}),o=ag(e,{altBoundary:!0}),l=Zx(a,i),u=Zx(o,n,r),c=Jx(l),h=Jx(u);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const pwe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gwe};function mwe(s,e,t){var i=Vr(s),n=[Us,Ls].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:s})):t,a=r[0],o=r[1];return a=a||0,o=(o||0)*n,[Us,Un].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}function vwe(s){var e=s.state,t=s.options,i=s.name,n=t.offset,r=n===void 0?[0,0]:n,a=k9.reduce(function(c,h){return c[h]=mwe(h,e.rects,r),c},{}),o=a[e.placement],l=o.x,u=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=a}const Ewe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vwe};function ywe(s){var e=s.state,t=s.name;e.modifiersData[t]=G9({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Twe={name:"popperOffsets",enabled:!0,phase:"read",fn:ywe,data:{}};function Iwe(s){return s==="x"?"y":"x"}function Rwe(s){var e=s.state,t=s.options,i=s.name,n=t.mainAxis,r=n===void 0?!0:n,a=t.altAxis,o=a===void 0?!1:a,l=t.boundary,u=t.rootBoundary,c=t.altBoundary,h=t.padding,f=t.tether,d=f===void 0?!0:f,_=t.tetherOffset,g=_===void 0?0:_,p=ag(e,{boundary:l,rootBoundary:u,padding:h,altBoundary:c}),m=Vr(e.placement),v=uf(e.placement),E=!v,y=D2(m),T=Iwe(y),w=e.modifiersData.popperOffsets,C=e.rects.reference,N=e.rects.popper,P=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,k=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(w){if(r){var z,ne=y==="y"?Ls:Us,G=y==="y"?Ln:Un,Y=y==="y"?"height":"width",K=w[y],H=K+p[ne],J=K-p[G],B=d?-N[Y]/2:0,$=v===af?C[Y]:N[Y],fe=v===af?-N[Y]:-C[Y],xe=e.elements.arrow,me=d&&xe?x2(xe):{width:0,height:0},De=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:L9(),we=De[ne],it=De[G],at=Rd(0,C[Y],me[Y]),bt=E?C[Y]/2-B-at-we-k.mainAxis:$-at-we-k.mainAxis,At=E?-C[Y]/2+B+at+it+k.mainAxis:fe+at+it+k.mainAxis,ct=e.elements.arrow&&wg(e.elements.arrow),Qe=ct?y==="y"?ct.clientTop||0:ct.clientLeft||0:0,gt=(z=L==null?void 0:L[y])!=null?z:0,ki=K+bt-gt-Qe,Ue=K+At-gt,st=Rd(d?t1(H,ki):H,K,d?wu(J,Ue):J);w[y]=st,j[y]=st-K}if(o){var ot,Hi=y==="x"?Ls:Us,Ge=y==="x"?Ln:Un,ke=w[T],Gs=T==="y"?"height":"width",hi=ke+p[Hi],gl=ke-p[Ge],Ju=[Ls,Us].indexOf(m)!==-1,yf=(ot=L==null?void 0:L[T])!=null?ot:0,vC=Ju?hi:ke-C[Gs]-N[Gs]-yf+k.altAxis,EC=Ju?ke+C[Gs]+N[Gs]-yf-k.altAxis:gl,yC=d&&Ju?XOe(vC,ke,EC):Rd(d?vC:hi,ke,d?EC:gl);w[T]=yC,j[T]=yC-ke}e.modifiersData[i]=j}}const Swe={name:"preventOverflow",enabled:!0,phase:"main",fn:Rwe,requiresIfExists:["offset"]};function bwe(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Awe(s){return s===un(s)||!jr(s)?L2(s):bwe(s)}function Owe(s){var e=s.getBoundingClientRect(),t=of(e.width)/s.offsetWidth||1,i=of(e.height)/s.offsetHeight||1;return t!==1||i!==1}function wwe(s,e,t){t===void 0&&(t=!1);var i=jr(e),n=jr(e)&&Owe(e),r=_l(e),a=lf(s,n,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((rl(e)!=="body"||F2(r))&&(o=Awe(e)),jr(e)?(l=lf(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=U2(r))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function Cwe(s){var e=new Map,t=new Set,i=[];s.forEach(function(r){e.set(r.name,r)});function n(r){t.add(r.name);var a=[].concat(r.requires||[],r.requiresIfExists||[]);a.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&n(l)}}),i.push(r)}return s.forEach(function(r){t.has(r.name)||n(r)}),i}function Mwe(s){var e=Cwe(s);return HOe.reduce(function(t,i){return t.concat(e.filter(function(n){return n.phase===i}))},[])}function Nwe(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function Pwe(s){var e=s.reduce(function(t,i){var n=t[i.name];return t[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var eD={placement:"bottom",modifiers:[],strategy:"absolute"};function tD(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function kwe(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,n=e.defaultOptions,r=n===void 0?eD:n;return function(o,l,u){u===void 0&&(u=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},eD,r),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},h=[],f=!1,d={state:c,setOptions:function(m){var v=typeof m=="function"?m(c.options):m;g(),c.options=Object.assign({},r,c.options,v),c.scrollParents={reference:Wu(o)?Sd(o):o.contextElement?Sd(o.contextElement):[],popper:Sd(l)};var E=Mwe(Pwe([].concat(i,c.options.modifiers)));return c.orderedModifiers=E.filter(function(y){return y.enabled}),_(),d.update()},forceUpdate:function(){if(!f){var m=c.elements,v=m.reference,E=m.popper;if(tD(v,E)){c.rects={reference:wwe(v,wg(E),c.options.strategy==="fixed"),popper:x2(E)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(k){return c.modifiersData[k.name]=Object.assign({},k.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var T=c.orderedModifiers[y],w=T.fn,C=T.options,N=C===void 0?{}:C,P=T.name;typeof w=="function"&&(c=w({state:c,options:N,name:P,instance:d})||c)}}}},update:Nwe(function(){return new Promise(function(p){d.forceUpdate(),p(c)})}),destroy:function(){g(),f=!0}};if(!tD(o,l))return d;d.setOptions(u).then(function(p){!f&&u.onFirstUpdate&&u.onFirstUpdate(p)});function _(){c.orderedModifiers.forEach(function(p){var m=p.name,v=p.options,E=v===void 0?{}:v,y=p.effect;if(typeof y=="function"){var T=y({state:c,name:m,instance:d,options:E}),w=function(){};h.push(T||w)}})}function g(){h.forEach(function(p){return p()}),h=[]}return d}}const xwe=kwe({defaultModifiers:[pwe,Twe,twe,swe,Ewe,_we,Swe,QOe]}),Dwe=["enabled","placement","strategy","modifiers"];function Lwe(s,e){if(s==null)return{};var t={};for(var i in s)if({}.hasOwnProperty.call(s,i)){if(e.indexOf(i)>=0)continue;t[i]=s[i]}return t}const Uwe={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Fwe={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:s})=>()=>{const{reference:e,popper:t}=s.elements;if("removeAttribute"in e){const i=(e.getAttribute("aria-describedby")||"").split(",").filter(n=>n.trim()!==t.id);i.length?e.setAttribute("aria-describedby",i.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:s})=>{var e;const{popper:t,reference:i}=s.elements,n=(e=t.getAttribute("role"))==null?void 0:e.toLowerCase();if(t.id&&n==="tooltip"&&"setAttribute"in i){const r=i.getAttribute("aria-describedby");if(r&&r.split(",").indexOf(t.id)!==-1)return;i.setAttribute("aria-describedby",r?`${r},${t.id}`:t.id)}}},Bwe=[];function Gwe(s,e,t={}){let{enabled:i=!0,placement:n="bottom",strategy:r="absolute",modifiers:a=Bwe}=t,o=Lwe(t,Dwe);const l=D.useRef(a),u=D.useRef(),c=D.useCallback(()=>{var p;(p=u.current)==null||p.update()},[]),h=D.useCallback(()=>{var p;(p=u.current)==null||p.forceUpdate()},[]),[f,d]=POe(D.useState({placement:n,update:c,forceUpdate:h,attributes:{},styles:{popper:{},arrow:{}}})),_=D.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:p})=>{const m={},v={};Object.keys(p.elements).forEach(E=>{m[E]=p.styles[E],v[E]=p.attributes[E]}),d({state:p,styles:m,attributes:v,update:c,forceUpdate:h,placement:p.placement})}}),[c,h,d]),g=D.useMemo(()=>(Id(l.current,a)||(l.current=a),l.current),[a]);return D.useEffect(()=>{!u.current||!i||u.current.setOptions({placement:n,strategy:r,modifiers:[...g,_,Uwe]})},[r,n,_,i,g]),D.useEffect(()=>{if(!(!i||s==null||e==null))return u.current=xwe(s,e,Object.assign({},o,{placement:n,strategy:r,modifiers:[...g,Fwe,_]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,d(p=>Object.assign({},p,{attributes:{},styles:{popper:{}}})))}},[i,s,e]),f}function tO(s,e){if(s.contains)return s.contains(e);if(s.compareDocumentPosition)return s===e||!!(s.compareDocumentPosition(e)&16)}var Vwe=function(){},jwe=Vwe;const zwe=nr(jwe),iD=()=>{};function Hwe(s){return s.button===0}function Wwe(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}const Qp=s=>s&&("current"in s?s.current:s),sD={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ywe(s,e=iD,{disabled:t,clickTrigger:i="click"}={}){const n=D.useRef(!1),r=D.useRef(!1),a=D.useCallback(u=>{const c=Qp(s);zwe(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),n.current=!c||Wwe(u)||!Hwe(u)||!!tO(c,u.target)||r.current,r.current=!1},[s]),o=ng(u=>{const c=Qp(s);c&&tO(c,u.target)?r.current=!0:r.current=!1}),l=ng(u=>{n.current||e(u)});D.useEffect(()=>{var u,c;if(t||s==null)return;const h=U0(Qp(s)),f=h.defaultView||window;let d=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,_=null;sD[i]&&(_=vu(h,sD[i],o,!0));const g=vu(h,i,a,!0),p=vu(h,i,v=>{if(v===d){d=void 0;return}l(v)});let m=[];return"ontouchstart"in h.documentElement&&(m=[].slice.call(h.body.children).map(v=>vu(v,"mousemove",iD))),()=>{_==null||_(),g(),p(),m.forEach(v=>v())}},[s,t,i,a,o,l])}function Xwe(s){const e={};return Array.isArray(s)?(s==null||s.forEach(t=>{e[t.name]=t}),e):s||e}function Kwe(s={}){return Array.isArray(s)?s:Object.keys(s).map(e=>(s[e].name=e,s[e]))}function qwe({enabled:s,enableEvents:e,placement:t,flip:i,offset:n,fixed:r,containerPadding:a,arrowElement:o,popperConfig:l={}}){var u,c,h,f;const d=Xwe(l.modifiers);return Object.assign({},l,{placement:t,enabled:s,strategy:r?"fixed":l.strategy,modifiers:Kwe(Object.assign({},d,{eventListeners:{enabled:e,options:(u=d.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},d.preventOverflow,{options:Object.assign({padding:a},(c=d.preventOverflow)==null?void 0:c.options)}),offset:{options:Object.assign({offset:n},(h=d.offset)==null?void 0:h.options)},arrow:Object.assign({},d.arrow,{enabled:!!o,options:Object.assign({},(f=d.arrow)==null?void 0:f.options,{element:o})}),flip:Object.assign({enabled:!!i},d.flip)}))})}const V9=D.createContext(M2?window:void 0);V9.Provider;function $we(){return D.useContext(V9)}const Qwe=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Zwe=typeof document<"u",Jwe=Zwe||Qwe?D.useLayoutEffect:D.useEffect,nD=s=>!s||typeof s=="function"?s:e=>{s.current=e};function e2e(s,e){const t=nD(s),i=nD(e);return n=>{t&&t(n),i&&i(n)}}function B0(s,e){return D.useMemo(()=>e2e(s,e),[s,e])}const UT=(s,e)=>M2?s==null?(e||U0()).body:(typeof s=="function"&&(s=s()),s&&"current"in s&&(s=s.current),s&&("nodeType"in s||s.getBoundingClientRect)?s:null):null;function rD(s,e){const t=$we(),[i,n]=D.useState(()=>UT(s,t==null?void 0:t.document));if(!i){const r=UT(s);r&&n(r)}return D.useEffect(()=>{},[e,i]),D.useEffect(()=>{const r=UT(s);r!==i&&n(r)},[s,i]),i}function t2e({children:s,in:e,onExited:t,mountOnEnter:i,unmountOnExit:n}){const r=D.useRef(null),a=D.useRef(e),o=ng(t);D.useEffect(()=>{e?a.current=!0:o(r.current)},[e,o]);const l=B0(r,Ag(s)),u=D.cloneElement(s,{ref:l});return e?u:n||!a.current&&i?null:u}const i2e=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function s2e(s,e){if(s==null)return{};var t={};for(var i in s)if({}.hasOwnProperty.call(s,i)){if(e.indexOf(i)>=0)continue;t[i]=s[i]}return t}function n2e(s){let{onEnter:e,onEntering:t,onEntered:i,onExit:n,onExiting:r,onExited:a,addEndListener:o,children:l}=s,u=s2e(s,i2e);const c=D.useRef(null),h=B0(c,Ag(l)),f=y=>T=>{y&&c.current&&y(c.current,T)},d=D.useCallback(f(e),[e]),_=D.useCallback(f(t),[t]),g=D.useCallback(f(i),[i]),p=D.useCallback(f(n),[n]),m=D.useCallback(f(r),[r]),v=D.useCallback(f(a),[a]),E=D.useCallback(f(o),[o]);return Object.assign({},u,{nodeRef:c},e&&{onEnter:d},t&&{onEntering:_},i&&{onEntered:g},n&&{onExit:p},r&&{onExiting:m},a&&{onExited:v},o&&{addEndListener:E},{children:typeof l=="function"?(y,T)=>l(y,Object.assign({},T,{ref:h})):D.cloneElement(l,{ref:h})})}const r2e=["component"];function a2e(s,e){if(s==null)return{};var t={};for(var i in s)if({}.hasOwnProperty.call(s,i)){if(e.indexOf(i)>=0)continue;t[i]=s[i]}return t}const o2e=D.forwardRef((s,e)=>{let{component:t}=s,i=a2e(s,r2e);const n=n2e(i);return vt.jsx(t,Object.assign({ref:e},n))});function l2e({in:s,onTransition:e}){const t=D.useRef(null),i=D.useRef(!0),n=ng(e);return Hx(()=>{if(!t.current)return;let r=!1;return n({in:s,element:t.current,initial:i.current,isStale:()=>r}),()=>{r=!0}},[s,n]),Hx(()=>(i.current=!1,()=>{i.current=!0}),[]),t}function u2e({children:s,in:e,onExited:t,onEntered:i,transition:n}){const[r,a]=D.useState(!e);e&&r&&a(!1);const o=l2e({in:!!e,onTransition:u=>{const c=()=>{u.isStale()||(u.in?i==null||i(u.element,u.initial):(a(!0),t==null||t(u.element)))};Promise.resolve(n(u)).then(c,h=>{throw u.in||a(!0),h})}}),l=B0(o,Ag(s));return r&&!e?null:D.cloneElement(s,{ref:l})}function h2e(s,e,t){return s?vt.jsx(o2e,Object.assign({},t,{component:s})):e?vt.jsx(u2e,Object.assign({},t,{transition:e})):vt.jsx(t2e,Object.assign({},t))}function aD(s,e){return s.classList?!!e&&s.classList.contains(e):(" "+(s.className.baseVal||s.className)+" ").indexOf(" "+e+" ")!==-1}const c2e=()=>{};function f2e(s,e,{disabled:t,clickTrigger:i}={}){const n=e||c2e;Ywe(s,n,{disabled:t,clickTrigger:i});const r=ng(a=>{nOe(a)&&n(a)});D.useEffect(()=>{if(t||s==null)return;const a=U0(Qp(s));let o=(a.defaultView||window).event;const l=vu(a,"keyup",u=>{if(u===o){o=void 0;return}r(u)});return()=>{l()}},[s,t,r])}const j9=D.forwardRef((s,e)=>{const{flip:t,offset:i,placement:n,containerPadding:r,popperConfig:a={},transition:o,runTransition:l}=s,[u,c]=zx(),[h,f]=zx(),d=B0(c,e),_=rD(s.container),g=rD(s.target),[p,m]=D.useState(!s.show),v=Gwe(g,u,qwe({placement:n,enableEvents:!!s.show,containerPadding:r||5,flip:t,offset:i,arrowElement:h,popperConfig:a}));s.show&&p&&m(!1);const E=(...L)=>{m(!0),s.onExited&&s.onExited(...L)},y=s.show||!p;if(f2e(u,s.onHide,{disabled:!s.rootClose||s.rootCloseDisabled,clickTrigger:s.rootCloseEvent}),!y)return null;const{onExit:T,onExiting:w,onEnter:C,onEntering:N,onEntered:P}=s;let k=s.children(Object.assign({},v.attributes.popper,{style:v.styles.popper,ref:d}),{popper:v,placement:n,show:!!s.show,arrowProps:Object.assign({},v.attributes.arrow,{style:v.styles.arrow,ref:f})});return k=h2e(o,l,{in:!!s.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:k,onExit:T,onExiting:w,onExited:E,onEnter:C,onEntering:N,onEntered:P}),_?Sh.createPortal(k,_):null});j9.displayName="Overlay";const z9=D.forwardRef(({className:s,bsPrefix:e,as:t="div",...i},n)=>(e=Hu(e,"popover-header"),vt.jsx(t,{ref:n,className:Zu(s,e),...i})));z9.displayName="PopoverHeader";const B2=D.forwardRef(({className:s,bsPrefix:e,as:t="div",...i},n)=>(e=Hu(e,"popover-body"),vt.jsx(t,{ref:n,className:Zu(s,e),...i})));B2.displayName="PopoverBody";function H9(s,e){let t=s;return s==="left"?t=e?"end":"start":s==="right"&&(t=e?"start":"end"),t}function W9(s="absolute"){return{position:s,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const d2e=D.forwardRef(({bsPrefix:s,placement:e="right",className:t,style:i,children:n,body:r,arrowProps:a,hasDoneInitialMeasure:o,popper:l,show:u,...c},h)=>{const f=Hu(s,"popover"),d=S9(),[_]=(e==null?void 0:e.split("-"))||[],g=H9(_,d);let p=i;return u&&!o&&(p={...i,...W9(l==null?void 0:l.strategy)}),vt.jsxs("div",{ref:h,role:"tooltip",style:p,"x-placement":_,className:Zu(t,f,_&&`bs-popover-${g}`),...c,children:[vt.jsx("div",{className:"popover-arrow",...a}),r?vt.jsx(B2,{children:n}):n]})}),_2e=Object.assign(d2e,{Header:z9,Body:B2,POPPER_OFFSET:[0,8]}),Y9=D.forwardRef(({bsPrefix:s,placement:e="right",className:t,style:i,children:n,arrowProps:r,hasDoneInitialMeasure:a,popper:o,show:l,...u},c)=>{s=Hu(s,"tooltip");const h=S9(),[f]=(e==null?void 0:e.split("-"))||[],d=H9(f,h);let _=i;return l&&!a&&(_={...i,...W9(o==null?void 0:o.strategy)}),vt.jsxs("div",{ref:c,style:_,role:"tooltip","x-placement":f,className:Zu(t,s,`bs-tooltip-${d}`),...u,children:[vt.jsx("div",{className:"tooltip-arrow",...r}),vt.jsx("div",{className:`${s}-inner`,children:n})]})});Y9.displayName="Tooltip";const g2e=Object.assign(Y9,{TOOLTIP_OFFSET:[0,6]});function p2e(s){const e=D.useRef(null),t=Hu(void 0,"popover"),i=Hu(void 0,"tooltip"),n=D.useMemo(()=>({name:"offset",options:{offset:()=>{if(s)return s;if(e.current){if(aD(e.current,t))return _2e.POPPER_OFFSET;if(aD(e.current,i))return g2e.TOOLTIP_OFFSET}return[0,0]}}}),[s,t,i]);return[e,[n]]}function m2e(s,e){const{ref:t}=s,{ref:i}=e;s.ref=t.__wrapped||(t.__wrapped=n=>t(e1(n))),e.ref=i.__wrapped||(i.__wrapped=n=>i(e1(n)))}const X9=D.forwardRef(({children:s,transition:e=QA,popperConfig:t={},rootClose:i=!1,placement:n="top",show:r=!1,...a},o)=>{const l=D.useRef({}),[u,c]=D.useState(null),[h,f]=p2e(a.offset),d=N2(o,h),_=e===!0?QA:e||void 0,g=mOe(p=>{c(p),t==null||t.onFirstUpdate==null||t.onFirstUpdate(p)});return Jwe(()=>{u&&a.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,a.target]),D.useEffect(()=>{r||c(null)},[r]),vt.jsx(j9,{...a,ref:d,popperConfig:{...t,modifiers:f.concat(t.modifiers||[]),onFirstUpdate:g},transition:_,rootClose:i,placement:n,show:r,children:(p,{arrowProps:m,popper:v,show:E})=>{var y;m2e(p,m);const T=v==null?void 0:v.placement,w=Object.assign(l.current,{state:v==null?void 0:v.state,scheduleUpdate:v==null?void 0:v.update,placement:T,outOfBoundaries:(v==null||(y=v.state)==null||(y=y.modifiersData.hide)==null?void 0:y.isReferenceHidden)||!1,strategy:t.strategy}),C=!!u;return typeof s=="function"?s({...p,placement:T,show:E,...!e&&E&&{className:"show"},popper:w,arrowProps:m,hasDoneInitialMeasure:C}):D.cloneElement(s,{...p,placement:T,arrowProps:m,popper:w,hasDoneInitialMeasure:C,className:Zu(s.props.className,!e&&E&&"show"),style:{...s.props.style,...p.style}})}})});X9.displayName="Overlay";function v2e(s){return s&&typeof s=="object"?s:{show:s,hide:s}}function oD(s,e,t){const[i]=e,n=i.currentTarget,r=i.relatedTarget||i.nativeEvent[t];(!r||r!==n)&&!tO(n,r)&&s(...e)}iOe.oneOf(["click","hover","focus"]);const iNe=({trigger:s=["hover","focus"],overlay:e,children:t,popperConfig:i={},show:n,defaultShow:r=!1,onToggle:a,delay:o,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const h=D.useRef(null),f=N2(h,Ag(t)),d=NOe(),_=D.useRef(""),[g,p]=VAe(n,r,a),m=v2e(o),{onFocus:v,onBlur:E,onClick:y}=typeof t!="function"?D.Children.only(t).props:{},T=G=>{f(e1(G))},w=D.useCallback(()=>{if(d.clear(),_.current="show",!m.show){p(!0);return}d.set(()=>{_.current==="show"&&p(!0)},m.show)},[m.show,p,d]),C=D.useCallback(()=>{if(d.clear(),_.current="hide",!m.hide){p(!1);return}d.set(()=>{_.current==="hide"&&p(!1)},m.hide)},[m.hide,p,d]),N=D.useCallback((...G)=>{w(),v==null||v(...G)},[w,v]),P=D.useCallback((...G)=>{C(),E==null||E(...G)},[C,E]),k=D.useCallback((...G)=>{p(!g),y==null||y(...G)},[y,p,g]),L=D.useCallback((...G)=>{oD(w,G,"fromElement")},[w]),j=D.useCallback((...G)=>{oD(C,G,"toElement")},[C]),z=s==null?[]:[].concat(s),ne={ref:T};return z.indexOf("click")!==-1&&(ne.onClick=k),z.indexOf("focus")!==-1&&(ne.onFocus=N,ne.onBlur=P),z.indexOf("hover")!==-1&&(ne.onMouseOver=L,ne.onMouseOut=j),vt.jsxs(vt.Fragment,{children:[typeof t=="function"?t(ne):D.cloneElement(t,ne),vt.jsx(X9,{...c,show:g,onHide:C,flip:u,placement:l,popperConfig:i,target:h.current,children:e})]})};function sNe(s){return be({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M6,12.4 L18,12.4 M12.6,7 L18,12.4 L12.6,17.8"},child:[]}]})(s)}function nNe(s){return be({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.52,3.43A9.09,9.09,0,0,0,5.7,5.55V2.35H4.07v6.5h6.5V7.21H6.3a7.46,7.46,0,1,1-1.47,8.65l-1.46.73A9.11,9.11,0,1,0,11.52,3.43Z"},child:[]}]})(s)}function rNe(s){return be({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.48,3.43A9.09,9.09,0,0,1,18.3,5.55V2.35h1.64v6.5h-6.5V7.21H17.7a7.46,7.46,0,1,0,1.47,8.65l1.46.73A9.11,9.11,0,1,1,12.48,3.43Z"},child:[]}]})(s)}const E2e=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],y2e={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["</3"],keywords:["sad","sorry","break","heartbreak"],skins:[{unified:"1f494",native:"💔"}],version:1},heart_on_fire:{id:"heart_on_fire",name:"Heart on Fire",keywords:["passionate","enthusiastic"],skins:[{unified:"2764-fe0f-200d-1f525",native:"❤️‍🔥"}],version:13.1},mending_heart:{id:"mending_heart",name:"Mending Heart",keywords:["broken","bandage","wounded"],skins:[{unified:"2764-fe0f-200d-1fa79",native:"❤️‍🩹"}],version:13.1},heart:{id:"heart",name:"Red Heart",emoticons:["<3"],keywords:["love","like","valentines"],skins:[{unified:"2764-fe0f",native:"❤️"}],version:1},pink_heart:{id:"pink_heart",name:"Pink Heart",keywords:["valentines"],skins:[{unified:"1fa77",native:"🩷"}],version:15},orange_heart:{id:"orange_heart",name:"Orange Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f9e1",native:"🧡"}],version:5},yellow_heart:{id:"yellow_heart",name:"Yellow Heart",emoticons:["<3"],keywords:["love","like","affection","valentines"],skins:[{unified:"1f49b",native:"💛"}],version:1},green_heart:{id:"green_heart",name:"Green Heart",emoticons:["<3"],keywords:["love","like","affection","valentines"],skins:[{unified:"1f49a",native:"💚"}],version:1},blue_heart:{id:"blue_heart",name:"Blue Heart",emoticons:["<3"],keywords:["love","like","affection","valentines"],skins:[{unified:"1f499",native:"💙"}],version:1},light_blue_heart:{id:"light_blue_heart",name:"Light Blue Heart",keywords:["ice","baby"],skins:[{unified:"1fa75",native:"🩵"}],version:15},purple_heart:{id:"purple_heart",name:"Purple Heart",emoticons:["<3"],keywords:["love","like","affection","valentines"],skins:[{unified:"1f49c",native:"💜"}],version:1},brown_heart:{id:"brown_heart",name:"Brown Heart",keywords:["coffee"],skins:[{unified:"1f90e",native:"🤎"}],version:12},black_heart:{id:"black_heart",name:"Black Heart",keywords:["evil"],skins:[{unified:"1f5a4",native:"🖤"}],version:3},grey_heart:{id:"grey_heart",name:"Grey Heart",keywords:["silver","monochrome"],skins:[{unified:"1fa76",native:"🩶"}],version:15},white_heart:{id:"white_heart",name:"White Heart",keywords:["pure"],skins:[{unified:"1f90d",native:"🤍"}],version:12},kiss:{id:"kiss",name:"Kiss Mark",keywords:["face","lips","love","like","affection","valentines"],skins:[{unified:"1f48b",native:"💋"}],version:1},anger:{id:"anger",name:"Anger Symbol",keywords:["angry","mad"],skins:[{unified:"1f4a2",native:"💢"}],version:1},boom:{id:"boom",name:"Collision",keywords:["boom","bomb","explode","explosion","blown"],skins:[{unified:"1f4a5",native:"💥"}],version:1},dizzy:{id:"dizzy",name:"Dizzy",keywords:["star","sparkle","shoot","magic"],skins:[{unified:"1f4ab",native:"💫"}],version:1},sweat_drops:{id:"sweat_drops",name:"Sweat Droplets",keywords:["drops","water","drip","oops"],skins:[{unified:"1f4a6",native:"💦"}],version:1},dash:{id:"dash",name:"Dash Symbol",keywords:["dashing","away","wind","air","fast","shoo","fart","smoke","puff"],skins:[{unified:"1f4a8",native:"💨"}],version:1},hole:{id:"hole",name:"Hole",keywords:["embarrassing"],skins:[{unified:"1f573-fe0f",native:"🕳️"}],version:1},speech_balloon:{id:"speech_balloon",name:"Speech Balloon",keywords:["bubble","words","message","talk","chatting"],skins:[{unified:"1f4ac",native:"💬"}],version:1},"eye-in-speech-bubble":{id:"eye-in-speech-bubble",name:"Eye in Speech Bubble",keywords:["in-speech-bubble","info"],skins:[{unified:"1f441-fe0f-200d-1f5e8-fe0f",native:"👁️‍🗨️"}],version:2},left_speech_bubble:{id:"left_speech_bubble",name:"Left Speech Bubble",keywords:["words","message","talk","chatting"],skins:[{unified:"1f5e8-fe0f",native:"🗨️"}],version:2},right_anger_bubble:{id:"right_anger_bubble",name:"Right Anger Bubble",keywords:["caption","speech","thinking","mad"],skins:[{unified:"1f5ef-fe0f",native:"🗯️"}],version:1},thought_balloon:{id:"thought_balloon",name:"Thought Balloon",keywords:["bubble","cloud","speech","thinking","dream"],skins:[{unified:"1f4ad",native:"💭"}],version:1},zzz:{id:"zzz",name:"Zzz",keywords:["sleepy","tired","dream"],skins:[{unified:"1f4a4",native:"💤"}],version:1},wave:{id:"wave",name:"Waving Hand",keywords:["wave","hands","gesture","goodbye","solong","farewell","hello","hi","palm"],skins:[{unified:"1f44b",native:"👋"},{unified:"1f44b-1f3fb",native:"👋🏻"},{unified:"1f44b-1f3fc",native:"👋🏼"},{unified:"1f44b-1f3fd",native:"👋🏽"},{unified:"1f44b-1f3fe",native:"👋🏾"},{unified:"1f44b-1f3ff",native:"👋🏿"}],version:1},raised_back_of_hand:{id:"raised_back_of_hand",name:"Raised Back of Hand",keywords:["fingers","backhand"],skins:[{unified:"1f91a",native:"🤚"},{unified:"1f91a-1f3fb",native:"🤚🏻"},{unified:"1f91a-1f3fc",native:"🤚🏼"},{unified:"1f91a-1f3fd",native:"🤚🏽"},{unified:"1f91a-1f3fe",native:"🤚🏾"},{unified:"1f91a-1f3ff",native:"🤚🏿"}],version:3},raised_hand_with_fingers_splayed:{id:"raised_hand_with_fingers_splayed",name:"Hand with Fingers Splayed",keywords:["raised","palm"],skins:[{unified:"1f590-fe0f",native:"🖐️"},{unified:"1f590-1f3fb",native:"🖐🏻"},{unified:"1f590-1f3fc",native:"🖐🏼"},{unified:"1f590-1f3fd",native:"🖐🏽"},{unified:"1f590-1f3fe",native:"🖐🏾"},{unified:"1f590-1f3ff",native:"🖐🏿"}],version:1},hand:{id:"hand",name:"Raised Hand",keywords:["fingers","stop","highfive","high","five","palm","ban"],skins:[{unified:"270b",native:"✋"},{unified:"270b-1f3fb",native:"✋🏻"},{unified:"270b-1f3fc",native:"✋🏼"},{unified:"270b-1f3fd",native:"✋🏽"},{unified:"270b-1f3fe",native:"✋🏾"},{unified:"270b-1f3ff",native:"✋🏿"}],version:1},"spock-hand":{id:"spock-hand",name:"Vulcan Salute",keywords:["spock","hand","fingers","star","trek"],skins:[{unified:"1f596",native:"🖖"},{unified:"1f596-1f3fb",native:"🖖🏻"},{unified:"1f596-1f3fc",native:"🖖🏼"},{unified:"1f596-1f3fd",native:"🖖🏽"},{unified:"1f596-1f3fe",native:"🖖🏾"},{unified:"1f596-1f3ff",native:"🖖🏿"}],version:1},rightwards_hand:{id:"rightwards_hand",name:"Rightwards Hand",keywords:["palm","offer"],skins:[{unified:"1faf1",native:"🫱"},{unified:"1faf1-1f3fb",native:"🫱🏻"},{unified:"1faf1-1f3fc",native:"🫱🏼"},{unified:"1faf1-1f3fd",native:"🫱🏽"},{unified:"1faf1-1f3fe",native:"🫱🏾"},{unified:"1faf1-1f3ff",native:"🫱🏿"}],version:14},leftwards_hand:{id:"leftwards_hand",name:"Leftwards Hand",keywords:["palm","offer"],skins:[{unified:"1faf2",native:"🫲"},{unified:"1faf2-1f3fb",native:"🫲🏻"},{unified:"1faf2-1f3fc",native:"🫲🏼"},{unified:"1faf2-1f3fd",native:"🫲🏽"},{unified:"1faf2-1f3fe",native:"🫲🏾"},{unified:"1faf2-1f3ff",native:"🫲🏿"}],version:14},palm_down_hand:{id:"palm_down_hand",name:"Palm Down Hand",keywords:["drop"],skins:[{unified:"1faf3",native:"🫳"},{unified:"1faf3-1f3fb",native:"🫳🏻"},{unified:"1faf3-1f3fc",native:"🫳🏼"},{unified:"1faf3-1f3fd",native:"🫳🏽"},{unified:"1faf3-1f3fe",native:"🫳🏾"},{unified:"1faf3-1f3ff",native:"🫳🏿"}],version:14},palm_up_hand:{id:"palm_up_hand",name:"Palm Up Hand",keywords:["lift","offer","demand"],skins:[{unified:"1faf4",native:"🫴"},{unified:"1faf4-1f3fb",native:"🫴🏻"},{unified:"1faf4-1f3fc",native:"🫴🏼"},{unified:"1faf4-1f3fd",native:"🫴🏽"},{unified:"1faf4-1f3fe",native:"🫴🏾"},{unified:"1faf4-1f3ff",native:"🫴🏿"}],version:14},leftwards_pushing_hand:{id:"leftwards_pushing_hand",name:"Leftwards Pushing Hand",keywords:["highfive","high","five","pressing","stop"],skins:[{unified:"1faf7",native:"🫷"},{unified:"1faf7-1f3fb",native:"🫷🏻"},{unified:"1faf7-1f3fc",native:"🫷🏼"},{unified:"1faf7-1f3fd",native:"🫷🏽"},{unified:"1faf7-1f3fe",native:"🫷🏾"},{unified:"1faf7-1f3ff",native:"🫷🏿"}],version:15},rightwards_pushing_hand:{id:"rightwards_pushing_hand",name:"Rightwards Pushing Hand",keywords:["highfive","high","five","pressing","stop"],skins:[{unified:"1faf8",native:"🫸"},{unified:"1faf8-1f3fb",native:"🫸🏻"},{unified:"1faf8-1f3fc",native:"🫸🏼"},{unified:"1faf8-1f3fd",native:"🫸🏽"},{unified:"1faf8-1f3fe",native:"🫸🏾"},{unified:"1faf8-1f3ff",native:"🫸🏿"}],version:15},ok_hand:{id:"ok_hand",name:"Ok Hand",keywords:["fingers","limbs","perfect","okay"],skins:[{unified:"1f44c",native:"👌"},{unified:"1f44c-1f3fb",native:"👌🏻"},{unified:"1f44c-1f3fc",native:"👌🏼"},{unified:"1f44c-1f3fd",native:"👌🏽"},{unified:"1f44c-1f3fe",native:"👌🏾"},{unified:"1f44c-1f3ff",native:"👌🏿"}],version:1},pinched_fingers:{id:"pinched_fingers",name:"Pinched Fingers",keywords:["size","tiny","small"],skins:[{unified:"1f90c",native:"🤌"},{unified:"1f90c-1f3fb",native:"🤌🏻"},{unified:"1f90c-1f3fc",native:"🤌🏼"},{unified:"1f90c-1f3fd",native:"🤌🏽"},{unified:"1f90c-1f3fe",native:"🤌🏾"},{unified:"1f90c-1f3ff",native:"🤌🏿"}],version:13},pinching_hand:{id:"pinching_hand",name:"Pinching Hand",keywords:["tiny","small","size"],skins:[{unified:"1f90f",native:"🤏"},{unified:"1f90f-1f3fb",native:"🤏🏻"},{unified:"1f90f-1f3fc",native:"🤏🏼"},{unified:"1f90f-1f3fd",native:"🤏🏽"},{unified:"1f90f-1f3fe",native:"🤏🏾"},{unified:"1f90f-1f3ff",native:"🤏🏿"}],version:12},v:{id:"v",name:"Victory Hand",keywords:["v","fingers","ohyeah","peace","two"],skins:[{unified:"270c-fe0f",native:"✌️"},{unified:"270c-1f3fb",native:"✌🏻"},{unified:"270c-1f3fc",native:"✌🏼"},{unified:"270c-1f3fd",native:"✌🏽"},{unified:"270c-1f3fe",native:"✌🏾"},{unified:"270c-1f3ff",native:"✌🏿"}],version:1},crossed_fingers:{id:"crossed_fingers",name:"Crossed Fingers",keywords:["hand","with","index","and","middle","good","lucky"],skins:[{unified:"1f91e",native:"🤞"},{unified:"1f91e-1f3fb",native:"🤞🏻"},{unified:"1f91e-1f3fc",native:"🤞🏼"},{unified:"1f91e-1f3fd",native:"🤞🏽"},{unified:"1f91e-1f3fe",native:"🤞🏾"},{unified:"1f91e-1f3ff",native:"🤞🏿"}],version:3},hand_with_index_finger_and_thumb_crossed:{id:"hand_with_index_finger_and_thumb_crossed",name:"Hand with Index Finger and Thumb Crossed",keywords:["heart","love","money","expensive"],skins:[{unified:"1faf0",native:"🫰"},{unified:"1faf0-1f3fb",native:"🫰🏻"},{unified:"1faf0-1f3fc",native:"🫰🏼"},{unified:"1faf0-1f3fd",native:"🫰🏽"},{unified:"1faf0-1f3fe",native:"🫰🏾"},{unified:"1faf0-1f3ff",native:"🫰🏿"}],version:14},i_love_you_hand_sign:{id:"i_love_you_hand_sign",name:"Love-You Gesture",keywords:["i","love","you","hand","sign","fingers"],skins:[{unified:"1f91f",native:"🤟"},{unified:"1f91f-1f3fb",native:"🤟🏻"},{unified:"1f91f-1f3fc",native:"🤟🏼"},{unified:"1f91f-1f3fd",native:"🤟🏽"},{unified:"1f91f-1f3fe",native:"🤟🏾"},{unified:"1f91f-1f3ff",native:"🤟🏿"}],version:5},the_horns:{id:"the_horns",name:"Sign of the Horns",keywords:["hand","fingers","evil","eye","rock","on"],skins:[{unified:"1f918",native:"🤘"},{unified:"1f918-1f3fb",native:"🤘🏻"},{unified:"1f918-1f3fc",native:"🤘🏼"},{unified:"1f918-1f3fd",native:"🤘🏽"},{unified:"1f918-1f3fe",native:"🤘🏾"},{unified:"1f918-1f3ff",native:"🤘🏿"}],version:1},call_me_hand:{id:"call_me_hand",name:"Call Me Hand",keywords:["hands","gesture","shaka"],skins:[{unified:"1f919",native:"🤙"},{unified:"1f919-1f3fb",native:"🤙🏻"},{unified:"1f919-1f3fc",native:"🤙🏼"},{unified:"1f919-1f3fd",native:"🤙🏽"},{unified:"1f919-1f3fe",native:"🤙🏾"},{unified:"1f919-1f3ff",native:"🤙🏿"}],version:3},point_left:{id:"point_left",name:"Backhand Index Pointing Left",keywords:["point","direction","fingers","hand"],skins:[{unified:"1f448",native:"👈"},{unified:"1f448-1f3fb",native:"👈🏻"},{unified:"1f448-1f3fc",native:"👈🏼"},{unified:"1f448-1f3fd",native:"👈🏽"},{unified:"1f448-1f3fe",native:"👈🏾"},{unified:"1f448-1f3ff",native:"👈🏿"}],version:1},point_right:{id:"point_right",name:"Backhand Index Pointing Right",keywords:["point","fingers","hand","direction"],skins:[{unified:"1f449",native:"👉"},{unified:"1f449-1f3fb",native:"👉🏻"},{unified:"1f449-1f3fc",native:"👉🏼"},{unified:"1f449-1f3fd",native:"👉🏽"},{unified:"1f449-1f3fe",native:"👉🏾"},{unified:"1f449-1f3ff",native:"👉🏿"}],version:1},point_up_2:{id:"point_up_2",name:"Backhand Index Pointing Up",keywords:["point","2","fingers","hand","direction"],skins:[{unified:"1f446",native:"👆"},{unified:"1f446-1f3fb",native:"👆🏻"},{unified:"1f446-1f3fc",native:"👆🏼"},{unified:"1f446-1f3fd",native:"👆🏽"},{unified:"1f446-1f3fe",native:"👆🏾"},{unified:"1f446-1f3ff",native:"👆🏿"}],version:1},middle_finger:{id:"middle_finger",name:"Middle Finger",keywords:["reversed","hand","with","extended","fingers","rude","flipping"],skins:[{unified:"1f595",native:"🖕"},{unified:"1f595-1f3fb",native:"🖕🏻"},{unified:"1f595-1f3fc",native:"🖕🏼"},{unified:"1f595-1f3fd",native:"🖕🏽"},{unified:"1f595-1f3fe",native:"🖕🏾"},{unified:"1f595-1f3ff",native:"🖕🏿"}],version:1},point_down:{id:"point_down",name:"Backhand Index Pointing Down",keywords:["point","fingers","hand","direction"],skins:[{unified:"1f447",native:"👇"},{unified:"1f447-1f3fb",native:"👇🏻"},{unified:"1f447-1f3fc",native:"👇🏼"},{unified:"1f447-1f3fd",native:"👇🏽"},{unified:"1f447-1f3fe",native:"👇🏾"},{unified:"1f447-1f3ff",native:"👇🏿"}],version:1},point_up:{id:"point_up",name:"Index Pointing Up",keywords:["point","hand","fingers","direction"],skins:[{unified:"261d-fe0f",native:"☝️"},{unified:"261d-1f3fb",native:"☝🏻"},{unified:"261d-1f3fc",native:"☝🏼"},{unified:"261d-1f3fd",native:"☝🏽"},{unified:"261d-1f3fe",native:"☝🏾"},{unified:"261d-1f3ff",native:"☝🏿"}],version:1},index_pointing_at_the_viewer:{id:"index_pointing_at_the_viewer",name:"Index Pointing at the Viewer",keywords:["you","recruit"],skins:[{unified:"1faf5",native:"🫵"},{unified:"1faf5-1f3fb",native:"🫵🏻"},{unified:"1faf5-1f3fc",native:"🫵🏼"},{unified:"1faf5-1f3fd",native:"🫵🏽"},{unified:"1faf5-1f3fe",native:"🫵🏾"},{unified:"1faf5-1f3ff",native:"🫵🏿"}],version:14},"+1":{id:"+1",name:"Thumbs Up",keywords:["+1","thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],skins:[{unified:"1f44d",native:"👍"},{unified:"1f44d-1f3fb",native:"👍🏻"},{unified:"1f44d-1f3fc",native:"👍🏼"},{unified:"1f44d-1f3fd",native:"👍🏽"},{unified:"1f44d-1f3fe",native:"👍🏾"},{unified:"1f44d-1f3ff",native:"👍🏿"}],version:1},"-1":{id:"-1",name:"Thumbs Down",keywords:["-1","thumbsdown","no","dislike","hand"],skins:[{unified:"1f44e",native:"👎"},{unified:"1f44e-1f3fb",native:"👎🏻"},{unified:"1f44e-1f3fc",native:"👎🏼"},{unified:"1f44e-1f3fd",native:"👎🏽"},{unified:"1f44e-1f3fe",native:"👎🏾"},{unified:"1f44e-1f3ff",native:"👎🏿"}],version:1},fist:{id:"fist",name:"Raised Fist",keywords:["fingers","hand","grasp"],skins:[{unified:"270a",native:"✊"},{unified:"270a-1f3fb",native:"✊🏻"},{unified:"270a-1f3fc",native:"✊🏼"},{unified:"270a-1f3fd",native:"✊🏽"},{unified:"270a-1f3fe",native:"✊🏾"},{unified:"270a-1f3ff",native:"✊🏿"}],version:1},facepunch:{id:"facepunch",name:"Oncoming Fist",keywords:["facepunch","punch","angry","violence","hit","attack","hand"],skins:[{unified:"1f44a",native:"👊"},{unified:"1f44a-1f3fb",native:"👊🏻"},{unified:"1f44a-1f3fc",native:"👊🏼"},{unified:"1f44a-1f3fd",native:"👊🏽"},{unified:"1f44a-1f3fe",native:"👊🏾"},{unified:"1f44a-1f3ff",native:"👊🏿"}],version:1},"left-facing_fist":{id:"left-facing_fist",name:"Left-Facing Fist",keywords:["left","facing","hand","fistbump"],skins:[{unified:"1f91b",native:"🤛"},{unified:"1f91b-1f3fb",native:"🤛🏻"},{unified:"1f91b-1f3fc",native:"🤛🏼"},{unified:"1f91b-1f3fd",native:"🤛🏽"},{unified:"1f91b-1f3fe",native:"🤛🏾"},{unified:"1f91b-1f3ff",native:"🤛🏿"}],version:3},"right-facing_fist":{id:"right-facing_fist",name:"Right-Facing Fist",keywords:["right","facing","hand","fistbump"],skins:[{unified:"1f91c",native:"🤜"},{unified:"1f91c-1f3fb",native:"🤜🏻"},{unified:"1f91c-1f3fc",native:"🤜🏼"},{unified:"1f91c-1f3fd",native:"🤜🏽"},{unified:"1f91c-1f3fe",native:"🤜🏾"},{unified:"1f91c-1f3ff",native:"🤜🏿"}],version:3},clap:{id:"clap",name:"Clapping Hands",keywords:["clap","praise","applause","congrats","yay"],skins:[{unified:"1f44f",native:"👏"},{unified:"1f44f-1f3fb",native:"👏🏻"},{unified:"1f44f-1f3fc",native:"👏🏼"},{unified:"1f44f-1f3fd",native:"👏🏽"},{unified:"1f44f-1f3fe",native:"👏🏾"},{unified:"1f44f-1f3ff",native:"👏🏿"}],version:1},raised_hands:{id:"raised_hands",name:"Raising Hands",keywords:["raised","gesture","hooray","yea","celebration"],skins:[{unified:"1f64c",native:"🙌"},{unified:"1f64c-1f3fb",native:"🙌🏻"},{unified:"1f64c-1f3fc",native:"🙌🏼"},{unified:"1f64c-1f3fd",native:"🙌🏽"},{unified:"1f64c-1f3fe",native:"🙌🏾"},{unified:"1f64c-1f3ff",native:"🙌🏿"}],version:1},heart_hands:{id:"heart_hands",name:"Heart Hands",keywords:["love","appreciation","support"],skins:[{unified:"1faf6",native:"🫶"},{unified:"1faf6-1f3fb",native:"🫶🏻"},{unified:"1faf6-1f3fc",native:"🫶🏼"},{unified:"1faf6-1f3fd",native:"🫶🏽"},{unified:"1faf6-1f3fe",native:"🫶🏾"},{unified:"1faf6-1f3ff",native:"🫶🏿"}],version:14},open_hands:{id:"open_hands",name:"Open Hands",keywords:["fingers","butterfly"],skins:[{unified:"1f450",native:"👐"},{unified:"1f450-1f3fb",native:"👐🏻"},{unified:"1f450-1f3fc",native:"👐🏼"},{unified:"1f450-1f3fd",native:"👐🏽"},{unified:"1f450-1f3fe",native:"👐🏾"},{unified:"1f450-1f3ff",native:"👐🏿"}],version:1},palms_up_together:{id:"palms_up_together",name:"Palms Up Together",keywords:["hands","gesture","cupped","prayer"],skins:[{unified:"1f932",native:"🤲"},{unified:"1f932-1f3fb",native:"🤲🏻"},{unified:"1f932-1f3fc",native:"🤲🏼"},{unified:"1f932-1f3fd",native:"🤲🏽"},{unified:"1f932-1f3fe",native:"🤲🏾"},{unified:"1f932-1f3ff",native:"🤲🏿"}],version:5},handshake:{id:"handshake",name:"Handshake",keywords:["agreement","shake"],skins:[{unified:"1f91d",native:"🤝"},{unified:"1f91d-1f3fb",native:"🤝🏻"},{unified:"1f91d-1f3fc",native:"🤝🏼"},{unified:"1f91d-1f3fd",native:"🤝🏽"},{unified:"1f91d-1f3fe",native:"🤝🏾"},{unified:"1f91d-1f3ff",native:"🤝🏿"}],version:3},pray:{id:"pray",name:"Folded Hands",keywords:["pray","please","hope","wish","namaste","highfive","high","five","thank","you","thanks","appreciate"],skins:[{unified:"1f64f",native:"🙏"},{unified:"1f64f-1f3fb",native:"🙏🏻"},{unified:"1f64f-1f3fc",native:"🙏🏼"},{unified:"1f64f-1f3fd",native:"🙏🏽"},{unified:"1f64f-1f3fe",native:"🙏🏾"},{unified:"1f64f-1f3ff",native:"🙏🏿"}],version:1},writing_hand:{id:"writing_hand",name:"Writing Hand",keywords:["lower","left","ballpoint","pen","stationery","write","compose"],skins:[{unified:"270d-fe0f",native:"✍️"},{unified:"270d-1f3fb",native:"✍🏻"},{unified:"270d-1f3fc",native:"✍🏼"},{unified:"270d-1f3fd",native:"✍🏽"},{unified:"270d-1f3fe",native:"✍🏾"},{unified:"270d-1f3ff",native:"✍🏿"}],version:1},nail_care:{id:"nail_care",name:"Nail Polish",keywords:["care","beauty","manicure","finger","fashion"],skins:[{unified:"1f485",native:"💅"},{unified:"1f485-1f3fb",native:"💅🏻"},{unified:"1f485-1f3fc",native:"💅🏼"},{unified:"1f485-1f3fd",native:"💅🏽"},{unified:"1f485-1f3fe",native:"💅🏾"},{unified:"1f485-1f3ff",native:"💅🏿"}],version:1},selfie:{id:"selfie",name:"Selfie",keywords:["camera","phone"],skins:[{unified:"1f933",native:"🤳"},{unified:"1f933-1f3fb",native:"🤳🏻"},{unified:"1f933-1f3fc",native:"🤳🏼"},{unified:"1f933-1f3fd",native:"🤳🏽"},{unified:"1f933-1f3fe",native:"🤳🏾"},{unified:"1f933-1f3ff",native:"🤳🏿"}],version:3},muscle:{id:"muscle",name:"Flexed Biceps",keywords:["muscle","arm","flex","hand","summer","strong"],skins:[{unified:"1f4aa",native:"💪"},{unified:"1f4aa-1f3fb",native:"💪🏻"},{unified:"1f4aa-1f3fc",native:"💪🏼"},{unified:"1f4aa-1f3fd",native:"💪🏽"},{unified:"1f4aa-1f3fe",native:"💪🏾"},{unified:"1f4aa-1f3ff",native:"💪🏿"}],version:1},mechanical_arm:{id:"mechanical_arm",name:"Mechanical Arm",keywords:["accessibility"],skins:[{unified:"1f9be",native:"🦾"}],version:12},mechanical_leg:{id:"mechanical_leg",name:"Mechanical Leg",keywords:["accessibility"],skins:[{unified:"1f9bf",native:"🦿"}],version:12},leg:{id:"leg",name:"Leg",keywords:["kick","limb"],skins:[{unified:"1f9b5",native:"🦵"},{unified:"1f9b5-1f3fb",native:"🦵🏻"},{unified:"1f9b5-1f3fc",native:"🦵🏼"},{unified:"1f9b5-1f3fd",native:"🦵🏽"},{unified:"1f9b5-1f3fe",native:"🦵🏾"},{unified:"1f9b5-1f3ff",native:"🦵🏿"}],version:11},foot:{id:"foot",name:"Foot",keywords:["kick","stomp"],skins:[{unified:"1f9b6",native:"🦶"},{unified:"1f9b6-1f3fb",native:"🦶🏻"},{unified:"1f9b6-1f3fc",native:"🦶🏼"},{unified:"1f9b6-1f3fd",native:"🦶🏽"},{unified:"1f9b6-1f3fe",native:"🦶🏾"},{unified:"1f9b6-1f3ff",native:"🦶🏿"}],version:11},ear:{id:"ear",name:"Ear",keywords:["face","hear","sound","listen"],skins:[{unified:"1f442",native:"👂"},{unified:"1f442-1f3fb",native:"👂🏻"},{unified:"1f442-1f3fc",native:"👂🏼"},{unified:"1f442-1f3fd",native:"👂🏽"},{unified:"1f442-1f3fe",native:"👂🏾"},{unified:"1f442-1f3ff",native:"👂🏿"}],version:1},ear_with_hearing_aid:{id:"ear_with_hearing_aid",name:"Ear with Hearing Aid",keywords:["accessibility"],skins:[{unified:"1f9bb",native:"🦻"},{unified:"1f9bb-1f3fb",native:"🦻🏻"},{unified:"1f9bb-1f3fc",native:"🦻🏼"},{unified:"1f9bb-1f3fd",native:"🦻🏽"},{unified:"1f9bb-1f3fe",native:"🦻🏾"},{unified:"1f9bb-1f3ff",native:"🦻🏿"}],version:12},nose:{id:"nose",name:"Nose",keywords:["smell","sniff"],skins:[{unified:"1f443",native:"👃"},{unified:"1f443-1f3fb",native:"👃🏻"},{unified:"1f443-1f3fc",native:"👃🏼"},{unified:"1f443-1f3fd",native:"👃🏽"},{unified:"1f443-1f3fe",native:"👃🏾"},{unified:"1f443-1f3ff",native:"👃🏿"}],version:1},brain:{id:"brain",name:"Brain",keywords:["smart","intelligent"],skins:[{unified:"1f9e0",native:"🧠"}],version:5},anatomical_heart:{id:"anatomical_heart",name:"Anatomical Heart",keywords:["health","heartbeat"],skins:[{unified:"1fac0",native:"🫀"}],version:13},lungs:{id:"lungs",name:"Lungs",keywords:["breathe"],skins:[{unified:"1fac1",native:"🫁"}],version:13},tooth:{id:"tooth",name:"Tooth",keywords:["teeth","dentist"],skins:[{unified:"1f9b7",native:"🦷"}],version:11},bone:{id:"bone",name:"Bone",keywords:["skeleton"],skins:[{unified:"1f9b4",native:"🦴"}],version:11},eyes:{id:"eyes",name:"Eyes",keywords:["look","watch","stalk","peek","see"],skins:[{unified:"1f440",native:"👀"}],version:1},eye:{id:"eye",name:"Eye",keywords:["face","look","see","watch","stare"],skins:[{unified:"1f441-fe0f",native:"👁️"}],version:1},tongue:{id:"tongue",name:"Tongue",keywords:["mouth","playful"],skins:[{unified:"1f445",native:"👅"}],version:1},lips:{id:"lips",name:"Mouth",keywords:["lips","kiss"],skins:[{unified:"1f444",native:"👄"}],version:1},biting_lip:{id:"biting_lip",name:"Biting Lip",keywords:["flirt","sexy","pain","worry"],skins:[{unified:"1fae6",native:"🫦"}],version:14},baby:{id:"baby",name:"Baby",keywords:["child","boy","girl","toddler"],skins:[{unified:"1f476",native:"👶"},{unified:"1f476-1f3fb",native:"👶🏻"},{unified:"1f476-1f3fc",native:"👶🏼"},{unified:"1f476-1f3fd",native:"👶🏽"},{unified:"1f476-1f3fe",native:"👶🏾"},{unified:"1f476-1f3ff",native:"👶🏿"}],version:1},child:{id:"child",name:"Child",keywords:["gender","neutral","young"],skins:[{unified:"1f9d2",native:"🧒"},{unified:"1f9d2-1f3fb",native:"🧒🏻"},{unified:"1f9d2-1f3fc",native:"🧒🏼"},{unified:"1f9d2-1f3fd",native:"🧒🏽"},{unified:"1f9d2-1f3fe",native:"🧒🏾"},{unified:"1f9d2-1f3ff",native:"🧒🏿"}],version:5},boy:{id:"boy",name:"Boy",keywords:["man","male","guy","teenager"],skins:[{unified:"1f466",native:"👦"},{unified:"1f466-1f3fb",native:"👦🏻"},{unified:"1f466-1f3fc",native:"👦🏼"},{unified:"1f466-1f3fd",native:"👦🏽"},{unified:"1f466-1f3fe",native:"👦🏾"},{unified:"1f466-1f3ff",native:"👦🏿"}],version:1},girl:{id:"girl",name:"Girl",keywords:["female","woman","teenager"],skins:[{unified:"1f467",native:"👧"},{unified:"1f467-1f3fb",native:"👧🏻"},{unified:"1f467-1f3fc",native:"👧🏼"},{unified:"1f467-1f3fd",native:"👧🏽"},{unified:"1f467-1f3fe",native:"👧🏾"},{unified:"1f467-1f3ff",native:"👧🏿"}],version:1},adult:{id:"adult",name:"Adult",keywords:["person","gender","neutral"],skins:[{unified:"1f9d1",native:"🧑"},{unified:"1f9d1-1f3fb",native:"🧑🏻"},{unified:"1f9d1-1f3fc",native:"🧑🏼"},{unified:"1f9d1-1f3fd",native:"🧑🏽"},{unified:"1f9d1-1f3fe",native:"🧑🏾"},{unified:"1f9d1-1f3ff",native:"🧑🏿"}],version:5},person_with_blond_hair:{id:"person_with_blond_hair",name:"Person Blond Hair",keywords:["with","hairstyle"],skins:[{unified:"1f471",native:"👱"},{unified:"1f471-1f3fb",native:"👱🏻"},{unified:"1f471-1f3fc",native:"👱🏼"},{unified:"1f471-1f3fd",native:"👱🏽"},{unified:"1f471-1f3fe",native:"👱🏾"},{unified:"1f471-1f3ff",native:"👱🏿"}],version:1},man:{id:"man",name:"Man",keywords:["mustache","father","dad","guy","classy","sir","moustache"],skins:[{unified:"1f468",native:"👨"},{unified:"1f468-1f3fb",native:"👨🏻"},{unified:"1f468-1f3fc",native:"👨🏼"},{unified:"1f468-1f3fd",native:"👨🏽"},{unified:"1f468-1f3fe",native:"👨🏾"},{unified:"1f468-1f3ff",native:"👨🏿"}],version:1},bearded_person:{id:"bearded_person",name:"Person Beard",keywords:["bearded","man","bewhiskered"],skins:[{unified:"1f9d4",native:"🧔"},{unified:"1f9d4-1f3fb",native:"🧔🏻"},{unified:"1f9d4-1f3fc",native:"🧔🏼"},{unified:"1f9d4-1f3fd",native:"🧔🏽"},{unified:"1f9d4-1f3fe",native:"🧔🏾"},{unified:"1f9d4-1f3ff",native:"🧔🏿"}],version:5},man_with_beard:{id:"man_with_beard",name:"Man: Beard",keywords:["man","with","facial","hair"],skins:[{unified:"1f9d4-200d-2642-fe0f",native:"🧔‍♂️"},{unified:"1f9d4-1f3fb-200d-2642-fe0f",native:"🧔🏻‍♂️"},{unified:"1f9d4-1f3fc-200d-2642-fe0f",native:"🧔🏼‍♂️"},{unified:"1f9d4-1f3fd-200d-2642-fe0f",native:"🧔🏽‍♂️"},{unified:"1f9d4-1f3fe-200d-2642-fe0f",native:"🧔🏾‍♂️"},{unified:"1f9d4-1f3ff-200d-2642-fe0f",native:"🧔🏿‍♂️"}],version:13.1},woman_with_beard:{id:"woman_with_beard",name:"Woman: Beard",keywords:["woman","with","facial","hair"],skins:[{unified:"1f9d4-200d-2640-fe0f",native:"🧔‍♀️"},{unified:"1f9d4-1f3fb-200d-2640-fe0f",native:"🧔🏻‍♀️"},{unified:"1f9d4-1f3fc-200d-2640-fe0f",native:"🧔🏼‍♀️"},{unified:"1f9d4-1f3fd-200d-2640-fe0f",native:"🧔🏽‍♀️"},{unified:"1f9d4-1f3fe-200d-2640-fe0f",native:"🧔🏾‍♀️"},{unified:"1f9d4-1f3ff-200d-2640-fe0f",native:"🧔🏿‍♀️"}],version:13.1},red_haired_man:{id:"red_haired_man",name:"Man: Red Hair",keywords:["haired","man","hairstyle"],skins:[{unified:"1f468-200d-1f9b0",native:"👨‍🦰"},{unified:"1f468-1f3fb-200d-1f9b0",native:"👨🏻‍🦰"},{unified:"1f468-1f3fc-200d-1f9b0",native:"👨🏼‍🦰"},{unified:"1f468-1f3fd-200d-1f9b0",native:"👨🏽‍🦰"},{unified:"1f468-1f3fe-200d-1f9b0",native:"👨🏾‍🦰"},{unified:"1f468-1f3ff-200d-1f9b0",native:"👨🏿‍🦰"}],version:11},curly_haired_man:{id:"curly_haired_man",name:"Man: Curly Hair",keywords:["haired","man","hairstyle"],skins:[{unified:"1f468-200d-1f9b1",native:"👨‍🦱"},{unified:"1f468-1f3fb-200d-1f9b1",native:"👨🏻‍🦱"},{unified:"1f468-1f3fc-200d-1f9b1",native:"👨🏼‍🦱"},{unified:"1f468-1f3fd-200d-1f9b1",native:"👨🏽‍🦱"},{unified:"1f468-1f3fe-200d-1f9b1",native:"👨🏾‍🦱"},{unified:"1f468-1f3ff-200d-1f9b1",native:"👨🏿‍🦱"}],version:11},white_haired_man:{id:"white_haired_man",name:"Man: White Hair",keywords:["haired","man","old","elder"],skins:[{unified:"1f468-200d-1f9b3",native:"👨‍🦳"},{unified:"1f468-1f3fb-200d-1f9b3",native:"👨🏻‍🦳"},{unified:"1f468-1f3fc-200d-1f9b3",native:"👨🏼‍🦳"},{unified:"1f468-1f3fd-200d-1f9b3",native:"👨🏽‍🦳"},{unified:"1f468-1f3fe-200d-1f9b3",native:"👨🏾‍🦳"},{unified:"1f468-1f3ff-200d-1f9b3",native:"👨🏿‍🦳"}],version:11},bald_man:{id:"bald_man",name:"Man: Bald",keywords:["man","hairless"],skins:[{unified:"1f468-200d-1f9b2",native:"👨‍🦲"},{unified:"1f468-1f3fb-200d-1f9b2",native:"👨🏻‍🦲"},{unified:"1f468-1f3fc-200d-1f9b2",native:"👨🏼‍🦲"},{unified:"1f468-1f3fd-200d-1f9b2",native:"👨🏽‍🦲"},{unified:"1f468-1f3fe-200d-1f9b2",native:"👨🏾‍🦲"},{unified:"1f468-1f3ff-200d-1f9b2",native:"👨🏿‍🦲"}],version:11},woman:{id:"woman",name:"Woman",keywords:["female","girls","lady"],skins:[{unified:"1f469",native:"👩"},{unified:"1f469-1f3fb",native:"👩🏻"},{unified:"1f469-1f3fc",native:"👩🏼"},{unified:"1f469-1f3fd",native:"👩🏽"},{unified:"1f469-1f3fe",native:"👩🏾"},{unified:"1f469-1f3ff",native:"👩🏿"}],version:1},red_haired_woman:{id:"red_haired_woman",name:"Woman: Red Hair",keywords:["haired","woman","hairstyle"],skins:[{unified:"1f469-200d-1f9b0",native:"👩‍🦰"},{unified:"1f469-1f3fb-200d-1f9b0",native:"👩🏻‍🦰"},{unified:"1f469-1f3fc-200d-1f9b0",native:"👩🏼‍🦰"},{unified:"1f469-1f3fd-200d-1f9b0",native:"👩🏽‍🦰"},{unified:"1f469-1f3fe-200d-1f9b0",native:"👩🏾‍🦰"},{unified:"1f469-1f3ff-200d-1f9b0",native:"👩🏿‍🦰"}],version:11},red_haired_person:{id:"red_haired_person",name:"Person: Red Hair",keywords:["haired","person","hairstyle"],skins:[{unified:"1f9d1-200d-1f9b0",native:"🧑‍🦰"},{unified:"1f9d1-1f3fb-200d-1f9b0",native:"🧑🏻‍🦰"},{unified:"1f9d1-1f3fc-200d-1f9b0",native:"🧑🏼‍🦰"},{unified:"1f9d1-1f3fd-200d-1f9b0",native:"🧑🏽‍🦰"},{unified:"1f9d1-1f3fe-200d-1f9b0",native:"🧑🏾‍🦰"},{unified:"1f9d1-1f3ff-200d-1f9b0",native:"🧑🏿‍🦰"}],version:12.1},curly_haired_woman:{id:"curly_haired_woman",name:"Woman: Curly Hair",keywords:["haired","woman","hairstyle"],skins:[{unified:"1f469-200d-1f9b1",native:"👩‍🦱"},{unified:"1f469-1f3fb-200d-1f9b1",native:"👩🏻‍🦱"},{unified:"1f469-1f3fc-200d-1f9b1",native:"👩🏼‍🦱"},{unified:"1f469-1f3fd-200d-1f9b1",native:"👩🏽‍🦱"},{unified:"1f469-1f3fe-200d-1f9b1",native:"👩🏾‍🦱"},{unified:"1f469-1f3ff-200d-1f9b1",native:"👩🏿‍🦱"}],version:11},curly_haired_person:{id:"curly_haired_person",name:"Person: Curly Hair",keywords:["haired","person","hairstyle"],skins:[{unified:"1f9d1-200d-1f9b1",native:"🧑‍🦱"},{unified:"1f9d1-1f3fb-200d-1f9b1",native:"🧑🏻‍🦱"},{unified:"1f9d1-1f3fc-200d-1f9b1",native:"🧑🏼‍🦱"},{unified:"1f9d1-1f3fd-200d-1f9b1",native:"🧑🏽‍🦱"},{unified:"1f9d1-1f3fe-200d-1f9b1",native:"🧑🏾‍🦱"},{unified:"1f9d1-1f3ff-200d-1f9b1",native:"🧑🏿‍🦱"}],version:12.1},white_haired_woman:{id:"white_haired_woman",name:"Woman: White Hair",keywords:["haired","woman","old","elder"],skins:[{unified:"1f469-200d-1f9b3",native:"👩‍🦳"},{unified:"1f469-1f3fb-200d-1f9b3",native:"👩🏻‍🦳"},{unified:"1f469-1f3fc-200d-1f9b3",native:"👩🏼‍🦳"},{unified:"1f469-1f3fd-200d-1f9b3",native:"👩🏽‍🦳"},{unified:"1f469-1f3fe-200d-1f9b3",native:"👩🏾‍🦳"},{unified:"1f469-1f3ff-200d-1f9b3",native:"👩🏿‍🦳"}],version:11},white_haired_person:{id:"white_haired_person",name:"Person: White Hair",keywords:["haired","person","elder","old"],skins:[{unified:"1f9d1-200d-1f9b3",native:"🧑‍🦳"},{unified:"1f9d1-1f3fb-200d-1f9b3",native:"🧑🏻‍🦳"},{unified:"1f9d1-1f3fc-200d-1f9b3",native:"🧑🏼‍🦳"},{unified:"1f9d1-1f3fd-200d-1f9b3",native:"🧑🏽‍🦳"},{unified:"1f9d1-1f3fe-200d-1f9b3",native:"🧑🏾‍🦳"},{unified:"1f9d1-1f3ff-200d-1f9b3",native:"🧑🏿‍🦳"}],version:12.1},bald_woman:{id:"bald_woman",name:"Woman: Bald",keywords:["woman","hairless"],skins:[{unified:"1f469-200d-1f9b2",native:"👩‍🦲"},{unified:"1f469-1f3fb-200d-1f9b2",native:"👩🏻‍🦲"},{unified:"1f469-1f3fc-200d-1f9b2",native:"👩🏼‍🦲"},{unified:"1f469-1f3fd-200d-1f9b2",native:"👩🏽‍🦲"},{unified:"1f469-1f3fe-200d-1f9b2",native:"👩🏾‍🦲"},{unified:"1f469-1f3ff-200d-1f9b2",native:"👩🏿‍🦲"}],version:11},bald_person:{id:"bald_person",name:"Person: Bald",keywords:["person","hairless"],skins:[{unified:"1f9d1-200d-1f9b2",native:"🧑‍🦲"},{unified:"1f9d1-1f3fb-200d-1f9b2",native:"🧑🏻‍🦲"},{unified:"1f9d1-1f3fc-200d-1f9b2",native:"🧑🏼‍🦲"},{unified:"1f9d1-1f3fd-200d-1f9b2",native:"🧑🏽‍🦲"},{unified:"1f9d1-1f3fe-200d-1f9b2",native:"🧑🏾‍🦲"},{unified:"1f9d1-1f3ff-200d-1f9b2",native:"🧑🏿‍🦲"}],version:12.1},"blond-haired-woman":{id:"blond-haired-woman",name:"Woman: Blond Hair",keywords:["haired-woman","woman","female","girl","blonde","person"],skins:[{unified:"1f471-200d-2640-fe0f",native:"👱‍♀️"},{unified:"1f471-1f3fb-200d-2640-fe0f",native:"👱🏻‍♀️"},{unified:"1f471-1f3fc-200d-2640-fe0f",native:"👱🏼‍♀️"},{unified:"1f471-1f3fd-200d-2640-fe0f",native:"👱🏽‍♀️"},{unified:"1f471-1f3fe-200d-2640-fe0f",native:"👱🏾‍♀️"},{unified:"1f471-1f3ff-200d-2640-fe0f",native:"👱🏿‍♀️"}],version:4},"blond-haired-man":{id:"blond-haired-man",name:"Man: Blond Hair",keywords:["haired-man","man","male","boy","blonde","guy","person"],skins:[{unified:"1f471-200d-2642-fe0f",native:"👱‍♂️"},{unified:"1f471-1f3fb-200d-2642-fe0f",native:"👱🏻‍♂️"},{unified:"1f471-1f3fc-200d-2642-fe0f",native:"👱🏼‍♂️"},{unified:"1f471-1f3fd-200d-2642-fe0f",native:"👱🏽‍♂️"},{unified:"1f471-1f3fe-200d-2642-fe0f",native:"👱🏾‍♂️"},{unified:"1f471-1f3ff-200d-2642-fe0f",native:"👱🏿‍♂️"}],version:4},older_adult:{id:"older_adult",name:"Older Adult",keywords:["person","human","elder","senior","gender","neutral"],skins:[{unified:"1f9d3",native:"🧓"},{unified:"1f9d3-1f3fb",native:"🧓🏻"},{unified:"1f9d3-1f3fc",native:"🧓🏼"},{unified:"1f9d3-1f3fd",native:"🧓🏽"},{unified:"1f9d3-1f3fe",native:"🧓🏾"},{unified:"1f9d3-1f3ff",native:"🧓🏿"}],version:5},older_man:{id:"older_man",name:"Old Man",keywords:["older","human","male","men","elder","senior"],skins:[{unified:"1f474",native:"👴"},{unified:"1f474-1f3fb",native:"👴🏻"},{unified:"1f474-1f3fc",native:"👴🏼"},{unified:"1f474-1f3fd",native:"👴🏽"},{unified:"1f474-1f3fe",native:"👴🏾"},{unified:"1f474-1f3ff",native:"👴🏿"}],version:1},older_woman:{id:"older_woman",name:"Old Woman",keywords:["older","human","female","women","lady","elder","senior"],skins:[{unified:"1f475",native:"👵"},{unified:"1f475-1f3fb",native:"👵🏻"},{unified:"1f475-1f3fc",native:"👵🏼"},{unified:"1f475-1f3fd",native:"👵🏽"},{unified:"1f475-1f3fe",native:"👵🏾"},{unified:"1f475-1f3ff",native:"👵🏿"}],version:1},person_frowning:{id:"person_frowning",name:"Person Frowning",keywords:["worried"],skins:[{unified:"1f64d",native:"🙍"},{unified:"1f64d-1f3fb",native:"🙍🏻"},{unified:"1f64d-1f3fc",native:"🙍🏼"},{unified:"1f64d-1f3fd",native:"🙍🏽"},{unified:"1f64d-1f3fe",native:"🙍🏾"},{unified:"1f64d-1f3ff",native:"🙍🏿"}],version:1},"man-frowning":{id:"man-frowning",name:"Man Frowning",keywords:["male","boy","sad","depressed","discouraged","unhappy"],skins:[{unified:"1f64d-200d-2642-fe0f",native:"🙍‍♂️"},{unified:"1f64d-1f3fb-200d-2642-fe0f",native:"🙍🏻‍♂️"},{unified:"1f64d-1f3fc-200d-2642-fe0f",native:"🙍🏼‍♂️"},{unified:"1f64d-1f3fd-200d-2642-fe0f",native:"🙍🏽‍♂️"},{unified:"1f64d-1f3fe-200d-2642-fe0f",native:"🙍🏾‍♂️"},{unified:"1f64d-1f3ff-200d-2642-fe0f",native:"🙍🏿‍♂️"}],version:4},"woman-frowning":{id:"woman-frowning",name:"Woman Frowning",keywords:["female","girl","sad","depressed","discouraged","unhappy"],skins:[{unified:"1f64d-200d-2640-fe0f",native:"🙍‍♀️"},{unified:"1f64d-1f3fb-200d-2640-fe0f",native:"🙍🏻‍♀️"},{unified:"1f64d-1f3fc-200d-2640-fe0f",native:"🙍🏼‍♀️"},{unified:"1f64d-1f3fd-200d-2640-fe0f",native:"🙍🏽‍♀️"},{unified:"1f64d-1f3fe-200d-2640-fe0f",native:"🙍🏾‍♀️"},{unified:"1f64d-1f3ff-200d-2640-fe0f",native:"🙍🏿‍♀️"}],version:4},person_with_pouting_face:{id:"person_with_pouting_face",name:"Person Pouting",keywords:["with","face","upset"],skins:[{unified:"1f64e",native:"🙎"},{unified:"1f64e-1f3fb",native:"🙎🏻"},{unified:"1f64e-1f3fc",native:"🙎🏼"},{unified:"1f64e-1f3fd",native:"🙎🏽"},{unified:"1f64e-1f3fe",native:"🙎🏾"},{unified:"1f64e-1f3ff",native:"🙎🏿"}],version:1},"man-pouting":{id:"man-pouting",name:"Man Pouting",keywords:["male","boy"],skins:[{unified:"1f64e-200d-2642-fe0f",native:"🙎‍♂️"},{unified:"1f64e-1f3fb-200d-2642-fe0f",native:"🙎🏻‍♂️"},{unified:"1f64e-1f3fc-200d-2642-fe0f",native:"🙎🏼‍♂️"},{unified:"1f64e-1f3fd-200d-2642-fe0f",native:"🙎🏽‍♂️"},{unified:"1f64e-1f3fe-200d-2642-fe0f",native:"🙎🏾‍♂️"},{unified:"1f64e-1f3ff-200d-2642-fe0f",native:"🙎🏿‍♂️"}],version:4},"woman-pouting":{id:"woman-pouting",name:"Woman Pouting",keywords:["female","girl"],skins:[{unified:"1f64e-200d-2640-fe0f",native:"🙎‍♀️"},{unified:"1f64e-1f3fb-200d-2640-fe0f",native:"🙎🏻‍♀️"},{unified:"1f64e-1f3fc-200d-2640-fe0f",native:"🙎🏼‍♀️"},{unified:"1f64e-1f3fd-200d-2640-fe0f",native:"🙎🏽‍♀️"},{unified:"1f64e-1f3fe-200d-2640-fe0f",native:"🙎🏾‍♀️"},{unified:"1f64e-1f3ff-200d-2640-fe0f",native:"🙎🏿‍♀️"}],version:4},no_good:{id:"no_good",name:"Person Gesturing No",keywords:["good","decline"],skins:[{unified:"1f645",native:"🙅"},{unified:"1f645-1f3fb",native:"🙅🏻"},{unified:"1f645-1f3fc",native:"🙅🏼"},{unified:"1f645-1f3fd",native:"🙅🏽"},{unified:"1f645-1f3fe",native:"🙅🏾"},{unified:"1f645-1f3ff",native:"🙅🏿"}],version:1},"man-gesturing-no":{id:"man-gesturing-no",name:"Man Gesturing No",keywords:["gesturing-no","male","boy","nope"],skins:[{unified:"1f645-200d-2642-fe0f",native:"🙅‍♂️"},{unified:"1f645-1f3fb-200d-2642-fe0f",native:"🙅🏻‍♂️"},{unified:"1f645-1f3fc-200d-2642-fe0f",native:"🙅🏼‍♂️"},{unified:"1f645-1f3fd-200d-2642-fe0f",native:"🙅🏽‍♂️"},{unified:"1f645-1f3fe-200d-2642-fe0f",native:"🙅🏾‍♂️"},{unified:"1f645-1f3ff-200d-2642-fe0f",native:"🙅🏿‍♂️"}],version:4},"woman-gesturing-no":{id:"woman-gesturing-no",name:"Woman Gesturing No",keywords:["gesturing-no","female","girl","nope"],skins:[{unified:"1f645-200d-2640-fe0f",native:"🙅‍♀️"},{unified:"1f645-1f3fb-200d-2640-fe0f",native:"🙅🏻‍♀️"},{unified:"1f645-1f3fc-200d-2640-fe0f",native:"🙅🏼‍♀️"},{unified:"1f645-1f3fd-200d-2640-fe0f",native:"🙅🏽‍♀️"},{unified:"1f645-1f3fe-200d-2640-fe0f",native:"🙅🏾‍♀️"},{unified:"1f645-1f3ff-200d-2640-fe0f",native:"🙅🏿‍♀️"}],version:4},ok_woman:{id:"ok_woman",name:"Person Gesturing Ok",keywords:["woman","agree"],skins:[{unified:"1f646",native:"🙆"},{unified:"1f646-1f3fb",native:"🙆🏻"},{unified:"1f646-1f3fc",native:"🙆🏼"},{unified:"1f646-1f3fd",native:"🙆🏽"},{unified:"1f646-1f3fe",native:"🙆🏾"},{unified:"1f646-1f3ff",native:"🙆🏿"}],version:1},"man-gesturing-ok":{id:"man-gesturing-ok",name:"Man Gesturing Ok",keywords:["gesturing-ok","men","boy","male","blue","human"],skins:[{unified:"1f646-200d-2642-fe0f",native:"🙆‍♂️"},{unified:"1f646-1f3fb-200d-2642-fe0f",native:"🙆🏻‍♂️"},{unified:"1f646-1f3fc-200d-2642-fe0f",native:"🙆🏼‍♂️"},{unified:"1f646-1f3fd-200d-2642-fe0f",native:"🙆🏽‍♂️"},{unified:"1f646-1f3fe-200d-2642-fe0f",native:"🙆🏾‍♂️"},{unified:"1f646-1f3ff-200d-2642-fe0f",native:"🙆🏿‍♂️"}],version:4},"woman-gesturing-ok":{id:"woman-gesturing-ok",name:"Woman Gesturing Ok",keywords:["gesturing-ok","women","girl","female","pink","human"],skins:[{unified:"1f646-200d-2640-fe0f",native:"🙆‍♀️"},{unified:"1f646-1f3fb-200d-2640-fe0f",native:"🙆🏻‍♀️"},{unified:"1f646-1f3fc-200d-2640-fe0f",native:"🙆🏼‍♀️"},{unified:"1f646-1f3fd-200d-2640-fe0f",native:"🙆🏽‍♀️"},{unified:"1f646-1f3fe-200d-2640-fe0f",native:"🙆🏾‍♀️"},{unified:"1f646-1f3ff-200d-2640-fe0f",native:"🙆🏿‍♀️"}],version:4},information_desk_person:{id:"information_desk_person",name:"Person Tipping Hand",keywords:["information","desk"],skins:[{unified:"1f481",native:"💁"},{unified:"1f481-1f3fb",native:"💁🏻"},{unified:"1f481-1f3fc",native:"💁🏼"},{unified:"1f481-1f3fd",native:"💁🏽"},{unified:"1f481-1f3fe",native:"💁🏾"},{unified:"1f481-1f3ff",native:"💁🏿"}],version:1},"man-tipping-hand":{id:"man-tipping-hand",name:"Man Tipping Hand",keywords:["tipping-hand","male","boy","human","information"],skins:[{unified:"1f481-200d-2642-fe0f",native:"💁‍♂️"},{unified:"1f481-1f3fb-200d-2642-fe0f",native:"💁🏻‍♂️"},{unified:"1f481-1f3fc-200d-2642-fe0f",native:"💁🏼‍♂️"},{unified:"1f481-1f3fd-200d-2642-fe0f",native:"💁🏽‍♂️"},{unified:"1f481-1f3fe-200d-2642-fe0f",native:"💁🏾‍♂️"},{unified:"1f481-1f3ff-200d-2642-fe0f",native:"💁🏿‍♂️"}],version:4},"woman-tipping-hand":{id:"woman-tipping-hand",name:"Woman Tipping Hand",keywords:["tipping-hand","female","girl","human","information"],skins:[{unified:"1f481-200d-2640-fe0f",native:"💁‍♀️"},{unified:"1f481-1f3fb-200d-2640-fe0f",native:"💁🏻‍♀️"},{unified:"1f481-1f3fc-200d-2640-fe0f",native:"💁🏼‍♀️"},{unified:"1f481-1f3fd-200d-2640-fe0f",native:"💁🏽‍♀️"},{unified:"1f481-1f3fe-200d-2640-fe0f",native:"💁🏾‍♀️"},{unified:"1f481-1f3ff-200d-2640-fe0f",native:"💁🏿‍♀️"}],version:4},raising_hand:{id:"raising_hand",name:"Person Raising Hand",keywords:["question"],skins:[{unified:"1f64b",native:"🙋"},{unified:"1f64b-1f3fb",native:"🙋🏻"},{unified:"1f64b-1f3fc",native:"🙋🏼"},{unified:"1f64b-1f3fd",native:"🙋🏽"},{unified:"1f64b-1f3fe",native:"🙋🏾"},{unified:"1f64b-1f3ff",native:"🙋🏿"}],version:1},"man-raising-hand":{id:"man-raising-hand",name:"Man Raising Hand",keywords:["raising-hand","male","boy"],skins:[{unified:"1f64b-200d-2642-fe0f",native:"🙋‍♂️"},{unified:"1f64b-1f3fb-200d-2642-fe0f",native:"🙋🏻‍♂️"},{unified:"1f64b-1f3fc-200d-2642-fe0f",native:"🙋🏼‍♂️"},{unified:"1f64b-1f3fd-200d-2642-fe0f",native:"🙋🏽‍♂️"},{unified:"1f64b-1f3fe-200d-2642-fe0f",native:"🙋🏾‍♂️"},{unified:"1f64b-1f3ff-200d-2642-fe0f",native:"🙋🏿‍♂️"}],version:4},"woman-raising-hand":{id:"woman-raising-hand",name:"Woman Raising Hand",keywords:["raising-hand","female","girl"],skins:[{unified:"1f64b-200d-2640-fe0f",native:"🙋‍♀️"},{unified:"1f64b-1f3fb-200d-2640-fe0f",native:"🙋🏻‍♀️"},{unified:"1f64b-1f3fc-200d-2640-fe0f",native:"🙋🏼‍♀️"},{unified:"1f64b-1f3fd-200d-2640-fe0f",native:"🙋🏽‍♀️"},{unified:"1f64b-1f3fe-200d-2640-fe0f",native:"🙋🏾‍♀️"},{unified:"1f64b-1f3ff-200d-2640-fe0f",native:"🙋🏿‍♀️"}],version:4},deaf_person:{id:"deaf_person",name:"Deaf Person",keywords:["accessibility"],skins:[{unified:"1f9cf",native:"🧏"},{unified:"1f9cf-1f3fb",native:"🧏🏻"},{unified:"1f9cf-1f3fc",native:"🧏🏼"},{unified:"1f9cf-1f3fd",native:"🧏🏽"},{unified:"1f9cf-1f3fe",native:"🧏🏾"},{unified:"1f9cf-1f3ff",native:"🧏🏿"}],version:12},deaf_man:{id:"deaf_man",name:"Deaf Man",keywords:["accessibility"],skins:[{unified:"1f9cf-200d-2642-fe0f",native:"🧏‍♂️"},{unified:"1f9cf-1f3fb-200d-2642-fe0f",native:"🧏🏻‍♂️"},{unified:"1f9cf-1f3fc-200d-2642-fe0f",native:"🧏🏼‍♂️"},{unified:"1f9cf-1f3fd-200d-2642-fe0f",native:"🧏🏽‍♂️"},{unified:"1f9cf-1f3fe-200d-2642-fe0f",native:"🧏🏾‍♂️"},{unified:"1f9cf-1f3ff-200d-2642-fe0f",native:"🧏🏿‍♂️"}],version:12},deaf_woman:{id:"deaf_woman",name:"Deaf Woman",keywords:["accessibility"],skins:[{unified:"1f9cf-200d-2640-fe0f",native:"🧏‍♀️"},{unified:"1f9cf-1f3fb-200d-2640-fe0f",native:"🧏🏻‍♀️"},{unified:"1f9cf-1f3fc-200d-2640-fe0f",native:"🧏🏼‍♀️"},{unified:"1f9cf-1f3fd-200d-2640-fe0f",native:"🧏🏽‍♀️"},{unified:"1f9cf-1f3fe-200d-2640-fe0f",native:"🧏🏾‍♀️"},{unified:"1f9cf-1f3ff-200d-2640-fe0f",native:"🧏🏿‍♀️"}],version:12},bow:{id:"bow",name:"Person Bowing",keywords:["bow","respectiful"],skins:[{unified:"1f647",native:"🙇"},{unified:"1f647-1f3fb",native:"🙇🏻"},{unified:"1f647-1f3fc",native:"🙇🏼"},{unified:"1f647-1f3fd",native:"🙇🏽"},{unified:"1f647-1f3fe",native:"🙇🏾"},{unified:"1f647-1f3ff",native:"🙇🏿"}],version:1},"man-bowing":{id:"man-bowing",name:"Man Bowing",keywords:["male","boy"],skins:[{unified:"1f647-200d-2642-fe0f",native:"🙇‍♂️"},{unified:"1f647-1f3fb-200d-2642-fe0f",native:"🙇🏻‍♂️"},{unified:"1f647-1f3fc-200d-2642-fe0f",native:"🙇🏼‍♂️"},{unified:"1f647-1f3fd-200d-2642-fe0f",native:"🙇🏽‍♂️"},{unified:"1f647-1f3fe-200d-2642-fe0f",native:"🙇🏾‍♂️"},{unified:"1f647-1f3ff-200d-2642-fe0f",native:"🙇🏿‍♂️"}],version:4},"woman-bowing":{id:"woman-bowing",name:"Woman Bowing",keywords:["female","girl"],skins:[{unified:"1f647-200d-2640-fe0f",native:"🙇‍♀️"},{unified:"1f647-1f3fb-200d-2640-fe0f",native:"🙇🏻‍♀️"},{unified:"1f647-1f3fc-200d-2640-fe0f",native:"🙇🏼‍♀️"},{unified:"1f647-1f3fd-200d-2640-fe0f",native:"🙇🏽‍♀️"},{unified:"1f647-1f3fe-200d-2640-fe0f",native:"🙇🏾‍♀️"},{unified:"1f647-1f3ff-200d-2640-fe0f",native:"🙇🏿‍♀️"}],version:4},face_palm:{id:"face_palm",name:"Face Palm",keywords:["person","facepalming","disappointed"],skins:[{unified:"1f926",native:"🤦"},{unified:"1f926-1f3fb",native:"🤦🏻"},{unified:"1f926-1f3fc",native:"🤦🏼"},{unified:"1f926-1f3fd",native:"🤦🏽"},{unified:"1f926-1f3fe",native:"🤦🏾"},{unified:"1f926-1f3ff",native:"🤦🏿"}],version:3},"man-facepalming":{id:"man-facepalming",name:"Man Facepalming",keywords:["male","boy","disbelief"],skins:[{unified:"1f926-200d-2642-fe0f",native:"🤦‍♂️"},{unified:"1f926-1f3fb-200d-2642-fe0f",native:"🤦🏻‍♂️"},{unified:"1f926-1f3fc-200d-2642-fe0f",native:"🤦🏼‍♂️"},{unified:"1f926-1f3fd-200d-2642-fe0f",native:"🤦🏽‍♂️"},{unified:"1f926-1f3fe-200d-2642-fe0f",native:"🤦🏾‍♂️"},{unified:"1f926-1f3ff-200d-2642-fe0f",native:"🤦🏿‍♂️"}],version:4},"woman-facepalming":{id:"woman-facepalming",name:"Woman Facepalming",keywords:["female","girl","disbelief"],skins:[{unified:"1f926-200d-2640-fe0f",native:"🤦‍♀️"},{unified:"1f926-1f3fb-200d-2640-fe0f",native:"🤦🏻‍♀️"},{unified:"1f926-1f3fc-200d-2640-fe0f",native:"🤦🏼‍♀️"},{unified:"1f926-1f3fd-200d-2640-fe0f",native:"🤦🏽‍♀️"},{unified:"1f926-1f3fe-200d-2640-fe0f",native:"🤦🏾‍♀️"},{unified:"1f926-1f3ff-200d-2640-fe0f",native:"🤦🏿‍♀️"}],version:4},shrug:{id:"shrug",name:"Shrug",keywords:["person","shrugging","regardless"],skins:[{unified:"1f937",native:"🤷"},{unified:"1f937-1f3fb",native:"🤷🏻"},{unified:"1f937-1f3fc",native:"🤷🏼"},{unified:"1f937-1f3fd",native:"🤷🏽"},{unified:"1f937-1f3fe",native:"🤷🏾"},{unified:"1f937-1f3ff",native:"🤷🏿"}],version:3},"man-shrugging":{id:"man-shrugging",name:"Man Shrugging",keywords:["male","boy","confused","indifferent","doubt"],skins:[{unified:"1f937-200d-2642-fe0f",native:"🤷‍♂️"},{unified:"1f937-1f3fb-200d-2642-fe0f",native:"🤷🏻‍♂️"},{unified:"1f937-1f3fc-200d-2642-fe0f",native:"🤷🏼‍♂️"},{unified:"1f937-1f3fd-200d-2642-fe0f",native:"🤷🏽‍♂️"},{unified:"1f937-1f3fe-200d-2642-fe0f",native:"🤷🏾‍♂️"},{unified:"1f937-1f3ff-200d-2642-fe0f",native:"🤷🏿‍♂️"}],version:4},"woman-shrugging":{id:"woman-shrugging",name:"Woman Shrugging",keywords:["female","girl","confused","indifferent","doubt"],skins:[{unified:"1f937-200d-2640-fe0f",native:"🤷‍♀️"},{unified:"1f937-1f3fb-200d-2640-fe0f",native:"🤷🏻‍♀️"},{unified:"1f937-1f3fc-200d-2640-fe0f",native:"🤷🏼‍♀️"},{unified:"1f937-1f3fd-200d-2640-fe0f",native:"🤷🏽‍♀️"},{unified:"1f937-1f3fe-200d-2640-fe0f",native:"🤷🏾‍♀️"},{unified:"1f937-1f3ff-200d-2640-fe0f",native:"🤷🏿‍♀️"}],version:4},health_worker:{id:"health_worker",name:"Health Worker",keywords:["hospital"],skins:[{unified:"1f9d1-200d-2695-fe0f",native:"🧑‍⚕️"},{unified:"1f9d1-1f3fb-200d-2695-fe0f",native:"🧑🏻‍⚕️"},{unified:"1f9d1-1f3fc-200d-2695-fe0f",native:"🧑🏼‍⚕️"},{unified:"1f9d1-1f3fd-200d-2695-fe0f",native:"🧑🏽‍⚕️"},{unified:"1f9d1-1f3fe-200d-2695-fe0f",native:"🧑🏾‍⚕️"},{unified:"1f9d1-1f3ff-200d-2695-fe0f",native:"🧑🏿‍⚕️"}],version:12.1},"male-doctor":{id:"male-doctor",name:"Man Health Worker",keywords:["male","doctor","nurse","therapist","healthcare","human"],skins:[{unified:"1f468-200d-2695-fe0f",native:"👨‍⚕️"},{unified:"1f468-1f3fb-200d-2695-fe0f",native:"👨🏻‍⚕️"},{unified:"1f468-1f3fc-200d-2695-fe0f",native:"👨🏼‍⚕️"},{unified:"1f468-1f3fd-200d-2695-fe0f",native:"👨🏽‍⚕️"},{unified:"1f468-1f3fe-200d-2695-fe0f",native:"👨🏾‍⚕️"},{unified:"1f468-1f3ff-200d-2695-fe0f",native:"👨🏿‍⚕️"}],version:4},"female-doctor":{id:"female-doctor",name:"Woman Health Worker",keywords:["female","doctor","nurse","therapist","healthcare","human"],skins:[{unified:"1f469-200d-2695-fe0f",native:"👩‍⚕️"},{unified:"1f469-1f3fb-200d-2695-fe0f",native:"👩🏻‍⚕️"},{unified:"1f469-1f3fc-200d-2695-fe0f",native:"👩🏼‍⚕️"},{unified:"1f469-1f3fd-200d-2695-fe0f",native:"👩🏽‍⚕️"},{unified:"1f469-1f3fe-200d-2695-fe0f",native:"👩🏾‍⚕️"},{unified:"1f469-1f3ff-200d-2695-fe0f",native:"👩🏿‍⚕️"}],version:4},student:{id:"student",name:"Student",keywords:["learn"],skins:[{unified:"1f9d1-200d-1f393",native:"🧑‍🎓"},{unified:"1f9d1-1f3fb-200d-1f393",native:"🧑🏻‍🎓"},{unified:"1f9d1-1f3fc-200d-1f393",native:"🧑🏼‍🎓"},{unified:"1f9d1-1f3fd-200d-1f393",native:"🧑🏽‍🎓"},{unified:"1f9d1-1f3fe-200d-1f393",native:"🧑🏾‍🎓"},{unified:"1f9d1-1f3ff-200d-1f393",native:"🧑🏿‍🎓"}],version:12.1},"male-student":{id:"male-student",name:"Man Student",keywords:["male","graduate","human"],skins:[{unified:"1f468-200d-1f393",native:"👨‍🎓"},{unified:"1f468-1f3fb-200d-1f393",native:"👨🏻‍🎓"},{unified:"1f468-1f3fc-200d-1f393",native:"👨🏼‍🎓"},{unified:"1f468-1f3fd-200d-1f393",native:"👨🏽‍🎓"},{unified:"1f468-1f3fe-200d-1f393",native:"👨🏾‍🎓"},{unified:"1f468-1f3ff-200d-1f393",native:"👨🏿‍🎓"}],version:4},"female-student":{id:"female-student",name:"Woman Student",keywords:["female","graduate","human"],skins:[{unified:"1f469-200d-1f393",native:"👩‍🎓"},{unified:"1f469-1f3fb-200d-1f393",native:"👩🏻‍🎓"},{unified:"1f469-1f3fc-200d-1f393",native:"👩🏼‍🎓"},{unified:"1f469-1f3fd-200d-1f393",native:"👩🏽‍🎓"},{unified:"1f469-1f3fe-200d-1f393",native:"👩🏾‍🎓"},{unified:"1f469-1f3ff-200d-1f393",native:"👩🏿‍🎓"}],version:4},teacher:{id:"teacher",name:"Teacher",keywords:["professor"],skins:[{unified:"1f9d1-200d-1f3eb",native:"🧑‍🏫"},{unified:"1f9d1-1f3fb-200d-1f3eb",native:"🧑🏻‍🏫"},{unified:"1f9d1-1f3fc-200d-1f3eb",native:"🧑🏼‍🏫"},{unified:"1f9d1-1f3fd-200d-1f3eb",native:"🧑🏽‍🏫"},{unified:"1f9d1-1f3fe-200d-1f3eb",native:"🧑🏾‍🏫"},{unified:"1f9d1-1f3ff-200d-1f3eb",native:"🧑🏿‍🏫"}],version:12.1},"male-teacher":{id:"male-teacher",name:"Man Teacher",keywords:["male","instructor","professor","human"],skins:[{unified:"1f468-200d-1f3eb",native:"👨‍🏫"},{unified:"1f468-1f3fb-200d-1f3eb",native:"👨🏻‍🏫"},{unified:"1f468-1f3fc-200d-1f3eb",native:"👨🏼‍🏫"},{unified:"1f468-1f3fd-200d-1f3eb",native:"👨🏽‍🏫"},{unified:"1f468-1f3fe-200d-1f3eb",native:"👨🏾‍🏫"},{unified:"1f468-1f3ff-200d-1f3eb",native:"👨🏿‍🏫"}],version:4},"female-teacher":{id:"female-teacher",name:"Woman Teacher",keywords:["female","instructor","professor","human"],skins:[{unified:"1f469-200d-1f3eb",native:"👩‍🏫"},{unified:"1f469-1f3fb-200d-1f3eb",native:"👩🏻‍🏫"},{unified:"1f469-1f3fc-200d-1f3eb",native:"👩🏼‍🏫"},{unified:"1f469-1f3fd-200d-1f3eb",native:"👩🏽‍🏫"},{unified:"1f469-1f3fe-200d-1f3eb",native:"👩🏾‍🏫"},{unified:"1f469-1f3ff-200d-1f3eb",native:"👩🏿‍🏫"}],version:4},judge:{id:"judge",name:"Judge",keywords:["law"],skins:[{unified:"1f9d1-200d-2696-fe0f",native:"🧑‍⚖️"},{unified:"1f9d1-1f3fb-200d-2696-fe0f",native:"🧑🏻‍⚖️"},{unified:"1f9d1-1f3fc-200d-2696-fe0f",native:"🧑🏼‍⚖️"},{unified:"1f9d1-1f3fd-200d-2696-fe0f",native:"🧑🏽‍⚖️"},{unified:"1f9d1-1f3fe-200d-2696-fe0f",native:"🧑🏾‍⚖️"},{unified:"1f9d1-1f3ff-200d-2696-fe0f",native:"🧑🏿‍⚖️"}],version:12.1},"male-judge":{id:"male-judge",name:"Man Judge",keywords:["male","justice","court","human"],skins:[{unified:"1f468-200d-2696-fe0f",native:"👨‍⚖️"},{unified:"1f468-1f3fb-200d-2696-fe0f",native:"👨🏻‍⚖️"},{unified:"1f468-1f3fc-200d-2696-fe0f",native:"👨🏼‍⚖️"},{unified:"1f468-1f3fd-200d-2696-fe0f",native:"👨🏽‍⚖️"},{unified:"1f468-1f3fe-200d-2696-fe0f",native:"👨🏾‍⚖️"},{unified:"1f468-1f3ff-200d-2696-fe0f",native:"👨🏿‍⚖️"}],version:4},"female-judge":{id:"female-judge",name:"Woman Judge",keywords:["female","justice","court","human"],skins:[{unified:"1f469-200d-2696-fe0f",native:"👩‍⚖️"},{unified:"1f469-1f3fb-200d-2696-fe0f",native:"👩🏻‍⚖️"},{unified:"1f469-1f3fc-200d-2696-fe0f",native:"👩🏼‍⚖️"},{unified:"1f469-1f3fd-200d-2696-fe0f",native:"👩🏽‍⚖️"},{unified:"1f469-1f3fe-200d-2696-fe0f",native:"👩🏾‍⚖️"},{unified:"1f469-1f3ff-200d-2696-fe0f",native:"👩🏿‍⚖️"}],version:4},farmer:{id:"farmer",name:"Farmer",keywords:["crops"],skins:[{unified:"1f9d1-200d-1f33e",native:"🧑‍🌾"},{unified:"1f9d1-1f3fb-200d-1f33e",native:"🧑🏻‍🌾"},{unified:"1f9d1-1f3fc-200d-1f33e",native:"🧑🏼‍🌾"},{unified:"1f9d1-1f3fd-200d-1f33e",native:"🧑🏽‍🌾"},{unified:"1f9d1-1f3fe-200d-1f33e",native:"🧑🏾‍🌾"},{unified:"1f9d1-1f3ff-200d-1f33e",native:"🧑🏿‍🌾"}],version:12.1},"male-farmer":{id:"male-farmer",name:"Man Farmer",keywords:["male","rancher","gardener","human"],skins:[{unified:"1f468-200d-1f33e",native:"👨‍🌾"},{unified:"1f468-1f3fb-200d-1f33e",native:"👨🏻‍🌾"},{unified:"1f468-1f3fc-200d-1f33e",native:"👨🏼‍🌾"},{unified:"1f468-1f3fd-200d-1f33e",native:"👨🏽‍🌾"},{unified:"1f468-1f3fe-200d-1f33e",native:"👨🏾‍🌾"},{unified:"1f468-1f3ff-200d-1f33e",native:"👨🏿‍🌾"}],version:4},"female-farmer":{id:"female-farmer",name:"Woman Farmer",keywords:["female","rancher","gardener","human"],skins:[{unified:"1f469-200d-1f33e",native:"👩‍🌾"},{unified:"1f469-1f3fb-200d-1f33e",native:"👩🏻‍🌾"},{unified:"1f469-1f3fc-200d-1f33e",native:"👩🏼‍🌾"},{unified:"1f469-1f3fd-200d-1f33e",native:"👩🏽‍🌾"},{unified:"1f469-1f3fe-200d-1f33e",native:"👩🏾‍🌾"},{unified:"1f469-1f3ff-200d-1f33e",native:"👩🏿‍🌾"}],version:4},cook:{id:"cook",name:"Cook",keywords:["food","kitchen","culinary"],skins:[{unified:"1f9d1-200d-1f373",native:"🧑‍🍳"},{unified:"1f9d1-1f3fb-200d-1f373",native:"🧑🏻‍🍳"},{unified:"1f9d1-1f3fc-200d-1f373",native:"🧑🏼‍🍳"},{unified:"1f9d1-1f3fd-200d-1f373",native:"🧑🏽‍🍳"},{unified:"1f9d1-1f3fe-200d-1f373",native:"🧑🏾‍🍳"},{unified:"1f9d1-1f3ff-200d-1f373",native:"🧑🏿‍🍳"}],version:12.1},"male-cook":{id:"male-cook",name:"Man Cook",keywords:["male","chef","human"],skins:[{unified:"1f468-200d-1f373",native:"👨‍🍳"},{unified:"1f468-1f3fb-200d-1f373",native:"👨🏻‍🍳"},{unified:"1f468-1f3fc-200d-1f373",native:"👨🏼‍🍳"},{unified:"1f468-1f3fd-200d-1f373",native:"👨🏽‍🍳"},{unified:"1f468-1f3fe-200d-1f373",native:"👨🏾‍🍳"},{unified:"1f468-1f3ff-200d-1f373",native:"👨🏿‍🍳"}],version:4},"female-cook":{id:"female-cook",name:"Woman Cook",keywords:["female","chef","human"],skins:[{unified:"1f469-200d-1f373",native:"👩‍🍳"},{unified:"1f469-1f3fb-200d-1f373",native:"👩🏻‍🍳"},{unified:"1f469-1f3fc-200d-1f373",native:"👩🏼‍🍳"},{unified:"1f469-1f3fd-200d-1f373",native:"👩🏽‍🍳"},{unified:"1f469-1f3fe-200d-1f373",native:"👩🏾‍🍳"},{unified:"1f469-1f3ff-200d-1f373",native:"👩🏿‍🍳"}],version:4},mechanic:{id:"mechanic",name:"Mechanic",keywords:["worker","technician"],skins:[{unified:"1f9d1-200d-1f527",native:"🧑‍🔧"},{unified:"1f9d1-1f3fb-200d-1f527",native:"🧑🏻‍🔧"},{unified:"1f9d1-1f3fc-200d-1f527",native:"🧑🏼‍🔧"},{unified:"1f9d1-1f3fd-200d-1f527",native:"🧑🏽‍🔧"},{unified:"1f9d1-1f3fe-200d-1f527",native:"🧑🏾‍🔧"},{unified:"1f9d1-1f3ff-200d-1f527",native:"🧑🏿‍🔧"}],version:12.1},"male-mechanic":{id:"male-mechanic",name:"Man Mechanic",keywords:["male","plumber","human","wrench"],skins:[{unified:"1f468-200d-1f527",native:"👨‍🔧"},{unified:"1f468-1f3fb-200d-1f527",native:"👨🏻‍🔧"},{unified:"1f468-1f3fc-200d-1f527",native:"👨🏼‍🔧"},{unified:"1f468-1f3fd-200d-1f527",native:"👨🏽‍🔧"},{unified:"1f468-1f3fe-200d-1f527",native:"👨🏾‍🔧"},{unified:"1f468-1f3ff-200d-1f527",native:"👨🏿‍🔧"}],version:4},"female-mechanic":{id:"female-mechanic",name:"Woman Mechanic",keywords:["female","plumber","human","wrench"],skins:[{unified:"1f469-200d-1f527",native:"👩‍🔧"},{unified:"1f469-1f3fb-200d-1f527",native:"👩🏻‍🔧"},{unified:"1f469-1f3fc-200d-1f527",native:"👩🏼‍🔧"},{unified:"1f469-1f3fd-200d-1f527",native:"👩🏽‍🔧"},{unified:"1f469-1f3fe-200d-1f527",native:"👩🏾‍🔧"},{unified:"1f469-1f3ff-200d-1f527",native:"👩🏿‍🔧"}],version:4},factory_worker:{id:"factory_worker",name:"Factory Worker",keywords:["labor"],skins:[{unified:"1f9d1-200d-1f3ed",native:"🧑‍🏭"},{unified:"1f9d1-1f3fb-200d-1f3ed",native:"🧑🏻‍🏭"},{unified:"1f9d1-1f3fc-200d-1f3ed",native:"🧑🏼‍🏭"},{unified:"1f9d1-1f3fd-200d-1f3ed",native:"🧑🏽‍🏭"},{unified:"1f9d1-1f3fe-200d-1f3ed",native:"🧑🏾‍🏭"},{unified:"1f9d1-1f3ff-200d-1f3ed",native:"🧑🏿‍🏭"}],version:12.1},"male-factory-worker":{id:"male-factory-worker",name:"Man Factory Worker",keywords:["male","factory-worker","assembly","industrial","human"],skins:[{unified:"1f468-200d-1f3ed",native:"👨‍🏭"},{unified:"1f468-1f3fb-200d-1f3ed",native:"👨🏻‍🏭"},{unified:"1f468-1f3fc-200d-1f3ed",native:"👨🏼‍🏭"},{unified:"1f468-1f3fd-200d-1f3ed",native:"👨🏽‍🏭"},{unified:"1f468-1f3fe-200d-1f3ed",native:"👨🏾‍🏭"},{unified:"1f468-1f3ff-200d-1f3ed",native:"👨🏿‍🏭"}],version:4},"female-factory-worker":{id:"female-factory-worker",name:"Woman Factory Worker",keywords:["female","factory-worker","assembly","industrial","human"],skins:[{unified:"1f469-200d-1f3ed",native:"👩‍🏭"},{unified:"1f469-1f3fb-200d-1f3ed",native:"👩🏻‍🏭"},{unified:"1f469-1f3fc-200d-1f3ed",native:"👩🏼‍🏭"},{unified:"1f469-1f3fd-200d-1f3ed",native:"👩🏽‍🏭"},{unified:"1f469-1f3fe-200d-1f3ed",native:"👩🏾‍🏭"},{unified:"1f469-1f3ff-200d-1f3ed",native:"👩🏿‍🏭"}],version:4},office_worker:{id:"office_worker",name:"Office Worker",keywords:["business"],skins:[{unified:"1f9d1-200d-1f4bc",native:"🧑‍💼"},{unified:"1f9d1-1f3fb-200d-1f4bc",native:"🧑🏻‍💼"},{unified:"1f9d1-1f3fc-200d-1f4bc",native:"🧑🏼‍💼"},{unified:"1f9d1-1f3fd-200d-1f4bc",native:"🧑🏽‍💼"},{unified:"1f9d1-1f3fe-200d-1f4bc",native:"🧑🏾‍💼"},{unified:"1f9d1-1f3ff-200d-1f4bc",native:"🧑🏿‍💼"}],version:12.1},"male-office-worker":{id:"male-office-worker",name:"Man Office Worker",keywords:["male","office-worker","business","manager","human"],skins:[{unified:"1f468-200d-1f4bc",native:"👨‍💼"},{unified:"1f468-1f3fb-200d-1f4bc",native:"👨🏻‍💼"},{unified:"1f468-1f3fc-200d-1f4bc",native:"👨🏼‍💼"},{unified:"1f468-1f3fd-200d-1f4bc",native:"👨🏽‍💼"},{unified:"1f468-1f3fe-200d-1f4bc",native:"👨🏾‍💼"},{unified:"1f468-1f3ff-200d-1f4bc",native:"👨🏿‍💼"}],version:4},"female-office-worker":{id:"female-office-worker",name:"Woman Office Worker",keywords:["female","office-worker","business","manager","human"],skins:[{unified:"1f469-200d-1f4bc",native:"👩‍💼"},{unified:"1f469-1f3fb-200d-1f4bc",native:"👩🏻‍💼"},{unified:"1f469-1f3fc-200d-1f4bc",native:"👩🏼‍💼"},{unified:"1f469-1f3fd-200d-1f4bc",native:"👩🏽‍💼"},{unified:"1f469-1f3fe-200d-1f4bc",native:"👩🏾‍💼"},{unified:"1f469-1f3ff-200d-1f4bc",native:"👩🏿‍💼"}],version:4},scientist:{id:"scientist",name:"Scientist",keywords:["chemistry"],skins:[{unified:"1f9d1-200d-1f52c",native:"🧑‍🔬"},{unified:"1f9d1-1f3fb-200d-1f52c",native:"🧑🏻‍🔬"},{unified:"1f9d1-1f3fc-200d-1f52c",native:"🧑🏼‍🔬"},{unified:"1f9d1-1f3fd-200d-1f52c",native:"🧑🏽‍🔬"},{unified:"1f9d1-1f3fe-200d-1f52c",native:"🧑🏾‍🔬"},{unified:"1f9d1-1f3ff-200d-1f52c",native:"🧑🏿‍🔬"}],version:12.1},"male-scientist":{id:"male-scientist",name:"Man Scientist",keywords:["male","biologist","chemist","engineer","physicist","human"],skins:[{unified:"1f468-200d-1f52c",native:"👨‍🔬"},{unified:"1f468-1f3fb-200d-1f52c",native:"👨🏻‍🔬"},{unified:"1f468-1f3fc-200d-1f52c",native:"👨🏼‍🔬"},{unified:"1f468-1f3fd-200d-1f52c",native:"👨🏽‍🔬"},{unified:"1f468-1f3fe-200d-1f52c",native:"👨🏾‍🔬"},{unified:"1f468-1f3ff-200d-1f52c",native:"👨🏿‍🔬"}],version:4},"female-scientist":{id:"female-scientist",name:"Woman Scientist",keywords:["female","biologist","chemist","engineer","physicist","human"],skins:[{unified:"1f469-200d-1f52c",native:"👩‍🔬"},{unified:"1f469-1f3fb-200d-1f52c",native:"👩🏻‍🔬"},{unified:"1f469-1f3fc-200d-1f52c",native:"👩🏼‍🔬"},{unified:"1f469-1f3fd-200d-1f52c",native:"👩🏽‍🔬"},{unified:"1f469-1f3fe-200d-1f52c",native:"👩🏾‍🔬"},{unified:"1f469-1f3ff-200d-1f52c",native:"👩🏿‍🔬"}],version:4},technologist:{id:"technologist",name:"Technologist",keywords:["computer"],skins:[{unified:"1f9d1-200d-1f4bb",native:"🧑‍💻"},{unified:"1f9d1-1f3fb-200d-1f4bb",native:"🧑🏻‍💻"},{unified:"1f9d1-1f3fc-200d-1f4bb",native:"🧑🏼‍💻"},{unified:"1f9d1-1f3fd-200d-1f4bb",native:"🧑🏽‍💻"},{unified:"1f9d1-1f3fe-200d-1f4bb",native:"🧑🏾‍💻"},{unified:"1f9d1-1f3ff-200d-1f4bb",native:"🧑🏿‍💻"}],version:12.1},"male-technologist":{id:"male-technologist",name:"Man Technologist",keywords:["male","coder","developer","engineer","programmer","software","human","laptop","computer"],skins:[{unified:"1f468-200d-1f4bb",native:"👨‍💻"},{unified:"1f468-1f3fb-200d-1f4bb",native:"👨🏻‍💻"},{unified:"1f468-1f3fc-200d-1f4bb",native:"👨🏼‍💻"},{unified:"1f468-1f3fd-200d-1f4bb",native:"👨🏽‍💻"},{unified:"1f468-1f3fe-200d-1f4bb",native:"👨🏾‍💻"},{unified:"1f468-1f3ff-200d-1f4bb",native:"👨🏿‍💻"}],version:4},"female-technologist":{id:"female-technologist",name:"Woman Technologist",keywords:["female","coder","developer","engineer","programmer","software","human","laptop","computer"],skins:[{unified:"1f469-200d-1f4bb",native:"👩‍💻"},{unified:"1f469-1f3fb-200d-1f4bb",native:"👩🏻‍💻"},{unified:"1f469-1f3fc-200d-1f4bb",native:"👩🏼‍💻"},{unified:"1f469-1f3fd-200d-1f4bb",native:"👩🏽‍💻"},{unified:"1f469-1f3fe-200d-1f4bb",native:"👩🏾‍💻"},{unified:"1f469-1f3ff-200d-1f4bb",native:"👩🏿‍💻"}],version:4},singer:{id:"singer",name:"Singer",keywords:["song","artist","performer"],skins:[{unified:"1f9d1-200d-1f3a4",native:"🧑‍🎤"},{unified:"1f9d1-1f3fb-200d-1f3a4",native:"🧑🏻‍🎤"},{unified:"1f9d1-1f3fc-200d-1f3a4",native:"🧑🏼‍🎤"},{unified:"1f9d1-1f3fd-200d-1f3a4",native:"🧑🏽‍🎤"},{unified:"1f9d1-1f3fe-200d-1f3a4",native:"🧑🏾‍🎤"},{unified:"1f9d1-1f3ff-200d-1f3a4",native:"🧑🏿‍🎤"}],version:12.1},"male-singer":{id:"male-singer",name:"Man Singer",keywords:["male","rockstar","entertainer","human"],skins:[{unified:"1f468-200d-1f3a4",native:"👨‍🎤"},{unified:"1f468-1f3fb-200d-1f3a4",native:"👨🏻‍🎤"},{unified:"1f468-1f3fc-200d-1f3a4",native:"👨🏼‍🎤"},{unified:"1f468-1f3fd-200d-1f3a4",native:"👨🏽‍🎤"},{unified:"1f468-1f3fe-200d-1f3a4",native:"👨🏾‍🎤"},{unified:"1f468-1f3ff-200d-1f3a4",native:"👨🏿‍🎤"}],version:4},"female-singer":{id:"female-singer",name:"Woman Singer",keywords:["female","rockstar","entertainer","human"],skins:[{unified:"1f469-200d-1f3a4",native:"👩‍🎤"},{unified:"1f469-1f3fb-200d-1f3a4",native:"👩🏻‍🎤"},{unified:"1f469-1f3fc-200d-1f3a4",native:"👩🏼‍🎤"},{unified:"1f469-1f3fd-200d-1f3a4",native:"👩🏽‍🎤"},{unified:"1f469-1f3fe-200d-1f3a4",native:"👩🏾‍🎤"},{unified:"1f469-1f3ff-200d-1f3a4",native:"👩🏿‍🎤"}],version:4},artist:{id:"artist",name:"Artist",keywords:["painting","draw","creativity"],skins:[{unified:"1f9d1-200d-1f3a8",native:"🧑‍🎨"},{unified:"1f9d1-1f3fb-200d-1f3a8",native:"🧑🏻‍🎨"},{unified:"1f9d1-1f3fc-200d-1f3a8",native:"🧑🏼‍🎨"},{unified:"1f9d1-1f3fd-200d-1f3a8",native:"🧑🏽‍🎨"},{unified:"1f9d1-1f3fe-200d-1f3a8",native:"🧑🏾‍🎨"},{unified:"1f9d1-1f3ff-200d-1f3a8",native:"🧑🏿‍🎨"}],version:12.1},"male-artist":{id:"male-artist",name:"Man Artist",keywords:["male","painter","human"],skins:[{unified:"1f468-200d-1f3a8",native:"👨‍🎨"},{unified:"1f468-1f3fb-200d-1f3a8",native:"👨🏻‍🎨"},{unified:"1f468-1f3fc-200d-1f3a8",native:"👨🏼‍🎨"},{unified:"1f468-1f3fd-200d-1f3a8",native:"👨🏽‍🎨"},{unified:"1f468-1f3fe-200d-1f3a8",native:"👨🏾‍🎨"},{unified:"1f468-1f3ff-200d-1f3a8",native:"👨🏿‍🎨"}],version:4},"female-artist":{id:"female-artist",name:"Woman Artist",keywords:["female","painter","human"],skins:[{unified:"1f469-200d-1f3a8",native:"👩‍🎨"},{unified:"1f469-1f3fb-200d-1f3a8",native:"👩🏻‍🎨"},{unified:"1f469-1f3fc-200d-1f3a8",native:"👩🏼‍🎨"},{unified:"1f469-1f3fd-200d-1f3a8",native:"👩🏽‍🎨"},{unified:"1f469-1f3fe-200d-1f3a8",native:"👩🏾‍🎨"},{unified:"1f469-1f3ff-200d-1f3a8",native:"👩🏿‍🎨"}],version:4},pilot:{id:"pilot",name:"Pilot",keywords:["fly","plane","airplane"],skins:[{unified:"1f9d1-200d-2708-fe0f",native:"🧑‍✈️"},{unified:"1f9d1-1f3fb-200d-2708-fe0f",native:"🧑🏻‍✈️"},{unified:"1f9d1-1f3fc-200d-2708-fe0f",native:"🧑🏼‍✈️"},{unified:"1f9d1-1f3fd-200d-2708-fe0f",native:"🧑🏽‍✈️"},{unified:"1f9d1-1f3fe-200d-2708-fe0f",native:"🧑🏾‍✈️"},{unified:"1f9d1-1f3ff-200d-2708-fe0f",native:"🧑🏿‍✈️"}],version:12.1},"male-pilot":{id:"male-pilot",name:"Man Pilot",keywords:["male","aviator","plane","human"],skins:[{unified:"1f468-200d-2708-fe0f",native:"👨‍✈️"},{unified:"1f468-1f3fb-200d-2708-fe0f",native:"👨🏻‍✈️"},{unified:"1f468-1f3fc-200d-2708-fe0f",native:"👨🏼‍✈️"},{unified:"1f468-1f3fd-200d-2708-fe0f",native:"👨🏽‍✈️"},{unified:"1f468-1f3fe-200d-2708-fe0f",native:"👨🏾‍✈️"},{unified:"1f468-1f3ff-200d-2708-fe0f",native:"👨🏿‍✈️"}],version:4},"female-pilot":{id:"female-pilot",name:"Woman Pilot",keywords:["female","aviator","plane","human"],skins:[{unified:"1f469-200d-2708-fe0f",native:"👩‍✈️"},{unified:"1f469-1f3fb-200d-2708-fe0f",native:"👩🏻‍✈️"},{unified:"1f469-1f3fc-200d-2708-fe0f",native:"👩🏼‍✈️"},{unified:"1f469-1f3fd-200d-2708-fe0f",native:"👩🏽‍✈️"},{unified:"1f469-1f3fe-200d-2708-fe0f",native:"👩🏾‍✈️"},{unified:"1f469-1f3ff-200d-2708-fe0f",native:"👩🏿‍✈️"}],version:4},astronaut:{id:"astronaut",name:"Astronaut",keywords:["outerspace"],skins:[{unified:"1f9d1-200d-1f680",native:"🧑‍🚀"},{unified:"1f9d1-1f3fb-200d-1f680",native:"🧑🏻‍🚀"},{unified:"1f9d1-1f3fc-200d-1f680",native:"🧑🏼‍🚀"},{unified:"1f9d1-1f3fd-200d-1f680",native:"🧑🏽‍🚀"},{unified:"1f9d1-1f3fe-200d-1f680",native:"🧑🏾‍🚀"},{unified:"1f9d1-1f3ff-200d-1f680",native:"🧑🏿‍🚀"}],version:12.1},"male-astronaut":{id:"male-astronaut",name:"Man Astronaut",keywords:["male","space","rocket","human"],skins:[{unified:"1f468-200d-1f680",native:"👨‍🚀"},{unified:"1f468-1f3fb-200d-1f680",native:"👨🏻‍🚀"},{unified:"1f468-1f3fc-200d-1f680",native:"👨🏼‍🚀"},{unified:"1f468-1f3fd-200d-1f680",native:"👨🏽‍🚀"},{unified:"1f468-1f3fe-200d-1f680",native:"👨🏾‍🚀"},{unified:"1f468-1f3ff-200d-1f680",native:"👨🏿‍🚀"}],version:4},"female-astronaut":{id:"female-astronaut",name:"Woman Astronaut",keywords:["female","space","rocket","human"],skins:[{unified:"1f469-200d-1f680",native:"👩‍🚀"},{unified:"1f469-1f3fb-200d-1f680",native:"👩🏻‍🚀"},{unified:"1f469-1f3fc-200d-1f680",native:"👩🏼‍🚀"},{unified:"1f469-1f3fd-200d-1f680",native:"👩🏽‍🚀"},{unified:"1f469-1f3fe-200d-1f680",native:"👩🏾‍🚀"},{unified:"1f469-1f3ff-200d-1f680",native:"👩🏿‍🚀"}],version:4},firefighter:{id:"firefighter",name:"Firefighter",keywords:["fire"],skins:[{unified:"1f9d1-200d-1f692",native:"🧑‍🚒"},{unified:"1f9d1-1f3fb-200d-1f692",native:"🧑🏻‍🚒"},{unified:"1f9d1-1f3fc-200d-1f692",native:"🧑🏼‍🚒"},{unified:"1f9d1-1f3fd-200d-1f692",native:"🧑🏽‍🚒"},{unified:"1f9d1-1f3fe-200d-1f692",native:"🧑🏾‍🚒"},{unified:"1f9d1-1f3ff-200d-1f692",native:"🧑🏿‍🚒"}],version:12.1},"male-firefighter":{id:"male-firefighter",name:"Man Firefighter",keywords:["male","fireman","human"],skins:[{unified:"1f468-200d-1f692",native:"👨‍🚒"},{unified:"1f468-1f3fb-200d-1f692",native:"👨🏻‍🚒"},{unified:"1f468-1f3fc-200d-1f692",native:"👨🏼‍🚒"},{unified:"1f468-1f3fd-200d-1f692",native:"👨🏽‍🚒"},{unified:"1f468-1f3fe-200d-1f692",native:"👨🏾‍🚒"},{unified:"1f468-1f3ff-200d-1f692",native:"👨🏿‍🚒"}],version:4},"female-firefighter":{id:"female-firefighter",name:"Woman Firefighter",keywords:["female","fireman","human"],skins:[{unified:"1f469-200d-1f692",native:"👩‍🚒"},{unified:"1f469-1f3fb-200d-1f692",native:"👩🏻‍🚒"},{unified:"1f469-1f3fc-200d-1f692",native:"👩🏼‍🚒"},{unified:"1f469-1f3fd-200d-1f692",native:"👩🏽‍🚒"},{unified:"1f469-1f3fe-200d-1f692",native:"👩🏾‍🚒"},{unified:"1f469-1f3ff-200d-1f692",native:"👩🏿‍🚒"}],version:4},cop:{id:"cop",name:"Police Officer",keywords:["cop"],skins:[{unified:"1f46e",native:"👮"},{unified:"1f46e-1f3fb",native:"👮🏻"},{unified:"1f46e-1f3fc",native:"👮🏼"},{unified:"1f46e-1f3fd",native:"👮🏽"},{unified:"1f46e-1f3fe",native:"👮🏾"},{unified:"1f46e-1f3ff",native:"👮🏿"}],version:1},"male-police-officer":{id:"male-police-officer",name:"Man Police Officer",keywords:["male","police-officer","law","legal","enforcement","arrest","911"],skins:[{unified:"1f46e-200d-2642-fe0f",native:"👮‍♂️"},{unified:"1f46e-1f3fb-200d-2642-fe0f",native:"👮🏻‍♂️"},{unified:"1f46e-1f3fc-200d-2642-fe0f",native:"👮🏼‍♂️"},{unified:"1f46e-1f3fd-200d-2642-fe0f",native:"👮🏽‍♂️"},{unified:"1f46e-1f3fe-200d-2642-fe0f",native:"👮🏾‍♂️"},{unified:"1f46e-1f3ff-200d-2642-fe0f",native:"👮🏿‍♂️"}],version:4},"female-police-officer":{id:"female-police-officer",name:"Woman Police Officer",keywords:["female","police-officer","law","legal","enforcement","arrest","911"],skins:[{unified:"1f46e-200d-2640-fe0f",native:"👮‍♀️"},{unified:"1f46e-1f3fb-200d-2640-fe0f",native:"👮🏻‍♀️"},{unified:"1f46e-1f3fc-200d-2640-fe0f",native:"👮🏼‍♀️"},{unified:"1f46e-1f3fd-200d-2640-fe0f",native:"👮🏽‍♀️"},{unified:"1f46e-1f3fe-200d-2640-fe0f",native:"👮🏾‍♀️"},{unified:"1f46e-1f3ff-200d-2640-fe0f",native:"👮🏿‍♀️"}],version:4},sleuth_or_spy:{id:"sleuth_or_spy",name:"Detective",keywords:["sleuth","or","spy","human"],skins:[{unified:"1f575-fe0f",native:"🕵️"},{unified:"1f575-1f3fb",native:"🕵🏻"},{unified:"1f575-1f3fc",native:"🕵🏼"},{unified:"1f575-1f3fd",native:"🕵🏽"},{unified:"1f575-1f3fe",native:"🕵🏾"},{unified:"1f575-1f3ff",native:"🕵🏿"}],version:1},"male-detective":{id:"male-detective",name:"Man Detective",keywords:["male","crime"],skins:[{unified:"1f575-fe0f-200d-2642-fe0f",native:"🕵️‍♂️"},{unified:"1f575-1f3fb-200d-2642-fe0f",native:"🕵🏻‍♂️"},{unified:"1f575-1f3fc-200d-2642-fe0f",native:"🕵🏼‍♂️"},{unified:"1f575-1f3fd-200d-2642-fe0f",native:"🕵🏽‍♂️"},{unified:"1f575-1f3fe-200d-2642-fe0f",native:"🕵🏾‍♂️"},{unified:"1f575-1f3ff-200d-2642-fe0f",native:"🕵🏿‍♂️"}],version:4},"female-detective":{id:"female-detective",name:"Woman Detective",keywords:["female","human","spy"],skins:[{unified:"1f575-fe0f-200d-2640-fe0f",native:"🕵️‍♀️"},{unified:"1f575-1f3fb-200d-2640-fe0f",native:"🕵🏻‍♀️"},{unified:"1f575-1f3fc-200d-2640-fe0f",native:"🕵🏼‍♀️"},{unified:"1f575-1f3fd-200d-2640-fe0f",native:"🕵🏽‍♀️"},{unified:"1f575-1f3fe-200d-2640-fe0f",native:"🕵🏾‍♀️"},{unified:"1f575-1f3ff-200d-2640-fe0f",native:"🕵🏿‍♀️"}],version:4},guardsman:{id:"guardsman",name:"Guard",keywords:["guardsman","protect"],skins:[{unified:"1f482",native:"💂"},{unified:"1f482-1f3fb",native:"💂🏻"},{unified:"1f482-1f3fc",native:"💂🏼"},{unified:"1f482-1f3fd",native:"💂🏽"},{unified:"1f482-1f3fe",native:"💂🏾"},{unified:"1f482-1f3ff",native:"💂🏿"}],version:1},"male-guard":{id:"male-guard",name:"Man Guard",keywords:["male","uk","gb","british","guy","royal"],skins:[{unified:"1f482-200d-2642-fe0f",native:"💂‍♂️"},{unified:"1f482-1f3fb-200d-2642-fe0f",native:"💂🏻‍♂️"},{unified:"1f482-1f3fc-200d-2642-fe0f",native:"💂🏼‍♂️"},{unified:"1f482-1f3fd-200d-2642-fe0f",native:"💂🏽‍♂️"},{unified:"1f482-1f3fe-200d-2642-fe0f",native:"💂🏾‍♂️"},{unified:"1f482-1f3ff-200d-2642-fe0f",native:"💂🏿‍♂️"}],version:4},"female-guard":{id:"female-guard",name:"Woman Guard",keywords:["female","uk","gb","british","royal"],skins:[{unified:"1f482-200d-2640-fe0f",native:"💂‍♀️"},{unified:"1f482-1f3fb-200d-2640-fe0f",native:"💂🏻‍♀️"},{unified:"1f482-1f3fc-200d-2640-fe0f",native:"💂🏼‍♀️"},{unified:"1f482-1f3fd-200d-2640-fe0f",native:"💂🏽‍♀️"},{unified:"1f482-1f3fe-200d-2640-fe0f",native:"💂🏾‍♀️"},{unified:"1f482-1f3ff-200d-2640-fe0f",native:"💂🏿‍♀️"}],version:4},ninja:{id:"ninja",name:"Ninja",keywords:["ninjutsu","skills","japanese"],skins:[{unified:"1f977",native:"🥷"},{unified:"1f977-1f3fb",native:"🥷🏻"},{unified:"1f977-1f3fc",native:"🥷🏼"},{unified:"1f977-1f3fd",native:"🥷🏽"},{unified:"1f977-1f3fe",native:"🥷🏾"},{unified:"1f977-1f3ff",native:"🥷🏿"}],version:13},construction_worker:{id:"construction_worker",name:"Construction Worker",keywords:["labor","build"],skins:[{unified:"1f477",native:"👷"},{unified:"1f477-1f3fb",native:"👷🏻"},{unified:"1f477-1f3fc",native:"👷🏼"},{unified:"1f477-1f3fd",native:"👷🏽"},{unified:"1f477-1f3fe",native:"👷🏾"},{unified:"1f477-1f3ff",native:"👷🏿"}],version:1},"male-construction-worker":{id:"male-construction-worker",name:"Man Construction Worker",keywords:["male","construction-worker","human","wip","guy","build","labor"],skins:[{unified:"1f477-200d-2642-fe0f",native:"👷‍♂️"},{unified:"1f477-1f3fb-200d-2642-fe0f",native:"👷🏻‍♂️"},{unified:"1f477-1f3fc-200d-2642-fe0f",native:"👷🏼‍♂️"},{unified:"1f477-1f3fd-200d-2642-fe0f",native:"👷🏽‍♂️"},{unified:"1f477-1f3fe-200d-2642-fe0f",native:"👷🏾‍♂️"},{unified:"1f477-1f3ff-200d-2642-fe0f",native:"👷🏿‍♂️"}],version:4},"female-construction-worker":{id:"female-construction-worker",name:"Woman Construction Worker",keywords:["female","construction-worker","human","wip","build","labor"],skins:[{unified:"1f477-200d-2640-fe0f",native:"👷‍♀️"},{unified:"1f477-1f3fb-200d-2640-fe0f",native:"👷🏻‍♀️"},{unified:"1f477-1f3fc-200d-2640-fe0f",native:"👷🏼‍♀️"},{unified:"1f477-1f3fd-200d-2640-fe0f",native:"👷🏽‍♀️"},{unified:"1f477-1f3fe-200d-2640-fe0f",native:"👷🏾‍♀️"},{unified:"1f477-1f3ff-200d-2640-fe0f",native:"👷🏿‍♀️"}],version:4},person_with_crown:{id:"person_with_crown",name:"Person with Crown",keywords:["royalty","power"],skins:[{unified:"1fac5",native:"🫅"},{unified:"1fac5-1f3fb",native:"🫅🏻"},{unified:"1fac5-1f3fc",native:"🫅🏼"},{unified:"1fac5-1f3fd",native:"🫅🏽"},{unified:"1fac5-1f3fe",native:"🫅🏾"},{unified:"1fac5-1f3ff",native:"🫅🏿"}],version:14},prince:{id:"prince",name:"Prince",keywords:["boy","man","male","crown","royal","king"],skins:[{unified:"1f934",native:"🤴"},{unified:"1f934-1f3fb",native:"🤴🏻"},{unified:"1f934-1f3fc",native:"🤴🏼"},{unified:"1f934-1f3fd",native:"🤴🏽"},{unified:"1f934-1f3fe",native:"🤴🏾"},{unified:"1f934-1f3ff",native:"🤴🏿"}],version:3},princess:{id:"princess",name:"Princess",keywords:["girl","woman","female","blond","crown","royal","queen"],skins:[{unified:"1f478",native:"👸"},{unified:"1f478-1f3fb",native:"👸🏻"},{unified:"1f478-1f3fc",native:"👸🏼"},{unified:"1f478-1f3fd",native:"👸🏽"},{unified:"1f478-1f3fe",native:"👸🏾"},{unified:"1f478-1f3ff",native:"👸🏿"}],version:1},man_with_turban:{id:"man_with_turban",name:"Man with Turban",keywords:["person","wearing","headdress"],skins:[{unified:"1f473",native:"👳"},{unified:"1f473-1f3fb",native:"👳🏻"},{unified:"1f473-1f3fc",native:"👳🏼"},{unified:"1f473-1f3fd",native:"👳🏽"},{unified:"1f473-1f3fe",native:"👳🏾"},{unified:"1f473-1f3ff",native:"👳🏿"}],version:1},"man-wearing-turban":{id:"man-wearing-turban",name:"Man Wearing Turban",keywords:["wearing-turban","male","indian","hinduism","arabs"],skins:[{unified:"1f473-200d-2642-fe0f",native:"👳‍♂️"},{unified:"1f473-1f3fb-200d-2642-fe0f",native:"👳🏻‍♂️"},{unified:"1f473-1f3fc-200d-2642-fe0f",native:"👳🏼‍♂️"},{unified:"1f473-1f3fd-200d-2642-fe0f",native:"👳🏽‍♂️"},{unified:"1f473-1f3fe-200d-2642-fe0f",native:"👳🏾‍♂️"},{unified:"1f473-1f3ff-200d-2642-fe0f",native:"👳🏿‍♂️"}],version:4},"woman-wearing-turban":{id:"woman-wearing-turban",name:"Woman Wearing Turban",keywords:["wearing-turban","female","indian","hinduism","arabs"],skins:[{unified:"1f473-200d-2640-fe0f",native:"👳‍♀️"},{unified:"1f473-1f3fb-200d-2640-fe0f",native:"👳🏻‍♀️"},{unified:"1f473-1f3fc-200d-2640-fe0f",native:"👳🏼‍♀️"},{unified:"1f473-1f3fd-200d-2640-fe0f",native:"👳🏽‍♀️"},{unified:"1f473-1f3fe-200d-2640-fe0f",native:"👳🏾‍♀️"},{unified:"1f473-1f3ff-200d-2640-fe0f",native:"👳🏿‍♀️"}],version:4},man_with_gua_pi_mao:{id:"man_with_gua_pi_mao",name:"Man with Gua Pi Mao",keywords:["skullcap","male","boy","chinese"],skins:[{unified:"1f472",native:"👲"},{unified:"1f472-1f3fb",native:"👲🏻"},{unified:"1f472-1f3fc",native:"👲🏼"},{unified:"1f472-1f3fd",native:"👲🏽"},{unified:"1f472-1f3fe",native:"👲🏾"},{unified:"1f472-1f3ff",native:"👲🏿"}],version:1},person_with_headscarf:{id:"person_with_headscarf",name:"Woman with Headscarf",keywords:["person","female","hijab","mantilla","tichel"],skins:[{unified:"1f9d5",native:"🧕"},{unified:"1f9d5-1f3fb",native:"🧕🏻"},{unified:"1f9d5-1f3fc",native:"🧕🏼"},{unified:"1f9d5-1f3fd",native:"🧕🏽"},{unified:"1f9d5-1f3fe",native:"🧕🏾"},{unified:"1f9d5-1f3ff",native:"🧕🏿"}],version:5},person_in_tuxedo:{id:"person_in_tuxedo",name:"Man in Tuxedo",keywords:["person","couple","marriage","wedding","groom"],skins:[{unified:"1f935",native:"🤵"},{unified:"1f935-1f3fb",native:"🤵🏻"},{unified:"1f935-1f3fc",native:"🤵🏼"},{unified:"1f935-1f3fd",native:"🤵🏽"},{unified:"1f935-1f3fe",native:"🤵🏾"},{unified:"1f935-1f3ff",native:"🤵🏿"}],version:3},man_in_tuxedo:{id:"man_in_tuxedo",name:"Man in Tuxedo",keywords:["formal","fashion"],skins:[{unified:"1f935-200d-2642-fe0f",native:"🤵‍♂️"},{unified:"1f935-1f3fb-200d-2642-fe0f",native:"🤵🏻‍♂️"},{unified:"1f935-1f3fc-200d-2642-fe0f",native:"🤵🏼‍♂️"},{unified:"1f935-1f3fd-200d-2642-fe0f",native:"🤵🏽‍♂️"},{unified:"1f935-1f3fe-200d-2642-fe0f",native:"🤵🏾‍♂️"},{unified:"1f935-1f3ff-200d-2642-fe0f",native:"🤵🏿‍♂️"}],version:13},woman_in_tuxedo:{id:"woman_in_tuxedo",name:"Woman in Tuxedo",keywords:["formal","fashion"],skins:[{unified:"1f935-200d-2640-fe0f",native:"🤵‍♀️"},{unified:"1f935-1f3fb-200d-2640-fe0f",native:"🤵🏻‍♀️"},{unified:"1f935-1f3fc-200d-2640-fe0f",native:"🤵🏼‍♀️"},{unified:"1f935-1f3fd-200d-2640-fe0f",native:"🤵🏽‍♀️"},{unified:"1f935-1f3fe-200d-2640-fe0f",native:"🤵🏾‍♀️"},{unified:"1f935-1f3ff-200d-2640-fe0f",native:"🤵🏿‍♀️"}],version:13},bride_with_veil:{id:"bride_with_veil",name:"Bride with Veil",keywords:["couple","marriage","wedding","woman"],skins:[{unified:"1f470",native:"👰"},{unified:"1f470-1f3fb",native:"👰🏻"},{unified:"1f470-1f3fc",native:"👰🏼"},{unified:"1f470-1f3fd",native:"👰🏽"},{unified:"1f470-1f3fe",native:"👰🏾"},{unified:"1f470-1f3ff",native:"👰🏿"}],version:1},man_with_veil:{id:"man_with_veil",name:"Man with Veil",keywords:["wedding","marriage"],skins:[{unified:"1f470-200d-2642-fe0f",native:"👰‍♂️"},{unified:"1f470-1f3fb-200d-2642-fe0f",native:"👰🏻‍♂️"},{unified:"1f470-1f3fc-200d-2642-fe0f",native:"👰🏼‍♂️"},{unified:"1f470-1f3fd-200d-2642-fe0f",native:"👰🏽‍♂️"},{unified:"1f470-1f3fe-200d-2642-fe0f",native:"👰🏾‍♂️"},{unified:"1f470-1f3ff-200d-2642-fe0f",native:"👰🏿‍♂️"}],version:13},woman_with_veil:{id:"woman_with_veil",name:"Woman with Veil",keywords:["wedding","marriage"],skins:[{unified:"1f470-200d-2640-fe0f",native:"👰‍♀️"},{unified:"1f470-1f3fb-200d-2640-fe0f",native:"👰🏻‍♀️"},{unified:"1f470-1f3fc-200d-2640-fe0f",native:"👰🏼‍♀️"},{unified:"1f470-1f3fd-200d-2640-fe0f",native:"👰🏽‍♀️"},{unified:"1f470-1f3fe-200d-2640-fe0f",native:"👰🏾‍♀️"},{unified:"1f470-1f3ff-200d-2640-fe0f",native:"👰🏿‍♀️"}],version:13},pregnant_woman:{id:"pregnant_woman",name:"Pregnant Woman",keywords:["baby"],skins:[{unified:"1f930",native:"🤰"},{unified:"1f930-1f3fb",native:"🤰🏻"},{unified:"1f930-1f3fc",native:"🤰🏼"},{unified:"1f930-1f3fd",native:"🤰🏽"},{unified:"1f930-1f3fe",native:"🤰🏾"},{unified:"1f930-1f3ff",native:"🤰🏿"}],version:3},pregnant_man:{id:"pregnant_man",name:"Pregnant Man",keywords:["baby","belly"],skins:[{unified:"1fac3",native:"🫃"},{unified:"1fac3-1f3fb",native:"🫃🏻"},{unified:"1fac3-1f3fc",native:"🫃🏼"},{unified:"1fac3-1f3fd",native:"🫃🏽"},{unified:"1fac3-1f3fe",native:"🫃🏾"},{unified:"1fac3-1f3ff",native:"🫃🏿"}],version:14},pregnant_person:{id:"pregnant_person",name:"Pregnant Person",keywords:["baby","belly"],skins:[{unified:"1fac4",native:"🫄"},{unified:"1fac4-1f3fb",native:"🫄🏻"},{unified:"1fac4-1f3fc",native:"🫄🏼"},{unified:"1fac4-1f3fd",native:"🫄🏽"},{unified:"1fac4-1f3fe",native:"🫄🏾"},{unified:"1fac4-1f3ff",native:"🫄🏿"}],version:14},"breast-feeding":{id:"breast-feeding",name:"Breast-Feeding",keywords:["breast","feeding","nursing","baby"],skins:[{unified:"1f931",native:"🤱"},{unified:"1f931-1f3fb",native:"🤱🏻"},{unified:"1f931-1f3fc",native:"🤱🏼"},{unified:"1f931-1f3fd",native:"🤱🏽"},{unified:"1f931-1f3fe",native:"🤱🏾"},{unified:"1f931-1f3ff",native:"🤱🏿"}],version:5},woman_feeding_baby:{id:"woman_feeding_baby",name:"Woman Feeding Baby",keywords:["birth","food"],skins:[{unified:"1f469-200d-1f37c",native:"👩‍🍼"},{unified:"1f469-1f3fb-200d-1f37c",native:"👩🏻‍🍼"},{unified:"1f469-1f3fc-200d-1f37c",native:"👩🏼‍🍼"},{unified:"1f469-1f3fd-200d-1f37c",native:"👩🏽‍🍼"},{unified:"1f469-1f3fe-200d-1f37c",native:"👩🏾‍🍼"},{unified:"1f469-1f3ff-200d-1f37c",native:"👩🏿‍🍼"}],version:13},man_feeding_baby:{id:"man_feeding_baby",name:"Man Feeding Baby",keywords:["birth","food"],skins:[{unified:"1f468-200d-1f37c",native:"👨‍🍼"},{unified:"1f468-1f3fb-200d-1f37c",native:"👨🏻‍🍼"},{unified:"1f468-1f3fc-200d-1f37c",native:"👨🏼‍🍼"},{unified:"1f468-1f3fd-200d-1f37c",native:"👨🏽‍🍼"},{unified:"1f468-1f3fe-200d-1f37c",native:"👨🏾‍🍼"},{unified:"1f468-1f3ff-200d-1f37c",native:"👨🏿‍🍼"}],version:13},person_feeding_baby:{id:"person_feeding_baby",name:"Person Feeding Baby",keywords:["birth","food"],skins:[{unified:"1f9d1-200d-1f37c",native:"🧑‍🍼"},{unified:"1f9d1-1f3fb-200d-1f37c",native:"🧑🏻‍🍼"},{unified:"1f9d1-1f3fc-200d-1f37c",native:"🧑🏼‍🍼"},{unified:"1f9d1-1f3fd-200d-1f37c",native:"🧑🏽‍🍼"},{unified:"1f9d1-1f3fe-200d-1f37c",native:"🧑🏾‍🍼"},{unified:"1f9d1-1f3ff-200d-1f37c",native:"🧑🏿‍🍼"}],version:13},angel:{id:"angel",name:"Baby Angel",keywords:["heaven","wings","halo"],skins:[{unified:"1f47c",native:"👼"},{unified:"1f47c-1f3fb",native:"👼🏻"},{unified:"1f47c-1f3fc",native:"👼🏼"},{unified:"1f47c-1f3fd",native:"👼🏽"},{unified:"1f47c-1f3fe",native:"👼🏾"},{unified:"1f47c-1f3ff",native:"👼🏿"}],version:1},santa:{id:"santa",name:"Santa Claus",keywords:["festival","man","male","xmas","father","christmas"],skins:[{unified:"1f385",native:"🎅"},{unified:"1f385-1f3fb",native:"🎅🏻"},{unified:"1f385-1f3fc",native:"🎅🏼"},{unified:"1f385-1f3fd",native:"🎅🏽"},{unified:"1f385-1f3fe",native:"🎅🏾"},{unified:"1f385-1f3ff",native:"🎅🏿"}],version:1},mrs_claus:{id:"mrs_claus",name:"Mrs. Claus",keywords:["mrs","mother","christmas","woman","female","xmas"],skins:[{unified:"1f936",native:"🤶"},{unified:"1f936-1f3fb",native:"🤶🏻"},{unified:"1f936-1f3fc",native:"🤶🏼"},{unified:"1f936-1f3fd",native:"🤶🏽"},{unified:"1f936-1f3fe",native:"🤶🏾"},{unified:"1f936-1f3ff",native:"🤶🏿"}],version:3},mx_claus:{id:"mx_claus",name:"Mx Claus",keywords:["christmas"],skins:[{unified:"1f9d1-200d-1f384",native:"🧑‍🎄"},{unified:"1f9d1-1f3fb-200d-1f384",native:"🧑🏻‍🎄"},{unified:"1f9d1-1f3fc-200d-1f384",native:"🧑🏼‍🎄"},{unified:"1f9d1-1f3fd-200d-1f384",native:"🧑🏽‍🎄"},{unified:"1f9d1-1f3fe-200d-1f384",native:"🧑🏾‍🎄"},{unified:"1f9d1-1f3ff-200d-1f384",native:"🧑🏿‍🎄"}],version:13},superhero:{id:"superhero",name:"Superhero",keywords:["marvel"],skins:[{unified:"1f9b8",native:"🦸"},{unified:"1f9b8-1f3fb",native:"🦸🏻"},{unified:"1f9b8-1f3fc",native:"🦸🏼"},{unified:"1f9b8-1f3fd",native:"🦸🏽"},{unified:"1f9b8-1f3fe",native:"🦸🏾"},{unified:"1f9b8-1f3ff",native:"🦸🏿"}],version:11},male_superhero:{id:"male_superhero",name:"Man Superhero",keywords:["male","good","hero","superpowers"],skins:[{unified:"1f9b8-200d-2642-fe0f",native:"🦸‍♂️"},{unified:"1f9b8-1f3fb-200d-2642-fe0f",native:"🦸🏻‍♂️"},{unified:"1f9b8-1f3fc-200d-2642-fe0f",native:"🦸🏼‍♂️"},{unified:"1f9b8-1f3fd-200d-2642-fe0f",native:"🦸🏽‍♂️"},{unified:"1f9b8-1f3fe-200d-2642-fe0f",native:"🦸🏾‍♂️"},{unified:"1f9b8-1f3ff-200d-2642-fe0f",native:"🦸🏿‍♂️"}],version:11},female_superhero:{id:"female_superhero",name:"Woman Superhero",keywords:["female","good","heroine","superpowers"],skins:[{unified:"1f9b8-200d-2640-fe0f",native:"🦸‍♀️"},{unified:"1f9b8-1f3fb-200d-2640-fe0f",native:"🦸🏻‍♀️"},{unified:"1f9b8-1f3fc-200d-2640-fe0f",native:"🦸🏼‍♀️"},{unified:"1f9b8-1f3fd-200d-2640-fe0f",native:"🦸🏽‍♀️"},{unified:"1f9b8-1f3fe-200d-2640-fe0f",native:"🦸🏾‍♀️"},{unified:"1f9b8-1f3ff-200d-2640-fe0f",native:"🦸🏿‍♀️"}],version:11},supervillain:{id:"supervillain",name:"Supervillain",keywords:["marvel"],skins:[{unified:"1f9b9",native:"🦹"},{unified:"1f9b9-1f3fb",native:"🦹🏻"},{unified:"1f9b9-1f3fc",native:"🦹🏼"},{unified:"1f9b9-1f3fd",native:"🦹🏽"},{unified:"1f9b9-1f3fe",native:"🦹🏾"},{unified:"1f9b9-1f3ff",native:"🦹🏿"}],version:11},male_supervillain:{id:"male_supervillain",name:"Man Supervillain",keywords:["male","evil","bad","criminal","hero","superpowers"],skins:[{unified:"1f9b9-200d-2642-fe0f",native:"🦹‍♂️"},{unified:"1f9b9-1f3fb-200d-2642-fe0f",native:"🦹🏻‍♂️"},{unified:"1f9b9-1f3fc-200d-2642-fe0f",native:"🦹🏼‍♂️"},{unified:"1f9b9-1f3fd-200d-2642-fe0f",native:"🦹🏽‍♂️"},{unified:"1f9b9-1f3fe-200d-2642-fe0f",native:"🦹🏾‍♂️"},{unified:"1f9b9-1f3ff-200d-2642-fe0f",native:"🦹🏿‍♂️"}],version:11},female_supervillain:{id:"female_supervillain",name:"Woman Supervillain",keywords:["female","evil","bad","criminal","heroine","superpowers"],skins:[{unified:"1f9b9-200d-2640-fe0f",native:"🦹‍♀️"},{unified:"1f9b9-1f3fb-200d-2640-fe0f",native:"🦹🏻‍♀️"},{unified:"1f9b9-1f3fc-200d-2640-fe0f",native:"🦹🏼‍♀️"},{unified:"1f9b9-1f3fd-200d-2640-fe0f",native:"🦹🏽‍♀️"},{unified:"1f9b9-1f3fe-200d-2640-fe0f",native:"🦹🏾‍♀️"},{unified:"1f9b9-1f3ff-200d-2640-fe0f",native:"🦹🏿‍♀️"}],version:11},mage:{id:"mage",name:"Mage",keywords:["magic"],skins:[{unified:"1f9d9",native:"🧙"},{unified:"1f9d9-1f3fb",native:"🧙🏻"},{unified:"1f9d9-1f3fc",native:"🧙🏼"},{unified:"1f9d9-1f3fd",native:"🧙🏽"},{unified:"1f9d9-1f3fe",native:"🧙🏾"},{unified:"1f9d9-1f3ff",native:"🧙🏿"}],version:5},male_mage:{id:"male_mage",name:"Man Mage",keywords:["male","sorcerer"],skins:[{unified:"1f9d9-200d-2642-fe0f",native:"🧙‍♂️"},{unified:"1f9d9-1f3fb-200d-2642-fe0f",native:"🧙🏻‍♂️"},{unified:"1f9d9-1f3fc-200d-2642-fe0f",native:"🧙🏼‍♂️"},{unified:"1f9d9-1f3fd-200d-2642-fe0f",native:"🧙🏽‍♂️"},{unified:"1f9d9-1f3fe-200d-2642-fe0f",native:"🧙🏾‍♂️"},{unified:"1f9d9-1f3ff-200d-2642-fe0f",native:"🧙🏿‍♂️"}],version:5},female_mage:{id:"female_mage",name:"Woman Mage",keywords:["female","witch"],skins:[{unified:"1f9d9-200d-2640-fe0f",native:"🧙‍♀️"},{unified:"1f9d9-1f3fb-200d-2640-fe0f",native:"🧙🏻‍♀️"},{unified:"1f9d9-1f3fc-200d-2640-fe0f",native:"🧙🏼‍♀️"},{unified:"1f9d9-1f3fd-200d-2640-fe0f",native:"🧙🏽‍♀️"},{unified:"1f9d9-1f3fe-200d-2640-fe0f",native:"🧙🏾‍♀️"},{unified:"1f9d9-1f3ff-200d-2640-fe0f",native:"🧙🏿‍♀️"}],version:5},fairy:{id:"fairy",name:"Fairy",keywords:["wings","magical"],skins:[{unified:"1f9da",native:"🧚"},{unified:"1f9da-1f3fb",native:"🧚🏻"},{unified:"1f9da-1f3fc",native:"🧚🏼"},{unified:"1f9da-1f3fd",native:"🧚🏽"},{unified:"1f9da-1f3fe",native:"🧚🏾"},{unified:"1f9da-1f3ff",native:"🧚🏿"}],version:5},male_fairy:{id:"male_fairy",name:"Man Fairy",keywords:["male"],skins:[{unified:"1f9da-200d-2642-fe0f",native:"🧚‍♂️"},{unified:"1f9da-1f3fb-200d-2642-fe0f",native:"🧚🏻‍♂️"},{unified:"1f9da-1f3fc-200d-2642-fe0f",native:"🧚🏼‍♂️"},{unified:"1f9da-1f3fd-200d-2642-fe0f",native:"🧚🏽‍♂️"},{unified:"1f9da-1f3fe-200d-2642-fe0f",native:"🧚🏾‍♂️"},{unified:"1f9da-1f3ff-200d-2642-fe0f",native:"🧚🏿‍♂️"}],version:5},female_fairy:{id:"female_fairy",name:"Woman Fairy",keywords:["female"],skins:[{unified:"1f9da-200d-2640-fe0f",native:"🧚‍♀️"},{unified:"1f9da-1f3fb-200d-2640-fe0f",native:"🧚🏻‍♀️"},{unified:"1f9da-1f3fc-200d-2640-fe0f",native:"🧚🏼‍♀️"},{unified:"1f9da-1f3fd-200d-2640-fe0f",native:"🧚🏽‍♀️"},{unified:"1f9da-1f3fe-200d-2640-fe0f",native:"🧚🏾‍♀️"},{unified:"1f9da-1f3ff-200d-2640-fe0f",native:"🧚🏿‍♀️"}],version:5},vampire:{id:"vampire",name:"Vampire",keywords:["blood","twilight"],skins:[{unified:"1f9db",native:"🧛"},{unified:"1f9db-1f3fb",native:"🧛🏻"},{unified:"1f9db-1f3fc",native:"🧛🏼"},{unified:"1f9db-1f3fd",native:"🧛🏽"},{unified:"1f9db-1f3fe",native:"🧛🏾"},{unified:"1f9db-1f3ff",native:"🧛🏿"}],version:5},male_vampire:{id:"male_vampire",name:"Man Vampire",keywords:["male","dracula"],skins:[{unified:"1f9db-200d-2642-fe0f",native:"🧛‍♂️"},{unified:"1f9db-1f3fb-200d-2642-fe0f",native:"🧛🏻‍♂️"},{unified:"1f9db-1f3fc-200d-2642-fe0f",native:"🧛🏼‍♂️"},{unified:"1f9db-1f3fd-200d-2642-fe0f",native:"🧛🏽‍♂️"},{unified:"1f9db-1f3fe-200d-2642-fe0f",native:"🧛🏾‍♂️"},{unified:"1f9db-1f3ff-200d-2642-fe0f",native:"🧛🏿‍♂️"}],version:5},female_vampire:{id:"female_vampire",name:"Woman Vampire",keywords:["female"],skins:[{unified:"1f9db-200d-2640-fe0f",native:"🧛‍♀️"},{unified:"1f9db-1f3fb-200d-2640-fe0f",native:"🧛🏻‍♀️"},{unified:"1f9db-1f3fc-200d-2640-fe0f",native:"🧛🏼‍♀️"},{unified:"1f9db-1f3fd-200d-2640-fe0f",native:"🧛🏽‍♀️"},{unified:"1f9db-1f3fe-200d-2640-fe0f",native:"🧛🏾‍♀️"},{unified:"1f9db-1f3ff-200d-2640-fe0f",native:"🧛🏿‍♀️"}],version:5},merperson:{id:"merperson",name:"Merperson",keywords:["sea"],skins:[{unified:"1f9dc",native:"🧜"},{unified:"1f9dc-1f3fb",native:"🧜🏻"},{unified:"1f9dc-1f3fc",native:"🧜🏼"},{unified:"1f9dc-1f3fd",native:"🧜🏽"},{unified:"1f9dc-1f3fe",native:"🧜🏾"},{unified:"1f9dc-1f3ff",native:"🧜🏿"}],version:5},merman:{id:"merman",name:"Merman",keywords:["man","male","triton"],skins:[{unified:"1f9dc-200d-2642-fe0f",native:"🧜‍♂️"},{unified:"1f9dc-1f3fb-200d-2642-fe0f",native:"🧜🏻‍♂️"},{unified:"1f9dc-1f3fc-200d-2642-fe0f",native:"🧜🏼‍♂️"},{unified:"1f9dc-1f3fd-200d-2642-fe0f",native:"🧜🏽‍♂️"},{unified:"1f9dc-1f3fe-200d-2642-fe0f",native:"🧜🏾‍♂️"},{unified:"1f9dc-1f3ff-200d-2642-fe0f",native:"🧜🏿‍♂️"}],version:5},mermaid:{id:"mermaid",name:"Mermaid",keywords:["woman","female","merwoman","ariel"],skins:[{unified:"1f9dc-200d-2640-fe0f",native:"🧜‍♀️"},{unified:"1f9dc-1f3fb-200d-2640-fe0f",native:"🧜🏻‍♀️"},{unified:"1f9dc-1f3fc-200d-2640-fe0f",native:"🧜🏼‍♀️"},{unified:"1f9dc-1f3fd-200d-2640-fe0f",native:"🧜🏽‍♀️"},{unified:"1f9dc-1f3fe-200d-2640-fe0f",native:"🧜🏾‍♀️"},{unified:"1f9dc-1f3ff-200d-2640-fe0f",native:"🧜🏿‍♀️"}],version:5},elf:{id:"elf",name:"Elf",keywords:["magical"],skins:[{unified:"1f9dd",native:"🧝"},{unified:"1f9dd-1f3fb",native:"🧝🏻"},{unified:"1f9dd-1f3fc",native:"🧝🏼"},{unified:"1f9dd-1f3fd",native:"🧝🏽"},{unified:"1f9dd-1f3fe",native:"🧝🏾"},{unified:"1f9dd-1f3ff",native:"🧝🏿"}],version:5},male_elf:{id:"male_elf",name:"Man Elf",keywords:["male"],skins:[{unified:"1f9dd-200d-2642-fe0f",native:"🧝‍♂️"},{unified:"1f9dd-1f3fb-200d-2642-fe0f",native:"🧝🏻‍♂️"},{unified:"1f9dd-1f3fc-200d-2642-fe0f",native:"🧝🏼‍♂️"},{unified:"1f9dd-1f3fd-200d-2642-fe0f",native:"🧝🏽‍♂️"},{unified:"1f9dd-1f3fe-200d-2642-fe0f",native:"🧝🏾‍♂️"},{unified:"1f9dd-1f3ff-200d-2642-fe0f",native:"🧝🏿‍♂️"}],version:5},female_elf:{id:"female_elf",name:"Woman Elf",keywords:["female"],skins:[{unified:"1f9dd-200d-2640-fe0f",native:"🧝‍♀️"},{unified:"1f9dd-1f3fb-200d-2640-fe0f",native:"🧝🏻‍♀️"},{unified:"1f9dd-1f3fc-200d-2640-fe0f",native:"🧝🏼‍♀️"},{unified:"1f9dd-1f3fd-200d-2640-fe0f",native:"🧝🏽‍♀️"},{unified:"1f9dd-1f3fe-200d-2640-fe0f",native:"🧝🏾‍♀️"},{unified:"1f9dd-1f3ff-200d-2640-fe0f",native:"🧝🏿‍♀️"}],version:5},genie:{id:"genie",name:"Genie",keywords:["magical","wishes"],skins:[{unified:"1f9de",native:"🧞"}],version:5},male_genie:{id:"male_genie",name:"Man Genie",keywords:["male"],skins:[{unified:"1f9de-200d-2642-fe0f",native:"🧞‍♂️"}],version:5},female_genie:{id:"female_genie",name:"Woman Genie",keywords:["female"],skins:[{unified:"1f9de-200d-2640-fe0f",native:"🧞‍♀️"}],version:5},zombie:{id:"zombie",name:"Zombie",keywords:["dead"],skins:[{unified:"1f9df",native:"🧟"}],version:5},male_zombie:{id:"male_zombie",name:"Man Zombie",keywords:["male","dracula","undead","walking","dead"],skins:[{unified:"1f9df-200d-2642-fe0f",native:"🧟‍♂️"}],version:5},female_zombie:{id:"female_zombie",name:"Woman Zombie",keywords:["female","undead","walking","dead"],skins:[{unified:"1f9df-200d-2640-fe0f",native:"🧟‍♀️"}],version:5},troll:{id:"troll",name:"Troll",keywords:["mystical","monster"],skins:[{unified:"1f9cc",native:"🧌"}],version:14},massage:{id:"massage",name:"Face Massage",keywords:["person","getting","relax"],skins:[{unified:"1f486",native:"💆"},{unified:"1f486-1f3fb",native:"💆🏻"},{unified:"1f486-1f3fc",native:"💆🏼"},{unified:"1f486-1f3fd",native:"💆🏽"},{unified:"1f486-1f3fe",native:"💆🏾"},{unified:"1f486-1f3ff",native:"💆🏿"}],version:1},"man-getting-massage":{id:"man-getting-massage",name:"Man Getting Massage",keywords:["getting-massage","male","boy","head"],skins:[{unified:"1f486-200d-2642-fe0f",native:"💆‍♂️"},{unified:"1f486-1f3fb-200d-2642-fe0f",native:"💆🏻‍♂️"},{unified:"1f486-1f3fc-200d-2642-fe0f",native:"💆🏼‍♂️"},{unified:"1f486-1f3fd-200d-2642-fe0f",native:"💆🏽‍♂️"},{unified:"1f486-1f3fe-200d-2642-fe0f",native:"💆🏾‍♂️"},{unified:"1f486-1f3ff-200d-2642-fe0f",native:"💆🏿‍♂️"}],version:4},"woman-getting-massage":{id:"woman-getting-massage",name:"Woman Getting Massage",keywords:["getting-massage","female","girl","head"],skins:[{unified:"1f486-200d-2640-fe0f",native:"💆‍♀️"},{unified:"1f486-1f3fb-200d-2640-fe0f",native:"💆🏻‍♀️"},{unified:"1f486-1f3fc-200d-2640-fe0f",native:"💆🏼‍♀️"},{unified:"1f486-1f3fd-200d-2640-fe0f",native:"💆🏽‍♀️"},{unified:"1f486-1f3fe-200d-2640-fe0f",native:"💆🏾‍♀️"},{unified:"1f486-1f3ff-200d-2640-fe0f",native:"💆🏿‍♀️"}],version:4},haircut:{id:"haircut",name:"Haircut",keywords:["person","getting","hairstyle"],skins:[{unified:"1f487",native:"💇"},{unified:"1f487-1f3fb",native:"💇🏻"},{unified:"1f487-1f3fc",native:"💇🏼"},{unified:"1f487-1f3fd",native:"💇🏽"},{unified:"1f487-1f3fe",native:"💇🏾"},{unified:"1f487-1f3ff",native:"💇🏿"}],version:1},"man-getting-haircut":{id:"man-getting-haircut",name:"Man Getting Haircut",keywords:["getting-haircut","male","boy"],skins:[{unified:"1f487-200d-2642-fe0f",native:"💇‍♂️"},{unified:"1f487-1f3fb-200d-2642-fe0f",native:"💇🏻‍♂️"},{unified:"1f487-1f3fc-200d-2642-fe0f",native:"💇🏼‍♂️"},{unified:"1f487-1f3fd-200d-2642-fe0f",native:"💇🏽‍♂️"},{unified:"1f487-1f3fe-200d-2642-fe0f",native:"💇🏾‍♂️"},{unified:"1f487-1f3ff-200d-2642-fe0f",native:"💇🏿‍♂️"}],version:4},"woman-getting-haircut":{id:"woman-getting-haircut",name:"Woman Getting Haircut",keywords:["getting-haircut","female","girl"],skins:[{unified:"1f487-200d-2640-fe0f",native:"💇‍♀️"},{unified:"1f487-1f3fb-200d-2640-fe0f",native:"💇🏻‍♀️"},{unified:"1f487-1f3fc-200d-2640-fe0f",native:"💇🏼‍♀️"},{unified:"1f487-1f3fd-200d-2640-fe0f",native:"💇🏽‍♀️"},{unified:"1f487-1f3fe-200d-2640-fe0f",native:"💇🏾‍♀️"},{unified:"1f487-1f3ff-200d-2640-fe0f",native:"💇🏿‍♀️"}],version:4},walking:{id:"walking",name:"Pedestrian",keywords:["walking","person","move"],skins:[{unified:"1f6b6",native:"🚶"},{unified:"1f6b6-1f3fb",native:"🚶🏻"},{unified:"1f6b6-1f3fc",native:"🚶🏼"},{unified:"1f6b6-1f3fd",native:"🚶🏽"},{unified:"1f6b6-1f3fe",native:"🚶🏾"},{unified:"1f6b6-1f3ff",native:"🚶🏿"}],version:1},"man-walking":{id:"man-walking",name:"Man Walking",keywords:["human","feet","steps"],skins:[{unified:"1f6b6-200d-2642-fe0f",native:"🚶‍♂️"},{unified:"1f6b6-1f3fb-200d-2642-fe0f",native:"🚶🏻‍♂️"},{unified:"1f6b6-1f3fc-200d-2642-fe0f",native:"🚶🏼‍♂️"},{unified:"1f6b6-1f3fd-200d-2642-fe0f",native:"🚶🏽‍♂️"},{unified:"1f6b6-1f3fe-200d-2642-fe0f",native:"🚶🏾‍♂️"},{unified:"1f6b6-1f3ff-200d-2642-fe0f",native:"🚶🏿‍♂️"}],version:4},"woman-walking":{id:"woman-walking",name:"Woman Walking",keywords:["human","feet","steps","female"],skins:[{unified:"1f6b6-200d-2640-fe0f",native:"🚶‍♀️"},{unified:"1f6b6-1f3fb-200d-2640-fe0f",native:"🚶🏻‍♀️"},{unified:"1f6b6-1f3fc-200d-2640-fe0f",native:"🚶🏼‍♀️"},{unified:"1f6b6-1f3fd-200d-2640-fe0f",native:"🚶🏽‍♀️"},{unified:"1f6b6-1f3fe-200d-2640-fe0f",native:"🚶🏾‍♀️"},{unified:"1f6b6-1f3ff-200d-2640-fe0f",native:"🚶🏿‍♀️"}],version:4},standing_person:{id:"standing_person",name:"Standing Person",keywords:["still"],skins:[{unified:"1f9cd",native:"🧍"},{unified:"1f9cd-1f3fb",native:"🧍🏻"},{unified:"1f9cd-1f3fc",native:"🧍🏼"},{unified:"1f9cd-1f3fd",native:"🧍🏽"},{unified:"1f9cd-1f3fe",native:"🧍🏾"},{unified:"1f9cd-1f3ff",native:"🧍🏿"}],version:12},man_standing:{id:"man_standing",name:"Man Standing",keywords:["still"],skins:[{unified:"1f9cd-200d-2642-fe0f",native:"🧍‍♂️"},{unified:"1f9cd-1f3fb-200d-2642-fe0f",native:"🧍🏻‍♂️"},{unified:"1f9cd-1f3fc-200d-2642-fe0f",native:"🧍🏼‍♂️"},{unified:"1f9cd-1f3fd-200d-2642-fe0f",native:"🧍🏽‍♂️"},{unified:"1f9cd-1f3fe-200d-2642-fe0f",native:"🧍🏾‍♂️"},{unified:"1f9cd-1f3ff-200d-2642-fe0f",native:"🧍🏿‍♂️"}],version:12},woman_standing:{id:"woman_standing",name:"Woman Standing",keywords:["still"],skins:[{unified:"1f9cd-200d-2640-fe0f",native:"🧍‍♀️"},{unified:"1f9cd-1f3fb-200d-2640-fe0f",native:"🧍🏻‍♀️"},{unified:"1f9cd-1f3fc-200d-2640-fe0f",native:"🧍🏼‍♀️"},{unified:"1f9cd-1f3fd-200d-2640-fe0f",native:"🧍🏽‍♀️"},{unified:"1f9cd-1f3fe-200d-2640-fe0f",native:"🧍🏾‍♀️"},{unified:"1f9cd-1f3ff-200d-2640-fe0f",native:"🧍🏿‍♀️"}],version:12},kneeling_person:{id:"kneeling_person",name:"Kneeling Person",keywords:["pray","respectful"],skins:[{unified:"1f9ce",native:"🧎"},{unified:"1f9ce-1f3fb",native:"🧎🏻"},{unified:"1f9ce-1f3fc",native:"🧎🏼"},{unified:"1f9ce-1f3fd",native:"🧎🏽"},{unified:"1f9ce-1f3fe",native:"🧎🏾"},{unified:"1f9ce-1f3ff",native:"🧎🏿"}],version:12},man_kneeling:{id:"man_kneeling",name:"Man Kneeling",keywords:["pray","respectful"],skins:[{unified:"1f9ce-200d-2642-fe0f",native:"🧎‍♂️"},{unified:"1f9ce-1f3fb-200d-2642-fe0f",native:"🧎🏻‍♂️"},{unified:"1f9ce-1f3fc-200d-2642-fe0f",native:"🧎🏼‍♂️"},{unified:"1f9ce-1f3fd-200d-2642-fe0f",native:"🧎🏽‍♂️"},{unified:"1f9ce-1f3fe-200d-2642-fe0f",native:"🧎🏾‍♂️"},{unified:"1f9ce-1f3ff-200d-2642-fe0f",native:"🧎🏿‍♂️"}],version:12},woman_kneeling:{id:"woman_kneeling",name:"Woman Kneeling",keywords:["respectful","pray"],skins:[{unified:"1f9ce-200d-2640-fe0f",native:"🧎‍♀️"},{unified:"1f9ce-1f3fb-200d-2640-fe0f",native:"🧎🏻‍♀️"},{unified:"1f9ce-1f3fc-200d-2640-fe0f",native:"🧎🏼‍♀️"},{unified:"1f9ce-1f3fd-200d-2640-fe0f",native:"🧎🏽‍♀️"},{unified:"1f9ce-1f3fe-200d-2640-fe0f",native:"🧎🏾‍♀️"},{unified:"1f9ce-1f3ff-200d-2640-fe0f",native:"🧎🏿‍♀️"}],version:12},person_with_probing_cane:{id:"person_with_probing_cane",name:"Person with White Cane",keywords:["probing","blind"],skins:[{unified:"1f9d1-200d-1f9af",native:"🧑‍🦯"},{unified:"1f9d1-1f3fb-200d-1f9af",native:"🧑🏻‍🦯"},{unified:"1f9d1-1f3fc-200d-1f9af",native:"🧑🏼‍🦯"},{unified:"1f9d1-1f3fd-200d-1f9af",native:"🧑🏽‍🦯"},{unified:"1f9d1-1f3fe-200d-1f9af",native:"🧑🏾‍🦯"},{unified:"1f9d1-1f3ff-200d-1f9af",native:"🧑🏿‍🦯"}],version:12.1},man_with_probing_cane:{id:"man_with_probing_cane",name:"Man with White Cane",keywords:["probing","blind"],skins:[{unified:"1f468-200d-1f9af",native:"👨‍🦯"},{unified:"1f468-1f3fb-200d-1f9af",native:"👨🏻‍🦯"},{unified:"1f468-1f3fc-200d-1f9af",native:"👨🏼‍🦯"},{unified:"1f468-1f3fd-200d-1f9af",native:"👨🏽‍🦯"},{unified:"1f468-1f3fe-200d-1f9af",native:"👨🏾‍🦯"},{unified:"1f468-1f3ff-200d-1f9af",native:"👨🏿‍🦯"}],version:12},woman_with_probing_cane:{id:"woman_with_probing_cane",name:"Woman with White Cane",keywords:["probing","blind"],skins:[{unified:"1f469-200d-1f9af",native:"👩‍🦯"},{unified:"1f469-1f3fb-200d-1f9af",native:"👩🏻‍🦯"},{unified:"1f469-1f3fc-200d-1f9af",native:"👩🏼‍🦯"},{unified:"1f469-1f3fd-200d-1f9af",native:"👩🏽‍🦯"},{unified:"1f469-1f3fe-200d-1f9af",native:"👩🏾‍🦯"},{unified:"1f469-1f3ff-200d-1f9af",native:"👩🏿‍🦯"}],version:12},person_in_motorized_wheelchair:{id:"person_in_motorized_wheelchair",name:"Person in Motorized Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f9d1-200d-1f9bc",native:"🧑‍🦼"},{unified:"1f9d1-1f3fb-200d-1f9bc",native:"🧑🏻‍🦼"},{unified:"1f9d1-1f3fc-200d-1f9bc",native:"🧑🏼‍🦼"},{unified:"1f9d1-1f3fd-200d-1f9bc",native:"🧑🏽‍🦼"},{unified:"1f9d1-1f3fe-200d-1f9bc",native:"🧑🏾‍🦼"},{unified:"1f9d1-1f3ff-200d-1f9bc",native:"🧑🏿‍🦼"}],version:12.1},man_in_motorized_wheelchair:{id:"man_in_motorized_wheelchair",name:"Man in Motorized Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f468-200d-1f9bc",native:"👨‍🦼"},{unified:"1f468-1f3fb-200d-1f9bc",native:"👨🏻‍🦼"},{unified:"1f468-1f3fc-200d-1f9bc",native:"👨🏼‍🦼"},{unified:"1f468-1f3fd-200d-1f9bc",native:"👨🏽‍🦼"},{unified:"1f468-1f3fe-200d-1f9bc",native:"👨🏾‍🦼"},{unified:"1f468-1f3ff-200d-1f9bc",native:"👨🏿‍🦼"}],version:12},woman_in_motorized_wheelchair:{id:"woman_in_motorized_wheelchair",name:"Woman in Motorized Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f469-200d-1f9bc",native:"👩‍🦼"},{unified:"1f469-1f3fb-200d-1f9bc",native:"👩🏻‍🦼"},{unified:"1f469-1f3fc-200d-1f9bc",native:"👩🏼‍🦼"},{unified:"1f469-1f3fd-200d-1f9bc",native:"👩🏽‍🦼"},{unified:"1f469-1f3fe-200d-1f9bc",native:"👩🏾‍🦼"},{unified:"1f469-1f3ff-200d-1f9bc",native:"👩🏿‍🦼"}],version:12},person_in_manual_wheelchair:{id:"person_in_manual_wheelchair",name:"Person in Manual Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f9d1-200d-1f9bd",native:"🧑‍🦽"},{unified:"1f9d1-1f3fb-200d-1f9bd",native:"🧑🏻‍🦽"},{unified:"1f9d1-1f3fc-200d-1f9bd",native:"🧑🏼‍🦽"},{unified:"1f9d1-1f3fd-200d-1f9bd",native:"🧑🏽‍🦽"},{unified:"1f9d1-1f3fe-200d-1f9bd",native:"🧑🏾‍🦽"},{unified:"1f9d1-1f3ff-200d-1f9bd",native:"🧑🏿‍🦽"}],version:12.1},man_in_manual_wheelchair:{id:"man_in_manual_wheelchair",name:"Man in Manual Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f468-200d-1f9bd",native:"👨‍🦽"},{unified:"1f468-1f3fb-200d-1f9bd",native:"👨🏻‍🦽"},{unified:"1f468-1f3fc-200d-1f9bd",native:"👨🏼‍🦽"},{unified:"1f468-1f3fd-200d-1f9bd",native:"👨🏽‍🦽"},{unified:"1f468-1f3fe-200d-1f9bd",native:"👨🏾‍🦽"},{unified:"1f468-1f3ff-200d-1f9bd",native:"👨🏿‍🦽"}],version:12},woman_in_manual_wheelchair:{id:"woman_in_manual_wheelchair",name:"Woman in Manual Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f469-200d-1f9bd",native:"👩‍🦽"},{unified:"1f469-1f3fb-200d-1f9bd",native:"👩🏻‍🦽"},{unified:"1f469-1f3fc-200d-1f9bd",native:"👩🏼‍🦽"},{unified:"1f469-1f3fd-200d-1f9bd",native:"👩🏽‍🦽"},{unified:"1f469-1f3fe-200d-1f9bd",native:"👩🏾‍🦽"},{unified:"1f469-1f3ff-200d-1f9bd",native:"👩🏿‍🦽"}],version:12},runner:{id:"runner",name:"Runner",keywords:["running","person","move"],skins:[{unified:"1f3c3",native:"🏃"},{unified:"1f3c3-1f3fb",native:"🏃🏻"},{unified:"1f3c3-1f3fc",native:"🏃🏼"},{unified:"1f3c3-1f3fd",native:"🏃🏽"},{unified:"1f3c3-1f3fe",native:"🏃🏾"},{unified:"1f3c3-1f3ff",native:"🏃🏿"}],version:1},"man-running":{id:"man-running",name:"Man Running",keywords:["walking","exercise","race"],skins:[{unified:"1f3c3-200d-2642-fe0f",native:"🏃‍♂️"},{unified:"1f3c3-1f3fb-200d-2642-fe0f",native:"🏃🏻‍♂️"},{unified:"1f3c3-1f3fc-200d-2642-fe0f",native:"🏃🏼‍♂️"},{unified:"1f3c3-1f3fd-200d-2642-fe0f",native:"🏃🏽‍♂️"},{unified:"1f3c3-1f3fe-200d-2642-fe0f",native:"🏃🏾‍♂️"},{unified:"1f3c3-1f3ff-200d-2642-fe0f",native:"🏃🏿‍♂️"}],version:4},"woman-running":{id:"woman-running",name:"Woman Running",keywords:["walking","exercise","race","female"],skins:[{unified:"1f3c3-200d-2640-fe0f",native:"🏃‍♀️"},{unified:"1f3c3-1f3fb-200d-2640-fe0f",native:"🏃🏻‍♀️"},{unified:"1f3c3-1f3fc-200d-2640-fe0f",native:"🏃🏼‍♀️"},{unified:"1f3c3-1f3fd-200d-2640-fe0f",native:"🏃🏽‍♀️"},{unified:"1f3c3-1f3fe-200d-2640-fe0f",native:"🏃🏾‍♀️"},{unified:"1f3c3-1f3ff-200d-2640-fe0f",native:"🏃🏿‍♀️"}],version:4},dancer:{id:"dancer",name:"Dancer",keywords:["woman","dancing","female","girl","fun"],skins:[{unified:"1f483",native:"💃"},{unified:"1f483-1f3fb",native:"💃🏻"},{unified:"1f483-1f3fc",native:"💃🏼"},{unified:"1f483-1f3fd",native:"💃🏽"},{unified:"1f483-1f3fe",native:"💃🏾"},{unified:"1f483-1f3ff",native:"💃🏿"}],version:1},man_dancing:{id:"man_dancing",name:"Man Dancing",keywords:["male","boy","fun","dancer"],skins:[{unified:"1f57a",native:"🕺"},{unified:"1f57a-1f3fb",native:"🕺🏻"},{unified:"1f57a-1f3fc",native:"🕺🏼"},{unified:"1f57a-1f3fd",native:"🕺🏽"},{unified:"1f57a-1f3fe",native:"🕺🏾"},{unified:"1f57a-1f3ff",native:"🕺🏿"}],version:3},man_in_business_suit_levitating:{id:"man_in_business_suit_levitating",name:"Person in Suit Levitating",keywords:["man","business","levitate","hover","jump"],skins:[{unified:"1f574-fe0f",native:"🕴️"},{unified:"1f574-1f3fb",native:"🕴🏻"},{unified:"1f574-1f3fc",native:"🕴🏼"},{unified:"1f574-1f3fd",native:"🕴🏽"},{unified:"1f574-1f3fe",native:"🕴🏾"},{unified:"1f574-1f3ff",native:"🕴🏿"}],version:1},dancers:{id:"dancers",name:"Woman with Bunny Ears",keywords:["dancers","people","perform","costume"],skins:[{unified:"1f46f",native:"👯"}],version:1},"men-with-bunny-ears-partying":{id:"men-with-bunny-ears-partying",name:"Men with Bunny Ears",keywords:["with-bunny-ears-partying","man","male","boys"],skins:[{unified:"1f46f-200d-2642-fe0f",native:"👯‍♂️"}],version:4},"women-with-bunny-ears-partying":{id:"women-with-bunny-ears-partying",name:"Women with Bunny Ears",keywords:["with-bunny-ears-partying","woman","female","girls"],skins:[{unified:"1f46f-200d-2640-fe0f",native:"👯‍♀️"}],version:4},person_in_steamy_room:{id:"person_in_steamy_room",name:"Person in Steamy Room",keywords:["relax","spa"],skins:[{unified:"1f9d6",native:"🧖"},{unified:"1f9d6-1f3fb",native:"🧖🏻"},{unified:"1f9d6-1f3fc",native:"🧖🏼"},{unified:"1f9d6-1f3fd",native:"🧖🏽"},{unified:"1f9d6-1f3fe",native:"🧖🏾"},{unified:"1f9d6-1f3ff",native:"🧖🏿"}],version:5},man_in_steamy_room:{id:"man_in_steamy_room",name:"Man in Steamy Room",keywords:["male","spa","steamroom","sauna"],skins:[{unified:"1f9d6-200d-2642-fe0f",native:"🧖‍♂️"},{unified:"1f9d6-1f3fb-200d-2642-fe0f",native:"🧖🏻‍♂️"},{unified:"1f9d6-1f3fc-200d-2642-fe0f",native:"🧖🏼‍♂️"},{unified:"1f9d6-1f3fd-200d-2642-fe0f",native:"🧖🏽‍♂️"},{unified:"1f9d6-1f3fe-200d-2642-fe0f",native:"🧖🏾‍♂️"},{unified:"1f9d6-1f3ff-200d-2642-fe0f",native:"🧖🏿‍♂️"}],version:5},woman_in_steamy_room:{id:"woman_in_steamy_room",name:"Woman in Steamy Room",keywords:["female","spa","steamroom","sauna"],skins:[{unified:"1f9d6-200d-2640-fe0f",native:"🧖‍♀️"},{unified:"1f9d6-1f3fb-200d-2640-fe0f",native:"🧖🏻‍♀️"},{unified:"1f9d6-1f3fc-200d-2640-fe0f",native:"🧖🏼‍♀️"},{unified:"1f9d6-1f3fd-200d-2640-fe0f",native:"🧖🏽‍♀️"},{unified:"1f9d6-1f3fe-200d-2640-fe0f",native:"🧖🏾‍♀️"},{unified:"1f9d6-1f3ff-200d-2640-fe0f",native:"🧖🏿‍♀️"}],version:5},person_climbing:{id:"person_climbing",name:"Person Climbing",keywords:["sport"],skins:[{unified:"1f9d7",native:"🧗"},{unified:"1f9d7-1f3fb",native:"🧗🏻"},{unified:"1f9d7-1f3fc",native:"🧗🏼"},{unified:"1f9d7-1f3fd",native:"🧗🏽"},{unified:"1f9d7-1f3fe",native:"🧗🏾"},{unified:"1f9d7-1f3ff",native:"🧗🏿"}],version:5},man_climbing:{id:"man_climbing",name:"Man Climbing",keywords:["sports","hobby","male","rock"],skins:[{unified:"1f9d7-200d-2642-fe0f",native:"🧗‍♂️"},{unified:"1f9d7-1f3fb-200d-2642-fe0f",native:"🧗🏻‍♂️"},{unified:"1f9d7-1f3fc-200d-2642-fe0f",native:"🧗🏼‍♂️"},{unified:"1f9d7-1f3fd-200d-2642-fe0f",native:"🧗🏽‍♂️"},{unified:"1f9d7-1f3fe-200d-2642-fe0f",native:"🧗🏾‍♂️"},{unified:"1f9d7-1f3ff-200d-2642-fe0f",native:"🧗🏿‍♂️"}],version:5},woman_climbing:{id:"woman_climbing",name:"Woman Climbing",keywords:["sports","hobby","female","rock"],skins:[{unified:"1f9d7-200d-2640-fe0f",native:"🧗‍♀️"},{unified:"1f9d7-1f3fb-200d-2640-fe0f",native:"🧗🏻‍♀️"},{unified:"1f9d7-1f3fc-200d-2640-fe0f",native:"🧗🏼‍♀️"},{unified:"1f9d7-1f3fd-200d-2640-fe0f",native:"🧗🏽‍♀️"},{unified:"1f9d7-1f3fe-200d-2640-fe0f",native:"🧗🏾‍♀️"},{unified:"1f9d7-1f3ff-200d-2640-fe0f",native:"🧗🏿‍♀️"}],version:5},fencer:{id:"fencer",name:"Fencer",keywords:["person","fencing","sports","sword"],skins:[{unified:"1f93a",native:"🤺"}],version:3},horse_racing:{id:"horse_racing",name:"Horse Racing",keywords:["animal","betting","competition","gambling","luck"],skins:[{unified:"1f3c7",native:"🏇"},{unified:"1f3c7-1f3fb",native:"🏇🏻"},{unified:"1f3c7-1f3fc",native:"🏇🏼"},{unified:"1f3c7-1f3fd",native:"🏇🏽"},{unified:"1f3c7-1f3fe",native:"🏇🏾"},{unified:"1f3c7-1f3ff",native:"🏇🏿"}],version:1},skier:{id:"skier",name:"Skier",keywords:["sports","winter","snow"],skins:[{unified:"26f7-fe0f",native:"⛷️"}],version:1},snowboarder:{id:"snowboarder",name:"Snowboarder",keywords:["sports","winter"],skins:[{unified:"1f3c2",native:"🏂"},{unified:"1f3c2-1f3fb",native:"🏂🏻"},{unified:"1f3c2-1f3fc",native:"🏂🏼"},{unified:"1f3c2-1f3fd",native:"🏂🏽"},{unified:"1f3c2-1f3fe",native:"🏂🏾"},{unified:"1f3c2-1f3ff",native:"🏂🏿"}],version:1},golfer:{id:"golfer",name:"Person Golfing",keywords:["golfer","sports","business"],skins:[{unified:"1f3cc-fe0f",native:"🏌️"},{unified:"1f3cc-1f3fb",native:"🏌🏻"},{unified:"1f3cc-1f3fc",native:"🏌🏼"},{unified:"1f3cc-1f3fd",native:"🏌🏽"},{unified:"1f3cc-1f3fe",native:"🏌🏾"},{unified:"1f3cc-1f3ff",native:"🏌🏿"}],version:1},"man-golfing":{id:"man-golfing",name:"Man Golfing",keywords:["sport"],skins:[{unified:"1f3cc-fe0f-200d-2642-fe0f",native:"🏌️‍♂️"},{unified:"1f3cc-1f3fb-200d-2642-fe0f",native:"🏌🏻‍♂️"},{unified:"1f3cc-1f3fc-200d-2642-fe0f",native:"🏌🏼‍♂️"},{unified:"1f3cc-1f3fd-200d-2642-fe0f",native:"🏌🏽‍♂️"},{unified:"1f3cc-1f3fe-200d-2642-fe0f",native:"🏌🏾‍♂️"},{unified:"1f3cc-1f3ff-200d-2642-fe0f",native:"🏌🏿‍♂️"}],version:4},"woman-golfing":{id:"woman-golfing",name:"Woman Golfing",keywords:["sports","business","female"],skins:[{unified:"1f3cc-fe0f-200d-2640-fe0f",native:"🏌️‍♀️"},{unified:"1f3cc-1f3fb-200d-2640-fe0f",native:"🏌🏻‍♀️"},{unified:"1f3cc-1f3fc-200d-2640-fe0f",native:"🏌🏼‍♀️"},{unified:"1f3cc-1f3fd-200d-2640-fe0f",native:"🏌🏽‍♀️"},{unified:"1f3cc-1f3fe-200d-2640-fe0f",native:"🏌🏾‍♀️"},{unified:"1f3cc-1f3ff-200d-2640-fe0f",native:"🏌🏿‍♀️"}],version:4},surfer:{id:"surfer",name:"Surfer",keywords:["person","surfing","sport","sea"],skins:[{unified:"1f3c4",native:"🏄"},{unified:"1f3c4-1f3fb",native:"🏄🏻"},{unified:"1f3c4-1f3fc",native:"🏄🏼"},{unified:"1f3c4-1f3fd",native:"🏄🏽"},{unified:"1f3c4-1f3fe",native:"🏄🏾"},{unified:"1f3c4-1f3ff",native:"🏄🏿"}],version:1},"man-surfing":{id:"man-surfing",name:"Man Surfing",keywords:["sports","ocean","sea","summer","beach"],skins:[{unified:"1f3c4-200d-2642-fe0f",native:"🏄‍♂️"},{unified:"1f3c4-1f3fb-200d-2642-fe0f",native:"🏄🏻‍♂️"},{unified:"1f3c4-1f3fc-200d-2642-fe0f",native:"🏄🏼‍♂️"},{unified:"1f3c4-1f3fd-200d-2642-fe0f",native:"🏄🏽‍♂️"},{unified:"1f3c4-1f3fe-200d-2642-fe0f",native:"🏄🏾‍♂️"},{unified:"1f3c4-1f3ff-200d-2642-fe0f",native:"🏄🏿‍♂️"}],version:4},"woman-surfing":{id:"woman-surfing",name:"Woman Surfing",keywords:["sports","ocean","sea","summer","beach","female"],skins:[{unified:"1f3c4-200d-2640-fe0f",native:"🏄‍♀️"},{unified:"1f3c4-1f3fb-200d-2640-fe0f",native:"🏄🏻‍♀️"},{unified:"1f3c4-1f3fc-200d-2640-fe0f",native:"🏄🏼‍♀️"},{unified:"1f3c4-1f3fd-200d-2640-fe0f",native:"🏄🏽‍♀️"},{unified:"1f3c4-1f3fe-200d-2640-fe0f",native:"🏄🏾‍♀️"},{unified:"1f3c4-1f3ff-200d-2640-fe0f",native:"🏄🏿‍♀️"}],version:4},rowboat:{id:"rowboat",name:"Rowboat",keywords:["person","rowing","boat","sport","move"],skins:[{unified:"1f6a3",native:"🚣"},{unified:"1f6a3-1f3fb",native:"🚣🏻"},{unified:"1f6a3-1f3fc",native:"🚣🏼"},{unified:"1f6a3-1f3fd",native:"🚣🏽"},{unified:"1f6a3-1f3fe",native:"🚣🏾"},{unified:"1f6a3-1f3ff",native:"🚣🏿"}],version:1},"man-rowing-boat":{id:"man-rowing-boat",name:"Man Rowing Boat",keywords:["rowing-boat","sports","hobby","water","ship"],skins:[{unified:"1f6a3-200d-2642-fe0f",native:"🚣‍♂️"},{unified:"1f6a3-1f3fb-200d-2642-fe0f",native:"🚣🏻‍♂️"},{unified:"1f6a3-1f3fc-200d-2642-fe0f",native:"🚣🏼‍♂️"},{unified:"1f6a3-1f3fd-200d-2642-fe0f",native:"🚣🏽‍♂️"},{unified:"1f6a3-1f3fe-200d-2642-fe0f",native:"🚣🏾‍♂️"},{unified:"1f6a3-1f3ff-200d-2642-fe0f",native:"🚣🏿‍♂️"}],version:4},"woman-rowing-boat":{id:"woman-rowing-boat",name:"Woman Rowing Boat",keywords:["rowing-boat","sports","hobby","water","ship","female"],skins:[{unified:"1f6a3-200d-2640-fe0f",native:"🚣‍♀️"},{unified:"1f6a3-1f3fb-200d-2640-fe0f",native:"🚣🏻‍♀️"},{unified:"1f6a3-1f3fc-200d-2640-fe0f",native:"🚣🏼‍♀️"},{unified:"1f6a3-1f3fd-200d-2640-fe0f",native:"🚣🏽‍♀️"},{unified:"1f6a3-1f3fe-200d-2640-fe0f",native:"🚣🏾‍♀️"},{unified:"1f6a3-1f3ff-200d-2640-fe0f",native:"🚣🏿‍♀️"}],version:4},swimmer:{id:"swimmer",name:"Swimmer",keywords:["person","swimming","sport","pool"],skins:[{unified:"1f3ca",native:"🏊"},{unified:"1f3ca-1f3fb",native:"🏊🏻"},{unified:"1f3ca-1f3fc",native:"🏊🏼"},{unified:"1f3ca-1f3fd",native:"🏊🏽"},{unified:"1f3ca-1f3fe",native:"🏊🏾"},{unified:"1f3ca-1f3ff",native:"🏊🏿"}],version:1},"man-swimming":{id:"man-swimming",name:"Man Swimming",keywords:["sports","exercise","human","athlete","water","summer"],skins:[{unified:"1f3ca-200d-2642-fe0f",native:"🏊‍♂️"},{unified:"1f3ca-1f3fb-200d-2642-fe0f",native:"🏊🏻‍♂️"},{unified:"1f3ca-1f3fc-200d-2642-fe0f",native:"🏊🏼‍♂️"},{unified:"1f3ca-1f3fd-200d-2642-fe0f",native:"🏊🏽‍♂️"},{unified:"1f3ca-1f3fe-200d-2642-fe0f",native:"🏊🏾‍♂️"},{unified:"1f3ca-1f3ff-200d-2642-fe0f",native:"🏊🏿‍♂️"}],version:4},"woman-swimming":{id:"woman-swimming",name:"Woman Swimming",keywords:["sports","exercise","human","athlete","water","summer","female"],skins:[{unified:"1f3ca-200d-2640-fe0f",native:"🏊‍♀️"},{unified:"1f3ca-1f3fb-200d-2640-fe0f",native:"🏊🏻‍♀️"},{unified:"1f3ca-1f3fc-200d-2640-fe0f",native:"🏊🏼‍♀️"},{unified:"1f3ca-1f3fd-200d-2640-fe0f",native:"🏊🏽‍♀️"},{unified:"1f3ca-1f3fe-200d-2640-fe0f",native:"🏊🏾‍♀️"},{unified:"1f3ca-1f3ff-200d-2640-fe0f",native:"🏊🏿‍♀️"}],version:4},person_with_ball:{id:"person_with_ball",name:"Person Bouncing Ball",keywords:["with","sports","human"],skins:[{unified:"26f9-fe0f",native:"⛹️"},{unified:"26f9-1f3fb",native:"⛹🏻"},{unified:"26f9-1f3fc",native:"⛹🏼"},{unified:"26f9-1f3fd",native:"⛹🏽"},{unified:"26f9-1f3fe",native:"⛹🏾"},{unified:"26f9-1f3ff",native:"⛹🏿"}],version:1},"man-bouncing-ball":{id:"man-bouncing-ball",name:"Man Bouncing Ball",keywords:["bouncing-ball","sport"],skins:[{unified:"26f9-fe0f-200d-2642-fe0f",native:"⛹️‍♂️"},{unified:"26f9-1f3fb-200d-2642-fe0f",native:"⛹🏻‍♂️"},{unified:"26f9-1f3fc-200d-2642-fe0f",native:"⛹🏼‍♂️"},{unified:"26f9-1f3fd-200d-2642-fe0f",native:"⛹🏽‍♂️"},{unified:"26f9-1f3fe-200d-2642-fe0f",native:"⛹🏾‍♂️"},{unified:"26f9-1f3ff-200d-2642-fe0f",native:"⛹🏿‍♂️"}],version:4},"woman-bouncing-ball":{id:"woman-bouncing-ball",name:"Woman Bouncing Ball",keywords:["bouncing-ball","sports","human","female"],skins:[{unified:"26f9-fe0f-200d-2640-fe0f",native:"⛹️‍♀️"},{unified:"26f9-1f3fb-200d-2640-fe0f",native:"⛹🏻‍♀️"},{unified:"26f9-1f3fc-200d-2640-fe0f",native:"⛹🏼‍♀️"},{unified:"26f9-1f3fd-200d-2640-fe0f",native:"⛹🏽‍♀️"},{unified:"26f9-1f3fe-200d-2640-fe0f",native:"⛹🏾‍♀️"},{unified:"26f9-1f3ff-200d-2640-fe0f",native:"⛹🏿‍♀️"}],version:4},weight_lifter:{id:"weight_lifter",name:"Person Lifting Weights",keywords:["weight","lifter","sports","training","exercise"],skins:[{unified:"1f3cb-fe0f",native:"🏋️"},{unified:"1f3cb-1f3fb",native:"🏋🏻"},{unified:"1f3cb-1f3fc",native:"🏋🏼"},{unified:"1f3cb-1f3fd",native:"🏋🏽"},{unified:"1f3cb-1f3fe",native:"🏋🏾"},{unified:"1f3cb-1f3ff",native:"🏋🏿"}],version:1},"man-lifting-weights":{id:"man-lifting-weights",name:"Man Lifting Weights",keywords:["lifting-weights","sport"],skins:[{unified:"1f3cb-fe0f-200d-2642-fe0f",native:"🏋️‍♂️"},{unified:"1f3cb-1f3fb-200d-2642-fe0f",native:"🏋🏻‍♂️"},{unified:"1f3cb-1f3fc-200d-2642-fe0f",native:"🏋🏼‍♂️"},{unified:"1f3cb-1f3fd-200d-2642-fe0f",native:"🏋🏽‍♂️"},{unified:"1f3cb-1f3fe-200d-2642-fe0f",native:"🏋🏾‍♂️"},{unified:"1f3cb-1f3ff-200d-2642-fe0f",native:"🏋🏿‍♂️"}],version:4},"woman-lifting-weights":{id:"woman-lifting-weights",name:"Woman Lifting Weights",keywords:["lifting-weights","sports","training","exercise","female"],skins:[{unified:"1f3cb-fe0f-200d-2640-fe0f",native:"🏋️‍♀️"},{unified:"1f3cb-1f3fb-200d-2640-fe0f",native:"🏋🏻‍♀️"},{unified:"1f3cb-1f3fc-200d-2640-fe0f",native:"🏋🏼‍♀️"},{unified:"1f3cb-1f3fd-200d-2640-fe0f",native:"🏋🏽‍♀️"},{unified:"1f3cb-1f3fe-200d-2640-fe0f",native:"🏋🏾‍♀️"},{unified:"1f3cb-1f3ff-200d-2640-fe0f",native:"🏋🏿‍♀️"}],version:4},bicyclist:{id:"bicyclist",name:"Bicyclist",keywords:["person","biking","sport","move"],skins:[{unified:"1f6b4",native:"🚴"},{unified:"1f6b4-1f3fb",native:"🚴🏻"},{unified:"1f6b4-1f3fc",native:"🚴🏼"},{unified:"1f6b4-1f3fd",native:"🚴🏽"},{unified:"1f6b4-1f3fe",native:"🚴🏾"},{unified:"1f6b4-1f3ff",native:"🚴🏿"}],version:1},"man-biking":{id:"man-biking",name:"Man Biking",keywords:["sports","bike","exercise","hipster"],skins:[{unified:"1f6b4-200d-2642-fe0f",native:"🚴‍♂️"},{unified:"1f6b4-1f3fb-200d-2642-fe0f",native:"🚴🏻‍♂️"},{unified:"1f6b4-1f3fc-200d-2642-fe0f",native:"🚴🏼‍♂️"},{unified:"1f6b4-1f3fd-200d-2642-fe0f",native:"🚴🏽‍♂️"},{unified:"1f6b4-1f3fe-200d-2642-fe0f",native:"🚴🏾‍♂️"},{unified:"1f6b4-1f3ff-200d-2642-fe0f",native:"🚴🏿‍♂️"}],version:4},"woman-biking":{id:"woman-biking",name:"Woman Biking",keywords:["sports","bike","exercise","hipster","female"],skins:[{unified:"1f6b4-200d-2640-fe0f",native:"🚴‍♀️"},{unified:"1f6b4-1f3fb-200d-2640-fe0f",native:"🚴🏻‍♀️"},{unified:"1f6b4-1f3fc-200d-2640-fe0f",native:"🚴🏼‍♀️"},{unified:"1f6b4-1f3fd-200d-2640-fe0f",native:"🚴🏽‍♀️"},{unified:"1f6b4-1f3fe-200d-2640-fe0f",native:"🚴🏾‍♀️"},{unified:"1f6b4-1f3ff-200d-2640-fe0f",native:"🚴🏿‍♀️"}],version:4},mountain_bicyclist:{id:"mountain_bicyclist",name:"Mountain Bicyclist",keywords:["person","biking","sport","move"],skins:[{unified:"1f6b5",native:"🚵"},{unified:"1f6b5-1f3fb",native:"🚵🏻"},{unified:"1f6b5-1f3fc",native:"🚵🏼"},{unified:"1f6b5-1f3fd",native:"🚵🏽"},{unified:"1f6b5-1f3fe",native:"🚵🏾"},{unified:"1f6b5-1f3ff",native:"🚵🏿"}],version:1},"man-mountain-biking":{id:"man-mountain-biking",name:"Man Mountain Biking",keywords:["mountain-biking","transportation","sports","human","race","bike"],skins:[{unified:"1f6b5-200d-2642-fe0f",native:"🚵‍♂️"},{unified:"1f6b5-1f3fb-200d-2642-fe0f",native:"🚵🏻‍♂️"},{unified:"1f6b5-1f3fc-200d-2642-fe0f",native:"🚵🏼‍♂️"},{unified:"1f6b5-1f3fd-200d-2642-fe0f",native:"🚵🏽‍♂️"},{unified:"1f6b5-1f3fe-200d-2642-fe0f",native:"🚵🏾‍♂️"},{unified:"1f6b5-1f3ff-200d-2642-fe0f",native:"🚵🏿‍♂️"}],version:4},"woman-mountain-biking":{id:"woman-mountain-biking",name:"Woman Mountain Biking",keywords:["mountain-biking","transportation","sports","human","race","bike","female"],skins:[{unified:"1f6b5-200d-2640-fe0f",native:"🚵‍♀️"},{unified:"1f6b5-1f3fb-200d-2640-fe0f",native:"🚵🏻‍♀️"},{unified:"1f6b5-1f3fc-200d-2640-fe0f",native:"🚵🏼‍♀️"},{unified:"1f6b5-1f3fd-200d-2640-fe0f",native:"🚵🏽‍♀️"},{unified:"1f6b5-1f3fe-200d-2640-fe0f",native:"🚵🏾‍♀️"},{unified:"1f6b5-1f3ff-200d-2640-fe0f",native:"🚵🏿‍♀️"}],version:4},person_doing_cartwheel:{id:"person_doing_cartwheel",name:"Person Cartwheeling",keywords:["doing","cartwheel","sport","gymnastic"],skins:[{unified:"1f938",native:"🤸"},{unified:"1f938-1f3fb",native:"🤸🏻"},{unified:"1f938-1f3fc",native:"🤸🏼"},{unified:"1f938-1f3fd",native:"🤸🏽"},{unified:"1f938-1f3fe",native:"🤸🏾"},{unified:"1f938-1f3ff",native:"🤸🏿"}],version:3},"man-cartwheeling":{id:"man-cartwheeling",name:"Man Cartwheeling",keywords:["gymnastics"],skins:[{unified:"1f938-200d-2642-fe0f",native:"🤸‍♂️"},{unified:"1f938-1f3fb-200d-2642-fe0f",native:"🤸🏻‍♂️"},{unified:"1f938-1f3fc-200d-2642-fe0f",native:"🤸🏼‍♂️"},{unified:"1f938-1f3fd-200d-2642-fe0f",native:"🤸🏽‍♂️"},{unified:"1f938-1f3fe-200d-2642-fe0f",native:"🤸🏾‍♂️"},{unified:"1f938-1f3ff-200d-2642-fe0f",native:"🤸🏿‍♂️"}],version:4},"woman-cartwheeling":{id:"woman-cartwheeling",name:"Woman Cartwheeling",keywords:["gymnastics"],skins:[{unified:"1f938-200d-2640-fe0f",native:"🤸‍♀️"},{unified:"1f938-1f3fb-200d-2640-fe0f",native:"🤸🏻‍♀️"},{unified:"1f938-1f3fc-200d-2640-fe0f",native:"🤸🏼‍♀️"},{unified:"1f938-1f3fd-200d-2640-fe0f",native:"🤸🏽‍♀️"},{unified:"1f938-1f3fe-200d-2640-fe0f",native:"🤸🏾‍♀️"},{unified:"1f938-1f3ff-200d-2640-fe0f",native:"🤸🏿‍♀️"}],version:4},wrestlers:{id:"wrestlers",name:"Wrestlers",keywords:["people","wrestling","sport"],skins:[{unified:"1f93c",native:"🤼"}],version:3},"man-wrestling":{id:"man-wrestling",name:"Men Wrestling",keywords:["man","sports","wrestlers"],skins:[{unified:"1f93c-200d-2642-fe0f",native:"🤼‍♂️"}],version:4},"woman-wrestling":{id:"woman-wrestling",name:"Women Wrestling",keywords:["woman","sports","wrestlers"],skins:[{unified:"1f93c-200d-2640-fe0f",native:"🤼‍♀️"}],version:4},water_polo:{id:"water_polo",name:"Water Polo",keywords:["person","playing","sport"],skins:[{unified:"1f93d",native:"🤽"},{unified:"1f93d-1f3fb",native:"🤽🏻"},{unified:"1f93d-1f3fc",native:"🤽🏼"},{unified:"1f93d-1f3fd",native:"🤽🏽"},{unified:"1f93d-1f3fe",native:"🤽🏾"},{unified:"1f93d-1f3ff",native:"🤽🏿"}],version:3},"man-playing-water-polo":{id:"man-playing-water-polo",name:"Man Playing Water Polo",keywords:["playing-water-polo","sports","pool"],skins:[{unified:"1f93d-200d-2642-fe0f",native:"🤽‍♂️"},{unified:"1f93d-1f3fb-200d-2642-fe0f",native:"🤽🏻‍♂️"},{unified:"1f93d-1f3fc-200d-2642-fe0f",native:"🤽🏼‍♂️"},{unified:"1f93d-1f3fd-200d-2642-fe0f",native:"🤽🏽‍♂️"},{unified:"1f93d-1f3fe-200d-2642-fe0f",native:"🤽🏾‍♂️"},{unified:"1f93d-1f3ff-200d-2642-fe0f",native:"🤽🏿‍♂️"}],version:4},"woman-playing-water-polo":{id:"woman-playing-water-polo",name:"Woman Playing Water Polo",keywords:["playing-water-polo","sports","pool"],skins:[{unified:"1f93d-200d-2640-fe0f",native:"🤽‍♀️"},{unified:"1f93d-1f3fb-200d-2640-fe0f",native:"🤽🏻‍♀️"},{unified:"1f93d-1f3fc-200d-2640-fe0f",native:"🤽🏼‍♀️"},{unified:"1f93d-1f3fd-200d-2640-fe0f",native:"🤽🏽‍♀️"},{unified:"1f93d-1f3fe-200d-2640-fe0f",native:"🤽🏾‍♀️"},{unified:"1f93d-1f3ff-200d-2640-fe0f",native:"🤽🏿‍♀️"}],version:4},handball:{id:"handball",name:"Handball",keywords:["person","playing","sport"],skins:[{unified:"1f93e",native:"🤾"},{unified:"1f93e-1f3fb",native:"🤾🏻"},{unified:"1f93e-1f3fc",native:"🤾🏼"},{unified:"1f93e-1f3fd",native:"🤾🏽"},{unified:"1f93e-1f3fe",native:"🤾🏾"},{unified:"1f93e-1f3ff",native:"🤾🏿"}],version:3},"man-playing-handball":{id:"man-playing-handball",name:"Man Playing Handball",keywords:["playing-handball","sports"],skins:[{unified:"1f93e-200d-2642-fe0f",native:"🤾‍♂️"},{unified:"1f93e-1f3fb-200d-2642-fe0f",native:"🤾🏻‍♂️"},{unified:"1f93e-1f3fc-200d-2642-fe0f",native:"🤾🏼‍♂️"},{unified:"1f93e-1f3fd-200d-2642-fe0f",native:"🤾🏽‍♂️"},{unified:"1f93e-1f3fe-200d-2642-fe0f",native:"🤾🏾‍♂️"},{unified:"1f93e-1f3ff-200d-2642-fe0f",native:"🤾🏿‍♂️"}],version:4},"woman-playing-handball":{id:"woman-playing-handball",name:"Woman Playing Handball",keywords:["playing-handball","sports"],skins:[{unified:"1f93e-200d-2640-fe0f",native:"🤾‍♀️"},{unified:"1f93e-1f3fb-200d-2640-fe0f",native:"🤾🏻‍♀️"},{unified:"1f93e-1f3fc-200d-2640-fe0f",native:"🤾🏼‍♀️"},{unified:"1f93e-1f3fd-200d-2640-fe0f",native:"🤾🏽‍♀️"},{unified:"1f93e-1f3fe-200d-2640-fe0f",native:"🤾🏾‍♀️"},{unified:"1f93e-1f3ff-200d-2640-fe0f",native:"🤾🏿‍♀️"}],version:4},juggling:{id:"juggling",name:"Juggling",keywords:["person","performance","balance"],skins:[{unified:"1f939",native:"🤹"},{unified:"1f939-1f3fb",native:"🤹🏻"},{unified:"1f939-1f3fc",native:"🤹🏼"},{unified:"1f939-1f3fd",native:"🤹🏽"},{unified:"1f939-1f3fe",native:"🤹🏾"},{unified:"1f939-1f3ff",native:"🤹🏿"}],version:3},"man-juggling":{id:"man-juggling",name:"Man Juggling",keywords:["juggle","balance","skill","multitask"],skins:[{unified:"1f939-200d-2642-fe0f",native:"🤹‍♂️"},{unified:"1f939-1f3fb-200d-2642-fe0f",native:"🤹🏻‍♂️"},{unified:"1f939-1f3fc-200d-2642-fe0f",native:"🤹🏼‍♂️"},{unified:"1f939-1f3fd-200d-2642-fe0f",native:"🤹🏽‍♂️"},{unified:"1f939-1f3fe-200d-2642-fe0f",native:"🤹🏾‍♂️"},{unified:"1f939-1f3ff-200d-2642-fe0f",native:"🤹🏿‍♂️"}],version:4},"woman-juggling":{id:"woman-juggling",name:"Woman Juggling",keywords:["juggle","balance","skill","multitask"],skins:[{unified:"1f939-200d-2640-fe0f",native:"🤹‍♀️"},{unified:"1f939-1f3fb-200d-2640-fe0f",native:"🤹🏻‍♀️"},{unified:"1f939-1f3fc-200d-2640-fe0f",native:"🤹🏼‍♀️"},{unified:"1f939-1f3fd-200d-2640-fe0f",native:"🤹🏽‍♀️"},{unified:"1f939-1f3fe-200d-2640-fe0f",native:"🤹🏾‍♀️"},{unified:"1f939-1f3ff-200d-2640-fe0f",native:"🤹🏿‍♀️"}],version:4},person_in_lotus_position:{id:"person_in_lotus_position",name:"Person in Lotus Position",keywords:["meditate"],skins:[{unified:"1f9d8",native:"🧘"},{unified:"1f9d8-1f3fb",native:"🧘🏻"},{unified:"1f9d8-1f3fc",native:"🧘🏼"},{unified:"1f9d8-1f3fd",native:"🧘🏽"},{unified:"1f9d8-1f3fe",native:"🧘🏾"},{unified:"1f9d8-1f3ff",native:"🧘🏿"}],version:5},man_in_lotus_position:{id:"man_in_lotus_position",name:"Man in Lotus Position",keywords:["male","meditation","yoga","serenity","zen","mindfulness"],skins:[{unified:"1f9d8-200d-2642-fe0f",native:"🧘‍♂️"},{unified:"1f9d8-1f3fb-200d-2642-fe0f",native:"🧘🏻‍♂️"},{unified:"1f9d8-1f3fc-200d-2642-fe0f",native:"🧘🏼‍♂️"},{unified:"1f9d8-1f3fd-200d-2642-fe0f",native:"🧘🏽‍♂️"},{unified:"1f9d8-1f3fe-200d-2642-fe0f",native:"🧘🏾‍♂️"},{unified:"1f9d8-1f3ff-200d-2642-fe0f",native:"🧘🏿‍♂️"}],version:5},woman_in_lotus_position:{id:"woman_in_lotus_position",name:"Woman in Lotus Position",keywords:["female","meditation","yoga","serenity","zen","mindfulness"],skins:[{unified:"1f9d8-200d-2640-fe0f",native:"🧘‍♀️"},{unified:"1f9d8-1f3fb-200d-2640-fe0f",native:"🧘🏻‍♀️"},{unified:"1f9d8-1f3fc-200d-2640-fe0f",native:"🧘🏼‍♀️"},{unified:"1f9d8-1f3fd-200d-2640-fe0f",native:"🧘🏽‍♀️"},{unified:"1f9d8-1f3fe-200d-2640-fe0f",native:"🧘🏾‍♀️"},{unified:"1f9d8-1f3ff-200d-2640-fe0f",native:"🧘🏿‍♀️"}],version:5},bath:{id:"bath",name:"Bath",keywords:["person","taking","clean","shower","bathroom"],skins:[{unified:"1f6c0",native:"🛀"},{unified:"1f6c0-1f3fb",native:"🛀🏻"},{unified:"1f6c0-1f3fc",native:"🛀🏼"},{unified:"1f6c0-1f3fd",native:"🛀🏽"},{unified:"1f6c0-1f3fe",native:"🛀🏾"},{unified:"1f6c0-1f3ff",native:"🛀🏿"}],version:1},sleeping_accommodation:{id:"sleeping_accommodation",name:"Person in Bed",keywords:["sleeping","accommodation","rest"],skins:[{unified:"1f6cc",native:"🛌"},{unified:"1f6cc-1f3fb",native:"🛌🏻"},{unified:"1f6cc-1f3fc",native:"🛌🏼"},{unified:"1f6cc-1f3fd",native:"🛌🏽"},{unified:"1f6cc-1f3fe",native:"🛌🏾"},{unified:"1f6cc-1f3ff",native:"🛌🏿"}],version:1},people_holding_hands:{id:"people_holding_hands",name:"People Holding Hands",keywords:["friendship"],skins:[{unified:"1f9d1-200d-1f91d-200d-1f9d1",native:"🧑‍🤝‍🧑"},{unified:"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb",native:"🧑🏻‍🤝‍🧑🏻"},{unified:"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc",native:"🧑🏼‍🤝‍🧑🏼"},{unified:"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd",native:"🧑🏽‍🤝‍🧑🏽"},{unified:"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe",native:"🧑🏾‍🤝‍🧑🏾"},{unified:"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff",native:"🧑🏿‍🤝‍🧑🏿"}],version:12},two_women_holding_hands:{id:"two_women_holding_hands",name:"Women Holding Hands",keywords:["two","pair","friendship","couple","love","like","female","people","human"],skins:[{unified:"1f46d",native:"👭"},{unified:"1f46d-1f3fb",native:"👭🏻"},{unified:"1f46d-1f3fc",native:"👭🏼"},{unified:"1f46d-1f3fd",native:"👭🏽"},{unified:"1f46d-1f3fe",native:"👭🏾"},{unified:"1f46d-1f3ff",native:"👭🏿"}],version:1},man_and_woman_holding_hands:{id:"man_and_woman_holding_hands",name:"Man and Woman Holding Hands",keywords:["couple","pair","people","human","love","date","dating","like","affection","valentines","marriage"],skins:[{unified:"1f46b",native:"👫"},{unified:"1f46b-1f3fb",native:"👫🏻"},{unified:"1f46b-1f3fc",native:"👫🏼"},{unified:"1f46b-1f3fd",native:"👫🏽"},{unified:"1f46b-1f3fe",native:"👫🏾"},{unified:"1f46b-1f3ff",native:"👫🏿"}],version:1},two_men_holding_hands:{id:"two_men_holding_hands",name:"Men Holding Hands",keywords:["two","pair","couple","love","like","bromance","friendship","people","human"],skins:[{unified:"1f46c",native:"👬"},{unified:"1f46c-1f3fb",native:"👬🏻"},{unified:"1f46c-1f3fc",native:"👬🏼"},{unified:"1f46c-1f3fd",native:"👬🏽"},{unified:"1f46c-1f3fe",native:"👬🏾"},{unified:"1f46c-1f3ff",native:"👬🏿"}],version:1},couplekiss:{id:"couplekiss",name:"Kiss",keywords:["couplekiss","pair","valentines","love","like","dating","marriage"],skins:[{unified:"1f48f",native:"💏"},{unified:"1f48f-1f3fb",native:"💏🏻"},{unified:"1f48f-1f3fc",native:"💏🏼"},{unified:"1f48f-1f3fd",native:"💏🏽"},{unified:"1f48f-1f3fe",native:"💏🏾"},{unified:"1f48f-1f3ff",native:"💏🏿"}],version:1},"woman-kiss-man":{id:"woman-kiss-man",name:"Kiss: Woman, Man",keywords:["woman","kiss-man","kiss","love"],skins:[{unified:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",native:"👩‍❤️‍💋‍👨"},{unified:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",native:"👩🏻‍❤️‍💋‍👨🏻"},{unified:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",native:"👩🏼‍❤️‍💋‍👨🏼"},{unified:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",native:"👩🏽‍❤️‍💋‍👨🏽"},{unified:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",native:"👩🏾‍❤️‍💋‍👨🏾"},{unified:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",native:"👩🏿‍❤️‍💋‍👨🏿"}],version:2},"man-kiss-man":{id:"man-kiss-man",name:"Kiss: Man, Man",keywords:["kiss-man","kiss","pair","valentines","love","like","dating","marriage"],skins:[{unified:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",native:"👨‍❤️‍💋‍👨"},{unified:"1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",native:"👨🏻‍❤️‍💋‍👨🏻"},{unified:"1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",native:"👨🏼‍❤️‍💋‍👨🏼"},{unified:"1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",native:"👨🏽‍❤️‍💋‍👨🏽"},{unified:"1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",native:"👨🏾‍❤️‍💋‍👨🏾"},{unified:"1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",native:"👨🏿‍❤️‍💋‍👨🏿"}],version:2},"woman-kiss-woman":{id:"woman-kiss-woman",name:"Kiss: Woman, Woman",keywords:["kiss-woman","kiss","pair","valentines","love","like","dating","marriage"],skins:[{unified:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",native:"👩‍❤️‍💋‍👩"},{unified:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",native:"👩🏻‍❤️‍💋‍👩🏻"},{unified:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",native:"👩🏼‍❤️‍💋‍👩🏼"},{unified:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",native:"👩🏽‍❤️‍💋‍👩🏽"},{unified:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",native:"👩🏾‍❤️‍💋‍👩🏾"},{unified:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",native:"👩🏿‍❤️‍💋‍👩🏿"}],version:2},couple_with_heart:{id:"couple_with_heart",name:"Couple with Heart",keywords:["pair","love","like","affection","human","dating","valentines","marriage"],skins:[{unified:"1f491",native:"💑"},{unified:"1f491-1f3fb",native:"💑🏻"},{unified:"1f491-1f3fc",native:"💑🏼"},{unified:"1f491-1f3fd",native:"💑🏽"},{unified:"1f491-1f3fe",native:"💑🏾"},{unified:"1f491-1f3ff",native:"💑🏿"}],version:1},"woman-heart-man":{id:"woman-heart-man",name:"Couple with Heart: Woman, Man",keywords:["woman","heart-man","heart","love"],skins:[{unified:"1f469-200d-2764-fe0f-200d-1f468",native:"👩‍❤️‍👨"},{unified:"1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb",native:"👩🏻‍❤️‍👨🏻"},{unified:"1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc",native:"👩🏼‍❤️‍👨🏼"},{unified:"1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd",native:"👩🏽‍❤️‍👨🏽"},{unified:"1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe",native:"👩🏾‍❤️‍👨🏾"},{unified:"1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff",native:"👩🏿‍❤️‍👨🏿"}],version:2},"man-heart-man":{id:"man-heart-man",name:"Couple with Heart: Man, Man",keywords:["heart-man","heart","pair","love","like","affection","human","dating","valentines","marriage"],skins:[{unified:"1f468-200d-2764-fe0f-200d-1f468",native:"👨‍❤️‍👨"},{unified:"1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb",native:"👨🏻‍❤️‍👨🏻"},{unified:"1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc",native:"👨🏼‍❤️‍👨🏼"},{unified:"1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd",native:"👨🏽‍❤️‍👨🏽"},{unified:"1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe",native:"👨🏾‍❤️‍👨🏾"},{unified:"1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff",native:"👨🏿‍❤️‍👨🏿"}],version:2},"woman-heart-woman":{id:"woman-heart-woman",name:"Couple with Heart: Woman, Woman",keywords:["heart-woman","heart","pair","love","like","affection","human","dating","valentines","marriage"],skins:[{unified:"1f469-200d-2764-fe0f-200d-1f469",native:"👩‍❤️‍👩"},{unified:"1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb",native:"👩🏻‍❤️‍👩🏻"},{unified:"1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc",native:"👩🏼‍❤️‍👩🏼"},{unified:"1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd",native:"👩🏽‍❤️‍👩🏽"},{unified:"1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe",native:"👩🏾‍❤️‍👩🏾"},{unified:"1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff",native:"👩🏿‍❤️‍👩🏿"}],version:2},family:{id:"family",name:"Family",keywords:["home","parents","child","mom","dad","father","mother","people","human"],skins:[{unified:"1f46a",native:"👪"}],version:1},"man-woman-boy":{id:"man-woman-boy",name:"Family: Man, Woman, Boy",keywords:["man","woman-boy","family","woman","love"],skins:[{unified:"1f468-200d-1f469-200d-1f466",native:"👨‍👩‍👦"}],version:2},"man-woman-girl":{id:"man-woman-girl",name:"Family: Man, Woman, Girl",keywords:["man","woman-girl","family","woman","home","parents","people","human","child"],skins:[{unified:"1f468-200d-1f469-200d-1f467",native:"👨‍👩‍👧"}],version:2},"man-woman-girl-boy":{id:"man-woman-girl-boy",name:"Family: Man, Woman, Girl, Boy",keywords:["man","woman-girl-boy","family","woman","girl","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f469-200d-1f467-200d-1f466",native:"👨‍👩‍👧‍👦"}],version:2},"man-woman-boy-boy":{id:"man-woman-boy-boy",name:"Family: Man, Woman, Boy, Boy",keywords:["man","woman-boy-boy","family","woman","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f469-200d-1f466-200d-1f466",native:"👨‍👩‍👦‍👦"}],version:2},"man-woman-girl-girl":{id:"man-woman-girl-girl",name:"Family: Man, Woman, Girl, Girl",keywords:["man","woman-girl-girl","family","woman","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f469-200d-1f467-200d-1f467",native:"👨‍👩‍👧‍👧"}],version:2},"man-man-boy":{id:"man-man-boy",name:"Family: Man, Man, Boy",keywords:["man","man-boy","family","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f466",native:"👨‍👨‍👦"}],version:2},"man-man-girl":{id:"man-man-girl",name:"Family: Man, Man, Girl",keywords:["man","man-girl","family","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f467",native:"👨‍👨‍👧"}],version:2},"man-man-girl-boy":{id:"man-man-girl-boy",name:"Family: Man, Man, Girl, Boy",keywords:["man","man-girl-boy","family","girl","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f467-200d-1f466",native:"👨‍👨‍👧‍👦"}],version:2},"man-man-boy-boy":{id:"man-man-boy-boy",name:"Family: Man, Man, Boy, Boy",keywords:["man","man-boy-boy","family","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f466-200d-1f466",native:"👨‍👨‍👦‍👦"}],version:2},"man-man-girl-girl":{id:"man-man-girl-girl",name:"Family: Man, Man, Girl, Girl",keywords:["man","man-girl-girl","family","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f467-200d-1f467",native:"👨‍👨‍👧‍👧"}],version:2},"woman-woman-boy":{id:"woman-woman-boy",name:"Family: Woman, Woman, Boy",keywords:["woman","woman-boy","family","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f466",native:"👩‍👩‍👦"}],version:2},"woman-woman-girl":{id:"woman-woman-girl",name:"Family: Woman, Woman, Girl",keywords:["woman","woman-girl","family","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f467",native:"👩‍👩‍👧"}],version:2},"woman-woman-girl-boy":{id:"woman-woman-girl-boy",name:"Family: Woman, Woman, Girl, Boy",keywords:["woman","woman-girl-boy","family","girl","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f467-200d-1f466",native:"👩‍👩‍👧‍👦"}],version:2},"woman-woman-boy-boy":{id:"woman-woman-boy-boy",name:"Family: Woman, Woman, Boy, Boy",keywords:["woman","woman-boy-boy","family","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f466-200d-1f466",native:"👩‍👩‍👦‍👦"}],version:2},"woman-woman-girl-girl":{id:"woman-woman-girl-girl",name:"Family: Woman, Woman, Girl, Girl",keywords:["woman","woman-girl-girl","family","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f467-200d-1f467",native:"👩‍👩‍👧‍👧"}],version:2},"man-boy":{id:"man-boy",name:"Family: Man, Boy",keywords:["man","family","home","parent","people","human","child"],skins:[{unified:"1f468-200d-1f466",native:"👨‍👦"}],version:4},"man-boy-boy":{id:"man-boy-boy",name:"Family: Man, Boy, Boy",keywords:["man","boy-boy","family","home","parent","people","human","children"],skins:[{unified:"1f468-200d-1f466-200d-1f466",native:"👨‍👦‍👦"}],version:4},"man-girl":{id:"man-girl",name:"Family: Man, Girl",keywords:["man","family","home","parent","people","human","child"],skins:[{unified:"1f468-200d-1f467",native:"👨‍👧"}],version:4},"man-girl-boy":{id:"man-girl-boy",name:"Family: Man, Girl, Boy",keywords:["man","girl-boy","family","girl","home","parent","people","human","children"],skins:[{unified:"1f468-200d-1f467-200d-1f466",native:"👨‍👧‍👦"}],version:4},"man-girl-girl":{id:"man-girl-girl",name:"Family: Man, Girl, Girl",keywords:["man","girl-girl","family","home","parent","people","human","children"],skins:[{unified:"1f468-200d-1f467-200d-1f467",native:"👨‍👧‍👧"}],version:4},"woman-boy":{id:"woman-boy",name:"Family: Woman, Boy",keywords:["woman","family","home","parent","people","human","child"],skins:[{unified:"1f469-200d-1f466",native:"👩‍👦"}],version:4},"woman-boy-boy":{id:"woman-boy-boy",name:"Family: Woman, Boy, Boy",keywords:["woman","boy-boy","family","home","parent","people","human","children"],skins:[{unified:"1f469-200d-1f466-200d-1f466",native:"👩‍👦‍👦"}],version:4},"woman-girl":{id:"woman-girl",name:"Family: Woman, Girl",keywords:["woman","family","home","parent","people","human","child"],skins:[{unified:"1f469-200d-1f467",native:"👩‍👧"}],version:4},"woman-girl-boy":{id:"woman-girl-boy",name:"Family: Woman, Girl, Boy",keywords:["woman","girl-boy","family","girl","home","parent","people","human","children"],skins:[{unified:"1f469-200d-1f467-200d-1f466",native:"👩‍👧‍👦"}],version:4},"woman-girl-girl":{id:"woman-girl-girl",name:"Family: Woman, Girl, Girl",keywords:["woman","girl-girl","family","home","parent","people","human","children"],skins:[{unified:"1f469-200d-1f467-200d-1f467",native:"👩‍👧‍👧"}],version:4},speaking_head_in_silhouette:{id:"speaking_head_in_silhouette",name:"Speaking Head",keywords:["in","silhouette","user","person","human","sing","say","talk"],skins:[{unified:"1f5e3-fe0f",native:"🗣️"}],version:1},bust_in_silhouette:{id:"bust_in_silhouette",name:"Bust in Silhouette",keywords:["user","person","human"],skins:[{unified:"1f464",native:"👤"}],version:1},busts_in_silhouette:{id:"busts_in_silhouette",name:"Busts in Silhouette",keywords:["user","person","human","group","team"],skins:[{unified:"1f465",native:"👥"}],version:1},people_hugging:{id:"people_hugging",name:"People Hugging",keywords:["care"],skins:[{unified:"1fac2",native:"🫂"}],version:13},footprints:{id:"footprints",name:"Footprints",keywords:["feet","tracking","walking","beach"],skins:[{unified:"1f463",native:"👣"}],version:1},monkey_face:{id:"monkey_face",name:"Monkey Face",emoticons:[":o)"],keywords:["animal","nature","circus"],skins:[{unified:"1f435",native:"🐵"}],version:1},monkey:{id:"monkey",name:"Monkey",keywords:["animal","nature","banana","circus"],skins:[{unified:"1f412",native:"🐒"}],version:1},gorilla:{id:"gorilla",name:"Gorilla",keywords:["animal","nature","circus"],skins:[{unified:"1f98d",native:"🦍"}],version:3},orangutan:{id:"orangutan",name:"Orangutan",keywords:["animal"],skins:[{unified:"1f9a7",native:"🦧"}],version:12},dog:{id:"dog",name:"Dog Face",keywords:["animal","friend","nature","woof","puppy","pet","faithful"],skins:[{unified:"1f436",native:"🐶"}],version:1},dog2:{id:"dog2",name:"Dog",keywords:["dog2","animal","nature","friend","doge","pet","faithful"],skins:[{unified:"1f415",native:"🐕"}],version:1},guide_dog:{id:"guide_dog",name:"Guide Dog",keywords:["animal","blind"],skins:[{unified:"1f9ae",native:"🦮"}],version:12},service_dog:{id:"service_dog",name:"Service Dog",keywords:["blind","animal"],skins:[{unified:"1f415-200d-1f9ba",native:"🐕‍🦺"}],version:12},poodle:{id:"poodle",name:"Poodle",keywords:["dog","animal","101","nature","pet"],skins:[{unified:"1f429",native:"🐩"}],version:1},wolf:{id:"wolf",name:"Wolf",keywords:["animal","nature","wild"],skins:[{unified:"1f43a",native:"🐺"}],version:1},fox_face:{id:"fox_face",name:"Fox",keywords:["face","animal","nature"],skins:[{unified:"1f98a",native:"🦊"}],version:3},raccoon:{id:"raccoon",name:"Raccoon",keywords:["animal","nature"],skins:[{unified:"1f99d",native:"🦝"}],version:11},cat:{id:"cat",name:"Cat Face",keywords:["animal","meow","nature","pet","kitten"],skins:[{unified:"1f431",native:"🐱"}],version:1},cat2:{id:"cat2",name:"Cat",keywords:["cat2","animal","meow","pet","cats"],skins:[{unified:"1f408",native:"🐈"}],version:1},black_cat:{id:"black_cat",name:"Black Cat",keywords:["superstition","luck"],skins:[{unified:"1f408-200d-2b1b",native:"🐈‍⬛"}],version:13},lion_face:{id:"lion_face",name:"Lion",keywords:["face","animal","nature"],skins:[{unified:"1f981",native:"🦁"}],version:1},tiger:{id:"tiger",name:"Tiger Face",keywords:["animal","cat","danger","wild","nature","roar"],skins:[{unified:"1f42f",native:"🐯"}],version:1},tiger2:{id:"tiger2",name:"Tiger",keywords:["tiger2","animal","nature","roar"],skins:[{unified:"1f405",native:"🐅"}],version:1},leopard:{id:"leopard",name:"Leopard",keywords:["animal","nature"],skins:[{unified:"1f406",native:"🐆"}],version:1},horse:{id:"horse",name:"Horse Face",keywords:["animal","brown","nature"],skins:[{unified:"1f434",native:"🐴"}],version:1},moose:{id:"moose",name:"Moose",keywords:["shrek","canada","sweden","sven","cool"],skins:[{unified:"1face",native:"🫎"}],version:15},donkey:{id:"donkey",name:"Donkey",keywords:["eeyore","mule"],skins:[{unified:"1facf",native:"🫏"}],version:15},racehorse:{id:"racehorse",name:"Horse",keywords:["racehorse","animal","gamble","luck"],skins:[{unified:"1f40e",native:"🐎"}],version:1},unicorn_face:{id:"unicorn_face",name:"Unicorn",keywords:["face","animal","nature","mystical"],skins:[{unified:"1f984",native:"🦄"}],version:1},zebra_face:{id:"zebra_face",name:"Zebra",keywords:["face","animal","nature","stripes","safari"],skins:[{unified:"1f993",native:"🦓"}],version:5},deer:{id:"deer",name:"Deer",keywords:["animal","nature","horns","venison"],skins:[{unified:"1f98c",native:"🦌"}],version:3},bison:{id:"bison",name:"Bison",keywords:["ox"],skins:[{unified:"1f9ac",native:"🦬"}],version:13},cow:{id:"cow",name:"Cow Face",keywords:["beef","ox","animal","nature","moo","milk"],skins:[{unified:"1f42e",native:"🐮"}],version:1},ox:{id:"ox",name:"Ox",keywords:["animal","cow","beef"],skins:[{unified:"1f402",native:"🐂"}],version:1},water_buffalo:{id:"water_buffalo",name:"Water Buffalo",keywords:["animal","nature","ox","cow"],skins:[{unified:"1f403",native:"🐃"}],version:1},cow2:{id:"cow2",name:"Cow",keywords:["cow2","beef","ox","animal","nature","moo","milk"],skins:[{unified:"1f404",native:"🐄"}],version:1},pig:{id:"pig",name:"Pig Face",keywords:["animal","oink","nature"],skins:[{unified:"1f437",native:"🐷"}],version:1},pig2:{id:"pig2",name:"Pig",keywords:["pig2","animal","nature"],skins:[{unified:"1f416",native:"🐖"}],version:1},boar:{id:"boar",name:"Boar",keywords:["animal","nature"],skins:[{unified:"1f417",native:"🐗"}],version:1},pig_nose:{id:"pig_nose",name:"Pig Nose",keywords:["animal","oink"],skins:[{unified:"1f43d",native:"🐽"}],version:1},ram:{id:"ram",name:"Ram",keywords:["animal","sheep","nature"],skins:[{unified:"1f40f",native:"🐏"}],version:1},sheep:{id:"sheep",name:"Ewe",keywords:["sheep","animal","nature","wool","shipit"],skins:[{unified:"1f411",native:"🐑"}],version:1},goat:{id:"goat",name:"Goat",keywords:["animal","nature"],skins:[{unified:"1f410",native:"🐐"}],version:1},dromedary_camel:{id:"dromedary_camel",name:"Camel",keywords:["dromedary","animal","hot","desert","hump"],skins:[{unified:"1f42a",native:"🐪"}],version:1},camel:{id:"camel",name:"Bactrian Camel",keywords:["two","hump","animal","nature","hot","desert"],skins:[{unified:"1f42b",native:"🐫"}],version:1},llama:{id:"llama",name:"Llama",keywords:["animal","nature","alpaca"],skins:[{unified:"1f999",native:"🦙"}],version:11},giraffe_face:{id:"giraffe_face",name:"Giraffe",keywords:["face","animal","nature","spots","safari"],skins:[{unified:"1f992",native:"🦒"}],version:5},elephant:{id:"elephant",name:"Elephant",keywords:["animal","nature","nose","th","circus"],skins:[{unified:"1f418",native:"🐘"}],version:1},mammoth:{id:"mammoth",name:"Mammoth",keywords:["elephant","tusks"],skins:[{unified:"1f9a3",native:"🦣"}],version:13},rhinoceros:{id:"rhinoceros",name:"Rhinoceros",keywords:["animal","nature","horn"],skins:[{unified:"1f98f",native:"🦏"}],version:3},hippopotamus:{id:"hippopotamus",name:"Hippopotamus",keywords:["animal","nature"],skins:[{unified:"1f99b",native:"🦛"}],version:11},mouse:{id:"mouse",name:"Mouse Face",keywords:["animal","nature","cheese","wedge","rodent"],skins:[{unified:"1f42d",native:"🐭"}],version:1},mouse2:{id:"mouse2",name:"Mouse",keywords:["mouse2","animal","nature","rodent"],skins:[{unified:"1f401",native:"🐁"}],version:1},rat:{id:"rat",name:"Rat",keywords:["animal","mouse","rodent"],skins:[{unified:"1f400",native:"🐀"}],version:1},hamster:{id:"hamster",name:"Hamster",keywords:["animal","nature"],skins:[{unified:"1f439",native:"🐹"}],version:1},rabbit:{id:"rabbit",name:"Rabbit Face",keywords:["animal","nature","pet","spring","magic","bunny"],skins:[{unified:"1f430",native:"🐰"}],version:1},rabbit2:{id:"rabbit2",name:"Rabbit",keywords:["rabbit2","animal","nature","pet","magic","spring"],skins:[{unified:"1f407",native:"🐇"}],version:1},chipmunk:{id:"chipmunk",name:"Chipmunk",keywords:["animal","nature","rodent","squirrel"],skins:[{unified:"1f43f-fe0f",native:"🐿️"}],version:1},beaver:{id:"beaver",name:"Beaver",keywords:["animal","rodent"],skins:[{unified:"1f9ab",native:"🦫"}],version:13},hedgehog:{id:"hedgehog",name:"Hedgehog",keywords:["animal","nature","spiny"],skins:[{unified:"1f994",native:"🦔"}],version:5},bat:{id:"bat",name:"Bat",keywords:["animal","nature","blind","vampire"],skins:[{unified:"1f987",native:"🦇"}],version:3},bear:{id:"bear",name:"Bear",keywords:["animal","nature","wild"],skins:[{unified:"1f43b",native:"🐻"}],version:1},polar_bear:{id:"polar_bear",name:"Polar Bear",keywords:["animal","arctic"],skins:[{unified:"1f43b-200d-2744-fe0f",native:"🐻‍❄️"}],version:13},koala:{id:"koala",name:"Koala",keywords:["animal","nature"],skins:[{unified:"1f428",native:"🐨"}],version:1},panda_face:{id:"panda_face",name:"Panda",keywords:["face","animal","nature"],skins:[{unified:"1f43c",native:"🐼"}],version:1},sloth:{id:"sloth",name:"Sloth",keywords:["animal"],skins:[{unified:"1f9a5",native:"🦥"}],version:12},otter:{id:"otter",name:"Otter",keywords:["animal"],skins:[{unified:"1f9a6",native:"🦦"}],version:12},skunk:{id:"skunk",name:"Skunk",keywords:["animal"],skins:[{unified:"1f9a8",native:"🦨"}],version:12},kangaroo:{id:"kangaroo",name:"Kangaroo",keywords:["animal","nature","australia","joey","hop","marsupial"],skins:[{unified:"1f998",native:"🦘"}],version:11},badger:{id:"badger",name:"Badger",keywords:["animal","nature","honey"],skins:[{unified:"1f9a1",native:"🦡"}],version:11},feet:{id:"feet",name:"Paw Prints",keywords:["feet","animal","tracking","footprints","dog","cat","pet"],skins:[{unified:"1f43e",native:"🐾"}],version:1},turkey:{id:"turkey",name:"Turkey",keywords:["animal","bird"],skins:[{unified:"1f983",native:"🦃"}],version:1},chicken:{id:"chicken",name:"Chicken",keywords:["animal","cluck","nature","bird"],skins:[{unified:"1f414",native:"🐔"}],version:1},rooster:{id:"rooster",name:"Rooster",keywords:["animal","nature","chicken"],skins:[{unified:"1f413",native:"🐓"}],version:1},hatching_chick:{id:"hatching_chick",name:"Hatching Chick",keywords:["animal","chicken","egg","born","baby","bird"],skins:[{unified:"1f423",native:"🐣"}],version:1},baby_chick:{id:"baby_chick",name:"Baby Chick",keywords:["animal","chicken","bird"],skins:[{unified:"1f424",native:"🐤"}],version:1},hatched_chick:{id:"hatched_chick",name:"Front-Facing Baby Chick",keywords:["hatched","front","facing","animal","chicken","bird"],skins:[{unified:"1f425",native:"🐥"}],version:1},bird:{id:"bird",name:"Bird",keywords:["animal","nature","fly","tweet","spring"],skins:[{unified:"1f426",native:"🐦"}],version:1},penguin:{id:"penguin",name:"Penguin",keywords:["animal","nature"],skins:[{unified:"1f427",native:"🐧"}],version:1},dove_of_peace:{id:"dove_of_peace",name:"Dove",keywords:["of","peace","animal","bird"],skins:[{unified:"1f54a-fe0f",native:"🕊️"}],version:1},eagle:{id:"eagle",name:"Eagle",keywords:["animal","nature","bird"],skins:[{unified:"1f985",native:"🦅"}],version:3},duck:{id:"duck",name:"Duck",keywords:["animal","nature","bird","mallard"],skins:[{unified:"1f986",native:"🦆"}],version:3},swan:{id:"swan",name:"Swan",keywords:["animal","nature","bird"],skins:[{unified:"1f9a2",native:"🦢"}],version:11},owl:{id:"owl",name:"Owl",keywords:["animal","nature","bird","hoot"],skins:[{unified:"1f989",native:"🦉"}],version:3},dodo:{id:"dodo",name:"Dodo",keywords:["animal","bird"],skins:[{unified:"1f9a4",native:"🦤"}],version:13},feather:{id:"feather",name:"Feather",keywords:["bird","fly"],skins:[{unified:"1fab6",native:"🪶"}],version:13},flamingo:{id:"flamingo",name:"Flamingo",keywords:["animal"],skins:[{unified:"1f9a9",native:"🦩"}],version:12},peacock:{id:"peacock",name:"Peacock",keywords:["animal","nature","peahen","bird"],skins:[{unified:"1f99a",native:"🦚"}],version:11},parrot:{id:"parrot",name:"Parrot",keywords:["animal","nature","bird","pirate","talk"],skins:[{unified:"1f99c",native:"🦜"}],version:11},wing:{id:"wing",name:"Wing",keywords:["angel","birds","flying"],skins:[{unified:"1fabd",native:"🪽"}],version:15},black_bird:{id:"black_bird",name:"Black Bird",keywords:["crow"],skins:[{unified:"1f426-200d-2b1b",native:"🐦‍⬛"}],version:15},goose:{id:"goose",name:"Goose",keywords:["silly","jemima","goosebumps"],skins:[{unified:"1fabf",native:"🪿"}],version:15},frog:{id:"frog",name:"Frog",keywords:["animal","nature","croak","toad"],skins:[{unified:"1f438",native:"🐸"}],version:1},crocodile:{id:"crocodile",name:"Crocodile",keywords:["animal","nature","reptile","lizard","alligator"],skins:[{unified:"1f40a",native:"🐊"}],version:1},turtle:{id:"turtle",name:"Turtle",keywords:["animal","slow","nature","tortoise"],skins:[{unified:"1f422",native:"🐢"}],version:1},lizard:{id:"lizard",name:"Lizard",keywords:["animal","nature","reptile"],skins:[{unified:"1f98e",native:"🦎"}],version:3},snake:{id:"snake",name:"Snake",keywords:["animal","evil","nature","hiss","python"],skins:[{unified:"1f40d",native:"🐍"}],version:1},dragon_face:{id:"dragon_face",name:"Dragon Face",keywords:["animal","myth","nature","chinese","green"],skins:[{unified:"1f432",native:"🐲"}],version:1},dragon:{id:"dragon",name:"Dragon",keywords:["animal","myth","nature","chinese","green"],skins:[{unified:"1f409",native:"🐉"}],version:1},sauropod:{id:"sauropod",name:"Sauropod",keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],skins:[{unified:"1f995",native:"🦕"}],version:5},"t-rex":{id:"t-rex",name:"T-Rex",keywords:["t","rex","animal","nature","dinosaur","tyrannosaurus","extinct"],skins:[{unified:"1f996",native:"🦖"}],version:5},whale:{id:"whale",name:"Spouting Whale",keywords:["animal","nature","sea","ocean"],skins:[{unified:"1f433",native:"🐳"}],version:1},whale2:{id:"whale2",name:"Whale",keywords:["whale2","animal","nature","sea","ocean"],skins:[{unified:"1f40b",native:"🐋"}],version:1},dolphin:{id:"dolphin",name:"Dolphin",keywords:["flipper","animal","nature","fish","sea","ocean","fins","beach"],skins:[{unified:"1f42c",native:"🐬"}],version:1},seal:{id:"seal",name:"Seal",keywords:["animal","creature","sea"],skins:[{unified:"1f9ad",native:"🦭"}],version:13},fish:{id:"fish",name:"Fish",keywords:["animal","food","nature"],skins:[{unified:"1f41f",native:"🐟"}],version:1},tropical_fish:{id:"tropical_fish",name:"Tropical Fish",keywords:["animal","swim","ocean","beach","nemo"],skins:[{unified:"1f420",native:"🐠"}],version:1},blowfish:{id:"blowfish",name:"Blowfish",keywords:["animal","nature","food","sea","ocean"],skins:[{unified:"1f421",native:"🐡"}],version:1},shark:{id:"shark",name:"Shark",keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],skins:[{unified:"1f988",native:"🦈"}],version:3},octopus:{id:"octopus",name:"Octopus",keywords:["animal","creature","ocean","sea","nature","beach"],skins:[{unified:"1f419",native:"🐙"}],version:1},shell:{id:"shell",name:"Spiral Shell",keywords:["nature","sea","beach"],skins:[{unified:"1f41a",native:"🐚"}],version:1},coral:{id:"coral",name:"Coral",keywords:["ocean","sea","reef"],skins:[{unified:"1fab8",native:"🪸"}],version:14},jellyfish:{id:"jellyfish",name:"Jellyfish",keywords:["sting","tentacles"],skins:[{unified:"1fabc",native:"🪼"}],version:15},snail:{id:"snail",name:"Snail",keywords:["slow","animal","shell"],skins:[{unified:"1f40c",native:"🐌"}],version:1},butterfly:{id:"butterfly",name:"Butterfly",keywords:["animal","insect","nature","caterpillar"],skins:[{unified:"1f98b",native:"🦋"}],version:3},bug:{id:"bug",name:"Bug",keywords:["animal","insect","nature","worm"],skins:[{unified:"1f41b",native:"🐛"}],version:1},ant:{id:"ant",name:"Ant",keywords:["animal","insect","nature","bug"],skins:[{unified:"1f41c",native:"🐜"}],version:1},bee:{id:"bee",name:"Honeybee",keywords:["bee","animal","insect","nature","bug","spring","honey"],skins:[{unified:"1f41d",native:"🐝"}],version:1},beetle:{id:"beetle",name:"Beetle",keywords:["insect"],skins:[{unified:"1fab2",native:"🪲"}],version:13},ladybug:{id:"ladybug",name:"Lady Beetle",keywords:["ladybug","animal","insect","nature"],skins:[{unified:"1f41e",native:"🐞"}],version:1},cricket:{id:"cricket",name:"Cricket",keywords:["animal","chirp"],skins:[{unified:"1f997",native:"🦗"}],version:5},cockroach:{id:"cockroach",name:"Cockroach",keywords:["insect","pests"],skins:[{unified:"1fab3",native:"🪳"}],version:13},spider:{id:"spider",name:"Spider",keywords:["animal","arachnid"],skins:[{unified:"1f577-fe0f",native:"🕷️"}],version:1},spider_web:{id:"spider_web",name:"Spider Web",keywords:["animal","insect","arachnid","silk"],skins:[{unified:"1f578-fe0f",native:"🕸️"}],version:1},scorpion:{id:"scorpion",name:"Scorpion",keywords:["animal","arachnid"],skins:[{unified:"1f982",native:"🦂"}],version:1},mosquito:{id:"mosquito",name:"Mosquito",keywords:["animal","nature","insect","malaria"],skins:[{unified:"1f99f",native:"🦟"}],version:11},fly:{id:"fly",name:"Fly",keywords:["insect"],skins:[{unified:"1fab0",native:"🪰"}],version:13},worm:{id:"worm",name:"Worm",keywords:["animal"],skins:[{unified:"1fab1",native:"🪱"}],version:13},microbe:{id:"microbe",name:"Microbe",keywords:["amoeba","bacteria","germs","virus","covid"],skins:[{unified:"1f9a0",native:"🦠"}],version:11},bouquet:{id:"bouquet",name:"Bouquet",keywords:["flowers","nature","spring"],skins:[{unified:"1f490",native:"💐"}],version:1},cherry_blossom:{id:"cherry_blossom",name:"Cherry Blossom",keywords:["nature","plant","spring","flower"],skins:[{unified:"1f338",native:"🌸"}],version:1},white_flower:{id:"white_flower",name:"White Flower",keywords:["japanese","spring"],skins:[{unified:"1f4ae",native:"💮"}],version:1},lotus:{id:"lotus",name:"Lotus",keywords:["flower","calm","meditation"],skins:[{unified:"1fab7",native:"🪷"}],version:14},rosette:{id:"rosette",name:"Rosette",keywords:["flower","decoration","military"],skins:[{unified:"1f3f5-fe0f",native:"🏵️"}],version:1},rose:{id:"rose",name:"Rose",keywords:["flowers","valentines","love","spring"],skins:[{unified:"1f339",native:"🌹"}],version:1},wilted_flower:{id:"wilted_flower",name:"Wilted Flower",keywords:["plant","nature","rose"],skins:[{unified:"1f940",native:"🥀"}],version:3},hibiscus:{id:"hibiscus",name:"Hibiscus",keywords:["plant","vegetable","flowers","beach"],skins:[{unified:"1f33a",native:"🌺"}],version:1},sunflower:{id:"sunflower",name:"Sunflower",keywords:["nature","plant","fall"],skins:[{unified:"1f33b",native:"🌻"}],version:1},blossom:{id:"blossom",name:"Blossom",keywords:["nature","flowers","yellow"],skins:[{unified:"1f33c",native:"🌼"}],version:1},tulip:{id:"tulip",name:"Tulip",keywords:["flowers","plant","nature","summer","spring"],skins:[{unified:"1f337",native:"🌷"}],version:1},hyacinth:{id:"hyacinth",name:"Hyacinth",keywords:["flower","lavender"],skins:[{unified:"1fabb",native:"🪻"}],version:15},seedling:{id:"seedling",name:"Seedling",keywords:["plant","nature","grass","lawn","spring"],skins:[{unified:"1f331",native:"🌱"}],version:1},potted_plant:{id:"potted_plant",name:"Potted Plant",keywords:["greenery","house"],skins:[{unified:"1fab4",native:"🪴"}],version:13},evergreen_tree:{id:"evergreen_tree",name:"Evergreen Tree",keywords:["plant","nature"],skins:[{unified:"1f332",native:"🌲"}],version:1},deciduous_tree:{id:"deciduous_tree",name:"Deciduous Tree",keywords:["plant","nature"],skins:[{unified:"1f333",native:"🌳"}],version:1},palm_tree:{id:"palm_tree",name:"Palm Tree",keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],skins:[{unified:"1f334",native:"🌴"}],version:1},cactus:{id:"cactus",name:"Cactus",keywords:["vegetable","plant","nature"],skins:[{unified:"1f335",native:"🌵"}],version:1},ear_of_rice:{id:"ear_of_rice",name:"Ear of Rice",keywords:["sheaf","nature","plant"],skins:[{unified:"1f33e",native:"🌾"}],version:1},herb:{id:"herb",name:"Herb",keywords:["vegetable","plant","medicine","weed","grass","lawn"],skins:[{unified:"1f33f",native:"🌿"}],version:1},shamrock:{id:"shamrock",name:"Shamrock",keywords:["vegetable","plant","nature","irish","clover"],skins:[{unified:"2618-fe0f",native:"☘️"}],version:1},four_leaf_clover:{id:"four_leaf_clover",name:"Four Leaf Clover",keywords:["vegetable","plant","nature","lucky","irish"],skins:[{unified:"1f340",native:"🍀"}],version:1},maple_leaf:{id:"maple_leaf",name:"Maple Leaf",keywords:["nature","plant","vegetable","ca","fall"],skins:[{unified:"1f341",native:"🍁"}],version:1},fallen_leaf:{id:"fallen_leaf",name:"Fallen Leaf",keywords:["nature","plant","vegetable","leaves"],skins:[{unified:"1f342",native:"🍂"}],version:1},leaves:{id:"leaves",name:"Leaf Fluttering in Wind",keywords:["leaves","nature","plant","tree","vegetable","grass","lawn","spring"],skins:[{unified:"1f343",native:"🍃"}],version:1},empty_nest:{id:"empty_nest",name:"Empty Nest",keywords:["bird"],skins:[{unified:"1fab9",native:"🪹"}],version:14},nest_with_eggs:{id:"nest_with_eggs",name:"Nest with Eggs",keywords:["bird"],skins:[{unified:"1faba",native:"🪺"}],version:14},mushroom:{id:"mushroom",name:"Mushroom",keywords:["plant","vegetable"],skins:[{unified:"1f344",native:"🍄"}],version:1},grapes:{id:"grapes",name:"Grapes",keywords:["fruit","food","wine"],skins:[{unified:"1f347",native:"🍇"}],version:1},melon:{id:"melon",name:"Melon",keywords:["fruit","nature","food"],skins:[{unified:"1f348",native:"🍈"}],version:1},watermelon:{id:"watermelon",name:"Watermelon",keywords:["fruit","food","picnic","summer"],skins:[{unified:"1f349",native:"🍉"}],version:1},tangerine:{id:"tangerine",name:"Tangerine",keywords:["food","fruit","nature","orange"],skins:[{unified:"1f34a",native:"🍊"}],version:1},lemon:{id:"lemon",name:"Lemon",keywords:["fruit","nature"],skins:[{unified:"1f34b",native:"🍋"}],version:1},banana:{id:"banana",name:"Banana",keywords:["fruit","food","monkey"],skins:[{unified:"1f34c",native:"🍌"}],version:1},pineapple:{id:"pineapple",name:"Pineapple",keywords:["fruit","nature","food"],skins:[{unified:"1f34d",native:"🍍"}],version:1},mango:{id:"mango",name:"Mango",keywords:["fruit","food","tropical"],skins:[{unified:"1f96d",native:"🥭"}],version:11},apple:{id:"apple",name:"Red Apple",keywords:["fruit","mac","school"],skins:[{unified:"1f34e",native:"🍎"}],version:1},green_apple:{id:"green_apple",name:"Green Apple",keywords:["fruit","nature"],skins:[{unified:"1f34f",native:"🍏"}],version:1},pear:{id:"pear",name:"Pear",keywords:["fruit","nature","food"],skins:[{unified:"1f350",native:"🍐"}],version:1},peach:{id:"peach",name:"Peach",keywords:["fruit","nature","food"],skins:[{unified:"1f351",native:"🍑"}],version:1},cherries:{id:"cherries",name:"Cherries",keywords:["food","fruit"],skins:[{unified:"1f352",native:"🍒"}],version:1},strawberry:{id:"strawberry",name:"Strawberry",keywords:["fruit","food","nature"],skins:[{unified:"1f353",native:"🍓"}],version:1},blueberries:{id:"blueberries",name:"Blueberries",keywords:["fruit"],skins:[{unified:"1fad0",native:"🫐"}],version:13},kiwifruit:{id:"kiwifruit",name:"Kiwifruit",keywords:["kiwi","fruit","food"],skins:[{unified:"1f95d",native:"🥝"}],version:3},tomato:{id:"tomato",name:"Tomato",keywords:["fruit","vegetable","nature","food"],skins:[{unified:"1f345",native:"🍅"}],version:1},olive:{id:"olive",name:"Olive",keywords:["fruit"],skins:[{unified:"1fad2",native:"🫒"}],version:13},coconut:{id:"coconut",name:"Coconut",keywords:["fruit","nature","food","palm"],skins:[{unified:"1f965",native:"🥥"}],version:5},avocado:{id:"avocado",name:"Avocado",keywords:["fruit","food"],skins:[{unified:"1f951",native:"🥑"}],version:3},eggplant:{id:"eggplant",name:"Eggplant",keywords:["vegetable","nature","food","aubergine"],skins:[{unified:"1f346",native:"🍆"}],version:1},potato:{id:"potato",name:"Potato",keywords:["food","tuber","vegatable","starch"],skins:[{unified:"1f954",native:"🥔"}],version:3},carrot:{id:"carrot",name:"Carrot",keywords:["vegetable","food","orange"],skins:[{unified:"1f955",native:"🥕"}],version:3},corn:{id:"corn",name:"Ear of Corn",keywords:["food","vegetable","plant"],skins:[{unified:"1f33d",native:"🌽"}],version:1},hot_pepper:{id:"hot_pepper",name:"Hot Pepper",keywords:["food","spicy","chilli","chili"],skins:[{unified:"1f336-fe0f",native:"🌶️"}],version:1},bell_pepper:{id:"bell_pepper",name:"Bell Pepper",keywords:["fruit","plant"],skins:[{unified:"1fad1",native:"🫑"}],version:13},cucumber:{id:"cucumber",name:"Cucumber",keywords:["fruit","food","pickle"],skins:[{unified:"1f952",native:"🥒"}],version:3},leafy_green:{id:"leafy_green",name:"Leafy Green",keywords:["food","vegetable","plant","bok","choy","cabbage","kale","lettuce"],skins:[{unified:"1f96c",native:"🥬"}],version:11},broccoli:{id:"broccoli",name:"Broccoli",keywords:["fruit","food","vegetable"],skins:[{unified:"1f966",native:"🥦"}],version:5},garlic:{id:"garlic",name:"Garlic",keywords:["food","spice","cook"],skins:[{unified:"1f9c4",native:"🧄"}],version:12},onion:{id:"onion",name:"Onion",keywords:["cook","food","spice"],skins:[{unified:"1f9c5",native:"🧅"}],version:12},peanuts:{id:"peanuts",name:"Peanuts",keywords:["food","nut"],skins:[{unified:"1f95c",native:"🥜"}],version:3},beans:{id:"beans",name:"Beans",keywords:["food"],skins:[{unified:"1fad8",native:"🫘"}],version:14},chestnut:{id:"chestnut",name:"Chestnut",keywords:["food","squirrel"],skins:[{unified:"1f330",native:"🌰"}],version:1},ginger_root:{id:"ginger_root",name:"Ginger Root",keywords:["spice","yellow","cooking","gingerbread"],skins:[{unified:"1fada",native:"🫚"}],version:15},pea_pod:{id:"pea_pod",name:"Pea Pod",keywords:["cozy","green"],skins:[{unified:"1fadb",native:"🫛"}],version:15},bread:{id:"bread",name:"Bread",keywords:["food","wheat","breakfast","toast"],skins:[{unified:"1f35e",native:"🍞"}],version:1},croissant:{id:"croissant",name:"Croissant",keywords:["food","bread","french"],skins:[{unified:"1f950",native:"🥐"}],version:3},baguette_bread:{id:"baguette_bread",name:"Baguette Bread",keywords:["food","french","france","bakery"],skins:[{unified:"1f956",native:"🥖"}],version:3},flatbread:{id:"flatbread",name:"Flatbread",keywords:["flour","food","bakery"],skins:[{unified:"1fad3",native:"🫓"}],version:13},pretzel:{id:"pretzel",name:"Pretzel",keywords:["food","bread","twisted","germany","bakery"],skins:[{unified:"1f968",native:"🥨"}],version:5},bagel:{id:"bagel",name:"Bagel",keywords:["food","bread","bakery","schmear","jewish"],skins:[{unified:"1f96f",native:"🥯"}],version:11},pancakes:{id:"pancakes",name:"Pancakes",keywords:["food","breakfast","flapjacks","hotcakes","brunch"],skins:[{unified:"1f95e",native:"🥞"}],version:3},waffle:{id:"waffle",name:"Waffle",keywords:["food","breakfast","brunch"],skins:[{unified:"1f9c7",native:"🧇"}],version:12},cheese_wedge:{id:"cheese_wedge",name:"Cheese Wedge",keywords:["food","chadder","swiss"],skins:[{unified:"1f9c0",native:"🧀"}],version:1},meat_on_bone:{id:"meat_on_bone",name:"Meat on Bone",keywords:["good","food","drumstick"],skins:[{unified:"1f356",native:"🍖"}],version:1},poultry_leg:{id:"poultry_leg",name:"Poultry Leg",keywords:["food","meat","drumstick","bird","chicken","turkey"],skins:[{unified:"1f357",native:"🍗"}],version:1},cut_of_meat:{id:"cut_of_meat",name:"Cut of Meat",keywords:["food","cow","chop","lambchop","porkchop"],skins:[{unified:"1f969",native:"🥩"}],version:5},bacon:{id:"bacon",name:"Bacon",keywords:["food","breakfast","pork","pig","meat","brunch"],skins:[{unified:"1f953",native:"🥓"}],version:3},hamburger:{id:"hamburger",name:"Hamburger",keywords:["meat","fast","food","beef","cheeseburger","mcdonalds","burger","king"],skins:[{unified:"1f354",native:"🍔"}],version:1},fries:{id:"fries",name:"French Fries",keywords:["chips","snack","fast","food","potato"],skins:[{unified:"1f35f",native:"🍟"}],version:1},pizza:{id:"pizza",name:"Pizza",keywords:["food","party","italy"],skins:[{unified:"1f355",native:"🍕"}],version:1},hotdog:{id:"hotdog",name:"Hot Dog",keywords:["hotdog","food","frankfurter","america"],skins:[{unified:"1f32d",native:"🌭"}],version:1},sandwich:{id:"sandwich",name:"Sandwich",keywords:["food","lunch","bread","toast","bakery"],skins:[{unified:"1f96a",native:"🥪"}],version:5},taco:{id:"taco",name:"Taco",keywords:["food","mexican"],skins:[{unified:"1f32e",native:"🌮"}],version:1},burrito:{id:"burrito",name:"Burrito",keywords:["food","mexican"],skins:[{unified:"1f32f",native:"🌯"}],version:1},tamale:{id:"tamale",name:"Tamale",keywords:["food","masa"],skins:[{unified:"1fad4",native:"🫔"}],version:13},stuffed_flatbread:{id:"stuffed_flatbread",name:"Stuffed Flatbread",keywords:["food","gyro","mediterranean"],skins:[{unified:"1f959",native:"🥙"}],version:3},falafel:{id:"falafel",name:"Falafel",keywords:["food","mediterranean"],skins:[{unified:"1f9c6",native:"🧆"}],version:12},egg:{id:"egg",name:"Egg",keywords:["food","chicken","breakfast"],skins:[{unified:"1f95a",native:"🥚"}],version:3},fried_egg:{id:"fried_egg",name:"Cooking",keywords:["fried","egg","food","breakfast","kitchen","skillet"],skins:[{unified:"1f373",native:"🍳"}],version:1},shallow_pan_of_food:{id:"shallow_pan_of_food",name:"Shallow Pan of Food",keywords:["cooking","casserole","paella","skillet"],skins:[{unified:"1f958",native:"🥘"}],version:3},stew:{id:"stew",name:"Pot of Food",keywords:["stew","meat","soup","hot"],skins:[{unified:"1f372",native:"🍲"}],version:1},fondue:{id:"fondue",name:"Fondue",keywords:["cheese","pot","food"],skins:[{unified:"1fad5",native:"🫕"}],version:13},bowl_with_spoon:{id:"bowl_with_spoon",name:"Bowl with Spoon",keywords:["food","breakfast","cereal","oatmeal","porridge"],skins:[{unified:"1f963",native:"🥣"}],version:5},green_salad:{id:"green_salad",name:"Green Salad",keywords:["food","healthy","lettuce","vegetable"],skins:[{unified:"1f957",native:"🥗"}],version:3},popcorn:{id:"popcorn",name:"Popcorn",keywords:["food","movie","theater","films","snack","drama"],skins:[{unified:"1f37f",native:"🍿"}],version:1},butter:{id:"butter",name:"Butter",keywords:["food","cook"],skins:[{unified:"1f9c8",native:"🧈"}],version:12},salt:{id:"salt",name:"Salt",keywords:["condiment","shaker"],skins:[{unified:"1f9c2",native:"🧂"}],version:11},canned_food:{id:"canned_food",name:"Canned Food",keywords:["soup","tomatoes"],skins:[{unified:"1f96b",native:"🥫"}],version:5},bento:{id:"bento",name:"Bento Box",keywords:["food","japanese","lunch"],skins:[{unified:"1f371",native:"🍱"}],version:1},rice_cracker:{id:"rice_cracker",name:"Rice Cracker",keywords:["food","japanese","snack"],skins:[{unified:"1f358",native:"🍘"}],version:1},rice_ball:{id:"rice_ball",name:"Rice Ball",keywords:["food","japanese"],skins:[{unified:"1f359",native:"🍙"}],version:1},rice:{id:"rice",name:"Cooked Rice",keywords:["food","asian"],skins:[{unified:"1f35a",native:"🍚"}],version:1},curry:{id:"curry",name:"Curry Rice",keywords:["food","spicy","hot","indian"],skins:[{unified:"1f35b",native:"🍛"}],version:1},ramen:{id:"ramen",name:"Steaming Bowl",keywords:["ramen","food","japanese","noodle","chopsticks"],skins:[{unified:"1f35c",native:"🍜"}],version:1},spaghetti:{id:"spaghetti",name:"Spaghetti",keywords:["food","italian","pasta","noodle"],skins:[{unified:"1f35d",native:"🍝"}],version:1},sweet_potato:{id:"sweet_potato",name:"Roasted Sweet Potato",keywords:["food","nature","plant"],skins:[{unified:"1f360",native:"🍠"}],version:1},oden:{id:"oden",name:"Oden",keywords:["food","japanese"],skins:[{unified:"1f362",native:"🍢"}],version:1},sushi:{id:"sushi",name:"Sushi",keywords:["food","fish","japanese","rice"],skins:[{unified:"1f363",native:"🍣"}],version:1},fried_shrimp:{id:"fried_shrimp",name:"Fried Shrimp",keywords:["food","animal","appetizer","summer"],skins:[{unified:"1f364",native:"🍤"}],version:1},fish_cake:{id:"fish_cake",name:"Fish Cake with Swirl",keywords:["food","japan","sea","beach","narutomaki","pink","kamaboko","surimi","ramen"],skins:[{unified:"1f365",native:"🍥"}],version:1},moon_cake:{id:"moon_cake",name:"Moon Cake",keywords:["food","autumn","dessert"],skins:[{unified:"1f96e",native:"🥮"}],version:11},dango:{id:"dango",name:"Dango",keywords:["food","dessert","sweet","japanese","barbecue","meat"],skins:[{unified:"1f361",native:"🍡"}],version:1},dumpling:{id:"dumpling",name:"Dumpling",keywords:["food","empanada","pierogi","potsticker","gyoza"],skins:[{unified:"1f95f",native:"🥟"}],version:5},fortune_cookie:{id:"fortune_cookie",name:"Fortune Cookie",keywords:["food","prophecy","dessert"],skins:[{unified:"1f960",native:"🥠"}],version:5},takeout_box:{id:"takeout_box",name:"Takeout Box",keywords:["food","leftovers"],skins:[{unified:"1f961",native:"🥡"}],version:5},crab:{id:"crab",name:"Crab",keywords:["animal","crustacean"],skins:[{unified:"1f980",native:"🦀"}],version:1},lobster:{id:"lobster",name:"Lobster",keywords:["animal","nature","bisque","claws","seafood"],skins:[{unified:"1f99e",native:"🦞"}],version:11},shrimp:{id:"shrimp",name:"Shrimp",keywords:["animal","ocean","nature","seafood"],skins:[{unified:"1f990",native:"🦐"}],version:3},squid:{id:"squid",name:"Squid",keywords:["animal","nature","ocean","sea"],skins:[{unified:"1f991",native:"🦑"}],version:3},oyster:{id:"oyster",name:"Oyster",keywords:["food"],skins:[{unified:"1f9aa",native:"🦪"}],version:12},icecream:{id:"icecream",name:"Soft Ice Cream",keywords:["icecream","food","hot","dessert","summer"],skins:[{unified:"1f366",native:"🍦"}],version:1},shaved_ice:{id:"shaved_ice",name:"Shaved Ice",keywords:["hot","dessert","summer"],skins:[{unified:"1f367",native:"🍧"}],version:1},ice_cream:{id:"ice_cream",name:"Ice Cream",keywords:["food","hot","dessert"],skins:[{unified:"1f368",native:"🍨"}],version:1},doughnut:{id:"doughnut",name:"Doughnut",keywords:["food","dessert","snack","sweet","donut"],skins:[{unified:"1f369",native:"🍩"}],version:1},cookie:{id:"cookie",name:"Cookie",keywords:["food","snack","oreo","chocolate","sweet","dessert"],skins:[{unified:"1f36a",native:"🍪"}],version:1},birthday:{id:"birthday",name:"Birthday Cake",keywords:["food","dessert"],skins:[{unified:"1f382",native:"🎂"}],version:1},cake:{id:"cake",name:"Shortcake",keywords:["cake","food","dessert"],skins:[{unified:"1f370",native:"🍰"}],version:1},cupcake:{id:"cupcake",name:"Cupcake",keywords:["food","dessert","bakery","sweet"],skins:[{unified:"1f9c1",native:"🧁"}],version:11},pie:{id:"pie",name:"Pie",keywords:["food","dessert","pastry"],skins:[{unified:"1f967",native:"🥧"}],version:5},chocolate_bar:{id:"chocolate_bar",name:"Chocolate Bar",keywords:["food","snack","dessert","sweet"],skins:[{unified:"1f36b",native:"🍫"}],version:1},candy:{id:"candy",name:"Candy",keywords:["snack","dessert","sweet","lolly"],skins:[{unified:"1f36c",native:"🍬"}],version:1},lollipop:{id:"lollipop",name:"Lollipop",keywords:["food","snack","candy","sweet"],skins:[{unified:"1f36d",native:"🍭"}],version:1},custard:{id:"custard",name:"Custard",keywords:["dessert","food"],skins:[{unified:"1f36e",native:"🍮"}],version:1},honey_pot:{id:"honey_pot",name:"Honey Pot",keywords:["bees","sweet","kitchen"],skins:[{unified:"1f36f",native:"🍯"}],version:1},baby_bottle:{id:"baby_bottle",name:"Baby Bottle",keywords:["food","container","milk"],skins:[{unified:"1f37c",native:"🍼"}],version:1},glass_of_milk:{id:"glass_of_milk",name:"Glass of Milk",keywords:["beverage","drink","cow"],skins:[{unified:"1f95b",native:"🥛"}],version:3},coffee:{id:"coffee",name:"Hot Beverage",keywords:["coffee","caffeine","latte","espresso","mug"],skins:[{unified:"2615",native:"☕"}],version:1},teapot:{id:"teapot",name:"Teapot",keywords:["drink","hot"],skins:[{unified:"1fad6",native:"🫖"}],version:13},tea:{id:"tea",name:"Teacup Without Handle",keywords:["tea","drink","bowl","breakfast","green","british"],skins:[{unified:"1f375",native:"🍵"}],version:1},sake:{id:"sake",name:"Sake",keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],skins:[{unified:"1f376",native:"🍶"}],version:1},champagne:{id:"champagne",name:"Bottle with Popping Cork",keywords:["champagne","drink","wine","celebration"],skins:[{unified:"1f37e",native:"🍾"}],version:1},wine_glass:{id:"wine_glass",name:"Wine Glass",keywords:["drink","beverage","drunk","alcohol","booze"],skins:[{unified:"1f377",native:"🍷"}],version:1},cocktail:{id:"cocktail",name:"Cocktail Glass",keywords:["drink","drunk","alcohol","beverage","booze","mojito"],skins:[{unified:"1f378",native:"🍸"}],version:1},tropical_drink:{id:"tropical_drink",name:"Tropical Drink",keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],skins:[{unified:"1f379",native:"🍹"}],version:1},beer:{id:"beer",name:"Beer Mug",keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],skins:[{unified:"1f37a",native:"🍺"}],version:1},beers:{id:"beers",name:"Clinking Beer Mugs",keywords:["beers","relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],skins:[{unified:"1f37b",native:"🍻"}],version:1},clinking_glasses:{id:"clinking_glasses",name:"Clinking Glasses",keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],skins:[{unified:"1f942",native:"🥂"}],version:3},tumbler_glass:{id:"tumbler_glass",name:"Tumbler Glass",keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","shot"],skins:[{unified:"1f943",native:"🥃"}],version:3},pouring_liquid:{id:"pouring_liquid",name:"Pouring Liquid",keywords:["cup","water"],skins:[{unified:"1fad7",native:"🫗"}],version:14},cup_with_straw:{id:"cup_with_straw",name:"Cup with Straw",keywords:["drink","soda"],skins:[{unified:"1f964",native:"🥤"}],version:5},bubble_tea:{id:"bubble_tea",name:"Bubble Tea",keywords:["taiwan","boba","milk","straw"],skins:[{unified:"1f9cb",native:"🧋"}],version:13},beverage_box:{id:"beverage_box",name:"Beverage Box",keywords:["drink"],skins:[{unified:"1f9c3",native:"🧃"}],version:12},mate_drink:{id:"mate_drink",name:"Mate",keywords:["drink","tea","beverage"],skins:[{unified:"1f9c9",native:"🧉"}],version:12},ice_cube:{id:"ice_cube",name:"Ice",keywords:["cube","water","cold"],skins:[{unified:"1f9ca",native:"🧊"}],version:12},chopsticks:{id:"chopsticks",name:"Chopsticks",keywords:["food"],skins:[{unified:"1f962",native:"🥢"}],version:5},knife_fork_plate:{id:"knife_fork_plate",name:"Fork and Knife with Plate",keywords:["food","eat","meal","lunch","dinner","restaurant"],skins:[{unified:"1f37d-fe0f",native:"🍽️"}],version:1},fork_and_knife:{id:"fork_and_knife",name:"Fork and Knife",keywords:["cutlery","kitchen"],skins:[{unified:"1f374",native:"🍴"}],version:1},spoon:{id:"spoon",name:"Spoon",keywords:["cutlery","kitchen","tableware"],skins:[{unified:"1f944",native:"🥄"}],version:3},hocho:{id:"hocho",name:"Hocho",keywords:["knife","kitchen","blade","cutlery","weapon"],skins:[{unified:"1f52a",native:"🔪"}],version:1},jar:{id:"jar",name:"Jar",keywords:["container","sauce"],skins:[{unified:"1fad9",native:"🫙"}],version:14},amphora:{id:"amphora",name:"Amphora",keywords:["vase","jar"],skins:[{unified:"1f3fa",native:"🏺"}],version:1},earth_africa:{id:"earth_africa",name:"Earth Globe Europe-Africa",keywords:["africa","showing","europe","world","international"],skins:[{unified:"1f30d",native:"🌍"}],version:1},earth_americas:{id:"earth_americas",name:"Earth Globe Americas",keywords:["showing","world","USA","international"],skins:[{unified:"1f30e",native:"🌎"}],version:1},earth_asia:{id:"earth_asia",name:"Earth Globe Asia-Australia",keywords:["asia","showing","australia","world","east","international"],skins:[{unified:"1f30f",native:"🌏"}],version:1},globe_with_meridians:{id:"globe_with_meridians",name:"Globe with Meridians",keywords:["earth","international","world","internet","interweb","i18n"],skins:[{unified:"1f310",native:"🌐"}],version:1},world_map:{id:"world_map",name:"World Map",keywords:["location","direction"],skins:[{unified:"1f5fa-fe0f",native:"🗺️"}],version:1},japan:{id:"japan",name:"Map of Japan",keywords:["nation","country","japanese","asia"],skins:[{unified:"1f5fe",native:"🗾"}],version:1},compass:{id:"compass",name:"Compass",keywords:["magnetic","navigation","orienteering"],skins:[{unified:"1f9ed",native:"🧭"}],version:11},snow_capped_mountain:{id:"snow_capped_mountain",name:"Snow-Capped Mountain",keywords:["snow","capped","photo","nature","environment","winter","cold"],skins:[{unified:"1f3d4-fe0f",native:"🏔️"}],version:1},mountain:{id:"mountain",name:"Mountain",keywords:["photo","nature","environment"],skins:[{unified:"26f0-fe0f",native:"⛰️"}],version:1},volcano:{id:"volcano",name:"Volcano",keywords:["photo","nature","disaster"],skins:[{unified:"1f30b",native:"🌋"}],version:1},mount_fuji:{id:"mount_fuji",name:"Mount Fuji",keywords:["photo","mountain","nature","japanese"],skins:[{unified:"1f5fb",native:"🗻"}],version:1},camping:{id:"camping",name:"Camping",keywords:["photo","outdoors","tent"],skins:[{unified:"1f3d5-fe0f",native:"🏕️"}],version:1},beach_with_umbrella:{id:"beach_with_umbrella",name:"Beach with Umbrella",keywords:["weather","summer","sunny","sand","mojito"],skins:[{unified:"1f3d6-fe0f",native:"🏖️"}],version:1},desert:{id:"desert",name:"Desert",keywords:["photo","warm","saharah"],skins:[{unified:"1f3dc-fe0f",native:"🏜️"}],version:1},desert_island:{id:"desert_island",name:"Desert Island",keywords:["photo","tropical","mojito"],skins:[{unified:"1f3dd-fe0f",native:"🏝️"}],version:1},national_park:{id:"national_park",name:"National Park",keywords:["photo","environment","nature"],skins:[{unified:"1f3de-fe0f",native:"🏞️"}],version:1},stadium:{id:"stadium",name:"Stadium",keywords:["photo","place","sports","concert","venue"],skins:[{unified:"1f3df-fe0f",native:"🏟️"}],version:1},classical_building:{id:"classical_building",name:"Classical Building",keywords:["art","culture","history"],skins:[{unified:"1f3db-fe0f",native:"🏛️"}],version:1},building_construction:{id:"building_construction",name:"Building Construction",keywords:["wip","working","progress"],skins:[{unified:"1f3d7-fe0f",native:"🏗️"}],version:1},bricks:{id:"bricks",name:"Brick",keywords:["bricks"],skins:[{unified:"1f9f1",native:"🧱"}],version:11},rock:{id:"rock",name:"Rock",keywords:["stone"],skins:[{unified:"1faa8",native:"🪨"}],version:13},wood:{id:"wood",name:"Wood",keywords:["nature","timber","trunk"],skins:[{unified:"1fab5",native:"🪵"}],version:13},hut:{id:"hut",name:"Hut",keywords:["house","structure"],skins:[{unified:"1f6d6",native:"🛖"}],version:13},house_buildings:{id:"house_buildings",name:"Houses",keywords:["house","buildings","photo"],skins:[{unified:"1f3d8-fe0f",native:"🏘️"}],version:1},derelict_house_building:{id:"derelict_house_building",name:"Derelict House",keywords:["building","abandon","evict","broken"],skins:[{unified:"1f3da-fe0f",native:"🏚️"}],version:1},house:{id:"house",name:"House",keywords:["building","home"],skins:[{unified:"1f3e0",native:"🏠"}],version:1},house_with_garden:{id:"house_with_garden",name:"House with Garden",keywords:["home","plant","nature"],skins:[{unified:"1f3e1",native:"🏡"}],version:1},office:{id:"office",name:"Office Building",keywords:["bureau","work"],skins:[{unified:"1f3e2",native:"🏢"}],version:1},post_office:{id:"post_office",name:"Japanese Post Office",keywords:["building","envelope","communication"],skins:[{unified:"1f3e3",native:"🏣"}],version:1},european_post_office:{id:"european_post_office",name:"Post Office",keywords:["european","building","email"],skins:[{unified:"1f3e4",native:"🏤"}],version:1},hospital:{id:"hospital",name:"Hospital",keywords:["building","health","surgery","doctor"],skins:[{unified:"1f3e5",native:"🏥"}],version:1},bank:{id:"bank",name:"Bank",keywords:["building","money","sales","cash","business","enterprise"],skins:[{unified:"1f3e6",native:"🏦"}],version:1},hotel:{id:"hotel",name:"Hotel",keywords:["building","accomodation","checkin"],skins:[{unified:"1f3e8",native:"🏨"}],version:1},love_hotel:{id:"love_hotel",name:"Love Hotel",keywords:["like","affection","dating"],skins:[{unified:"1f3e9",native:"🏩"}],version:1},convenience_store:{id:"convenience_store",name:"Convenience Store",keywords:["building","shopping","groceries"],skins:[{unified:"1f3ea",native:"🏪"}],version:1},school:{id:"school",name:"School",keywords:["building","student","education","learn","teach"],skins:[{unified:"1f3eb",native:"🏫"}],version:1},department_store:{id:"department_store",name:"Department Store",keywords:["building","shopping","mall"],skins:[{unified:"1f3ec",native:"🏬"}],version:1},factory:{id:"factory",name:"Factory",keywords:["building","industry","pollution","smoke"],skins:[{unified:"1f3ed",native:"🏭"}],version:1},japanese_castle:{id:"japanese_castle",name:"Japanese Castle",keywords:["photo","building"],skins:[{unified:"1f3ef",native:"🏯"}],version:1},european_castle:{id:"european_castle",name:"Castle",keywords:["european","building","royalty","history"],skins:[{unified:"1f3f0",native:"🏰"}],version:1},wedding:{id:"wedding",name:"Wedding",keywords:["love","like","affection","couple","marriage","bride","groom"],skins:[{unified:"1f492",native:"💒"}],version:1},tokyo_tower:{id:"tokyo_tower",name:"Tokyo Tower",keywords:["photo","japanese"],skins:[{unified:"1f5fc",native:"🗼"}],version:1},statue_of_liberty:{id:"statue_of_liberty",name:"Statue of Liberty",keywords:["american","newyork"],skins:[{unified:"1f5fd",native:"🗽"}],version:1},church:{id:"church",name:"Church",keywords:["building","religion","christ"],skins:[{unified:"26ea",native:"⛪"}],version:1},mosque:{id:"mosque",name:"Mosque",keywords:["islam","worship","minaret"],skins:[{unified:"1f54c",native:"🕌"}],version:1},hindu_temple:{id:"hindu_temple",name:"Hindu Temple",keywords:["religion"],skins:[{unified:"1f6d5",native:"🛕"}],version:12},synagogue:{id:"synagogue",name:"Synagogue",keywords:["judaism","worship","temple","jewish"],skins:[{unified:"1f54d",native:"🕍"}],version:1},shinto_shrine:{id:"shinto_shrine",name:"Shinto Shrine",keywords:["temple","japan","kyoto"],skins:[{unified:"26e9-fe0f",native:"⛩️"}],version:1},kaaba:{id:"kaaba",name:"Kaaba",keywords:["mecca","mosque","islam"],skins:[{unified:"1f54b",native:"🕋"}],version:1},fountain:{id:"fountain",name:"Fountain",keywords:["photo","summer","water","fresh"],skins:[{unified:"26f2",native:"⛲"}],version:1},tent:{id:"tent",name:"Tent",keywords:["photo","camping","outdoors"],skins:[{unified:"26fa",native:"⛺"}],version:1},foggy:{id:"foggy",name:"Foggy",keywords:["photo","mountain"],skins:[{unified:"1f301",native:"🌁"}],version:1},night_with_stars:{id:"night_with_stars",name:"Night with Stars",keywords:["evening","city","downtown"],skins:[{unified:"1f303",native:"🌃"}],version:1},cityscape:{id:"cityscape",name:"Cityscape",keywords:["photo","night","life","urban"],skins:[{unified:"1f3d9-fe0f",native:"🏙️"}],version:1},sunrise_over_mountains:{id:"sunrise_over_mountains",name:"Sunrise over Mountains",keywords:["view","vacation","photo"],skins:[{unified:"1f304",native:"🌄"}],version:1},sunrise:{id:"sunrise",name:"Sunrise",keywords:["morning","view","vacation","photo"],skins:[{unified:"1f305",native:"🌅"}],version:1},city_sunset:{id:"city_sunset",name:"Cityscape at Dusk",keywords:["city","sunset","photo","evening","sky","buildings"],skins:[{unified:"1f306",native:"🌆"}],version:1},city_sunrise:{id:"city_sunrise",name:"Sunset",keywords:["city","sunrise","photo","good","morning","dawn"],skins:[{unified:"1f307",native:"🌇"}],version:1},bridge_at_night:{id:"bridge_at_night",name:"Bridge at Night",keywords:["photo","sanfrancisco"],skins:[{unified:"1f309",native:"🌉"}],version:1},hotsprings:{id:"hotsprings",name:"Hot Springs",keywords:["hotsprings","bath","warm","relax"],skins:[{unified:"2668-fe0f",native:"♨️"}],version:1},carousel_horse:{id:"carousel_horse",name:"Carousel Horse",keywords:["photo","carnival"],skins:[{unified:"1f3a0",native:"🎠"}],version:1},playground_slide:{id:"playground_slide",name:"Playground Slide",keywords:["fun","park"],skins:[{unified:"1f6dd",native:"🛝"}],version:14},ferris_wheel:{id:"ferris_wheel",name:"Ferris Wheel",keywords:["photo","carnival","londoneye"],skins:[{unified:"1f3a1",native:"🎡"}],version:1},roller_coaster:{id:"roller_coaster",name:"Roller Coaster",keywords:["carnival","playground","photo","fun"],skins:[{unified:"1f3a2",native:"🎢"}],version:1},barber:{id:"barber",name:"Barber Pole",keywords:["hair","salon","style"],skins:[{unified:"1f488",native:"💈"}],version:1},circus_tent:{id:"circus_tent",name:"Circus Tent",keywords:["festival","carnival","party"],skins:[{unified:"1f3aa",native:"🎪"}],version:1},steam_locomotive:{id:"steam_locomotive",name:"Locomotive",keywords:["steam","transportation","vehicle","train"],skins:[{unified:"1f682",native:"🚂"}],version:1},railway_car:{id:"railway_car",name:"Railway Car",keywords:["transportation","vehicle"],skins:[{unified:"1f683",native:"🚃"}],version:1},bullettrain_side:{id:"bullettrain_side",name:"High-Speed Train",keywords:["bullettrain","side","high","speed","transportation","vehicle"],skins:[{unified:"1f684",native:"🚄"}],version:1},bullettrain_front:{id:"bullettrain_front",name:"Bullet Train",keywords:["bullettrain","front","transportation","vehicle","speed","fast","public","travel"],skins:[{unified:"1f685",native:"🚅"}],version:1},train2:{id:"train2",name:"Train",keywords:["train2","transportation","vehicle"],skins:[{unified:"1f686",native:"🚆"}],version:1},metro:{id:"metro",name:"Metro",keywords:["transportation","blue","square","mrt","underground","tube"],skins:[{unified:"1f687",native:"🚇"}],version:1},light_rail:{id:"light_rail",name:"Light Rail",keywords:["transportation","vehicle"],skins:[{unified:"1f688",native:"🚈"}],version:1},station:{id:"station",name:"Station",keywords:["transportation","vehicle","public"],skins:[{unified:"1f689",native:"🚉"}],version:1},tram:{id:"tram",name:"Tram",keywords:["transportation","vehicle"],skins:[{unified:"1f68a",native:"🚊"}],version:1},monorail:{id:"monorail",name:"Monorail",keywords:["transportation","vehicle"],skins:[{unified:"1f69d",native:"🚝"}],version:1},mountain_railway:{id:"mountain_railway",name:"Mountain Railway",keywords:["transportation","vehicle"],skins:[{unified:"1f69e",native:"🚞"}],version:1},train:{id:"train",name:"Tram Car",keywords:["train","transportation","vehicle","carriage","public","travel"],skins:[{unified:"1f68b",native:"🚋"}],version:1},bus:{id:"bus",name:"Bus",keywords:["car","vehicle","transportation"],skins:[{unified:"1f68c",native:"🚌"}],version:1},oncoming_bus:{id:"oncoming_bus",name:"Oncoming Bus",keywords:["vehicle","transportation"],skins:[{unified:"1f68d",native:"🚍"}],version:1},trolleybus:{id:"trolleybus",name:"Trolleybus",keywords:["bart","transportation","vehicle"],skins:[{unified:"1f68e",native:"🚎"}],version:1},minibus:{id:"minibus",name:"Minibus",keywords:["vehicle","car","transportation"],skins:[{unified:"1f690",native:"🚐"}],version:1},ambulance:{id:"ambulance",name:"Ambulance",keywords:["health","911","hospital"],skins:[{unified:"1f691",native:"🚑"}],version:1},fire_engine:{id:"fire_engine",name:"Fire Engine",keywords:["transportation","cars","vehicle"],skins:[{unified:"1f692",native:"🚒"}],version:1},police_car:{id:"police_car",name:"Police Car",keywords:["vehicle","cars","transportation","law","legal","enforcement"],skins:[{unified:"1f693",native:"🚓"}],version:1},oncoming_police_car:{id:"oncoming_police_car",name:"Oncoming Police Car",keywords:["vehicle","law","legal","enforcement","911"],skins:[{unified:"1f694",native:"🚔"}],version:1},taxi:{id:"taxi",name:"Taxi",keywords:["uber","vehicle","cars","transportation"],skins:[{unified:"1f695",native:"🚕"}],version:1},oncoming_taxi:{id:"oncoming_taxi",name:"Oncoming Taxi",keywords:["vehicle","cars","uber"],skins:[{unified:"1f696",native:"🚖"}],version:1},car:{id:"car",name:"Automobile",keywords:["car","red","transportation","vehicle"],skins:[{unified:"1f697",native:"🚗"}],version:1},oncoming_automobile:{id:"oncoming_automobile",name:"Oncoming Automobile",keywords:["car","vehicle","transportation"],skins:[{unified:"1f698",native:"🚘"}],version:1},blue_car:{id:"blue_car",name:"Recreational Vehicle",keywords:["blue","car","sport","utility","transportation"],skins:[{unified:"1f699",native:"🚙"}],version:1},pickup_truck:{id:"pickup_truck",name:"Pickup Truck",keywords:["car","transportation"],skins:[{unified:"1f6fb",native:"🛻"}],version:13},truck:{id:"truck",name:"Delivery Truck",keywords:["cars","transportation"],skins:[{unified:"1f69a",native:"🚚"}],version:1},articulated_lorry:{id:"articulated_lorry",name:"Articulated Lorry",keywords:["vehicle","cars","transportation","express"],skins:[{unified:"1f69b",native:"🚛"}],version:1},tractor:{id:"tractor",name:"Tractor",keywords:["vehicle","car","farming","agriculture"],skins:[{unified:"1f69c",native:"🚜"}],version:1},racing_car:{id:"racing_car",name:"Racing Car",keywords:["sports","race","fast","formula","f1"],skins:[{unified:"1f3ce-fe0f",native:"🏎️"}],version:1},racing_motorcycle:{id:"racing_motorcycle",name:"Motorcycle",keywords:["racing","race","sports","fast"],skins:[{unified:"1f3cd-fe0f",native:"🏍️"}],version:1},motor_scooter:{id:"motor_scooter",name:"Motor Scooter",keywords:["vehicle","vespa","sasha"],skins:[{unified:"1f6f5",native:"🛵"}],version:3},manual_wheelchair:{id:"manual_wheelchair",name:"Manual Wheelchair",keywords:["accessibility"],skins:[{unified:"1f9bd",native:"🦽"}],version:12},motorized_wheelchair:{id:"motorized_wheelchair",name:"Motorized Wheelchair",keywords:["accessibility"],skins:[{unified:"1f9bc",native:"🦼"}],version:12},auto_rickshaw:{id:"auto_rickshaw",name:"Auto Rickshaw",keywords:["move","transportation"],skins:[{unified:"1f6fa",native:"🛺"}],version:12},bike:{id:"bike",name:"Bicycle",keywords:["bike","sports","exercise","hipster"],skins:[{unified:"1f6b2",native:"🚲"}],version:1},scooter:{id:"scooter",name:"Scooter",keywords:["kick","vehicle","razor"],skins:[{unified:"1f6f4",native:"🛴"}],version:3},skateboard:{id:"skateboard",name:"Skateboard",keywords:["board"],skins:[{unified:"1f6f9",native:"🛹"}],version:11},roller_skate:{id:"roller_skate",name:"Roller Skate",keywords:["footwear","sports"],skins:[{unified:"1f6fc",native:"🛼"}],version:13},busstop:{id:"busstop",name:"Bus Stop",keywords:["busstop","transportation","wait"],skins:[{unified:"1f68f",native:"🚏"}],version:1},motorway:{id:"motorway",name:"Motorway",keywords:["road","cupertino","interstate","highway"],skins:[{unified:"1f6e3-fe0f",native:"🛣️"}],version:1},railway_track:{id:"railway_track",name:"Railway Track",keywords:["train","transportation"],skins:[{unified:"1f6e4-fe0f",native:"🛤️"}],version:1},oil_drum:{id:"oil_drum",name:"Oil Drum",keywords:["barrell"],skins:[{unified:"1f6e2-fe0f",native:"🛢️"}],version:1},fuelpump:{id:"fuelpump",name:"Fuel Pump",keywords:["fuelpump","gas","station","petroleum"],skins:[{unified:"26fd",native:"⛽"}],version:1},wheel:{id:"wheel",name:"Wheel",keywords:["car","transport"],skins:[{unified:"1f6de",native:"🛞"}],version:14},rotating_light:{id:"rotating_light",name:"Police Car Light",keywords:["rotating","ambulance","911","emergency","alert","error","pinged","law","legal"],skins:[{unified:"1f6a8",native:"🚨"}],version:1},traffic_light:{id:"traffic_light",name:"Horizontal Traffic Light",keywords:["transportation","signal"],skins:[{unified:"1f6a5",native:"🚥"}],version:1},vertical_traffic_light:{id:"vertical_traffic_light",name:"Vertical Traffic Light",keywords:["transportation","driving"],skins:[{unified:"1f6a6",native:"🚦"}],version:1},octagonal_sign:{id:"octagonal_sign",name:"Stop Sign",keywords:["octagonal"],skins:[{unified:"1f6d1",native:"🛑"}],version:3},construction:{id:"construction",name:"Construction",keywords:["wip","progress","caution","warning"],skins:[{unified:"1f6a7",native:"🚧"}],version:1},anchor:{id:"anchor",name:"Anchor",keywords:["ship","ferry","sea","boat"],skins:[{unified:"2693",native:"⚓"}],version:1},ring_buoy:{id:"ring_buoy",name:"Ring Buoy",keywords:["life","saver","preserver"],skins:[{unified:"1f6df",native:"🛟"}],version:14},boat:{id:"boat",name:"Sailboat",keywords:["boat","ship","summer","transportation","water","sailing"],skins:[{unified:"26f5",native:"⛵"}],version:1},canoe:{id:"canoe",name:"Canoe",keywords:["boat","paddle","water","ship"],skins:[{unified:"1f6f6",native:"🛶"}],version:3},speedboat:{id:"speedboat",name:"Speedboat",keywords:["ship","transportation","vehicle","summer"],skins:[{unified:"1f6a4",native:"🚤"}],version:1},passenger_ship:{id:"passenger_ship",name:"Passenger Ship",keywords:["yacht","cruise","ferry"],skins:[{unified:"1f6f3-fe0f",native:"🛳️"}],version:1},ferry:{id:"ferry",name:"Ferry",keywords:["boat","ship","yacht"],skins:[{unified:"26f4-fe0f",native:"⛴️"}],version:1},motor_boat:{id:"motor_boat",name:"Motor Boat",keywords:["ship"],skins:[{unified:"1f6e5-fe0f",native:"🛥️"}],version:1},ship:{id:"ship",name:"Ship",keywords:["transportation","titanic","deploy"],skins:[{unified:"1f6a2",native:"🚢"}],version:1},airplane:{id:"airplane",name:"Airplane",keywords:["vehicle","transportation","flight","fly"],skins:[{unified:"2708-fe0f",native:"✈️"}],version:1},small_airplane:{id:"small_airplane",name:"Small Airplane",keywords:["flight","transportation","fly","vehicle"],skins:[{unified:"1f6e9-fe0f",native:"🛩️"}],version:1},airplane_departure:{id:"airplane_departure",name:"Airplane Departure",keywords:["airport","flight","landing"],skins:[{unified:"1f6eb",native:"🛫"}],version:1},airplane_arriving:{id:"airplane_arriving",name:"Airplane Arrival",keywords:["arriving","airport","flight","boarding"],skins:[{unified:"1f6ec",native:"🛬"}],version:1},parachute:{id:"parachute",name:"Parachute",keywords:["fly","glide"],skins:[{unified:"1fa82",native:"🪂"}],version:12},seat:{id:"seat",name:"Seat",keywords:["sit","airplane","transport","bus","flight","fly"],skins:[{unified:"1f4ba",native:"💺"}],version:1},helicopter:{id:"helicopter",name:"Helicopter",keywords:["transportation","vehicle","fly"],skins:[{unified:"1f681",native:"🚁"}],version:1},suspension_railway:{id:"suspension_railway",name:"Suspension Railway",keywords:["vehicle","transportation"],skins:[{unified:"1f69f",native:"🚟"}],version:1},mountain_cableway:{id:"mountain_cableway",name:"Mountain Cableway",keywords:["transportation","vehicle","ski"],skins:[{unified:"1f6a0",native:"🚠"}],version:1},aerial_tramway:{id:"aerial_tramway",name:"Aerial Tramway",keywords:["transportation","vehicle","ski"],skins:[{unified:"1f6a1",native:"🚡"}],version:1},satellite:{id:"satellite",name:"Satellite",keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],skins:[{unified:"1f6f0-fe0f",native:"🛰️"}],version:1},rocket:{id:"rocket",name:"Rocket",keywords:["launch","ship","staffmode","NASA","outer","space","fly"],skins:[{unified:"1f680",native:"🚀"}],version:1},flying_saucer:{id:"flying_saucer",name:"Flying Saucer",keywords:["transportation","vehicle","ufo"],skins:[{unified:"1f6f8",native:"🛸"}],version:5},bellhop_bell:{id:"bellhop_bell",name:"Bellhop Bell",keywords:["service"],skins:[{unified:"1f6ce-fe0f",native:"🛎️"}],version:1},luggage:{id:"luggage",name:"Luggage",keywords:["packing","travel"],skins:[{unified:"1f9f3",native:"🧳"}],version:11},hourglass:{id:"hourglass",name:"Hourglass",keywords:["done","time","clock","oldschool","limit","exam","quiz","test"],skins:[{unified:"231b",native:"⌛"}],version:1},hourglass_flowing_sand:{id:"hourglass_flowing_sand",name:"Hourglass Not Done",keywords:["flowing","sand","oldschool","time","countdown"],skins:[{unified:"23f3",native:"⏳"}],version:1},watch:{id:"watch",name:"Watch",keywords:["time","accessories"],skins:[{unified:"231a",native:"⌚"}],version:1},alarm_clock:{id:"alarm_clock",name:"Alarm Clock",keywords:["time","wake"],skins:[{unified:"23f0",native:"⏰"}],version:1},stopwatch:{id:"stopwatch",name:"Stopwatch",keywords:["time","deadline"],skins:[{unified:"23f1-fe0f",native:"⏱️"}],version:1},timer_clock:{id:"timer_clock",name:"Timer Clock",keywords:["alarm"],skins:[{unified:"23f2-fe0f",native:"⏲️"}],version:1},mantelpiece_clock:{id:"mantelpiece_clock",name:"Mantelpiece Clock",keywords:["time"],skins:[{unified:"1f570-fe0f",native:"🕰️"}],version:1},clock12:{id:"clock12",name:"Twelve Oclock",keywords:["clock12","o","clock","12","00:00","0000","12:00","1200","time","noon","midnight","midday","late","early","schedule"],skins:[{unified:"1f55b",native:"🕛"}],version:1},clock1230:{id:"clock1230",name:"Twelve-Thirty",keywords:["clock1230","twelve","thirty","00:30","0030","12:30","1230","time","late","early","schedule"],skins:[{unified:"1f567",native:"🕧"}],version:1},clock1:{id:"clock1",name:"One Oclock",keywords:["clock1","o","clock","1","1:00","100","13:00","1300","time","late","early","schedule"],skins:[{unified:"1f550",native:"🕐"}],version:1},clock130:{id:"clock130",name:"One-Thirty",keywords:["clock130","one","thirty","1:30","130","13:30","1330","time","late","early","schedule"],skins:[{unified:"1f55c",native:"🕜"}],version:1},clock2:{id:"clock2",name:"Two Oclock",keywords:["clock2","o","clock","2","2:00","200","14:00","1400","time","late","early","schedule"],skins:[{unified:"1f551",native:"🕑"}],version:1},clock230:{id:"clock230",name:"Two-Thirty",keywords:["clock230","two","thirty","2:30","230","14:30","1430","time","late","early","schedule"],skins:[{unified:"1f55d",native:"🕝"}],version:1},clock3:{id:"clock3",name:"Three Oclock",keywords:["clock3","o","clock","3","3:00","300","15:00","1500","time","late","early","schedule"],skins:[{unified:"1f552",native:"🕒"}],version:1},clock330:{id:"clock330",name:"Three-Thirty",keywords:["clock330","three","thirty","3:30","330","15:30","1530","time","late","early","schedule"],skins:[{unified:"1f55e",native:"🕞"}],version:1},clock4:{id:"clock4",name:"Four Oclock",keywords:["clock4","o","clock","4","4:00","400","16:00","1600","time","late","early","schedule"],skins:[{unified:"1f553",native:"🕓"}],version:1},clock430:{id:"clock430",name:"Four-Thirty",keywords:["clock430","four","thirty","4:30","430","16:30","1630","time","late","early","schedule"],skins:[{unified:"1f55f",native:"🕟"}],version:1},clock5:{id:"clock5",name:"Five Oclock",keywords:["clock5","o","clock","5","5:00","500","17:00","1700","time","late","early","schedule"],skins:[{unified:"1f554",native:"🕔"}],version:1},clock530:{id:"clock530",name:"Five-Thirty",keywords:["clock530","five","thirty","5:30","530","17:30","1730","time","late","early","schedule"],skins:[{unified:"1f560",native:"🕠"}],version:1},clock6:{id:"clock6",name:"Six Oclock",keywords:["clock6","o","clock","6","6:00","600","18:00","1800","time","late","early","schedule","dawn","dusk"],skins:[{unified:"1f555",native:"🕕"}],version:1},clock630:{id:"clock630",name:"Six-Thirty",keywords:["clock630","six","thirty","6:30","630","18:30","1830","time","late","early","schedule"],skins:[{unified:"1f561",native:"🕡"}],version:1},clock7:{id:"clock7",name:"Seven Oclock",keywords:["clock7","o","clock","7","7:00","700","19:00","1900","time","late","early","schedule"],skins:[{unified:"1f556",native:"🕖"}],version:1},clock730:{id:"clock730",name:"Seven-Thirty",keywords:["clock730","seven","thirty","7:30","730","19:30","1930","time","late","early","schedule"],skins:[{unified:"1f562",native:"🕢"}],version:1},clock8:{id:"clock8",name:"Eight Oclock",keywords:["clock8","o","clock","8","8:00","800","20:00","2000","time","late","early","schedule"],skins:[{unified:"1f557",native:"🕗"}],version:1},clock830:{id:"clock830",name:"Eight-Thirty",keywords:["clock830","eight","thirty","8:30","830","20:30","2030","time","late","early","schedule"],skins:[{unified:"1f563",native:"🕣"}],version:1},clock9:{id:"clock9",name:"Nine Oclock",keywords:["clock9","o","clock","9","9:00","900","21:00","2100","time","late","early","schedule"],skins:[{unified:"1f558",native:"🕘"}],version:1},clock930:{id:"clock930",name:"Nine-Thirty",keywords:["clock930","nine","thirty","9:30","930","21:30","2130","time","late","early","schedule"],skins:[{unified:"1f564",native:"🕤"}],version:1},clock10:{id:"clock10",name:"Ten Oclock",keywords:["clock10","o","clock","10","10:00","1000","22:00","2200","time","late","early","schedule"],skins:[{unified:"1f559",native:"🕙"}],version:1},clock1030:{id:"clock1030",name:"Ten-Thirty",keywords:["clock1030","ten","thirty","10:30","1030","22:30","2230","time","late","early","schedule"],skins:[{unified:"1f565",native:"🕥"}],version:1},clock11:{id:"clock11",name:"Eleven Oclock",keywords:["clock11","o","clock","11","11:00","1100","23:00","2300","time","late","early","schedule"],skins:[{unified:"1f55a",native:"🕚"}],version:1},clock1130:{id:"clock1130",name:"Eleven-Thirty",keywords:["clock1130","eleven","thirty","11:30","1130","23:30","2330","time","late","early","schedule"],skins:[{unified:"1f566",native:"🕦"}],version:1},new_moon:{id:"new_moon",name:"New Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f311",native:"🌑"}],version:1},waxing_crescent_moon:{id:"waxing_crescent_moon",name:"Waxing Crescent Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f312",native:"🌒"}],version:1},first_quarter_moon:{id:"first_quarter_moon",name:"First Quarter Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f313",native:"🌓"}],version:1},moon:{id:"moon",name:"Waxing Gibbous Moon",keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],skins:[{unified:"1f314",native:"🌔"}],version:1},full_moon:{id:"full_moon",name:"Full Moon",keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f315",native:"🌕"}],version:1},waning_gibbous_moon:{id:"waning_gibbous_moon",name:"Waning Gibbous Moon",keywords:["nature","twilight","planet","space","night","evening","sleep","waxing"],skins:[{unified:"1f316",native:"🌖"}],version:1},last_quarter_moon:{id:"last_quarter_moon",name:"Last Quarter Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f317",native:"🌗"}],version:1},waning_crescent_moon:{id:"waning_crescent_moon",name:"Waning Crescent Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f318",native:"🌘"}],version:1},crescent_moon:{id:"crescent_moon",name:"Crescent Moon",keywords:["night","sleep","sky","evening","magic"],skins:[{unified:"1f319",native:"🌙"}],version:1},new_moon_with_face:{id:"new_moon_with_face",name:"New Moon Face",keywords:["with","nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f31a",native:"🌚"}],version:1},first_quarter_moon_with_face:{id:"first_quarter_moon_with_face",name:"First Quarter Moon Face",keywords:["with","nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f31b",native:"🌛"}],version:1},last_quarter_moon_with_face:{id:"last_quarter_moon_with_face",name:"Last Quarter Moon Face",keywords:["with","nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f31c",native:"🌜"}],version:1},thermometer:{id:"thermometer",name:"Thermometer",keywords:["weather","temperature","hot","cold"],skins:[{unified:"1f321-fe0f",native:"🌡️"}],version:1},sunny:{id:"sunny",name:"Sun",keywords:["sunny","weather","nature","brightness","summer","beach","spring"],skins:[{unified:"2600-fe0f",native:"☀️"}],version:1},full_moon_with_face:{id:"full_moon_with_face",name:"Full Moon Face",keywords:["with","nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f31d",native:"🌝"}],version:1},sun_with_face:{id:"sun_with_face",name:"Sun with Face",keywords:["nature","morning","sky"],skins:[{unified:"1f31e",native:"🌞"}],version:1},ringed_planet:{id:"ringed_planet",name:"Ringed Planet",keywords:["outerspace"],skins:[{unified:"1fa90",native:"🪐"}],version:12},star:{id:"star",name:"Star",keywords:["night","yellow"],skins:[{unified:"2b50",native:"⭐"}],version:1},star2:{id:"star2",name:"Glowing Star",keywords:["star2","night","sparkle","awesome","good","magic"],skins:[{unified:"1f31f",native:"🌟"}],version:1},stars:{id:"stars",name:"Shooting Star",keywords:["stars","night","photo"],skins:[{unified:"1f320",native:"🌠"}],version:1},milky_way:{id:"milky_way",name:"Milky Way",keywords:["photo","space","stars"],skins:[{unified:"1f30c",native:"🌌"}],version:1},cloud:{id:"cloud",name:"Cloud",keywords:["weather","sky"],skins:[{unified:"2601-fe0f",native:"☁️"}],version:1},partly_sunny:{id:"partly_sunny",name:"Sun Behind Cloud",keywords:["partly","sunny","weather","nature","cloudy","morning","fall","spring"],skins:[{unified:"26c5",native:"⛅"}],version:1},thunder_cloud_and_rain:{id:"thunder_cloud_and_rain",name:"Cloud with Lightning and Rain",keywords:["thunder","weather"],skins:[{unified:"26c8-fe0f",native:"⛈️"}],version:1},mostly_sunny:{id:"mostly_sunny",name:"Sun Behind Small Cloud",keywords:["mostly","sunny","weather"],skins:[{unified:"1f324-fe0f",native:"🌤️"}],version:1},barely_sunny:{id:"barely_sunny",name:"Sun Behind Large Cloud",keywords:["barely","sunny","weather"],skins:[{unified:"1f325-fe0f",native:"🌥️"}],version:1},partly_sunny_rain:{id:"partly_sunny_rain",name:"Sun Behind Rain Cloud",keywords:["partly","sunny","weather"],skins:[{unified:"1f326-fe0f",native:"🌦️"}],version:1},rain_cloud:{id:"rain_cloud",name:"Cloud with Rain",keywords:["weather"],skins:[{unified:"1f327-fe0f",native:"🌧️"}],version:1},snow_cloud:{id:"snow_cloud",name:"Cloud with Snow",keywords:["weather"],skins:[{unified:"1f328-fe0f",native:"🌨️"}],version:1},lightning:{id:"lightning",name:"Cloud with Lightning",keywords:["weather","thunder"],skins:[{unified:"1f329-fe0f",native:"🌩️"}],version:1},tornado:{id:"tornado",name:"Tornado",keywords:["cloud","weather","cyclone","twister"],skins:[{unified:"1f32a-fe0f",native:"🌪️"}],version:1},fog:{id:"fog",name:"Fog",keywords:["weather"],skins:[{unified:"1f32b-fe0f",native:"🌫️"}],version:1},wind_blowing_face:{id:"wind_blowing_face",name:"Wind Face",keywords:["blowing","gust","air"],skins:[{unified:"1f32c-fe0f",native:"🌬️"}],version:1},cyclone:{id:"cyclone",name:"Cyclone",keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],skins:[{unified:"1f300",native:"🌀"}],version:1},rainbow:{id:"rainbow",name:"Rainbow",keywords:["nature","happy","unicorn","face","photo","sky","spring"],skins:[{unified:"1f308",native:"🌈"}],version:1},closed_umbrella:{id:"closed_umbrella",name:"Closed Umbrella",keywords:["weather","rain","drizzle"],skins:[{unified:"1f302",native:"🌂"}],version:1},umbrella:{id:"umbrella",name:"Umbrella",keywords:["weather","spring"],skins:[{unified:"2602-fe0f",native:"☂️"}],version:1},umbrella_with_rain_drops:{id:"umbrella_with_rain_drops",name:"Umbrella with Rain Drops",keywords:["rainy","weather","spring"],skins:[{unified:"2614",native:"☔"}],version:1},umbrella_on_ground:{id:"umbrella_on_ground",name:"Umbrella on Ground",keywords:["weather","summer"],skins:[{unified:"26f1-fe0f",native:"⛱️"}],version:1},zap:{id:"zap",name:"High Voltage",keywords:["zap","thunder","weather","lightning","bolt","fast"],skins:[{unified:"26a1",native:"⚡"}],version:1},snowflake:{id:"snowflake",name:"Snowflake",keywords:["winter","season","cold","weather","christmas","xmas"],skins:[{unified:"2744-fe0f",native:"❄️"}],version:1},snowman:{id:"snowman",name:"Snowman",keywords:["winter","season","cold","weather","christmas","xmas","frozen"],skins:[{unified:"2603-fe0f",native:"☃️"}],version:1},snowman_without_snow:{id:"snowman_without_snow",name:"Snowman Without Snow",keywords:["winter","season","cold","weather","christmas","xmas","frozen"],skins:[{unified:"26c4",native:"⛄"}],version:1},comet:{id:"comet",name:"Comet",keywords:["space"],skins:[{unified:"2604-fe0f",native:"☄️"}],version:1},fire:{id:"fire",name:"Fire",keywords:["hot","cook","flame"],skins:[{unified:"1f525",native:"🔥"}],version:1},droplet:{id:"droplet",name:"Droplet",keywords:["water","drip","faucet","spring"],skins:[{unified:"1f4a7",native:"💧"}],version:1},ocean:{id:"ocean",name:"Water Wave",keywords:["ocean","sea","nature","tsunami","disaster"],skins:[{unified:"1f30a",native:"🌊"}],version:1},jack_o_lantern:{id:"jack_o_lantern",name:"Jack-O-Lantern",keywords:["jack","o","lantern","halloween","light","pumpkin","creepy","fall"],skins:[{unified:"1f383",native:"🎃"}],version:1},christmas_tree:{id:"christmas_tree",name:"Christmas Tree",keywords:["festival","vacation","december","xmas","celebration"],skins:[{unified:"1f384",native:"🎄"}],version:1},fireworks:{id:"fireworks",name:"Fireworks",keywords:["photo","festival","carnival","congratulations"],skins:[{unified:"1f386",native:"🎆"}],version:1},sparkler:{id:"sparkler",name:"Sparkler",keywords:["stars","night","shine"],skins:[{unified:"1f387",native:"🎇"}],version:1},firecracker:{id:"firecracker",name:"Firecracker",keywords:["dynamite","boom","explode","explosion","explosive"],skins:[{unified:"1f9e8",native:"🧨"}],version:11},sparkles:{id:"sparkles",name:"Sparkles",keywords:["stars","shine","shiny","cool","awesome","good","magic"],skins:[{unified:"2728",native:"✨"}],version:1},balloon:{id:"balloon",name:"Balloon",keywords:["party","celebration","birthday","circus"],skins:[{unified:"1f388",native:"🎈"}],version:1},tada:{id:"tada",name:"Party Popper",keywords:["tada","congratulations","birthday","magic","circus","celebration"],skins:[{unified:"1f389",native:"🎉"}],version:1},confetti_ball:{id:"confetti_ball",name:"Confetti Ball",keywords:["festival","party","birthday","circus"],skins:[{unified:"1f38a",native:"🎊"}],version:1},tanabata_tree:{id:"tanabata_tree",name:"Tanabata Tree",keywords:["plant","nature","branch","summer","bamboo","wish","star","festival","tanzaku"],skins:[{unified:"1f38b",native:"🎋"}],version:1},bamboo:{id:"bamboo",name:"Pine Decoration",keywords:["bamboo","japanese","plant","nature","vegetable","panda","new","years"],skins:[{unified:"1f38d",native:"🎍"}],version:1},dolls:{id:"dolls",name:"Japanese Dolls",keywords:["toy","kimono"],skins:[{unified:"1f38e",native:"🎎"}],version:1},flags:{id:"flags",name:"Carp Streamer",keywords:["flags","fish","japanese","koinobori","banner"],skins:[{unified:"1f38f",native:"🎏"}],version:1},wind_chime:{id:"wind_chime",name:"Wind Chime",keywords:["nature","ding","spring","bell"],skins:[{unified:"1f390",native:"🎐"}],version:1},rice_scene:{id:"rice_scene",name:"Moon Viewing Ceremony",keywords:["rice","scene","photo","japan","asia","tsukimi"],skins:[{unified:"1f391",native:"🎑"}],version:1},red_envelope:{id:"red_envelope",name:"Red Envelope",keywords:["gift"],skins:[{unified:"1f9e7",native:"🧧"}],version:11},ribbon:{id:"ribbon",name:"Ribbon",keywords:["decoration","pink","girl","bowtie"],skins:[{unified:"1f380",native:"🎀"}],version:1},gift:{id:"gift",name:"Wrapped Gift",keywords:["present","birthday","christmas","xmas"],skins:[{unified:"1f381",native:"🎁"}],version:1},reminder_ribbon:{id:"reminder_ribbon",name:"Reminder Ribbon",keywords:["sports","cause","support","awareness"],skins:[{unified:"1f397-fe0f",native:"🎗️"}],version:1},admission_tickets:{id:"admission_tickets",name:"Admission Tickets",keywords:["sports","concert","entrance"],skins:[{unified:"1f39f-fe0f",native:"🎟️"}],version:1},ticket:{id:"ticket",name:"Ticket",keywords:["event","concert","pass"],skins:[{unified:"1f3ab",native:"🎫"}],version:1},medal:{id:"medal",name:"Military Medal",keywords:["award","winning","army"],skins:[{unified:"1f396-fe0f",native:"🎖️"}],version:1},trophy:{id:"trophy",name:"Trophy",keywords:["win","award","contest","place","ftw","ceremony"],skins:[{unified:"1f3c6",native:"🏆"}],version:1},sports_medal:{id:"sports_medal",name:"Sports Medal",keywords:["award","winning"],skins:[{unified:"1f3c5",native:"🏅"}],version:1},first_place_medal:{id:"first_place_medal",name:"1st Place Medal",keywords:["first","award","winning"],skins:[{unified:"1f947",native:"🥇"}],version:3},second_place_medal:{id:"second_place_medal",name:"2nd Place Medal",keywords:["second","award"],skins:[{unified:"1f948",native:"🥈"}],version:3},third_place_medal:{id:"third_place_medal",name:"3rd Place Medal",keywords:["third","award"],skins:[{unified:"1f949",native:"🥉"}],version:3},soccer:{id:"soccer",name:"Soccer Ball",keywords:["sports","football"],skins:[{unified:"26bd",native:"⚽"}],version:1},baseball:{id:"baseball",name:"Baseball",keywords:["sports","balls"],skins:[{unified:"26be",native:"⚾"}],version:1},softball:{id:"softball",name:"Softball",keywords:["sports","balls"],skins:[{unified:"1f94e",native:"🥎"}],version:11},basketball:{id:"basketball",name:"Basketball",keywords:["sports","balls","NBA"],skins:[{unified:"1f3c0",native:"🏀"}],version:1},volleyball:{id:"volleyball",name:"Volleyball",keywords:["sports","balls"],skins:[{unified:"1f3d0",native:"🏐"}],version:1},football:{id:"football",name:"American Football",keywords:["sports","balls","NFL"],skins:[{unified:"1f3c8",native:"🏈"}],version:1},rugby_football:{id:"rugby_football",name:"Rugby Football",keywords:["sports","team"],skins:[{unified:"1f3c9",native:"🏉"}],version:1},tennis:{id:"tennis",name:"Tennis",keywords:["sports","balls","green"],skins:[{unified:"1f3be",native:"🎾"}],version:1},flying_disc:{id:"flying_disc",name:"Flying Disc",keywords:["sports","frisbee","ultimate"],skins:[{unified:"1f94f",native:"🥏"}],version:11},bowling:{id:"bowling",name:"Bowling",keywords:["sports","fun","play"],skins:[{unified:"1f3b3",native:"🎳"}],version:1},cricket_bat_and_ball:{id:"cricket_bat_and_ball",name:"Cricket Game",keywords:["bat","and","ball","sports"],skins:[{unified:"1f3cf",native:"🏏"}],version:1},field_hockey_stick_and_ball:{id:"field_hockey_stick_and_ball",name:"Field Hockey",keywords:["stick","and","ball","sports"],skins:[{unified:"1f3d1",native:"🏑"}],version:1},ice_hockey_stick_and_puck:{id:"ice_hockey_stick_and_puck",name:"Ice Hockey",keywords:["stick","and","puck","sports"],skins:[{unified:"1f3d2",native:"🏒"}],version:1},lacrosse:{id:"lacrosse",name:"Lacrosse",keywords:["sports","ball","stick"],skins:[{unified:"1f94d",native:"🥍"}],version:11},table_tennis_paddle_and_ball:{id:"table_tennis_paddle_and_ball",name:"Ping Pong",keywords:["table","tennis","paddle","and","ball","sports","pingpong"],skins:[{unified:"1f3d3",native:"🏓"}],version:1},badminton_racquet_and_shuttlecock:{id:"badminton_racquet_and_shuttlecock",name:"Badminton",keywords:["racquet","and","shuttlecock","sports"],skins:[{unified:"1f3f8",native:"🏸"}],version:1},boxing_glove:{id:"boxing_glove",name:"Boxing Glove",keywords:["sports","fighting"],skins:[{unified:"1f94a",native:"🥊"}],version:3},martial_arts_uniform:{id:"martial_arts_uniform",name:"Martial Arts Uniform",keywords:["judo","karate","taekwondo"],skins:[{unified:"1f94b",native:"🥋"}],version:3},goal_net:{id:"goal_net",name:"Goal Net",keywords:["sports"],skins:[{unified:"1f945",native:"🥅"}],version:3},golf:{id:"golf",name:"Flag in Hole",keywords:["golf","sports","business","summer"],skins:[{unified:"26f3",native:"⛳"}],version:1},ice_skate:{id:"ice_skate",name:"Ice Skate",keywords:["sports"],skins:[{unified:"26f8-fe0f",native:"⛸️"}],version:1},fishing_pole_and_fish:{id:"fishing_pole_and_fish",name:"Fishing Pole",keywords:["and","fish","food","hobby","summer"],skins:[{unified:"1f3a3",native:"🎣"}],version:1},diving_mask:{id:"diving_mask",name:"Diving Mask",keywords:["sport","ocean"],skins:[{unified:"1f93f",native:"🤿"}],version:12},running_shirt_with_sash:{id:"running_shirt_with_sash",name:"Running Shirt",keywords:["with","sash","play","pageant"],skins:[{unified:"1f3bd",native:"🎽"}],version:1},ski:{id:"ski",name:"Skis",keywords:["ski","sports","winter","cold","snow"],skins:[{unified:"1f3bf",native:"🎿"}],version:1},sled:{id:"sled",name:"Sled",keywords:["sleigh","luge","toboggan"],skins:[{unified:"1f6f7",native:"🛷"}],version:5},curling_stone:{id:"curling_stone",name:"Curling Stone",keywords:["sports"],skins:[{unified:"1f94c",native:"🥌"}],version:5},dart:{id:"dart",name:"Bullseye",keywords:["dart","direct","hit","game","play","bar","target"],skins:[{unified:"1f3af",native:"🎯"}],version:1},"yo-yo":{id:"yo-yo",name:"Yo-Yo",keywords:["yo","toy"],skins:[{unified:"1fa80",native:"🪀"}],version:12},kite:{id:"kite",name:"Kite",keywords:["wind","fly"],skins:[{unified:"1fa81",native:"🪁"}],version:12},gun:{id:"gun",name:"Pistol",keywords:["gun","violence","weapon","revolver"],skins:[{unified:"1f52b",native:"🔫"}],version:1},"8ball":{id:"8ball",name:"Billiards",keywords:["8ball","pool","8","ball","hobby","game","luck","magic"],skins:[{unified:"1f3b1",native:"🎱"}],version:1},crystal_ball:{id:"crystal_ball",name:"Crystal Ball",keywords:["disco","party","magic","circus","fortune","teller"],skins:[{unified:"1f52e",native:"🔮"}],version:1},magic_wand:{id:"magic_wand",name:"Magic Wand",keywords:["supernature","power"],skins:[{unified:"1fa84",native:"🪄"}],version:13},video_game:{id:"video_game",name:"Video Game",keywords:["play","console","PS4","controller"],skins:[{unified:"1f3ae",native:"🎮"}],version:1},joystick:{id:"joystick",name:"Joystick",keywords:["game","play"],skins:[{unified:"1f579-fe0f",native:"🕹️"}],version:1},slot_machine:{id:"slot_machine",name:"Slot Machine",keywords:["bet","gamble","vegas","fruit","luck","casino"],skins:[{unified:"1f3b0",native:"🎰"}],version:1},game_die:{id:"game_die",name:"Game Die",keywords:["dice","random","tabletop","play","luck"],skins:[{unified:"1f3b2",native:"🎲"}],version:1},jigsaw:{id:"jigsaw",name:"Puzzle Piece",keywords:["jigsaw","interlocking"],skins:[{unified:"1f9e9",native:"🧩"}],version:11},teddy_bear:{id:"teddy_bear",name:"Teddy Bear",keywords:["plush","stuffed"],skins:[{unified:"1f9f8",native:"🧸"}],version:11},pinata:{id:"pinata",name:"Pinata",keywords:["mexico","candy","celebration"],skins:[{unified:"1fa85",native:"🪅"}],version:13},mirror_ball:{id:"mirror_ball",name:"Mirror Ball",keywords:["disco","dance","party"],skins:[{unified:"1faa9",native:"🪩"}],version:14},nesting_dolls:{id:"nesting_dolls",name:"Nesting Dolls",keywords:["matryoshka","toy"],skins:[{unified:"1fa86",native:"🪆"}],version:13},spades:{id:"spades",name:"Spade Suit",keywords:["spades","poker","cards","suits","magic"],skins:[{unified:"2660-fe0f",native:"♠️"}],version:1},hearts:{id:"hearts",name:"Heart Suit",keywords:["hearts","poker","cards","magic","suits"],skins:[{unified:"2665-fe0f",native:"♥️"}],version:1},diamonds:{id:"diamonds",name:"Diamond Suit",keywords:["diamonds","poker","cards","magic","suits"],skins:[{unified:"2666-fe0f",native:"♦️"}],version:1},clubs:{id:"clubs",name:"Club Suit",keywords:["clubs","poker","cards","magic","suits"],skins:[{unified:"2663-fe0f",native:"♣️"}],version:1},chess_pawn:{id:"chess_pawn",name:"Chess Pawn",keywords:["expendable"],skins:[{unified:"265f-fe0f",native:"♟️"}],version:11},black_joker:{id:"black_joker",name:"Joker",keywords:["black","poker","cards","game","play","magic"],skins:[{unified:"1f0cf",native:"🃏"}],version:1},mahjong:{id:"mahjong",name:"Mahjong Red Dragon",keywords:["game","play","chinese","kanji"],skins:[{unified:"1f004",native:"🀄"}],version:1},flower_playing_cards:{id:"flower_playing_cards",name:"Flower Playing Cards",keywords:["game","sunset","red"],skins:[{unified:"1f3b4",native:"🎴"}],version:1},performing_arts:{id:"performing_arts",name:"Performing Arts",keywords:["acting","theater","drama"],skins:[{unified:"1f3ad",native:"🎭"}],version:1},frame_with_picture:{id:"frame_with_picture",name:"Framed Picture",keywords:["frame","with","photography"],skins:[{unified:"1f5bc-fe0f",native:"🖼️"}],version:1},art:{id:"art",name:"Artist Palette",keywords:["art","design","paint","draw","colors"],skins:[{unified:"1f3a8",native:"🎨"}],version:1},thread:{id:"thread",name:"Thread",keywords:["needle","sewing","spool","string"],skins:[{unified:"1f9f5",native:"🧵"}],version:11},sewing_needle:{id:"sewing_needle",name:"Sewing Needle",keywords:["stitches"],skins:[{unified:"1faa1",native:"🪡"}],version:13},yarn:{id:"yarn",name:"Yarn",keywords:["ball","crochet","knit"],skins:[{unified:"1f9f6",native:"🧶"}],version:11},knot:{id:"knot",name:"Knot",keywords:["rope","scout"],skins:[{unified:"1faa2",native:"🪢"}],version:13},eyeglasses:{id:"eyeglasses",name:"Glasses",keywords:["eyeglasses","fashion","accessories","eyesight","nerdy","dork","geek"],skins:[{unified:"1f453",native:"👓"}],version:1},dark_sunglasses:{id:"dark_sunglasses",name:"Sunglasses",keywords:["dark","face","cool","accessories"],skins:[{unified:"1f576-fe0f",native:"🕶️"}],version:1},goggles:{id:"goggles",name:"Goggles",keywords:["eyes","protection","safety"],skins:[{unified:"1f97d",native:"🥽"}],version:11},lab_coat:{id:"lab_coat",name:"Lab Coat",keywords:["doctor","experiment","scientist","chemist"],skins:[{unified:"1f97c",native:"🥼"}],version:11},safety_vest:{id:"safety_vest",name:"Safety Vest",keywords:["protection"],skins:[{unified:"1f9ba",native:"🦺"}],version:12},necktie:{id:"necktie",name:"Necktie",keywords:["shirt","suitup","formal","fashion","cloth","business"],skins:[{unified:"1f454",native:"👔"}],version:1},shirt:{id:"shirt",name:"T-Shirt",keywords:["shirt","tshirt","t","fashion","cloth","casual","tee"],skins:[{unified:"1f455",native:"👕"}],version:1},jeans:{id:"jeans",name:"Jeans",keywords:["fashion","shopping"],skins:[{unified:"1f456",native:"👖"}],version:1},scarf:{id:"scarf",name:"Scarf",keywords:["neck","winter","clothes"],skins:[{unified:"1f9e3",native:"🧣"}],version:5},gloves:{id:"gloves",name:"Gloves",keywords:["hands","winter","clothes"],skins:[{unified:"1f9e4",native:"🧤"}],version:5},coat:{id:"coat",name:"Coat",keywords:["jacket"],skins:[{unified:"1f9e5",native:"🧥"}],version:5},socks:{id:"socks",name:"Socks",keywords:["stockings","clothes"],skins:[{unified:"1f9e6",native:"🧦"}],version:5},dress:{id:"dress",name:"Dress",keywords:["clothes","fashion","shopping"],skins:[{unified:"1f457",native:"👗"}],version:1},kimono:{id:"kimono",name:"Kimono",keywords:["dress","fashion","women","female","japanese"],skins:[{unified:"1f458",native:"👘"}],version:1},sari:{id:"sari",name:"Sari",keywords:["dress"],skins:[{unified:"1f97b",native:"🥻"}],version:12},"one-piece_swimsuit":{id:"one-piece_swimsuit",name:"One-Piece Swimsuit",keywords:["one","piece","fashion"],skins:[{unified:"1fa71",native:"🩱"}],version:12},briefs:{id:"briefs",name:"Briefs",keywords:["clothing"],skins:[{unified:"1fa72",native:"🩲"}],version:12},shorts:{id:"shorts",name:"Shorts",keywords:["clothing"],skins:[{unified:"1fa73",native:"🩳"}],version:12},bikini:{id:"bikini",name:"Bikini",keywords:["swimming","female","woman","girl","fashion","beach","summer"],skins:[{unified:"1f459",native:"👙"}],version:1},womans_clothes:{id:"womans_clothes",name:"Womans Clothes",keywords:["woman","s","fashion","shopping","bags","female"],skins:[{unified:"1f45a",native:"👚"}],version:1},folding_hand_fan:{id:"folding_hand_fan",name:"Folding Hand Fan",keywords:["flamenco","hot"],skins:[{unified:"1faad",native:"🪭"}],version:15},purse:{id:"purse",name:"Purse",keywords:["fashion","accessories","money","sales","shopping"],skins:[{unified:"1f45b",native:"👛"}],version:1},handbag:{id:"handbag",name:"Handbag",keywords:["fashion","accessory","accessories","shopping"],skins:[{unified:"1f45c",native:"👜"}],version:1},pouch:{id:"pouch",name:"Pouch",keywords:["clutch","bag","accessories","shopping"],skins:[{unified:"1f45d",native:"👝"}],version:1},shopping_bags:{id:"shopping_bags",name:"Shopping Bags",keywords:["mall","buy","purchase"],skins:[{unified:"1f6cd-fe0f",native:"🛍️"}],version:1},school_satchel:{id:"school_satchel",name:"Backpack",keywords:["school","satchel","student","education","bag"],skins:[{unified:"1f392",native:"🎒"}],version:1},thong_sandal:{id:"thong_sandal",name:"Thong Sandal",keywords:["footwear","summer"],skins:[{unified:"1fa74",native:"🩴"}],version:13},mans_shoe:{id:"mans_shoe",name:"Mans Shoe",keywords:["man","s","fashion","male"],skins:[{unified:"1f45e",native:"👞"}],version:1},athletic_shoe:{id:"athletic_shoe",name:"Running Shoe",keywords:["athletic","shoes","sports","sneakers"],skins:[{unified:"1f45f",native:"👟"}],version:1},hiking_boot:{id:"hiking_boot",name:"Hiking Boot",keywords:["backpacking","camping"],skins:[{unified:"1f97e",native:"🥾"}],version:11},womans_flat_shoe:{id:"womans_flat_shoe",name:"Flat Shoe",keywords:["womans","ballet","slip","on","slipper"],skins:[{unified:"1f97f",native:"🥿"}],version:11},high_heel:{id:"high_heel",name:"High-Heeled Shoe",keywords:["high","heel","heeled","fashion","shoes","female","pumps","stiletto"],skins:[{unified:"1f460",native:"👠"}],version:1},sandal:{id:"sandal",name:"Womans Sandal",keywords:["woman","s","shoes","fashion","flip","flops"],skins:[{unified:"1f461",native:"👡"}],version:1},ballet_shoes:{id:"ballet_shoes",name:"Ballet Shoes",keywords:["dance"],skins:[{unified:"1fa70",native:"🩰"}],version:12},boot:{id:"boot",name:"Womans Boots",keywords:["boot","woman","s","shoes","fashion"],skins:[{unified:"1f462",native:"👢"}],version:1},hair_pick:{id:"hair_pick",name:"Hair Pick",keywords:["afro","comb"],skins:[{unified:"1faae",native:"🪮"}],version:15},crown:{id:"crown",name:"Crown",keywords:["king","kod","leader","royalty","lord"],skins:[{unified:"1f451",native:"👑"}],version:1},womans_hat:{id:"womans_hat",name:"Womans Hat",keywords:["woman","s","fashion","accessories","female","lady","spring"],skins:[{unified:"1f452",native:"👒"}],version:1},tophat:{id:"tophat",name:"Top Hat",keywords:["tophat","magic","gentleman","classy","circus"],skins:[{unified:"1f3a9",native:"🎩"}],version:1},mortar_board:{id:"mortar_board",name:"Graduation Cap",keywords:["mortar","board","school","college","degree","university","hat","legal","learn","education"],skins:[{unified:"1f393",native:"🎓"}],version:1},billed_cap:{id:"billed_cap",name:"Billed Cap",keywords:["baseball"],skins:[{unified:"1f9e2",native:"🧢"}],version:5},military_helmet:{id:"military_helmet",name:"Military Helmet",keywords:["army","protection"],skins:[{unified:"1fa96",native:"🪖"}],version:13},helmet_with_white_cross:{id:"helmet_with_white_cross",name:"Rescue Workers Helmet",keywords:["with","white","cross","worker","s","construction","build"],skins:[{unified:"26d1-fe0f",native:"⛑️"}],version:1},prayer_beads:{id:"prayer_beads",name:"Prayer Beads",keywords:["dhikr","religious"],skins:[{unified:"1f4ff",native:"📿"}],version:1},lipstick:{id:"lipstick",name:"Lipstick",keywords:["female","girl","fashion","woman"],skins:[{unified:"1f484",native:"💄"}],version:1},ring:{id:"ring",name:"Ring",keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],skins:[{unified:"1f48d",native:"💍"}],version:1},gem:{id:"gem",name:"Gem Stone",keywords:["blue","ruby","diamond","jewelry"],skins:[{unified:"1f48e",native:"💎"}],version:1},mute:{id:"mute",name:"Muted Speaker",keywords:["mute","sound","volume","silence","quiet"],skins:[{unified:"1f507",native:"🔇"}],version:1},speaker:{id:"speaker",name:"Speaker",keywords:["low","volume","sound","silence","broadcast"],skins:[{unified:"1f508",native:"🔈"}],version:1},sound:{id:"sound",name:"Speaker Medium Volume",keywords:["sound","broadcast"],skins:[{unified:"1f509",native:"🔉"}],version:1},loud_sound:{id:"loud_sound",name:"Speaker High Volume",keywords:["loud","sound","noise","noisy","broadcast"],skins:[{unified:"1f50a",native:"🔊"}],version:1},loudspeaker:{id:"loudspeaker",name:"Loudspeaker",keywords:["volume","sound"],skins:[{unified:"1f4e2",native:"📢"}],version:1},mega:{id:"mega",name:"Megaphone",keywords:["mega","sound","speaker","volume"],skins:[{unified:"1f4e3",native:"📣"}],version:1},postal_horn:{id:"postal_horn",name:"Postal Horn",keywords:["instrument","music"],skins:[{unified:"1f4ef",native:"📯"}],version:1},bell:{id:"bell",name:"Bell",keywords:["sound","notification","christmas","xmas","chime"],skins:[{unified:"1f514",native:"🔔"}],version:1},no_bell:{id:"no_bell",name:"Bell with Slash",keywords:["no","sound","volume","mute","quiet","silent"],skins:[{unified:"1f515",native:"🔕"}],version:1},musical_score:{id:"musical_score",name:"Musical Score",keywords:["treble","clef","compose"],skins:[{unified:"1f3bc",native:"🎼"}],version:1},musical_note:{id:"musical_note",name:"Musical Note",keywords:["score","tone","sound"],skins:[{unified:"1f3b5",native:"🎵"}],version:1},notes:{id:"notes",name:"Musical Notes",keywords:["music","score"],skins:[{unified:"1f3b6",native:"🎶"}],version:1},studio_microphone:{id:"studio_microphone",name:"Studio Microphone",keywords:["sing","recording","artist","talkshow"],skins:[{unified:"1f399-fe0f",native:"🎙️"}],version:1},level_slider:{id:"level_slider",name:"Level Slider",keywords:["scale"],skins:[{unified:"1f39a-fe0f",native:"🎚️"}],version:1},control_knobs:{id:"control_knobs",name:"Control Knobs",keywords:["dial"],skins:[{unified:"1f39b-fe0f",native:"🎛️"}],version:1},microphone:{id:"microphone",name:"Microphone",keywords:["sound","music","PA","sing","talkshow"],skins:[{unified:"1f3a4",native:"🎤"}],version:1},headphones:{id:"headphones",name:"Headphone",keywords:["headphones","music","score","gadgets"],skins:[{unified:"1f3a7",native:"🎧"}],version:1},radio:{id:"radio",name:"Radio",keywords:["communication","music","podcast","program"],skins:[{unified:"1f4fb",native:"📻"}],version:1},saxophone:{id:"saxophone",name:"Saxophone",keywords:["music","instrument","jazz","blues"],skins:[{unified:"1f3b7",native:"🎷"}],version:1},accordion:{id:"accordion",name:"Accordion",keywords:["music"],skins:[{unified:"1fa97",native:"🪗"}],version:13},guitar:{id:"guitar",name:"Guitar",keywords:["music","instrument"],skins:[{unified:"1f3b8",native:"🎸"}],version:1},musical_keyboard:{id:"musical_keyboard",name:"Musical Keyboard",keywords:["piano","instrument","compose"],skins:[{unified:"1f3b9",native:"🎹"}],version:1},trumpet:{id:"trumpet",name:"Trumpet",keywords:["music","brass"],skins:[{unified:"1f3ba",native:"🎺"}],version:1},violin:{id:"violin",name:"Violin",keywords:["music","instrument","orchestra","symphony"],skins:[{unified:"1f3bb",native:"🎻"}],version:1},banjo:{id:"banjo",name:"Banjo",keywords:["music","instructment"],skins:[{unified:"1fa95",native:"🪕"}],version:12},drum_with_drumsticks:{id:"drum_with_drumsticks",name:"Drum",keywords:["with","drumsticks","music","instrument","snare"],skins:[{unified:"1f941",native:"🥁"}],version:3},long_drum:{id:"long_drum",name:"Long Drum",keywords:["music"],skins:[{unified:"1fa98",native:"🪘"}],version:13},maracas:{id:"maracas",name:"Maracas",keywords:["music","instrument","percussion"],skins:[{unified:"1fa87",native:"🪇"}],version:15},flute:{id:"flute",name:"Flute",keywords:["bamboo","music","instrument","pied","piper"],skins:[{unified:"1fa88",native:"🪈"}],version:15},iphone:{id:"iphone",name:"Mobile Phone",keywords:["iphone","technology","apple","gadgets","dial"],skins:[{unified:"1f4f1",native:"📱"}],version:1},calling:{id:"calling",name:"Mobile Phone with Arrow",keywords:["calling","iphone","incoming"],skins:[{unified:"1f4f2",native:"📲"}],version:1},phone:{id:"phone",name:"Telephone",keywords:["phone","technology","communication","dial"],skins:[{unified:"260e-fe0f",native:"☎️"}],version:1},telephone_receiver:{id:"telephone_receiver",name:"Telephone Receiver",keywords:["technology","communication","dial"],skins:[{unified:"1f4de",native:"📞"}],version:1},pager:{id:"pager",name:"Pager",keywords:["bbcall","oldschool","90s"],skins:[{unified:"1f4df",native:"📟"}],version:1},fax:{id:"fax",name:"Fax Machine",keywords:["communication","technology"],skins:[{unified:"1f4e0",native:"📠"}],version:1},battery:{id:"battery",name:"Battery",keywords:["power","energy","sustain"],skins:[{unified:"1f50b",native:"🔋"}],version:1},low_battery:{id:"low_battery",name:"Low Battery",keywords:["drained","dead"],skins:[{unified:"1faab",native:"🪫"}],version:14},electric_plug:{id:"electric_plug",name:"Electric Plug",keywords:["charger","power"],skins:[{unified:"1f50c",native:"🔌"}],version:1},computer:{id:"computer",name:"Laptop",keywords:["computer","technology","screen","display","monitor"],skins:[{unified:"1f4bb",native:"💻"}],version:1},desktop_computer:{id:"desktop_computer",name:"Desktop Computer",keywords:["technology","computing","screen"],skins:[{unified:"1f5a5-fe0f",native:"🖥️"}],version:1},printer:{id:"printer",name:"Printer",keywords:["paper","ink"],skins:[{unified:"1f5a8-fe0f",native:"🖨️"}],version:1},keyboard:{id:"keyboard",name:"Keyboard",keywords:["technology","computer","type","input","text"],skins:[{unified:"2328-fe0f",native:"⌨️"}],version:1},three_button_mouse:{id:"three_button_mouse",name:"Computer Mouse",keywords:["three","button","click"],skins:[{unified:"1f5b1-fe0f",native:"🖱️"}],version:1},trackball:{id:"trackball",name:"Trackball",keywords:["technology","trackpad"],skins:[{unified:"1f5b2-fe0f",native:"🖲️"}],version:1},minidisc:{id:"minidisc",name:"Minidisc",keywords:["computer","disk","technology","record","data","90s"],skins:[{unified:"1f4bd",native:"💽"}],version:1},floppy_disk:{id:"floppy_disk",name:"Floppy Disk",keywords:["oldschool","technology","save","90s","80s"],skins:[{unified:"1f4be",native:"💾"}],version:1},cd:{id:"cd",name:"Optical Disc",keywords:["cd","disk","technology","dvd","90s"],skins:[{unified:"1f4bf",native:"💿"}],version:1},dvd:{id:"dvd",name:"Dvd",keywords:["cd","disk","disc"],skins:[{unified:"1f4c0",native:"📀"}],version:1},abacus:{id:"abacus",name:"Abacus",keywords:["calculation"],skins:[{unified:"1f9ee",native:"🧮"}],version:11},movie_camera:{id:"movie_camera",name:"Movie Camera",keywords:["film","record"],skins:[{unified:"1f3a5",native:"🎥"}],version:1},film_frames:{id:"film_frames",name:"Film Frames",keywords:["movie"],skins:[{unified:"1f39e-fe0f",native:"🎞️"}],version:1},film_projector:{id:"film_projector",name:"Film Projector",keywords:["video","tape","record","movie"],skins:[{unified:"1f4fd-fe0f",native:"📽️"}],version:1},clapper:{id:"clapper",name:"Clapper Board",keywords:["movie","film","record"],skins:[{unified:"1f3ac",native:"🎬"}],version:1},tv:{id:"tv",name:"Television",keywords:["tv","technology","program","oldschool","show"],skins:[{unified:"1f4fa",native:"📺"}],version:1},camera:{id:"camera",name:"Camera",keywords:["gadgets","photography"],skins:[{unified:"1f4f7",native:"📷"}],version:1},camera_with_flash:{id:"camera_with_flash",name:"Camera with Flash",keywords:["photography","gadgets"],skins:[{unified:"1f4f8",native:"📸"}],version:1},video_camera:{id:"video_camera",name:"Video Camera",keywords:["film","record"],skins:[{unified:"1f4f9",native:"📹"}],version:1},vhs:{id:"vhs",name:"Videocassette",keywords:["vhs","record","video","oldschool","90s","80s"],skins:[{unified:"1f4fc",native:"📼"}],version:1},mag:{id:"mag",name:"Magnifying Glass Tilted Left",keywords:["mag","search","zoom","find","detective"],skins:[{unified:"1f50d",native:"🔍"}],version:1},mag_right:{id:"mag_right",name:"Magnifying Glass Tilted Right",keywords:["mag","search","zoom","find","detective"],skins:[{unified:"1f50e",native:"🔎"}],version:1},candle:{id:"candle",name:"Candle",keywords:["fire","wax"],skins:[{unified:"1f56f-fe0f",native:"🕯️"}],version:1},bulb:{id:"bulb",name:"Light Bulb",keywords:["electricity","idea"],skins:[{unified:"1f4a1",native:"💡"}],version:1},flashlight:{id:"flashlight",name:"Flashlight",keywords:["dark","camping","sight","night"],skins:[{unified:"1f526",native:"🔦"}],version:1},izakaya_lantern:{id:"izakaya_lantern",name:"Izakaya Lantern",keywords:["red","paper","light","halloween","spooky"],skins:[{unified:"1f3ee",native:"🏮"}],version:1},diya_lamp:{id:"diya_lamp",name:"Diya Lamp",keywords:["lighting"],skins:[{unified:"1fa94",native:"🪔"}],version:12},notebook_with_decorative_cover:{id:"notebook_with_decorative_cover",name:"Notebook with Decorative Cover",keywords:["classroom","notes","record","paper","study"],skins:[{unified:"1f4d4",native:"📔"}],version:1},closed_book:{id:"closed_book",name:"Closed Book",keywords:["read","library","knowledge","textbook","learn"],skins:[{unified:"1f4d5",native:"📕"}],version:1},book:{id:"book",name:"Open Book",keywords:["read","library","knowledge","literature","learn","study"],skins:[{unified:"1f4d6",native:"📖"}],version:1},green_book:{id:"green_book",name:"Green Book",keywords:["read","library","knowledge","study"],skins:[{unified:"1f4d7",native:"📗"}],version:1},blue_book:{id:"blue_book",name:"Blue Book",keywords:["read","library","knowledge","learn","study"],skins:[{unified:"1f4d8",native:"📘"}],version:1},orange_book:{id:"orange_book",name:"Orange Book",keywords:["read","library","knowledge","textbook","study"],skins:[{unified:"1f4d9",native:"📙"}],version:1},books:{id:"books",name:"Books",keywords:["literature","library","study"],skins:[{unified:"1f4da",native:"📚"}],version:1},notebook:{id:"notebook",name:"Notebook",keywords:["stationery","record","notes","paper","study"],skins:[{unified:"1f4d3",native:"📓"}],version:1},ledger:{id:"ledger",name:"Ledger",keywords:["notes","paper"],skins:[{unified:"1f4d2",native:"📒"}],version:1},page_with_curl:{id:"page_with_curl",name:"Page with Curl",keywords:["documents","office","paper"],skins:[{unified:"1f4c3",native:"📃"}],version:1},scroll:{id:"scroll",name:"Scroll",keywords:["documents","ancient","history","paper"],skins:[{unified:"1f4dc",native:"📜"}],version:1},page_facing_up:{id:"page_facing_up",name:"Page Facing Up",keywords:["documents","office","paper","information"],skins:[{unified:"1f4c4",native:"📄"}],version:1},newspaper:{id:"newspaper",name:"Newspaper",keywords:["press","headline"],skins:[{unified:"1f4f0",native:"📰"}],version:1},rolled_up_newspaper:{id:"rolled_up_newspaper",name:"Rolled-Up Newspaper",keywords:["rolled","up","press","headline"],skins:[{unified:"1f5de-fe0f",native:"🗞️"}],version:1},bookmark_tabs:{id:"bookmark_tabs",name:"Bookmark Tabs",keywords:["favorite","save","order","tidy"],skins:[{unified:"1f4d1",native:"📑"}],version:1},bookmark:{id:"bookmark",name:"Bookmark",keywords:["favorite","label","save"],skins:[{unified:"1f516",native:"🔖"}],version:1},label:{id:"label",name:"Label",keywords:["sale","tag"],skins:[{unified:"1f3f7-fe0f",native:"🏷️"}],version:1},moneybag:{id:"moneybag",name:"Money Bag",keywords:["moneybag","dollar","payment","coins","sale"],skins:[{unified:"1f4b0",native:"💰"}],version:1},coin:{id:"coin",name:"Coin",keywords:["money","currency"],skins:[{unified:"1fa99",native:"🪙"}],version:13},yen:{id:"yen",name:"Yen Banknote",keywords:["money","sales","japanese","dollar","currency"],skins:[{unified:"1f4b4",native:"💴"}],version:1},dollar:{id:"dollar",name:"Dollar Banknote",keywords:["money","sales","bill","currency"],skins:[{unified:"1f4b5",native:"💵"}],version:1},euro:{id:"euro",name:"Euro Banknote",keywords:["money","sales","dollar","currency"],skins:[{unified:"1f4b6",native:"💶"}],version:1},pound:{id:"pound",name:"Pound Banknote",keywords:["british","sterling","money","sales","bills","uk","england","currency"],skins:[{unified:"1f4b7",native:"💷"}],version:1},money_with_wings:{id:"money_with_wings",name:"Money with Wings",keywords:["dollar","bills","payment","sale"],skins:[{unified:"1f4b8",native:"💸"}],version:1},credit_card:{id:"credit_card",name:"Credit Card",keywords:["money","sales","dollar","bill","payment","shopping"],skins:[{unified:"1f4b3",native:"💳"}],version:1},receipt:{id:"receipt",name:"Receipt",keywords:["accounting","expenses"],skins:[{unified:"1f9fe",native:"🧾"}],version:11},chart:{id:"chart",name:"Chart Increasing with Yen",keywords:["green","square","graph","presentation","stats"],skins:[{unified:"1f4b9",native:"💹"}],version:1},email:{id:"email",name:"Envelope",keywords:["email","letter","postal","inbox","communication"],skins:[{unified:"2709-fe0f",native:"✉️"}],version:1},"e-mail":{id:"e-mail",name:"E-Mail",keywords:["e","mail","communication","inbox"],skins:[{unified:"1f4e7",native:"📧"}],version:1},incoming_envelope:{id:"incoming_envelope",name:"Incoming Envelope",keywords:["email","inbox"],skins:[{unified:"1f4e8",native:"📨"}],version:1},envelope_with_arrow:{id:"envelope_with_arrow",name:"Envelope with Arrow",keywords:["email","communication"],skins:[{unified:"1f4e9",native:"📩"}],version:1},outbox_tray:{id:"outbox_tray",name:"Outbox Tray",keywords:["inbox","email"],skins:[{unified:"1f4e4",native:"📤"}],version:1},inbox_tray:{id:"inbox_tray",name:"Inbox Tray",keywords:["email","documents"],skins:[{unified:"1f4e5",native:"📥"}],version:1},package:{id:"package",name:"Package",keywords:["mail","gift","cardboard","box","moving"],skins:[{unified:"1f4e6",native:"📦"}],version:1},mailbox:{id:"mailbox",name:"Closed Mailbox with Raised Flag",keywords:["email","inbox","communication"],skins:[{unified:"1f4eb",native:"📫"}],version:1},mailbox_closed:{id:"mailbox_closed",name:"Closed Mailbox with Lowered Flag",keywords:["email","communication","inbox"],skins:[{unified:"1f4ea",native:"📪"}],version:1},mailbox_with_mail:{id:"mailbox_with_mail",name:"Open Mailbox with Raised Flag",keywords:["mail","email","inbox","communication"],skins:[{unified:"1f4ec",native:"📬"}],version:1},mailbox_with_no_mail:{id:"mailbox_with_no_mail",name:"Open Mailbox with Lowered Flag",keywords:["no","mail","email","inbox"],skins:[{unified:"1f4ed",native:"📭"}],version:1},postbox:{id:"postbox",name:"Postbox",keywords:["email","letter","envelope"],skins:[{unified:"1f4ee",native:"📮"}],version:1},ballot_box_with_ballot:{id:"ballot_box_with_ballot",name:"Ballot Box with Ballot",keywords:["election","vote"],skins:[{unified:"1f5f3-fe0f",native:"🗳️"}],version:1},pencil2:{id:"pencil2",name:"Pencil",keywords:["pencil2","stationery","write","paper","writing","school","study"],skins:[{unified:"270f-fe0f",native:"✏️"}],version:1},black_nib:{id:"black_nib",name:"Black Nib",keywords:["pen","stationery","writing","write"],skins:[{unified:"2712-fe0f",native:"✒️"}],version:1},lower_left_fountain_pen:{id:"lower_left_fountain_pen",name:"Fountain Pen",keywords:["lower","left","stationery","writing","write"],skins:[{unified:"1f58b-fe0f",native:"🖋️"}],version:1},lower_left_ballpoint_pen:{id:"lower_left_ballpoint_pen",name:"Pen",keywords:["lower","left","ballpoint","stationery","writing","write"],skins:[{unified:"1f58a-fe0f",native:"🖊️"}],version:1},lower_left_paintbrush:{id:"lower_left_paintbrush",name:"Paintbrush",keywords:["lower","left","drawing","creativity","art"],skins:[{unified:"1f58c-fe0f",native:"🖌️"}],version:1},lower_left_crayon:{id:"lower_left_crayon",name:"Crayon",keywords:["lower","left","drawing","creativity"],skins:[{unified:"1f58d-fe0f",native:"🖍️"}],version:1},memo:{id:"memo",name:"Memo",keywords:["pencil","write","documents","stationery","paper","writing","legal","exam","quiz","test","study","compose"],skins:[{unified:"1f4dd",native:"📝"}],version:1},briefcase:{id:"briefcase",name:"Briefcase",keywords:["business","documents","work","law","legal","job","career"],skins:[{unified:"1f4bc",native:"💼"}],version:1},file_folder:{id:"file_folder",name:"File Folder",keywords:["documents","business","office"],skins:[{unified:"1f4c1",native:"📁"}],version:1},open_file_folder:{id:"open_file_folder",name:"Open File Folder",keywords:["documents","load"],skins:[{unified:"1f4c2",native:"📂"}],version:1},card_index_dividers:{id:"card_index_dividers",name:"Card Index Dividers",keywords:["organizing","business","stationery"],skins:[{unified:"1f5c2-fe0f",native:"🗂️"}],version:1},date:{id:"date",name:"Calendar",keywords:["date","schedule"],skins:[{unified:"1f4c5",native:"📅"}],version:1},calendar:{id:"calendar",name:"Tear-off Calendar",keywords:["tear","off","schedule","date","planning"],skins:[{unified:"1f4c6",native:"📆"}],version:1},spiral_note_pad:{id:"spiral_note_pad",name:"Spiral Notepad",keywords:["note","pad","memo","stationery"],skins:[{unified:"1f5d2-fe0f",native:"🗒️"}],version:1},spiral_calendar_pad:{id:"spiral_calendar_pad",name:"Spiral Calendar",keywords:["pad","date","schedule","planning"],skins:[{unified:"1f5d3-fe0f",native:"🗓️"}],version:1},card_index:{id:"card_index",name:"Card Index",keywords:["business","stationery"],skins:[{unified:"1f4c7",native:"📇"}],version:1},chart_with_upwards_trend:{id:"chart_with_upwards_trend",name:"Chart Increasing",keywords:["with","upwards","trend","graph","presentation","stats","recovery","business","economics","money","sales","good","success"],skins:[{unified:"1f4c8",native:"📈"}],version:1},chart_with_downwards_trend:{id:"chart_with_downwards_trend",name:"Chart Decreasing",keywords:["with","downwards","trend","graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],skins:[{unified:"1f4c9",native:"📉"}],version:1},bar_chart:{id:"bar_chart",name:"Bar Chart",keywords:["graph","presentation","stats"],skins:[{unified:"1f4ca",native:"📊"}],version:1},clipboard:{id:"clipboard",name:"Clipboard",keywords:["stationery","documents"],skins:[{unified:"1f4cb",native:"📋"}],version:1},pushpin:{id:"pushpin",name:"Pushpin",keywords:["stationery","mark","here"],skins:[{unified:"1f4cc",native:"📌"}],version:1},round_pushpin:{id:"round_pushpin",name:"Round Pushpin",keywords:["stationery","location","map","here"],skins:[{unified:"1f4cd",native:"📍"}],version:1},paperclip:{id:"paperclip",name:"Paperclip",keywords:["documents","stationery"],skins:[{unified:"1f4ce",native:"📎"}],version:1},linked_paperclips:{id:"linked_paperclips",name:"Linked Paperclips",keywords:["documents","stationery"],skins:[{unified:"1f587-fe0f",native:"🖇️"}],version:1},straight_ruler:{id:"straight_ruler",name:"Straight Ruler",keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],skins:[{unified:"1f4cf",native:"📏"}],version:1},triangular_ruler:{id:"triangular_ruler",name:"Triangular Ruler",keywords:["stationery","math","architect","sketch"],skins:[{unified:"1f4d0",native:"📐"}],version:1},scissors:{id:"scissors",name:"Scissors",keywords:["stationery","cut"],skins:[{unified:"2702-fe0f",native:"✂️"}],version:1},card_file_box:{id:"card_file_box",name:"Card File Box",keywords:["business","stationery"],skins:[{unified:"1f5c3-fe0f",native:"🗃️"}],version:1},file_cabinet:{id:"file_cabinet",name:"File Cabinet",keywords:["filing","organizing"],skins:[{unified:"1f5c4-fe0f",native:"🗄️"}],version:1},wastebasket:{id:"wastebasket",name:"Wastebasket",keywords:["bin","trash","rubbish","garbage","toss"],skins:[{unified:"1f5d1-fe0f",native:"🗑️"}],version:1},lock:{id:"lock",name:"Lock",keywords:["locked","security","password","padlock"],skins:[{unified:"1f512",native:"🔒"}],version:1},unlock:{id:"unlock",name:"Unlocked",keywords:["unlock","privacy","security"],skins:[{unified:"1f513",native:"🔓"}],version:1},lock_with_ink_pen:{id:"lock_with_ink_pen",name:"Locked with Pen",keywords:["lock","ink","security","secret"],skins:[{unified:"1f50f",native:"🔏"}],version:1},closed_lock_with_key:{id:"closed_lock_with_key",name:"Locked with Key",keywords:["closed","lock","security","privacy"],skins:[{unified:"1f510",native:"🔐"}],version:1},key:{id:"key",name:"Key",keywords:["lock","door","password"],skins:[{unified:"1f511",native:"🔑"}],version:1},old_key:{id:"old_key",name:"Old Key",keywords:["lock","door","password"],skins:[{unified:"1f5dd-fe0f",native:"🗝️"}],version:1},hammer:{id:"hammer",name:"Hammer",keywords:["tools","build","create"],skins:[{unified:"1f528",native:"🔨"}],version:1},axe:{id:"axe",name:"Axe",keywords:["tool","chop","cut"],skins:[{unified:"1fa93",native:"🪓"}],version:12},pick:{id:"pick",name:"Pick",keywords:["tools","dig"],skins:[{unified:"26cf-fe0f",native:"⛏️"}],version:1},hammer_and_pick:{id:"hammer_and_pick",name:"Hammer and Pick",keywords:["tools","build","create"],skins:[{unified:"2692-fe0f",native:"⚒️"}],version:1},hammer_and_wrench:{id:"hammer_and_wrench",name:"Hammer and Wrench",keywords:["tools","build","create"],skins:[{unified:"1f6e0-fe0f",native:"🛠️"}],version:1},dagger_knife:{id:"dagger_knife",name:"Dagger",keywords:["knife","weapon"],skins:[{unified:"1f5e1-fe0f",native:"🗡️"}],version:1},crossed_swords:{id:"crossed_swords",name:"Crossed Swords",keywords:["weapon"],skins:[{unified:"2694-fe0f",native:"⚔️"}],version:1},bomb:{id:"bomb",name:"Bomb",keywords:["boom","explode","explosion","terrorism"],skins:[{unified:"1f4a3",native:"💣"}],version:1},boomerang:{id:"boomerang",name:"Boomerang",keywords:["weapon"],skins:[{unified:"1fa83",native:"🪃"}],version:13},bow_and_arrow:{id:"bow_and_arrow",name:"Bow and Arrow",keywords:["sports"],skins:[{unified:"1f3f9",native:"🏹"}],version:1},shield:{id:"shield",name:"Shield",keywords:["protection","security"],skins:[{unified:"1f6e1-fe0f",native:"🛡️"}],version:1},carpentry_saw:{id:"carpentry_saw",name:"Carpentry Saw",keywords:["cut","chop"],skins:[{unified:"1fa9a",native:"🪚"}],version:13},wrench:{id:"wrench",name:"Wrench",keywords:["tools","diy","ikea","fix","maintainer"],skins:[{unified:"1f527",native:"🔧"}],version:1},screwdriver:{id:"screwdriver",name:"Screwdriver",keywords:["tools"],skins:[{unified:"1fa9b",native:"🪛"}],version:13},nut_and_bolt:{id:"nut_and_bolt",name:"Nut and Bolt",keywords:["handy","tools","fix"],skins:[{unified:"1f529",native:"🔩"}],version:1},gear:{id:"gear",name:"Gear",keywords:["cog"],skins:[{unified:"2699-fe0f",native:"⚙️"}],version:1},compression:{id:"compression",name:"Clamp",keywords:["compression","tool"],skins:[{unified:"1f5dc-fe0f",native:"🗜️"}],version:1},scales:{id:"scales",name:"Balance Scale",keywords:["scales","law","fairness","weight"],skins:[{unified:"2696-fe0f",native:"⚖️"}],version:1},probing_cane:{id:"probing_cane",name:"White Cane",keywords:["probing","accessibility"],skins:[{unified:"1f9af",native:"🦯"}],version:12},link:{id:"link",name:"Link",keywords:["rings","url"],skins:[{unified:"1f517",native:"🔗"}],version:1},chains:{id:"chains",name:"Chains",keywords:["lock","arrest"],skins:[{unified:"26d3-fe0f",native:"⛓️"}],version:1},hook:{id:"hook",name:"Hook",keywords:["tools"],skins:[{unified:"1fa9d",native:"🪝"}],version:13},toolbox:{id:"toolbox",name:"Toolbox",keywords:["tools","diy","fix","maintainer","mechanic"],skins:[{unified:"1f9f0",native:"🧰"}],version:11},magnet:{id:"magnet",name:"Magnet",keywords:["attraction","magnetic"],skins:[{unified:"1f9f2",native:"🧲"}],version:11},ladder:{id:"ladder",name:"Ladder",keywords:["tools"],skins:[{unified:"1fa9c",native:"🪜"}],version:13},alembic:{id:"alembic",name:"Alembic",keywords:["distilling","science","experiment","chemistry"],skins:[{unified:"2697-fe0f",native:"⚗️"}],version:1},test_tube:{id:"test_tube",name:"Test Tube",keywords:["chemistry","experiment","lab","science"],skins:[{unified:"1f9ea",native:"🧪"}],version:11},petri_dish:{id:"petri_dish",name:"Petri Dish",keywords:["bacteria","biology","culture","lab"],skins:[{unified:"1f9eb",native:"🧫"}],version:11},dna:{id:"dna",name:"Dna",keywords:["biologist","genetics","life"],skins:[{unified:"1f9ec",native:"🧬"}],version:11},microscope:{id:"microscope",name:"Microscope",keywords:["laboratory","experiment","zoomin","science","study"],skins:[{unified:"1f52c",native:"🔬"}],version:1},telescope:{id:"telescope",name:"Telescope",keywords:["stars","space","zoom","science","astronomy"],skins:[{unified:"1f52d",native:"🔭"}],version:1},satellite_antenna:{id:"satellite_antenna",name:"Satellite Antenna",keywords:["communication","future","radio","space"],skins:[{unified:"1f4e1",native:"📡"}],version:1},syringe:{id:"syringe",name:"Syringe",keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],skins:[{unified:"1f489",native:"💉"}],version:1},drop_of_blood:{id:"drop_of_blood",name:"Drop of Blood",keywords:["period","hurt","harm","wound"],skins:[{unified:"1fa78",native:"🩸"}],version:12},pill:{id:"pill",name:"Pill",keywords:["health","medicine","doctor","pharmacy","drug"],skins:[{unified:"1f48a",native:"💊"}],version:1},adhesive_bandage:{id:"adhesive_bandage",name:"Adhesive Bandage",keywords:["heal"],skins:[{unified:"1fa79",native:"🩹"}],version:12},crutch:{id:"crutch",name:"Crutch",keywords:["accessibility","assist"],skins:[{unified:"1fa7c",native:"🩼"}],version:14},stethoscope:{id:"stethoscope",name:"Stethoscope",keywords:["health"],skins:[{unified:"1fa7a",native:"🩺"}],version:12},"x-ray":{id:"x-ray",name:"X-Ray",keywords:["x","ray","skeleton","medicine"],skins:[{unified:"1fa7b",native:"🩻"}],version:14},door:{id:"door",name:"Door",keywords:["house","entry","exit"],skins:[{unified:"1f6aa",native:"🚪"}],version:1},elevator:{id:"elevator",name:"Elevator",keywords:["lift"],skins:[{unified:"1f6d7",native:"🛗"}],version:13},mirror:{id:"mirror",name:"Mirror",keywords:["reflection"],skins:[{unified:"1fa9e",native:"🪞"}],version:13},window:{id:"window",name:"Window",keywords:["scenery"],skins:[{unified:"1fa9f",native:"🪟"}],version:13},bed:{id:"bed",name:"Bed",keywords:["sleep","rest"],skins:[{unified:"1f6cf-fe0f",native:"🛏️"}],version:1},couch_and_lamp:{id:"couch_and_lamp",name:"Couch and Lamp",keywords:["read","chill"],skins:[{unified:"1f6cb-fe0f",native:"🛋️"}],version:1},chair:{id:"chair",name:"Chair",keywords:["sit","furniture"],skins:[{unified:"1fa91",native:"🪑"}],version:12},toilet:{id:"toilet",name:"Toilet",keywords:["restroom","wc","washroom","bathroom","potty"],skins:[{unified:"1f6bd",native:"🚽"}],version:1},plunger:{id:"plunger",name:"Plunger",keywords:["toilet"],skins:[{unified:"1faa0",native:"🪠"}],version:13},shower:{id:"shower",name:"Shower",keywords:["clean","water","bathroom"],skins:[{unified:"1f6bf",native:"🚿"}],version:1},bathtub:{id:"bathtub",name:"Bathtub",keywords:["clean","shower","bathroom"],skins:[{unified:"1f6c1",native:"🛁"}],version:1},mouse_trap:{id:"mouse_trap",name:"Mouse Trap",keywords:["cheese"],skins:[{unified:"1faa4",native:"🪤"}],version:13},razor:{id:"razor",name:"Razor",keywords:["cut"],skins:[{unified:"1fa92",native:"🪒"}],version:12},lotion_bottle:{id:"lotion_bottle",name:"Lotion Bottle",keywords:["moisturizer","sunscreen"],skins:[{unified:"1f9f4",native:"🧴"}],version:11},safety_pin:{id:"safety_pin",name:"Safety Pin",keywords:["diaper"],skins:[{unified:"1f9f7",native:"🧷"}],version:11},broom:{id:"broom",name:"Broom",keywords:["cleaning","sweeping","witch"],skins:[{unified:"1f9f9",native:"🧹"}],version:11},basket:{id:"basket",name:"Basket",keywords:["laundry"],skins:[{unified:"1f9fa",native:"🧺"}],version:11},roll_of_paper:{id:"roll_of_paper",name:"Roll of Paper",keywords:[],skins:[{unified:"1f9fb",native:"🧻"}],version:11},bucket:{id:"bucket",name:"Bucket",keywords:["water","container"],skins:[{unified:"1faa3",native:"🪣"}],version:13},soap:{id:"soap",name:"Soap",keywords:["bar","bathing","cleaning","lather"],skins:[{unified:"1f9fc",native:"🧼"}],version:11},bubbles:{id:"bubbles",name:"Bubbles",keywords:["soap","fun","carbonation","sparkling"],skins:[{unified:"1fae7",native:"🫧"}],version:14},toothbrush:{id:"toothbrush",name:"Toothbrush",keywords:["hygiene","dental"],skins:[{unified:"1faa5",native:"🪥"}],version:13},sponge:{id:"sponge",name:"Sponge",keywords:["absorbing","cleaning","porous"],skins:[{unified:"1f9fd",native:"🧽"}],version:11},fire_extinguisher:{id:"fire_extinguisher",name:"Fire Extinguisher",keywords:["quench"],skins:[{unified:"1f9ef",native:"🧯"}],version:11},shopping_trolley:{id:"shopping_trolley",name:"Shopping Cart",keywords:["trolley"],skins:[{unified:"1f6d2",native:"🛒"}],version:3},smoking:{id:"smoking",name:"Cigarette",keywords:["smoking","kills","tobacco","joint","smoke"],skins:[{unified:"1f6ac",native:"🚬"}],version:1},coffin:{id:"coffin",name:"Coffin",keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],skins:[{unified:"26b0-fe0f",native:"⚰️"}],version:1},headstone:{id:"headstone",name:"Headstone",keywords:["death","rip","grave"],skins:[{unified:"1faa6",native:"🪦"}],version:13},funeral_urn:{id:"funeral_urn",name:"Funeral Urn",keywords:["dead","die","death","rip","ashes"],skins:[{unified:"26b1-fe0f",native:"⚱️"}],version:1},nazar_amulet:{id:"nazar_amulet",name:"Nazar Amulet",keywords:["bead","charm"],skins:[{unified:"1f9ff",native:"🧿"}],version:11},hamsa:{id:"hamsa",name:"Hamsa",keywords:["religion","protection"],skins:[{unified:"1faac",native:"🪬"}],version:14},moyai:{id:"moyai",name:"Moai",keywords:["moyai","rock","easter","island"],skins:[{unified:"1f5ff",native:"🗿"}],version:1},placard:{id:"placard",name:"Placard",keywords:["announcement"],skins:[{unified:"1faa7",native:"🪧"}],version:13},identification_card:{id:"identification_card",name:"Identification Card",keywords:["document"],skins:[{unified:"1faaa",native:"🪪"}],version:14},atm:{id:"atm",name:"Atm Sign",keywords:["money","sales","cash","blue","square","payment","bank"],skins:[{unified:"1f3e7",native:"🏧"}],version:1},put_litter_in_its_place:{id:"put_litter_in_its_place",name:"Litter in Bin Sign",keywords:["put","its","place","blue","square","human","info"],skins:[{unified:"1f6ae",native:"🚮"}],version:1},potable_water:{id:"potable_water",name:"Potable Water",keywords:["blue","square","liquid","restroom","cleaning","faucet"],skins:[{unified:"1f6b0",native:"🚰"}],version:1},wheelchair:{id:"wheelchair",name:"Wheelchair Symbol",keywords:["blue","square","disabled","accessibility"],skins:[{unified:"267f",native:"♿"}],version:1},mens:{id:"mens",name:"Mens Room",keywords:["mens","men","s","toilet","restroom","wc","blue","square","gender","male"],skins:[{unified:"1f6b9",native:"🚹"}],version:1},womens:{id:"womens",name:"Womens Room",keywords:["womens","women","s","purple","square","woman","female","toilet","loo","restroom","gender"],skins:[{unified:"1f6ba",native:"🚺"}],version:1},restroom:{id:"restroom",name:"Restroom",keywords:["blue","square","toilet","refresh","wc","gender"],skins:[{unified:"1f6bb",native:"🚻"}],version:1},baby_symbol:{id:"baby_symbol",name:"Baby Symbol",keywords:["orange","square","child"],skins:[{unified:"1f6bc",native:"🚼"}],version:1},wc:{id:"wc",name:"Water Closet",keywords:["wc","toilet","restroom","blue","square"],skins:[{unified:"1f6be",native:"🚾"}],version:1},passport_control:{id:"passport_control",name:"Passport Control",keywords:["custom","blue","square"],skins:[{unified:"1f6c2",native:"🛂"}],version:1},customs:{id:"customs",name:"Customs",keywords:["passport","border","blue","square"],skins:[{unified:"1f6c3",native:"🛃"}],version:1},baggage_claim:{id:"baggage_claim",name:"Baggage Claim",keywords:["blue","square","airport","transport"],skins:[{unified:"1f6c4",native:"🛄"}],version:1},left_luggage:{id:"left_luggage",name:"Left Luggage",keywords:["blue","square","travel"],skins:[{unified:"1f6c5",native:"🛅"}],version:1},warning:{id:"warning",name:"Warning",keywords:["exclamation","wip","alert","error","problem","issue"],skins:[{unified:"26a0-fe0f",native:"⚠️"}],version:1},children_crossing:{id:"children_crossing",name:"Children Crossing",keywords:["school","warning","danger","sign","driving","yellow","diamond"],skins:[{unified:"1f6b8",native:"🚸"}],version:1},no_entry:{id:"no_entry",name:"No Entry",keywords:["limit","security","privacy","bad","denied","stop","circle"],skins:[{unified:"26d4",native:"⛔"}],version:1},no_entry_sign:{id:"no_entry_sign",name:"Prohibited",keywords:["no","entry","sign","forbid","stop","limit","denied","disallow","circle"],skins:[{unified:"1f6ab",native:"🚫"}],version:1},no_bicycles:{id:"no_bicycles",name:"No Bicycles",keywords:["cyclist","prohibited","circle"],skins:[{unified:"1f6b3",native:"🚳"}],version:1},no_smoking:{id:"no_smoking",name:"No Smoking",keywords:["cigarette","blue","square","smell","smoke"],skins:[{unified:"1f6ad",native:"🚭"}],version:1},do_not_litter:{id:"do_not_litter",name:"No Littering",keywords:["do","not","litter","trash","bin","garbage","circle"],skins:[{unified:"1f6af",native:"🚯"}],version:1},"non-potable_water":{id:"non-potable_water",name:"Non-Potable Water",keywords:["non","potable","drink","faucet","tap","circle"],skins:[{unified:"1f6b1",native:"🚱"}],version:1},no_pedestrians:{id:"no_pedestrians",name:"No Pedestrians",keywords:["rules","crossing","walking","circle"],skins:[{unified:"1f6b7",native:"🚷"}],version:1},no_mobile_phones:{id:"no_mobile_phones",name:"No Mobile Phones",keywords:["iphone","mute","circle"],skins:[{unified:"1f4f5",native:"📵"}],version:1},underage:{id:"underage",name:"No One Under Eighteen",keywords:["underage","18","drink","pub","night","minor","circle"],skins:[{unified:"1f51e",native:"🔞"}],version:1},radioactive_sign:{id:"radioactive_sign",name:"Radioactive",keywords:["sign","nuclear","danger"],skins:[{unified:"2622-fe0f",native:"☢️"}],version:1},biohazard_sign:{id:"biohazard_sign",name:"Biohazard",keywords:["sign","danger"],skins:[{unified:"2623-fe0f",native:"☣️"}],version:1},arrow_up:{id:"arrow_up",name:"Up Arrow",keywords:["blue","square","continue","top","direction"],skins:[{unified:"2b06-fe0f",native:"⬆️"}],version:1},arrow_upper_right:{id:"arrow_upper_right",name:"Up-Right Arrow",keywords:["upper","right","up","blue","square","point","direction","diagonal","northeast"],skins:[{unified:"2197-fe0f",native:"↗️"}],version:1},arrow_right:{id:"arrow_right",name:"Right Arrow",keywords:["blue","square","next"],skins:[{unified:"27a1-fe0f",native:"➡️"}],version:1},arrow_lower_right:{id:"arrow_lower_right",name:"South East Arrow",keywords:["lower","right","down","blue","square","direction","diagonal","southeast"],skins:[{unified:"2198-fe0f",native:"↘️"}],version:1},arrow_down:{id:"arrow_down",name:"Down Arrow",keywords:["blue","square","direction","bottom"],skins:[{unified:"2b07-fe0f",native:"⬇️"}],version:1},arrow_lower_left:{id:"arrow_lower_left",name:"Down-Left Arrow",keywords:["lower","left","down","blue","square","direction","diagonal","southwest"],skins:[{unified:"2199-fe0f",native:"↙️"}],version:1},arrow_left:{id:"arrow_left",name:"Left Arrow",keywords:["blue","square","previous","back"],skins:[{unified:"2b05-fe0f",native:"⬅️"}],version:1},arrow_upper_left:{id:"arrow_upper_left",name:"Up-Left Arrow",keywords:["upper","left","up","blue","square","point","direction","diagonal","northwest"],skins:[{unified:"2196-fe0f",native:"↖️"}],version:1},arrow_up_down:{id:"arrow_up_down",name:"Up Down Arrow",keywords:["blue","square","direction","way","vertical"],skins:[{unified:"2195-fe0f",native:"↕️"}],version:1},left_right_arrow:{id:"left_right_arrow",name:"Left Right Arrow",keywords:["shape","direction","horizontal","sideways"],skins:[{unified:"2194-fe0f",native:"↔️"}],version:1},leftwards_arrow_with_hook:{id:"leftwards_arrow_with_hook",name:"Right Arrow Curving Left",keywords:["leftwards","with","hook","back","return","blue","square","undo","enter"],skins:[{unified:"21a9-fe0f",native:"↩️"}],version:1},arrow_right_hook:{id:"arrow_right_hook",name:"Left Arrow Curving Right",keywords:["hook","blue","square","return","rotate","direction"],skins:[{unified:"21aa-fe0f",native:"↪️"}],version:1},arrow_heading_up:{id:"arrow_heading_up",name:"Right Arrow Curving Up",keywords:["heading","blue","square","direction","top"],skins:[{unified:"2934-fe0f",native:"⤴️"}],version:1},arrow_heading_down:{id:"arrow_heading_down",name:"Right Arrow Curving Down",keywords:["heading","blue","square","direction","bottom"],skins:[{unified:"2935-fe0f",native:"⤵️"}],version:1},arrows_clockwise:{id:"arrows_clockwise",name:"Clockwise Vertical Arrows",keywords:["sync","cycle","round","repeat"],skins:[{unified:"1f503",native:"🔃"}],version:1},arrows_counterclockwise:{id:"arrows_counterclockwise",name:"Counterclockwise Arrows Button",keywords:["blue","square","sync","cycle"],skins:[{unified:"1f504",native:"🔄"}],version:1},back:{id:"back",name:"Back Arrow",keywords:["words","return"],skins:[{unified:"1f519",native:"🔙"}],version:1},end:{id:"end",name:"End Arrow",keywords:["words"],skins:[{unified:"1f51a",native:"🔚"}],version:1},on:{id:"on",name:"On! Arrow",keywords:["on","words"],skins:[{unified:"1f51b",native:"🔛"}],version:1},soon:{id:"soon",name:"Soon Arrow",keywords:["words"],skins:[{unified:"1f51c",native:"🔜"}],version:1},top:{id:"top",name:"Top Arrow",keywords:["words","blue","square"],skins:[{unified:"1f51d",native:"🔝"}],version:1},place_of_worship:{id:"place_of_worship",name:"Place of Worship",keywords:["religion","church","temple","prayer"],skins:[{unified:"1f6d0",native:"🛐"}],version:1},atom_symbol:{id:"atom_symbol",name:"Atom Symbol",keywords:["science","physics","chemistry"],skins:[{unified:"269b-fe0f",native:"⚛️"}],version:1},om_symbol:{id:"om_symbol",name:"Om",keywords:["symbol","hinduism","buddhism","sikhism","jainism"],skins:[{unified:"1f549-fe0f",native:"🕉️"}],version:1},star_of_david:{id:"star_of_david",name:"Star of David",keywords:["judaism"],skins:[{unified:"2721-fe0f",native:"✡️"}],version:1},wheel_of_dharma:{id:"wheel_of_dharma",name:"Wheel of Dharma",keywords:["hinduism","buddhism","sikhism","jainism"],skins:[{unified:"2638-fe0f",native:"☸️"}],version:1},yin_yang:{id:"yin_yang",name:"Yin Yang",keywords:["balance"],skins:[{unified:"262f-fe0f",native:"☯️"}],version:1},latin_cross:{id:"latin_cross",name:"Latin Cross",keywords:["christianity"],skins:[{unified:"271d-fe0f",native:"✝️"}],version:1},orthodox_cross:{id:"orthodox_cross",name:"Orthodox Cross",keywords:["suppedaneum","religion"],skins:[{unified:"2626-fe0f",native:"☦️"}],version:1},star_and_crescent:{id:"star_and_crescent",name:"Star and Crescent",keywords:["islam"],skins:[{unified:"262a-fe0f",native:"☪️"}],version:1},peace_symbol:{id:"peace_symbol",name:"Peace Symbol",keywords:["hippie"],skins:[{unified:"262e-fe0f",native:"☮️"}],version:1},menorah_with_nine_branches:{id:"menorah_with_nine_branches",name:"Menorah",keywords:["with","nine","branches","hanukkah","candles","jewish"],skins:[{unified:"1f54e",native:"🕎"}],version:1},six_pointed_star:{id:"six_pointed_star",name:"Dotted Six-Pointed Star",keywords:["six","pointed","purple","square","religion","jewish","hexagram"],skins:[{unified:"1f52f",native:"🔯"}],version:1},khanda:{id:"khanda",name:"Khanda",keywords:["Sikhism","religion"],skins:[{unified:"1faaf",native:"🪯"}],version:15},aries:{id:"aries",name:"Aries",keywords:["sign","purple","square","zodiac","astrology"],skins:[{unified:"2648",native:"♈"}],version:1},taurus:{id:"taurus",name:"Taurus",keywords:["purple","square","sign","zodiac","astrology"],skins:[{unified:"2649",native:"♉"}],version:1},gemini:{id:"gemini",name:"Gemini",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"264a",native:"♊"}],version:1},cancer:{id:"cancer",name:"Cancer",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"264b",native:"♋"}],version:1},leo:{id:"leo",name:"Leo",keywords:["sign","purple","square","zodiac","astrology"],skins:[{unified:"264c",native:"♌"}],version:1},virgo:{id:"virgo",name:"Virgo",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"264d",native:"♍"}],version:1},libra:{id:"libra",name:"Libra",keywords:["sign","purple","square","zodiac","astrology"],skins:[{unified:"264e",native:"♎"}],version:1},scorpius:{id:"scorpius",name:"Scorpio",keywords:["scorpius","sign","zodiac","purple","square","astrology"],skins:[{unified:"264f",native:"♏"}],version:1},sagittarius:{id:"sagittarius",name:"Sagittarius",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"2650",native:"♐"}],version:1},capricorn:{id:"capricorn",name:"Capricorn",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"2651",native:"♑"}],version:1},aquarius:{id:"aquarius",name:"Aquarius",keywords:["sign","purple","square","zodiac","astrology"],skins:[{unified:"2652",native:"♒"}],version:1},pisces:{id:"pisces",name:"Pisces",keywords:["purple","square","sign","zodiac","astrology"],skins:[{unified:"2653",native:"♓"}],version:1},ophiuchus:{id:"ophiuchus",name:"Ophiuchus",keywords:["sign","purple","square","constellation","astrology"],skins:[{unified:"26ce",native:"⛎"}],version:1},twisted_rightwards_arrows:{id:"twisted_rightwards_arrows",name:"Shuffle Tracks Button",keywords:["twisted","rightwards","arrows","blue","square","music","random"],skins:[{unified:"1f500",native:"🔀"}],version:1},repeat:{id:"repeat",name:"Repeat Button",keywords:["loop","record"],skins:[{unified:"1f501",native:"🔁"}],version:1},repeat_one:{id:"repeat_one",name:"Repeat Single Button",keywords:["one","blue","square","loop"],skins:[{unified:"1f502",native:"🔂"}],version:1},arrow_forward:{id:"arrow_forward",name:"Play Button",keywords:["arrow","forward","blue","square","right","direction"],skins:[{unified:"25b6-fe0f",native:"▶️"}],version:1},fast_forward:{id:"fast_forward",name:"Fast-Forward Button",keywords:["fast","forward","blue","square","play","speed","continue"],skins:[{unified:"23e9",native:"⏩"}],version:1},black_right_pointing_double_triangle_with_vertical_bar:{id:"black_right_pointing_double_triangle_with_vertical_bar",name:"Next Track Button",keywords:["black","right","pointing","double","triangle","with","vertical","bar","forward","blue","square"],skins:[{unified:"23ed-fe0f",native:"⏭️"}],version:1},black_right_pointing_triangle_with_double_vertical_bar:{id:"black_right_pointing_triangle_with_double_vertical_bar",name:"Play or Pause Button",keywords:["black","right","pointing","triangle","with","double","vertical","bar","blue","square"],skins:[{unified:"23ef-fe0f",native:"⏯️"}],version:1},arrow_backward:{id:"arrow_backward",name:"Reverse Button",keywords:["arrow","backward","blue","square","left","direction"],skins:[{unified:"25c0-fe0f",native:"◀️"}],version:1},rewind:{id:"rewind",name:"Fast Reverse Button",keywords:["rewind","play","blue","square"],skins:[{unified:"23ea",native:"⏪"}],version:1},black_left_pointing_double_triangle_with_vertical_bar:{id:"black_left_pointing_double_triangle_with_vertical_bar",name:"Last Track Button",keywords:["black","left","pointing","double","triangle","with","vertical","bar","backward"],skins:[{unified:"23ee-fe0f",native:"⏮️"}],version:1},arrow_up_small:{id:"arrow_up_small",name:"Upwards Button",keywords:["arrow","up","small","blue","square","triangle","direction","point","forward","top"],skins:[{unified:"1f53c",native:"🔼"}],version:1},arrow_double_up:{id:"arrow_double_up",name:"Fast Up Button",keywords:["arrow","double","blue","square","direction","top"],skins:[{unified:"23eb",native:"⏫"}],version:1},arrow_down_small:{id:"arrow_down_small",name:"Downwards Button",keywords:["arrow","down","small","blue","square","direction","bottom"],skins:[{unified:"1f53d",native:"🔽"}],version:1},arrow_double_down:{id:"arrow_double_down",name:"Fast Down Button",keywords:["arrow","double","blue","square","direction","bottom"],skins:[{unified:"23ec",native:"⏬"}],version:1},double_vertical_bar:{id:"double_vertical_bar",name:"Pause Button",keywords:["double","vertical","bar","blue","square"],skins:[{unified:"23f8-fe0f",native:"⏸️"}],version:1},black_square_for_stop:{id:"black_square_for_stop",name:"Stop Button",keywords:["black","square","for","blue"],skins:[{unified:"23f9-fe0f",native:"⏹️"}],version:1},black_circle_for_record:{id:"black_circle_for_record",name:"Record Button",keywords:["black","circle","for","blue","square"],skins:[{unified:"23fa-fe0f",native:"⏺️"}],version:1},eject:{id:"eject",name:"Eject Button",keywords:["blue","square"],skins:[{unified:"23cf-fe0f",native:"⏏️"}],version:1},cinema:{id:"cinema",name:"Cinema",keywords:["blue","square","record","film","movie","curtain","stage","theater"],skins:[{unified:"1f3a6",native:"🎦"}],version:1},low_brightness:{id:"low_brightness",name:"Dim Button",keywords:["low","brightness","sun","afternoon","warm","summer"],skins:[{unified:"1f505",native:"🔅"}],version:1},high_brightness:{id:"high_brightness",name:"Bright Button",keywords:["high","brightness","sun","light"],skins:[{unified:"1f506",native:"🔆"}],version:1},signal_strength:{id:"signal_strength",name:"Antenna Bars",keywords:["signal","strength","blue","square","reception","phone","internet","connection","wifi","bluetooth"],skins:[{unified:"1f4f6",native:"📶"}],version:1},wireless:{id:"wireless",name:"Wireless",keywords:["wifi","internet","contactless","signal"],skins:[{unified:"1f6dc",native:"🛜"}],version:15},vibration_mode:{id:"vibration_mode",name:"Vibration Mode",keywords:["orange","square","phone"],skins:[{unified:"1f4f3",native:"📳"}],version:1},mobile_phone_off:{id:"mobile_phone_off",name:"Mobile Phone off",keywords:["mute","orange","square","silence","quiet"],skins:[{unified:"1f4f4",native:"📴"}],version:1},female_sign:{id:"female_sign",name:"Female Sign",keywords:["woman","women","lady","girl"],skins:[{unified:"2640-fe0f",native:"♀️"}],version:4},male_sign:{id:"male_sign",name:"Male Sign",keywords:["man","boy","men"],skins:[{unified:"2642-fe0f",native:"♂️"}],version:4},transgender_symbol:{id:"transgender_symbol",name:"Transgender Symbol",keywords:["lgbtq"],skins:[{unified:"26a7-fe0f",native:"⚧️"}],version:13},heavy_multiplication_x:{id:"heavy_multiplication_x",name:"Multiply",keywords:["heavy","multiplication","x","sign","math","calculation"],skins:[{unified:"2716-fe0f",native:"✖️"}],version:1},heavy_plus_sign:{id:"heavy_plus_sign",name:"Plus",keywords:["heavy","sign","math","calculation","addition","more","increase"],skins:[{unified:"2795",native:""}],version:1},heavy_minus_sign:{id:"heavy_minus_sign",name:"Minus",keywords:["heavy","sign","math","calculation","subtract","less"],skins:[{unified:"2796",native:""}],version:1},heavy_division_sign:{id:"heavy_division_sign",name:"Divide",keywords:["heavy","division","sign","math","calculation"],skins:[{unified:"2797",native:"➗"}],version:1},heavy_equals_sign:{id:"heavy_equals_sign",name:"Heavy Equals Sign",keywords:["math"],skins:[{unified:"1f7f0",native:"🟰"}],version:14},infinity:{id:"infinity",name:"Infinity",keywords:["forever"],skins:[{unified:"267e-fe0f",native:"♾️"}],version:11},bangbang:{id:"bangbang",name:"Double Exclamation Mark",keywords:["bangbang","surprise"],skins:[{unified:"203c-fe0f",native:"‼️"}],version:1},interrobang:{id:"interrobang",name:"Exclamation Question Mark",keywords:["interrobang","wat","punctuation","surprise"],skins:[{unified:"2049-fe0f",native:"⁉️"}],version:1},question:{id:"question",name:"Red Question Mark",keywords:["doubt","confused"],skins:[{unified:"2753",native:"❓"}],version:1},grey_question:{id:"grey_question",name:"White Question Mark",keywords:["grey","doubts","gray","huh","confused"],skins:[{unified:"2754",native:"❔"}],version:1},grey_exclamation:{id:"grey_exclamation",name:"White Exclamation Mark",keywords:["grey","surprise","punctuation","gray","wow","warning"],skins:[{unified:"2755",native:"❕"}],version:1},exclamation:{id:"exclamation",name:"Red Exclamation Mark",keywords:["heavy","danger","surprise","punctuation","wow","warning"],skins:[{unified:"2757",native:"❗"}],version:1},wavy_dash:{id:"wavy_dash",name:"Wavy Dash",keywords:["draw","line","moustache","mustache","squiggle","scribble"],skins:[{unified:"3030-fe0f",native:"〰️"}],version:1},currency_exchange:{id:"currency_exchange",name:"Currency Exchange",keywords:["money","sales","dollar","travel"],skins:[{unified:"1f4b1",native:"💱"}],version:1},heavy_dollar_sign:{id:"heavy_dollar_sign",name:"Heavy Dollar Sign",keywords:["money","sales","payment","currency","buck"],skins:[{unified:"1f4b2",native:"💲"}],version:1},medical_symbol:{id:"medical_symbol",name:"Medical Symbol",keywords:["staff","of","aesculapius","health","hospital"],skins:[{unified:"2695-fe0f",native:"⚕️"}],version:4},recycle:{id:"recycle",name:"Recycling Symbol",keywords:["recycle","arrow","environment","garbage","trash"],skins:[{unified:"267b-fe0f",native:"♻️"}],version:1},fleur_de_lis:{id:"fleur_de_lis",name:"Fleur-De-Lis",keywords:["fleur","de","lis","decorative","scout"],skins:[{unified:"269c-fe0f",native:"⚜️"}],version:1},trident:{id:"trident",name:"Trident Emblem",keywords:["weapon","spear"],skins:[{unified:"1f531",native:"🔱"}],version:1},name_badge:{id:"name_badge",name:"Name Badge",keywords:["fire","forbid"],skins:[{unified:"1f4db",native:"📛"}],version:1},beginner:{id:"beginner",name:"Japanese Symbol for Beginner",keywords:["badge","shield"],skins:[{unified:"1f530",native:"🔰"}],version:1},o:{id:"o",name:"Hollow Red Circle",keywords:["o","round"],skins:[{unified:"2b55",native:"⭕"}],version:1},white_check_mark:{id:"white_check_mark",name:"Check Mark Button",keywords:["white","green","square","ok","agree","vote","election","answer","tick"],skins:[{unified:"2705",native:"✅"}],version:1},ballot_box_with_check:{id:"ballot_box_with_check",name:"Check Box with Check",keywords:["ballot","ok","agree","confirm","black","square","vote","election","yes","tick"],skins:[{unified:"2611-fe0f",native:"☑️"}],version:1},heavy_check_mark:{id:"heavy_check_mark",name:"Check Mark",keywords:["heavy","ok","nike","answer","yes","tick"],skins:[{unified:"2714-fe0f",native:"✔️"}],version:1},x:{id:"x",name:"Cross Mark",keywords:["x","no","delete","remove","cancel","red"],skins:[{unified:"274c",native:"❌"}],version:1},negative_squared_cross_mark:{id:"negative_squared_cross_mark",name:"Cross Mark Button",keywords:["negative","squared","x","green","square","no","deny"],skins:[{unified:"274e",native:"❎"}],version:1},curly_loop:{id:"curly_loop",name:"Curly Loop",keywords:["scribble","draw","shape","squiggle"],skins:[{unified:"27b0",native:"➰"}],version:1},loop:{id:"loop",name:"Double Curly Loop",keywords:["tape","cassette"],skins:[{unified:"27bf",native:"➿"}],version:1},part_alternation_mark:{id:"part_alternation_mark",name:"Part Alternation Mark",keywords:["graph","presentation","stats","business","economics","bad"],skins:[{unified:"303d-fe0f",native:"〽️"}],version:1},eight_spoked_asterisk:{id:"eight_spoked_asterisk",name:"Eight Spoked Asterisk",keywords:["star","sparkle","green","square"],skins:[{unified:"2733-fe0f",native:"✳️"}],version:1},eight_pointed_black_star:{id:"eight_pointed_black_star",name:"Eight-Pointed Star",keywords:["eight","pointed","black","orange","square","shape","polygon"],skins:[{unified:"2734-fe0f",native:"✴️"}],version:1},sparkle:{id:"sparkle",name:"Sparkle",keywords:["stars","green","square","awesome","good","fireworks"],skins:[{unified:"2747-fe0f",native:"❇️"}],version:1},copyright:{id:"copyright",name:"Copyright",keywords:["ip","license","circle","law","legal"],skins:[{unified:"00a9-fe0f",native:"©️"}],version:1},registered:{id:"registered",name:"Registered",keywords:["alphabet","circle"],skins:[{unified:"00ae-fe0f",native:"®️"}],version:1},tm:{id:"tm",name:"Trade Mark",keywords:["tm","trademark","brand","law","legal"],skins:[{unified:"2122-fe0f",native:"™️"}],version:1},hash:{id:"hash",name:"Hash Key",keywords:["keycap","","symbol","blue","square","twitter"],skins:[{unified:"0023-fe0f-20e3",native:"#️⃣"}],version:1},keycap_star:{id:"keycap_star",name:"Keycap: *",keywords:["keycap","star",""],skins:[{unified:"002a-fe0f-20e3",native:"*️⃣"}],version:2},zero:{id:"zero",name:"Keycap 0",keywords:["zero","numbers","blue","square","null"],skins:[{unified:"0030-fe0f-20e3",native:"0️⃣"}],version:1},one:{id:"one",name:"Keycap 1",keywords:["one","blue","square","numbers"],skins:[{unified:"0031-fe0f-20e3",native:"1️⃣"}],version:1},two:{id:"two",name:"Keycap 2",keywords:["two","numbers","prime","blue","square"],skins:[{unified:"0032-fe0f-20e3",native:"2️⃣"}],version:1},three:{id:"three",name:"Keycap 3",keywords:["three","numbers","prime","blue","square"],skins:[{unified:"0033-fe0f-20e3",native:"3️⃣"}],version:1},four:{id:"four",name:"Keycap 4",keywords:["four","numbers","blue","square"],skins:[{unified:"0034-fe0f-20e3",native:"4️⃣"}],version:1},five:{id:"five",name:"Keycap 5",keywords:["five","numbers","blue","square","prime"],skins:[{unified:"0035-fe0f-20e3",native:"5️⃣"}],version:1},six:{id:"six",name:"Keycap 6",keywords:["six","numbers","blue","square"],skins:[{unified:"0036-fe0f-20e3",native:"6️⃣"}],version:1},seven:{id:"seven",name:"Keycap 7",keywords:["seven","numbers","blue","square","prime"],skins:[{unified:"0037-fe0f-20e3",native:"7️⃣"}],version:1},eight:{id:"eight",name:"Keycap 8",keywords:["eight","blue","square","numbers"],skins:[{unified:"0038-fe0f-20e3",native:"8️⃣"}],version:1},nine:{id:"nine",name:"Keycap 9",keywords:["nine","blue","square","numbers"],skins:[{unified:"0039-fe0f-20e3",native:"9️⃣"}],version:1},keycap_ten:{id:"keycap_ten",name:"Keycap 10",keywords:["ten","numbers","blue","square"],skins:[{unified:"1f51f",native:"🔟"}],version:1},capital_abcd:{id:"capital_abcd",name:"Input Latin Uppercase",keywords:["capital","abcd","alphabet","words","blue","square"],skins:[{unified:"1f520",native:"🔠"}],version:1},abcd:{id:"abcd",name:"Input Latin Lowercase",keywords:["abcd","blue","square","alphabet"],skins:[{unified:"1f521",native:"🔡"}],version:1},symbols:{id:"symbols",name:"Input Symbols",keywords:["blue","square","music","note","ampersand","percent","glyphs","characters"],skins:[{unified:"1f523",native:"🔣"}],version:1},abc:{id:"abc",name:"Input Latin Letters",keywords:["abc","blue","square","alphabet"],skins:[{unified:"1f524",native:"🔤"}],version:1},a:{id:"a",name:"A Button (blood Type)",keywords:["red","square","alphabet","letter"],skins:[{unified:"1f170-fe0f",native:"🅰️"}],version:1},ab:{id:"ab",name:"Negative Squared Ab",keywords:["button","red","square","alphabet"],skins:[{unified:"1f18e",native:"🆎"}],version:1},b:{id:"b",name:"B Button (blood Type)",keywords:["red","square","alphabet","letter"],skins:[{unified:"1f171-fe0f",native:"🅱️"}],version:1},cl:{id:"cl",name:"Cl Button",keywords:["alphabet","words","red","square"],skins:[{unified:"1f191",native:"🆑"}],version:1},cool:{id:"cool",name:"Cool Button",keywords:["words","blue","square"],skins:[{unified:"1f192",native:"🆒"}],version:1},free:{id:"free",name:"Free Button",keywords:["blue","square","words"],skins:[{unified:"1f193",native:"🆓"}],version:1},information_source:{id:"information_source",name:"Information",keywords:["source","blue","square","alphabet","letter"],skins:[{unified:"2139-fe0f",native:"️"}],version:1},id:{id:"id",name:"Id Button",keywords:["purple","square","words"],skins:[{unified:"1f194",native:"🆔"}],version:1},m:{id:"m",name:"Circled M",keywords:["alphabet","blue","circle","letter"],skins:[{unified:"24c2-fe0f",native:"Ⓜ️"}],version:1},new:{id:"new",name:"New Button",keywords:["blue","square","words","start"],skins:[{unified:"1f195",native:"🆕"}],version:1},ng:{id:"ng",name:"Ng Button",keywords:["blue","square","words","shape","icon"],skins:[{unified:"1f196",native:"🆖"}],version:1},o2:{id:"o2",name:"O Button (blood Type)",keywords:["o2","alphabet","red","square","letter"],skins:[{unified:"1f17e-fe0f",native:"🅾️"}],version:1},ok:{id:"ok",name:"Ok Button",keywords:["good","agree","yes","blue","square"],skins:[{unified:"1f197",native:"🆗"}],version:1},parking:{id:"parking",name:"P Button",keywords:["parking","cars","blue","square","alphabet","letter"],skins:[{unified:"1f17f-fe0f",native:"🅿️"}],version:1},sos:{id:"sos",name:"Sos Button",keywords:["help","red","square","words","emergency","911"],skins:[{unified:"1f198",native:"🆘"}],version:1},up:{id:"up",name:"Up! Button",keywords:["up","blue","square","above","high"],skins:[{unified:"1f199",native:"🆙"}],version:1},vs:{id:"vs",name:"Vs Button",keywords:["words","orange","square"],skins:[{unified:"1f19a",native:"🆚"}],version:1},koko:{id:"koko",name:"Squared Katakana Koko",keywords:["japanese","here","button","blue","square","destination"],skins:[{unified:"1f201",native:"🈁"}],version:1},sa:{id:"sa",name:"Squared Katakana Sa",keywords:["japanese","service","charge","button","blue","square"],skins:[{unified:"1f202-fe0f",native:"🈂️"}],version:1},u6708:{id:"u6708",name:"Japanese “monthly Amount” Button",keywords:["u6708","monthly","amount","chinese","month","moon","orange","square","kanji"],skins:[{unified:"1f237-fe0f",native:"🈷️"}],version:1},u6709:{id:"u6709",name:"Squared Cjk Unified Ideograph-6709",keywords:["u6709","japanese","not","free","of","charge","button","orange","square","chinese","have","kanji"],skins:[{unified:"1f236",native:"🈶"}],version:1},u6307:{id:"u6307",name:"Japanese “reserved” Button",keywords:["u6307","reserved","chinese","point","green","square","kanji"],skins:[{unified:"1f22f",native:"🈯"}],version:1},ideograph_advantage:{id:"ideograph_advantage",name:"Japanese “bargain” Button",keywords:["ideograph","advantage","bargain","chinese","kanji","obtain","get","circle"],skins:[{unified:"1f250",native:"🉐"}],version:1},u5272:{id:"u5272",name:"Japanese “discount” Button",keywords:["u5272","discount","cut","divide","chinese","kanji","pink","square"],skins:[{unified:"1f239",native:"🈹"}],version:1},u7121:{id:"u7121",name:"Japanese “free of Charge” Button",keywords:["u7121","free","charge","nothing","chinese","kanji","orange","square"],skins:[{unified:"1f21a",native:"🈚"}],version:1},u7981:{id:"u7981",name:"Japanese “prohibited” Button",keywords:["u7981","prohibited","kanji","chinese","forbidden","limit","restricted","red","square"],skins:[{unified:"1f232",native:"🈲"}],version:1},accept:{id:"accept",name:"Circled Ideograph Accept",keywords:["japanese","acceptable","button","ok","good","chinese","kanji","agree","yes","orange","circle"],skins:[{unified:"1f251",native:"🉑"}],version:1},u7533:{id:"u7533",name:"Japanese “application” Button",keywords:["u7533","application","chinese","kanji","orange","square"],skins:[{unified:"1f238",native:"🈸"}],version:1},u5408:{id:"u5408",name:"Japanese “passing Grade” Button",keywords:["u5408","passing","grade","chinese","join","kanji","red","square"],skins:[{unified:"1f234",native:"🈴"}],version:1},u7a7a:{id:"u7a7a",name:"Japanese “vacancy” Button",keywords:["u7a7a","vacancy","kanji","chinese","empty","sky","blue","square"],skins:[{unified:"1f233",native:"🈳"}],version:1},congratulations:{id:"congratulations",name:"Circled Ideograph Congratulation",keywords:["congratulations","japanese","button","chinese","kanji","red","circle"],skins:[{unified:"3297-fe0f",native:"㊗️"}],version:1},secret:{id:"secret",name:"Circled Ideograph Secret",keywords:["japanese","button","privacy","chinese","sshh","kanji","red","circle"],skins:[{unified:"3299-fe0f",native:"㊙️"}],version:1},u55b6:{id:"u55b6",name:"Squared Cjk Unified Ideograph-55b6",keywords:["u55b6","japanese","open","for","business","button","opening","hours","orange","square"],skins:[{unified:"1f23a",native:"🈺"}],version:1},u6e80:{id:"u6e80",name:"Japanese “no Vacancy” Button",keywords:["u6e80","no","vacancy","full","chinese","red","square","kanji"],skins:[{unified:"1f235",native:"🈵"}],version:1},red_circle:{id:"red_circle",name:"Red Circle",keywords:["shape","error","danger"],skins:[{unified:"1f534",native:"🔴"}],version:1},large_orange_circle:{id:"large_orange_circle",name:"Orange Circle",keywords:["large","round"],skins:[{unified:"1f7e0",native:"🟠"}],version:12},large_yellow_circle:{id:"large_yellow_circle",name:"Yellow Circle",keywords:["large","round"],skins:[{unified:"1f7e1",native:"🟡"}],version:12},large_green_circle:{id:"large_green_circle",name:"Green Circle",keywords:["large","round"],skins:[{unified:"1f7e2",native:"🟢"}],version:12},large_blue_circle:{id:"large_blue_circle",name:"Blue Circle",keywords:["large","shape","icon","button"],skins:[{unified:"1f535",native:"🔵"}],version:1},large_purple_circle:{id:"large_purple_circle",name:"Purple Circle",keywords:["large","round"],skins:[{unified:"1f7e3",native:"🟣"}],version:12},large_brown_circle:{id:"large_brown_circle",name:"Brown Circle",keywords:["large","round"],skins:[{unified:"1f7e4",native:"🟤"}],version:12},black_circle:{id:"black_circle",name:"Black Circle",keywords:["shape","button","round"],skins:[{unified:"26ab",native:"⚫"}],version:1},white_circle:{id:"white_circle",name:"White Circle",keywords:["shape","round"],skins:[{unified:"26aa",native:"⚪"}],version:1},large_red_square:{id:"large_red_square",name:"Red Square",keywords:["large"],skins:[{unified:"1f7e5",native:"🟥"}],version:12},large_orange_square:{id:"large_orange_square",name:"Orange Square",keywords:["large"],skins:[{unified:"1f7e7",native:"🟧"}],version:12},large_yellow_square:{id:"large_yellow_square",name:"Yellow Square",keywords:["large"],skins:[{unified:"1f7e8",native:"🟨"}],version:12},large_green_square:{id:"large_green_square",name:"Green Square",keywords:["large"],skins:[{unified:"1f7e9",native:"🟩"}],version:12},large_blue_square:{id:"large_blue_square",name:"Blue Square",keywords:["large"],skins:[{unified:"1f7e6",native:"🟦"}],version:12},large_purple_square:{id:"large_purple_square",name:"Purple Square",keywords:["large"],skins:[{unified:"1f7ea",native:"🟪"}],version:12},large_brown_square:{id:"large_brown_square",name:"Brown Square",keywords:["large"],skins:[{unified:"1f7eb",native:"🟫"}],version:12},black_large_square:{id:"black_large_square",name:"Black Large Square",keywords:["shape","icon","button"],skins:[{unified:"2b1b",native:"⬛"}],version:1},white_large_square:{id:"white_large_square",name:"White Large Square",keywords:["shape","icon","stone","button"],skins:[{unified:"2b1c",native:"⬜"}],version:1},black_medium_square:{id:"black_medium_square",name:"Black Medium Square",keywords:["shape","button","icon"],skins:[{unified:"25fc-fe0f",native:"◼️"}],version:1},white_medium_square:{id:"white_medium_square",name:"White Medium Square",keywords:["shape","stone","icon"],skins:[{unified:"25fb-fe0f",native:"◻️"}],version:1},black_medium_small_square:{id:"black_medium_small_square",name:"Black Medium Small Square",keywords:["icon","shape","button"],skins:[{unified:"25fe",native:"◾"}],version:1},white_medium_small_square:{id:"white_medium_small_square",name:"White Medium Small Square",keywords:["shape","stone","icon","button"],skins:[{unified:"25fd",native:"◽"}],version:1},black_small_square:{id:"black_small_square",name:"Black Small Square",keywords:["shape","icon"],skins:[{unified:"25aa-fe0f",native:"▪️"}],version:1},white_small_square:{id:"white_small_square",name:"White Small Square",keywords:["shape","icon"],skins:[{unified:"25ab-fe0f",native:"▫️"}],version:1},large_orange_diamond:{id:"large_orange_diamond",name:"Large Orange Diamond",keywords:["shape","jewel","gem"],skins:[{unified:"1f536",native:"🔶"}],version:1},large_blue_diamond:{id:"large_blue_diamond",name:"Large Blue Diamond",keywords:["shape","jewel","gem"],skins:[{unified:"1f537",native:"🔷"}],version:1},small_orange_diamond:{id:"small_orange_diamond",name:"Small Orange Diamond",keywords:["shape","jewel","gem"],skins:[{unified:"1f538",native:"🔸"}],version:1},small_blue_diamond:{id:"small_blue_diamond",name:"Small Blue Diamond",keywords:["shape","jewel","gem"],skins:[{unified:"1f539",native:"🔹"}],version:1},small_red_triangle:{id:"small_red_triangle",name:"Red Triangle Pointed Up",keywords:["small","shape","direction","top"],skins:[{unified:"1f53a",native:"🔺"}],version:1},small_red_triangle_down:{id:"small_red_triangle_down",name:"Red Triangle Pointed Down",keywords:["small","shape","direction","bottom"],skins:[{unified:"1f53b",native:"🔻"}],version:1},diamond_shape_with_a_dot_inside:{id:"diamond_shape_with_a_dot_inside",name:"Diamond with a Dot",keywords:["shape","inside","jewel","blue","gem","crystal","fancy"],skins:[{unified:"1f4a0",native:"💠"}],version:1},radio_button:{id:"radio_button",name:"Radio Button",keywords:["input","old","music","circle"],skins:[{unified:"1f518",native:"🔘"}],version:1},white_square_button:{id:"white_square_button",name:"White Square Button",keywords:["shape","input"],skins:[{unified:"1f533",native:"🔳"}],version:1},black_square_button:{id:"black_square_button",name:"Black Square Button",keywords:["shape","input","frame"],skins:[{unified:"1f532",native:"🔲"}],version:1},checkered_flag:{id:"checkered_flag",name:"Chequered Flag",keywords:["checkered","contest","finishline","race","gokart"],skins:[{unified:"1f3c1",native:"🏁"}],version:1},triangular_flag_on_post:{id:"triangular_flag_on_post",name:"Triangular Flag",keywords:["on","post","mark","milestone","place"],skins:[{unified:"1f6a9",native:"🚩"}],version:1},crossed_flags:{id:"crossed_flags",name:"Crossed Flags",keywords:["japanese","nation","country","border"],skins:[{unified:"1f38c",native:"🎌"}],version:1},waving_black_flag:{id:"waving_black_flag",name:"Black Flag",keywords:["waving","pirate"],skins:[{unified:"1f3f4",native:"🏴"}],version:1},waving_white_flag:{id:"waving_white_flag",name:"White Flag",keywords:["waving","losing","loser","lost","surrender","give","up","fail"],skins:[{unified:"1f3f3-fe0f",native:"🏳️"}],version:1},"rainbow-flag":{id:"rainbow-flag",name:"Rainbow Flag",keywords:["pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],skins:[{unified:"1f3f3-fe0f-200d-1f308",native:"🏳️‍🌈"}],version:4},transgender_flag:{id:"transgender_flag",name:"Transgender Flag",keywords:["lgbtq"],skins:[{unified:"1f3f3-fe0f-200d-26a7-fe0f",native:"🏳️‍⚧️"}],version:13},pirate_flag:{id:"pirate_flag",name:"Pirate Flag",keywords:["skull","crossbones","banner"],skins:[{unified:"1f3f4-200d-2620-fe0f",native:"🏴‍☠️"}],version:11},"flag-ac":{id:"flag-ac",name:"Ascension Island Flag",keywords:["ac"],skins:[{unified:"1f1e6-1f1e8",native:"🇦🇨"}],version:2},"flag-ad":{id:"flag-ad",name:"Andorra Flag",keywords:["ad","nation","country","banner"],skins:[{unified:"1f1e6-1f1e9",native:"🇦🇩"}],version:2},"flag-ae":{id:"flag-ae",name:"United Arab Emirates Flag",keywords:["ae","nation","country","banner"],skins:[{unified:"1f1e6-1f1ea",native:"🇦🇪"}],version:2},"flag-af":{id:"flag-af",name:"Afghanistan Flag",keywords:["af","nation","country","banner"],skins:[{unified:"1f1e6-1f1eb",native:"🇦🇫"}],version:2},"flag-ag":{id:"flag-ag",name:"Antigua & Barbuda Flag",keywords:["ag","nation","country","banner"],skins:[{unified:"1f1e6-1f1ec",native:"🇦🇬"}],version:2},"flag-ai":{id:"flag-ai",name:"Anguilla Flag",keywords:["ai","nation","country","banner"],skins:[{unified:"1f1e6-1f1ee",native:"🇦🇮"}],version:2},"flag-al":{id:"flag-al",name:"Albania Flag",keywords:["al","nation","country","banner"],skins:[{unified:"1f1e6-1f1f1",native:"🇦🇱"}],version:2},"flag-am":{id:"flag-am",name:"Armenia Flag",keywords:["am","nation","country","banner"],skins:[{unified:"1f1e6-1f1f2",native:"🇦🇲"}],version:2},"flag-ao":{id:"flag-ao",name:"Angola Flag",keywords:["ao","nation","country","banner"],skins:[{unified:"1f1e6-1f1f4",native:"🇦🇴"}],version:2},"flag-aq":{id:"flag-aq",name:"Antarctica Flag",keywords:["aq","nation","country","banner"],skins:[{unified:"1f1e6-1f1f6",native:"🇦🇶"}],version:2},"flag-ar":{id:"flag-ar",name:"Argentina Flag",keywords:["ar","nation","country","banner"],skins:[{unified:"1f1e6-1f1f7",native:"🇦🇷"}],version:2},"flag-as":{id:"flag-as",name:"American Samoa Flag",keywords:["as","ws","nation","country","banner"],skins:[{unified:"1f1e6-1f1f8",native:"🇦🇸"}],version:2},"flag-at":{id:"flag-at",name:"Austria Flag",keywords:["at","nation","country","banner"],skins:[{unified:"1f1e6-1f1f9",native:"🇦🇹"}],version:2},"flag-au":{id:"flag-au",name:"Australia Flag",keywords:["au","nation","country","banner"],skins:[{unified:"1f1e6-1f1fa",native:"🇦🇺"}],version:2},"flag-aw":{id:"flag-aw",name:"Aruba Flag",keywords:["aw","nation","country","banner"],skins:[{unified:"1f1e6-1f1fc",native:"🇦🇼"}],version:2},"flag-ax":{id:"flag-ax",name:"Åland Islands Flag",keywords:["ax","aland","Aland","nation","country","banner"],skins:[{unified:"1f1e6-1f1fd",native:"🇦🇽"}],version:2},"flag-az":{id:"flag-az",name:"Azerbaijan Flag",keywords:["az","nation","country","banner"],skins:[{unified:"1f1e6-1f1ff",native:"🇦🇿"}],version:2},"flag-ba":{id:"flag-ba",name:"Bosnia & Herzegovina Flag",keywords:["ba","nation","country","banner"],skins:[{unified:"1f1e7-1f1e6",native:"🇧🇦"}],version:2},"flag-bb":{id:"flag-bb",name:"Barbados Flag",keywords:["bb","nation","country","banner"],skins:[{unified:"1f1e7-1f1e7",native:"🇧🇧"}],version:2},"flag-bd":{id:"flag-bd",name:"Bangladesh Flag",keywords:["bd","nation","country","banner"],skins:[{unified:"1f1e7-1f1e9",native:"🇧🇩"}],version:2},"flag-be":{id:"flag-be",name:"Belgium Flag",keywords:["be","nation","country","banner"],skins:[{unified:"1f1e7-1f1ea",native:"🇧🇪"}],version:2},"flag-bf":{id:"flag-bf",name:"Burkina Faso Flag",keywords:["bf","nation","country","banner"],skins:[{unified:"1f1e7-1f1eb",native:"🇧🇫"}],version:2},"flag-bg":{id:"flag-bg",name:"Bulgaria Flag",keywords:["bg","nation","country","banner"],skins:[{unified:"1f1e7-1f1ec",native:"🇧🇬"}],version:2},"flag-bh":{id:"flag-bh",name:"Bahrain Flag",keywords:["bh","nation","country","banner"],skins:[{unified:"1f1e7-1f1ed",native:"🇧🇭"}],version:2},"flag-bi":{id:"flag-bi",name:"Burundi Flag",keywords:["bi","nation","country","banner"],skins:[{unified:"1f1e7-1f1ee",native:"🇧🇮"}],version:2},"flag-bj":{id:"flag-bj",name:"Benin Flag",keywords:["bj","nation","country","banner"],skins:[{unified:"1f1e7-1f1ef",native:"🇧🇯"}],version:2},"flag-bl":{id:"flag-bl",name:"St. Barthélemy Flag",keywords:["bl","st","barthelemy","saint","nation","country","banner"],skins:[{unified:"1f1e7-1f1f1",native:"🇧🇱"}],version:2},"flag-bm":{id:"flag-bm",name:"Bermuda Flag",keywords:["bm","nation","country","banner"],skins:[{unified:"1f1e7-1f1f2",native:"🇧🇲"}],version:2},"flag-bn":{id:"flag-bn",name:"Brunei Flag",keywords:["bn","darussalam","nation","country","banner"],skins:[{unified:"1f1e7-1f1f3",native:"🇧🇳"}],version:2},"flag-bo":{id:"flag-bo",name:"Bolivia Flag",keywords:["bo","nation","country","banner"],skins:[{unified:"1f1e7-1f1f4",native:"🇧🇴"}],version:2},"flag-bq":{id:"flag-bq",name:"Caribbean Netherlands Flag",keywords:["bq","bonaire","nation","country","banner"],skins:[{unified:"1f1e7-1f1f6",native:"🇧🇶"}],version:2},"flag-br":{id:"flag-br",name:"Brazil Flag",keywords:["br","nation","country","banner"],skins:[{unified:"1f1e7-1f1f7",native:"🇧🇷"}],version:2},"flag-bs":{id:"flag-bs",name:"Bahamas Flag",keywords:["bs","nation","country","banner"],skins:[{unified:"1f1e7-1f1f8",native:"🇧🇸"}],version:2},"flag-bt":{id:"flag-bt",name:"Bhutan Flag",keywords:["bt","nation","country","banner"],skins:[{unified:"1f1e7-1f1f9",native:"🇧🇹"}],version:2},"flag-bv":{id:"flag-bv",name:"Bouvet Island Flag",keywords:["bv","norway"],skins:[{unified:"1f1e7-1f1fb",native:"🇧🇻"}],version:2},"flag-bw":{id:"flag-bw",name:"Botswana Flag",keywords:["bw","nation","country","banner"],skins:[{unified:"1f1e7-1f1fc",native:"🇧🇼"}],version:2},"flag-by":{id:"flag-by",name:"Belarus Flag",keywords:["by","nation","country","banner"],skins:[{unified:"1f1e7-1f1fe",native:"🇧🇾"}],version:2},"flag-bz":{id:"flag-bz",name:"Belize Flag",keywords:["bz","nation","country","banner"],skins:[{unified:"1f1e7-1f1ff",native:"🇧🇿"}],version:2},"flag-ca":{id:"flag-ca",name:"Canada Flag",keywords:["ca","nation","country","banner"],skins:[{unified:"1f1e8-1f1e6",native:"🇨🇦"}],version:2},"flag-cc":{id:"flag-cc",name:"Cocos (keeling) Islands Flag",keywords:["cc","keeling","nation","country","banner"],skins:[{unified:"1f1e8-1f1e8",native:"🇨🇨"}],version:2},"flag-cd":{id:"flag-cd",name:"Congo - Kinshasa Flag",keywords:["cd","democratic","republic","nation","country","banner"],skins:[{unified:"1f1e8-1f1e9",native:"🇨🇩"}],version:2},"flag-cf":{id:"flag-cf",name:"Central African Republic Flag",keywords:["cf","nation","country","banner"],skins:[{unified:"1f1e8-1f1eb",native:"🇨🇫"}],version:2},"flag-cg":{id:"flag-cg",name:"Congo - Brazzaville Flag",keywords:["cg","nation","country","banner"],skins:[{unified:"1f1e8-1f1ec",native:"🇨🇬"}],version:2},"flag-ch":{id:"flag-ch",name:"Switzerland Flag",keywords:["ch","nation","country","banner"],skins:[{unified:"1f1e8-1f1ed",native:"🇨🇭"}],version:2},"flag-ci":{id:"flag-ci",name:"Côte Divoire Flag",keywords:["ci","cote","d","ivoire","ivory","coast","nation","country","banner"],skins:[{unified:"1f1e8-1f1ee",native:"🇨🇮"}],version:2},"flag-ck":{id:"flag-ck",name:"Cook Islands Flag",keywords:["ck","nation","country","banner"],skins:[{unified:"1f1e8-1f1f0",native:"🇨🇰"}],version:2},"flag-cl":{id:"flag-cl",name:"Chile Flag",keywords:["cl","nation","country","banner"],skins:[{unified:"1f1e8-1f1f1",native:"🇨🇱"}],version:2},"flag-cm":{id:"flag-cm",name:"Cameroon Flag",keywords:["cm","nation","country","banner"],skins:[{unified:"1f1e8-1f1f2",native:"🇨🇲"}],version:2},cn:{id:"cn",name:"China Flag",keywords:["cn","chinese","prc","country","nation","banner"],skins:[{unified:"1f1e8-1f1f3",native:"🇨🇳"}],version:1},"flag-co":{id:"flag-co",name:"Colombia Flag",keywords:["co","nation","country","banner"],skins:[{unified:"1f1e8-1f1f4",native:"🇨🇴"}],version:2},"flag-cp":{id:"flag-cp",name:"Clipperton Island Flag",keywords:["cp"],skins:[{unified:"1f1e8-1f1f5",native:"🇨🇵"}],version:2},"flag-cr":{id:"flag-cr",name:"Costa Rica Flag",keywords:["cr","nation","country","banner"],skins:[{unified:"1f1e8-1f1f7",native:"🇨🇷"}],version:2},"flag-cu":{id:"flag-cu",name:"Cuba Flag",keywords:["cu","nation","country","banner"],skins:[{unified:"1f1e8-1f1fa",native:"🇨🇺"}],version:2},"flag-cv":{id:"flag-cv",name:"Cape Verde Flag",keywords:["cv","cabo","nation","country","banner"],skins:[{unified:"1f1e8-1f1fb",native:"🇨🇻"}],version:2},"flag-cw":{id:"flag-cw",name:"Curaçao Flag",keywords:["cw","curacao","nation","country","banner"],skins:[{unified:"1f1e8-1f1fc",native:"🇨🇼"}],version:2},"flag-cx":{id:"flag-cx",name:"Christmas Island Flag",keywords:["cx","nation","country","banner"],skins:[{unified:"1f1e8-1f1fd",native:"🇨🇽"}],version:2},"flag-cy":{id:"flag-cy",name:"Cyprus Flag",keywords:["cy","nation","country","banner"],skins:[{unified:"1f1e8-1f1fe",native:"🇨🇾"}],version:2},"flag-cz":{id:"flag-cz",name:"Czechia Flag",keywords:["cz","nation","country","banner"],skins:[{unified:"1f1e8-1f1ff",native:"🇨🇿"}],version:2},de:{id:"de",name:"Germany Flag",keywords:["de","german","nation","country","banner"],skins:[{unified:"1f1e9-1f1ea",native:"🇩🇪"}],version:1},"flag-dg":{id:"flag-dg",name:"Diego Garcia Flag",keywords:["dg"],skins:[{unified:"1f1e9-1f1ec",native:"🇩🇬"}],version:2},"flag-dj":{id:"flag-dj",name:"Djibouti Flag",keywords:["dj","nation","country","banner"],skins:[{unified:"1f1e9-1f1ef",native:"🇩🇯"}],version:2},"flag-dk":{id:"flag-dk",name:"Denmark Flag",keywords:["dk","nation","country","banner"],skins:[{unified:"1f1e9-1f1f0",native:"🇩🇰"}],version:2},"flag-dm":{id:"flag-dm",name:"Dominica Flag",keywords:["dm","nation","country","banner"],skins:[{unified:"1f1e9-1f1f2",native:"🇩🇲"}],version:2},"flag-do":{id:"flag-do",name:"Dominican Republic Flag",keywords:["do","nation","country","banner"],skins:[{unified:"1f1e9-1f1f4",native:"🇩🇴"}],version:2},"flag-dz":{id:"flag-dz",name:"Algeria Flag",keywords:["dz","nation","country","banner"],skins:[{unified:"1f1e9-1f1ff",native:"🇩🇿"}],version:2},"flag-ea":{id:"flag-ea",name:"Ceuta & Melilla Flag",keywords:["ea"],skins:[{unified:"1f1ea-1f1e6",native:"🇪🇦"}],version:2},"flag-ec":{id:"flag-ec",name:"Ecuador Flag",keywords:["ec","nation","country","banner"],skins:[{unified:"1f1ea-1f1e8",native:"🇪🇨"}],version:2},"flag-ee":{id:"flag-ee",name:"Estonia Flag",keywords:["ee","nation","country","banner"],skins:[{unified:"1f1ea-1f1ea",native:"🇪🇪"}],version:2},"flag-eg":{id:"flag-eg",name:"Egypt Flag",keywords:["eg","nation","country","banner"],skins:[{unified:"1f1ea-1f1ec",native:"🇪🇬"}],version:2},"flag-eh":{id:"flag-eh",name:"Western Sahara Flag",keywords:["eh","nation","country","banner"],skins:[{unified:"1f1ea-1f1ed",native:"🇪🇭"}],version:2},"flag-er":{id:"flag-er",name:"Eritrea Flag",keywords:["er","nation","country","banner"],skins:[{unified:"1f1ea-1f1f7",native:"🇪🇷"}],version:2},es:{id:"es",name:"Spain Flag",keywords:["es","nation","country","banner"],skins:[{unified:"1f1ea-1f1f8",native:"🇪🇸"}],version:1},"flag-et":{id:"flag-et",name:"Ethiopia Flag",keywords:["et","nation","country","banner"],skins:[{unified:"1f1ea-1f1f9",native:"🇪🇹"}],version:2},"flag-eu":{id:"flag-eu",name:"European Union Flag",keywords:["eu","banner"],skins:[{unified:"1f1ea-1f1fa",native:"🇪🇺"}],version:2},"flag-fi":{id:"flag-fi",name:"Finland Flag",keywords:["fi","nation","country","banner"],skins:[{unified:"1f1eb-1f1ee",native:"🇫🇮"}],version:2},"flag-fj":{id:"flag-fj",name:"Fiji Flag",keywords:["fj","nation","country","banner"],skins:[{unified:"1f1eb-1f1ef",native:"🇫🇯"}],version:2},"flag-fk":{id:"flag-fk",name:"Falkland Islands Flag",keywords:["fk","malvinas","nation","country","banner"],skins:[{unified:"1f1eb-1f1f0",native:"🇫🇰"}],version:2},"flag-fm":{id:"flag-fm",name:"Micronesia Flag",keywords:["fm","federated","states","nation","country","banner"],skins:[{unified:"1f1eb-1f1f2",native:"🇫🇲"}],version:2},"flag-fo":{id:"flag-fo",name:"Faroe Islands Flag",keywords:["fo","nation","country","banner"],skins:[{unified:"1f1eb-1f1f4",native:"🇫🇴"}],version:2},fr:{id:"fr",name:"France Flag",keywords:["fr","banner","nation","french","country"],skins:[{unified:"1f1eb-1f1f7",native:"🇫🇷"}],version:1},"flag-ga":{id:"flag-ga",name:"Gabon Flag",keywords:["ga","nation","country","banner"],skins:[{unified:"1f1ec-1f1e6",native:"🇬🇦"}],version:2},gb:{id:"gb",name:"United Kingdom Flag",keywords:["gb","uk","great","britain","northern","ireland","nation","country","banner","british","UK","english","england","union","jack"],skins:[{unified:"1f1ec-1f1e7",native:"🇬🇧"}],version:1},"flag-gd":{id:"flag-gd",name:"Grenada Flag",keywords:["gd","nation","country","banner"],skins:[{unified:"1f1ec-1f1e9",native:"🇬🇩"}],version:2},"flag-ge":{id:"flag-ge",name:"Georgia Flag",keywords:["ge","nation","country","banner"],skins:[{unified:"1f1ec-1f1ea",native:"🇬🇪"}],version:2},"flag-gf":{id:"flag-gf",name:"French Guiana Flag",keywords:["gf","nation","country","banner"],skins:[{unified:"1f1ec-1f1eb",native:"🇬🇫"}],version:2},"flag-gg":{id:"flag-gg",name:"Guernsey Flag",keywords:["gg","nation","country","banner"],skins:[{unified:"1f1ec-1f1ec",native:"🇬🇬"}],version:2},"flag-gh":{id:"flag-gh",name:"Ghana Flag",keywords:["gh","nation","country","banner"],skins:[{unified:"1f1ec-1f1ed",native:"🇬🇭"}],version:2},"flag-gi":{id:"flag-gi",name:"Gibraltar Flag",keywords:["gi","nation","country","banner"],skins:[{unified:"1f1ec-1f1ee",native:"🇬🇮"}],version:2},"flag-gl":{id:"flag-gl",name:"Greenland Flag",keywords:["gl","nation","country","banner"],skins:[{unified:"1f1ec-1f1f1",native:"🇬🇱"}],version:2},"flag-gm":{id:"flag-gm",name:"Gambia Flag",keywords:["gm","nation","country","banner"],skins:[{unified:"1f1ec-1f1f2",native:"🇬🇲"}],version:2},"flag-gn":{id:"flag-gn",name:"Guinea Flag",keywords:["gn","nation","country","banner"],skins:[{unified:"1f1ec-1f1f3",native:"🇬🇳"}],version:2},"flag-gp":{id:"flag-gp",name:"Guadeloupe Flag",keywords:["gp","nation","country","banner"],skins:[{unified:"1f1ec-1f1f5",native:"🇬🇵"}],version:2},"flag-gq":{id:"flag-gq",name:"Equatorial Guinea Flag",keywords:["gq","gn","nation","country","banner"],skins:[{unified:"1f1ec-1f1f6",native:"🇬🇶"}],version:2},"flag-gr":{id:"flag-gr",name:"Greece Flag",keywords:["gr","nation","country","banner"],skins:[{unified:"1f1ec-1f1f7",native:"🇬🇷"}],version:2},"flag-gs":{id:"flag-gs",name:"South Georgia & South Sandwich Islands Flag",keywords:["gs","nation","country","banner"],skins:[{unified:"1f1ec-1f1f8",native:"🇬🇸"}],version:2},"flag-gt":{id:"flag-gt",name:"Guatemala Flag",keywords:["gt","nation","country","banner"],skins:[{unified:"1f1ec-1f1f9",native:"🇬🇹"}],version:2},"flag-gu":{id:"flag-gu",name:"Guam Flag",keywords:["gu","nation","country","banner"],skins:[{unified:"1f1ec-1f1fa",native:"🇬🇺"}],version:2},"flag-gw":{id:"flag-gw",name:"Guinea-Bissau Flag",keywords:["gw","guinea","bissau","nation","country","banner"],skins:[{unified:"1f1ec-1f1fc",native:"🇬🇼"}],version:2},"flag-gy":{id:"flag-gy",name:"Guyana Flag",keywords:["gy","nation","country","banner"],skins:[{unified:"1f1ec-1f1fe",native:"🇬🇾"}],version:2},"flag-hk":{id:"flag-hk",name:"Hong Kong Sar China Flag",keywords:["hk","nation","country","banner"],skins:[{unified:"1f1ed-1f1f0",native:"🇭🇰"}],version:2},"flag-hm":{id:"flag-hm",name:"Heard & Mcdonald Islands Flag",keywords:["hm"],skins:[{unified:"1f1ed-1f1f2",native:"🇭🇲"}],version:2},"flag-hn":{id:"flag-hn",name:"Honduras Flag",keywords:["hn","nation","country","banner"],skins:[{unified:"1f1ed-1f1f3",native:"🇭🇳"}],version:2},"flag-hr":{id:"flag-hr",name:"Croatia Flag",keywords:["hr","nation","country","banner"],skins:[{unified:"1f1ed-1f1f7",native:"🇭🇷"}],version:2},"flag-ht":{id:"flag-ht",name:"Haiti Flag",keywords:["ht","nation","country","banner"],skins:[{unified:"1f1ed-1f1f9",native:"🇭🇹"}],version:2},"flag-hu":{id:"flag-hu",name:"Hungary Flag",keywords:["hu","nation","country","banner"],skins:[{unified:"1f1ed-1f1fa",native:"🇭🇺"}],version:2},"flag-ic":{id:"flag-ic",name:"Canary Islands Flag",keywords:["ic","nation","country","banner"],skins:[{unified:"1f1ee-1f1e8",native:"🇮🇨"}],version:2},"flag-id":{id:"flag-id",name:"Indonesia Flag",keywords:["id","nation","country","banner"],skins:[{unified:"1f1ee-1f1e9",native:"🇮🇩"}],version:2},"flag-ie":{id:"flag-ie",name:"Ireland Flag",keywords:["ie","nation","country","banner"],skins:[{unified:"1f1ee-1f1ea",native:"🇮🇪"}],version:2},"flag-il":{id:"flag-il",name:"Israel Flag",keywords:["il","nation","country","banner"],skins:[{unified:"1f1ee-1f1f1",native:"🇮🇱"}],version:2},"flag-im":{id:"flag-im",name:"Isle of Man Flag",keywords:["im","nation","country","banner"],skins:[{unified:"1f1ee-1f1f2",native:"🇮🇲"}],version:2},"flag-in":{id:"flag-in",name:"India Flag",keywords:["in","nation","country","banner"],skins:[{unified:"1f1ee-1f1f3",native:"🇮🇳"}],version:2},"flag-io":{id:"flag-io",name:"British Indian Ocean Territory Flag",keywords:["io","nation","country","banner"],skins:[{unified:"1f1ee-1f1f4",native:"🇮🇴"}],version:2},"flag-iq":{id:"flag-iq",name:"Iraq Flag",keywords:["iq","nation","country","banner"],skins:[{unified:"1f1ee-1f1f6",native:"🇮🇶"}],version:2},"flag-ir":{id:"flag-ir",name:"Iran Flag",keywords:["ir","islamic","republic","nation","country","banner"],skins:[{unified:"1f1ee-1f1f7",native:"🇮🇷"}],version:2},"flag-is":{id:"flag-is",name:"Iceland Flag",keywords:["is","nation","country","banner"],skins:[{unified:"1f1ee-1f1f8",native:"🇮🇸"}],version:2},it:{id:"it",name:"Italy Flag",keywords:["it","nation","country","banner"],skins:[{unified:"1f1ee-1f1f9",native:"🇮🇹"}],version:1},"flag-je":{id:"flag-je",name:"Jersey Flag",keywords:["je","nation","country","banner"],skins:[{unified:"1f1ef-1f1ea",native:"🇯🇪"}],version:2},"flag-jm":{id:"flag-jm",name:"Jamaica Flag",keywords:["jm","nation","country","banner"],skins:[{unified:"1f1ef-1f1f2",native:"🇯🇲"}],version:2},"flag-jo":{id:"flag-jo",name:"Jordan Flag",keywords:["jo","nation","country","banner"],skins:[{unified:"1f1ef-1f1f4",native:"🇯🇴"}],version:2},jp:{id:"jp",name:"Japan Flag",keywords:["jp","japanese","nation","country","banner","ja"],skins:[{unified:"1f1ef-1f1f5",native:"🇯🇵"}],version:1},"flag-ke":{id:"flag-ke",name:"Kenya Flag",keywords:["ke","nation","country","banner"],skins:[{unified:"1f1f0-1f1ea",native:"🇰🇪"}],version:2},"flag-kg":{id:"flag-kg",name:"Kyrgyzstan Flag",keywords:["kg","nation","country","banner"],skins:[{unified:"1f1f0-1f1ec",native:"🇰🇬"}],version:2},"flag-kh":{id:"flag-kh",name:"Cambodia Flag",keywords:["kh","nation","country","banner"],skins:[{unified:"1f1f0-1f1ed",native:"🇰🇭"}],version:2},"flag-ki":{id:"flag-ki",name:"Kiribati Flag",keywords:["ki","nation","country","banner"],skins:[{unified:"1f1f0-1f1ee",native:"🇰🇮"}],version:2},"flag-km":{id:"flag-km",name:"Comoros Flag",keywords:["km","nation","country","banner"],skins:[{unified:"1f1f0-1f1f2",native:"🇰🇲"}],version:2},"flag-kn":{id:"flag-kn",name:"St. Kitts & Nevis Flag",keywords:["kn","st","saint","nation","country","banner"],skins:[{unified:"1f1f0-1f1f3",native:"🇰🇳"}],version:2},"flag-kp":{id:"flag-kp",name:"North Korea Flag",keywords:["kp","nation","country","banner"],skins:[{unified:"1f1f0-1f1f5",native:"🇰🇵"}],version:2},kr:{id:"kr",name:"South Korea Flag",keywords:["kr","nation","country","banner"],skins:[{unified:"1f1f0-1f1f7",native:"🇰🇷"}],version:1},"flag-kw":{id:"flag-kw",name:"Kuwait Flag",keywords:["kw","nation","country","banner"],skins:[{unified:"1f1f0-1f1fc",native:"🇰🇼"}],version:2},"flag-ky":{id:"flag-ky",name:"Cayman Islands Flag",keywords:["ky","nation","country","banner"],skins:[{unified:"1f1f0-1f1fe",native:"🇰🇾"}],version:2},"flag-kz":{id:"flag-kz",name:"Kazakhstan Flag",keywords:["kz","nation","country","banner"],skins:[{unified:"1f1f0-1f1ff",native:"🇰🇿"}],version:2},"flag-la":{id:"flag-la",name:"Laos Flag",keywords:["la","lao","democratic","republic","nation","country","banner"],skins:[{unified:"1f1f1-1f1e6",native:"🇱🇦"}],version:2},"flag-lb":{id:"flag-lb",name:"Lebanon Flag",keywords:["lb","nation","country","banner"],skins:[{unified:"1f1f1-1f1e7",native:"🇱🇧"}],version:2},"flag-lc":{id:"flag-lc",name:"St. Lucia Flag",keywords:["lc","st","saint","nation","country","banner"],skins:[{unified:"1f1f1-1f1e8",native:"🇱🇨"}],version:2},"flag-li":{id:"flag-li",name:"Liechtenstein Flag",keywords:["li","nation","country","banner"],skins:[{unified:"1f1f1-1f1ee",native:"🇱🇮"}],version:2},"flag-lk":{id:"flag-lk",name:"Sri Lanka Flag",keywords:["lk","nation","country","banner"],skins:[{unified:"1f1f1-1f1f0",native:"🇱🇰"}],version:2},"flag-lr":{id:"flag-lr",name:"Liberia Flag",keywords:["lr","nation","country","banner"],skins:[{unified:"1f1f1-1f1f7",native:"🇱🇷"}],version:2},"flag-ls":{id:"flag-ls",name:"Lesotho Flag",keywords:["ls","nation","country","banner"],skins:[{unified:"1f1f1-1f1f8",native:"🇱🇸"}],version:2},"flag-lt":{id:"flag-lt",name:"Lithuania Flag",keywords:["lt","nation","country","banner"],skins:[{unified:"1f1f1-1f1f9",native:"🇱🇹"}],version:2},"flag-lu":{id:"flag-lu",name:"Luxembourg Flag",keywords:["lu","nation","country","banner"],skins:[{unified:"1f1f1-1f1fa",native:"🇱🇺"}],version:2},"flag-lv":{id:"flag-lv",name:"Latvia Flag",keywords:["lv","nation","country","banner"],skins:[{unified:"1f1f1-1f1fb",native:"🇱🇻"}],version:2},"flag-ly":{id:"flag-ly",name:"Libya Flag",keywords:["ly","nation","country","banner"],skins:[{unified:"1f1f1-1f1fe",native:"🇱🇾"}],version:2},"flag-ma":{id:"flag-ma",name:"Morocco Flag",keywords:["ma","nation","country","banner"],skins:[{unified:"1f1f2-1f1e6",native:"🇲🇦"}],version:2},"flag-mc":{id:"flag-mc",name:"Monaco Flag",keywords:["mc","nation","country","banner"],skins:[{unified:"1f1f2-1f1e8",native:"🇲🇨"}],version:2},"flag-md":{id:"flag-md",name:"Moldova Flag",keywords:["md","republic","nation","country","banner"],skins:[{unified:"1f1f2-1f1e9",native:"🇲🇩"}],version:2},"flag-me":{id:"flag-me",name:"Montenegro Flag",keywords:["me","nation","country","banner"],skins:[{unified:"1f1f2-1f1ea",native:"🇲🇪"}],version:2},"flag-mf":{id:"flag-mf",name:"St. Martin Flag",keywords:["mf","st"],skins:[{unified:"1f1f2-1f1eb",native:"🇲🇫"}],version:2},"flag-mg":{id:"flag-mg",name:"Madagascar Flag",keywords:["mg","nation","country","banner"],skins:[{unified:"1f1f2-1f1ec",native:"🇲🇬"}],version:2},"flag-mh":{id:"flag-mh",name:"Marshall Islands Flag",keywords:["mh","nation","country","banner"],skins:[{unified:"1f1f2-1f1ed",native:"🇲🇭"}],version:2},"flag-mk":{id:"flag-mk",name:"North Macedonia Flag",keywords:["mk","nation","country","banner"],skins:[{unified:"1f1f2-1f1f0",native:"🇲🇰"}],version:2},"flag-ml":{id:"flag-ml",name:"Mali Flag",keywords:["ml","nation","country","banner"],skins:[{unified:"1f1f2-1f1f1",native:"🇲🇱"}],version:2},"flag-mm":{id:"flag-mm",name:"Myanmar (burma) Flag",keywords:["mm","nation","country","banner"],skins:[{unified:"1f1f2-1f1f2",native:"🇲🇲"}],version:2},"flag-mn":{id:"flag-mn",name:"Mongolia Flag",keywords:["mn","nation","country","banner"],skins:[{unified:"1f1f2-1f1f3",native:"🇲🇳"}],version:2},"flag-mo":{id:"flag-mo",name:"Macao Sar China Flag",keywords:["mo","nation","country","banner"],skins:[{unified:"1f1f2-1f1f4",native:"🇲🇴"}],version:2},"flag-mp":{id:"flag-mp",name:"Northern Mariana Islands Flag",keywords:["mp","nation","country","banner"],skins:[{unified:"1f1f2-1f1f5",native:"🇲🇵"}],version:2},"flag-mq":{id:"flag-mq",name:"Martinique Flag",keywords:["mq","nation","country","banner"],skins:[{unified:"1f1f2-1f1f6",native:"🇲🇶"}],version:2},"flag-mr":{id:"flag-mr",name:"Mauritania Flag",keywords:["mr","nation","country","banner"],skins:[{unified:"1f1f2-1f1f7",native:"🇲🇷"}],version:2},"flag-ms":{id:"flag-ms",name:"Montserrat Flag",keywords:["ms","nation","country","banner"],skins:[{unified:"1f1f2-1f1f8",native:"🇲🇸"}],version:2},"flag-mt":{id:"flag-mt",name:"Malta Flag",keywords:["mt","nation","country","banner"],skins:[{unified:"1f1f2-1f1f9",native:"🇲🇹"}],version:2},"flag-mu":{id:"flag-mu",name:"Mauritius Flag",keywords:["mu","nation","country","banner"],skins:[{unified:"1f1f2-1f1fa",native:"🇲🇺"}],version:2},"flag-mv":{id:"flag-mv",name:"Maldives Flag",keywords:["mv","nation","country","banner"],skins:[{unified:"1f1f2-1f1fb",native:"🇲🇻"}],version:2},"flag-mw":{id:"flag-mw",name:"Malawi Flag",keywords:["mw","nation","country","banner"],skins:[{unified:"1f1f2-1f1fc",native:"🇲🇼"}],version:2},"flag-mx":{id:"flag-mx",name:"Mexico Flag",keywords:["mx","nation","country","banner"],skins:[{unified:"1f1f2-1f1fd",native:"🇲🇽"}],version:2},"flag-my":{id:"flag-my",name:"Malaysia Flag",keywords:["my","nation","country","banner"],skins:[{unified:"1f1f2-1f1fe",native:"🇲🇾"}],version:2},"flag-mz":{id:"flag-mz",name:"Mozambique Flag",keywords:["mz","nation","country","banner"],skins:[{unified:"1f1f2-1f1ff",native:"🇲🇿"}],version:2},"flag-na":{id:"flag-na",name:"Namibia Flag",keywords:["na","nation","country","banner"],skins:[{unified:"1f1f3-1f1e6",native:"🇳🇦"}],version:2},"flag-nc":{id:"flag-nc",name:"New Caledonia Flag",keywords:["nc","nation","country","banner"],skins:[{unified:"1f1f3-1f1e8",native:"🇳🇨"}],version:2},"flag-ne":{id:"flag-ne",name:"Niger Flag",keywords:["ne","nation","country","banner"],skins:[{unified:"1f1f3-1f1ea",native:"🇳🇪"}],version:2},"flag-nf":{id:"flag-nf",name:"Norfolk Island Flag",keywords:["nf","nation","country","banner"],skins:[{unified:"1f1f3-1f1eb",native:"🇳🇫"}],version:2},"flag-ng":{id:"flag-ng",name:"Nigeria Flag",keywords:["ng","nation","country","banner"],skins:[{unified:"1f1f3-1f1ec",native:"🇳🇬"}],version:2},"flag-ni":{id:"flag-ni",name:"Nicaragua Flag",keywords:["ni","nation","country","banner"],skins:[{unified:"1f1f3-1f1ee",native:"🇳🇮"}],version:2},"flag-nl":{id:"flag-nl",name:"Netherlands Flag",keywords:["nl","nation","country","banner"],skins:[{unified:"1f1f3-1f1f1",native:"🇳🇱"}],version:2},"flag-no":{id:"flag-no",name:"Norway Flag",keywords:["no","nation","country","banner"],skins:[{unified:"1f1f3-1f1f4",native:"🇳🇴"}],version:2},"flag-np":{id:"flag-np",name:"Nepal Flag",keywords:["np","nation","country","banner"],skins:[{unified:"1f1f3-1f1f5",native:"🇳🇵"}],version:2},"flag-nr":{id:"flag-nr",name:"Nauru Flag",keywords:["nr","nation","country","banner"],skins:[{unified:"1f1f3-1f1f7",native:"🇳🇷"}],version:2},"flag-nu":{id:"flag-nu",name:"Niue Flag",keywords:["nu","nation","country","banner"],skins:[{unified:"1f1f3-1f1fa",native:"🇳🇺"}],version:2},"flag-nz":{id:"flag-nz",name:"New Zealand Flag",keywords:["nz","nation","country","banner"],skins:[{unified:"1f1f3-1f1ff",native:"🇳🇿"}],version:2},"flag-om":{id:"flag-om",name:"Oman Flag",keywords:["om","symbol","nation","country","banner"],skins:[{unified:"1f1f4-1f1f2",native:"🇴🇲"}],version:2},"flag-pa":{id:"flag-pa",name:"Panama Flag",keywords:["pa","nation","country","banner"],skins:[{unified:"1f1f5-1f1e6",native:"🇵🇦"}],version:2},"flag-pe":{id:"flag-pe",name:"Peru Flag",keywords:["pe","nation","country","banner"],skins:[{unified:"1f1f5-1f1ea",native:"🇵🇪"}],version:2},"flag-pf":{id:"flag-pf",name:"French Polynesia Flag",keywords:["pf","nation","country","banner"],skins:[{unified:"1f1f5-1f1eb",native:"🇵🇫"}],version:2},"flag-pg":{id:"flag-pg",name:"Papua New Guinea Flag",keywords:["pg","nation","country","banner"],skins:[{unified:"1f1f5-1f1ec",native:"🇵🇬"}],version:2},"flag-ph":{id:"flag-ph",name:"Philippines Flag",keywords:["ph","nation","country","banner"],skins:[{unified:"1f1f5-1f1ed",native:"🇵🇭"}],version:2},"flag-pk":{id:"flag-pk",name:"Pakistan Flag",keywords:["pk","nation","country","banner"],skins:[{unified:"1f1f5-1f1f0",native:"🇵🇰"}],version:2},"flag-pl":{id:"flag-pl",name:"Poland Flag",keywords:["pl","nation","country","banner"],skins:[{unified:"1f1f5-1f1f1",native:"🇵🇱"}],version:2},"flag-pm":{id:"flag-pm",name:"St. Pierre & Miquelon Flag",keywords:["pm","st","saint","nation","country","banner"],skins:[{unified:"1f1f5-1f1f2",native:"🇵🇲"}],version:2},"flag-pn":{id:"flag-pn",name:"Pitcairn Islands Flag",keywords:["pn","nation","country","banner"],skins:[{unified:"1f1f5-1f1f3",native:"🇵🇳"}],version:2},"flag-pr":{id:"flag-pr",name:"Puerto Rico Flag",keywords:["pr","nation","country","banner"],skins:[{unified:"1f1f5-1f1f7",native:"🇵🇷"}],version:2},"flag-ps":{id:"flag-ps",name:"Palestinian Territories Flag",keywords:["ps","palestine","nation","country","banner"],skins:[{unified:"1f1f5-1f1f8",native:"🇵🇸"}],version:2},"flag-pt":{id:"flag-pt",name:"Portugal Flag",keywords:["pt","nation","country","banner"],skins:[{unified:"1f1f5-1f1f9",native:"🇵🇹"}],version:2},"flag-pw":{id:"flag-pw",name:"Palau Flag",keywords:["pw","nation","country","banner"],skins:[{unified:"1f1f5-1f1fc",native:"🇵🇼"}],version:2},"flag-py":{id:"flag-py",name:"Paraguay Flag",keywords:["py","nation","country","banner"],skins:[{unified:"1f1f5-1f1fe",native:"🇵🇾"}],version:2},"flag-qa":{id:"flag-qa",name:"Qatar Flag",keywords:["qa","nation","country","banner"],skins:[{unified:"1f1f6-1f1e6",native:"🇶🇦"}],version:2},"flag-re":{id:"flag-re",name:"Réunion Flag",keywords:["re","reunion","nation","country","banner"],skins:[{unified:"1f1f7-1f1ea",native:"🇷🇪"}],version:2},"flag-ro":{id:"flag-ro",name:"Romania Flag",keywords:["ro","nation","country","banner"],skins:[{unified:"1f1f7-1f1f4",native:"🇷🇴"}],version:2},"flag-rs":{id:"flag-rs",name:"Serbia Flag",keywords:["rs","nation","country","banner"],skins:[{unified:"1f1f7-1f1f8",native:"🇷🇸"}],version:2},ru:{id:"ru",name:"Russia Flag",keywords:["ru","russian","federation","nation","country","banner"],skins:[{unified:"1f1f7-1f1fa",native:"🇷🇺"}],version:1},"flag-rw":{id:"flag-rw",name:"Rwanda Flag",keywords:["rw","nation","country","banner"],skins:[{unified:"1f1f7-1f1fc",native:"🇷🇼"}],version:2},"flag-sa":{id:"flag-sa",name:"Saudi Arabia Flag",keywords:["sa","nation","country","banner"],skins:[{unified:"1f1f8-1f1e6",native:"🇸🇦"}],version:2},"flag-sb":{id:"flag-sb",name:"Solomon Islands Flag",keywords:["sb","nation","country","banner"],skins:[{unified:"1f1f8-1f1e7",native:"🇸🇧"}],version:2},"flag-sc":{id:"flag-sc",name:"Seychelles Flag",keywords:["sc","nation","country","banner"],skins:[{unified:"1f1f8-1f1e8",native:"🇸🇨"}],version:2},"flag-sd":{id:"flag-sd",name:"Sudan Flag",keywords:["sd","nation","country","banner"],skins:[{unified:"1f1f8-1f1e9",native:"🇸🇩"}],version:2},"flag-se":{id:"flag-se",name:"Sweden Flag",keywords:["se","nation","country","banner"],skins:[{unified:"1f1f8-1f1ea",native:"🇸🇪"}],version:2},"flag-sg":{id:"flag-sg",name:"Singapore Flag",keywords:["sg","nation","country","banner"],skins:[{unified:"1f1f8-1f1ec",native:"🇸🇬"}],version:2},"flag-sh":{id:"flag-sh",name:"St. Helena Flag",keywords:["sh","st","saint","ascension","tristan","cunha","nation","country","banner"],skins:[{unified:"1f1f8-1f1ed",native:"🇸🇭"}],version:2},"flag-si":{id:"flag-si",name:"Slovenia Flag",keywords:["si","nation","country","banner"],skins:[{unified:"1f1f8-1f1ee",native:"🇸🇮"}],version:2},"flag-sj":{id:"flag-sj",name:"Svalbard & Jan Mayen Flag",keywords:["sj"],skins:[{unified:"1f1f8-1f1ef",native:"🇸🇯"}],version:2},"flag-sk":{id:"flag-sk",name:"Slovakia Flag",keywords:["sk","nation","country","banner"],skins:[{unified:"1f1f8-1f1f0",native:"🇸🇰"}],version:2},"flag-sl":{id:"flag-sl",name:"Sierra Leone Flag",keywords:["sl","nation","country","banner"],skins:[{unified:"1f1f8-1f1f1",native:"🇸🇱"}],version:2},"flag-sm":{id:"flag-sm",name:"San Marino Flag",keywords:["sm","nation","country","banner"],skins:[{unified:"1f1f8-1f1f2",native:"🇸🇲"}],version:2},"flag-sn":{id:"flag-sn",name:"Senegal Flag",keywords:["sn","nation","country","banner"],skins:[{unified:"1f1f8-1f1f3",native:"🇸🇳"}],version:2},"flag-so":{id:"flag-so",name:"Somalia Flag",keywords:["so","nation","country","banner"],skins:[{unified:"1f1f8-1f1f4",native:"🇸🇴"}],version:2},"flag-sr":{id:"flag-sr",name:"Suriname Flag",keywords:["sr","nation","country","banner"],skins:[{unified:"1f1f8-1f1f7",native:"🇸🇷"}],version:2},"flag-ss":{id:"flag-ss",name:"South Sudan Flag",keywords:["ss","sd","nation","country","banner"],skins:[{unified:"1f1f8-1f1f8",native:"🇸🇸"}],version:2},"flag-st":{id:"flag-st",name:"São Tomé & Príncipe Flag",keywords:["st","sao","tome","principe","nation","country","banner"],skins:[{unified:"1f1f8-1f1f9",native:"🇸🇹"}],version:2},"flag-sv":{id:"flag-sv",name:"El Salvador Flag",keywords:["sv","nation","country","banner"],skins:[{unified:"1f1f8-1f1fb",native:"🇸🇻"}],version:2},"flag-sx":{id:"flag-sx",name:"Sint Maarten Flag",keywords:["sx","dutch","nation","country","banner"],skins:[{unified:"1f1f8-1f1fd",native:"🇸🇽"}],version:2},"flag-sy":{id:"flag-sy",name:"Syria Flag",keywords:["sy","syrian","arab","republic","nation","country","banner"],skins:[{unified:"1f1f8-1f1fe",native:"🇸🇾"}],version:2},"flag-sz":{id:"flag-sz",name:"Eswatini Flag",keywords:["sz","nation","country","banner"],skins:[{unified:"1f1f8-1f1ff",native:"🇸🇿"}],version:2},"flag-ta":{id:"flag-ta",name:"Tristan Da Cunha Flag",keywords:["ta"],skins:[{unified:"1f1f9-1f1e6",native:"🇹🇦"}],version:2},"flag-tc":{id:"flag-tc",name:"Turks & Caicos Islands Flag",keywords:["tc","nation","country","banner"],skins:[{unified:"1f1f9-1f1e8",native:"🇹🇨"}],version:2},"flag-td":{id:"flag-td",name:"Chad Flag",keywords:["td","nation","country","banner"],skins:[{unified:"1f1f9-1f1e9",native:"🇹🇩"}],version:2},"flag-tf":{id:"flag-tf",name:"French Southern Territories Flag",keywords:["tf","nation","country","banner"],skins:[{unified:"1f1f9-1f1eb",native:"🇹🇫"}],version:2},"flag-tg":{id:"flag-tg",name:"Togo Flag",keywords:["tg","nation","country","banner"],skins:[{unified:"1f1f9-1f1ec",native:"🇹🇬"}],version:2},"flag-th":{id:"flag-th",name:"Thailand Flag",keywords:["th","nation","country","banner"],skins:[{unified:"1f1f9-1f1ed",native:"🇹🇭"}],version:2},"flag-tj":{id:"flag-tj",name:"Tajikistan Flag",keywords:["tj","nation","country","banner"],skins:[{unified:"1f1f9-1f1ef",native:"🇹🇯"}],version:2},"flag-tk":{id:"flag-tk",name:"Tokelau Flag",keywords:["tk","nation","country","banner"],skins:[{unified:"1f1f9-1f1f0",native:"🇹🇰"}],version:2},"flag-tl":{id:"flag-tl",name:"Timor-Leste Flag",keywords:["tl","timor","leste","nation","country","banner"],skins:[{unified:"1f1f9-1f1f1",native:"🇹🇱"}],version:2},"flag-tm":{id:"flag-tm",name:"Turkmenistan Flag",keywords:["tm","nation","country","banner"],skins:[{unified:"1f1f9-1f1f2",native:"🇹🇲"}],version:2},"flag-tn":{id:"flag-tn",name:"Tunisia Flag",keywords:["tn","nation","country","banner"],skins:[{unified:"1f1f9-1f1f3",native:"🇹🇳"}],version:2},"flag-to":{id:"flag-to",name:"Tonga Flag",keywords:["to","nation","country","banner"],skins:[{unified:"1f1f9-1f1f4",native:"🇹🇴"}],version:2},"flag-tr":{id:"flag-tr",name:"Turkey Flag",keywords:["tr","nation","country","banner"],skins:[{unified:"1f1f9-1f1f7",native:"🇹🇷"}],version:2},"flag-tt":{id:"flag-tt",name:"Trinidad & Tobago Flag",keywords:["tt","nation","country","banner"],skins:[{unified:"1f1f9-1f1f9",native:"🇹🇹"}],version:2},"flag-tv":{id:"flag-tv",name:"Tuvalu Flag",keywords:["tv","nation","country","banner"],skins:[{unified:"1f1f9-1f1fb",native:"🇹🇻"}],version:2},"flag-tw":{id:"flag-tw",name:"Taiwan Flag",keywords:["tw","nation","country","banner"],skins:[{unified:"1f1f9-1f1fc",native:"🇹🇼"}],version:2},"flag-tz":{id:"flag-tz",name:"Tanzania Flag",keywords:["tz","united","republic","nation","country","banner"],skins:[{unified:"1f1f9-1f1ff",native:"🇹🇿"}],version:2},"flag-ua":{id:"flag-ua",name:"Ukraine Flag",keywords:["ua","nation","country","banner"],skins:[{unified:"1f1fa-1f1e6",native:"🇺🇦"}],version:2},"flag-ug":{id:"flag-ug",name:"Uganda Flag",keywords:["ug","nation","country","banner"],skins:[{unified:"1f1fa-1f1ec",native:"🇺🇬"}],version:2},"flag-um":{id:"flag-um",name:"U.s. Outlying Islands Flag",keywords:["um","u","s"],skins:[{unified:"1f1fa-1f1f2",native:"🇺🇲"}],version:2},"flag-un":{id:"flag-un",name:"United Nations Flag",keywords:["un","banner"],skins:[{unified:"1f1fa-1f1f3",native:"🇺🇳"}],version:4},us:{id:"us",name:"United States Flag",keywords:["us","america","nation","country","banner"],skins:[{unified:"1f1fa-1f1f8",native:"🇺🇸"}],version:1},"flag-uy":{id:"flag-uy",name:"Uruguay Flag",keywords:["uy","nation","country","banner"],skins:[{unified:"1f1fa-1f1fe",native:"🇺🇾"}],version:2},"flag-uz":{id:"flag-uz",name:"Uzbekistan Flag",keywords:["uz","nation","country","banner"],skins:[{unified:"1f1fa-1f1ff",native:"🇺🇿"}],version:2},"flag-va":{id:"flag-va",name:"Vatican City Flag",keywords:["va","nation","country","banner"],skins:[{unified:"1f1fb-1f1e6",native:"🇻🇦"}],version:2},"flag-vc":{id:"flag-vc",name:"St. Vincent & Grenadines Flag",keywords:["vc","st","saint","nation","country","banner"],skins:[{unified:"1f1fb-1f1e8",native:"🇻🇨"}],version:2},"flag-ve":{id:"flag-ve",name:"Venezuela Flag",keywords:["ve","bolivarian","republic","nation","country","banner"],skins:[{unified:"1f1fb-1f1ea",native:"🇻🇪"}],version:2},"flag-vg":{id:"flag-vg",name:"British Virgin Islands Flag",keywords:["vg","bvi","nation","country","banner"],skins:[{unified:"1f1fb-1f1ec",native:"🇻🇬"}],version:2},"flag-vi":{id:"flag-vi",name:"U.s. Virgin Islands Flag",keywords:["vi","u","s","us","nation","country","banner"],skins:[{unified:"1f1fb-1f1ee",native:"🇻🇮"}],version:2},"flag-vn":{id:"flag-vn",name:"Vietnam Flag",keywords:["vn","viet","nam","nation","country","banner"],skins:[{unified:"1f1fb-1f1f3",native:"🇻🇳"}],version:2},"flag-vu":{id:"flag-vu",name:"Vanuatu Flag",keywords:["vu","nation","country","banner"],skins:[{unified:"1f1fb-1f1fa",native:"🇻🇺"}],version:2},"flag-wf":{id:"flag-wf",name:"Wallis & Futuna Flag",keywords:["wf","nation","country","banner"],skins:[{unified:"1f1fc-1f1eb",native:"🇼🇫"}],version:2},"flag-ws":{id:"flag-ws",name:"Samoa Flag",keywords:["ws","nation","country","banner"],skins:[{unified:"1f1fc-1f1f8",native:"🇼🇸"}],version:2},"flag-xk":{id:"flag-xk",name:"Kosovo Flag",keywords:["xk","nation","country","banner"],skins:[{unified:"1f1fd-1f1f0",native:"🇽🇰"}],version:2},"flag-ye":{id:"flag-ye",name:"Yemen Flag",keywords:["ye","nation","country","banner"],skins:[{unified:"1f1fe-1f1ea",native:"🇾🇪"}],version:2},"flag-yt":{id:"flag-yt",name:"Mayotte Flag",keywords:["yt","nation","country","banner"],skins:[{unified:"1f1fe-1f1f9",native:"🇾🇹"}],version:2},"flag-za":{id:"flag-za",name:"South Africa Flag",keywords:["za","nation","country","banner"],skins:[{unified:"1f1ff-1f1e6",native:"🇿🇦"}],version:2},"flag-zm":{id:"flag-zm",name:"Zambia Flag",keywords:["zm","nation","country","banner"],skins:[{unified:"1f1ff-1f1f2",native:"🇿🇲"}],version:2},"flag-zw":{id:"flag-zw",name:"Zimbabwe Flag",keywords:["zw","nation","country","banner"],skins:[{unified:"1f1ff-1f1fc",native:"🇿🇼"}],version:2},"flag-england":{id:"flag-england",name:"England Flag",keywords:["english"],skins:[{unified:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",native:"🏴󠁧󠁢󠁥󠁮󠁧󠁿"}],version:5},"flag-scotland":{id:"flag-scotland",name:"Scotland Flag",keywords:["scottish"],skins:[{unified:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",native:"🏴󠁧󠁢󠁳󠁣󠁴󠁿"}],version:5},"flag-wales":{id:"flag-wales",name:"Wales Flag",keywords:["welsh"],skins:[{unified:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",native:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"}],version:5}},T2e={satisfied:"laughing",grinning_face_with_star_eyes:"star-struck",grinning_face_with_one_large_and_one_small_eye:"zany_face",smiling_face_with_smiling_eyes_and_hand_covering_mouth:"face_with_hand_over_mouth",face_with_finger_covering_closed_lips:"shushing_face",face_with_one_eyebrow_raised:"face_with_raised_eyebrow",face_with_open_mouth_vomiting:"face_vomiting",shocked_face_with_exploding_head:"exploding_head",serious_face_with_symbols_covering_mouth:"face_with_symbols_on_mouth",poop:"hankey",shit:"hankey",collision:"boom",raised_hand:"hand",hand_with_index_and_middle_fingers_crossed:"crossed_fingers",sign_of_the_horns:"the_horns",reversed_hand_with_middle_finger_extended:"middle_finger",thumbsup:"+1",thumbsdown:"-1",punch:"facepunch",mother_christmas:"mrs_claus",running:"runner","man-with-bunny-ears-partying":"men-with-bunny-ears-partying","woman-with-bunny-ears-partying":"women-with-bunny-ears-partying",women_holding_hands:"two_women_holding_hands",woman_and_man_holding_hands:"man_and_woman_holding_hands",couple:"man_and_woman_holding_hands",men_holding_hands:"two_men_holding_hands",paw_prints:"feet",flipper:"dolphin",honeybee:"bee",lady_beetle:"ladybug",cooking:"fried_egg",knife:"hocho",red_car:"car",sailboat:"boat",waxing_gibbous_moon:"moon",sun_small_cloud:"mostly_sunny",sun_behind_cloud:"barely_sunny",sun_behind_rain_cloud:"partly_sunny_rain",lightning_cloud:"lightning",tornado_cloud:"tornado",tshirt:"shirt",shoe:"mans_shoe",telephone:"phone",lantern:"izakaya_lantern",open_book:"book",envelope:"email",pencil:"memo",heavy_exclamation_mark:"exclamation",staff_of_aesculapius:"medical_symbol","flag-cn":"cn","flag-de":"de","flag-es":"es","flag-fr":"fr",uk:"gb","flag-gb":"gb","flag-it":"it","flag-jp":"jp","flag-kr":"kr","flag-ru":"ru","flag-us":"us"},I2e={cols:61,rows:61},aNe={categories:E2e,emojis:y2e,aliases:T2e,sheet:I2e};function K9(s){return s&&s.__esModule?s.default:s}function pn(s,e,t){return e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}var G0,ye,q9,bd,$9,lD,i1={},Q9=[],R2e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Uo(s,e){for(var t in e)s[t]=e[t];return s}function Z9(s){var e=s.parentNode;e&&e.removeChild(s)}function iO(s,e,t){var i,n,r,a={};for(r in e)r=="key"?i=e[r]:r=="ref"?n=e[r]:a[r]=e[r];if(arguments.length>2&&(a.children=arguments.length>3?G0.call(arguments,2):t),typeof s=="function"&&s.defaultProps!=null)for(r in s.defaultProps)a[r]===void 0&&(a[r]=s.defaultProps[r]);return Zp(s,a,i,n,null)}function Zp(s,e,t,i,n){var r={type:s,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:n??++q9};return n==null&&ye.vnode!=null&&ye.vnode(r),r}function qr(){return{current:null}}function hf(s){return s.children}function zr(s,e){this.props=s,this.context=e}function cf(s,e){if(e==null)return s.__?cf(s.__,s.__.__k.indexOf(s)+1):null;for(var t;e<s.__k.length;e++)if((t=s.__k[e])!=null&&t.__e!=null)return t.__e;return typeof s.type=="function"?cf(s):null}function J9(s){var e,t;if((s=s.__)!=null&&s.__c!=null){for(s.__e=s.__c.base=null,e=0;e<s.__k.length;e++)if((t=s.__k[e])!=null&&t.__e!=null){s.__e=s.__c.base=t.__e;break}return J9(s)}}function uD(s){(!s.__d&&(s.__d=!0)&&bd.push(s)&&!s1.__r++||lD!==ye.debounceRendering)&&((lD=ye.debounceRendering)||$9)(s1)}function s1(){for(var s;s1.__r=bd.length;)s=bd.sort(function(e,t){return e.__v.__b-t.__v.__b}),bd=[],s.some(function(e){var t,i,n,r,a,o;e.__d&&(a=(r=(t=e).__v).__e,(o=t.__P)&&(i=[],(n=Uo({},r)).__v=r.__v+1,G2(o,r,n,t.__n,o.ownerSVGElement!==void 0,r.__h!=null?[a]:null,i,a??cf(r),r.__h),sG(i,r),r.__e!=a&&J9(r)))})}function eG(s,e,t,i,n,r,a,o,l,u){var c,h,f,d,_,g,p,m=i&&i.__k||Q9,v=m.length;for(t.__k=[],c=0;c<e.length;c++)if((d=t.__k[c]=(d=e[c])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Zp(null,d,null,null,d):Array.isArray(d)?Zp(hf,{children:d},null,null,null):d.__b>0?Zp(d.type,d.props,d.key,null,d.__v):d)!=null){if(d.__=t,d.__b=t.__b+1,(f=m[c])===null||f&&d.key==f.key&&d.type===f.type)m[c]=void 0;else for(h=0;h<v;h++){if((f=m[h])&&d.key==f.key&&d.type===f.type){m[h]=void 0;break}f=null}G2(s,d,f=f||i1,n,r,a,o,l,u),_=d.__e,(h=d.ref)&&f.ref!=h&&(p||(p=[]),f.ref&&p.push(f.ref,null,d),p.push(h,d.__c||_,d)),_!=null?(g==null&&(g=_),typeof d.type=="function"&&d.__k===f.__k?d.__d=l=tG(d,l,s):l=iG(s,d,f,m,_,l),typeof t.type=="function"&&(t.__d=l)):l&&f.__e==l&&l.parentNode!=s&&(l=cf(f))}for(t.__e=g,c=v;c--;)m[c]!=null&&(typeof t.type=="function"&&m[c].__e!=null&&m[c].__e==t.__d&&(t.__d=cf(i,c+1)),rG(m[c],m[c]));if(p)for(c=0;c<p.length;c++)nG(p[c],p[++c],p[++c])}function tG(s,e,t){for(var i,n=s.__k,r=0;n&&r<n.length;r++)(i=n[r])&&(i.__=s,e=typeof i.type=="function"?tG(i,e,t):iG(t,i,i,n,i.__e,e));return e}function n1(s,e){return e=e||[],s==null||typeof s=="boolean"||(Array.isArray(s)?s.some(function(t){n1(t,e)}):e.push(s)),e}function iG(s,e,t,i,n,r){var a,o,l;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(t==null||n!=r||n.parentNode==null)e:if(r==null||r.parentNode!==s)s.appendChild(n),a=null;else{for(o=r,l=0;(o=o.nextSibling)&&l<i.length;l+=2)if(o==n)break e;s.insertBefore(n,r),a=r}return a!==void 0?a:n.nextSibling}function S2e(s,e,t,i,n){var r;for(r in t)r==="children"||r==="key"||r in e||r1(s,r,null,t[r],i);for(r in e)n&&typeof e[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||t[r]===e[r]||r1(s,r,e[r],t[r],i)}function hD(s,e,t){e[0]==="-"?s.setProperty(e,t):s[e]=t==null?"":typeof t!="number"||R2e.test(e)?t:t+"px"}function r1(s,e,t,i,n){var r;e:if(e==="style")if(typeof t=="string")s.style.cssText=t;else{if(typeof i=="string"&&(s.style.cssText=i=""),i)for(e in i)t&&e in t||hD(s.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||hD(s.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in s?e.toLowerCase().slice(2):e.slice(2),s.l||(s.l={}),s.l[e+r]=t,t?i||s.addEventListener(e,r?fD:cD,r):s.removeEventListener(e,r?fD:cD,r);else if(e!=="dangerouslySetInnerHTML"){if(n)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in s)try{s[e]=t??"";break e}catch{}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?s.setAttribute(e,t):s.removeAttribute(e))}}function cD(s){this.l[s.type+!1](ye.event?ye.event(s):s)}function fD(s){this.l[s.type+!0](ye.event?ye.event(s):s)}function G2(s,e,t,i,n,r,a,o,l){var u,c,h,f,d,_,g,p,m,v,E,y=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(l=t.__h,o=e.__e=t.__e,e.__h=null,r=[o]),(u=ye.__b)&&u(e);try{e:if(typeof y=="function"){if(p=e.props,m=(u=y.contextType)&&i[u.__c],v=u?m?m.props.value:u.__:i,t.__c?g=(c=e.__c=t.__c).__=c.__E:("prototype"in y&&y.prototype.render?e.__c=c=new y(p,v):(e.__c=c=new zr(p,v),c.constructor=y,c.render=A2e),m&&m.sub(c),c.props=p,c.state||(c.state={}),c.context=v,c.__n=i,h=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),y.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Uo({},c.__s)),Uo(c.__s,y.getDerivedStateFromProps(p,c.__s))),f=c.props,d=c.state,h)y.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y.getDerivedStateFromProps==null&&p!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(p,v),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(p,c.__s,v)===!1||e.__v===t.__v){c.props=p,c.state=c.__s,e.__v!==t.__v&&(c.__d=!1),c.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(T){T&&(T.__=e)}),c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(p,c.__s,v),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,d,_)})}c.context=v,c.props=p,c.state=c.__s,(u=ye.__r)&&u(e),c.__d=!1,c.__v=e,c.__P=s,u=c.render(c.props,c.state,c.context),c.state=c.__s,c.getChildContext!=null&&(i=Uo(Uo({},i),c.getChildContext())),h||c.getSnapshotBeforeUpdate==null||(_=c.getSnapshotBeforeUpdate(f,d)),E=u!=null&&u.type===hf&&u.key==null?u.props.children:u,eG(s,Array.isArray(E)?E:[E],e,t,i,n,r,a,o,l),c.base=e.__e,e.__h=null,c.__h.length&&a.push(c),g&&(c.__E=c.__=null),c.__e=!1}else r==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=b2e(t.__e,e,t,i,n,r,a,l);(u=ye.diffed)&&u(e)}catch(T){e.__v=null,(l||r!=null)&&(e.__e=o,e.__h=!!l,r[r.indexOf(o)]=null),ye.__e(T,e,t)}}function sG(s,e){ye.__c&&ye.__c(e,s),s.some(function(t){try{s=t.__h,t.__h=[],s.some(function(i){i.call(t)})}catch(i){ye.__e(i,t.__v)}})}function b2e(s,e,t,i,n,r,a,o){var l,u,c,h=t.props,f=e.props,d=e.type,_=0;if(d==="svg"&&(n=!0),r!=null){for(;_<r.length;_++)if((l=r[_])&&"setAttribute"in l==!!d&&(d?l.localName===d:l.nodeType===3)){s=l,r[_]=null;break}}if(s==null){if(d===null)return document.createTextNode(f);s=n?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),r=null,o=!1}if(d===null)h===f||o&&s.data===f||(s.data=f);else{if(r=r&&G0.call(s.childNodes),u=(h=t.props||i1).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!o){if(r!=null)for(h={},_=0;_<s.attributes.length;_++)h[s.attributes[_].name]=s.attributes[_].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===s.innerHTML)||(s.innerHTML=c&&c.__html||""))}if(S2e(s,f,h,n,o),c)e.__k=[];else if(_=e.props.children,eG(s,Array.isArray(_)?_:[_],e,t,i,n&&d!=="foreignObject",r,a,r?r[0]:t.__k&&cf(t,0),o),r!=null)for(_=r.length;_--;)r[_]!=null&&Z9(r[_]);o||("value"in f&&(_=f.value)!==void 0&&(_!==h.value||_!==s.value||d==="progress"&&!_)&&r1(s,"value",_,h.value,!1),"checked"in f&&(_=f.checked)!==void 0&&_!==s.checked&&r1(s,"checked",_,h.checked,!1))}return s}function nG(s,e,t){try{typeof s=="function"?s(e):s.current=e}catch(i){ye.__e(i,t)}}function rG(s,e,t){var i,n;if(ye.unmount&&ye.unmount(s),(i=s.ref)&&(i.current&&i.current!==s.__e||nG(i,null,e)),(i=s.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(r){ye.__e(r,e)}i.base=i.__P=null}if(i=s.__k)for(n=0;n<i.length;n++)i[n]&&rG(i[n],e,typeof s.type!="function");t||s.__e==null||Z9(s.__e),s.__e=s.__d=void 0}function A2e(s,e,t){return this.constructor(s,t)}function aG(s,e,t){var i,n,r;ye.__&&ye.__(s,e),n=(i=typeof t=="function")?null:t&&t.__k||e.__k,r=[],G2(e,s=(!i&&t||e).__k=iO(hf,null,[s]),n||i1,i1,e.ownerSVGElement!==void 0,!i&&t?[t]:n?null:e.firstChild?G0.call(e.childNodes):null,r,!i&&t?t:n?n.__e:e.firstChild,i),sG(r,s)}G0=Q9.slice,ye={__e:function(s,e){for(var t,i,n;e=e.__;)if((t=e.__c)&&!t.__)try{if((i=t.constructor)&&i.getDerivedStateFromError!=null&&(t.setState(i.getDerivedStateFromError(s)),n=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(s),n=t.__d),n)return t.__E=t}catch(r){s=r}throw s}},q9=0,zr.prototype.setState=function(s,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Uo({},this.state),typeof s=="function"&&(s=s(Uo({},t),this.props)),s&&Uo(t,s),s!=null&&this.__v&&(e&&this.__h.push(e),uD(this))},zr.prototype.forceUpdate=function(s){this.__v&&(this.__e=!0,s&&this.__h.push(s),uD(this))},zr.prototype.render=hf,bd=[],$9=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s1.__r=0;var O2e=0;function V(s,e,t,i,n){var r,a,o={};for(a in e)a=="ref"?r=e[a]:o[a]=e[a];var l={type:s,props:o,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--O2e,__source:i,__self:n};if(typeof s=="function"&&(r=s.defaultProps))for(a in r)o[a]===void 0&&(o[a]=r[a]);return ye.vnode&&ye.vnode(l),l}function w2e(s,e){try{window.localStorage[`emoji-mart.${s}`]=JSON.stringify(e)}catch{}}function C2e(s){try{const e=window.localStorage[`emoji-mart.${s}`];if(e)return JSON.parse(e)}catch{}}var $o={set:w2e,get:C2e};const FT=new Map,M2e=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶‍🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑‍🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱‍♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function N2e(){for(const{v:s,emoji:e}of M2e)if(oG(e))return s}function P2e(){return!oG("🇨🇦")}function oG(s){if(FT.has(s))return FT.get(s);const e=k2e(s);return FT.set(s,e),e}const k2e=(()=>{let s=null;try{navigator.userAgent.includes("jsdom")||(s=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!s)return()=>!1;const e=25,t=20,i=Math.floor(e/2);return s.font=i+"px Arial, Sans-Serif",s.textBaseline="top",s.canvas.width=t*2,s.canvas.height=e,n=>{s.clearRect(0,0,t*2,e),s.fillStyle="#FF0000",s.fillText(n,0,22),s.fillStyle="#0000FF",s.fillText(n,t,22);const r=s.getImageData(0,0,t,e).data,a=r.length;let o=0;for(;o<a&&!r[o+3];o+=4);if(o>=a)return!1;const l=t+o/4%t,u=Math.floor(o/4/t),c=s.getImageData(l,u,1,1).data;return!(r[o]!==c[0]||r[o+2]!==c[2]||s.measureText(n).width>=t)}})();var dD={latestVersion:N2e,noCountryFlags:P2e};const sO=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let Gi=null;function x2e(s){Gi||(Gi=$o.get("frequently")||{});const e=s.id||s;e&&(Gi[e]||(Gi[e]=0),Gi[e]+=1,$o.set("last",e),$o.set("frequently",Gi))}function D2e({maxFrequentRows:s,perLine:e}){if(!s)return[];Gi||(Gi=$o.get("frequently"));let t=[];if(!Gi){Gi={};for(let r in sO.slice(0,e)){const a=sO[r];Gi[a]=e-r,t.push(a)}return t}const i=s*e,n=$o.get("last");for(let r in Gi)t.push(r);if(t.sort((r,a)=>{const o=Gi[a],l=Gi[r];return o==l?r.localeCompare(a):o-l}),t.length>i){const r=t.slice(i);t=t.slice(0,i);for(let a of r)a!=n&&delete Gi[a];n&&t.indexOf(n)==-1&&(delete Gi[t[t.length-1]],t.splice(-1,1,n)),$o.set("frequently",Gi)}return t}var lG={add:x2e,get:D2e,DEFAULTS:sO},uG={};uG=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldnt be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Ea={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Ki=null,Ke=null;const BT={};async function _D(s){if(BT[s])return BT[s];const t=await(await fetch(s)).json();return BT[s]=t,t}let GT=null,hG=null,cG=!1;function V0(s,{caller:e}={}){return GT||(GT=new Promise(t=>{hG=t})),s?L2e(s):e&&!cG&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),GT}async function L2e(s){cG=!0;let{emojiVersion:e,set:t,locale:i}=s;if(e||(e=Ea.emojiVersion.value),t||(t=Ea.set.value),i||(i=Ea.locale.value),Ke)Ke.categories=Ke.categories.filter(l=>!l.name);else{Ke=(typeof s.data=="function"?await s.data():s.data)||await _D(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${t}.json`),Ke.emoticons={},Ke.natives={},Ke.categories.unshift({id:"frequent",emojis:[]});for(const l in Ke.aliases){const u=Ke.aliases[l],c=Ke.emojis[u];c&&(c.aliases||(c.aliases=[]),c.aliases.push(l))}Ke.originalCategories=Ke.categories}if(Ki=(typeof s.i18n=="function"?await s.i18n():s.i18n)||(i=="en"?K9(uG):await _D(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),s.custom)for(let l in s.custom){l=parseInt(l);const u=s.custom[l],c=s.custom[l-1];if(!(!u.emojis||!u.emojis.length)){u.id||(u.id=`custom_${l+1}`),u.name||(u.name=Ki.categories.custom),c&&!u.icon&&(u.target=c.target||c),Ke.categories.push(u);for(const h of u.emojis)Ke.emojis[h.id]=h}}s.categories&&(Ke.categories=Ke.originalCategories.filter(l=>s.categories.indexOf(l.id)!=-1).sort((l,u)=>{const c=s.categories.indexOf(l.id),h=s.categories.indexOf(u.id);return c-h}));let n=null,r=null;t=="native"&&(n=dD.latestVersion(),r=s.noCountryFlags||dD.noCountryFlags());let a=Ke.categories.length,o=!1;for(;a--;){const l=Ke.categories[a];if(l.id=="frequent"){let{maxFrequentRows:h,perLine:f}=s;h=h>=0?h:Ea.maxFrequentRows.value,f||(f=Ea.perLine.value),l.emojis=lG.get({maxFrequentRows:h,perLine:f})}if(!l.emojis||!l.emojis.length){Ke.categories.splice(a,1);continue}const{categoryIcons:u}=s;if(u){const h=u[l.id];h&&!l.icon&&(l.icon=h)}let c=l.emojis.length;for(;c--;){const h=l.emojis[c],f=h.id?h:Ke.emojis[h],d=()=>{l.emojis.splice(c,1)};if(!f||s.exceptEmojis&&s.exceptEmojis.includes(f.id)){d();continue}if(n&&f.version>n){d();continue}if(r&&l.id=="flags"&&!V2e.includes(f.id)){d();continue}if(!f.search){if(o=!0,f.search=","+[[f.id,!1],[f.name,!0],[f.keywords,!1],[f.emoticons,!1]].map(([g,p])=>{if(g)return(Array.isArray(g)?g:[g]).map(m=>(p?m.split(/[-|_|\s]+/):[m]).map(v=>v.toLowerCase())).flat()}).flat().filter(g=>g&&g.trim()).join(","),f.emoticons)for(const g of f.emoticons)Ke.emoticons[g]||(Ke.emoticons[g]=f.id);let _=0;for(const g of f.skins){if(!g)continue;_++;const{native:p}=g;p&&(Ke.natives[p]=f.id,f.search+=`,${p}`);const m=_==1?"":`:skin-tone-${_}:`;g.shortcodes=`:${f.id}:${m}`}}}}o&&Dc.reset(),hG()}function fG(s,e,t){s||(s={});const i={};for(let n in e)i[n]=dG(n,s,e,t);return i}function dG(s,e,t,i){const n=t[s];let r=i&&i.getAttribute(s)||(e[s]!=null&&e[s]!=null?e[s]:null);return n&&(r!=null&&n.value&&typeof n.value!=typeof r&&(typeof n.value=="boolean"?r=r!="false":r=n.value.constructor(r)),n.transform&&r&&(r=n.transform(r)),(r==null||n.choices&&n.choices.indexOf(r)==-1)&&(r=n.value)),r}const U2e=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let nO=null;function F2e(s){return s.id?s:Ke.emojis[s]||Ke.emojis[Ke.aliases[s]]||Ke.emojis[Ke.natives[s]]}function B2e(){nO=null}async function G2e(s,{maxResults:e,caller:t}={}){if(!s||!s.trim().length)return null;e||(e=90),await V0(null,{caller:t||"SearchIndex.search"});const i=s.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((o,l,u)=>o.trim()&&u.indexOf(o)==l);if(!i.length)return;let n=nO||(nO=Object.values(Ke.emojis)),r,a;for(const o of i){if(!n.length)break;r=[],a={};for(const l of n){if(!l.search)continue;const u=l.search.indexOf(`,${o}`);u!=-1&&(r.push(l),a[l.id]||(a[l.id]=0),a[l.id]+=l.id==o?0:u+1)}n=r}return r.length<2||(r.sort((o,l)=>{const u=a[o.id],c=a[l.id];return u==c?o.id.localeCompare(l.id):u-c}),r.length>e&&(r=r.slice(0,e))),r}var Dc={search:G2e,get:F2e,reset:B2e,SHORTCODES_REGEX:U2e};const V2e=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function j2e(s,e){return Array.isArray(s)&&Array.isArray(e)&&s.length===e.length&&s.every((t,i)=>t==e[i])}async function z2e(s=1){for(let e in[...Array(s).keys()])await new Promise(requestAnimationFrame)}function H2e(s,{skinIndex:e=0}={}){const t=s.skins[e]||(e=0,s.skins[e]),i={id:s.id,name:s.name,native:t.native,unified:t.unified,keywords:s.keywords,shortcodes:t.shortcodes||s.shortcodes};return s.skins.length>1&&(i.skin=e+1),t.src&&(i.src=t.src),s.aliases&&s.aliases.length&&(i.aliases=s.aliases),s.emoticons&&s.emoticons.length&&(i.emoticons=s.emoticons),i}const W2e={activity:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:V("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:V("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:V("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:V("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:V("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:V("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:V("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[V("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),V("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:V("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[V("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),V("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:V("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[V("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),V("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:V("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[V("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),V("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:V("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[V("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),V("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:V("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:V("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:V("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},Y2e={loupe:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:V("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:V("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var a1={categories:W2e,search:Y2e};function rO(s){let{id:e,skin:t,emoji:i}=s;if(s.shortcodes){const o=s.shortcodes.match(Dc.SHORTCODES_REGEX);o&&(e=o[1],o[2]&&(t=o[2]))}if(i||(i=Dc.get(e||s.native)),!i)return s.fallback;const n=i.skins[t-1]||i.skins[0],r=n.src||(s.set!="native"&&!s.spritesheet?typeof s.getImageURL=="function"?s.getImageURL(s.set,n.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${s.set}@15.0.1/img/${s.set}/64/${n.unified}.png`:void 0),a=typeof s.getSpritesheetURL=="function"?s.getSpritesheetURL(s.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${s.set}@15.0.1/img/${s.set}/sheets-256/64.png`;return V("span",{class:"emoji-mart-emoji","data-emoji-set":s.set,children:r?V("img",{style:{maxWidth:s.size||"1em",maxHeight:s.size||"1em",display:"inline-block"},alt:n.native||n.shortcodes,src:r}):s.set=="native"?V("span",{style:{fontSize:s.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:n.native}):V("span",{style:{display:"block",width:s.size,height:s.size,backgroundImage:`url(${a})`,backgroundSize:`${100*Ke.sheet.cols}% ${100*Ke.sheet.rows}%`,backgroundPosition:`${100/(Ke.sheet.cols-1)*n.x}% ${100/(Ke.sheet.rows-1)*n.y}%`}})})}const X2e=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class _G extends X2e{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,i){if(!this.component)return;const n=dG(e,{[e]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:n}):(this.component.props[e]=n,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const i=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),i&&i.appendChild(this)}}}class K2e extends _G{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var gG={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:s=>/\D/.test(s)?s:`${s}px`},set:Ea.set,skin:Ea.skin};class pG extends _G{async connectedCallback(){const e=fG(this.props,gG,this);e.element=this,e.ref=t=>{this.component=t},await V0(),!this.disconnected&&aG(V(rO,{...e}),this)}constructor(e){super(e)}}pn(pG,"Props",gG);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",pG);var gD,aO=[],pD=ye.__b,mD=ye.__r,vD=ye.diffed,ED=ye.__c,yD=ye.unmount;function q2e(){var s;for(aO.sort(function(e,t){return e.__v.__b-t.__v.__b});s=aO.pop();)if(s.__P)try{s.__H.__h.forEach(Jp),s.__H.__h.forEach(oO),s.__H.__h=[]}catch(e){s.__H.__h=[],ye.__e(e,s.__v)}}ye.__b=function(s){pD&&pD(s)},ye.__r=function(s){mD&&mD(s);var e=s.__c.__H;e&&(e.__h.forEach(Jp),e.__h.forEach(oO),e.__h=[])},ye.diffed=function(s){vD&&vD(s);var e=s.__c;e&&e.__H&&e.__H.__h.length&&(aO.push(e)!==1&&gD===ye.requestAnimationFrame||((gD=ye.requestAnimationFrame)||function(t){var i,n=function(){clearTimeout(r),TD&&cancelAnimationFrame(i),setTimeout(t)},r=setTimeout(n,100);TD&&(i=requestAnimationFrame(n))})(q2e))},ye.__c=function(s,e){e.some(function(t){try{t.__h.forEach(Jp),t.__h=t.__h.filter(function(i){return!i.__||oO(i)})}catch(i){e.some(function(n){n.__h&&(n.__h=[])}),e=[],ye.__e(i,t.__v)}}),ED&&ED(s,e)},ye.unmount=function(s){yD&&yD(s);var e,t=s.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Jp(i)}catch(n){e=n}}),e&&ye.__e(e,t.__v))};var TD=typeof requestAnimationFrame=="function";function Jp(s){var e=s.__c;typeof e=="function"&&(s.__c=void 0,e())}function oO(s){s.__c=s.__()}function $2e(s,e){for(var t in e)s[t]=e[t];return s}function ID(s,e){for(var t in s)if(t!=="__source"&&!(t in e))return!0;for(var i in e)if(i!=="__source"&&s[i]!==e[i])return!0;return!1}function o1(s){this.props=s}(o1.prototype=new zr).isPureReactComponent=!0,o1.prototype.shouldComponentUpdate=function(s,e){return ID(this.props,s)||ID(this.state,e)};var RD=ye.__b;ye.__b=function(s){s.type&&s.type.__f&&s.ref&&(s.props.ref=s.ref,s.ref=null),RD&&RD(s)};var Q2e=ye.__e;ye.__e=function(s,e,t){if(s.then){for(var i,n=e;n=n.__;)if((i=n.__c)&&i.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),i.__c(s,e)}Q2e(s,e,t)};var SD=ye.unmount;function VT(){this.__u=0,this.t=null,this.__b=null}function mG(s){var e=s.__.__c;return e&&e.__e&&e.__e(s)}function Sp(){this.u=null,this.o=null}ye.unmount=function(s){var e=s.__c;e&&e.__R&&e.__R(),e&&s.__h===!0&&(s.type=null),SD&&SD(s)},(VT.prototype=new zr).__c=function(s,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var n=mG(i.__v),r=!1,a=function(){r||(r=!0,t.__R=null,n?n(o):o())};t.__R=a;var o=function(){if(!--i.__u){if(i.state.__e){var u=i.state.__e;i.__v.__k[0]=function h(f,d,_){return f&&(f.__v=null,f.__k=f.__k&&f.__k.map(function(g){return h(g,d,_)}),f.__c&&f.__c.__P===d&&(f.__e&&_.insertBefore(f.__e,f.__d),f.__c.__e=!0,f.__c.__P=_)),f}(u,u.__c.__P,u.__c.__O)}var c;for(i.setState({__e:i.__b=null});c=i.t.pop();)c.forceUpdate()}},l=e.__h===!0;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),s.then(a,a)},VT.prototype.componentWillUnmount=function(){this.t=[]},VT.prototype.render=function(s,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function r(a,o,l){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),a.__c.__H=null),(a=$2e({},a)).__c!=null&&(a.__c.__P===l&&(a.__c.__P=o),a.__c=null),a.__k=a.__k&&a.__k.map(function(u){return r(u,o,l)})),a}(this.__b,t,i.__O=i.__P)}this.__b=null}var n=e.__e&&iO(hf,null,s.fallback);return n&&(n.__h=null),[iO(hf,null,e.__e?null:s.children),n]};var bD=function(s,e,t){if(++t[1]===t[0]&&s.o.delete(e),s.props.revealOrder&&(s.props.revealOrder[0]!=="t"||!s.o.size))for(t=s.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;s.u=t=t[2]}};(Sp.prototype=new zr).__e=function(s){var e=this,t=mG(e.__v),i=e.o.get(s);return i[0]++,function(n){var r=function(){e.props.revealOrder?(i.push(n),bD(e,s,i)):n()};t?t(r):r()}},Sp.prototype.render=function(s){this.u=null,this.o=new Map;var e=n1(s.children);s.revealOrder&&s.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return s.children},Sp.prototype.componentDidUpdate=Sp.prototype.componentDidMount=function(){var s=this;this.o.forEach(function(e,t){bD(s,t,e)})};var Z2e=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,J2e=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,eCe=typeof document<"u",tCe=function(s){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(s)};zr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(s){Object.defineProperty(zr.prototype,s,{configurable:!0,get:function(){return this["UNSAFE_"+s]},set:function(e){Object.defineProperty(this,s,{configurable:!0,writable:!0,value:e})}})});var AD=ye.event;function iCe(){}function sCe(){return this.cancelBubble}function nCe(){return this.defaultPrevented}ye.event=function(s){return AD&&(s=AD(s)),s.persist=iCe,s.isPropagationStopped=sCe,s.isDefaultPrevented=nCe,s.nativeEvent=s};var OD={configurable:!0,get:function(){return this.class}},wD=ye.vnode;ye.vnode=function(s){var e=s.type,t=s.props,i=t;if(typeof e=="string"){var n=e.indexOf("-")===-1;for(var r in i={},t){var a=t[r];eCe&&r==="children"&&e==="noscript"||r==="value"&&"defaultValue"in t&&a==null||(r==="defaultValue"&&"value"in t&&t.value==null?r="value":r==="download"&&a===!0?a="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+e)&&!tCe(t.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():n&&J2e.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():a===null&&(a=void 0),i[r]=a)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=n1(t.children).forEach(function(o){o.props.selected=i.value.indexOf(o.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=n1(t.children).forEach(function(o){o.props.selected=i.multiple?i.defaultValue.indexOf(o.props.value)!=-1:i.defaultValue==o.props.value})),s.props=i,t.class!=t.className&&(OD.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",OD))}s.$$typeof=Z2e,wD&&wD(s)};var CD=ye.__r;ye.__r=function(s){CD&&CD(s),s.__c};const rCe={light:"outline",dark:"solid"};class aCe extends o1{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return V("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return V("img",{src:t.src})}const i=a1.categories[e.id]||a1.categories.custom,n=this.props.icons=="auto"?rCe[this.props.theme]:this.props.icons;return i[n]||i}render(){let e=null;return V("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:V("div",{class:"flex relative",children:[this.categories.map((t,i)=>{const n=t.name||Ki.categories[t.id],r=!this.props.unfocused&&t.id==this.state.categoryId;return r&&(e=i),V("button",{"aria-label":n,"aria-selected":r||void 0,title:n,type:"button",class:"flex flex-grow flex-center",onMouseDown:a=>a.preventDefault(),onClick:()=>{this.props.onClick({category:t,i})},children:this.renderIcon(t)})}),V("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=Ke.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class oCe extends o1{shouldComponentUpdate(e){for(let t in e)if(t!="children"&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const bp={rowsPerRender:10};class lCe extends zr{getInitialState(e=this.props){return{skin:$o.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=Ki.rtl?"rtl":"ltr",this.refs={menu:qr(),navigation:qr(),scroll:qr(),search:qr(),searchInput:qr(),skinToneButton:qr(),skinToneRadio:qr()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const t in e)this.nextState[t]=e[t];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let t=!1;for(const n in this.nextState)this.props[n]=this.nextState[n],(n==="custom"||n==="categories")&&(t=!0);delete this.nextState;const i=this.getInitialState();if(t)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(e={}){await V0(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const t of this.observers)e.includes(t)||t.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=Ke;this.refs.categories=new Map;const t=Ke.categories.map(n=>n.id).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const i=(n,r)=>{const a=[];a.__categoryId=r.id,a.__index=n.length,this.grid.push(a);const o=this.grid.length-1,l=o%bp.rowsPerRender?{}:qr();return l.index=o,l.posinset=this.grid.setsize+1,n.push(l),a};for(let n of e){const r=[];let a=i(r,n);for(let o of n.emojis)a.length==this.getPerLine()&&(a=i(r,n)),this.grid.setsize+=1,a.push(o);this.refs.categories.set(n.id,{root:qr(),rows:r})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:t,emojiButtonSize:i}=e,n=()=>{const{width:a}=t.getBoundingClientRect();return Math.floor(a/i)},r=new ResizeObserver(()=>{this.unobserve({except:r}),this.setState({perLine:n()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return r.observe(t),this.observers.push(r),n()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,t]){const i=this.state.searchResults||this.grid,n=i[e]&&i[e][t];if(n)return Dc.get(n)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,i=a=>{a!=e.state.categoryId&&e.setState({categoryId:a})},n={root:this.refs.scroll.current,threshold:[0,1]},r=new IntersectionObserver(a=>{for(const l of a){const u=l.target.dataset.id;t.set(u,l.intersectionRatio)}const o=[...t];for(const[l,u]of o)if(u){i(l);break}},n);for(const{root:a}of this.refs.categories.values())r.observe(a.current);this.observers.push(r)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver(i=>{for(const n of i){const r=parseInt(n.target.dataset.index);n.isIntersecting?e[r]=!0:delete e[r]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(bp.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*bp.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const n of i)n.current&&t.observe(n.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:t,left:i,right:n,up:r,down:a}){const o=this.state.searchResults||this.grid;if(!o.length)return;let[l,u]=this.state.pos;const c=(()=>{if(l==0&&u==0&&!e.repeat&&(i||r))return null;if(l==-1)return!e.repeat&&(n||a)&&t.selectionStart==t.value.length?[0,0]:null;if(i||n){let h=o[l];const f=i?-1:1;if(u+=f,!h[u]){if(l+=f,h=o[l],!h)return l=i?0:o.length-1,u=i?0:o[l].length-1,[l,u];u=i?h.length-1:0}return[l,u]}if(r||a){l+=r?-1:1;const h=o[l];return h?(h[u]||(u=h.length-1),[l,u]):(l=r?0:o.length-1,u=r?0:o[l].length-1,[l,u])}})();if(c)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:c,keyboard:!0},()=>{this.scrollTo({row:c[0]})})}scrollTo({categoryId:e,row:t}){const i=this.state.searchResults||this.grid;if(!i.length)return;const n=this.refs.scroll.current,r=n.getBoundingClientRect();let a=0;if(t>=0&&(e=i[t].__categoryId),e&&(a=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(r.top-n.scrollTop)+1),t>=0)if(!t)a=0;else{const o=i[t].__index,l=a+o*this.props.emojiButtonSize,u=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(l<n.scrollTop)a=l;else if(u>n.scrollTop+r.height)a=u-r.height;else return}this.ignoreMouse(),n.scrollTop=a}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:t,pos:i}){if(this.props.onEmojiSelect&&(!t&&i&&(t=this.getEmojiByPos(i)),t)){const n=H2e(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&lG.add(n,this.props),this.props.onEmojiSelect(n,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),$o.set("skin",e)}renderNav(){return V(aCe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return V("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[V("div",{class:"flex flex-middle flex-grow",children:[V("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:V(rO,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),V("div",{class:`margin-${this.dir[0]}`,children:e||t?V("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[V("div",{class:"preview-title ellipsis",children:e?e.name:Ki.search_no_results_1}),V("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:Ki.search_no_results_2})]}):V("div",{class:"preview-placeholder color-c",children:Ki.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:i,grid:n}){const r=this.props.emojiButtonSize,a=this.state.tempSkin||this.state.skin,l=(e.skins[a-1]||e.skins[0]).native,u=j2e(this.state.pos,t),c=t.concat(e.id).join("");return V(oCe,{selected:u,skin:a,size:r,children:V("button",{"aria-label":l,"aria-selected":u||void 0,"aria-posinset":i,"aria-setsize":n.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:h=>this.handleEmojiClick({e:h,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[V("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),V(rO,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:a,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},c)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return V("div",{children:[V("div",{class:"spacer"}),V("div",{class:"flex flex-middle",children:[V("div",{class:"search relative flex-grow",children:[V("input",{type:"search",ref:this.refs.searchInput,placeholder:Ki.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),V("span",{class:"icon loupe flex",children:a1.search.loupe}),this.state.searchResults&&V("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:a1.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?V("div",{class:"category",ref:this.refs.search,children:[V("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ki.categories.search}),V("div",{children:e.length?e.map((t,i)=>V("div",{class:"flex",children:t.map((n,r)=>this.renderEmojiButton(n,{pos:[i,r],posinset:i*this.props.perLine+r+1,grid:e}))})):V("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&V("a",{onClick:this.props.onAddCustomEmoji,children:Ki.add_custom})})})]}):null}renderCategories(){const{categories:e}=Ke,t=!!this.state.searchResults,i=this.getPerLine();return V("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0,height:"100%"},children:e.map(n=>{const{root:r,rows:a}=this.refs.categories.get(n.id);return V("div",{"data-id":n.target?n.target.id:n.id,class:"category",ref:r,children:[V("div",{class:`sticky padding-small align-${this.dir[0]}`,children:n.name||Ki.categories[n.id]}),V("div",{class:"relative",style:{height:a.length*this.props.emojiButtonSize},children:a.map((o,l)=>{const u=o.index-o.index%bp.rowsPerRender,c=this.state.visibleRows[u],h="current"in o?o:void 0;if(!c&&!h)return null;const f=l*i,d=f+i,_=n.emojis.slice(f,d);return _.length<i&&_.push(...new Array(i-_.length)),V("div",{"data-index":o.index,ref:h,class:"flex row",style:{top:l*this.props.emojiButtonSize},children:c&&_.map((g,p)=>{if(!g)return V("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const m=Dc.get(g);return this.renderEmojiButton(m,{pos:[o.index,p],posinset:o.posinset+p,grid:this.grid})})},o.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:V("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:V("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ki.skins.choose,title:Ki.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:V("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),t=e?e.name:"";return V("div",{"aria-live":"polite",class:"sr-only",children:t})}renderSkins(){const t=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),n={};return this.dir=="ltr"?n.right=i.right-t.right-3:n.left=t.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?n.bottom=i.bottom-t.top+6:(n.top=t.bottom-i.top+3,n.bottom="auto"),V("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ki.skins.choose,class:"menu hidden","data-position":n.top?"top":"bottom",style:n,children:[...Array(6).keys()].map(r=>{const a=r+1,o=this.state.skin==a;return V("div",{children:[V("input",{type:"radio",name:"skin-tone",value:a,"aria-label":Ki.skins[a],ref:o?this.refs.skinToneRadio:null,defaultChecked:o,onChange:()=>this.handleSkinMouseOver(a),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(a))}}),V("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(a),onMouseEnter:()=>this.handleSkinMouseOver(a),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[V("span",{class:`skin-tone skin-tone-${a}`}),V("span",{class:"margin-small-lr",children:Ki.skins[a]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return V("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&V("div",{class:"padding-lr",children:this.renderSearch()}),V("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:V("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),pn(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),pn(this,"handleClickOutside",t=>{const{element:i}=this.props;t.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(t))}),pn(this,"handleBaseClick",t=>{this.state.showSkins&&(t.target.closest(".menu")||(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins()))}),pn(this,"handleBaseKeydown",t=>{this.state.showSkins&&t.key=="Escape"&&(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins())}),pn(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),pn(this,"handleSearchInput",async()=>{const t=this.refs.searchInput.current;if(!t)return;const{value:i}=t,n=await Dc.search(i),r=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!n)return this.setState({searchResults:n,pos:[-1,-1]},r);const a=t.selectionStart==t.value.length?[0,0]:[-1,-1],o=[];o.setsize=n.length;let l=null;for(let u of n)(!o.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=o.length,o.push(l)),l.push(u);this.ignoreMouse(),this.setState({searchResults:o,pos:a},r)}),pn(this,"handleSearchKeyDown",t=>{const i=t.currentTarget;switch(t.stopImmediatePropagation(),t.key){case"ArrowLeft":this.navigate({e:t,input:i,left:!0});break;case"ArrowRight":this.navigate({e:t,input:i,right:!0});break;case"ArrowUp":this.navigate({e:t,input:i,up:!0});break;case"ArrowDown":this.navigate({e:t,input:i,down:!0});break;case"Enter":t.preventDefault(),this.handleEmojiClick({e:t,pos:this.state.pos});break;case"Escape":t.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),pn(this,"clearSearch",()=>{const t=this.refs.searchInput.current;t&&(t.value="",t.focus(),this.handleSearchInput())}),pn(this,"handleCategoryClick",({category:t,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:t.id})}),pn(this,"openSkins",t=>{const{currentTarget:i}=t,n=i.getBoundingClientRect();this.setState({showSkins:n},async()=>{await z2e(2);const r=this.refs.menu.current;r&&(r.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class V2 extends K2e{async connectedCallback(){const e=fG(this.props,Ea,this);e.element=this,e.ref=t=>{this.component=t},await V0(e),!this.disconnected&&aG(V(lCe,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:K9(vG)})}}pn(V2,"Props",Ea);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",V2);var vG={};vG=`:host {
width: min-content;
height: 435px;
min-height: 230px;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
--border-radius: 10px;
--category-icon-size: 18px;
--font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
--font-size: 15px;
--preview-placeholder-size: 21px;
--preview-title-size: 1.1em;
--preview-subtitle-size: .9em;
--shadow-color: 0deg 0% 0%;
--shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14);
display: flex;
}
[data-theme="light"] {
--em-rgb-color: var(--rgb-color, 34, 36, 39);
--em-rgb-accent: var(--rgb-accent, 34, 102, 237);
--em-rgb-background: var(--rgb-background, 255, 255, 255);
--em-rgb-input: var(--rgb-input, 255, 255, 255);
--em-color-border: var(--color-border, rgba(0, 0, 0, .05));
--em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));
}
[data-theme="dark"] {
--em-rgb-color: var(--rgb-color, 222, 222, 221);
--em-rgb-accent: var(--rgb-accent, 58, 130, 247);
--em-rgb-background: var(--rgb-background, 21, 22, 23);
--em-rgb-input: var(--rgb-input, 0, 0, 0);
--em-color-border: var(--color-border, rgba(255, 255, 255, .1));
--em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));
}
#root {
--color-a: rgb(var(--em-rgb-color));
--color-b: rgba(var(--em-rgb-color), .65);
--color-c: rgba(var(--em-rgb-color), .45);
--padding: 12px;
--padding-small: calc(var(--padding) / 2);
--sidebar-width: 16px;
--duration: 225ms;
--duration-fast: 125ms;
--duration-instant: 50ms;
--easing: cubic-bezier(.4, 0, .2, 1);
width: 100%;
text-align: left;
border-radius: var(--border-radius);
background-color: rgb(var(--em-rgb-background));
position: relative;
}
@media (prefers-reduced-motion) {
#root {
--duration: 0;
--duration-fast: 0;
--duration-instant: 0;
}
}
#root[data-menu] button {
cursor: auto;
}
#root[data-menu] .menu button {
cursor: pointer;
}
:host, #root, input, button {
color: rgb(var(--em-rgb-color));
font-family: var(--font-family);
font-size: var(--font-size);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
line-height: normal;
}
*, :before, :after {
box-sizing: border-box;
min-width: 0;
margin: 0;
padding: 0;
}
.relative {
position: relative;
}
.flex {
display: flex;
}
.flex-auto {
flex: none;
}
.flex-center {
justify-content: center;
}
.flex-column {
flex-direction: column;
}
.flex-grow {
flex: auto;
}
.flex-middle {
align-items: center;
}
.flex-wrap {
flex-wrap: wrap;
}
.padding {
padding: var(--padding);
}
.padding-t {
padding-top: var(--padding);
}
.padding-lr {
padding-left: var(--padding);
padding-right: var(--padding);
}
.padding-r {
padding-right: var(--padding);
}
.padding-small {
padding: var(--padding-small);
}
.padding-small-b {
padding-bottom: var(--padding-small);
}
.padding-small-lr {
padding-left: var(--padding-small);
padding-right: var(--padding-small);
}
.margin {
margin: var(--padding);
}
.margin-r {
margin-right: var(--padding);
}
.margin-l {
margin-left: var(--padding);
}
.margin-small-l {
margin-left: var(--padding-small);
}
.margin-small-lr {
margin-left: var(--padding-small);
margin-right: var(--padding-small);
}
.align-l {
text-align: left;
}
.align-r {
text-align: right;
}
.color-a {
color: var(--color-a);
}
.color-b {
color: var(--color-b);
}
.color-c {
color: var(--color-c);
}
.ellipsis {
white-space: nowrap;
max-width: 100%;
width: auto;
text-overflow: ellipsis;
overflow: hidden;
}
.sr-only {
width: 1px;
height: 1px;
position: absolute;
top: auto;
left: -10000px;
overflow: hidden;
}
a {
cursor: pointer;
color: rgb(var(--em-rgb-accent));
}
a:hover {
text-decoration: underline;
}
.spacer {
height: 10px;
}
[dir="rtl"] .scroll {
padding-left: 0;
padding-right: var(--padding);
}
.scroll {
padding-right: 0;
overflow-x: hidden;
overflow-y: auto;
}
.scroll::-webkit-scrollbar {
width: var(--sidebar-width);
height: var(--sidebar-width);
}
.scroll::-webkit-scrollbar-track {
border: 0;
}
.scroll::-webkit-scrollbar-button {
width: 0;
height: 0;
display: none;
}
.scroll::-webkit-scrollbar-corner {
background-color: rgba(0, 0, 0, 0);
}
.scroll::-webkit-scrollbar-thumb {
min-height: 20%;
min-height: 65px;
border: 4px solid rgb(var(--em-rgb-background));
border-radius: 8px;
}
.scroll::-webkit-scrollbar-thumb:hover {
background-color: var(--em-color-border-over) !important;
}
.scroll:hover::-webkit-scrollbar-thumb {
background-color: var(--em-color-border);
}
.sticky {
z-index: 1;
background-color: rgba(var(--em-rgb-background), .9);
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
font-weight: 500;
position: sticky;
top: -1px;
}
[dir="rtl"] .search input[type="search"] {
padding: 10px 2.2em 10px 2em;
}
[dir="rtl"] .search .loupe {
left: auto;
right: .7em;
}
[dir="rtl"] .search .delete {
left: .7em;
right: auto;
}
.search {
z-index: 2;
position: relative;
}
.search input, .search button {
font-size: calc(var(--font-size) - 1px);
}
.search input[type="search"] {
width: 100%;
background-color: var(--em-color-border);
transition-duration: var(--duration);
transition-property: background-color, box-shadow;
transition-timing-function: var(--easing);
border: 0;
border-radius: 10px;
outline: 0;
padding: 10px 2em 10px 2.2em;
display: block;
}
.search input[type="search"]::-ms-input-placeholder {
color: inherit;
opacity: .6;
}
.search input[type="search"]::placeholder {
color: inherit;
opacity: .6;
}
.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration {
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
}
.search input[type="search"]:focus {
background-color: rgb(var(--em-rgb-input));
box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2);
}
.search .icon {
z-index: 1;
color: rgba(var(--em-rgb-color), .7);
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.search .loupe {
pointer-events: none;
left: .7em;
}
.search .delete {
right: .7em;
}
svg {
fill: currentColor;
width: 1em;
height: 1em;
}
button {
-webkit-appearance: none;
-ms-appearance: none;
appearance: none;
cursor: pointer;
color: currentColor;
background-color: rgba(0, 0, 0, 0);
border: 0;
}
#nav {
z-index: 2;
padding-top: 12px;
padding-bottom: 12px;
padding-right: var(--sidebar-width);
position: relative;
}
#nav button {
color: var(--color-b);
transition: color var(--duration) var(--easing);
}
#nav button:hover {
color: var(--color-a);
}
#nav svg, #nav img {
width: var(--category-icon-size);
height: var(--category-icon-size);
}
#nav[dir="rtl"] .bar {
left: auto;
right: 0;
}
#nav .bar {
width: 100%;
height: 3px;
background-color: rgb(var(--em-rgb-accent));
transition: transform var(--duration) var(--easing);
border-radius: 3px 3px 0 0;
position: absolute;
bottom: -12px;
left: 0;
}
#nav button[aria-selected] {
color: rgb(var(--em-rgb-accent));
}
#preview {
z-index: 2;
padding: calc(var(--padding) + 4px) var(--padding);
padding-right: var(--sidebar-width);
position: relative;
}
#preview .preview-placeholder {
font-size: var(--preview-placeholder-size);
}
#preview .preview-title {
font-size: var(--preview-title-size);
}
#preview .preview-subtitle {
font-size: var(--preview-subtitle-size);
}
#nav:before, #preview:before {
content: "";
height: 2px;
position: absolute;
left: 0;
right: 0;
}
#nav[data-position="top"]:before, #preview[data-position="top"]:before {
background: linear-gradient(to bottom, var(--em-color-border), transparent);
top: 100%;
}
#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before {
background: linear-gradient(to top, var(--em-color-border), transparent);
bottom: 100%;
}
.category:last-child {
min-height: calc(100% + 1px);
}
.category button {
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;
position: relative;
}
.category button > * {
position: relative;
}
.category button .background {
opacity: 0;
background-color: var(--em-color-border);
transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.category button:hover .background {
transition-duration: var(--duration-instant);
transition-delay: 0s;
}
.category button[aria-selected] .background {
opacity: 1;
}
.category button[data-keyboard] .background {
transition: none;
}
.row {
width: 100%;
position: absolute;
top: 0;
left: 0;
}
.skin-tone-button {
border: 1px solid rgba(0, 0, 0, 0);
border-radius: 100%;
}
.skin-tone-button:hover {
border-color: var(--em-color-border);
}
.skin-tone-button:active .skin-tone {
transform: scale(.85) !important;
}
.skin-tone-button .skin-tone {
transition: transform var(--duration) var(--easing);
}
.skin-tone-button[aria-selected] {
background-color: var(--em-color-border);
border-top-color: rgba(0, 0, 0, .05);
border-bottom-color: rgba(0, 0, 0, 0);
border-left-width: 0;
border-right-width: 0;
}
.skin-tone-button[aria-selected] .skin-tone {
transform: scale(.9);
}
.menu {
z-index: 2;
white-space: nowrap;
border: 1px solid var(--em-color-border);
background-color: rgba(var(--em-rgb-background), .9);
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
transition-property: opacity, transform;
transition-duration: var(--duration);
transition-timing-function: var(--easing);
border-radius: 10px;
padding: 4px;
position: absolute;
box-shadow: 1px 1px 5px rgba(0, 0, 0, .05);
}
.menu.hidden {
opacity: 0;
}
.menu[data-position="bottom"] {
transform-origin: 100% 100%;
}
.menu[data-position="bottom"].hidden {
transform: scale(.9)rotate(-3deg)translateY(5%);
}
.menu[data-position="top"] {
transform-origin: 100% 0;
}
.menu[data-position="top"].hidden {
transform: scale(.9)rotate(3deg)translateY(-5%);
}
.menu input[type="radio"] {
clip: rect(0 0 0 0);
width: 1px;
height: 1px;
border: 0;
margin: 0;
padding: 0;
position: absolute;
overflow: hidden;
}
.menu input[type="radio"]:checked + .option {
box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));
}
.option {
width: 100%;
border-radius: 6px;
padding: 4px 6px;
}
.option:hover {
color: #fff;
background-color: rgb(var(--em-rgb-accent));
}
.skin-tone {
width: 16px;
height: 16px;
border-radius: 100%;
display: inline-block;
position: relative;
overflow: hidden;
}
.skin-tone:after {
content: "";
mix-blend-mode: overlay;
background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0));
border: 1px solid rgba(0, 0, 0, .8);
border-radius: 100%;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;
}
.skin-tone-1 {
background-color: #ffc93a;
}
.skin-tone-2 {
background-color: #ffdab7;
}
.skin-tone-3 {
background-color: #e7b98f;
}
.skin-tone-4 {
background-color: #c88c61;
}
.skin-tone-5 {
background-color: #a46134;
}
.skin-tone-6 {
background-color: #5d4437;
}
[data-index] {
justify-content: space-between;
}
[data-emoji-set="twitter"] .skin-tone:after {
box-shadow: none;
border-color: rgba(0, 0, 0, .5);
}
[data-emoji-set="twitter"] .skin-tone-1 {
background-color: #fade72;
}
[data-emoji-set="twitter"] .skin-tone-2 {
background-color: #f3dfd0;
}
[data-emoji-set="twitter"] .skin-tone-3 {
background-color: #eed3a8;
}
[data-emoji-set="twitter"] .skin-tone-4 {
background-color: #cfad8d;
}
[data-emoji-set="twitter"] .skin-tone-5 {
background-color: #a8805d;
}
[data-emoji-set="twitter"] .skin-tone-6 {
background-color: #765542;
}
[data-emoji-set="google"] .skin-tone:after {
box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4);
}
[data-emoji-set="google"] .skin-tone-1 {
background-color: #f5c748;
}
[data-emoji-set="google"] .skin-tone-2 {
background-color: #f1d5aa;
}
[data-emoji-set="google"] .skin-tone-3 {
background-color: #d4b48d;
}
[data-emoji-set="google"] .skin-tone-4 {
background-color: #aa876b;
}
[data-emoji-set="google"] .skin-tone-5 {
background-color: #916544;
}
[data-emoji-set="google"] .skin-tone-6 {
background-color: #61493f;
}
[data-emoji-set="facebook"] .skin-tone:after {
border-color: rgba(0, 0, 0, .4);
box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;
}
[data-emoji-set="facebook"] .skin-tone-1 {
background-color: #f5c748;
}
[data-emoji-set="facebook"] .skin-tone-2 {
background-color: #f1d5aa;
}
[data-emoji-set="facebook"] .skin-tone-3 {
background-color: #d4b48d;
}
[data-emoji-set="facebook"] .skin-tone-4 {
background-color: #aa876b;
}
[data-emoji-set="facebook"] .skin-tone-5 {
background-color: #916544;
}
[data-emoji-set="facebook"] .skin-tone-6 {
background-color: #61493f;
}
`;function oNe(s){const e=D.useRef(null),t=D.useRef(null);return t.current&&t.current.update(s),D.useEffect(()=>(t.current=new V2({...s,ref:e}),()=>{t.current=null}),[]),Bt.createElement("div",{ref:e})}var EG={exports:{}},uCe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hCe=uCe,cCe=hCe;function yG(){}function TG(){}TG.resetWarningCache=yG;var fCe=function(){function s(i,n,r,a,o,l){if(l!==cCe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}s.isRequired=s;function e(){return s}var t={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:e,element:s,elementType:s,instanceOf:e,node:s,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:TG,resetWarningCache:yG};return t.PropTypes=t,t};EG.exports=fCe();var dCe=EG.exports;const Xi=nr(dCe);var _Ce=function s(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var i,n,r;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(n=i;n--!==0;)if(!s(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(r=Object.keys(e),i=r.length,i!==Object.keys(t).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[n]))return!1;for(n=i;n--!==0;){var a=r[n];if(!s(e[a],t[a]))return!1}return!0}return e!==e&&t!==t};const gCe=nr(_Ce);var lO={exports:{}},IG;/**
* @link https://github.com/gajus/sister for the canonical source repository
* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
*/IG=function(){var s={},e={};return s.on=function(t,i){var n={name:t,handler:i};return e[t]=e[t]||[],e[t].unshift(n),n},s.off=function(t){var i=e[t.name].indexOf(t);i!==-1&&e[t.name].splice(i,1)},s.trigger=function(t,i){var n=e[t],r;if(n)for(r=n.length;r--;)n[r].handler(i)},s};var pCe=IG,uO={exports:{}},mCe=function(e,t,i){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");typeof t=="function"&&(i=t,t={}),t=t||{},i=i||function(){},r.type=t.type||"text/javascript",r.charset=t.charset||"utf8",r.async="async"in t?!!t.async:!0,r.src=e,t.attrs&&vCe(r,t.attrs),t.text&&(r.text=""+t.text);var a="onload"in r?MD:ECe;a(r,i),r.onload||MD(r,i),n.appendChild(r)};function vCe(s,e){for(var t in e)s.setAttribute(t,e[t])}function MD(s,e){s.onload=function(){this.onerror=this.onload=null,e(null,s)},s.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),s)}}function ECe(s,e){s.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,s))}}(function(s,e){Object.defineProperty(e,"__esModule",{value:!0});var t=mCe,i=n(t);function n(r){return r&&r.__esModule?r:{default:r}}e.default=function(r){var a=new Promise(function(o){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){o(window.YT);return}else{var l=window.location.protocol==="http:"?"http:":"https:";(0,i.default)(l+"//www.youtube.com/iframe_api",function(c){c&&r.trigger("error",c)})}var u=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){u&&u(),o(window.YT)}});return a},s.exports=e.default})(uO,uO.exports);var yCe=uO.exports,hO={exports:{}},cO={exports:{}},fO={exports:{}},og=1e3,lg=og*60,ug=lg*60,hg=ug*24,TCe=hg*365.25,ICe=function(s,e){e=e||{};var t=typeof s;if(t==="string"&&s.length>0)return RCe(s);if(t==="number"&&isNaN(s)===!1)return e.long?bCe(s):SCe(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function RCe(s){if(s=String(s),!(s.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(s);if(e){var t=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*TCe;case"days":case"day":case"d":return t*hg;case"hours":case"hour":case"hrs":case"hr":case"h":return t*ug;case"minutes":case"minute":case"mins":case"min":case"m":return t*lg;case"seconds":case"second":case"secs":case"sec":case"s":return t*og;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function SCe(s){return s>=hg?Math.round(s/hg)+"d":s>=ug?Math.round(s/ug)+"h":s>=lg?Math.round(s/lg)+"m":s>=og?Math.round(s/og)+"s":s+"ms"}function bCe(s){return Ap(s,hg,"day")||Ap(s,ug,"hour")||Ap(s,lg,"minute")||Ap(s,og,"second")||s+" ms"}function Ap(s,e,t){if(!(s<e))return s<e*1.5?Math.floor(s/e)+" "+t:Math.ceil(s/e)+" "+t+"s"}(function(s,e){e=s.exports=n.debug=n.default=n,e.coerce=l,e.disable=a,e.enable=r,e.enabled=o,e.humanize=ICe,e.names=[],e.skips=[],e.formatters={};var t;function i(u){var c=0,h;for(h in u)c=(c<<5)-c+u.charCodeAt(h),c|=0;return e.colors[Math.abs(c)%e.colors.length]}function n(u){function c(){if(c.enabled){var h=c,f=+new Date,d=f-(t||f);h.diff=d,h.prev=t,h.curr=f,t=f;for(var _=new Array(arguments.length),g=0;g<_.length;g++)_[g]=arguments[g];_[0]=e.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");var p=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,function(v,E){if(v==="%%")return v;p++;var y=e.formatters[E];if(typeof y=="function"){var T=_[p];v=y.call(h,T),_.splice(p,1),p--}return v}),e.formatArgs.call(h,_);var m=c.log||e.log||console.log.bind(console);m.apply(h,_)}}return c.namespace=u,c.enabled=e.enabled(u),c.useColors=e.useColors(),c.color=i(u),typeof e.init=="function"&&e.init(c),c}function r(u){e.save(u),e.names=[],e.skips=[];for(var c=(typeof u=="string"?u:"").split(/[\s,]+/),h=c.length,f=0;f<h;f++)c[f]&&(u=c[f].replace(/\*/g,".*?"),u[0]==="-"?e.skips.push(new RegExp("^"+u.substr(1)+"$")):e.names.push(new RegExp("^"+u+"$")))}function a(){e.enable("")}function o(u){var c,h;for(c=0,h=e.skips.length;c<h;c++)if(e.skips[c].test(u))return!1;for(c=0,h=e.names.length;c<h;c++)if(e.names[c].test(u))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}})(fO,fO.exports);var ACe=fO.exports;(function(s,e){var t={};e=s.exports=ACe,e.log=r,e.formatArgs=n,e.save=a,e.load=o,e.useColors=i,e.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:l(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}e.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function n(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+e.humanize(this.diff),!!c){var h="color: "+this.color;u.splice(1,0,h,"color: inherit");var f=0,d=0;u[0].replace(/%[a-zA-Z%]/g,function(_){_!=="%%"&&(f++,_==="%c"&&(d=f))}),u.splice(d,0,h)}}function r(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(u){try{u==null?e.storage.removeItem("debug"):e.storage.debug=u}catch{}}function o(){var u;try{u=e.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=t.DEBUG),u}e.enable(o());function l(){try{return window.localStorage}catch{}}})(cO,cO.exports);var OCe=cO.exports,dO={exports:{}};(function(s,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],s.exports=e.default})(dO,dO.exports);var wCe=dO.exports,_O={exports:{}};(function(s,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],s.exports=e.default})(_O,_O.exports);var CCe=_O.exports,gO={exports:{}},pO={exports:{}};(function(s,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},s.exports=e.default})(pO,pO.exports);var MCe=pO.exports;(function(s,e){Object.defineProperty(e,"__esModule",{value:!0});var t=MCe,i=n(t);function n(r){return r&&r.__esModule?r:{default:r}}e.default={pauseVideo:{acceptableStates:[i.default.ENDED,i.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[i.default.ENDED,i.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[i.default.ENDED,i.default.PLAYING,i.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},s.exports=e.default})(gO,gO.exports);var NCe=gO.exports;(function(s,e){Object.defineProperty(e,"__esModule",{value:!0});var t=OCe,i=c(t),n=wCe,r=c(n),a=CCe,o=c(a),l=NCe,u=c(l);function c(d){return d&&d.__esModule?d:{default:d}}var h=(0,i.default)("youtube-player"),f={};f.proxyEvents=function(d){var _={},g=function(C){var N="on"+C.slice(0,1).toUpperCase()+C.slice(1);_[N]=function(P){h('event "%s"',N,P),d.trigger(C,P)}},p=!0,m=!1,v=void 0;try{for(var E=o.default[Symbol.iterator](),y;!(p=(y=E.next()).done);p=!0){var T=y.value;g(T)}}catch(w){m=!0,v=w}finally{try{!p&&E.return&&E.return()}finally{if(m)throw v}}return _},f.promisifyPlayer=function(d){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g={},p=function(N){_&&u.default[N]?g[N]=function(){for(var P=arguments.length,k=Array(P),L=0;L<P;L++)k[L]=arguments[L];return d.then(function(j){var z=u.default[N],ne=j.getPlayerState(),G=j[N].apply(j,k);return z.stateChangeRequired||Array.isArray(z.acceptableStates)&&z.acceptableStates.indexOf(ne)===-1?new Promise(function(Y){var K=function H(){var J=j.getPlayerState(),B=void 0;typeof z.timeout=="number"&&(B=setTimeout(function(){j.removeEventListener("onStateChange",H),Y()},z.timeout)),Array.isArray(z.acceptableStates)&&z.acceptableStates.indexOf(J)!==-1&&(j.removeEventListener("onStateChange",H),clearTimeout(B),Y())};j.addEventListener("onStateChange",K)}).then(function(){return G}):G})}:g[N]=function(){for(var P=arguments.length,k=Array(P),L=0;L<P;L++)k[L]=arguments[L];return d.then(function(j){return j[N].apply(j,k)})}},m=!0,v=!1,E=void 0;try{for(var y=r.default[Symbol.iterator](),T;!(m=(T=y.next()).done);m=!0){var w=T.value;p(w)}}catch(C){v=!0,E=C}finally{try{!m&&y.return&&y.return()}finally{if(v)throw E}}return g},e.default=f,s.exports=e.default})(hO,hO.exports);var PCe=hO.exports;(function(s,e){Object.defineProperty(e,"__esModule",{value:!0});var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},i=pCe,n=u(i),r=yCe,a=u(r),o=PCe,l=u(o);function u(h){return h&&h.__esModule?h:{default:h}}var c=void 0;e.default=function(h){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=(0,n.default)();if(c||(c=(0,a.default)(_)),f.events)throw new Error("Event handlers cannot be overwritten.");if(typeof h=="string"&&!document.getElementById(h))throw new Error('Element "'+h+'" does not exist.');f.events=l.default.proxyEvents(_);var g=new Promise(function(m){if((typeof h>"u"?"undefined":t(h))==="object"&&h.playVideo instanceof Function){var v=h;m(v)}else c.then(function(E){var y=new E.Player(h,f);return _.on("ready",function(){m(y)}),null})}),p=l.default.promisifyPlayer(g,d);return p.on=_.on,p.off=_.off,p},s.exports=e.default})(lO,lO.exports);var kCe=lO.exports;const xCe=nr(kCe);function em(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?em=function(t){return typeof t}:em=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},em(s)}function DCe(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function LCe(s,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(s,i.key,i)}}function UCe(s,e,t){return e&&LCe(s.prototype,e),s}function FCe(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&mO(s,e)}function mO(s,e){return mO=Object.setPrototypeOf||function(i,n){return i.__proto__=n,i},mO(s,e)}function BCe(s){var e=VCe();return function(){var i=l1(s),n;if(e){var r=l1(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return GCe(this,n)}}function GCe(s,e){return e&&(em(e)==="object"||typeof e=="function")?e:_n(s)}function _n(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function VCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function l1(s){return l1=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l1(s)}function ND(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable})),t.push.apply(t,i)}return t}function Hh(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ND(Object(t),!0).forEach(function(i){Vs(s,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):ND(Object(t)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(t,i))})}return s}function Vs(s,e,t){return e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function jCe(s,e){if(s.videoId!==e.videoId)return!0;var t=s.opts.playerVars||{},i=e.opts.playerVars||{};return t.start!==i.start||t.end!==i.end}function PD(s){return Hh(Hh({},s),{},{height:0,width:0,playerVars:Hh(Hh({},s.playerVars),{},{autoplay:0,start:0,end:0})})}function zCe(s,e){return s.videoId!==e.videoId||!gCe(PD(s.opts),PD(e.opts))}function HCe(s,e){return s.id!==e.id||s.className!==e.className||s.opts.width!==e.opts.width||s.opts.height!==e.opts.height||s.title!==e.title}var j2=function(s){FCe(t,s);var e=BCe(t);function t(i){var n;return DCe(this,t),n=e.call(this,i),Vs(_n(n),"onPlayerReady",function(r){return n.props.onReady(r)}),Vs(_n(n),"onPlayerError",function(r){return n.props.onError(r)}),Vs(_n(n),"onPlayerStateChange",function(r){switch(n.props.onStateChange(r),r.data){case t.PlayerState.ENDED:n.props.onEnd(r);break;case t.PlayerState.PLAYING:n.props.onPlay(r);break;case t.PlayerState.PAUSED:n.props.onPause(r);break}}),Vs(_n(n),"onPlayerPlaybackRateChange",function(r){return n.props.onPlaybackRateChange(r)}),Vs(_n(n),"onPlayerPlaybackQualityChange",function(r){return n.props.onPlaybackQualityChange(r)}),Vs(_n(n),"createPlayer",function(){if(!(typeof document>"u")){var r=Hh(Hh({},n.props.opts),{},{videoId:n.props.videoId});n.internalPlayer=xCe(n.container,r),n.internalPlayer.on("ready",n.onPlayerReady),n.internalPlayer.on("error",n.onPlayerError),n.internalPlayer.on("stateChange",n.onPlayerStateChange),n.internalPlayer.on("playbackRateChange",n.onPlayerPlaybackRateChange),n.internalPlayer.on("playbackQualityChange",n.onPlayerPlaybackQualityChange)}}),Vs(_n(n),"resetPlayer",function(){return n.internalPlayer.destroy().then(n.createPlayer)}),Vs(_n(n),"updatePlayer",function(){n.internalPlayer.getIframe().then(function(r){n.props.id?r.setAttribute("id",n.props.id):r.removeAttribute("id"),n.props.className?r.setAttribute("class",n.props.className):r.removeAttribute("class"),n.props.opts&&n.props.opts.width?r.setAttribute("width",n.props.opts.width):r.removeAttribute("width"),n.props.opts&&n.props.opts.height?r.setAttribute("height",n.props.opts.height):r.removeAttribute("height"),typeof n.props.title=="string"?r.setAttribute("title",n.props.title):r.setAttribute("title","YouTube video player")})}),Vs(_n(n),"getInternalPlayer",function(){return n.internalPlayer}),Vs(_n(n),"updateVideo",function(){if(typeof n.props.videoId>"u"||n.props.videoId===null){n.internalPlayer.stopVideo();return}var r=!1,a={videoId:n.props.videoId};if("playerVars"in n.props.opts&&(r=n.props.opts.playerVars.autoplay===1,"start"in n.props.opts.playerVars&&(a.startSeconds=n.props.opts.playerVars.start),"end"in n.props.opts.playerVars&&(a.endSeconds=n.props.opts.playerVars.end)),r){n.internalPlayer.loadVideoById(a);return}n.internalPlayer.cueVideoById(a)}),Vs(_n(n),"refContainer",function(r){n.container=r}),n.container=null,n.internalPlayer=null,n}return UCe(t,[{key:"componentDidMount",value:function(){this.createPlayer()}},{key:"componentDidUpdate",value:function(n){HCe(n,this.props)&&this.updatePlayer(),zCe(n,this.props)&&this.resetPlayer(),jCe(n,this.props)&&this.updateVideo()}},{key:"componentWillUnmount",value:function(){this.internalPlayer.destroy()}},{key:"render",value:function(){return Bt.createElement("div",{className:this.props.containerClassName},Bt.createElement("div",{id:this.props.id,className:this.props.className,ref:this.refContainer,loading:this.props.loading}))}}]),t}(Bt.Component);Vs(j2,"PlayerState",{UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5});j2.propTypes={videoId:Xi.string,id:Xi.string,className:Xi.string,containerClassName:Xi.string,title:Xi.string,loading:Xi.oneOf(["lazy","eager","auto"]),opts:Xi.objectOf(Xi.any),onReady:Xi.func,onError:Xi.func,onPlay:Xi.func,onPause:Xi.func,onEnd:Xi.func,onStateChange:Xi.func,onPlaybackRateChange:Xi.func,onPlaybackQualityChange:Xi.func};j2.defaultProps={videoId:null,id:null,className:null,loading:null,opts:{},containerClassName:"",onReady:function(){},onError:function(){},onPlay:function(){},onPause:function(){},onEnd:function(){},onStateChange:function(){},onPlaybackRateChange:function(){},onPlaybackQualityChange:function(){},title:null};export{fw as $,oe as A,Mge as B,z_ as C,L_e as D,fn as E,pMe as F,a_e as G,Jc as H,Vge as I,Cge as J,Nge as K,Xme as L,ue as M,ce as N,Ye as O,Fs as P,No as Q,b as R,Wc as S,AP as T,pR as U,M as V,Hv as W,U_ as X,gv as Y,tEe as Z,K$ as _,dMe as a,Hde as a$,Xc as a0,YCe as a1,tMe as a2,sMe as a3,ga as a4,fMe as a5,qMe as a6,ehe as a7,the as a8,ihe as a9,le as aA,Kde as aB,Uoe as aC,Loe as aD,tle as aE,Joe as aF,ele as aG,qoe as aH,Zoe as aI,nle as aJ,Xoe as aK,yde as aL,Woe as aM,jhe as aN,Goe as aO,Boe as aP,Poe as aQ,koe as aR,rQ as aS,zde as aT,jde as aU,ps as aV,__e as aW,d6 as aX,e_e as aY,Qde as aZ,Xde as a_,Nde as aa,Ooe as ab,Bde as ac,Km as ad,RF as ae,Bce as af,xce as ag,Lce as ah,Zhe as ai,Dce as aj,nce as ak,hoe as al,Ihe as am,Vce as an,Hce as ao,Gce as ap,Voe as aq,foe as ar,$he as as,jce as at,coe as au,uoe as av,Uce as aw,Yce as ax,Pr as ay,BS as az,SMe as b,whe as b$,ck as b0,Ae as b1,PS as b2,Ple as b3,xle as b4,z_e as b5,Cle as b6,Ile as b7,Rle as b8,ble as b9,Toe as bA,Xce as bB,ime as bC,sme as bD,uhe as bE,lhe as bF,Gpe as bG,Vpe as bH,poe as bI,goe as bJ,voe as bK,ZP as bL,fhe as bM,dhe as bN,_he as bO,ghe as bP,phe as bQ,zpe as bR,The as bS,yhe as bT,Rhe as bU,JP as bV,She as bW,uS as bX,bhe as bY,Ahe as bZ,Ohe as b_,A4 as ba,yle as bb,W_e as bc,j_e as bd,$_e as be,V_e as bf,B_e as bg,F_e as bh,X_e as bi,kle as bj,K_e as bk,Xle as bl,Dle as bm,Kle as bn,O4 as bo,lge as bp,w4 as bq,Sge as br,ype as bs,xue as bt,Que as bu,gpe as bv,Pue as bw,Nue as bx,kue as by,Mue as bz,UMe as c,y1e as c$,Mhe as c0,Nhe as c1,Phe as c2,khe as c3,xhe as c4,Kpe as c5,qpe as c6,Jpe as c7,$pe as c8,tme as c9,Sce as cA,kce as cB,Pce as cC,pce as cD,Ece as cE,nS as cF,gfe as cG,Ice as cH,Rce as cI,Ide as cJ,Rde as cK,iS as cL,Sde as cM,rEe as cN,nEe as cO,wce as cP,hv as cQ,Qm as cR,ER as cS,ft as cT,Se as cU,Ve as cV,Bu as cW,u4 as cX,F$ as cY,Qt as cZ,se as c_,Xpe as ca,Qhe as cb,Xhe as cc,ece as cd,Khe as ce,Yhe as cf,qhe as cg,yoe as ch,Eoe as ci,Mce as cj,hce as ck,Qme as cl,$me as cm,Av as cn,mR as co,dF as cp,pfe as cq,He as cr,Tfe as cs,Qc as ct,Ife as cu,L4 as cv,DS as cw,NS as cx,MS as cy,Tce as cz,Te as d,yfe as d$,Wr as d0,Afe as d1,Xm as d2,k_e as d3,gle as d4,ple as d5,vle as d6,mle as d7,N_e as d8,x_e as d9,R1e as dA,T1e as dB,Hfe as dC,Gfe as dD,Vfe as dE,jfe as dF,Dae as dG,U1e as dH,xae as dI,B1e as dJ,kae as dK,F1e as dL,LR as dM,PR as dN,xR as dO,$m as dP,yt as dQ,e1e as dR,MP as dS,OP as dT,KR as dU,cv as dV,H_ as dW,Bm as dX,mTe as dY,xl as dZ,yR as d_,Zm as da,TR as db,c1e as dc,Cfe as dd,Ofe as de,wfe as df,U_e as dg,_1e as dh,Bw as di,d1e as dj,V1e as dk,W1e as dl,Do as dm,RA as dn,Uh as dp,ro as dq,Jm as dr,kfe as ds,n1e as dt,bfe as du,f1e as dv,I1e as dw,Ffe as dx,Ufe as dy,Lfe as dz,Sa as e,Fhe as e$,Po as e0,Cce as e1,tt as e2,Nh as e3,T6 as e4,so as e5,no as e6,S4 as e7,w1e as e8,KMe as e9,Gde as eA,Vde as eB,Coe as eC,Moe as eD,d_e as eE,Hoe as eF,vMe as eG,EMe as eH,PMe as eI,wMe as eJ,_Me as eK,gMe as eL,RMe as eM,Q1e as eN,ile as eO,o_e as eP,g_e as eQ,nde as eR,j1e as eS,Qs as eT,Zde as eU,lle as eV,ole as eW,DMe as eX,v_e as eY,ZR as eZ,Hhe as e_,nMe as ea,$Me as eb,rMe as ec,Mo as ed,Dde as ee,JMe as ef,ZMe as eg,eEe as eh,n6 as ei,VMe as ej,GMe as ek,TMe as el,che as em,Ade as en,xde as eo,Roe as ep,Ioe as eq,boe as er,Qoe as es,Ude as et,Fde as eu,bMe as ev,KCe as ew,CMe as ex,MMe as ey,NMe as ez,_k as f,wpe as f$,gme as f0,dme as f1,lme as f2,fme as f3,ame as f4,zhe as f5,Uhe as f6,$1e as f7,hde as f8,u_e as f9,Uge as fA,Fge as fB,wge as fC,hue as fD,Age as fE,bge as fF,Dge as fG,fue as fH,Bge as fI,fd as fJ,gue as fK,Pge as fL,due as fM,cue as fN,qP as fO,Ige as fP,Rge as fQ,kge as fR,xge as fS,Oge as fT,Gge as fU,_ue as fV,bpe as fW,Spe as fX,Ape as fY,Ppe as fZ,Xue as f_,y_e as fa,Ghe as fb,hme as fc,_me as fd,Bfe as fe,ib as ff,b1e as fg,S1e as fh,oMe as fi,IMe as fj,uMe as fk,aMe as fl,lMe as fm,A1e as fn,tb as fo,ab as fp,G_e as fq,Ale as fr,H_e as fs,q_e as ft,Y_e as fu,Z_e as fv,uge as fw,sge as fx,cge as fy,Lge as fz,U as g,Ime as g$,Ipe as g0,Rpe as g1,Npe as g2,Cpe as g3,QP as g4,tfe as g5,Gue as g6,jue as g7,P4 as g8,Yue as g9,FMe as gA,Qpe as gB,Zpe as gC,jpe as gD,k4 as gE,ice as gF,Tme as gG,Jhe as gH,Tb as gI,bme as gJ,Eme as gK,Whe as gL,vme as gM,yb as gN,kme as gO,Pme as gP,vv as gQ,rce as gR,Rme as gS,mme as gT,Ome as gU,Nme as gV,Ame as gW,ja as gX,wme as gY,Sme as gZ,sce as g_,Wue as ga,Hue as gb,M4 as gc,N4 as gd,zue as ge,_2e as gf,gk as gg,iNe as gh,bde as gi,aEe as gj,ppe as gk,Uw as gl,Pde as gm,doe as gn,kde as go,lpe as gp,rpe as gq,ape as gr,ope as gs,hpe as gt,Noe as gu,Wde as gv,rfe as gw,Lve as gx,Dhe as gy,nme as gz,WCe as h,AR as h$,tce as h0,yme as h1,Gme as h2,kMe as h3,mve as h4,Yme as h5,L1e as h6,bve as h7,cve as h8,Ave as h9,p_e as hA,h_e as hB,rle as hC,CS as hD,pue as hE,yMe as hF,mMe as hG,g2e as hH,IR as hI,jme as hJ,sfe as hK,s1e as hL,BTe as hM,XCe as hN,o1e as hO,YS as hP,CP as hQ,a6 as hR,sNe as hS,nNe as hT,rNe as hU,ef as hV,PF as hW,$F as hX,fR as hY,DR as hZ,UR as h_,aS as ha,tde as hb,$ve as hc,Yfe as hd,Jve as he,Qve as hf,qfe as hg,Xfe as hh,Kfe as hi,t1e as hj,KF as hk,qve as hl,WF as hm,Zfe as hn,i1e as ho,X9 as hp,jMe as hq,AMe as hr,LMe as hs,cMe as ht,YMe as hu,XMe as hv,dve as hw,lve as hx,uve as hy,Bme as hz,Es as i,fde as i0,iEe as i1,OMe as i2,M1e as i3,eme as i4,hMe as i5,xMe as i6,BMe as i7,C1e as i8,N1e as i9,$Ce as iA,QCe as iB,ZCe as iC,qCe as iD,qm as iE,gF as iF,Y6 as iG,dde as iH,gde as iI,HMe as iJ,zMe as iK,WMe as iL,oEe as iM,uEe as iN,lEe as iO,hEe as iP,Su as iQ,_de as iR,wh as iS,wn as iT,bn as iU,Ao as iV,q7 as iW,mfe as ia,Zve as ib,bR as ic,oNe as id,aNe as ie,QMe as ig,l1e as ih,lce as ii,ace as ij,oce as ik,xme as il,g1e as im,O1e as io,Rfe as ip,j2 as iq,OOe as ir,Ove as is,pve as it,Mh as iu,Ui as iv,ITe as iw,mk as ix,JCe as iy,eMe as iz,vt as j,Qn as k,kt as l,St as m,IP as n,kr as o,_s as p,hd as q,D as r,Pe as s,u1e as t,dR as u,Ra as v,li as w,$c as x,Hp as y,nv as z};