PageSourceSearch

https://trustingsocial.com/component---src-pages-index-js-67def7952c00370a5378.js

js trustingsocial.com collected 2026-10-02 04:32:51 UTC 817,714 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"+XMi":function(e,t,n){"use strict";(function(t){n("HAE/"),n("V+eJ"),n("a1Th"),n("h7Nl"),n("Btvt");var r=n("33yf"),i=n("48q5"),a=n("BEtg");e.exports=u;var o={}.hasOwnProperty,s=u.prototype;s.toString=function(e){var t=this.contents||"";return a(t)?t.toString(e):String(t)};var l=["history","path","basename","stem","extname","dirname"];function u(e){var n,r,i;if(e){if("string"==typeof e||a(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof u))return new u(e);for(this.data={},this.messages=[],this.history=[],this.cwd=t.cwd(),r=-1,i=l.length;++r<i;)n=l[r],o.call(e,n)&&(this[n]=e[n]);for(n in e)-1===l.indexOf(n)&&(this[n]=e[n])}function c(e,t){if(-1!==e.indexOf(r.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function h(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}Object.defineProperty(s,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){h(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(s,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(s,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){h(e,"basename"),c(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(s,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){var t=e||"";if(c(t,"extname"),d(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=i(this.path,t)}}),Object.defineProperty(s,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){h(e,"stem"),c(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})}).call(this,n("8oxB"))},"+qya":function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useController",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"withController",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Parallax",{enumerable:!0,get:function(){return a.default}}
1),Object.defineProperty(t,"ParallaxProvider",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"ParallaxBanner",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"ParallaxContext",{enumerable:!0,get:function(){return l.default}});var r=u(n("VKs2")),i=u(n("+rED")),a=u(n("03l2")),o=u(n("u7ke")),s=u(n("SZY9")),l=u(n("fukl"));function u(e){return e&&e.__esModule?e:{default:e}}},"+rED":function(e,t,n){"use strict";n("hHhE"),n("/SS/"),n("91GP"),n("rE2o"),n("ioFf"),n("rGqo"),n("yt8O"),n("Btvt"),n("XfO3"),n("EK0E"),n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=s();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),i=o(n("17x9")),a=o(n("fukl"));function o(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.default=function(e){var t,n,o,s=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),h(this,d(n).apply(this,arguments))}var i,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(n,t),i=n,(o=[{key:"render",value:function(){var t=this;return r.default.createElement(a.default.Consumer,null,(function(n){return r.default.createElement(e,u({parallaxController:n},t.props))}))}}])&&c(i.prototype,o),s&&c(i,s),n}(r.Component);return t=s,n="propTypes",o={parallaxController:i.default.object},n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,s}},"/qNp":function(e,t,n){"use strict";var r={}.hasOwnProperty;function i(e){return e&&"object"==typeof e||(e={}),o(e.line)+":"+o(e.column)}function a(e){return e&&"object"==typeof e||(e={}),i(e.start)+"-"+i(e.end)}function o(e){return e&&"number"==typeof e?e:1}e.exports=function(e){if(!e||"object"!=typeof e)return null;if(r.call(e,"position")||r.call(e,"type"))return a(e.position);if(r.call(e,"start")||r.call(e,"end"))return a(e);if(r.call(e,"line")||r.call(e,"column"))return i(e);return null}},"03l2":function(e,t,n){"use strict";n("hHhE"),n("/SS/"),n("rE2o"),n("ioFf"),n("rGqo"),n("yt8O"),n("Btvt"),n("XfO3"),n("EK0E"),n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=l();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),i=s(n("17x9")),a=s(n("QKcw")),o=s(n("+rED"));
1function s(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){var e,n,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=this,i=(e=h(t)).call.apply(e,[this].concat(o)),n=!i||"object"!==u(i)&&"function"!=typeof i?d(r):i,p(d(n),"mapRefOuter",(function(e){n._outer=e})),p(d(n),"mapRefInner",(function(e){n._inner=e})),n}var n,i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){var e=this.controller instanceof a.default;
1if(!this.controller&&!e)throw new Error("Must wrap your application's <Parallax /> components in a <ParallaxProvider />.");this.element=this.controller.createElement(this._getElementOptions())}},{key:"componentDidUpdate",value:function(e){this.props.disabled===e.disabled&&this.props.x[0]===e.x[0]&&this.props.x[1]===e.x[1]&&this.props.y[0]===e.y[0]&&this.props.y[1]===e.y[1]||this.controller.updateElementPropsById(this.element.id,this._getElementOptions().props),this.props.disabled!==e.disabled&&this.props.disabled&&this.controller.resetElementStyles(this.element)}},{key:"componentWillUnmount",value:function(){this.controller.removeElementById(this.element.id)}},{key:"_getElementOptions",value:function(){return{elInner:this._inner,elOuter:this._outer,props:{disabled:this.props.disabled,x0:this.props.x[0],x1:this.props.x[1],y0:this.props.y[0],y1:this.props.y[1]}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.tagOuter,a=e.tagInner,o=e.styleOuter,s=e.styleInner,l="parallax-outer"+(n?" ".concat(n):"");return r.default.createElement(i,{className:l,ref:this.mapRefOuter,style:o},r.default.createElement(a,{className:"parallax-inner",ref:this.mapRefInner,style:s},t))}},{key:"controller",get:function(){return this.props.parallaxController}}])&&c(n.prototype,i),o&&c(n,o),t}(r.Component);p(m,"defaultProps",{disabled:!1,tagInner:"div",tagOuter:"div",x:[0,0],y:[0,0]}),p(m,"propTypes",{children:i.default.node,className:i.default.string,disabled:i.default.bool.isRequired,parallaxController:i.default.object,styleInner:i.default.object,styleOuter:i.default.object,tagInner:i.default.string.isRequired,tagOuter:i.default.string.isRequired,x:i.default.arrayOf(i.default.oneOfType([i.default.string,i.default.number])),y:i.default.arrayOf(i.default.oneOfType([i.default.string,i.default.number]))});var v=(0,o.default)(m);t.default=v},"044C":function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},"1OyB":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},"1T8B":function(e,t,n){"use strict";n("Oyvg");var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),t.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},"1VtT":function(e,t,n){"use strict";n("VRzm"),n("Btvt");var r=n("6dBs"),i=n("Gdbo"),a=n("Esvb"),o=n("xkQk"),s=n("IRYA"),l=n("NkL+");e.exports=function e(){var t=[],n=o(),y={},x=!1,b=-1;return _.data=function(e,t){if(s(e))return 2===arguments.length?(m("data",x),y[e]=t,_):c.call(y,e)&&y[e]||null;if(e)return m("data",x),y=e,_;return y},_.freeze=w,_.attachers=t,_.use=function(e){var n;if(m("use",x),null==e);else if("function"==typeof e)s.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?o(e):i(e)}n&&(y.settings=r(y.settings||{},n));return _;function i(e){o(e.plugins),e.settings&&(n=r(n||{},e.settings))}function a(e){if("function"==typeof e)s(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?s.apply(null,e):i(e)}}function o(e){var t,n;if(null==e);else{if(!("object"==typeof e&&"length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)a(e[n])}}function s(e,n){var i=function(e){var n,r=t.length,i=-1;for(;++i<r;)if((n=t[i])[0]===e)return n}(e);i?(l(i[1])&&l(n)&&(n=r(i[1],n)),i[1]=n):t.push(u.call(arguments))}},_.parse=function(e){var t,n=a(e);if(w(),f("parse",t=_.Parser),d(t))return new t(String(n),n).parse();return t(String(n),n)},_.stringify=function(e,t){var n,r=a(t);if(w(),p("stringify",n=_.Compiler),v(e),d(n))return new n(e,r).compile();return n(e,r)},_.run=M,_.runSync=function(e,t){var n,r=!1;return M(e,t,(function(e,t){r=!0,i(e),n=t})),g("runSync","run",r),n},_.process=E,_.processSync=function(e){var t,n=!1;return w(),f("processSync",_.Parser),p("processSync",_.Compiler),E(t=a(e),(function(e){n=!0,i(e)})),g("processSync","process",n),t},_;function _(){for(var n=e(),i=t.length,a=-1;++a<i;)n.use.apply(null,t[a]);return n.data(r(!0,{},y)),n}function w(){var e,r,i,a;if(x)return _;for(;++b<t.length;)r=(e=t[b])[0],null,!1!==(i=e[1])&&(!0===i&&(e[1]=void 0),"function"==typeof(a=r.apply(_,e.slice(1)))&&n.use(a));return x=!0,b=1/0,_}function M(e,t,r){if(v(e),w(),r||"function"!=typeof t||(r=t,t=null),!r)return new Promise(i);function i(i,o){n.run(e,a(t),(function(t,n,a){n=n||e,t?o(t):i?i(n):r(null,n,a)}))}i(null,r)}function E(e,t){if(w(),f("process",_.Parser),p("process",_.Compiler),!t)return new Promise(n);function n(n,r){var i=a(e);h.run(_,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze();var u=[].slice,c={}.hasOwnProperty,h=o().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,i){e?n(e):(t.tree=r,t.f
1ile=i,n())}))})).use((function(e,t){t.file.contents=e.stringify(t.tree,t.file)}));function d(e){return"function"==typeof e&&function(e){var t;for(t in e)return!0;return!1}(e.prototype)}function f(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error(["Cannot invoke `"+e+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function v(e){if(!e||!s(e.type))throw new Error("Expected node, got `"+e+"`")}function g(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},"1db3":function(e,t,n){"use strict";var r=n("U6jy"),i=n("ZWk2");e.exports=function(e){return a.raw=function(e,a,o){return i(e,r(o,{position:t(a),warning:n}))},a;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(t,n,r){3!==r&&e.file.message(t,n)}function a(r,a,o){i(r,{position:t(a),warning:n,text:o,reference:o,textContext:e,referenceContext:e})}}},"1iAE":function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},"22pC":function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e){return function(t,n){var a,o,s,l,u,c,h=this,d=h.offset,f=[],p=h[e+"Methods"],m=h[e+"Tokenizers"],v=n.line,g=n.column;if(!t)return f;_.now=x,_.file=h.file,y("");for(;t;){for(a=-1,o=p.length,u=!1;++a<o&&(l=p[a],!(s=m[l])||s.onlyAtStart&&!h.atStart||s.notInList&&h.inList||s.notInBlock&&h.inBlock||s.notInLink&&h.inLink||(c=t.length,s.apply(h,[_,t]),!(u=c!==t.length))););u||h.file.fail(new Error("Infinite loop"),_.now())}return h.eof=x(),f;function y(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)v++,t=n,n=e.indexOf("\n",n+1);-1===t?g+=e.length:g=e.length-t,v in d&&(-1!==t?g+=d[v]:g<=d[v]&&(g=d[v]+1))}function x(){var e={line:v,column:g};return e.offset=h.toOffset(e),e}function b(e){this.start=e,this.end=x()}function _(e){var n,a=function(){var e=[],t=v+1;return function(){for(var n=v+1;t<n;)e.push((d[t]||0)+1),t++;return e}}(),o=(n=x(),function(e,t){var r=e.position,i=r?r.start:n,a=[],o=r&&r.end.line,s=n.line;if(e.position=new b(i),r&&t&&r.indent){if(a=r.indent,o<s){for(;++o<s;)a.push((d[o]||0)+1);a.push(n.column)}t=a.concat(t)}return e.position.indent=t||[],e}),s=x();return function(e){t.substring(0,e.length)!==e&&h.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),x())}(e),l.reset=u,u.test=c,l.test=c,t=t.substring(e.length),y(e),a=a(),l;function l(e,t){return o(function(e,t){var n=t?t.children:f,a=n[n.length-1];return a&&e.type===a.type&&e.type in r&&i(a)&&i(e)&&(e=r[e.type].call(h,a,e)),e!==a&&n.push(e),h.atStart&&0!==f.length&&h.exitStart(),e}(o(e),t),a)}function u(){var n=l.apply(null,arguments);return v=s.line,g=s.column,t=e+t,n}function c(){var n=o({});return v=s.line,g=s.column,t=e+t,n.position}}}};var r={text:function(e,t){return e.value+=t.value,e},blockquote:function(e,t){if(this.options.commonmark)return t;return e.children=e.children.concat(t.children),e}};function i(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}},"2a+b":function(e,t,n){"use strict";n("V+eJ");var r=n("IPAr");e.exports=function(e,t,n){var y,x,b,_,w,M,E,S,C,T,k,A,O,L,P,R,I,D,j,N,F,B,z,H;if(!this.options.gfm)return;y=0,D=0,M=t.length+1,E=[];for(;y<M;){if(B=t.indexOf(c,y),z=t.indexOf(s,y+1),-1===B&&(B=t.length),-1===z||z>B){if(D<f)return;break}E.push(t.slice(y,B)),D++,y=B+1}_=E.join(c),x=E.splice(1,1)[0]||[],y=0,M=x.length,D--,b=!1,k=[];for(;y<M;){if((C=x.charAt(y))===s){if(T=null,!1===b){if(!1===H)return}else k.push(b),b=!1;H=!1}else if(C===o)T=!0,b=b||g;else if(C===l)b=b===p?m:T&&b===g?v:p;else if(!r(C))return;y++}!1!==b&&k.push(b);if(k.length<d)return;if(n)return!0;I=-1,N=[],F=e(_).reset({type:"table",align:k,children:N});for(;++I<D;){for(j=E[I],w={type:"tableRow",children:[]},I&&e(c),e(j).reset(w,F),M=j.length+1,y=0,S="",A="",O=!0,L=null,P=null;y<M;)if((C=j.charAt(y))!==h&&C!==u){if(""===C||C===s)if(O)e(C);else{if(C&&P){S+=C,y++;continue}!A&&!C||O||(_=A,S.length>1&&(C?(_+=S.slice(0,S.length-1),S=S.charAt(S.length-1)):(_+=S,S="")),R=e.n
1ow(),e(_)({type:"tableCell",children:this.tokenizeInline(A,R)},w)),e(S+C),S="",A=""}else if(S&&(A+=S,S=""),A+=C,C===i&&y!==M-2&&(A+=j.charAt(y+1),y++),C===a){for(L=1;j.charAt(y+1)===C;)A+=C,y++,L++;P?L>=P&&(P=0):P=L}O=!1,y++}else A?S+=C:e(C),y++;I||e(c+x)}return F};var i="\\",a="`",o="-",s="|",l=":",u=" ",c="\n",h="\t",d=1,f=2,p="left",m="center",v="right",g=null},"3+Nb":function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n("VHls")}},"33yf":function(e,t,n){(function(e){function r(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n("0l/t"),n("KKXr"),t.resolve=function(){for(var t="",n=!1,a=arguments.length-1;a>=-1&&!n;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,n="/"===o.charAt(0))}return(n?"/":"")+(t=r(i(t.split("/"),(function(e){return!!e})),!n).join("/"))||"."},t.normalize=function(e){var n=t.isAbsolute(e),o="/"===a(e,-1);return(e=r(i(e.split("/"),(function(e){return!!e})),!n).join("/"))||n||(e="."),e&&o&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("8oxB"))},"36yr":function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){return e.indexOf("`",t)}},"3GlI":function(e,t,n){"use strict";e.exports=function(e){var t=String(e),n=t.length;for(;t.charAt(--n)===r;);return t.slice(0,n+1)};var r="\n"},"3m36":function(e,t,n){"use strict";n("a1Th"),n("h7Nl"),n("Btvt"),n("2Spj");var r=n("U6jy"),i=n("q1tI"),a=parseInt((i.version||"16").slice(0,2),10)>=16,o=i.createElement;function s(e,t){return o(e,l(t),t.children)}function l(e){return e["data-sourcepos"]?{"data-sourcepos":e["data-sourcepos"]}:{}}e.exports={break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:s.bind(null,"table"),tableHead:s.bind(null,"thead"),tableBody:s.bind(null,"tbody"),tableRow:s.bind(null,"tr"),tableCell:function(e){var t=e.align?{textAlign:e.align}:void 0,n=l(e);return o(e.isHeader?"th":"td",t?r({style:t},n):n,e.children)},root:function(e){var t=!e.className,n=t&&i.Fragment||"div";return o(n,t?null:e,e.children)},text:function(e){return a?e.children:o("span",null,e.children)},list:function(e){var t=l(e);null!==e.start&&1!==e.start&&void 0!==e.start&&(t.start=e.start.toString());return o(e.ordered?"ol":"ul",t,e.children)},listItem:function(e){var t=null;if(null!==e.checked&&void 0!==e.checked){var n=e.checked;t=o("input",{type:"checkbox",checked:n,readOnly:!0})}return o("li",l(e),t,e.children)},definition:function(){return null},heading:function(e){return o("h".concat(e.level),l(e),e.children)},inlineCode:function(e){return o("code",l(e),e.children)},code:function(e){var t=e.language&&"language-".concat(e.language),n=o("code",t?{className:t}:null,e.value);return o("pre",l(e),n)},html:function(e){if(e.skipHtml)return null;var t=e.isBlock?"div":"span";if(e.escapeHtml){var n=i.Fragment||t;return o(n,null,e.value)}var r={dangerouslySetInnerHTML:{__html:e.value}};return o(t,r)},virtualHtml:function(e){return o(e.tag,l(e),e.children)},parsedHtml:function(e){return e["data-sourcepos"]?i.cloneElement(e.element,{"data-sourcepos":e["data-sourcepos"]}):e.element}}},"48q5":function(e,t,n){"use strict";var r=n("33yf");e.exports=function(e,t){if("string"!=typeof e)return e;if(0===e.length)return e;var n=r.basename(e,r.extname(e))+t;return r.join(r.dirname(e),n)}},"4MqD":function(e,t,n){"use strict";e.exports=function(e,t,n){return function(){var r=n||this,i=r[e];return r[e]=!t,function(){r[e]=i}}}},"5T4m":function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,a,o,s,l,u,c,h,d;if(n)return!0;
1r=this.inlineMethods,o=r.length,i=this.inlineTokenizers,a=-1,h=t.length;for(;++a<o;)"text"!==(c=r[a])&&i[c]&&((u=i[c].locator)||e.file.fail("Missing locator: `"+c+"`"),-1!==(l=u.call(this,t,1))&&l<h&&(h=l));s=t.slice(0,h),d=e.now(),this.decode(s,d,(function(t,n,r){e(r||t)({type:"text",value:t})}))}},"5t69":function(e,t,n){"use strict";var r=n("U6jy"),i=n("P7XM");e.exports=function(e){var t,n,a;for(n in i(s,e),i(o,s),t=s.prototype)(a=t[n])&&"object"==typeof a&&(t[n]="concat"in a?a.concat():r(a));return s;function o(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new o(arguments)}}},"62+j":function(e,t,n){"use strict";n("pIFo");var r=n("IPAr"),i=n("d+Jj");e.exports=p,p.notInList=!0,p.notInBlock=!0;var a="\\",o="\n",s="\t",l=" ",u="[",c="]",h="^",d=":",f=/^( {4}|\t)?/gm;function p(e,t,n){var p,m,v,g,y,x,b,_,w,M,E,S,C=this.offset;if(this.options.footnotes){for(p=0,m=t.length,v="",g=e.now(),y=g.line;p<m&&(w=t.charAt(p),r(w));)v+=w,p++;if(t.charAt(p)===u&&t.charAt(p+1)===h){for(p=(v+=u+h).length,b="";p<m&&(w=t.charAt(p))!==c;)w===a&&(b+=w,p++,w=t.charAt(p)),b+=w,p++;if(b&&t.charAt(p)===c&&t.charAt(p+1)===d){if(n)return!0;for(M=i(b),p=(v+=b+c+d).length;p<m&&((w=t.charAt(p))===s||w===l);)v+=w,p++;for(g.column+=v.length,g.offset+=v.length,b="",x="",_="";p<m;){if((w=t.charAt(p))===o){for(_=w,p++;p<m&&(w=t.charAt(p))===o;)_+=w,p++;for(b+=_,_="";p<m&&(w=t.charAt(p))===l;)_+=w,p++;if(0===_.length)break;b+=_}b&&(x+=b,b=""),x+=w,p++}return v+=x,x=x.replace(f,(function(e){return C[y]=(C[y]||0)+e.length,y++,""})),E=e(v),S=this.enterBlock(),x=this.tokenizeBlock(x,g),S(),E({type:"footnoteDefinition",identifier:M,children:x})}}}}},"6dBs":function(e,t,n){"use strict";n("f3/d"),n("LK8F"),n("HAE/"),n("a1Th"),n("h7Nl"),n("Btvt");var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,a,o,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<f;++d)if(null!=(t=arguments[d]))for(n in t)r=c(h,n),h!==(i=c(t,n))&&(p&&i&&(l(i)||(a=s(i)))?(a?(a=!1,o=r&&s(r)?r:[]):o=r&&l(r)?r:{},u(h,{name:n,newValue:e(p,o,i)})):void 0!==i&&u(h,{name:n,newValue:i}));return h}},"7DDg":function(e,t,n){"use strict";if(n("nh4g")){var r=n("LQAc"),i=n("dyZX"),a=n("eeVq"),o=n("XKFU"),s=n("D4iV"),l=n("7Qtz"),u=n("m0Pp"),c=n("9gX7"),h=n("RjD/"),d=n("Mukb"),f=n("3Lyj"),p=n("RYi7"),m=n("ne8i"),v=n("Cfrj"),g=n("d/Gc"),y=n("apmT"),x=n("aagx"),b=n("I8a+"),_=n("0/R4"),w=n("S/j/"),M=n("M6Qj"),E=n("Kuth"),S=n("OP3Y"),C=n("kJMx").f,T=n("J+6e"),k=n("ylqs"),A=n("K0xU"),O=n("CkkT"),L=n("w2a5"),P=n("69bn"),R=n("yt8O"),I=n("hPIQ"),D=n("XMVh"),j=n("elZq"),N=n("Nr18"),F=n("upKx"),B=n("hswa"),z=n("EemH"),H=B.f,U=z.f,V=i.RangeError,G=i.TypeError,W=i.Uint8Array,Z=Array.prototype,q=l.ArrayBuffer,X=l.DataView,J=O(0),Y=O(2),K=O(3),Q=O(4),$=O(5),ee=O(6),te=L(!0),ne=L(!1),re=R.values,ie=R.keys,ae=R.entries,oe=Z.lastIndexOf,se=Z.reduce,le=Z.reduceRight,ue=Z.join,ce=Z.sort,he=Z.slice,de=Z.toString,fe=Z.toLocaleString,pe=A("iterator"),me=A("toStringTag"),ve=k("typed_constructor"),ge=k("def_constructor"),ye=s.CONSTR,xe=s.TYPED,be=s.VIEW,_e=O(1,(function(e,t){return Ce(P(e,e[ge]),t)})),we=a((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),Me=!!W&&!!W.prototype.set&&a((function(){new W(1).set({})})),Ee=function(e,t){var n=p(e);if(n<0||n%t)throw V("Wrong offset!");return n},Se=function(e){if(_(e)&&xe in e)return e;throw G(e+" is not a typed array!")},Ce=function(e,t){if(!(_(e)&&ve in e))throw G("It is not a typed array constructor!");return new e(t)},Te=function(e,t){return ke(P(e,e[ge]),t)},ke=function(e,t){for(var n=0,r=t.length,i=Ce(e,r);r>n;)i[n]=t[n++];return i},Ae=function(e,t,n){H(e,t,{get:function(){return this._d[n]}})},Oe=function(e){var t,n,r,i,a,o,s=w(e),l=arguments.length,c=l>1?arguments[1]:void 0,h=void 0!==c,d=T(s);if(null!=d&&!M(d)){for(o=d.call(s),r=[],t=0;!(a=o.next()).done;t++)r.push(a.value);s=r}for(h&&l>2&&(c=u(c,arguments[2],2)),t=0,n=m(s.length),i=Ce(this,n);n>t;t++)i[t]=h?c(s[t],t):s[t];return i},Le=function(){for(var e=0,t=arguments.length,n=Ce(this,t);t>e;)n[e]=arguments[e++];return n},Pe=!!W&&a((function(){fe.call(new W(1))})),Re=function(){return fe.apply(Pe?he.call(Se(this)):Se(this),arguments)},Ie={copyWithin:function(e,t){return F.call(Se(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Q(Se(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(Se(this),arguments)},filter:function(e){return Te(this,Y(Se(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Se(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Se(this),e,arguments.length>1?arguments[1]:void 0)}
vendor: 4,259 bytes, line 1
1,forEach:function(e){J(Se(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Se(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Se(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Se(this),arguments)},lastIndexOf:function(e){return oe.apply(Se(this),arguments)},map:function(e){return _e(Se(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Se(this),arguments)},reduceRight:function(e){return le.apply(Se(this),arguments)},reverse:function(){for(var e,t=Se(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this},some:function(e){return K(Se(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ce.call(Se(this),e)},subarray:function(e,t){var n=Se(this),r=n.length,i=g(e,r);return new(P(n,n[ge]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:g(t,r))-i))}},De=function(e,t){return Te(this,he.call(Se(this),e,t))},je=function(e){Se(this);var t=Ee(arguments[1],1),n=this.length,r=w(e),i=m(r.length),a=0;if(i+t>n)throw V("Wrong length!");for(;a<i;)this[t+a]=r[a++]},Ne={entries:function(){return ae.call(Se(this))},keys:function(){return ie.call(Se(this))},values:function(){return re.call(Se(this))}},Fe=function(e,t){return _(e)&&e[xe]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Be=function(e,t){return Fe(e,t=y(t,!0))?h(2,e[t]):U(e,t)},ze=function(e,t,n){return!(Fe(e,t=y(t,!0))&&_(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?H(e,t,n):(e[t]=n.value,e)};ye||(z.f=Be,B.f=ze),o(o.S+o.F*!ye,"Object",{getOwnPropertyDescriptor:Be,defineProperty:ze}),a((function(){de.call({})}))&&(de=fe=function(){return ue.call(this)});var He=f({},Ie);f(He,Ne),d(He,pe,Ne.values),f(He,{slice:De,set:je,constructor:function(){},toString:de,toLocaleString:Re}),Ae(He,"buffer","b"),Ae(He,"byteOffset","o"),Ae(He,"byteLength","l"),Ae(He,"length","e"),H(He,me,{get:function(){return this[xe]}}),e.exports=function(e,t,n,l){var u=e+((l=!!l)?"Clamped":"")+"Array",h="get"+e,f="set"+e,p=i[u],g=p||{},y=p&&S(p),x=!p||!s.ABV,w={},M=p&&p.prototype,T=function(e,n){H(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[h](n*t+r.o,we)}(this,n)},set:function(e){return function(e,n,r){var i=e._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[f](n*t+i.o,r,we)}(this,n,e)},enumerable:!0})};x?(p=n((function(e,n,r,i){c(e,p,u,"_d");var a,o,s,l,h=0,f=0;if(_(n)){if(!(n instanceof q||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return xe in n?ke(p,n):Oe.call(p,n);a=n,f=Ee(r,t);var g=n.byteLength;if(void 0===i){if(g%t)throw V("Wrong length!");if((o=g-f)<0)throw V("Wrong length!")}else if((o=m(i)*t)+f>g)throw V("Wrong length!");s=o/t}else s=v(n),a=new q(o=s*t);for(d(e,"_d",{b:a,o:f,l:o,e:s,v:new X(a)});h<s;)T(e,h++)})),M=p.prototype=E(He),d(M,"constructor",p)):a((function(){p(1)}))&&a((function(){new p(-1)}))&&D((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=n((function(e,n,r,i){var a;return c(e,p,u),_(n)?n instanceof q||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==i?new g(n,Ee(r,t),i):void 0!==r?new g(n,Ee(r,t)):new g(n):xe in n?ke(p,n):Oe.call(p,n):new g(v(n))})),J(y!==Function.prototype?C(g).concat(C(y)):C(g),(function(e){e in p||d(p,e,g[e])})),p.prototype=M,r||(M.constructor=p));var k=M[pe],A=!!k&&("values"==k.name||null==k.name),O=Ne.values;d(p,ve,!0),d(M,xe,u),d(M,be,!0),d(M,ge,p),(l?new p(1)[me]==u:me in M)||H(M,me,{get:function(){return u}}),w[u]=p,o(o.G+o.W+o.F*(p!=g),w),o(o.S,u,{BYTES_PER_ELEMENT:t}),o(o.S+o.F*a((function(){g.of.call(p,1)})),u,{from:Oe,of:Le}),"BYTES_PER_ELEMENT"in M||d(M,"BYTES_PER_ELEMENT",t),o(o.P,u,Ie),j(u),o(o.P+o.F*Me,u,{set:je}),o(o.P+o.F*!A,u,Ne),r||M.toString==de||(M.toString=de),o(o.P+o.F*a((function(){new p(1).slice()})),u,{slice:De}),o(o.P+o.F*(a((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!a((function(){M.toLocaleString.call([1,2])}))),u,{toLocaleString:Re}),I[u]=A?k:O,r||A||d(M,pe,O)}}else e.exports=function(){}},"7MxR":function(e,t,n){"use strict";n("pIFo");var r=n("U6jy"),i=n("cBNe");e.exports=function(){var e,t=String(this.file),n={line:1,column:1,offset:0},s=r(n);
165279===(t=t.replace(o,a)).charCodeAt(0)&&(t=t.slice(1),s.column++,s.offset++);e={type:"root",children:this.tokenizeBlock(t,s),position:{start:n,end:this.eof||r(n)}},this.options.position||i(e,!0);return e};var a="\n",o=/\r\n|\r/g},"7OGT":function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.setParallaxStyles=function(e,t,n){var i=(0,r.getParallaxOffsets)(t,n),a=i.x,o=a.value,s=a.unit,l=i.y,u=l.value,c=l.unit;e.style.transform="translate3d(".concat(o).concat(s,", ").concat(u).concat(c,", 0)")},t.resetStyles=function(e){e.elInner.style.transform=""};var r=n("MUSX")},"7Qtz":function(e,t,n){"use strict";var r=n("dyZX"),i=n("nh4g"),a=n("LQAc"),o=n("D4iV"),s=n("Mukb"),l=n("3Lyj"),u=n("eeVq"),c=n("9gX7"),h=n("RYi7"),d=n("ne8i"),f=n("Cfrj"),p=n("kJMx").f,m=n("hswa").f,v=n("Nr18"),g=n("fyDq"),y="prototype",x="Wrong index!",b=r.ArrayBuffer,_=r.DataView,w=r.Math,M=r.RangeError,E=r.Infinity,S=b,C=w.abs,T=w.pow,k=w.floor,A=w.log,O=w.LN2,L=i?"_b":"buffer",P=i?"_l":"byteLength",R=i?"_o":"byteOffset";function I(e,t,n){var r,i,a,o=new Array(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?T(2,-24)-T(2,-77):0,h=0,d=e<0||0===e&&1/e<0?1:0;for((e=C(e))!=e||e===E?(i=e!=e?1:0,r=l):(r=k(A(e)/O),e*(a=T(2,-r))<1&&(r--,a*=2),(e+=r+u>=1?c/a:c*T(2,1-u))*a>=2&&(r++,a/=2),r+u>=l?(i=0,r=l):r+u>=1?(i=(e*a-1)*T(2,t),r+=u):(i=e*T(2,u-1)*T(2,t),r=0));t>=8;o[h++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;o[h++]=255&r,r/=256,s-=8);return o[--h]|=128*d,o}function D(e,t,n){var r,i=8*n-t-1,a=(1<<i)-1,o=a>>1,s=i-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;s>0;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===c)c=1-o;else{if(c===a)return r?NaN:u?-E:E;r+=T(2,t),c-=o}return(u?-1:1)*r*T(2,c-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function N(e){return[255&e]}function F(e){return[255&e,e>>8&255]}function B(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function z(e){return I(e,52,8)}function H(e){return I(e,23,4)}function U(e,t,n){m(e[y],t,{get:function(){return this[n]}})}function V(e,t,n,r){var i=f(+n);if(i+t>e[P])throw M(x);var a=e[L]._b,o=i+e[R],s=a.slice(o,o+t);return r?s:s.reverse()}function G(e,t,n,r,i,a){var o=f(+n);if(o+t>e[P])throw M(x);for(var s=e[L]._b,l=o+e[R],u=r(+i),c=0;c<t;c++)s[l+c]=u[a?c:t-c-1]}if(o.ABV){if(!u((function(){b(1)}))||!u((function(){new b(-1)}))||u((function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name}))){for(var W,Z=(b=function(e){return c(this,b),new S(f(e))})[y]=S[y],q=p(S),X=0;q.length>X;)(W=q[X++])in b||s(b,W,S[W]);a||(Z.constructor=b)}var J=new _(new b(2)),Y=_[y].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||l(_[y],{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},!0)}else b=function(e){c(this,b,"ArrayBuffer");var t=f(e);this._b=v.call(new Array(t),0),this[P]=t},_=function(e,t,n){c(this,_,"DataView"),c(e,b,"DataView");var r=e[P],i=h(t);if(i<0||i>r)throw M("Wrong offset!");if(i+(n=void 0===n?r-i:d(n))>r)throw M("Wrong length!");this[L]=e,this[R]=i,this[P]=n},i&&(U(b,"byteLength","_l"),U(_,"buffer","_b"),U(_,"byteLength","_l"),U(_,"byteOffset","_o")),l(_[y],{getInt8:function(e){return V(this,1,e)[0]<<24>>24},getUint8:function(e){return V(this,1,e)[0]},getInt16:function(e){var t=V(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=V(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(V(this,4,e,arguments[1]))},getUint32:function(e){return j(V(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return D(V(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return D(V(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){G(this,1,e,N,t)},setUint8:function(e,t){G(this,1,e,N,t)},setInt16:function(e,t){G(this,2,e,F,t,arguments[2])},setUint16:function(e,t){G(this,2,e,F,t,arguments[2])},setInt32:function(e,t){G(this,4,e,B,t,arguments[2])},setUint32:function(e,t){G(this,4,e,B,t,arguments[2])},setFloat32:function(e,t){G(this,4,e,H,t,arguments[2])},setFloat64:function(e,t){G(this,8,e,z,t,arguments[2])}});g(b,"ArrayBuffer"),g(_,"DataView"),s(_[y],o.VIEW,!0),t.ArrayBuffer=b,t.DataView=_},"7Ttx":function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
1n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.Scroll=void 0;var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setScroll.apply(this,arguments)}var t,n,i;return t=e,(n=[{key:"setScroll",value:function(e,t){return this.x=e,this.y=t,this}}])&&r(t.prototype,n),i&&r(t,i),e}();t.Scroll=i},"7XrY":function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){var n=e.indexOf("\n",t);for(;n>t&&" "===e.charAt(n-1);)n--;return n}},"7nPM":function(e,t,n){"use strict";function r(e){return function(t){var n=-1,r=e.length;if(t<0)return{};for(;++n<r;)if(e[n]>t)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}}function i(e){return function(t){var n=t&&t.line,r=t&&t.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in e)return(e[n-2]||0)+r-1||0;return-1}}n("V+eJ"),e.exports=function(e){var t=function(e){var t=[],n=e.indexOf("\n");for(;-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:r(t),toOffset:i(t)}}},"9Z5P":function(e,t,n){"use strict";var r=n("ZkSf");function i(e){var t=e.children;e.children=[{type:"tableHead",align:e.align,children:[t[0]],position:t[0].position}],t.length>1&&e.children.push({type:"tableBody",align:e.align,children:t.slice(1),position:{start:t[1].position.start,end:t[t.length-1].position.end}})}e.exports=function(e){return r(e,"table",i),e}},ACGk:function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);if(-1===r)return n;return n<r?n:r}},AphP:function(e,t,n){"use strict";var r=n("XKFU"),i=n("S/j/"),a=n("apmT");r(r.P+r.F*n("eeVq")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},BEtg:function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},BsWD:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a3WO");function i(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},CX2u:function(e,t,n){"use strict";var r=n("XKFU"),i=n("g3g5"),a=n("dyZX"),o=n("69bn"),s=n("vKrd");r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,i.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},Cfrj:function(e,t,n){var r=n("RYi7"),i=n("ne8i");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},CyHz:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{sign:n("lvtm")})},D4iV:function(e,t,n){for(var r,i=n("dyZX"),a=n("Mukb"),o=n("ylqs"),s=o("typed_array"),l=o("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(r=i[d[h++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},DCCt:function(e,t,n){"use strict";var r=n("RsFJ"),i=n("obXZ"),a=n("IPAr"),o=n("W8QB");e.exports=u,u.locator=o;var s="*",l="_";function u(e,t,n){var o,u,c,h,d,f,p,m=0,v=t.charAt(m);if(!(v!==s&&v!==l||(u=this.options.pedantic,d=v,c=v,f=t.length,m++,h="",v="",u&&a(t.charAt(m)))))for(;m<f;){if(p=v,!((v=t.charAt(m))!==c||u&&a(p))){if((v=t.charAt(++m))!==c){if(!r(h)||p===c)return;if(!u&&c===l&&i(v)){h+=c;continue}return!!n||((o=e.now()).column++,o.offset++,e(d+h+c)({type:"emphasis",children:this.tokenizeInline(h,o)}))}h+=c}u||"\\"!==v||(h+=v,v=t.charAt(++m)),h+=v,m++}}},DNXe:function(e,t,n){"use strict";n("V+eJ");var r=n("ZWk2"),i=n("IPAr"),a=n("DuHW");e.exports=m,m.locator=a,m.notInLink=!0;var o="[",s="]",l="(",u=")",c="<",h="@",d="mailto:",f=["http://","https://",d],p=f.length;function m(e,t,n){var a,m,v,g,y,x,b,_,w,M,E,S;if(this.options.gfm){for(a="",g=-1,_=p;++g<_;)if(x=f[g],(b=t.slice(0,x.length)).toLowerCase()===x){a=b;break}if(a){for(g=a.length,_=t.length,w="",M=0;g<_&&(v=t.charAt(g),!i(v)&&v!==c)&&("."!==v&&","!==v&&":"!==v&&";"!==v&&'"'!==v&&"'"!==v&&")"!==v&&"]"!==v||(E=t.charAt(g+1))&&!i(E))&&(v!==l&&v!==o||M++,v!==u&&v!==s||!(--M<0));)w+=v,g++;if(w){if(m=a+=w,x===d){if(-1===(y=w.indexOf(h))||y===_-1)return;m=m.substr(d.length)}return!!n||(S=this.enterLink(),m=this.tokenizeInline(m,e.now()),S(),e(a)({type:"link",title:null,url:r(a,{nonTerminated:!1}),children:m}))}}}}},DuHW:function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){var n,i=r.length,a=-1,o=-1;if(!this.options.gfm)return-1;for(;++a<i;)-1!==(n=e.indexOf(r[a],t))&&(n<o||-1===o)&&(o=n);return o};var r=["https://","http://","mailto:"]},EBzq:function(e,t,n){"use strict";var r=[].slice;e.exports=function(e,t){var n;return function(){var t,o=r.call(arguments,0),s=e.length>
1o.length;s&&o.push(i);try{t=e.apply(null,o)}catch(l){if(s&&n)throw l;return i(l)}s||(t&&"function"==typeof t.then?t.then(a,i):t instanceof Error?i(t):a(t))};function i(){n||(n=!0,t.apply(null,arguments))}function a(e){i(null,e)}}},Esvb:function(e,t,n){"use strict";n("f3/d");var r=n("aCXt"),i=n("+XMi");e.exports=i;var a=i.prototype;function o(e,t,n){var i=this.path,a=new r(e,t,n);return i&&(a.name=i+":"+a.name,a.file=i),a.fatal=!1,this.messages.push(a),a}a.message=o,a.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},a.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e},a.warn=o},FLlr:function(e,t,n){var r=n("XKFU");r(r.P,"String",{repeat:n("l0Rn")})},Faw5:function(e,t,n){n("7DDg")("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},Fhq4:function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){return e.indexOf("~~",t)}},FxOa:function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){return e.indexOf("\\",t)}},Gdbo:function(e,t,n){"use strict";e.exports=function(e){if(e)throw e}},GyeZ:function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){return function(n){var r,i=0,a=n.indexOf("\\"),o=e[t],s=[];for(;-1!==a;)s.push(n.slice(i,a)),i=a+1,(r=n.charAt(i))&&-1!==o.indexOf(r)||s.push("\\"),a=n.indexOf("\\",i);return s.push(n.slice(i)),s.join("")}}},H2s6:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseValueAndUnit",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"scaleBetween",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"testForPassiveScroll",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"createId",{enumerable:!0,get:function(){return o.createId}});var r=s(n("kywa")),i=s(n("ho0Y")),a=s(n("hEFP")),o=n("VLQr");function s(e){return e&&e.__esModule?e:{default:e}}},IPAr:function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\s/},IRYA:function(e,t,n){n("a1Th"),n("h7Nl"),n("Btvt");var r=Object.prototype.toString;e.exports=function(e){return"[object String]"===r.call(e)}},IoeE:function(e,t,n){"use strict";n("DNiP"),e.exports=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t.children||[]).reduce((function(t,n){return"definition"===n.type&&(t[n.identifier]={href:n.url,title:n.title}),e(n,t)}),n)}},Ir0H:function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),a=n("vOnD"),o=n("ddpu"),s=n("GTmF"),l=n("IujW"),u=n.n(l),c=n("Y7ja"),h=a.e.ul.withConfig({displayName:"Simple__Wrapper",componentId:"b0hrcd-0"})(["padding:0;margin:0;list-style-type:none;"]),d=a.e.li.withConfig({displayName:"Simple__Item",componentId:"b0hrcd-1"})(["padding:0;margin:0 0 50px 0;text-align:center;@media screen and (min-width:","){display:flex;text-align:left;align-items:center;margin-bottom:0;& + &{margin-top:20px;}}"],c.a.md),f=a.e.article.withConfig({displayName:"Simple__Content",componentId:"b0hrcd-2"})(["padding:0 0 0 20px;flex:1;"]),p=a.e.h4.withConfig({displayName:"Simple__Heading",componentId:"b0hrcd-3"})(["color:#1c2f45;font-weight:bold;margin-bottom:22px;"]),m=Object(a.e)(o.a).withConfig({displayName:"Simple__StyledIcon",componentId:"b0hrcd-4"})(["width:84px;height:90px;"]);function v(e){var t=e.className,n=e.items,r=e.heading;return i.a.createElement(h,{className:t},r&&i.a.createElement(p,null,r),n.map((function(e){return i.a.createElement(d,{key:e.description},i.a.createElement(m,{type:e.iconType}),i.a.createElement(f,null,e.description&&i.a.createElement(s.a,{as:u.a,source:e.description})))})))}v.defaultProps={className:null,heading:null,items:[]},t.a=v},IujW:function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n("dZ+Y"),n("V+eJ"),n("0l/t"),n("DNiP"),n("yt8O"),n("RW0V"),n("LK8F"),n("XfO3"),n("HEwt"),n("a1Th"),n("h7Nl"),n("Btvt"),n("rE2o"),n("ioFf"),n("rGqo");var i=n("U6jy"),a=n("1VtT"),o=n("v0oL"),s=n("17x9"),l=n("wnOJ"),u=n("cVWj"),c=n("u3i/"),h=n("UV+P"),d=n("9Z5P"),f=n("IoeE"),p=n("Nw8X"),m=n("3m36"),v=n("h9ck"),g=Object.keys(m),y=function(e){var t=e.source||e.children||"",n=e.parserOptions;if(e.allowedTypes&&e.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var r=i(m,e.renderers),s=[[o,n]].concat(e.plugins||[]).reduce(x,a()),p=s.parse(t),y=i(e,{renderers:r,definitions:f(p)}),b=function(e){var t=[d,l()],n=e.disallowedTypes;e.allowedTypes&&(n=g.filter((function(t){return"root"!==t&&-1===e.allowedTypes.indexOf(t)})));var r=e.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&t.push(c.ofType(n,r));e.allowNode&&t.push(c.ifNotMatch(e.allowNode,r));var i=!e.escapeHtml&&!e.skipHtml,a=(e.astPlugins||[]).some((function(e){return(Array.isArray(e)?e[0]:e).identity===v.HtmlParser}));
1i&&!a&&t.push(u);return e.astPlugins?t.concat(e.astPlugins):t}(e),_=s.runSync(p),w=b.reduce((function(e,t){return t(e,y)}),_);return h(w,y)};function x(e,t){return Array.isArray(t)?e.use.apply(e,r(t)):e.use(t)}y.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:p,astPlugins:[],plugins:[],parserOptions:{}},y.propTypes={className:s.string,source:s.string,children:s.string,sourcePos:s.bool,rawSourcePos:s.bool,escapeHtml:s.bool,skipHtml:s.bool,allowNode:s.func,allowedTypes:s.arrayOf(s.oneOf(g)),disallowedTypes:s.arrayOf(s.oneOf(g)),transformLinkUri:s.oneOfType([s.func,s.bool]),linkTarget:s.oneOfType([s.func,s.string]),transformImageUri:s.func,astPlugins:s.arrayOf(s.func),unwrapDisallowed:s.bool,renderers:s.object,plugins:s.array,parserOptions:s.object},y.types=g,y.renderers=m,y.uriTransformer=p,e.exports=y},J5yW:function(e,t,n){"use strict";var r=n("1iAE"),i=n("ZONP");e.exports=function(e){return r(e)||i(e)}},JE6T:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.View=void 0;var i=function(){function e(t){var n=t.width,r=t.height,i=t.scrollContainer;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scrollContainer=i,this.setSize(n,r)}var t,n,i;return t=e,(n=[{key:"setSize",value:function(e,t){return this.width=e,this.height=t,this}}])&&r(t.prototype,n),i&&r(t,i),e}();t.View=i},JWB8:function(e,t,n){"use strict";var r=n("U6jy"),i=n("4MqD"),a=n("7nPM"),o=n("GyeZ"),s=n("1db3"),l=n("22pC");function u(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=a(t).toOffset,this.unescape=o(this,"escape"),this.decode=s(this)}e.exports=u;var c=u.prototype;function h(e){var t,n=[];for(t in e)n.push(t);return n}c.setOptions=n("qUik"),c.parse=n("7MxR"),c.options=n("3+Nb"),c.exitStart=i("atStart",!0),c.enterList=i("inList",!1),c.enterLink=i("inLink",!1),c.enterBlock=i("inBlock",!1),c.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.blockTokenizers={newline:n("akNn"),indentedCode:n("kmJ7"),fencedCode:n("Syd7"),blockquote:n("soWj"),atxHeading:n("kDuX"),thematicBreak:n("rUY8"),list:n("Nx7O"),setextHeading:n("lebq"),html:n("tvOo"),footnote:n("62+j"),definition:n("uuyv"),table:n("2a+b"),paragraph:n("NiDC")},c.inlineTokenizers={escape:n("mcUT"),autoLink:n("Sce3"),url:n("DNXe"),html:n("g1k0"),link:n("MNGI"),reference:n("c6LQ"),strong:n("qPMR"),emphasis:n("DCCt"),deletion:n("egI8"),code:n("cFAA"),break:n("lgF9"),text:n("5T4m")},c.blockMethods=h(c.blockTokenizers),c.inlineMethods=h(c.inlineTokenizers),c.tokenizeBlock=l("block"),c.tokenizeInline=l("inline"),c.tokenizeFactory=l},JX7q:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"Ji/l":function(e,t,n){var r=n("XKFU");r(r.G+r.W+r.F*!n("D4iV").ABV,{DataView:n("7Qtz").DataView})},Ji7U:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("s4An");function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}
1),t&&Object(r.a)(e,t)}},JqBK:function(e,t,n){"use strict";n("pIFo"),e.exports=function(e){return String(e).replace(/\s+/g," ")}},Ljet:function(e,t,n){var r=n("XKFU");r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},MLbX:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.HORIZONTAL=t.VERTICAL=void 0;t.VERTICAL="vertical";t.HORIZONTAL="horizontal"},MNGI:function(e,t,n){"use strict";var r=n("IPAr"),i=n("ACGk");e.exports=v,v.locator=i;var a={}.hasOwnProperty,o="\\",s="[",l="]",u="(",c=")",h="<",d=">",f="`",p={'"':'"',"'":"'"},m={};function v(e,t,n){var i,v,g,y,x,b,_,w,M,E,S,C,T,k,A,O,L,P,R,I="",D=0,j=t.charAt(0),N=this.options.pedantic,F=this.options.commonmark,B=this.options.gfm;if("!"===j&&(M=!0,I=j,j=t.charAt(++D)),j===s&&(M||!this.inLink)){for(I+=j,A="",D++,C=t.length,k=0,(L=e.now()).column+=D,L.offset+=D;D<C;){if(b=j=t.charAt(D),j===f){for(v=1;t.charAt(D+1)===f;)b+=j,D++,v++;g?v>=g&&(g=0):g=v}else if(j===o)D++,b+=t.charAt(D);else if(g&&!B||j!==s){if((!g||B)&&j===l){if(!k){if(!N)for(;D<C&&(j=t.charAt(D+1),r(j));)b+=j,D++;if(t.charAt(D+1)!==u)return;b+=u,i=!0,D++;break}k--}}else k++;A+=b,b="",D++}if(i){for(E=A,I+=A+b,D++;D<C&&(j=t.charAt(D),r(j));)I+=j,D++;if(j=t.charAt(D),w=F?m:p,A="",y=I,j===h){for(D++,y+=h;D<C&&(j=t.charAt(D))!==d;){if(F&&"\n"===j)return;A+=j,D++}if(t.charAt(D)!==d)return;I+=h+A+d,O=A,D++}else{for(j=null,b="";D<C&&(j=t.charAt(D),!b||!a.call(w,j));){if(r(j)){if(!N)break;b+=j}else{if(j===u)k++;else if(j===c){if(0===k)break;k--}A+=b,b="",j===o&&(A+=o,j=t.charAt(++D)),A+=j}D++}O=A,D=(I+=A).length}for(A="";D<C&&(j=t.charAt(D),r(j));)A+=j,D++;if(j=t.charAt(D),I+=A,A&&a.call(w,j))if(D++,I+=j,A="",S=w[j],x=I,F){for(;D<C&&(j=t.charAt(D))!==S;)j===o&&(A+=o,j=t.charAt(++D)),D++,A+=j;if((j=t.charAt(D))!==S)return;for(T=A,I+=A+j,D++;D<C&&(j=t.charAt(D),r(j));)I+=j,D++}else for(b="";D<C;){if((j=t.charAt(D))===S)_&&(A+=S+b,b=""),_=!0;else if(_){if(j===c){I+=A+S+b,T=A;break}r(j)?b+=j:(A+=S+b+j,b="",_=!1)}else A+=j;D++}if(t.charAt(D)===c)return!!n||(I+=c,O=this.decode.raw(this.unescape(O),e(y).test().end,{nonTerminated:!1}),T&&(x=e(x).test().end,T=this.decode.raw(this.unescape(T),x)),R={type:M?"image":"link",title:T||null,url:O},M?R.alt=this.decode.raw(this.unescape(E),L)||null:(P=this.enterLink(),R.children=this.tokenizeInline(E,L),P()),e(I)(R))}}}m['"']='"',m["'"]="'",m[u]=c},"MQ5/":function(e,t,n){"use strict";e.exports=o;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=r.concat(["~","|"]),a=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function o(e){var t=e||{};return t.commonmark?a:t.gfm?i:r}o.default=r,o.gfm=i,o.commonmark=a},MUSX:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.getParallaxOffsets=function(e,t){var n=e.y0,i=e.y1,a=e.x0,o=e.x1,s=i.unit,l=o.unit,u=(0,r.scaleBetween)(t,a.value,o.value,0,100),c=(0,r.scaleBetween)(t,n.value,i.value,0,100);return{x:{value:u,unit:l},y:{value:c,unit:s}}};var r=n("H2s6")},NBu1:function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){return e.indexOf("<",t)}},NO8f:function(e,t,n){n("7DDg")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},NiDC:function(e,t,n){"use strict";n("V+eJ");var r=n("RsFJ"),i=n("ZONP"),a=n("3GlI"),o=n("cmLN");e.exports=function(e,t,n){var h,d,f,p,m,v=this.options,g=v.commonmark,y=v.gfm,x=this.blockTokenizers,b=this.interruptParagraph,_=t.indexOf(s),w=t.length;for(;_<w;){if(-1===_){_=w;break}if(t.charAt(_+1)===s)break;if(g){for(p=0,h=_+1;h<w;){if((f=t.charAt(h))===l){p=c;break}if(f!==u)break;p++,h++}if(p>=c){_=t.indexOf(s,_+1);continue}}if(d=t.slice(_+1),o(b,x,this,[e,d,!0]))break;if(x.list.call(this,e,d,!0)&&(this.inList||g||y&&!i(r.left(d).charAt(0))))break;
1if(h=_,-1!==(_=t.indexOf(s,_+1))&&""===r(t.slice(h,_))){_=h;break}}if(d=t.slice(0,_),""===r(d))return e(d),null;if(n)return!0;return m=e.now(),d=a(d),e(d)({type:"paragraph",children:this.tokenizeInline(d,m)})};var s="\n",l="\t",u=" ",c=4},"NkL+":function(e,t,n){"use strict";n("a1Th"),n("h7Nl"),n("Btvt");var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},Nr18:function(e,t,n){"use strict";var r=n("S/j/"),i=n("d/Gc"),a=n("ne8i");e.exports=function(e){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>s;)t[s++]=e;return t}},Nw8X:function(e,t,n){"use strict";n("V+eJ"),n("Tze0");var r=["http","https","mailto","tel"];e.exports=function(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var i=t.indexOf(":");if(-1===i)return t;for(var a=r.length,o=-1;++o<a;){var s=r[o];if(i===s.length&&t.slice(0,s.length).toLowerCase()===s)return t}return-1!==(o=t.indexOf("?"))&&i>o?t:-1!==(o=t.indexOf("#"))&&i>o?t:"javascript:void(0)"}},Nx7O:function(e,t,n){"use strict";n("xfY5"),n("KKXr"),n("pIFo"),n("SRfc"),n("V+eJ");var r=n("RsFJ"),i=n("RjOF"),a=n("ZONP"),o=n("vPdy"),s=n("vvrU"),l=n("cmLN");e.exports=function(e,t,n){var i,o,s,m,g,y,x,b,_,C,T,k,A,O,L,P,R,I,D,j,N,F,B,z,H=this.options.commonmark,U=this.options.pedantic,V=this.blockTokenizers,G=this.interruptList,W=0,Z=t.length,q=null,X=0;for(;W<Z;){if((m=t.charAt(W))===p)X+=v-X%v;else{if(m!==d)break;X++}W++}if(X>=v)return;if(m=t.charAt(W),i=H?E:M,!0===w[m])g=m,s=!1;else{for(s=!0,o="";W<Z&&(m=t.charAt(W),a(m));)o+=m,W++;if(m=t.charAt(W),!o||!0!==i[m])return;q=parseInt(o,10),g=m}if((m=t.charAt(++W))!==d&&m!==p)return;if(n)return!0;W=0,O=[],L=[],P=[];for(;W<Z;){for(y=t.indexOf(f,W),x=W,b=!1,z=!1,-1===y&&(y=Z),B=W+v,X=0;W<Z;){if((m=t.charAt(W))===p)X+=v-X%v;else{if(m!==d)break;X++}W++}if(X>=v&&(z=!0),R&&X>=R.indent&&(z=!0),m=t.charAt(W),_=null,!z){if(!0===w[m])_=m,W++,X++;else{for(o="";W<Z&&(m=t.charAt(W),a(m));)o+=m,W++;m=t.charAt(W),W++,o&&!0===i[m]&&(_=m,X+=o.length+1)}if(_)if((m=t.charAt(W))===p)X+=v-X%v,W++;else if(m===d){for(B=W+v;W<B&&t.charAt(W)===d;)W++,X++;W===B&&t.charAt(W)===d&&(W-=v-1,X-=v-1)}else m!==f&&""!==m&&(_=null)}if(_){if(!U&&g!==_)break;b=!0}else H||z||t.charAt(x)!==d?H&&R&&(z=X>=R.indent||X>v):z=!0,b=!1,W=x;if(T=t.slice(x,y),C=x===W?T:t.slice(W,y),(_===u||_===c||_===h)&&V.thematicBreak.call(this,e,T,!0))break;if(k=A,A=!r(C).length,z&&R)R.value=R.value.concat(P,T),L=L.concat(P,T),P=[];else if(b)0!==P.length&&(R.value.push(""),R.trail=P.concat()),R={value:[T],indent:X,trail:[]},O.push(R),L=L.concat(P,T),P=[];else if(A){if(k)break;P.push(T)}else{if(k)break;if(l(G,V,this,[e,T,!0]))break;R.value=R.value.concat(P,T),L=L.concat(P,T),P=[]}W=y+1}N=e(L.join(f)).reset({type:"list",ordered:s,start:q,loose:null,children:[]}),I=this.enterList(),D=this.enterBlock(),j=!1,W=-1,Z=O.length;for(;++W<Z;)R=O[W].value.join(f),F=e.now(),(R=e(R)(S(this,R,F),N)).loose&&(j=!0),R=O[W].trail.join(f),W!==Z-1&&(R+=f),e(R);return I(),D(),N.loose=j,N};var u="*",c="_",h="-",d=" ",f="\n",p="\t",m="x",v=4,g=/\n\n(?!\s*$)/,y=/^\[([ \t]|x|X)][ \t]/,x=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,b=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,_=/^( {1,4}|\t)?/gm,w={};w[u]=!0,w["+"]=!0,w[h]=!0;var M={".":!0},E={};function S(e,t,n){var r,i,a=e.offset,o=null;return t=(e.options.pedantic?C:T).apply(null,arguments),e.options.gfm&&(r=t.match(y))&&(i=r[0].length,o=r[1].toLowerCase()===m,a[n.line]+=i,t=t.slice(i)),{type:"listItem",loose:g.test(t)||t.charAt(t.length-1)===f,checked:o,children:e.tokenizeBlock(t,n)}}function C(e,t,n){var r=e.offset,i=n.line;return t=t.replace(b,a),i=n.line,t.replace(_,a);function a(e){return r[i]=(r[i]||0)+e.length,i++,""}}function T(e,t,n){var r,a,l,u,c,h,p,m=e.offset,v=n.line;for(u=(t=t.replace(x,(function(e,t,n,o,s){a=t+n+o,l=s,Number(n)<10&&a.length%2==1&&(n=d+n);return(r=t+i(d,n.length)+o)+l}))).split(f),(c=s(t,o(r).indent).split(f))[0]=l,m[v]=(m[v]||0)+a.length,v++,h=0,p=u.length;++h<p;)m[v]=(m[v]||0)+u[h].length-c[h].length,v++;return c.join(f)}E["."]=!0,E[")"]=!0},ODXe:function(e,t,n){"use strict";var r=n("BsWD");function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}
1finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return i}))},P7XM:function(e,t,n){n("hHhE"),"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},QIyF:function(e,t,n){var r=n("Kz5y");e.exports=function(){return r.Date.now()}},QKcw:function(e,t,n){"use strict";n("bWfx"),n("WLL4"),n("jm62"),n("8+KV"),n("0l/t"),n("yt8O"),n("RW0V"),n("LK8F"),n("XfO3"),n("HEwt"),n("a1Th"),n("h7Nl"),n("Btvt"),n("rE2o"),n("ioFf"),n("rGqo"),n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("H2s6"),i=n("qJUE"),a=n("JE6T"),o=n("7Ttx"),s=n("nLTZ"),l=n("MLbX");function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=e.scrollAxis,n=void 0===t?l.VERTICAL:t,d=e.scrollContainer,f=[],p=!!d,m=d||window,v=p?m.scrollLeft:window.pageXOffset,g=p?m.scrollTop:window.pageYOffset,y=new o.Scroll(v,g),x=new a.View({width:0,height:0,scrollContainer:d}),b=!1,_=(0,r.testForPassiveScroll)();function w(e){e.addEventListener("scroll",E,!!_&&{passive:!0}),window.addEventListener("resize",S,!1)}function M(e){e.removeEventListener("scroll",E,!!_&&{passive:!0}),window.removeEventListener("resize",S,!1)}function E(){var e=p?m.scrollLeft:window.pageXOffset,t=p?m.scrollTop:window.pageYOffset;y.setScroll(e,t),!b&&f.length>0&&(b=!0,window.requestAnimationFrame(C))}function S(){k(),C({updateCache:!0})}function C(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).updateCache;f.forEach((function(t){T(t),e&&t.setCachedAttributes(x,y)})),b=!1}function T(e){e.props.disabled||e.updatePosition(x,y)}function k(){if(p){var e=m.offsetWidth,t=m.offsetHeight;return x.setSize(e,t)}var n=document.documentElement,r=window.innerWidth||n.clientWidth,i=window.innerHeight||n.clientHeight;return x.setSize(r,i)}w(m),k(),this.getElements=function(){return f},this.createElement=function(e){var t=new s.Element(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{scrollAxis:n}));return t.setCachedAttributes(x,y),f=[].concat(u(f),[t]),T(t),t},this.removeElementById=function(e){f&&(f=f.filter((function(t){return t.id!==e})))},this.updateElementPropsById=function(e,t){f=f.map((function(n){return n.id===e?n.updateProps(t):n})),this.update()},this.resetElementStyles=function(e){(0,i.resetStyles)(e)},this.update=function(){k(),C({updateCache:!0})},this.updateScrollContainer=function(e){M(m),m=e,p=!!e,x=new a.View({width:0,height:0,scrollContainer:e}),k(),w(m),C({updateCache:!0})},this.destroy=function(){M(m),f.forEach((function(e){return(0,i.resetStyles)(e)})),f=void 0}}d.init=function(e){if(!("undefined"!=typeof window))throw new Error("Looks like ParallaxController.init() was called on the server. This method must be called on the client.");return new d(e)};var f=d;t.default=f},RXBc:function(e,t,n){"use strict";n.r(t);n("91GP");var r=n("q1tI"),i=n.n(r),a=n("+qya"),o=n("vOnD"),s=n("Zttt"),l=n("AiFK"),u=n("0Caq"),c=n("ww3E"),h=n("Y7ja"),d=n("7Qib"),f=n("IujW"),p=n.n(f),m=n("Rnav"),v=n("ZB7h"),g=n.n(v),y=n("ujXz"),x=n.n(y),b=o.e.div.withConfig({displayName:"Backgroun
1d__AnimatedBackground",componentId:"sc-1rd824d-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;display:block;background-attachment:fixed;"]),_=Object(o.f)(["from{background-position:0 0;}to{background-position:-10000px 5000px;}"]),w=Object(o.e)(b).withConfig({displayName:"Background__Stars",componentId:"sc-1rd824d-1"})(["background:#000 url(",") repeat top center;z-index:0;"],g.a),M=Object(o.e)(b).withConfig({displayName:"Background__Twinkling",componentId:"sc-1rd824d-2"})(["background:transparent url(",") repeat top center;z-index:1;animation:"," 200s linear infinite;"],x.a,_);function E(e){var t=e.className;return i.a.createElement(w,{className:t},i.a.createElement(M,null))}E.defaultProps={className:null};var S=E,C=(n("Z2Ku"),n("L9s1"),n("sEfC")),T=n.n(C),k=n("Womt"),A=o.e.div.withConfig({displayName:"EarthCanvas__Wrapper",componentId:"sc-16m0ujy-0"})(["margin:0px auto;padding:0;width:100%;z-index:2;position:absolute;max-width:1319px;width:100%;bottom:-25%;height:764px;transform:translateX(-50%);left:50%;canvas{display:block;}"]);var O=function(){var e=Object(u.h)(),t=Object(r.useRef)();return Object(r.useEffect)((function(){var n,r,i,a,o=T()((function(){i.aspect=t.current.clientWidth/t.current.clientHeight,i.updateProjectionMatrix(),n.setSize(t.current.clientWidth,t.current.clientHeight)}),200);return function(){(n=new k.Q({antialias:!0,alpha:!0})).setPixelRatio(window.devicePixelRatio?window.devicePixelRatio:1),n.setSize(t.current.clientWidth,t.current.clientHeight),n.autoClear=!1,n.setClearColor(0,0),t.current.appendChild(n.domElement),(r=new k.H).fog=new k.m(161521,1,1e3),i=new k.D(25,t.current.clientWidth/t.current.clientHeight,1,1e3);var s=["xs","sm"].includes(e);i.position.z=s?1e3:600,i.position.x=0,i.position.y=s?170:100,r.add(i),a=new k.C,r.add(a),a.position.y=-180;var l=new k.q(15,2),u=new k.y({color:161521,wireframe:!0,side:k.k}),c=new k.x(l,u);
1c.scale.x=20,c.scale.y=20,c.scale.z=20,a.add(c);var h=new k.b(161521);r.add(h);var d=new k.j(16777215);d.position.set(1,1,1).normalize(),r.add(d),window.addEventListener("resize",o,!1)}(),function e(){requestAnimationFrame(e),a.rotation.z-=.001,a.rotation.y=0,a.rotation.x=0,n.clear(),n.render(r,i)}(),function(){window.removeEventListener("resize",o),t.current&&t.current.removeChild(n.domElement)}}),[e]),i.a.createElement(A,{ref:t,id:"canvas"})},L=o.e.div.withConfig({displayName:"Hero__Wrapper",componentId:"h8xf3-0"})(["overflow:hidden;position:relative;background:#212121;margin-top:-","px;padding-top:","px;height:29.19rem;display:flex;align-items:center;@media screen and (min-width:","){height:42.56rem;}"],m.a,m.a,h.a.md),P=o.e.div.withConfig({displayName:"Hero__Content",componentId:"h8xf3-1"})(["position:relative;z-index:3;top:-","px;@media screen and (min-width:","){max-width:56.25rem;margin:0 auto;}"],m.a/2,h.a.md),R=o.e.h2.withConfig({displayName:"Hero__Title",componentId:"h8xf3-2"})(["color:#fff;font-family:Helvetica;font-size:1.5rem;font-weight:normal;line-height:1.75rem;text-align:center;margin-bottom:1.5rem;p{margin:0;}@media screen and (min-width:","){margin:0 0 5rem;text-align:center;font-size:2.63rem;line-height:3.13rem;}"],h.a.md),I=o.e.p.withConfig({displayName:"Hero__Description",componentId:"h8xf3-3"})(["color:#fff;font-family:'Be Vietnam';font-weight:300;font-size:0.88rem;line-height:1.31rem;text-align:center;margin-bottom:3rem;@media screen and (min-width:","){font-size:1rem;line-height:1.44rem;}"],h.a.md),D=o.e.div.withConfig({displayName:"Hero__ButtonWrapper",componentId:"h8xf3-4"})(["text-align:center;"]);function j(e){var t=e.className,n=e.title,r=e.description,a=Object(d.d)("productSection");return i.a.createElement(L,{className:t},i.a.createElement(P,null,i.a.createElement(u.b,null,n&&i.a.createElement(R,null,i.a.createElement(p.a,{source:n})),r&&i.a.createElement(I,null,r),i.a.createElement(D,null,i.a.createElement(c.a,{onClick:a},"See how it works")))),i.a.createElement(O,null),i.a.createElement(S,null))}j.defaultProps={className:null,title:null,description:null};var N=j,F=(n("tUrg"),n("69d5")),B=n("GTmF"),z=(n("f3/d"),n("pSvK")),H=n("Wbzz"),U=Object(o.e)(H.Link).withConfig({displayName:"Item__Wrapper",componentId:"sc-7kgjax-0"})(["text-decoration:none;background:#0276f1;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-sizing:border-box;padding:50px 15px;margin:0 auto;transition:all 200ms linear;color:#ffffff;&:hover{box-shadow:0px 50px 80px -20px rgba(2,117,241,0.4);}@media screen and (min-width:","){min-height:460px;flex:1;margin-top:0;padding:60px 25px;flex:none;}"],h.a.lg),V=o.e.h4.withConfig({displayName:"Item__Name",componentId:"sc-7kgjax-1"})(["font-family:Helvetica;font-size:18px;font-weight:bold;line-height:22px;margin:40px 0 20px;text-align:center;"]),G=Object(o.e)(B.a).withConfig({displayName:"Item__StyledParagraph",componentId:"sc-7kgjax-2"})(["text-decoration:none;text-align:center;margin:0;color:#fff;"]);function W(e){var t=e.className,n=e.image,r=e.name,a=e.description,o=e.link;return i.a.createElement(U,{to:o,title:r,className:t},i.a.createElement(z.a,{publicURL:n,alt:r}),i.a.createElement(V,null,r),i.a.createElement(G,null,a))}W.defaultProps={className:null};var Z=W,q=o.e.section.withConfig({displayName:"OurProducts__Wrapper",componentId:"sc-141m8q2-0"})(["padding-top:90px;@media screen and (min-width:","){padding:2px 0 0;background:linear-gradient( to bottom,#f4f9ff 0%,#f4f9ff 50%,#ffffff 50%,#ffffff 100% );}"],h.a.md),X=Object(o.e)(B.a).withConfig({displayName:"OurProducts__Description",componentId:"sc-141m8q2-1"})(["text-align:center;max-width:600px;margin:0 auto;"]),J=o.e.div.withConfig({displayName:"OurProducts__ProductLinks",componentId:"sc-141m8q2-2"})(["margin-top:70px;@media screen and (min-width:","){background:linear-gradient( to bottom,#f4f9ff 0%,#f4f9ff 50%,#ffffff 50%,#ffffff 100% );width:100%;}"],h.a.md),Y=o.e.div.withConfig({displayName:"OurProducts__ProductsLinkWrap",componentId:"sc-141m8q2-3"})(["display:grid;grid-template-columns:repeat(1,1fr);grid-gap:22px;@media screen and (min-width:","){grid-template-columns:repeat(2,1fr);}@media screen and (min-width:","){grid-template-columns:repeat(3,1fr);}"],h.a.md,h.a.lg);function K(e){var t=e.className,n=e.title,r=e.description,a=e.links;return i.a.createElement(q,{className:t,id:"productSection"},i.a.createElement(u.b,null,i.a.createElement(F.a,{centered:!0,title:n}),i.a.createElement(X,null,r),i.a.createElement(o.b,{theme:l.c})),i.a.createElement(J,null,i.a.createElement(u.b,null,i.a.createElement(Y,null,a.map((function(e){return i.a.createElement(Z,Object.assign({key:e.link},e))}))))))}K.defaultProps={className:null};var Q=K,$=n("ddpu"),ee=n("ZO1O"),te=o.e.section.withConfig({displayName:"DataPrivacy__Wrapper",componentId:"nh0t0q-0"})(["padding:0 0 100px;@media screen and (min-width:","){padding:0 0 150px;}"],h.a.md),ne=Object(o.e)(u.d).withConfig({displayName:"DataPrivacy__Cards",componentId:"nh0t0q-1"})(["margin-top:30px;"]),re=Object(o.e)(u.a).withConfig({displayName:"DataPrivacy__CardWrap",componentId:"nh0t0q-2"})(["margin-bottom:10px;@media screen and (min-width:","){margin-bottom:20px;}@media screen and (min-width:","){margin-bottom:0;}"],h.a.md,h.a.lg);function ie(e){var t=e.className,n=e.title,r=e.cards;return i.a.createElement(te,{className:t},i.a.createElement(u.b,null,i.a.createElement(u.d,{justify:"center"},i.a.createElement(u.a,{lg:5},i.a.createElement(F.a,{centered:!0,title:n}))),i.a.createElement(ne,null,r.map((function(e){return i.a.createElement(re,{lg:3,md:6},i.a.createElement(ee.a,{centered:!0,key:e.title,title:e.title,icon:i.a.createElement($.a,{type:e.iconType})},e.description))})))))}ie.defaultProps={className:null};var ae=ie,oe=o.e.div.withConfig({displayName:"NoBorder__CardWrapper",componentId:"mkv0sk-0"})(["box-sizing:border-box;height:100%;@media (min-width:","){padding:1rem 0;margin-bottom:0;}"],h.a.md),se=Object(o.e)(ee.a).withConfig({displayName:"NoBorder__StyledCard",componentId:"mkv0sk-1"})(["align-items:center;background:none;text-align:center;p{margin:0;font-size:1rem;line-height:1.75rem;}
1"]),le=o.e.section.withConfig({displayName:"Cards__Wrapper",componentId:"u9i9yv-0"})(["@media screen and (min-width:","){background:#f4f9ff;padding:70px 0 0;}"],h.a.md),ue=Object(o.e)((function(e){return i.a.createElement(oe,null,i.a.createElement(se,e))})).withConfig({displayName:"Cards__StyledCard",componentId:"u9i9yv-1"})(["padding-bottom:0;"]);function ce(e){var t=e.className,n=e.cards;return i.a.createElement(le,{className:t},i.a.createElement(u.b,null,i.a.createElement(u.d,{justify:"center"},n.map((function(e){return i.a.createElement(u.a,{xs:10,md:6,lg:3},i.a.createElement(ue,{centered:!0,icon:i.a.createElement($.a,{type:e.iconType}),key:e.description},i.a.createElement(p.a,{source:e.description})))})))))}ce.defaultProps={className:null};var he=ce,de=o.e.section.withConfig({displayName:"Clients__Wrapper",componentId:"pv30fa-0"})(["padding:40px 0 100px;background:#f4f9ff;h3{text-align:center;}","{text-align:center;@media screen and (min-width:","){margin-bottom:0;}}@media screen and (min-width:","){padding-bottom:5rem;}"],B.a,h.a.md,h.a.md),fe=o.e.ul.withConfig({displayName:"Clients__LogosWrapper",componentId:"pv30fa-1"})(["display:grid;grid-template-columns:repeat(2,1fr);grid-gap:0;justify-items:stretch;justify-content:center;align-items:stretch;list-style-type:none;padding:0;margin:0;border-top:0.5px solid #dadada;border-left:0.5px solid #dadada;@media screen and (min-width:","){margin:4.25rem 0 0;grid-template-columns:repeat(3,1fr);}@media screen and (min-width:","){grid-template-columns:repeat(5,1fr);}"],h.a.md,h.a.lg),pe=o.e.div.withConfig({displayName:"Clients__ActiveWrapper",componentId:"pv30fa-2"})(["position:absolute;display:flex;width:100%;height:100%;top:50%;left:50%;transform:translate(-50%,-50%);align-items:center;justify-content:center;z-index:3;transition:all 200ms ease;span{max-width:80%;}"]),me=Object(o.e)(z.a).withConfig({displayName:"Clients__ActiveImg",componentId:"pv30fa-3"})(["height:auto;width:100%;display:block;transition:all 200ms ease;"]),ve=o.e.li.withConfig({displayName:"Clients__LogoWrapper",componentId:"pv30fa-4"})(["box-sizing:content-box;width:100%;border-right:0.5px solid #dadada;border-bottom:0.5px solid #dadada;height:0;padding-bottom:100%;position:relative;&:hover ","{background:#ffffff;box-shadow:0 20px 50px 0 rgba(0,0,0,0.3);width:120%;height:120%;}span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}"],pe);function ge(e){var t=e.className,n=e.logos,r=e.heading;return i.a.createElement(de,{className:t},i.a.createElement(u.b,null,i.a.createElement(u.d,{justify:"center"},i.a.createElement(u.a,{md:9},i.a.createElement(F.a,{title:r}))),i.a.createElement(fe,null,n.map((function(e){return i.a.createElement(ve,{key:e.image},i.a.createElement(pe,null,i.a.createElement(me,{publicURL:e.image,alt:e.alt})))})))))}ge.defaultProps={className:null};var ye=ge,xe=n("Ir0H");function be(){return(be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _e(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var we=i.a.createElement("path",{id:"Oval",d:"M363 202C418.781 202 464 156.781 464 101C464 45.2192 418.781 0 363 0C307.219 0 262 45.2192 262 101C262 156.781 307.219 202 363 202Z",fill:"#E8EEFA"}),Me=i.a.createElement("path",{id:"Path",opacity:.71,d:"M272.943 314.733L258.925 306.514C257.729 305.811 256.699 303.929 256.632 302.316L256.003 286.916C255.937 285.302 256.855 284.56 258.057 285.269L272.075 293.488C273.271 294.191 274.301 296.073 274.368 297.687L274.997 313.086C275.063 314.7 274.145 315.437 272.943 314.733Z",fill:"#699EFF"}),Ee=i.a.createElement("path",{id:"Path_2",d:"M492.233 295.046L479.134 288.081C478.706 287.852 478.35 288.126 478.339 288.678L478.178 297.195L477 301.632L481.001 300.052L492.039 305.918C492.466 306.147 492.822 305.879 492.833 305.321L493 296.475C493 295.899 492.712 295.362 492.233 295.046Z",fill:"#D9E9FF"}),Se=i.a.createElement("path",{id:"Path_3",d:"M483 296.143C483 296.894 482.536 297.21 481.981 296.854C481.405 296.437 481.039 295.696 481.006 294.879C480.972 294.567 481.095 294.261 481.318 294.104C481.541 293.947 481.82 293.969 482.024 294.162C482.6 294.581 482.967 295.325 483 296.143Z",fill:"white"}),Ce=i.a.createElement("path",{id:"Path_4",d:"M487 297.143C487 297.894 486.531 298.21 485.981 297.854C485.405 297.437 485.039 296.696 485.006 295.879C484.972 295.567 485.095 295.261 485.318 295.104C485.541 294.947 485.82 294.969 486.024 295.162C486.6 295.582 486.966 296.325 487 297.143Z",fill:"white"}),Te=i.a.createElement("path",{id:"Oval_2",d:"M489.522 299.808C489.933 299.558 489.937 298.816 489.531 298.15C489.126 297.484 488.465 297.146 488.055 297.396C487.644 297.645 487.64 298.388 488.046 299.054C488.451 299.72 489.112 300.057 489.522 299.808Z",fill:"white"}),ke=i.a.createElement("path",{id:"Path_5",d:"M111 337.524L218.574 392.554L527.692 395L625 330",stroke:"#E8EEFA",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"}),Ae=i.a.createElement("path",{id:"Rectangle",d:"M225.605 325.802L234.899 329.007L232.866 334.9L223.572 331.694L225.605 325.802Z",fill:"#173891"}),Oe=i.a.createElement("path",{id:"Path_6",d:"M528 239L615 289",stroke:"#E8EEFA",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"}),Le=i.a.createElement("path",{id:"Path_7",d:"M226 239L139 289",stroke:"#E8EEFA",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"}),Pe=i.a.createElement("path",{id:"Path_8",d:"M511.141 308.999C509.332 309.045 507.716 307.852 507.193 306.083C506.256 303.007 508.885 298.067 511.845 299.153C514.805 300.24 511.141 308.999 511.141 308.999Z",fill:"#426CDB"}),Re=i.a.createElement("path",{id:"Path_9",d:"M503.421 313L499 322.009L500.842 324L507 314.372L503.421 313Z",fill:"#FFC2B0"}),Ie=i.a.createElement("path",{d:"M514 379C523.941 379 532 374.747 532 369.5C532 364.253 523.941 360 514 360C504.059 360 496 364.253 496 369.5C496 374.747 504.059 379 514 379Z",fill:"#E8EEFA"}),De=i.a.createElement("path",{id:"Path_10",d:"M342.926 324.46L183.595 232.473C169.387 224.271 171.167 209.94 187.549 200.468L337.627 113.835C354.037 104.362 378.865 103.334 393.066 111.542L552.403 203.546C566.616 211.754 564.831 226.084 548.449 235.557L398.365 322.167C381.955 331.634 357.133 332.668 342.926 324.46Z",fill:"#E8EEFA"}),je=i.a.createElement("path",{id:"Path_11",d:"M549 217.045L398.87 303.204C382.452 312.626 357.613 313.654 343.405 305.491L184 214",stroke:"white",strokeWidth:1.81,strokeLinecap:"round",strokeLinejoin:"round"}),Ne=i.a.createElement("path",{d:"M71.8233 355.997L41.4512 341.481C35.8926 338.258 35.1195 307.886 41.5415 304.164L100.231 270.081C106.648 266.358 116.36 265.95 121.918 269.179L184.248 305.367C189.807 308.59 189.107 314.231 182.691 317.954L124.001 352.036C91.9415 356.139 88.4257 356.009 71.8233 355.997Z",fill:"#E8EEFA"}),Fe=i.a.createElement("path",{d:"M638.826 355.997L608.452 341.481C602.893 338.258 602.12 307.886 608.537 304.164L667.23 270.081C673.647 266.358 683.359 265.95 688.918 269.179L751.246 305.367C756.805 308.59 756.11 314.231 749.694 317.954L691.001 352.036C658.945 356.139 655.429 356.009 638.826 355.997Z",fill:"#E8EEFA"}),Be=i.a.createElement("path",{d:"M360.814 449.998L330.448 435.481C324.891 432.258 324.123 401.887 330.538 398.164L389.216 364.081C395.637 360.358 405.341 359.95 410.899 363.179L473.249 399.367C478.807 402.59 478.107 408.231 471.692 411.954L413.014 446.037C380.933 450.117 377.418 450.009 360.814 449.998Z",fill:"#E8EEFA"}),ze=i.a.createElement("path",{id:"Oval_4",d:"M443.413 167.346C443.548 142.406 408.634 121.999 365.431 121.766C322.228 121.532 287.095 141.56 286.96 166.5C286.825 191.44 321.739 211.847 364.942 212.08C408.145 212.314 443.278 192.286 443.413 167.346Z",fill:"#EDF1F7"}),He=i.a.createElement("path",{d:"M484.127 218.694C484.262 193.754 449.348 173.347 406.145 173.114C362.942 172.88 327.809 192.908 327.674 217.848C327.539 242.788 362.453 263.195 405.656 263.428C448.859 263.662 483.992 243.634 484.127 218.694Z",fill:"#A8C4E5"}),Ue=i.a.createElement("path",{id:"Oval_6",d:"M453.606 208.518C453.812 177.43 414.242 151.964 365.223 151.639C316.203 151.314 276.298 176.252 276.092 207.341C275.886 238.43 315.456 263.896 364.476 264.221C413.495 264.546 453.4 239.607 453.606 208.518Z",fill:"#94B0EB"}),Ve=i.a.createElement("path",{id:"Path_15",d:"M288.148 163L277 198.211L413.396 228L452 198.08L441.981 164.815L288.148 163Z",fill:"#94B0EB"}),Ge=i.a.createElement("path",{id:"Path_16",d:"M448.425 204.866L448.391 204.759C448.243 204.233 448.078 203.707 447.907 203.181L438.331 171.699L418.125 171.461C410.312 167.315 402.016 164.138 393.424 162L409.385 211.912C409.601 212.574 409.806 213.241 409.994 213.909L410.034 214.044C415.098 232.361 408.759 246.279 391 262C402.949 259.297 416.486 255.276 426.063 249.242C447.338 235.828 453.245 222.295 448.425 204.866Z",fill:"#7A9ADE"}),We=i.a.createElement("path",{id:"Oval_7",d:"M443.413 172.807C443.548 147.868 408.634 127.46 365.431 127.227C322.228 126.993 287.095 147.021 286.96 171.961C286.825 196.901 321.739 217.308 364.942 217.542C408.145 217.775 443.278 197.747 443.413 172.807Z",fill:"#A7C1F5"}),Ze=i.a.createElement("path",{id:"Path_17",d:"M447 181C443.308 192.397 435.452 201.994 424.99 207.886C391.18 227.348 335.772 229.148 303.655 206.621C293.559 199.545 284.309 190.022 283 181",stroke:"#C7DAFF",strokeWidth:1.41,strokeLinecap:"round",strokeLinejoin:"round"}),qe=i.a.createElement("path",{id:"Oval_8",d:"M403.224 172.59C403.29 160.463 386.313 150.54 365.305 150.426C344.298 150.313 327.215 160.051 327.149 172.178C327.083 184.305 344.06 194.228 365.068 194.342C386.075 194.455 403.158 184.717 403.224 172.59Z",fill:"#BACEF5"}),Xe=i.a.createElement("path",{id:"Path_18",d:"M277 209C278.774 218.844 284.575 231.23 300.692 241.359C332.789 261.498 367.051 261.201 394.505 256.02C418.038 251.574 448.091 235.693 453 210.112",stroke:"#344FC4",strokeWidth:1.41,strokeLinecap:"round",strokeLinejoin:"round"}),Je=i.a.createElement("path",{id:"Oval_9",d:"M302.423 227.736C304.518 226.512 304.497 222.58 302.377 218.954C300.257 215.327 296.84 213.38 294.746 214.605C292.651 215.829 292.671 219.761 294.792 223.387C296.912 227.014 300.328 228.961 302.423 227.736Z",fill:"#344FC4"}),Ye=i.a.createElement("path",{id:"Oval_10",d:"M316.822 234.914C318.917 233.69 318.896 229.758 316.776 226.132C314.656 222.506 311.239 220.559 309.145 221.783C307.05 223.007 307.07 226.939 309.191 230.566C311.311 234.192 314.727 236.139 316.822 234.914Z",fill:"#344FC4"}),Ke=i.a.createElement("path",{id:"Oval_11",d:"M331.223 241.844C333.318 240.619 333.297 236.687 331.177 233.061C329.057 229.435 325.64 227.488 323.545 228.712C321.451 229.936 321.471 233.868 323.591 237.495C325.712 241.121 329.128 243.068 331.223 241.844Z",fill:"#344FC4"}),Qe=i.a.createElement("path",{id:"Path_19",d:"M301.592 224.34C300.767 225.557 298.936 225.043 297.5 223.196C296.065 221.35 295.576 218.87 296.401 217.658C297.225 216.446 299.057 216.955 300.492 218.801C301.928 220.647 302.434 223.128 301.592 224.34Z",fill:"#B0F4FF"}),$e=i.a.createElement("path",{id:"Path_20",d:"M315.604 231.342C314.772 232.554 312.936 232.045 311.503 230.199C310.07 228.352 309.573 225.877 310.4 224.659C311.227 223.441 313.069 223.962 314.507 225.802C315.946 227.643 316.415 230.13 315.604 231.342Z",fill:"#B0F4FF"}),et=i.a.createElement("path",{id:"Path_21",d:"M329.597 238.343C328.771 239.556 326.938 239.041 325.502 237.199C324.065 235.357 323.575 232.869 324.401 231.657C325.226 230.444 327.059 230.959 328.496 232.801C329.932 234.643 330.428 237.153 329.597 238.343Z",fill:"#B0F4FF"}),tt=i.a.createElement("path",{id:"Path_22",d:"M405 51.6352C405 51.6352 400.854 37.941 378.849 40.2657C356.843 42.5904 315.631 52.4138 296.204 86.2683C278.021 117.945 278.892 146.907 297.12 154.542C299.378 155.476 301.978 154.955 303.698 153.221L405 51.6352Z",fill:"url(#paint0_linear)"}),nt=i.a.createElement("path",{id:"Path_23",d:"M379.793 157.777L360 123.154L412.947 80C412.947 80 414.491 109.456 400.871 120.57C387.251 131.684 389.047 154.161 389.047 154.161C389.945 160.812 382.761 163.724 379.793 157.777Z",fill:"#344FC4"}),rt=i.a.createElement("path",{id:"Path_24",d:"M400 169L382 160.752L389.56 145L400 169Z",fill:"#344FC4"}),it=i.a.createElement("path",{id:"Path_25",d:"M398.791 166.785L379 132.16L431.947 89C431.947 89 433.49 118.462 419.866 129.576C406.242 140.691 408.044 163.168 408.044 163.168C408.941 169.792 401.748 172.731 398.791 166.785Z",fill:"#3666EB"}),at=i.a.createElement("path",{id:"Path_26",d:"M303.712 154.554C303.712 154.554 315.537 189.067 357.579 163.675C399.621 138.282 434.444 106.921 43
11.865 88.7761C429.286 70.6313 423.261 63.3157 405.298 52C405.298 51.9774 293.069 87.3164 303.712 154.554Z",fill:"url(#paint1_linear)"}),ot=i.a.createElement("path",{id:"Path_27",d:"M303.567 153.778C303.567 153.778 298.643 112.159 339.842 85.501C381.042 58.8432 403.267 51.3228 403.267 51.3228",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),st=i.a.createElement("path",{id:"Path_28",d:"M418.64 66.1207C418.64 66.1207 414.496 56.1142 407.937 60.2501C401.379 64.3861 409.633 73.709 417.26 76.6358C424.887 79.5626 421.218 105.107 418.64 111.317C416.124 117.351 408.079 136.805 389.443 142.139",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),lt=i.a.createElement("path",{id:"Path_29",d:"M386.628 73.3643C386.628 73.3643 400.423 71.2963 402.758 75.9521C405.093 80.6079 392.14 85.7892 396.025 90.9648C399.909 96.1404 407.417 87.0831 411.29 92.5186C415.163 97.9541 405.337 106.492 402.487 107.526C399.637 108.56 387.465 109.599 388.505 119.171C389.545 128.742 399.4 122.798 399.4 122.798",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),ut=i.a.createElement("path",{id:"Path_30",d:"M399.411 114.758C399.411 114.758 405.862 110.351 408.197 113.063C410.532 115.775 404.24 121.216 404.24 121.216",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),ct=i.a.createElement("path",{id:"Path_31",d:"M393.695 80.6136C393.695 80.6136 386.961 84.7552 389.291 90.9648C391.62 97.1744 392.57 102.005 390.325 103.039C388.081 104.073 379.623 96.6545 377.378 93.3774C375.134 90.1003 368.4 90.6201 368.897 97.1744C369.395 103.729 380.81 100.485 378.045 112.204C378.045 112.204 376.451 117.041 373.731 118.589",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),ht=i.a.createElement("path",{id:"Path_32",d:"M376.083 75.4379C376.083 75.4379 364.041 77.6359 365.466 85.1394C366.89 92.6429 377.141 76.9465 383.592 80.6192",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),dt=i.a.createElement("path",{id:"Path_33",d:"M346.915 87.2017C346.915 87.2017 357.177 83.7155 360.111 88.0323C363.046 92.3491 346.305 93.852 349.064 99.5022",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),ft=i.a.createElement("path",{id:"Path_34",d:"M334.646 93.9424C334.646 93.9424 339.226 106.492 329.903 115.289C320.58 124.086 337.496 133.065 343.54 123.052C349.584 113.04 340.973 104.768 353.208 104.587C365.443 104.407 366.675 103.034 366.675 103.034",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),pt=i.a.createElement("path",{id:"Path_35",d:"M319.89 128.403C319.89 128.403 321.942 123.182 327.387 122.188",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),mt=i.a.createElement("path",{id:"Path_36",d:"M344.037 122.171C344.037 122.171 348.561 127.194 348.374 131.336",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),vt=i.a.createElement("path",{id:"Path_37",d:"M315.915 144.45C315.915 144.45 320.404 146.004 321.614 150.665C322.824 155.326 322.553 159.293 323.638 159.982",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),gt=i.a.createElement("path",{id:"Path_38",d:"M330.762 134.268C330.762 134.268 318.68 139.133 319.89 147.309",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),yt=i.a.createElement("path",{id:"Path_39",d:"M355.622 148.761C356.142 148.247 362.186 144.45 355.622 136.33C355.622 136.33 354.254 142.885 348.38 142.546C342.505 142.207 333.872 145.133 338.016 156.671C338.016 156.671 341.295 160.124 334.737 162.191C328.178 164.259 326.104 159.084 322.298 168.576",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),xt=i.a.createElement("path",{id:"Path_40",d:"M338.779 159.174C338.779 159.174 351.653 159.807 351.828 166.186",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),bt=i.a.createElement("path",{id:"Path_41",d:"M360.462 120.148C360.462 120.148 362.463 144.806 374.472 139.817C386.481 134.827 385.073 143.738 385.073 143.738",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),_t=i.a.createElement("path",{id:"Path_42",d:"M371.606 129.629C371.091 130.149 368.326 123.109 375.23 122.917C382.133 122.725 380.239 130.663 382.308 132.562C383.449 133.672 385.076 134.127 386.628 133.771",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),wt=i.a.createElement("path",{id:"Path_43",d:"M428.913 79.3196C425.622 83.4329 424.212 88.7394 425.029 93.9424",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Mt=i.a.createElement("path",{id:"Path_44",d:"M307.14 126.753C307.14 126.753 298.66 130.946 298.914 119.301C299.169 107.656 296.195 106.362 296.195 106.362",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Et=i.a.createElement("path",{id:"Path_45",d:"M290.089 124.623C290.089 124.623 286.724 137.161 292.418 141.427C298.111 145.693 302.979 147.704 303.369 148.998",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),St=i.a.createElement("path",{id:"Path_46",d:"M285 139.054C285 139.054 286.238 135.946 289.15 136.319",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Ct=i.a.createElement("path",{id:"Path_47",d:"M287.262 110.893C287.262 110.893 288.607 98.1462 295.25 99.5926C301.894 101.039 303.319 111.3 306.428 112.193C309.538 113.085 310.126 107.752 310.126 104.412",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Tt=i.a.createElement("path",{id:"Path_48",d:"M304.478 89.151C304.478 89.151 305.388 93.9424 313.286 90.185C321.185 86.4276 322.259 90.315 322.332 93.0101C322.406 95.7053 317.809 101.271 320.687 102.305",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}
1),kt=i.a.createElement("path",{id:"Path_49",d:"M298.134 87.2017C298.134 87.2017 300.463 79.8564 308.752 79.3196C317.04 78.7829 316.26 79.5739 321.439 75.4379C326.618 71.302 334.002 76.8618 334.646 79.3196",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),At=i.a.createElement("path",{id:"Path_50",d:"M334.002 69.4826C334.002 69.4826 327.251 70.0024 327.387 65.8608C327.523 61.7192 331.673 61.9791 334.646 62.239C337.62 62.4989 344.62 60.7926 344.75 59.2501",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Ot=i.a.createElement("path",{id:"Path_51",d:"M345.344 81.9866C345.344 81.9866 347.011 74.7825 349.787 73.5112C354.814 71.1833 354.311 67.8214 352.292 65.6009C348.702 61.6457 347.52 58.3291 357.646 56.0294C365.183 54.3344 364.719 49.5317 362.735 44.9606",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Lt=i.a.createElement("path",{id:"Path_52",d:"M361.327 71.4658C361.242 71.2059 360.377 61.804 363.832 60.9451C367.286 60.0863 367.541 66.2055 367.541 66.2055",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Pt=i.a.createElement("path",{id:"Path_53",d:"M371.504 49.6446C371.504 49.6446 383.326 45.503 385.831 48.6954C388.335 51.8878 386.611 53.2664 385.831 53.7806C385.051 54.2948 372.94 56.1989 374.467 59.9055C375.993 63.612 380.725 61.544 380.725 61.544",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Rt=i.a.createElement("path",{id:"Path_54",d:"M396.714 43.2599C396.63 45.1584 391.626 48.8254 391.626 50.334C391.581 52.3398 393.034 54.1875 396.149 54.1875",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),It=i.a.createElement("path",{id:"Path_55",d:"M431.503 103.13C431.503 103.13 428.365 109.142 423.734 109.599C419.104 110.057 426.216 117.928 421.812 123.956C417.407 129.985 406.038 135.449 406.038 159.977",stroke:"#344FC4",strokeWidth:2.6,strokeLinecap:"round",strokeLinejoin:"round"}),Dt=i.a.createElement("path",{id:"Path_56",d:"M146 313.977C146 313.836 146 313.694 146 313.558V289.555H109.595L82.8747 274.076C77.5635 271.001 68.2899 271.386 62.1603 274.937L36.9249 289.555H1.00484V314C0.914527 316.028 2.08853 317.965 4.58329 319.426L64.1245 353.924C69.4357 356.999 78.7092 356.614 84.8445 353.063L140.92 320.576C144.171 318.69 145.887 316.294 146 314V313.977Z",fill:"#94B0EB"}),jt=i.a.createElement("path",{id:"Path_57",d:"M145.989 313.977C145.989 313.835 145.989 313.693 145.989 313.558V289.556H109.33L82.4237 274.078C79.7524 272.538 76.0808 271.864 72.3012 272.023L72 355.987C76.327 356.127 80.6132 355.116 84.4186 353.059L140.885 320.574C144.159 318.689 145.886 316.293 146 313.999L145.989 313.977Z",fill:"#7A9ADE"}),Nt=i.a.createElement("path",{id:"Path_58",d:"M63.5665 329.924L3.61131 295.427C-1.7388 292.352 -1.06508 286.964 5.10595 283.427L61.5737 250.944C67.7447 247.39 77.0862 246.995 82.4363 250.081L142.392 284.572C147.736 287.647 147.068 293.035 140.891 296.577L84.4291 329.061C78.2524 332.615 68.911 332.998 63.5665 329.924Z",fill:"#A7C1F5"}),Ft=i.a.createElement("path",{id:"Path_59",fillRule:"evenodd",clipRule:"evenodd",d:"M68.3413 309.993L38.7771 293.158C36.1447 291.654 36.4745 289.033 39.5162 287.299L67.3747 271.435C70.4164 269.701 75.0216 269.511 77.654 271.015L107.218 287.849C109.856 289.353 109.526 291.98 106.485 293.714L78.6262 309.578C75.5845 311.289 70.9793 311.491 68.3413 309.993Z",stroke:"#C7DAFF",strokeWidth:1.81,strokeLinecap:"round",strokeLinejoin:"round"}),Bt=i.a.createElement("path",{id:"Path_60",d:"M146 298L84.8538 333.073C78.7183 336.598 69.4445 337.008 64.1331 333.928L1 298",stroke:"#C7DAFF",strokeWidth:1.81,strokeLinecap:"round",strokeLinejoin:"round"}),zt=i.a.createElement("path",{id:"Path_61",d:"M715.989 313.977C715.989 313.836 715.989 313.694 715.989 313.558V289.555H679.583L652.863 274.076C647.552 271.001 638.279 271.386 632.149 274.937L606.902 289.555H571.005V314C570.915 316.028 572.089 317.965 574.583 319.426L634.124 353.924C639.436 356.999 648.709 356.614 654.845 353.063L710.92 320.576C714.171 318.69 715.887 316.294 716 314L715.989 313.977Z",fill:"#94B0EB"}),Ht=i.a.createElement("path",{id:"Path_62",d:"M715.989 313.977C715.989 313.835 715.989 313.693 715.989 313.558V289.556H679.33L652.424 274.078C649.752 272.538 646.081 271.864 642.301 272.023L642 355.987C646.327 356.127 650.613 355.116 654.419 353.059L710.885 320.574C714.159 318.689 715.886 316.293 716 313.999L715.989 313.977Z",fill:"#7A9ADE"}),Ut=i.a.createElement("path",{id:"Path_63",d:"M633.566 329.922L573.61 295.43C568.263 292.354 568.932 286.964 575.111 283.431L631.572 250.943C637.746 247.392 647.
1087 246.992 652.434 250.085L712.39 284.577C717.737 287.653 717.068 293.043 710.889 296.576L654.428 329.064C648.254 332.615 638.891 332.998 633.566 329.922Z",fill:"#A7C1F5"}),Vt=i.a.createElement("path",{id:"Path_64",d:"M716 298L654.849 333.073C648.713 336.598 639.439 337.008 634.127 333.928L571 298",stroke:"#C7DAFF",strokeWidth:1.81,strokeLinecap:"round",strokeLinejoin:"round"}),Gt=i.a.createElement("path",{id:"Path_65",d:"M432.983 407.994C432.983 407.853 432.983 407.711 432.983 407.575V383.555H396.585L369.866 368.076C364.555 365.001 355.281 365.386 349.146 368.937L323.917 383.555H288.004V408C287.92 410.028 289.094 411.965 291.588 413.426L351.127 447.924C356.438 450.999 365.712 450.614 371.841 447.063L427.92 414.576C431.171 412.69 432.881 410.294 433 408L432.983 407.994Z",fill:"#94B0EB"}),Wt=i.a.createElement("path",{id:"Path_66",d:"M432.983 407.994C432.983 407.852 432.983 407.71 432.983 407.575V383.556H396.33L369.424 368.078C366.747 366.538 363.075 365.864 359.301 366.023L359 449.987C363.325 450.127 367.61 449.116 371.413 447.059L427.885 414.574C431.159 412.689 432.881 410.293 433 407.999L432.983 407.994Z",fill:"#7A9ADE"}),Zt=i.a.createElement("path",{id:"Path_67",d:"M350.563 423.924L290.608 389.429C285.264 386.355 285.932 380.967 292.108 377.43L348.571 344.944C354.747 341.39 364.087 340.995 369.437 344.081L429.392 378.576C434.736 381.65 434.068 387.037 427.892 390.58L371.446 423.061C365.253 426.615 355.913 426.998 350.563 423.924Z",fill:"#A7C1F5"}),qt=i.a.createElement("path",{id:"Path_68",d:"M433 392L371.855 427.07C365.719 430.601 356.444 431.005 351.132 427.93L288 392",stroke:"#C7DAFF",strokeWidth:1.81,strokeLinecap:"round",strokeLinejoin:"round"}),Xt=i.a.createElement("path",{id:"Path_69",d:"M16 110H16.8982V117.134H20V118H16V110Z",fill:"white"}),Jt=i.a.createElement("path",{id:"Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M23.6496 112C22.2984 112 21 113.137 21 115.014C21 116.88 22.2514 118 23.8259 118C24.5197 118 25.1982 117.803 25.7764 117.431L25.418 116.794C24.9855 117.082 24.4741 117.239 23.9492 117.244C22.8154 117.244 22.0516 116.464 21.9811 115.253H25.9644C25.9905 115.065 26.0023 114.875 25.9996 114.684C25.9996 113.046 25.1595 112 23.6496 112ZM23.6496 112.762C24.5779 112.762 25.1125 113.405 25.1125 114.542H21.9517C22.0692 113.41 22.8271 112.762 23.6496 112.762Z",fill:"white"}),Yt=i.a.createElement("path",{id:"Shape_2",fillRule:"evenodd",clipRule:"evenodd",d:"M30.1086 114.228C27.9533 114.501 27.0015 115.12 27.0015 116.37C26.9831 116.816 27.1346 117.248 27.4177 117.559C27.7008 117.87 28.0882 118.029 28.4821 117.996C29.1086 117.948 29.7011 117.657 30.159 117.172H30.1943L30.2648 117.854H31V114.353C31 112.926 30.4763 112 29.2374 112C28.5171 112.023 27.8178 112.28 27.2231 112.739L27.5554 113.404C27.9937 113.034 28.5197 112.82 29.0662 112.79C29.9022 112.79 30.1086 113.5 30.1086 114.228ZM30.1086 114.864V116.45C29.7553 116.896 29.2627 117.171 28.7338 117.217C28.2303 117.217 27.8375 117.024 27.8375 116.296C27.8375 115.569 28.4216 115.097 30.1086 114.864Z",fill:"white"}),Kt=i.a.createElement("path",{id:"Path_70",d:"M33 112.146H33.7527L33.8333 113.205H33.8656C34.1368 112.52 34.738 112.056 35.4247 112.001C35.622 111.994 35.8182 112.034 36 112.117L35.8226 112.984C35.6498 112.919 35.4678 112.888 35.2849 112.891C34.828 112.891 34.2849 113.252 33.914 114.241V118H33V112.146Z",fill:"white"}),Qt=i.a.createElement("path",{id:"Path_71",d:"M37.0186 112.145H37.8911L37.9777 112.984H38.0149C38.5379 112.398 39.2948 112.042 40.1064 112C41.4121 112 42 112.791 42 114.287V118H40.9356V114.421C40.9356 113.321 40.5767 112.855 39.7537 112.855C39.1349 112.855 38.677 113.164 38.052 113.758V118H37L37.0186 112.145Z",fill:"white"}),$t=i.a.createElement("path",{id:"Path_72",d:"M46 112.152H46.8121L46.8927 112.989H46.933C47.3693 112.422 48.0212 112.065 48.73 112.006C49.4606 111.94 50.1341 112.409 50.3312 113.122C50.9071 112.46 51.5349 112.006 52.2376 112.006C53.4298 112.006 54 112.797 54 114.291V118H53.0266V114.425C53.0266 113.326 52.6811 112.861 51.9496 112.861C51.362 112.942 50.8353 113.269 50.4982 113.762V118H49.5191V114.425C49.5191 113.326 49.1735 112.861 48.4363 112.861C47.8483 112.946 47.321 113.272 46.9791 113.762V118H46L46 112.152Z",fill:"white"}),en=i.a.createElement("path",{id:"Shape_3",fillRule:"evenodd",clipRule:"evenodd",d:"M57.5027 112C56.1762 112 55 113.091 55 115.011C55 116.898 56.1815 118 57.5027 118C58.8238 118 60 116.932 60 115.011C60 113.091 58.8292 112 57.5027 112ZM57.5027 112.795C58.4372 112.795 59.0548 113.693 59.0548 115.011C59.0548 116.312 58.4264 117.199 57.5027 117.199C56.5789 117.199 55.9452 116.33 55.9452 115.011C55.9452 113.693 56.5682 112.795 57.5027 112.795Z",fill:"white"}),tn=i.a.createElement("path",{id:"Path_73",d:"M62.0161 112.146H62.7742L62.8548 113.205H62.8871C63.1547 112.527 63.746 112.064 64.4247 112.001C64.622 111.994 64.8182 112.034 65 112.117L64.8226 112.984C64.6498 112.919 64.4678 112.888 64.2849 112.891C63.828 112.891 63.2796 113.252 62.914 114.241V118H62L62.0161 112.146Z",fill:"white"}),nn=i.a.createElement("path",{id:"Shape_4",fillRule:"evenodd",clipRule:"evenodd",d:"M67.6524 112C66.3027 112 65 113.137 65 115.014C65 116.88 66.2558 118 67.8284 118C68.5194 117.999 69.1949 117.801 69.7708 117.431L69.4187 116.794C68.9844 117.082 68.4718 117.238 67.9458 117.244C66.8191 117.244 66.0563 116.464 65.98 115.253H69.9644C69.9906 115.065 70.0023 114.875 69.9996 114.684C69.9996 113.046 69.1546 112 67.6524 112ZM67.6524 112.762C68.5737 112.762 69.1077 113.405 69.1077 114.542H65.9506C66.0739 113.41 66.825 112.762 67.6524 112.762Z",fill:"white"}),rn=i.a.createElement("path",{id:"Path_74",d:"M630.7 315.755L684.836 284.455C688.032 282.614 687.65 279.359 683.941 277.23L665.813 266.761C662.127 264.632 656.493 264.402 653.297 266.243L599.161 297.52C595.97 299.367 596.347 302.588 600.062 304.751L618.212 315.237C621.876 317.365 627.504 317.602 630.7 315.755Z",fill:"#94A6EB"}),an=i.a.createElement("path",{id:"Path_75",d:"M665.503 233L681 223.986L665.604 215L650 223.986L665.503 233Z",fill:"#47EFFF"}),on=i.a.createElement("path",{id:"Path_76",d:"M681 224V243.766V276.974L665.012 286L665 233.026L681 224Z",fill:"#11A8BF"}),sn=i.a.createElement("path",{id:"Path_77",d:"M665.988 233.026L666 286L650 276.974V224L665.988 233.026Z",fill:"#2AD8E8"}),ln=i.a.createElement("path",{id:"Path_78",d:"M645.511 265L661 255.957L645.551 247L630 256.014L645.511 265Z",fill:"#5986FF"}),un=i.a.createElement("path",{id:"Path_79",d:"M646 298L661 289.024V256L646 264.976V298Z",fill:"#344FC4"}),cn=i.a.createElement("path",{id:"Path_80",d:"M645 298L630 289.024V256L645 264.976V298Z",fill:"#4879FF"}),hn=i.a.createElement("path",{id:"Path_81",d:"M624.528 290L640 280.972L624.624 272L609 281.011L624.528 290Z",fill:"white"}),dn=i.a.createElement("path",{id:"Path_82",d:"M625 311L609 301.463V281L625 289.998V311Z",fill:"#EDF3FF"}),fn=i.a.createElement("path",{id:"Path_83",d:"M625 311V289.998L641 281V302.008L625 311Z",fill:"#A7C1F5"}),pn=i.a.createElement("path",{id:"Path_84",d:"M550.922 39.6916C562.25 45.9725 570.77 61.1953 569.941 73.689C569.941 73.9444 569.902 74.1997 569.879 74.455C570.461 74.6863 571.026 74.9574 571.571 75.2664C578.365 79.0281 583.463 88.1459 582.967 95.6353C582.493 102.875 576.956 105.939 570.454 102.733L524.86 77.3033C517.214 73.0763 511.479 62.8124 512.038 54.3527C512.596 45.8931 519.249 42.347 526.98 46.6307C527.779 47.0758 528.546 47.5763 529.275 48.1286C531.311 37.7342 540.485 33.9271 550.922 39.6916Z",fill:"#E8EEFA"}),mn=i.a.createElement("path",{id:"Path_85",d:"M151.433 141.61C144.574 145.362 139.42 154.45 139.915 161.909C139.915 162.06 139.943 162.216 139.96 162.361C139.603 162.502 139.256 162.664 138.919 162.847C134.811 165.08 131.722 170.54 132.02 175.012C132.307 179.327 135.661 181.153 139.594 179.249L167.201 164.064C171.843 161.552 175.315 155.416 174.977 150.369C174.64 145.323 170.611 143.207 165.929 145.764C165.444 146.027 164.98 146.326 164.539 146.657C163.307 140.443 157.753 138.16 151.433 141.61Z",fill:"#E8EEFA"}),vn=i.a.createElement("path",{id:"Path_86",d:"M674.566 106.61C681.425 110.362 686.585 119.45 686.085 126.909C686.085 127.06 686.085 127.21 686.045 127.361C686.4 127.502 686.746 127.665 687.081 127.847C691.194 130.08 694.283 135.54 693.979 140.012C693.692 144.327 690.344 146.153 686.405 144.249L658.799 129.064C654.163 126.552 650.685 120.416 651.023 115.369C651.36 110.323 655.389 108.207 660.071 110.764C660.556 111.027 661.02 111.326 661.461 111.657C662.693 105.443 668.247 103.16 674.566 106.61Z",fill:"#E8EEFA"}),gn=i.a.createElement("path",{d:"M152.558 417.358C151.207 417.358 149.862 417.551 148.565 417.933C145.82 416.15 142.049 415 137.833 415C129.635 415 123 419.25 123 424.5C123 429.75 129.646 434 137.833 434C143.282 434 148.045 432.12 150.63 429.313C151.265 429.397 151.906 429.439 152.547 429.44C157.767 429.44 162 426.731 162 423.39C162 420.049 157.801 417.358 152.558 417.358Z",fill:"#E8EEFA"}),yn=i.a.createElement("path",{id:"Path_88",d:"M151 387.055C151 392.152 146.175 398 140.113 398C134.051 398 128 393.322 128 388.23C128 383.138 132.893 379 138.927 379C144.961 379 151 381.963 151 387.055Z",fill:"#9EB1FF"}),xn=i.a.createElement("path",{id:"Path_89",d:"M139.997 430C138.893 429.997 138 429.147 138 428.1V386.894C138 386.392 138.21 385.91 138.585 385.555C138.959 385.2 139.467 385 139.997 385C141.101 385 141.997 385.847 142 386.894V428.077C142.005 428.585 141.796 429.073 141.42 429.434C141.044 429.795 140.532 429.999 139.997 430Z",fill:"#344FC4"}),bn=i.a.createElement("path",{id:"Path_90",d:"M145 378.536C145 386.014 139.919 394 131.276 394C122.633 394 115 388.361 115 380.889C115 373.417 120.792 365 129.407 365C138.022 365 145 371.058 145 378.536Z",fill:"#9EB1FF"}),_n=i.a.createElement("path",{id:"Path_91",d:"M160 377.499C160 384.958 153.059 389 144.497 389C135.935 389 129 382.957 129 375.497C129 368.038 135.918 362 144.475 362C153.031 362 160 370.045 160 377.499Z",fill:"#9EB1FF"}),wn=i.a.createElement("path",{id:"Path_92",d:"M140.236 405.963C146.496 404.731 152.373 401.993 157.376 397.98C159.19 396.548 156.647 393.999 154.855 395.414C150.292 398.989 144.954 401.406 139.285 402.465C137.035 402.903 137.986 406.395 140.236 405.963Z",fill:"#344FC4"}),Mn=i.a.createElement("path",{id:"Path_93",d:"M166 396.413C166 401.703 161.075 406 155.003 406C148.931 406 144 401.708 144 396.413C144 391.11
17 151.014 387 157.085 387C163.157 387 166 391.117 166 396.413Z",fill:"#9EB1FF"}),En=i.a.createElement("path",{id:"Path_94",d:"M139.885 360.652C143.968 364.029 144.048 370.417 140.062 374.923C136.076 379.429 129.531 380.337 125.448 376.96C121.365 373.583 122.791 365.756 126.776 361.256C130.762 356.755 135.796 357.276 139.885 360.652Z",fill:"#9EB1FF"}),Sn=i.a.createElement("path",{id:"Path_95",d:"M163 402.511C163 405.999 159.641 410 155.435 410C151.229 410 147 406.8 147 403.312C147 399.823 150.405 397 154.611 397C158.817 397 163 399.006 163 402.511Z",fill:"#9EB1FF"}),Cn=i.a.createElement("path",{id:"Path_96",d:"M163.923 393.857C163.463 395.633 161.115 396.474 158.675 395.728C156.235 394.982 154.622 392.933 155.077 391.145C155.531 389.357 157.879 388.528 160.325 389.274C162.771 390.02 164.378 392.08 163.923 393.857Z",fill:"#B8C6FF"}),Tn=i.a.createElement("path",{id:"Path_97",d:"M138.951 363.611C138.585 365.413 136.295 366.434 133.839 365.822C131.382 365.209 129.684 363.226 130.049 361.388C130.415 359.549 132.705 358.57 135.161 359.183C137.618 359.795 139.316 361.778 138.951 363.611Z",fill:"#9EB1FF"}),kn=i.a.createElement("path",{id:"Oval_12",d:"M156.94 375.771C158.215 372.486 155.256 368.273 150.331 366.362C145.406 364.451 140.38 365.565 139.105 368.85C137.83 372.135 140.789 376.347 145.714 378.258C150.639 380.169 155.665 379.056 156.94 375.771Z",fill:"#B8C6FF"}),An=i.a.createElement("path",{d:"M627 204.594C627 200.062 621.268 196.388 614.197 196.388C613.726 196.388 613.261 196.388 612.802 196.433C609.655 194.322 605.215 193 600.294 193C590.74 193 583 197.961 583 204.084C583 210.116 590.519 215.02 599.88 215.163C601.468 218.539 606.349 221 612.133 221C619.204 221 624.936 217.326 624.936 212.794C624.925 211.739 624.62 210.708 624.057 209.818C625.894 208.405 627 206.579 627 204.594Z",fill:"#E8EEFA"}),On=i.a.createElement("path",{id:"Path_99",d:"M609.06 193.975C617.391 193.665 623.318 183.578 622.987 176.103C622.865 173.307 618.443 173.29 618.571 176.103C618.699 178.916 620.834 181.213 619.275 183.532C617.646 185.949 615.692 191.472 609.206 191.128C606.373 190.978 606.21 194.084 609.06 193.998V193.975Z",fill:"#344FC4"}),Ln=i.a.createElement("path",{id:"Path_100",d:"M607.5 215C606.676 215 606 214.089 606 212.98V185.02C606 183.895 606.676 183 607.5 183C608.324 183 609 183.906 609 185.02V212.98C609 214.072 608.324 215 607.5 215Z",fill:"#344FC4"}),Pn=i.a.createElement("path",{id:"Oval_13",d:"M607.483 169.535C617.027 168.565 624.075 160.997 623.225 152.63C622.375 144.263 613.949 138.266 604.404 139.235C594.86 140.204 587.812 147.773 588.662 156.14C589.512 164.507 597.938 170.504 607.483 169.535Z",fill:"#9EB1FF"}),Rn=i.a.createElement("path",{id:"Oval_14",d:"M612.488 186.069C622.032 185.1 629.08 177.531 628.23 169.164C627.38 160.797 618.954 154.8 609.41 155.77C599.866 156.739 592.818 164.308 593.668 172.675C594.518 181.042 602.944 187.039 612.488 186.069Z",fill:"#9EB1FF"}),In=i.a.createElement("path",{id:"Path_101",d:"M609 165.897C609 172.004 603.183 177 595.997 177C588.811 177 583 172.032 583 165.897C583 159.763 591.286 155 598.467 155C605.647 155 609 159.769 609 165.897Z",fill:"#9EB1FF"}),Dn=i.a.createElement("path",{id:"Path_102",d:"M618.556 149.002C622.851 148.902 627.877 152.578 627.997 157.293C628.117 162.007 624.285 166.899 620.001 166.998C615.717 167.098 612.124 163.334 612.004 158.591C611.884 153.849 614.26 149.085 618.556 149.002Z",fill:"#9EB1FF"}),jn=i.a.createElement("path",{id:"Oval_15",d:"M620.59 152.646C621.6 148.626 617.534 144.141 611.508 142.628C605.483 141.115 599.78 143.146 598.77 147.166C597.76 151.185 601.826 155.67 607.852 157.183C613.877 158.697 619.58 156.665 620.59 152.646Z",fill:"#B8C6FF"}),Nn=i.a.createElement("path",{id:"Oval_16",d:"M621.7 172.645C623.378 170.892 622.607 167.431 619.978 164.915C617.349 162.398 613.858 161.779 612.18 163.532C610.502 165.284 611.273 168.745 613.902 171.261C616.531 173.778 620.023 174.397 621.7 172.645Z",fill:"#B8C6FF"}),Fn=i.a.createElement("path",{d:"M625.945 415.684C625.283 411.277 619.042 408.54 612.003 409.563C611.535 409.636 611.073 409.72 610.623 409.816C607.2 408.22 602.573 407.568 597.673 408.298C588.17 409.681 581.182 415.605 582.077 421.575C582.973 427.544 591.153 431.13 600.491 429.894C602.562 432.94 607.782 434.627 613.537 433.783C620.577 432.76 625.745 428.359 625.083 423.952C624.916 422.931 624.464 421.975 623.777 421.193C625.397 419.546 626.23 417.618 625.945 415.684Z",fill:"#E8EEFA"}),Bn=i.a.createElement("path",{id:"Path_104",d:"M605.5 427C604.676 427 604 426.094 604 424.98V397.02C604 395.895 604.676 395 605.5 395C606.324 395 607 395.911 607 397.02V425.003C606.995 426.094 606.324 427 605.5 427Z",fill:"#344FC4"}),zn=i.a.createElement("path",{id:"Oval_17",d:"M605.687 398.698C615.232 397.729 622.28 390.16 621.43 381.793C620.58 373.426 612.153 367.429 602.609 368.398C593.065 369.368 586.017 376.936 586.867 385.303C587.717 393.67 596.143 399.667 605.687 398.698Z",fill:"#9EB1FF"}),Hn=i.a.createElement("path",{id:"Path_105",d:"M607 394.894C607 401.003 601.179 406 594 406C586.821 406 581 401.03 581 394.894C581 388.759 589.285 384 596.463 384C603.642 384 607 388.764 607 394.894Z",fill:"#9EB1FF"}),Un=i.a.createElement("path",{id:"Path_106",d:"M620 394.894C620 401.003 614.183 406 607.003 406C599.823 406 594 401.03 594 394.894C594 388.759 602.286 384 609.467 384C616.647 384 620 388.764 620 394.894Z",fill:"#9EB1FF"}),Vn=i.a.createElement("path",{id:"Path_107",d:"M616.556 378.002C620.851 377.903 625.877 381.577 625.997 386.29C626.117 391.003 622.285 395.893 618.001 395.998C613.717 396.103 610.124 392.335 610.004 387.594C609.884 382.853 612.238 378.101 616.556 378.002Z",fill:"#9EB1FF"}),Gn=i.a.createElement("path",{id:"Path_108",d:"M618.847 381.829C617.842 385.964 612.171 388.049 606.181 386.475C600.191 384.901 596.148 380.307 597.153 376.171C598.158 372.036 603.829 369.951 609.819 371.525C615.809 373.099 619.852 37
17.699 618.847 381.829Z",fill:"#B8C6FF"}),Wn=i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M400.35 395.607C396.601 395.601 394.737 398.206 397.394 399.743C400.406 401.476 400.423 404.284 397.434 406.011L395.891 406.895C392.913 408.639 388.044 408.628 385.032 406.895C382.37 405.342 377.866 406.416 377.866 408.583C377.877 411.025 374.449 413 370.21 413H368.026C363.787 412.989 360.325 411.002 360.325 408.555C360.314 406.394 355.782 405.302 353.142 406.827C350.164 408.571 345.289 408.566 342.283 406.827L340.735 405.932C337.723 404.171 337.712 401.391 340.701 399.669C343.336 398.144 341.45 395.522 337.707 395.522C333.462 395.511 330 393.525 330 391.077V389.816C329.989 387.369 333.417 385.399 337.656 385.399C341.399 385.405 343.263 382.794 340.606 381.263C337.6 379.496 337.583 376.722 340.572 374.994L342.109 374.105C345.087 372.361 349.962 372.367 352.968 374.105C355.636 375.653 360.139 374.578 360.139 372.417C360.123 369.969 363.551 368 367.79 368H369.974C374.213 368.006 377.675 369.998 377.675 372.445C377.686 374.606 382.223 375.698 384.863 374.173C387.841 372.429 392.711 372.44 395.722 374.173L397.27 375.068C400.276 376.835 400.293 379.609 397.304 381.336C394.67 382.861 396.55 385.483 400.299 385.483C404.538 385.489 408 387.481 408 389.929V391.189C408.017 393.637 404.589 395.607 400.35 395.607ZM355.484 382.715C348.065 387.014 348.104 393.958 355.568 398.268C363.033 402.545 375.097 402.618 382.516 398.319C389.935 394.02 389.896 387.076 382.432 382.766C374.967 378.455 362.903 378.416 355.484 382.715Z",fill:"#A8C4E5"}),Zn=i.a.createElement("path",{id:"Shape_6",fillRule:"evenodd",clipRule:"evenodd",d:"M401 375.239V385.749L400.977 385.778V387.048V387.156V387.281C400.78 389.641 397.447 391.501 393.343 391.501C393.067 391.501 392.79 391.517 392.515 391.546V397.979C392.983 399.357 392.29 400.866 390.427 401.949L388.89 402.846C385.911 404.604 381.036 404.598 378.029 402.846C375.36 401.286 370.856 402.369 370.856 404.547C370.873 407.015 367.444 409 363.205 409H361.02C356.781 408.994 353.318 406.986 353.318 404.519C353.307 402.341 348.769 401.24 346.129 402.778C343.15 404.536 338.275 404.525 335.268 402.778L333.72 401.876C332.177 400.974 331.428 399.788 331.468 398.614L331.434 391.41C331.197 391.376 330.955 391.376 330.702 391.376C326.463 391.371 323 389.363 323 386.895V385.625C323.004 385.422 323.03 385.22 323.079 385.023H323V373.594L331.473 373.026C331.862 372.014 332.611 371.183 333.573 370.695L335.116 369.805C335.234 369.731 335.358 369.668 335.482 369.606L331.417 370.321V361.126C331.417 361.126 342.514 361.949 344.366 362.068L345.312 360.854L355.587 360.071L353.166 355.533L370.434 355L372.371 359.714L392.515 362.102L392.273 369.158L387.657 369.374C388.019 369.518 388.371 369.689 388.709 369.884L390.258 370.786C391.193 371.26 391.933 372.052 392.346 373.021L394.948 374.274L401 375.239ZM349.017 380.503C349.017 384.842 355.064 388.364 362.529 388.364V388.381C369.995 388.381 376.042 384.847 376.042 380.503C376.042 376.158 369.989 372.641 362.529 372.641C355.069 372.641 349.017 376.163 349.017 380.503Z",fill:"#4673EB"}),qn=i.a.createElement("path",{id:"Shape_7",fillRule:"evenodd",clipRule:"evenodd",d:"M394.911 375.064L401 376.018C389.668 382.482 378.944 386.673 368.989 387.992C373.105 386.656 375.881 384.127 375.881 381.224C375.881 376.927 369.792 373.448 362.287 373.448C354.783 373.448 348.694 376.932 348.694 381.224C348.694 384.002 351.243 386.442 355.078 387.817C346.234 386.269 338.178 381.78 331.057 373.813C331.448 372.811 332.201 371.99 333.169 371.507L334.721 370.626C334.84 370.553 334.965 370.492 335.089 370.43L331 371.137V362.059C331 362.059 342.164 362.873 344.027 362.99L344.978 361.79L355.315 361.016L352.88 356.527L370.251 356L372.199 360.662L392.465 363.024L392.221 370.003L387.577 370.217C387.941 370.36 388.295 370.529 388.636 370.722L390.193 371.614C391.134 372.083 391.878 372.865 392.295 373.824L394.911 375.064ZM355.078 387.817C357.168 388.567 359.639 389 362.287 389C364.725 389 367.012 388.634 368.989 387.992C364.165 388.631 359.522 388.595 355.078 387.817Z",fill:"#344FC4"}),Xn=i.a.createElement("path",{id:"Path_109",d:"M392.43 391.976L391.973 386.968L386 381.38C386 381.38 395.334 376.842 395.588 377.004C395.842 377.167 396 391.628 396 391.628C394.835 39
11.938 393.63 392.055 392.43 391.976Z",fill:"#344FC4"}),Jn=i.a.createElement("path",{id:"Path_110",d:"M371.07 405L371 393.438C371 393.438 371.36 389.936 377 391.326L376.742 403.297C376.742 403.297 372.649 402.224 371.07 405Z",fill:"#344FC4"}),Yn=i.a.createElement("path",{id:"Shape_8",fillRule:"evenodd",clipRule:"evenodd",d:"M393.346 379.607C389.604 379.601 387.741 382.212 390.397 383.748C393.419 385.481 393.419 388.289 390.409 390.006L388.872 390.895C385.895 392.639 381.022 392.628 378.016 390.895C375.349 389.347 370.847 390.422 370.847 392.583C370.864 395.031 367.436 397 363.199 397H361.015C356.777 396.994 353.316 395.002 353.316 392.56C353.305 390.394 348.769 389.308 346.13 390.827C343.153 392.571 338.279 392.56 335.274 390.827L333.726 389.932C330.721 388.199 330.704 385.391 333.693 383.664C336.326 382.144 334.441 379.517 330.699 379.517C326.461 379.511 323 377.519 323 375.071V373.816C322.989 371.369 326.416 369.399 330.654 369.399C334.402 369.405 336.259 366.794 333.603 365.257C330.597 363.496 330.581 360.716 333.569 358.994L335.111 358.105C338.082 356.361 342.956 356.372 345.961 358.105C348.629 359.653 353.131 358.578 353.131 356.417C353.114 353.969 356.541 352 360.779 352H362.985C367.223 352.011 370.684 353.998 370.684 356.445C370.695 358.612 375.231 359.698 377.87 358.179C380.847 356.434 385.721 356.445 388.726 358.179L390.274 359.073C393.279 360.806 393.296 363.614 390.307 365.342C387.674 366.861 389.559 369.489 393.301 369.489C397.545 369.495 401 371.487 401 373.934V375.189C401.011 377.637 397.584 379.607 393.346 379.607ZM348.494 366.692C341.076 370.991 341.116 377.935 348.578 382.246C356.04 386.55 368.1 386.59 375.518 382.291C382.935 377.992 382.896 371.042 375.433 366.737C367.971 362.433 355.911 362.393 348.494 366.692Z",fill:"#5A86FA"}),Kn=i.a.createElement("path",{id:"Path_111",d:"M346.63 402.395L346 390.694C346 390.694 347.546 389.642 350.287 390.128C353.027 390.614 353 392.429 353 392.429V404C353 404 351.306 401.015 346.63 402.395Z",fill:"#344FC4"}),Qn=i.a.createElement("path",{id:"Path_112",d:"M505.533 368.467L509.176 365.245C509.894 364.995 510.667 364.935 511.416 365.071C511.739 365.125 511.977 365.398 511.984 365.72V366.409C512.046 367.399 511.95 367.527 511.314 367.857L507.559 369.754C506.903 370.082 506.127 370.082 505.471 369.754L505.323 369.665C504.807 369.34 504.932 368.781 505.533 368.467Z",fill:"#173891"}),$n=i.a.createElement("path",{id:"Path_113",d:"M508 299.869C508 299.869 513.275 294.731 518.612 301.493C523.949 308.256 522.915 310.979 530.026 318.511C538.695 327.701 531.392 338.715 525.084 335.395C518.776 332.075 510.107 315.928 511.021 315.308C512.665 314.181 509.739 299.842 508 299.869Z",fill:"#426CDB"}),er=i.a.createElement("path",{id:"Path_114",d:"M506 337L509.651 364.909C509.817 366.654 511.651 366.024 511.801 364.971L512 339.782L506 337Z",fill:"#FFC2B0"}),tr=i.a.createElement("path",{id:"Path_115",d:"M512.563 372.378L516.265 369.2C516.985 368.964 517.754 368.936 518.488 369.119C518.795 369.196 519.008 369.487 519 369.816V370.531C519 371.559 518.911 371.692 518.283 372L514.491 373.801C513.831 374.101 513.074 374.06 512.446 373.691L512.307 373.586C511.812 373.22 511.929 372.68 512.563 372.378Z",fill:"#173891"}),nr=i.a.createElement("path",{id:"Path_116",d:"M513 340L516.193 369.81C516.331 371.672 518.204 371.061 518.359 369.93L519 343.079L513 340Z",fill:"#FFC2B0"}),rr=i.a.createElement("path",{id:"Path_117",d:"M505.246 324C504.831 332.735 504.941 341.49 505.576 350.211C505.576 350.211 507.317 347.807 511.326 351.725C515.719 356.051 519.294 353.045 521.678 352.132C521.678 352.132 522.265 335.84 521.854 333.913C521.536 332.329 520.994 330.803 520.244 329.387L505.246 324Z",fill:"#173891"}),ir=i.a.createElement("path",{id:"Path_118",d:"M522.242 317L524.856 325.464C525.123 326.33 525.016 327.263 524.56 328.05L520.517 335L519 334.188L522.385 326.426C522.524 326.102 522.524 325.737 522.385 325.413L519.776 319.303L522.242 317Z",fill:"#FFC2B0"}),ar=i.a.createElement("path",{id:"Path_119",d:"M514 306.773C514 308.758 511.514 309.574 509.852 308.57C508.191 307.566 508 305.135 508 303.15C508 301.166 510.576 300.449 512.232 301.448C513.888 302.446 514 304.777 514 306.773Z",fill:"#FFC2B0"}),or=i.a.createElement("path",{id:"Path_120",d:"M503.828 311.485L502 315.134L504.839 316.407L504.935 325.339C504.935 325.339 504.629 331.112 511.18 331.906C516.233 332.52 520.1 329.946 520.401 329.355L519.18 321.228L520.213 323.745L524 322.253C523.042 318.2 520.436 314.72 516.801 312.639C514.615 311.412 512.361 310.009 510.914 309.429C508.631 308.51 506.013 309.097 504.35 310.899C504.18 311.
1079 504.027 311.288 503.828 311.485Z",fill:"#58D6ED"}),sr=i.a.createElement("path",{id:"Path_121",d:"M497.709 326.934L498.975 327.714C499.607 328.095 500.36 328.095 500.664 327.714L500.873 327.448C501.177 327.067 500.917 326.447 500.291 326.066L499.025 325.286C498.393 324.905 497.64 324.905 497.336 325.286L497.127 325.552C496.823 325.933 497.083 326.553 497.709 326.934Z",fill:"#FFC2B0"}),lr=i.a.createElement("path",{id:"Path_122",d:"M508 326.256V325.963L507.618 326.092L507.548 325.905L498.357 320.053C498.217 319.982 498.052 319.982 497.911 320.053L493.764 322.247V322.159L493 322.434V322.744C493.012 322.781 493.036 322.813 493.069 322.832L502.631 328.948C502.77 329.017 502.933 329.017 503.071 328.948L507.878 326.408C507.939 326.382 507.982 326.327 507.994 326.261L508 326.256Z",fill:"#A8C4E5"}),ur=i.a.createElement("path",{id:"Path_123",d:"M502.636 328.948L493.072 322.846C492.962 322.776 492.98 322.66 493.113 322.59L497.921 320.052C498.06 319.983 498.223 319.983 498.361 320.052L507.925 326.154C508.041 326.224 508.018 326.34 507.885 326.41L503.082 328.948C502.942 329.017 502.777 329.017 502.636 328.948Z",fill:"#E1EAF4"}),cr=i.a.createElement("path",{id:"Path_124",d:"M503.939 324.988L502 323.615C502 323.615 502 323.571 502 323.555L502.969 323.012C502.998 322.996 503.032 322.996 503.061 323.012L505 324.385C505 324.385 505 324.429 505 324.445L504.031 324.988C504.002 325.004 503.968 325.004 503.939 324.988Z",fill:"#A8C4E5"}),hr=i.a.createElement("path",{id:"Path_125",d:"M503.203 322.614C503.16 322.337 503.013 322.088 502.793 321.92L493.584 316.05C493.525 316.003 493.448 315.988 493.376 316.01C493.357 316.016 493.339 316.028 493.326 316.044L493 316.371H493.281L493.955 322.322C493.995 322.6 494.143 322.85 494.364 323.016L503.068 328.57L503.343 328.909L503.377 328.995C503.556 329.041 504 328.748 504 328.748L503.203 322.614Z",fill:"white"}),dr=i.a.createElement("path",{id:"Path_126",d:"M502.675 328.946L493.119 323.045C492.887 322.879 492.734 322.627 492.694 322.347L492 316.29C492 316.036 492.117 315.926 492.321 316.053L501.883 321.954C502.113 322.122 502.266 322.373 502.308 322.652L502.996 328.709C503.025 328.969 502.885 329.073 502.675 328.946Z",fill:"#426CDB"}),fr=i.a.createElement("path",{id:"Path_127",d:"M497.998 322.806C498.022 323.022 497.819 323.065 497.544 322.897C497.278 322.741 497.083 322.489 497.002 322.195C496.978 321.975 497.181 321.936 497.452 322.105C497.72 322.26 497.916 322.512 497.998 322.806Z",fill:"white"}),pr=i.a.createElement("path",{id:"Path_128",d:"M511.503 312C510.673 312 510 311.347 510 310.54V306.454C510.003 305.65 510.675 305 511.503 305C512.328 305.003 512.997 305.652 513 306.454V310.54C513 311.344 512.331 311.997 511.503 312Z",fill:"#FFC2B0"}),mr=i.a.createElement("path",{id:"Path_129",d:"M507.06 307C507.803 304.368 509.604 302.197 512 301.045C511.03 300.664 510.042 300.336 509.039 300.061C508.381 299.959 506.546 299.75 506.09 301.711C505.634 303.672 507.06 307 507.06 307Z",fill:"#426CDB"}),vr=i.a.createElement("path",{id:"Path_130",d:"M519.998 338C519.448 337.997 519.002 337.441 519 336.754V335.252C519.002 334.564 519.447 334.006 519.998 334C520.55 334.003 520.998 334.562 521 335.252V336.754C520.998 337.443 520.55 338 519.998 338Z",fill:"#FFC2B0"}),gr=i.a.createElement("path",{id:"Oval_18",d:"M514 307C514.552 307 515 306.552 515 306C515 305.448 514.552 305 514 305C513.448 305 513 305.448 513 306C513 306.552 513.448 307 514 307Z",fill:"#FFC2B0"}),yr=i.a.createElement("path",{id:"Path_131",d:"M223.139 309.604C225.468 312.326 226.767 313.659 230.356 313.977C235.312 314.441 238.666 307.675 241.608 303.956C242.924 302.287 240.612 299.901 239.279 301.563C236.898 304.576 233.658 307.518 229.549 307.072C226.819 306.771 226.264 306.841 224.507 304.79C223.105 303.156 221.073 306.985 222.469 308.619L223.139 309.604Z",fill:"#5981EB"}),xr=i.a.createElement("path",{id:"Path_132",d:"M241.506 302.58L242.572 301.479C243.143 300.91 243.143 299.994 242.572 299.425C241.998 298.858 241.068 298.858 240.494 299.425L239.428 300.52C238.857 301.089 238.857 302.006 239.428 302.575C240.002 303.14 240.929 303.142 241.506 302.58Z",fill:"#FFC2B0"}),br=i.a.createElement("path",{id:"Path_133",d:"M234 308.433L241.188 315.332C241.788 315.919 242.662 316.141 243.474 315.911C244.285 315.681 244.909 315.035 245.106 314.222L248 303L245.498 303.239L242.654 310.548C242.654 310.548 237.997 304.954 236.497 304.732C234.996 304.51 234 308.433 234 308.433Z",fill:"#5981EB"}),_r=i.a.createElement("path",{id:"Path_134",d:"M244.7 306L240.366 304.383C240.09 304.259 239.947 303.98 240.018 303.71L241.737 296.365C241.748 296.241 241.824 296.128 241.942 296.061C242.06 295.995 242.205 295.982 242.335 296.026L246.634 297.572C246.91 297.697 247.053 297.976 246.982 298.246L245.269 305.558C245.227 305.74
11 245.144 305.784 244.97 305.865L244.7 306Z",fill:"#97CBFF"}),wr=i.a.createElement("path",{id:"Path_135",d:"M243.282 299.403C243.282 299.403 239.934 304.279 240.001 303.987L241.684 296.142L242.024 296.029C242.125 295.99 242.239 295.99 242.34 296.029L246.702 297.638C246.833 297.692 246.938 297.788 247 297.907L243.282 299.403Z",fill:"#97CBFF"}),Mr=i.a.createElement("path",{id:"Path_136",d:"M244.656 305.971L240.357 304.419C240.083 304.289 239.944 304.007 240.021 303.737L241.75 296.369C241.759 296.243 241.835 296.128 241.954 296.061C242.073 295.993 242.22 295.981 242.35 296.028L246.643 297.581C246.917 297.71 247.056 297.993 246.979 298.263L245.25 305.631C245.243 305.756 245.168 305.871 245.05 305.939C244.932 306.007 244.785 306.019 244.656 305.971Z",fill:"#426CDB"}),Er=i.a.createElement("path",{id:"Path_137",d:"M244.721 304.997L241 303.48L242.316 297L246 298.512L244.621 304.852C244.621 304.9 244.774 305.019 244.721 304.997Z",fill:"#DBEDFF"}),Sr=i.a.createElement("path",{d:"M219.777 370.85C225.17 373.637 234.339 373.725 240.26 371.052C246.182 368.379 246.615 363.961 241.221 361.158C235.828 358.354 226.659 358.278 220.737 360.956C214.816 363.634 214.389 368.063 219.777 370.85Z",fill:"#A8C4E5"}),Cr=i.a.createElement("path",{id:"Path_139",d:"M222.784 361.479L225.196 361.085C226.789 360.309 227.526 359.748 228.268 360.115L228.481 360.225C229.223 360.592 229.163 361.305 228.344 361.798L224.901 364.672C224.076 365.153 223.029 365.101 222.26 364.541C222.26 364.541 221.845 364.211 222.063 362.737C222.189 361.903 222.129 361.877 222.784 361.479Z",fill:"#173891"}),Tr=i.a.createElement("path",{id:"Path_140",d:"M233.709 367L236.205 367.461C238.044 367.256 238.972 366.956 239.555 367.589L239.719 367.767C240.285 368.395 239.973 369.084 238.994 369.29L234.569 370.957C233.587 371.142 232.588 370.719 232.051 369.89C232.051 369.89 231.768 369.417 232.532 368.034C232.996 367.217 232.923 367.167 233.709 367Z",fill:"#173891"}),kr=i.a.createElement("path",{id:"Path_141",d:"M236 368.063C236 369.312 233 369.312 233 368.063V364H236V368.063Z",fill:"#C6D2F2"}),Ar=i.a.createElement("path",{id:"Path_142",d:"M236.033 364.8C235.642 366.38 232.398 366.263 231.766 365.241C231.973 351.633 230 323 230 323L237.989 323.101C238.095 337.024 237.442 350.943 236.033 364.8Z",fill:"#173891"}),Or=i.a.createElement("path",{id:"Path_143",d:"M224.935 362.004C224.935 363.223 221.978 363.382 222 362.151L222.06 358.146L225 358L224.935 362.004Z",fill:"#C6D2F2"}),Lr=i.a.createElement("path",{id:"Path_144",d:"M225.239 360.168C224.031 361.485 221.52 361.048 221 360.168V323L229 323.812L225.239 360.168Z",fill:"#173891"}),Pr=i.a.createElement("path",{id:"Path_145",d:"M232.739 297.735C232.05 300.042 230.268 300.696 228.761 299.188C227.254 297.681 226.582 294.579 227.271 292.267C227.96 289.954 229.742 289.305 231.249 290.813C232.756 292.321 233.405 295.422 232.739 297.735Z",fill:"#FFC2B0"}),Rr=i.a.createElement("path",{id:"Path_146",d:"M234.816 297.596C234.097 299.919 231.418 300.755 229.839 299.225C228.26 297.694 227.564 294.6 228.284 292.277C229.003 289.954 230.863 289.302 232.442 290.817C234.021 292.331 235.535 295.273 234.816 297.596Z",fill:"#FFC2B0"}),Ir=i.a.createElement("path",{id:"Path_147",d:"M229.37 304.959L229.066 304.897C228.033 304.683 227.85 303.687 228.099 302.735L228.902 297.387C229.14 296.432 230.164 295.832 231.199 296.042L231.502 296.104C232.533 296.322 233.182 297.269 232.955 298.226L232.529 303.569C232.305 304.526 230.403 305.173 229.37 304.959Z",fill:"#FFC2B0"}),Dr=i.a.createElement("path",{id:"Path_148",d:"M227.39 297.326C227.39 297.326 227.546 298.715 230.119 298.987C232.577 299.247 232.294 295.439 234.665 295.025C237.272 294.588 237.451 291.696 236.395 290.431C235.34 289.165 232.502 288.503 230.419 289.443C228.336 290.383 226.075 291.063 227.39 297.326Z",fill:"#173891"}),jr=i.a.createElement("path",{id:"Path_149",d:"M233.967 296.255C233.863 296.65 233.529 296.942 233.123 296.992C232.718 297.043 232.323 296.842 232.125 296.484C231.927 296.127 231.967 295.685 232.224 295.369C232.482 295.052 232.907 294.924 233.297 295.045C233.808 295.204 234.103 295.737 233.967 296.255Z",fill:"#FFC2B0"}),Nr=i.a.createElement("path",{id:"Path_150",d:"M221 322.509C221.444 317.685 221.366 314.162 221.444 308.971C221 295.834 231.438 300.908 232.071 301.226C238.561 304.564 239 305.154 238.8 309.016C238.828 315.42 239.1 323.104 238.961 326.265C237.623 330.666 222.482 325.68 221 322.509Z",fill:"#5981EB"}),Fr=i.a.createElement("path",{id:"Path_151",d:"M246.26 304.996C245.505 304.932 244.944 304.267 245.004 303.507L245.266 300.267C245.33 299.51 245.988 298.946 246.741 299.004C247.493 299.068 248.053 299.73 247.996 300.488L247.734 303.734C247.668 304.489 247.011 305.051 246.26 304.996Z",fill:"#FFC2B0"}),Br=i.a.createElement("path",{id:"Path_152",opacity:.71,d:"M486.889 287.068L498.91 293.476C499.358 293.8 499.618 294.33 499.603 294.889L499.441 303.582L500 307L496.824 303.582L486.694 298.187C486.248 297.859 485.989 297.329 486 296.769L486.174 287.746C486.168 287.153 486.498 286.857 486.889 287.068Z",fill:"#699EFF"}),zr=i.a.createElement("path",{id:"Path_153",d:"M490.994 295.119C491.028 295.432 490.905 295.738 490.682 295.896C490.459 296.053 490.18 296.031 489.976 295.838C489.402 295.418 489.036 294.676 489 293.859C489 293.107 489.469 292.79 490.019 293.146C490.593 293.562 490.959 294.303 490.994 295.119Z",fill:"white"}),Hr=i.a.createElement("path",{id:"Path_154",d:"M493.994 297.129C494.028 297.438 493.905 297.741 493.682 297.897C493.459 298.053 493.18 298.03 492.976 297.84C492.393 297.419 492.026 296.67 492 295.849C492 295.105 492.469 294.792 493.019 295.145C493.601 295.563 493.968 296.31 493.994 297.129Z",fill:"white"}),Ur=i.a.createElement("path",{id:"Path_155",d:"M497.994 298.119C498.028 298.431 497.905 298.738 497.682 298.896C497.459 299.053 497.18 299.031 496.976 298.838C496.401 298.419 496.035 297.676 496 296.858C496 296.112 496.464 295.789 497.019 296.145C497.593 296.562 497.959 297.302 497.994 298.119Z",fill:"white"}),Vr=i.a.createElement("path",{id:"Path_156",opacity:.67,d:"M268.943 318.734L254.931 310.518C253.729 309.815 252.705 307.934 252.632 306.321L252.003 290.928C251.937 289.309 252.855 288.572 254.057 289.253L268.075 297.469C269.277 298.172 270.301 300.053 270.368 301.666L270.997 317.06C271.063 318.701 270.145 319.437 268.943 318.734Z",fill:"#C9D5F5"}),Gr=i.a.createElement("path",{id:"Shape_9",fillRule:"evenodd",clipRule:"evenodd",d:"M265.82 303.667C265.335 303.947 265.738 305.111 266.456 305.514C267.326 306.07 267.892 306.969 267.998 307.9
166V308.431C268.039 309.332 267.408 309.69 266.591 309.237C265.872 308.834 265.551 309.595 266.088 310.44C266.69 311.403 266.737 312.433 266.188 312.747L265.902 312.909C265.353 313.222 264.401 312.702 263.817 311.739C263.28 310.894 262.427 310.804 262.462 311.599C262.503 312.5 261.872 312.858 261.055 312.405L260.634 312.17C259.761 311.614 259.193 310.712 259.087 309.713C259.057 308.918 258.164 308.033 257.679 308.307C257.13 308.627 256.178 308.1 255.594 307.138L255.285 306.645C254.677 305.688 254.637 304.652 255.185 304.339C255.67 304.059 255.267 302.894 254.549 302.491C253.67 301.941 253.1 301.036 253.001 300.034V299.569C252.966 298.668 253.597 298.31 254.409 298.763C255.133 299.166 255.448 298.411 254.917 297.56C254.31 296.597 254.269 295.567 254.818 295.253L255.098 295.091C255.647 294.778 256.605 295.298 257.189 296.261C257.72 297.106 258.573 297.196 258.543 296.401C258.503 295.5 259.133 295.142 259.945 295.595L260.365 295.83C261.24 296.387 261.808 297.291 261.913 298.293C261.948 299.088 262.836 299.972 263.32 299.698C263.869 299.385 264.827 299.905 265.411 300.868L265.721 301.361C266.322 302.323 266.369 303.353 265.82 303.667ZM256.85 301.943C257.1 304.43 258.51 306.675 260.687 308.05C262.713 309.17 264.272 308.291 264.191 306.052C263.937 303.567 262.528 301.325 260.354 299.95C258.316 298.814 256.751 299.704 256.85 301.943Z",fill:"white"}),Wr=i.a.createElement("g",{id:"Group_2",opacity:.71},i.a.createElement("path",{id:"Path_157",d:"M65.4819 259.559C65.4819 259.559 62.2722 255.603 56.506 258.637C52.0969 260.956 54.4282 260.794 49.1237 262.437C45.9928 263.41 41.0318 257.967 33.3285 261.487C19.386 267.83 14.3012 255.189 8.30408 262.175L8.79398 294.681L65.5551 264.444L65.4819 259.559Z",fill:"#699EFF"})),Zr=i.a.createElement("path",{id:"Path_158",d:"M65.7814 264C65.9031 263.997 66 263.91 66 263.804L65.4469 231.229C65.462 231.152 65.4233 231.075 65.3484 231.032C65.2735 230.989 65.1766 230.989 65.1017 231.032C65.0268 231.075 64.9881 231.152 65.0032 231.229L65.5563 263.804C65.5563 263.912 65.657 264 65.7814 264Z",fill:"#5F6CCF"}),qr=i.a.createElement("path",{id:"Path_159",d:"M51.7806 271C51.9028 270.997 52 270.91 52 270.804L51.4452 238.185C51.4435 238.135 51.4187 238.087 51.3764 238.052C51.334 238.017 51.2775 237.999 51.2194 238C51.0972 238.003 51 238.09 51 238.197L51.5613 270.809C51.5613 270.915 51.6595 271 51.7806 271Z",fill:"#5F6CCF"}),Xr=i.a.createElement("path",{id:"Path_160",d:"M37.7856 279C37.8442 278.999 37.8997 278.977 37.9399 278.94C37.9801 278.903 38.0016 278.854 37.9999 278.804L37.4415 246.191C37.4415 246.085 37.3427 246 37.2208 246C37.0988 246 37 246.085 37 246.191L37.5584 278.809C37.5619 278.915 37.6626 279 37.7856 279Z",fill:"#5F6CCF"}),Jr=i.a.createElement("path",{id:"Path_161",d:"M22.7806 287C22.9028 286.997 23 286.91 23 286.803L22.4452 254.163C22.4266 254.069 22.3326 254 22.2226 254C22.1125 254 22.0185 254.069 22 254.163L22.5548 286.803C22.5548 286.912 22.6559 287 22.7806 287Z",fill:"#5F6CCF"}),Yr=i.a.createElement("path",{id:"Path_162",d:"M8.78566 294C8.84421 293.999 8.89969 293.977 8.93987 293.94C8.98005 293.903 9.00165 293.854 8.9999 293.804L8.44157 261.191C8.43806 261.084 8.33734 261 8.21434 261C8.15579 261.001 8.10031 261.023 8.06013 261.06C8.01995 261.097 7.99835 261.146 8.0001 261.196L8.55843 293.792C8.55485 293.846 8.57721 293.899 8.62021 293.939C8.66322 293.978 8.72307 294 8.78566 294Z",fill:"#5F6CCF"}),Kr=i.a.createElement("path",{id:"Path_163",d:"M8.43966 258.958L10.5797 257.947C10.8429 257.793 10.9985 257.552 11 257.295C11 257.047 10.7996 256.931 10.5603 257.042L8.42026 258.053C8.15712 258.207 8.00152 258.448 8 258.705C8.00647 258.953 8.20043 259.069 8.43966 258.958Z",fill:"#ABCFFF"}),Qr=i.a.createElement("path",{id:"Path_164",d:"M22.4184 250.957L24.5697 249.947C24.8385 249.793 24.998 249.55 25 249.29C25 249.043 24.7914 248.932 24.5567 249.043L22.3989 250.053C22.1333 250.213 21.985 250.464 22.0012 250.724C22.0012 250.957 22.1772 251.068 22.4184 250.957Z",fill:"#ABCFFF"}),$r=i.a.createElement("path",{id:"Path_165",d:"M36.4397 243.968L38.5797 242.952C38.8429 242.798 38.9985 242.555 39 242.297C39 242.043 38.7996 241.932 38.5603 242.043L36.4203 243.059C36.1563 243.213 36.0005 243.455 36 243.714C36.0065 243.968 36.2004 244.054 36.4397 243.968Z",fill:"#ABCFFF"}),ei=i.a.createElement("path",{id:"Path_166",d:"M51.4397 236.958L53.5797 235.947C53.8453 235.795 54.0016 235.552 54 235.295C54 235.047 53.7996 234.931 53.5603 235.042L51.4203 236.053C51.1595 236.208 51.0045 236.449 51 236.705C51.0065 236.953 51.2069 237.069 51.4397 236.958Z",fill:"#ABCFFF"}),ti=i.a.createElement("path",{id:"Path_167",d:"M65.4341 229.957L67.5788 228.947C67.845 228.795 68.0016 228.553 68 228.296C68 228.043 67.7991 227.932 67.5659 228.043L65.4212 229.053C65.1548 229.207 64.9985 229.451 65 229.709C65 229.957 65.2009 230.068 65.4341 229.957Z",fill:"#ABCFFF"}),ni=i.a.createElement("path",{d:"M91 294.997C91 297.23 86.2998 299 80.5084 299C74.717 299 70 297.208 70 294.997C70 292.786 74.6946 291 80.4916 291C86.2886 291 91 292.792 91 294.997Z",fill:"#A8C4E5"}),ri=i.a.createElement("path",{id:"Oval_19",d:"M82.5808 294.755C82.5915 292.716 79.7382 291.048 76.2079 291.029C72.6775 291.011 69.8069 292.649 69.7963 294.688C69.7856 296.728 72.6388 298.396 76.1692 298.414C79.6996 298.433 82.5701 296.795 82.5808 294.755Z",fill:"#344FC4"}),ii=i.a.createElement("path",{id:"Path_169",d:"M85 290.717L67 291V272H85V290.717Z",fill:"#4673EB"}),ai=i.a.createElement("path",{id:"Path_170",d:"M82.3631 294.383C78.8528 296.53 73.1549 296.548 69.639 294.383C66.1231 292.219 66.1175 288.775 69.639 286.623
1C73.1604 284.47 78.8472 284.458 82.3631 286.593C85.879 288.729 85.879 292.225 82.3631 294.383Z",fill:"#4673EB"}),oi=i.a.createElement("path",{id:"Path_171",d:"M85 277.307L84.6089 277.07C79.8045 274.31 72.0503 274.31 67.2905 277.07L67 277.241V286.723C67.1117 286.789 67.2235 286.861 67.3464 286.927C72.1453 289.686 79.905 289.686 84.6648 286.954L85 286.756V277.307Z",fill:"#344FC4"}),si=i.a.createElement("path",{id:"Oval_20",d:"M88.5156 280.001C88.5363 276.053 83.0087 272.824 76.1694 272.788C69.3301 272.752 63.769 275.924 63.7483 279.871C63.7276 283.819 69.2552 287.048 76.0945 287.084C82.9338 287.12 88.4949 283.949 88.5156 280.001Z",fill:"#4673EB"}),li=i.a.createElement("rect",{id:"Rectangle_2",x:64,y:275,width:25,height:5,fill:"#4673EB"}),ui=i.a.createElement("path",{id:"Path_172",d:"M85.3646 280.956C80.4946 283.687 72.5795 283.676 67.6867 280.956C62.794 278.237 62.7655 273.756 67.6354 271.036C72.5054 268.317 80.4205 268.317 85.3133 271.064C90.206 273.811 90.2345 278.226 85.3646 280.956Z",fill:"white"}),ci=i.a.createElement("path",{id:"Path_173",d:"M99 249.41C99 238.146 88.9239 229 76.4971 229C64.0704 229 54 238.135 54 249.41C54.0566 255.466 56.9305 261.161 61.7938 264.853C63.9997 267.375 65.4986 270.424 66.1415 273.695C66.6701 276.134 68.4539 278.121 70.8429 278.933C74.717 280.245 78.4599 280.408 82.0259 279.079C84.2912 278.233 85.957 276.298 86.4363 273.954C87.0663 270.735 88.5576 267.74 90.7554 265.281C90.8306 265.205 90.9011 265.124 90.9665 265.039C95.9681 261.352 98.9393 255.572 99 249.41Z",fill:"#47EFFF"}),hi=i.a.createElement("path",{id:"Path_174",d:"M80.8195 276.686C77.8984 278.441 73.1511 278.435 70.2135 276.686C67.276 274.937 67.2595 272.058 70.1805 270.303C73.1016 268.548 77.8489 268.583 80.7865 270.303C83.724 272.024 83.7405 274.925 80.8195 276.686Z",fill:"#21C3D1"}),di=i.a.createElement("path",{id:"Shape_10",fillRule:"evenodd",clipRule:"evenodd",d:"M77.3195 274.998C77.0016 274.998 76.744 274.743 76.744 274.429V259.143L76.5425 259.109C75.7982 258.982 75.0665 258.792 74.3555 258.54V273.064C74.3555 273.378 74.0979 273.633 73.78 273.633C73.4622 273.633 73.2045 273.378 73.2045 273.064V258.039C71.9954 257.469 70.8845 256.715 69.9125 255.803C68.278 254.267 67.2363 252.453 67.0349 250.814C66.8335 249.176 67.5126 247.97 68.8535 247.401C70.1945 246.832 71.2535 246.883 72.1686 247.463C74.2519 248.789 74.3671 252.583 74.3671 252.76V257.265C75.1381 257.569 75.9384 257.794 76.7555 257.937H76.836C77.1986 253.835 78.0964 251.4 79.5698 250.513C80.4064 250.026 81.4373 250.001 82.2978 250.444C84.3927 251.343 85.3998 253.226 84.8531 255.24C84.3063 257.254 82.1078 259.222 78.482 259.222H77.9353V274.338C77.9643 274.511 77.9109 274.688 77.7905 274.817C77.6702 274.946 77.4964 275.013 77.3195 274.998ZM77.9756 258.13C81.2733 258.307 83.2359 256.679 83.6848 255.013C84.0761 253.562 83.351 252.248 81.797 251.599C81.2852 251.326 80.6687 251.326 80.1568 251.599C79.3683 252.02 78.3784 253.556 77.9756 258.102V258.13ZM69.2794 248.493C69.6758 248.314 70.1041 248.213 70.5398 248.197C70.8765 248.195 71.2066 248.29 71.4894 248.47C72.7786 249.289 73.1239 251.872 73.1527 252.811V256.736C70.1542 255.138 68.3759 252.521 68.1629 250.683C67.9594 249.783 68.4267 248.867 69.2794 248.493Z",fill:"#21C3D1"}),fi=i.a.createElement("path",{id:"Oval_21",opacity:.51,d:"M70.5015 248.73C72.3943 244.806 71.6288 240.517 68.7917 239.148C65.9545 237.78 62.1202 239.852 60.2273 243.775C58.3345 247.699 59.1 251.989 61.9371 253.357C64.7743 254.725 68.6087 252.654 70.5015 248.73Z",fill:"white"}),pi=i.a.createElement("path",{id:"Path_175",d:"M628 312L642.079 294.485L644.64 299.693L662.657 272.49L663.545 278.012L679 253",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),mi=i.a.createElement("path",{id:"Path_176",d:"M675 255.583L680 252L678.818 258",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),vi=i.a.createElement("path",{id:"Path_177",d:"M268.27 115C268.27 115 260.597 46.0811 327 13",stroke:"white",strokeWidth:1.81,strokeLinecap:"round",strokeLinejoin:"round"}),gi=i.a.createElement("defs",null,i.a.createElement("linearGradient",{id:"paint0_linear",x1:283.004,y1:154.989,x2:405,y2:154.989,gradientUnits:"userSpaceOnUse"},i.a.createElement("stop",{offset:.09,stopColor:"#4879FF"}),i.a.createElement("stop",{offset:.23,stopColor:"#4A8DFF"}),i.a.createElement("stop",{offset:.92,stopColor:"#3C6CF0"})),i.a.createElement("linearGradient",{id:"paint1_linear",x1:286.964,y1:119.225,x2:357.887,y2:227.17,gradientUnits:"userSpaceOnUse"},i.a.createElement("stop",{offset:.09,stopColor:"#4879FF"}),i.a.createElement("stop",{offset:.23,stopColor:"#4A8DFF"}),i.a.createElement("stop",{offset:.51,stopColor:"#3C6CF0"}))),yi=function(e){var t=e.svgRef,n=_e(e,["svgRef"]);return i.a.createElement("svg",be({width:755,height:450,viewBox:"0 0 755 450",fill:"none",ref:t},n),i.a.createElement("g",{id:"Ts-home-01"}
1,we,Me,Ee,Se,Ce,Te,ke,Ae,Oe,Le,Pe,Re,i.a.createElement("g",{id:"Oval_3",style:{mixBlendMode:"multiply"}},Ie),De,je,i.a.createElement("g",{id:"Path_12",style:{mixBlendMode:"multiply"}},Ne),i.a.createElement("g",{id:"Path_13",style:{mixBlendMode:"multiply"}},Fe),i.a.createElement("g",{id:"Path_14",style:{mixBlendMode:"multiply"}},Be),ze,i.a.createElement("g",{id:"Oval_5",style:{mixBlendMode:"multiply"},opacity:.4},He),Ue,Ve,Ge,We,Ze,qe,Xe,Je,Ye,Ke,Qe,$e,et,tt,nt,rt,it,at,i.a.createElement("g",{id:"Group",style:{mixBlendMode:"multiply"},opacity:.54},ot,st,lt,ut,ct,ht,dt,ft,pt,mt,vt,gt,yt,xt,bt,_t,wt,Mt,Et,St,Ct,Tt,kt,At,Ot,Lt,Pt,Rt,It),Dt,jt,Nt,Ft,Bt,zt,Ht,Ut,Vt,Gt,Wt,Zt,qt,Xt,Jt,Yt,Kt,Qt,$t,en,tn,nn,rn,an,on,sn,ln,un,cn,hn,dn,fn,pn,mn,vn,i.a.createElement("g",{id:"Path_87",style:{mixBlendMode:"multiply"}},gn),yn,xn,bn,_n,wn,Mn,En,Sn,Cn,Tn,kn,i.a.createElement("g",{id:"Path_98",style:{mixBlendMode:"multiply"}},An),On,Ln,Pn,Rn,In,Dn,jn,Nn,i.a.createElement("g",{id:"Path_103",style:{mixBlendMode:"multiply"}},Fn),Bn,zn,Hn,Un,Vn,Gn,i.a.createElement("g",{id:"Shape_5",style:{mixBlendMode:"multiply"},opacity:.4},Wn),Zn,qn,Xn,Jn,Yn,Kn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,lr,ur,cr,hr,dr,fr,pr,mr,vr,gr,yr,xr,br,_r,wr,Mr,Er,i.a.createElement("g",{id:"Path_138",style:{mixBlendMode:"multiply"},opacity:.4},Sr),Cr,Tr,kr,Ar,Or,Lr,Pr,Rr,Ir,Dr,jr,Nr,Fr,Br,zr,Hr,Ur,Vr,Gr,Wr,Zr,qr,Xr,Jr,Yr,Kr,Qr,$r,ei,ti,i.a.createElement("g",{id:"Path_168",style:{mixBlendMode:"multiply"},opacity:.4},ni),ri,ii,ai,oi,si,li,ui,ci,hi,di,fi,pi,mi,vi),gi)},xi=(i.a.forwardRef((function(e,t){return i.a.createElement(yi,be({svgRef:t},e))})),n.p+"static/capacity.35f3e471.svg"),bi=o.e.section.withConfig({displayName:"Capacity__Wrapper",componentId:"sc-1tj46cs-0"})(["padding:85px 0;h3{text-align:center;}@media screen and (min-width:","){padding:140px 0;h3{text-align:left;}}"],h.a.md),_i=o.e.div.withConfig({displayName:"Capacity__ImgWrap",componentId:"sc-1tj46cs-1"})(["display:flex;justify-content:center;@media screen and (min-width:","){margin:0;}"],h.a.lg),wi=Object(o.e)(z.a).withConfig({displayName:"Capacity__StyledImg",componentId:"sc-1tj46cs-2"})(["width:100%;"]);function Mi(e){var t=e.className,n=e.title,r=e.list;return i.a.createElement(bi,{className:t},i.a.createElement(u.b,null,i.a.createElement(u.d,{align:"center",justify:"center"},i.a.createElement(u.a,{lg:6},i.a.createElement(_i,null,i.a.createElement(wi,{publicURL:xi,alt:n}))),i.a.createElement(u.a,{xs:10,lg:5,offset:{lg:1}},i.a.createElement(F.a,{title:n}),i.a.createElement(xe.a,{items:r})))))}Mi.defaultProps={className:null};var Ei=Mi;n.d(t,"query",(function(){return Ci}));var Si=o.e.div.withConfig({displayName:"pages__Wrapper",componentId:"sc-8qvjy6-0"})(["background:#fff;color:#fff;"]),Ci=(t.default=function(e){var t=e.data,n=t.homeJson,r=t.partnersJson,o=n.intro,u=n.cards,c=n.ourProducts,h=n.capacity,d=n.dataPrivacy;
1return i.a.createElement(a.ParallaxProvider,null,i.a.createElement(s.a,{headerTheme:l.a,overflow:!0,pageTitle:"Home"},i.a.createElement(Si,null,i.a.createElement(N,Object.assign({fixed:!0},o)),i.a.createElement(he,{cards:u}),i.a.createElement(Q,c),i.a.createElement(Ei,h),i.a.createElement(ae,d),i.a.createElement(ye,r))))},"161660622")},RjOF:function(e,t,n){"use strict";var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},RsFJ:function(e,t,n){n("pIFo"),(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},SZY9:function(e,t,n){"use strict";n("bWfx"),n("WLL4"),n("jm62"),n("8+KV"),n("0l/t"),n("ioFf"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("q1tI")),i=o(n("17x9")),a=o(n("03l2"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={position:"relative",overflow:"hidden",width:"100%",height:"50vh"},h={position:"absolute",top:0,right:0,bottom:0,left:0},d=function(e){var t=e.children,n=e.className,i=e.layers,o=e.style,s=e.disabled;return r.default.createElement("div",{style:l({},c,{},o),className:"parallax-banner"+(n?" ".concat(n):"")},i.map((function(e,t){var n=e.image,i=e.amount,o=e.children,u=e.expanded,c=void 0===u||u?{top:100*Math.abs(i)*-1+"%",bottom:100*Math.abs(i)*-1+"%"}:{};return r.default.createElement(a.default,{key:"layer-".concat(t),y:[-1*i*100+"%",100*i+"%"],styleInner:h,styleOuter:h,disabled:s},n?r.default.createElement("div",{className:"parallax-banner-layer-".concat(t),style:l({backgroundImage:"url(".concat(n,")"),backgroundPosition:"center",backgroundSize:"cover"},h,{},c)}):r.default.createElement("div",{className:"parallax-banner-layer-".concat(t),style:l({},h,{},c)},o))})),t)};d.defaultProps={disabled:!1},d.propTypes={children:i.default.node,className:i.default.string,disabled:i.default.bool.isRequired,layers:i.default.arrayOf(i.default.shape({amount:i.default.number.isRequired,children:i.default.oneOfType([i.default.node,i.default.func]),expanded:i.default.bool,image:i.default.string})),style:i.default.object};var f=d;t.default=f},Sce3:function(e,t,n){"use strict";var r=n("IPAr"),i=n("ZWk2"),a=n("NBu1");e.exports=d,d.locator=a,d.notInLink=!0;var o="<",s=">",l="@",u="/",c="mailto:",h=c.length;function d(e,t,n){var a,d,f,p,m,v,g,y,x,b,_;if(t.charAt(0)===o){for(this,a="",d=t.length,f=0,p="",v=!1,g="",f++,a=o;f<d&&(m=t.charAt(f),!(r(m)||m===s||m===l||":"===m&&t.charAt(f+1)===u));)p+=m,f++;if(p){if(g+=p,p="",g+=m=t.charAt(f),f++,m===l)v=!0;else{if(":"!==m||t.charAt(f+1)!==u)return;g+=u,f++}for(;f<d&&(m=t.charAt(f),!r(m)&&m!==s);)p+=m,f++;if(m=t.charAt(f),p&&m===s)return!!n||(x=g+=p,a+=g+m,(y=e.now()).column++,y.offset++,v&&(g.slice(0,h).toLowerCase()===c?(x=x.substr(h),y.column+=h,y.offset+=h):g=c+g),b=this.inlineTokenizers,this.inlineTokenizers={text:b.text},_=this.enterLink(),x=this.tokenizeInline(x,y),this.inlineTokenizers=b,_(),e(a)({type:"link",title:null,url:i(g,{nonTerminated:!1}),children:x}))}}}},Syd7:function(e,t,n){"use strict";var r=n("3GlI");e.exports=function(e,t,n){var h,d,f,p,m,v,g,y,x,b,_,w=this.options,M=t.length+1,E=0,S="";if(!w.gfm)return;for(;E<M&&((f=t.charAt(E))===o||f===a);)S+=f,E++;if(b=E,(f=t.charAt(E))!==s&&f!==l)return;E++,d=f,h=1,S+=f;for(;E<M&&(f=t.charAt(E))===d;)S+=f,h++,E++;if(h<u)return;for(;E<M&&((f=t.charAt(E))===o||f===a);)S+=f,E++;p="",m="";for(;E<M&&(f=t.charAt(E))!==i&&f!==s&&f!==l;)f===o||f===a?m+=f:(p+=m+f,m=""),E++;if((f=t.charAt(E))&&f!==i)return;if(n)return!0;(_=e.now()).column+=S.length,_.offset+=S.length,S+=p,p=this.decode.raw(this.unescape(p),_),m&&(S+=m);m="",y="",x="",v="",g="";for(;E<M;)if(f=t.charAt(E),v+=y,g+=x,y="",x="",f===i){for(v?(y+=f,x+=f):S+=f,m="",E++;E<M&&(f=t.charAt(E))===o;)m+=f,E++;if(y+=m,x+=m.slice(b),!(m.length>=c)){for(m="";E<M&&(f=t.charAt(E))===d;)m+=f,E++;if(y+=m,x+=m,!(m.length<h)){for(m="";E<M&&((f=t.charAt(E))===o||f===a);)y+=f,x+=f,E++;if(!f||f===i)break}}}else v+=f,x+=f,E++;return e(S+=v+y)({type:"code",lang:p||null,value:r(g)})};var i="\n",a="\t",o=" ",s="~",l="`",u=3,c=4},Tdpu:function(e,t,n){n("7DDg")("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},U6jy:function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},U8pU:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},UHTB:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.percentMoved=function(e,t,n,r){return(-1*(e-r)+n)/t*100}},"UV+P":function(e,t,n){"use strict";n("DNiP"),n("LK8F"),n("KKXr"),n("V+eJ"),n("bWfx");var r=n("q1tI"),i=n("U6jy"),a=n("TOwV"),o={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=t.renderers[e.type];void 0===e.position&&(e.position=n.node&&n.node.position||o);var h=e.position.start,d=[e.type,h.line,h.column,u].join("-");if(!a.isValidElementType(c))throw new Error("Renderer for type `".concat(e.type,"` not defined or is not renderable"));var f=function(e,t,n,a,o,u){var c={key:t}
1,h="string"==typeof a;n.sourcePos&&e.position&&(c["data-sourcepos"]=function(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}(e.position));n.rawSourcePos&&!h&&(c.sourcePosition=e.position);n.includeNodeIndex&&o.node&&o.node.children&&!h&&(c.index=o.node.children.indexOf(e),c.parentChildCount=o.node.children.length);var d=null!==e.identifier&&void 0!==e.identifier?n.definitions[e.identifier]||{}:null;switch(e.type){case"root":l(c,{className:n.className});break;case"text":c.nodeKey=t,c.children=e.value;break;case"heading":c.level=e.depth;break;case"list":c.start=e.start,c.ordered=e.ordered,c.tight=!e.loose,c.depth=e.depth;break;case"listItem":c.checked=e.checked,c.tight=!e.loose,c.ordered=e.ordered,c.index=e.index,c.children=function(e,t){if(e.loose)return e.children;if(t.node&&e.index>0&&t.node.children[e.index-1].loose)return e.children;return function(e){return e.children.reduce((function(e,t){return e.concat("paragraph"===t.type?t.children||[]:[t])}),[])}(e)}(e,o).map((function(t,r){return s(t,n,{node:e,props:c},r)}));break;case"definition":l(c,{identifier:e.identifier,title:e.title,url:e.url});break;case"code":l(c,{language:e.lang&&e.lang.split(/\s/,1)[0]});break;case"inlineCode":c.children=e.value,c.inline=!0;break;case"link":l(c,{title:e.title||void 0,target:"function"==typeof n.linkTarget?n.linkTarget(e.url,e.children,e.title):n.linkTarget,href:n.transformLinkUri?n.transformLinkUri(e.url,e.children,e.title):e.url});break;case"image":l(c,{alt:e.alt||void 0,title:e.title||void 0,src:n.transformImageUri?n.transformImageUri(e.url,e.children,e.title,e.alt):e.url});break;case"linkReference":l(c,i(d,{href:n.transformLinkUri?n.transformLinkUri(d.href):d.href}));break;case"imageReference":l(c,{src:n.transformImageUri&&d.href?n.transformImageUri(d.href,e.children,d.title,e.alt):d.href,title:d.title||void 0,alt:e.alt||void 0});break;case"table":case"tableHead":case"tableBody":c.columnAlignment=e.align;break;case"tableRow":c.isHeader="tableHead"===o.node.type,c.columnAlignment=o.props.columnAlignment;break;case"tableCell":l(c,{isHeader:o.props.isHeader,align:o.props.columnAlignment[u]});break;case"virtualHtml":c.tag=e.tag;break;case"html":c.isBlock=e.position.start.line!==e.position.end.line,c.escapeHtml=n.escapeHtml,c.skipHtml=n.skipHtml;break;case"parsedHtml":var f;e.children&&(f=e.children.map((function(t,r){return s(t,n,{node:e,props:c},r)}))),c.escapeHtml=n.escapeHtml,c.skipHtml=n.skipHtml,c.element=function(e,t){var n=e.element;if(Array.isArray(n)){var i=r.Fragment||"div";return r.createElement(i,null,n)}if(n.props.children||t){var a=r.Children.toArray(n.props.children).concat(t);return r.cloneElement(n,null,a)}return r.cloneElement(n,null)}(e,f);break;default:l(c,i(e,{type:void 0,position:void 0,children:void 0}))}!h&&e.value&&(c.value=e.value);return c}(e,d,t,c,n,u);return r.createElement(c,f,f.children||e.children&&e.children.map((function(n,r){return s(n,t,{node:e,props:f},r)}))||void 0)}function l(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}e.exports=s},UfUV:function(e,t,n){"use strict";e.exports=function(e,t,n){var r=[];"function"==typeof t&&(n=t,t=null);function i(e){var a;return t&&e.type!==t||(a=n(e,r.concat())),e.children&&!1!==a?function(e,t){var n,a=e.length,o=-1;r.push(t);for(;++o<a;)if((n=e[o])&&!1===i(n))return!1;return r.pop(),!0}(e.children,e):a}i(e)}},VHls:function(e){e.exports=JSON.parse('["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]')},VKs2:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n("q1tI"),a=(r=n("fukl"))&&r.__esModule?r:{default:r};t.default=function(){var e=(0,i.useContext)(a.default);if(!e)throw new Error("Could not find `react-scroll-parallax` context value. Please ensure the component is wrapped in a <ParallaxProvi
1der>");return{parallaxController:e}}},VLQr:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.createId=function(){return++r};var r=0},W8QB:function(e,t,n){"use strict";n("V+eJ"),e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},Womt:function(e,t,n){"use strict";n("hHhE"),n("Oyvg"),n("2Spj"),n("mGWK"),n("CX2u"),n("VRzm"),n("SRfc"),n("dRSK"),n("Ji/l"),n("CyHz"),n("8+KV"),n("pp/T");var r=n("rePB"),i=(n("T39b"),n("9AAn"),n("pIFo"),n("0l/t"),n("Tze0"),n("KKXr"),n("h/M4"),n("Vd3H"),n("XfO3"),n("EK0E"),n("fN96"),n("ODXe")),a=(n("rGqo"),n("yt8O"),n("RW0V"),n("bWfx"),n("AphP"),n("WLL4"),n("Zz4T"),n("xfY5"),n("Ljet"),n("foSv"));function o(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(a.a)(e)););return e}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=o(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}n("91GP"),n("LK8F"),n("FLlr"),n("f3/d"),n("HAE/");var l=n("md7G"),u=n("JX7q"),c=n("Ji7U"),h=(n("Tdpu"),n("Y9lz"),n("nCnK"),n("tuSo"),n("r1bV"),n("Faw5"),n("aqI/"),n("NO8f"),n("sFw1"),n("o0o1")),d=n.n(h),f=(n("ls82"),n("rE2o"),n("ioFf"),n("DW2E"),n("a1Th"),n("h7Nl"),n("Btvt"),n("V+eJ"),n("1OyB")),p=n("vuIU");n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return _c})),n.d(t,"c",(function(){return M})),n.d(t,"d",(function(){return Zc})),n.d(t,"e",(function(){return vn})),n.d(t,"f",(function(){return Vr})),n.d(t,"g",(function(){return rn})),n.d(t,"h",(function(){return El})),n.d(t,"i",(function(){return $s})),n.d(t,"j",(function(){return bc})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return nh})),n.d(t,"m",(function(){return Ss})),n.d(t,"n",(function(){return w})),n.d(t,"o",(function(){return Ai})),n.d(t,"q",(function(){return Su})),n.d(t,"r",(function(){return oc})),n.d(t,"s",(function(){return dl})),n.d(t,"t",(function(){return ml})),n.d(t,"u",(function(){return kr})),n.d(t,"v",(function(){return qt})),n.d(t,"w",(function(){return Gn})),n.d(t,"x",(function(){return si})),n.d(t,"y",(function(){return Ou})),n.d(t,"z",(function(){return xe})),n.d(t,"A",(function(){return A})),n.d(t,"B",(function(){return C})),n.d(t,"C",(function(){return mr})),n.d(t,"D",(function(){return gi})),n.d(t,"E",(function(){return wl})),n.d(t,"F",(function(){return m})),n.d(t,"G",(function(){return ge})),n.d(t,"H",(function(){return Cs})),n.d(t,"J",(function(){return Gs})),n.d(t,"K",(function(){return k})),n.d(t,"L",(function(){return ce})),n.d(t,"M",(function(){return Zt})),n.d(t,"N",(function(){return fn})),n.d(t,"O",(function(){return un})),n.d(t,"P",(function(){return rh})),n.d(t,"Q",(function(){return Ms}));for(var m="137",v=0,g=1,y=2,x=1,b=2,_=3,w=0,M=1,E=2,S=0,C=1,T=2,k=3,A=4,O=5,L=100,P=101,R=102,I=103,D=104,j=200,N=201,F=202,B=203,z=204,H=205,U=206,V=207,G=208,W=209,Z=210,q=0,X=1,J=2,Y=3,K=4,Q=5,$=6,ee=7,te=0,ne=1,re=2,ie=0,ae=1,oe=2,se=3,le=4,ue=5,ce=300,he=301,de=302,fe=303,pe=304,me=306,ve=307,ge=1e3,ye=1001,xe=1002,be=1003,_e=1004,we=1005,Me=1006,Ee=1007,Se=1008,Ce=1009,Te=1010,ke=1011,Ae=1012,Oe=1013,Le=1014,Pe=1015,Re=1016,Ie=1017,De=1018,je=1020,Ne=1021,Fe=1023,Be=1024,ze=1025,He=1026,Ue=1027,Ve=1028,Ge=1029,We=1030,Ze=1031,qe=1033,Xe=33776,Je=33777,Ye=33778,Ke=33779,Qe=35840,$e=35841,et=35842,tt=35843,nt=36196,rt=37492,it=37496,at=37808,ot=37809,st=37810,lt=37811,ut=37812,ct=37813,ht=37814,dt=37815,ft=37816,pt=37817,mt=37818,vt=37819,gt=37820,yt=37821,xt=36492,bt=2201,_t=2400,wt=2500,Mt=3e3,Et=3001,St=3200,Ct=3201,Tt=0,kt=1,At=7680,Ot=519,Lt=35044,Pt=35048,Rt="300 es",It=1035,Dt=function(){function e(){Object(f.a)(this,e)}return Object(p.a)(e,[{key:"addEventListener",value:function(e,t){void 0===this._listeners&&(this._listeners={});var n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}},{key:"hasEventListener",value:function(e,t){if(void 0===this._listeners)return!1;var n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}},{key:"removeEventListener",value:function(e,t){if(void 0!==this._listeners){var n=this._listeners[e];if(void 0!==n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}}}},{key:"dispatchEvent",value:function(e){if(void 0!==this._listeners){var t=this._listeners[e.type];if(void 0!==t){e.target=this;for(var n=t.slice(0),r=0,i=n.length;r<i;r++)n[r].call(this,e);e.target=null}}}}]),e}(),jt=[],Nt=0;Nt<256;Nt++)jt[Nt]=(Nt<16?"0":"")+Nt.toString(16);var Ft=Math.PI/180,Bt=180/Math.PI;function zt(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(jt[255&e]+jt[e>>8&255]+jt[e>>16&255]+jt[e>>24&255]+"-"+jt[255&t]+jt[t>>8&255]+"-"+jt[t>>16&15|64]+jt[t>>24&255]+"-"+jt[63&n|128]+jt[n>>8&255]+"-"+jt[n>>16&255]+jt[n>>24&255]+jt[255&r]+jt[r>>8&255]+jt[r>>16&255]+jt[r>>24&255]).toUpperCase()}function Ht(e,t,n){return Math.max(t,Math.min(n,e))}function Ut(e,t){return(e%t+t)%t}function Vt(e,t,n){return(1-n)*e+n*t}function Gt(e){return 0==(e&e-1)&&0!==e}function Wt(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}var Zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(f.a)(this,e),this.x=t,this.y=n}return Object(p.a)(e,[{key:"set",value:function(e,t){return this.x=e,this.y=t,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.
1y,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y}},{key:"cross",value:function(e){return this.x*e.y-this.y*e.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){var e=Math.atan2(-this.y,-this.x)+Math.PI;return e}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this}},{key:"rotateAround",value:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}},{key:Symbol.iterator,value:d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:case"end":return e.stop()}}),e,this)}))},{key:"width",get:function(){return this.x},set:function(e){this.x=e}},{key:"height",get:function(){return this.y},set:function(e){this.y=e}}]),e}();Zt.prototype.isVector2=!0;var qt=function(){function e(){Object(f.a)(this,e),this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}return Object(p.a)(e,[{key:"set",value:function(e,t,n,r,i,a,o,s,l){var u=this.elements;return u[0]=e,u[1]=r,u[2]=o,u[3]=t,u[4]=i,u[5]=s,u[6]=n,u[7]=a,u[8]=l,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"copy",value:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value:function(e){var t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}},{key:"multiply",value:function(e){return this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],l=n[1],u=n[4],c=n[7],h=n[2],d=n[5
1],f=n[8],p=r[0],m=r[3],v=r[6],g=r[1],y=r[4],x=r[7],b=r[2],_=r[5],w=r[8];return i[0]=a*p+o*g+s*b,i[3]=a*m+o*y+s*_,i[6]=a*v+o*x+s*w,i[1]=l*p+u*g+c*b,i[4]=l*m+u*y+c*_,i[7]=l*v+u*x+c*w,i[2]=h*p+d*g+f*b,i[5]=h*m+d*y+f*_,i[8]=h*v+d*x+f*w,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*a*u-t*o*l-n*i*u+n*o*s+r*i*l-r*a*s}},{key:"invert",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=u*a-o*l,h=o*s-u*i,d=l*i-a*s,f=t*c+n*h+r*d;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);var p=1/f;return e[0]=c*p,e[1]=(r*l-u*n)*p,e[2]=(o*n-r*a)*p,e[3]=h*p,e[4]=(u*t-r*s)*p,e[5]=(r*i-o*t)*p,e[6]=d*p,e[7]=(n*s-l*t)*p,e[8]=(a*t-n*i)*p,this}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}},{key:"getNormalMatrix",value:function(e){return this.setFromMatrix4(e).invert().transpose()}},{key:"transposeIntoArray",value:function(e){var t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}},{key:"setUvTransform",value:function(e,t,n,r,i,a,o){var s=Math.cos(i),l=Math.sin(i);return this.set(n*s,n*l,-n*(s*a+l*o)+a+e,-r*l,r*s,-r*(-l*a+s*o)+o+t,0,0,1),this}},{key:"scale",value:function(e,t){var n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=t,n[4]*=t,n[7]*=t,this}},{key:"rotate",value:function(e){var t=Math.cos(e),n=Math.sin(e),r=this.elements,i=r[0],a=r[3],o=r[6],s=r[1],l=r[4],u=r[7];return r[0]=t*i+n*s,r[3]=t*a+n*l,r[6]=t*o+n*u,r[1]=-n*i+t*s,r[4]=-n*a+t*l,r[7]=-n*o+t*u,this}},{key:"translate",value:function(e,t){var n=this.elements;return n[0]+=e*n[2],n[3]+=e*n[5],n[6]+=e*n[8],n[1]+=t*n[2],n[4]+=t*n[5],n[7]+=t*n[8],this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<9;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}}]),e}();function Xt(e){for(var t=e.length-1;t>=0;--t)if(e[t]>65535)return!0;return!1}qt.prototype.isMatrix3=!0;Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function Jt(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}var Yt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Kt={h:0,s:0,l:0},Qt={h:0,s:0,l:0};function $t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}function en(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}
1function tn(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}var nn,rn=function(){function e(t,n,r){return Object(f.a)(this,e),void 0===n&&void 0===r?this.set(t):this.setRGB(t,n,r)}return Object(p.a)(e,[{key:"set",value:function(e){return e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e),this}},{key:"setScalar",value:function(e){return this.r=e,this.g=e,this.b=e,this}},{key:"setHex",value:function(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this}},{key:"setRGB",value:function(e,t,n){return this.r=e,this.g=t,this.b=n,this}},{key:"setHSL",value:function(e,t,n){if(e=Ut(e,1),t=Ht(t,0,1),n=Ht(n,0,1),0===t)this.r=this.g=this.b=n;else{var r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=$t(i,r,e+1/3),this.g=$t(i,r,e),this.b=$t(i,r,e-1/3)}return this}},{key:"setStyle",value:function(e){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){var r,i=n[1],a=n[2];switch(i){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(r[1],10))/255,this.g=Math.min(255,parseInt(r[2],10))/255,this.b=Math.min(255,parseInt(r[3],10))/255,t(r[4]),this;if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(r[1],10))/100,this.g=Math.min(100,parseInt(r[2],10))/100,this.b=Math.min(100,parseInt(r[3],10))/100,t(r[4]),this;break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){var o=parseFloat(r[1])/360,s=parseInt(r[2],10)/100,l=parseInt(r[3],10)/100;return t(r[4]),this.setHSL(o,s,l)}}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(e)){var u=n[1],c=u.length;if(3===c)return this.r=parseInt(u.charAt(0)+u.charAt(0),16)/255,this.g=parseInt(u.charAt(1)+u.charAt(1),16)/255,this.b=parseInt(u.charAt(2)+u.charAt(2),16)/255,this;if(6===c)return this.r=parseInt(u.charAt(0)+u.charAt(1),16)/255,this.g=parseInt(u.charAt(2)+u.charAt(3),16)/255,this.b=parseInt(u.charAt(4)+u.charAt(5),16)/255,this}return e&&e.length>0?this.setColorName(e):this}},{key:"setColorName",value:function(e){var t=Yt[e.toLowerCase()];return void 0!==t?this.setHex(t):console.warn("THREE.Color: Unknown color "+e),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}},{key:"copySRGBToLinear",value:function(e){return this.r=en(e.r),this.g=en(e.g),this.b=en(e.b),this}},{key:"copyLinearToSRGB",value:function(e){return this.r=tn(e.r),this.g=tn(e.g),this.b=tn(e.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}},{key:"getHexString",value:function(){return("000000"+this.getHex().toString(16)).slice(-6)}},{key:"getHSL",value:function(e){var t,n,r=this.r,i=this.g,a=this.b,o=Math.max(r,i,a),s=Math.min(r,i,a),l=(s+o)/2;if(s===o)t=0,n=0;else{var u=o-s;switch(n=l<=.5?u/(o+s):u/(2-o-s),o){case r:t=(i-a)/u+(i<a?6:0);break;case i:t=(a-r)/u+2;break;case a:t=(r-i)/u+4}t/=6}return e.h=t,e.s=n,e.l=l,e}},{key:"getStyle",value:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"}},{key:"offsetHSL",value:function(e,t,n){return this.getHSL(Kt),Kt.h+=e,Kt.s+=t,Kt.l+=n,this.setHSL(Kt.h,Kt.s,Kt.l),this}},{key:"add",value:function(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}},{key:"addColors",value:function(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}},{key:"addScalar",value:function(e){return this.r+=e,this.g+=e,this.b+=e,this}},{key:"sub",value:function(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}},{key:"multiply",value:function(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}},{key:"multiplyScalar",value:function(e){return this.r*=e,this.g*=e,this.b*=e,this}},{key:"lerp",value:function(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}},{key:"lerpColors",value:function(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}},{key:"lerpHSL",value:function(e,t){this.getHSL(Kt),e.getHSL(Qt);var n=Vt(Kt.h,Qt.h,t),r=Vt(Kt.s,Qt.s,t),i=Vt(Kt.l,Qt.l,t);return this.setHSL(n,r,i),this}},{key:"equals",value:function(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}},{key:"fromBufferAttribute",value:function(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),!0===e.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}},{key:"toJSON",value:function(){return this.getHex()}}]),e}();rn.NAMES=Yt,rn.prototype.isColor=!0,rn.prototype.r=1,rn.prototype.g=1,rn.prototype.b=1;var an=function(){function e(){Object(f.a)(this,e)}return Object(p.a)(e,null,[{key:"getDataURL",value:function(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;var t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===nn&&(nn=Jt("canvas")),nn.width=e.width,nn.height=e.height;var n=nn.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=nn}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}},{key:"sRGBToLinear",value:function(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){var t=Jt("canvas");t.width=e.width,t.height=e.height;var n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);for(var r=n.getImageData(0,0,e.width,e.height),i=r.data,a=0;a<i.length;a++)i[a]=255*en(i[a]/255);return n.putImageData(r,0,0),t}if(e.data){for(var o=e.data.slice(0),s=0;s<o.length;s++)o instanceof Uint8Array||o instanceof Uint8ClampedArray?o[s]=Math.floor(255*en(o[s]/255)):o[s]=en(o[s]);return{data:o,width:e.width,height:e.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}]),e}(),on=0,sn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_IMAGE,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.DEFAULT_MAPPING,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ye,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ye,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Me,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Se,h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Fe,d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:Ce,p=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,m=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Mt;return Object(f.a)(this,t),e=Object(l.a)(this,Object(a.a)(t).call(this)),Object.defineProperty(Object(u.a)(e),"id",{value:on++}),e.uuid=zt(),e.name="",e.image=n,e.mipmaps=[],e.mapping=r,e.wrapS=i,e.wrapT=o,e.magFilter=s,e.minFilter=c,e.anisotropy=p,e.format=h,e.internalFormat=null,e.type=d,e.offset=new Zt(0,0),e.repeat=new Zt(1,1),e.center=new Zt(0,0),e.rotation=0,e.matrixAutoUpdate=!0,e.matrix=new qt,e.generateMipmaps=!0,e.premultiplyAlpha=!1,e.flipY=!0,e.unpackAlignment=4,e.encoding=m,e.userData={},e.version=0,e.onUpdate=null,e.isRenderTargetTexture=!1,e.needsPMREMUpdate=!1,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"updateMatrix",value:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.name=e.name,this.image=e.image,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.encoding=e.encoding,this.userData=JSON.parse(JSON.stringify(e.userData)),this}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];var n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.t
1ype,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){var r=this.image;if(void 0===r.uuid&&(r.uuid=zt()),!t&&void 0===e.images[r.uuid]){var i;if(Array.isArray(r)){i=[];for(var a=0,o=r.length;a<o;a++)r[a].isDataTexture?i.push(ln(r[a].image)):i.push(ln(r[a]))}else i=ln(r);e.images[r.uuid]={uuid:r.uuid,url:i}}n.image=r.uuid}return"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"transformUv",value:function(e){if(this.mapping!==ce)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ge:e.x=e.x-Math.floor(e.x);break;case ye:e.x=e.x<0?0:1;break;case xe:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case ge:e.y=e.y-Math.floor(e.y);break;case ye:e.y=e.y<0?0:1;break;case xe:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),t}(Dt);function ln(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?an.getDataURL(e):e.data?{data:Array.prototype.slice.call(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}sn.DEFAULT_IMAGE=void 0,sn.DEFAULT_MAPPING=ce,sn.prototype.isTexture=!0;var un=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Object(f.a)(this,e),this.x=t,this.y=n,this.z=r,this.w=i}return Object(p.a)(e,[{key:"set",value:function(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setW",value:function(e){return this.w=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}},{key:"multiply",value:function(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"setAxisAngleFromQuaternion",value:function(e){this.w=2*Math.acos(e.w);var t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}},{key:"setAxisAngleFromRotationMatrix",value:function(e){var t,n,r,i,a=e.elements,o=a[0],s=a[4],l=a[8],u=a[
11],c=a[5],h=a[9],d=a[2],f=a[6],p=a[10];if(Math.abs(s-u)<.01&&Math.abs(l-d)<.01&&Math.abs(h-f)<.01){if(Math.abs(s+u)<.1&&Math.abs(l+d)<.1&&Math.abs(h+f)<.1&&Math.abs(o+c+p-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;var m=(o+1)/2,v=(c+1)/2,g=(p+1)/2,y=(s+u)/4,x=(l+d)/4,b=(h+f)/4;return m>v&&m>g?m<.01?(n=0,r=.707106781,i=.707106781):(r=y/(n=Math.sqrt(m)),i=x/n):v>g?v<.01?(n=.707106781,r=0,i=.707106781):(n=y/(r=Math.sqrt(v)),i=b/r):g<.01?(n=.707106781,r=.707106781,i=0):(n=x/(i=Math.sqrt(g)),r=b/i),this.set(n,r,i,t),this}var _=Math.sqrt((f-h)*(f-h)+(l-d)*(l-d)+(u-s)*(u-s));return Math.abs(_)<.001&&(_=1),this.x=(f-h)/_,this.y=(l-d)/_,this.z=(u-s)/_,this.w=Math.acos((o+c+p-1)/2),this}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}},{key:"roundToZero",value:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}},{key:Symbol.iterator,value:d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:return e.next=8,this.w;case 8:case"end":return e.stop()}}),e,this)}))},{key:"width",get:function(){return this.z},set:function(e){this.z=e}},{key:"height",get:function(){return this.w},set:function(e){this.w=e}}]),e}();un.prototype.isVector4=!0;var cn=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this))).width=e,r.height=n,r.depth=1,r.scissor=new un(0,0,e,n),r.scissorTest=!1,r.viewport=new un(0,0,e,n),r.texture=new sn(void 0,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),r.texture.isRenderTargetTexture=!0,r.texture.image={width:e,height:n,depth:1},r.texture.generateMipmaps=void 0!==i.generateMipmaps&&i.generateMipmaps,r.texture.internalFormat=void 0!==i.internalFormat?i.internalFormat:null,r.texture.minFilter=void 0!==i.minFilter?i.minFilter:Me,r.depthBuffer=void 0===i.depthBuffer||i.depthBuffer,r.stencilBuffer=void 0!==i.stencilBuffer&&i.stencilBuffer,r.depthTexture=void 0!==i.depthTexture?i.depthTexture:null,r}return Object(c.a)(t,e),Object(p.a)(t,[{key:"setTexture",value:function(e){e.image={width:this.width,height:this.height,depth:this.depth},this.texture=e}},{key:"setSize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.width===e&&this.height===t&&this.depth===n||(this.width=e,this.height=t,this.depth=n,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.image=Object.assign({},e.texture.image),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}}]),t}(Dt);cn.prototype.isWebGLRenderTarget=!0,function(e){function t(e,n,r){var i;Object(f.a)(this,t);var o=(i=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).texture;i.texture=[];for(var s=0;s<r;s++)i.texture[s]=o.clone();return i}return Object(c.a)(t,e),Object(p.a)(t,[{key:"setSize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(var r=0,i=this.texture.length;r<i;r++)this.texture[r].image.width=e,this.texture[r].image.height=t,this.texture[r].image.depth=n;this.dispose()}return this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t),this}},{key:"copy",value:function(e){this.dispose(),this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.set(0,0,this.width,this.height),this.scissor.set(0,0,this.width,this.height),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.depthTexture=e.depthTexture,this.texture.length=0;for(var t=0,n=e.texture.length;t<n;t++)this.texture[t]=e.texture[t].clone();return this}}]),t}(cn).prototype.isWebGLMultipleRenderTargets=!0;var hn=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n,i))).samples=4,r.ignoreDepthForMultisampleCopy=void 0===i.ignoreDepth||i.ignoreDepth,r.useRenderToTexture=void 0!==i.useRenderToTexture&&i.useRenderToTexture,r.useRenderbuffer=!1===r.useRenderToTexture,r}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.samples=e.samples,this.useRenderToTexture=e.useRenderToTexture,this.useRenderbuffer=e.useRenderbuffer,this}}]),t}(cn);hn.prototype.isWebGLMultisampleRenderTarget=!0;var dn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Object(f.a)(this,e),this._x=t,this._y=n,this._z=r,this._w=i}return Object(p.a)(e,[{key:"set",value:function(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._w)}},{key:"copy",value:function(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}},{key:"setFromEuler",value:function(e,t){if(!e||!e.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,l=o(n/2),u=o(r/2),c=o(i/2),h=s(n/2),d=s(r/2),f=s(i/2);switch(a){case"XYZ":this._x=h*u*c+l*d*f,this._y=l*d*c-h*u*f,this._z=l*u*f+h*d*c,this._w=l*u*c-h*d*f;break;case"YXZ":this._x=h*u*c+l*d*f,this._y=l*d*c-h*u*f,this._z=l*u*f-h*d*c,this._w=l*u*c+h*d*f;break;case"ZXY":this._x=h*u*c-l*d*f,this._y=l*d*c+h*u*f,this._z=l*u*f+h*d*c,this._w=l*u*c-h*d*f;break;case"ZYX":this._x=h*u*c-l*d*f,this._y=l*d*c+h*u*f,this._z=l*u*f-h*d*c,this._w=l*u*c+h*d*f;break;case"YZX":this._x=h*u*c+l*d*f,this._y=l*d*c+h*u*f,this._z=l*u*f-h*d*c,this._w=l*u*c-h*d*f;break;case"XZY":this._x=h*u*c-l*d*f,this._y=l*d*c-h*u*f,this._z=l*u*f+h*d*c,this._w=l*u*c+h*d*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!1!==t&&this._onChangeCallback(),this}},{key:"setFromAxisAngle",value:function(e,t){var n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],l=t[2],u=t[6],c=t[10],h=n+o+c;if(h>0){var d=.5/Math.sqrt(h+1);this._w=.25/d,this._x=(u-s)*d,this._y=(i-l)*d,this._z=(a-r)*d}else if(n>o&&n>c){var f=2*Math.sqrt(1+n-o-c);this._w=(u-s)/f,this._x=.25*f,this._y=(r+a)/f,this._z=(i+l)/f}else if(o>c){var p=2*Math.sqrt(1+o-n-c);this._w=(i-l)/p,this._x=(r+a)/p,this._y=.25*p,this._z=(s+u)/p}else{var m=2*Math.sqrt(1+c-n-o);this._w=(a-r)/m,this._x=(i+l)/m,this._y=(s+u)/m,this._z=.25*m}return this._onChangeCallback(),this}},{key:"setFromUnitVectors",value:function(e,t){var n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}},{key:"angleTo",value:function(e){return 2*Math.acos(Math.abs(Ht(this.dot(e),-1,1)))}},{key:"rotateTowards",value:function(e,t){var n=this.angleTo(e);if(0===n)return this;var r=Math.min(1,t/n);return this.slerp(e,r),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"invert",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}},{key:"dot",value:function(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}},{key:"lengthSq",value:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}},{key:"length",value:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}},{key:"normalize",value:function(){var e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(e,t)):this.multiplyQuaternions(this,e)}},{key:"premultiply",value:function(e){return this.multiplyQuaternions(e,this)}},{key:"multiplyQuaternions",value:function(e,t){var n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,l=t._z,u=t._w;return this._x=n*u+a*o+r*l-i*s,this._y=r*u+a*s+i*o-n*l,this._z=i*u+a*l+n*s-r*o,this._w=a*u-n*o-r*s-i*l,this._onChangeCallback(),this}},{key:"slerp",value:function(e,t){if(0===t)return this;if(1===t)return this.copy(e);var n=this._x,r=this._y,i=this._z,a=this._w,o=a*e._w+n*e._x+r*e._y+i*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;var s=1-o*o;if(s<=Number.EPSILON){var l=1-t;return this._w=l*a+t*this._w,this._x=l*n+t*this._x,this._y=l*r+t*this._y,this._z=l*i+t*this._z,this.normalize(),this._onChangeCallback(),this}var u=Math.sqrt(s),c=Math.atan2(u,o),h=Math.sin((1-t)*c)/u,d=Math.sin(t*c)/u;return this._w=a*h+this._w*d,this._x=n*h+this._x*d,this._y=r*h+this._y*d,this._z=i*h+this._z*d,this._onChangeCallback(),this}},{key:"slerpQuaternions",value:function(e,t,n){return this.copy(e).slerp(t,n)}},{key:"random",value:function(){var e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}},{key:"fromBufferAttribute",value:function(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}},{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"w",get:function(){return this._w},set:function(e){this._w=e,this._onChangeCallback()}}],[{key:"slerp",value:function(e,t,n,r){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(e,t,r)}},{key:"slerpFlat",value:function(e,t,n,r,i,a,o){var s=n[r+0],l=n[r+1
1],u=n[r+2],c=n[r+3],h=i[a+0],d=i[a+1],f=i[a+2],p=i[a+3];if(0===o)return e[t+0]=s,e[t+1]=l,e[t+2]=u,void(e[t+3]=c);if(1===o)return e[t+0]=h,e[t+1]=d,e[t+2]=f,void(e[t+3]=p);if(c!==p||s!==h||l!==d||u!==f){var m=1-o,v=s*h+l*d+u*f+c*p,g=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){var x=Math.sqrt(y),b=Math.atan2(x,v*g);m=Math.sin(m*b)/x,o=Math.sin(o*b)/x}var _=o*g;if(s=s*m+h*_,l=l*m+d*_,u=u*m+f*_,c=c*m+p*_,m===1-o){var w=1/Math.sqrt(s*s+l*l+u*u+c*c);s*=w,l*=w,u*=w,c*=w}}e[t]=s,e[t+1]=l,e[t+2]=u,e[t+3]=c}},{key:"multiplyQuaternionsFlat",value:function(e,t,n,r,i,a){var o=n[r],s=n[r+1],l=n[r+2],u=n[r+3],c=i[a],h=i[a+1],d=i[a+2],f=i[a+3];return e[t]=o*f+u*c+s*d-l*h,e[t+1]=s*f+u*h+l*c-o*d,e[t+2]=l*f+u*d+o*h-s*c,e[t+3]=u*f-o*c-s*h-l*d,e}}]),e}();dn.prototype.isQuaternion=!0;var fn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Object(f.a)(this,e),this.x=t,this.y=n,this.z=r}return Object(p.a)(e,[{key:"set",value:function(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}},{key:"setScalar",value:function(e){return this.x=e,this.y=e,this.z=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setZ",value:function(e){return this.z=e,this}},{key:"setComponent",value:function(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}},{key:"getComponent",value:function(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z)}},{key:"copy",value:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}},{key:"add",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,t)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)}},{key:"addScalar",value:function(e){return this.x+=e,this.y+=e,this.z+=e,this}},{key:"addVectors",value:function(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}},{key:"addScaledVector",value:function(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}},{key:"sub",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,t)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)}},{key:"subScalar",value:function(e){return this.x-=e,this.y-=e,this.z-=e,this}},{key:"subVectors",value:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,t)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)}},{key:"multiplyScalar",value:function(e){return this.x*=e,this.y*=e,this.z*=e,this}},{key:"multiplyVectors",value:function(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}},{key:"applyEuler",value:function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(mn.setFromEuler(e))}},{key:"applyAxisAngle",value:function(e,t){return this.applyQuaternion(mn.setFromAxisAngle(e,t))}},{key:"applyMatrix3",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}},{key:"applyNormalMatrix",value:function(e){return this.applyMatrix3(e).normalize()}},{key:"applyMatrix4",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}},{key:"applyQuaternion",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.x,a=e.
1y,o=e.z,s=e.w,l=s*t+a*r-o*n,u=s*n+o*t-i*r,c=s*r+i*n-a*t,h=-i*t-a*n-o*r;return this.x=l*s+h*-i+u*-o-c*-a,this.y=u*s+h*-a+c*-i-l*-o,this.z=c*s+h*-o+l*-a-u*-i,this}},{key:"project",value:function(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}},{key:"unproject",value:function(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}},{key:"transformDirection",value:function(e){var t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}},{key:"divide",value:function(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}},{key:"divideScalar",value:function(e){return this.multiplyScalar(1/e)}},{key:"min",value:function(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}},{key:"max",value:function(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}},{key:"clamp",value:function(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}},{key:"clampScalar",value:function(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}},{key:"clampLength",value:function(e,t){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}},{key:"roundToZero",value:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}},{key:"dot",value:function(e){return this.x*e.x+this.y*e.y+this.z*e.z}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(e){return this.normalize().multiplyScalar(e)}},{key:"lerp",value:function(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}},{key:"lerpVectors",value:function(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}},{key:"cross",value:function(e,t){return void 0!==t?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t)):this.crossVectors(this,e)}},{key:"crossVectors",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}},{key:"projectOnVector",value:function(e){var t=e.lengthSq();if(0===t)return this.set(0,0,0);var n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}},{key:"projectOnPlane",value:function(e){return pn.copy(this).projectOnVector(e),this.sub(pn)}},{key:"reflect",value:function(e){return this.sub(pn.copy(e).multiplyScalar(2*this.dot(e)))}},{key:"angleTo",value:function(e){var t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;var n=this.dot(e)/t;return Math.acos(Ht(n,-1,1))}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceToSquared(e))}},{key:"distanceToSquared",value:function(e){var t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}},{key:"manhattanDistanceTo",value:function(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}},{key:"setFromSpherical",value:function(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}},{key:"setFromSphericalCoords",value:function(e,t,n){var r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}},{key:"setFromCylindrical",value:function(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}},{key:"setFromCylindricalCoords",value:function(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}},{key:"setFromMatrixPosition",value:function(e){var t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}},{key:"setFromMatrixScale",value:function(e){var t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}},{key:"setFromMatrixColumn",value:function(e,t){return this.fromArray(e.elements,4*t)}},{key:"setFromMatrix3Column",value:function(e,t){return this.fromArray(e.elements,3*t)}},{key:"equals",value:function(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}},{key:"fromArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}},{key:"fromBufferAttribute",value:function(e,t,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}},{key:"randomDirection",value:function(){var e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-Math.pow(e,2));return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}},{key:Symbol.iterator,value:d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.x;case 2:return e.next=4,this.y;case 4:return e.next=6,this.z;case 6:case"end":return e.stop()}}),e,this)}))}]),e}();fn.prototype.isVector3=!0;var pn=new fn,mn=new dn,vn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn(1/0,1/0,1/0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn(-1/0,-1/0,-1/0);Object(f.a)(this,e),this.min=t,this.max=n}return Object(p.a)(e,[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromArray",value:function(e){for(var t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,o=-1/0,s=0,l=e.length;s<l;s+=3){var u=e[s],c=e[s+1],h=e[s+2];u<t&&(t=u),c<n&&(n=c),h<r&&(r=h),u>i&&(i=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(t,n,r),this.max.set(i,a,o),this}},{key:"setFromBufferAttribute",value:function(e){for(var t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,o=-1/0,s=0,l=e.count;s<l;s++){var u=e.getX(s),c=e.getY(s),h=e.getZ(s);u<t&&(t=u),c<n&&(n=c),h<r&&(r=h),u>i&&(i=u),c>a&&(a=c),h>o&&(o=h)}return this.min.set(t,n,r),this.max.set(i,a,o),this}},{key:"setFromPoints",value:function(e){this.makeEmpty();for(var t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}},{key:"setFromCenterAndSize",value:function(e,t){var n=yn.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}},{key:"setFromObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.makeEmpty(),this.expandByObject(e,t)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.min.copy(e.min),this.max.copy(e.max),this}},{key:"makeEmpty",value:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}},{key:"isEmpty",value:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}},{key:"getCenter",value:function(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}},{key:"getSize",value:function(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}},{key:"expandByPoint",value:function(e){return this.min.min(e),this.max.max(e),this}},{key:"expandByVector",value:function(e){return this.min.sub(e),this.max.add(e),this}},{key:"expandByScalar",value:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this}},{key:"expandByObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.updateWorldMatrix(!1,!1);var n=e.geometry;if(void 0!==n)if(t&&null!=n.attributes&&void 0!==n.attributes.position)for(var r=n.attributes.position,i=0,a=r.count;i<a;i++)yn.fromBufferAttribute(r,i).applyMatrix4(e.matrixWorld),this.expandByPoint(yn);else null===n.boundingBox&&n.computeBoundingBox(),xn.copy(n.boundingBox),xn.applyMatrix4(e.matrixWorld),this.union(xn);for(var o=e.children,s=0,l=o.length;s<l;s++)this.expandByObject(o[s],t);return this}},{key:"containsPoint",value:function(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}},{key:"getParameter",value:function(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}},{key:"intersectsBox",value:function(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}},{key:"intersectsSphere",value:function(e){return this.clampPoint(e.center,yn),yn.distanceToSquared(e.center)<=e.radius*e.radiu
1s}},{key:"intersectsPlane",value:function(e){var t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}},{key:"intersectsTriangle",value:function(e){if(this.isEmpty())return!1;this.getCenter(Cn),Tn.subVectors(this.max,Cn),bn.subVectors(e.a,Cn),_n.subVectors(e.b,Cn),wn.subVectors(e.c,Cn),Mn.subVectors(_n,bn),En.subVectors(wn,_n),Sn.subVectors(bn,wn);var t=[0,-Mn.z,Mn.y,0,-En.z,En.y,0,-Sn.z,Sn.y,Mn.z,0,-Mn.x,En.z,0,-En.x,Sn.z,0,-Sn.x,-Mn.y,Mn.x,0,-En.y,En.x,0,-Sn.y,Sn.x,0];return!!On(t,bn,_n,wn,Tn)&&(!!On(t=[1,0,0,0,1,0,0,0,1],bn,_n,wn,Tn)&&(kn.crossVectors(Mn,En),On(t=[kn.x,kn.y,kn.z],bn,_n,wn,Tn)))}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){return yn.copy(e).clamp(this.min,this.max).sub(e).length()}},{key:"getBoundingSphere",value:function(e){return this.getCenter(e.center),e.radius=.5*this.getSize(yn).length(),e}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"applyMatrix4",value:function(e){return this.isEmpty()?this:(gn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),gn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),gn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),gn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),gn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),gn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),gn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),gn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(gn),this)}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}]),e}();vn.prototype.isBox3=!0;var gn=[new fn,new fn,new fn,new fn,new fn,new fn,new fn,new fn],yn=new fn,xn=new vn,bn=new fn,_n=new fn,wn=new fn,Mn=new fn,En=new fn,Sn=new fn,Cn=new fn,Tn=new fn,kn=new fn,An=new fn;function On(e,t,n,r,i){for(var a=0,o=e.length-3;a<=o;a+=3){An.fromArray(e,a);var s=i.x*Math.abs(An.x)+i.y*Math.abs(An.y)+i.z*Math.abs(An.z),l=t.dot(An),u=n.dot(An),c=r.dot(An);if(Math.max(-Math.max(l,u,c),Math.min(l,u,c))>s)return!1}return!0}var Ln=new vn,Pn=new fn,Rn=new fn,In=new fn,Dn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;Object(f.a)(this,e),this.center=t,this.radius=n}return Object(p.a)(e,[{key:"set",value:function(e,t){return this.center.copy(e),this.radius=t,this}},{key:"setFromPoints",value:function(e,t){var n=this.center;void 0!==t?n.copy(t):Ln.setFromPoints(e).getCenter(n);for(var r=0,i=0,a=e.length;i<a;i++)r=Math.max(r,n.distanceToSquared(e[i]));return this.radius=Math.sqrt(r),this}},{key:"copy",value:function(e){return this.center.copy(e.center),this.radius=e.radius,this}},{key:"isEmpty",value:function(){return this.radius<0}},{key:"makeEmpty",value:function(){return this.center.set(0,0,0),this.radius=-1,this}},{key:"containsPoint",value:function(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}},{key:"distanceToPoint",value:function(e){return e.distanceTo(this.center)-this.radius}},{key:"intersectsSphere",value:function(e){var t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}},{key:"intersectsBox",value:function(e){return e.intersectsSphere(this)}},{key:"intersectsPlane",value:function(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}},{key:"clampPoint",value:function(e,t){var n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}},{key:"getBoundingBox",value:function(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}},{key:"applyMatrix4",value:function(e){return this.center.applyM
1atrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}},{key:"translate",value:function(e){return this.center.add(e),this}},{key:"expandByPoint",value:function(e){In.subVectors(e,this.center);var t=In.lengthSq();if(t>this.radius*this.radius){var n=Math.sqrt(t),r=.5*(n-this.radius);this.center.add(In.multiplyScalar(r/n)),this.radius+=r}return this}},{key:"union",value:function(e){return!0===this.center.equals(e.center)?Rn.set(0,0,1).multiplyScalar(e.radius):Rn.subVectors(e.center,this.center).normalize().multiplyScalar(e.radius),this.expandByPoint(Pn.copy(e.center).add(Rn)),this.expandByPoint(Pn.copy(e.center).sub(Rn)),this}},{key:"equals",value:function(e){return e.center.equals(this.center)&&e.radius===this.radius}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),jn=new fn,Nn=new fn,Fn=new fn,Bn=new fn,zn=new fn,Hn=new fn,Un=new fn,Vn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn(0,0,-1);Object(f.a)(this,e),this.origin=t,this.direction=n}return Object(p.a)(e,[{key:"set",value:function(e,t){return this.origin.copy(e),this.direction.copy(t),this}},{key:"copy",value:function(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}},{key:"at",value:function(e,t){return t.copy(this.direction).multiplyScalar(e).add(this.origin)}},{key:"lookAt",value:function(e){return this.direction.copy(e).sub(this.origin).normalize(),this}},{key:"recast",value:function(e){return this.origin.copy(this.at(e,jn)),this}},{key:"closestPointToPoint",value:function(e,t){t.subVectors(e,this.origin);var n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)}},{key:"distanceToPoint",value:function(e){return Math.sqrt(this.distanceSqToPoint(e))}},{key:"distanceSqToPoint",value:function(e){var t=jn.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(jn.copy(this.direction).multiplyScalar(t).add(this.origin),jn.distanceToSquared(e))}},{key:"distanceSqToSegment",value:function(e,t,n,r){Nn.copy(e).add(t).multiplyScalar(.5),Fn.copy(t).sub(e).normalize(),Bn.copy(this.origin).sub(Nn);var i,a,o,s,l=.5*e.distanceTo(t),u=-this.direction.dot(Fn),c=Bn.dot(this.direction),h=-Bn.dot(Fn),d=Bn.lengthSq(),f=Math.abs(1-u*u);if(f>0)if(a=u*c-h,s=l*f,(i=u*h-c)>=0)if(a>=-s)if(a<=s){var p=1/f;o=(i*=p)*(i+u*(a*=p)+2*c)+a*(u*i+a+2*h)+d}else a=l,o=-(i=Math.max(0,-(u*a+c)))*i+a*(a+2*h)+d;else a=-l,o=-(i=Math.max(0,-(u*a+c)))*i+a*(a+2*h)+d;else a<=-s?o=-(i=Math.max(0,-(-u*l+c)))*i+(a=i>0?-l:Math.min(Math.max(-l,-h),l))*(a+2*h)+d:a<=s?(i=0,o=(a=Math.min(Math.max(-l,-h),l))*(a+2*h)+d):o=-(i=Math.max(0,-(u*l+c)))*i+(a=i>0?l:Math.min(Math.max(-l,-h),l))*(a+2*h)+d;else a=u>0?-l:l,o=-(i=Math.max(0,-(u*a+c)))*i+a*(a+2*h)+d;return n&&n.copy(this.direction).multiplyScalar(i).add(this.origin),r&&r.copy(Fn).multiplyScalar(a).add(Nn),o}},{key:"intersectSphere",value:function(e,t){jn.subVectors(e.center,this.origin);var n=jn.dot(this.direction),r=jn.dot(jn)-n*n,i=e.radius*e.radius;if(r>i)return null;var a=Math.sqrt(i-r),o=n-a,s=n+a;return o<0&&s<0?null:o<0?this.at(s,t):this.at(o,t)}},{key:"intersectsSphere",value:function(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}},{key:"distanceToPlane",value:function(e){var t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}},{key:"intersectPlane",value:function(e,t){var n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}},{key:"intersectsPlane",value:function(e){var t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}},{key:"intersectBox",value:function(e,t){var n,r,i,a,o,s,l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,h=this.origin;return l>=0?(n=(e.min.x-h.x)*l,r=(e.max.x-h.x)*l):(n=(e.max.x-h.x)*l,r=(e.min.x-h.x)*l),u>=0?(i=(e.min.y-h.y)*u,a=(e.max.y-h.y)*u):(i=(e.max.y-h.y)*u,a=(e.min.y-h.y)*u),n>a||i>r?null:((i>n||n!=n)&&(n=i),(a<r||r!=r)&&(r=a),c>=0?(o=(e.min.z-h.z)*c,s=(e.max.z-h.z)*c):(o=(e.max.z-h.z)*c,s=(e.min.z-h.z)*c),n>s||o>r?null:((o>n||n!=n)&&(n=o),(s<r||r!=r)&&(r=s),r<0?null:this.at(n>=0?n:r,t)))}},{key:"intersectsBox",value:function(e){return null!==this.intersectBox(e,jn)}},{key:"intersectTriangle",value:function(e,t,n,r,i){zn.subVectors(t,e),Hn.subVectors(n,e),Un.crossVectors(zn,Hn);var a,o=this.direction.dot(Un);if(o>0){if(r)return null;a=1}else{if(!(o<0))return null;a=-1,o=-o}Bn.subVectors(this.origin,e);var s=a*this.direction.dot(Hn.crossVectors(Bn,Hn));if(s<0)return null;var l=a*this.direction.dot(zn.cross(Bn));if(l<0)return null;if(s+l>o)return null;var u=-a*Bn.dot(Un);return u<0?null:this.at(u/o,i)}},{key:"applyMatrix4",value:function(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}},{key:"equals",value:function(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Gn=function(){function e(){Object(f.a)(this,e),this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}return Object(p.a)(e,[{key:"set",value:function(e,t,n,r,i,a,o,s,l,u,c,h,d,f,p,m){var v=this.elements;return v[0]=e,v[4]=t,v[8]=n,v[12]=r,v[1]=i,v[5]=a,v[9]=o,v[13]=s,v[2]=l,v[6]=u,v[10]=c,v[14]=h,v[3]=d,v[7]=f,v[11]=p,v[15]=m,this}},{key:"identity",value:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}},{key:"clone",value:function(){return(new e).fromArray(this.elements)}},{key:"copy",value:function(e){var t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}},{key:"copyPosition",value:function(e){var t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}},{key:"setFromMatrix3",value:function(e){var t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}},{key:"extractBasis",value:function(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}},{key:"makeBasis",value:function(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}},{key:"extractRotation",value:function(e){var t=this.elements,n=e.elements,r=1/Wn.setFromMatrixColumn(e,0).length(),i=1/Wn.setFromMatrixColumn(e,1).length(),a=1/Wn.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromEuler",value:function(e){e&&e.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),l=Math.sin(r),u=Math.cos(i),c=Math.sin(i);if("XYZ"===e.order){var h=a*u,d=a*c,f=o*u,p=o*c;t[0]=s*u,t[4]=-s*c,t[8]=l,t[1]=d+f*l,t[5]=h-p*l,t[9]=-o*s,t[2]=p-h*l,t[6]=f+d*l,t[10]=a*s}else if("YXZ"===e.order){var m=s*u,v=s*c,g=l*u,y=l*c;t[0]=m+y*o,t[4]=g*o-v,t[8]=a*l,t[1]=a*c,t[5]=a*u,t[9]=-o,t[2]=v*o-g,t[6]=y+m*o,t[10]=a*s}else if("ZXY"===e.order){var x=s*u,b=s*c,_=l*u,w=l*c;
1t[0]=x-w*o,t[4]=-a*c,t[8]=_+b*o,t[1]=b+_*o,t[5]=a*u,t[9]=w-x*o,t[2]=-a*l,t[6]=o,t[10]=a*s}else if("ZYX"===e.order){var M=a*u,E=a*c,S=o*u,C=o*c;t[0]=s*u,t[4]=S*l-E,t[8]=M*l+C,t[1]=s*c,t[5]=C*l+M,t[9]=E*l-S,t[2]=-l,t[6]=o*s,t[10]=a*s}else if("YZX"===e.order){var T=a*s,k=a*l,A=o*s,O=o*l;t[0]=s*u,t[4]=O-T*c,t[8]=A*c+k,t[1]=c,t[5]=a*u,t[9]=-o*u,t[2]=-l*u,t[6]=k*c+A,t[10]=T-O*c}else if("XZY"===e.order){var L=a*s,P=a*l,R=o*s,I=o*l;t[0]=s*u,t[4]=-c,t[8]=l*u,t[1]=L*c+I,t[5]=a*u,t[9]=P*c-R,t[2]=R*c-P,t[6]=o*u,t[10]=I*c+L}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},{key:"makeRotationFromQuaternion",value:function(e){return this.compose(qn,e,Xn)}},{key:"lookAt",value:function(e,t,n){var r=this.elements;return Kn.subVectors(e,t),0===Kn.lengthSq()&&(Kn.z=1),Kn.normalize(),Jn.crossVectors(n,Kn),0===Jn.lengthSq()&&(1===Math.abs(n.z)?Kn.x+=1e-4:Kn.z+=1e-4,Kn.normalize(),Jn.crossVectors(n,Kn)),Jn.normalize(),Yn.crossVectors(Kn,Jn),r[0]=Jn.x,r[4]=Yn.x,r[8]=Kn.x,r[1]=Jn.y,r[5]=Yn.y,r[9]=Kn.y,r[2]=Jn.z,r[6]=Yn.z,r[10]=Kn.z,this}},{key:"multiply",value:function(e,t){return void 0!==t?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(e,t)):this.multiplyMatrices(this,e)}},{key:"premultiply",value:function(e){return this.multiplyMatrices(e,this)}},{key:"multiplyMatrices",value:function(e,t){var n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],l=n[12],u=n[1],c=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],v=n[14],g=n[3],y=n[7],x=n[11],b=n[15],_=r[0],w=r[4],M=r[8],E=r[12],S=r[1],C=r[5],T=r[9],k=r[13],A=r[2],O=r[6],L=r[10],P=r[14],R=r[3],I=r[7],D=r[11],j=r[15];return i[0]=a*_+o*S+s*A+l*R,i[4]=a*w+o*C+s*O+l*I,i[8]=a*M+o*T+s*L+l*D,i[12]=a*E+o*k+s*P+l*j,i[1]=u*_+c*S+h*A+d*R,i[5]=u*w+c*C+h*O+d*I,i[9]=u*M+c*T+h*L+d*D,i[13]=u*E+c*k+h*P+d*j,i[2]=f*_+p*S+m*A+v*R,i[6]=f*w+p*C+m*O+v*I,i[10]=f*M+p*T+m*L+v*D,i[14]=f*E+p*k+m*P+v*j,i[3]=g*_+y*S+x*A+b*R,i[7]=g*w+y*C+x*O+b*I,i[11]=g*M+y*T+x*L+b*D,i[15]=g*E+y*k+x*P+b*j,this}},{key:"multiplyScalar",value:function(e){var t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}},{key:"determinant",value:function(){var e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],l=e[13],u=e[2],c=e[6],h=e[10],d=e[14];return e[3]*(+i*s*c-r*l*c-i*o*h+n*l*h+r*o*d-n*s*d)+e[7]*(+t*s*d-t*l*h+i*a*h-r*a*d+r*l*u-i*s*u)+e[11]*(+t*l*c-t*o*d-i*a*c+n*a*d+i*o*u-n*l*u)+e[15]*(-r*o*u-t*s*c+t*o*h+r*a*c-n*a*h+n*s*u)}},{key:"transpose",value:function(){var e,t=this.elements;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}},{key:"setPosition",value:function(e,t,n){var r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}},{key:"invert",value:function(){var e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],d=e[11],f=e[12],p=e[13],m=e[14],v=e[15],g=c*m*l-p*h*l+p*s*d-o*m*d-c*s*v+o*h*v,y=f*h*l-u*m*l-f*s*d+a*m*d+u*s*v-a*h*v,x=u*p*l-f*c*l+f*o*d-a*p*d-u*o*v+a*c*v,b=f*c*s-u*p*s-f*o*h+a*p*h+u*o*m-a*c*m,_=t*g+n*y+r*x+i*b;if(0===_)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var w=1/_;return e[0]=g*w,e[1]=(p*h*i-c*m*i-p*r*d+n*m*d+c*r*v-n*h*v)*w,e[2]=(o*m*i-p*s*i+p*r*l-n*m*l-o*r*v+n*s*v)*w,e[3]=(c*s*i-o*h*i-c*r*l+n*h*l+o*r*d-n*s*d)*w,e[4]=y*w,e[5]=(u*m*i-f*h*i+f*r*d-t*m*d-u*r*v+t*h*v)*w,e[6]=(f*s*i-a*m*i-f*r*l+t*m*l+a*r*v-t*s*v)*w,e[7]=(a
1*h*i-u*s*i+u*r*l-t*h*l-a*r*d+t*s*d)*w,e[8]=x*w,e[9]=(f*c*i-u*p*i-f*n*d+t*p*d+u*n*v-t*c*v)*w,e[10]=(a*p*i-f*o*i+f*n*l-t*p*l-a*n*v+t*o*v)*w,e[11]=(u*o*i-a*c*i-u*n*l+t*c*l+a*n*d-t*o*d)*w,e[12]=b*w,e[13]=(u*p*r-f*c*r+f*n*h-t*p*h-u*n*m+t*c*m)*w,e[14]=(f*o*r-a*p*r-f*n*s+t*p*s+a*n*m-t*o*m)*w,e[15]=(a*c*r-u*o*r+u*n*s-t*c*s-a*n*h+t*o*h)*w,this}},{key:"scale",value:function(e){var t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}},{key:"getMaxScaleOnAxis",value:function(){var e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}},{key:"makeTranslation",value:function(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}},{key:"makeRotationX",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}},{key:"makeRotationY",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}},{key:"makeRotationZ",value:function(e){var t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}},{key:"makeRotationAxis",value:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,l=i*a,u=i*o;return this.set(l*a+n,l*o-r*s,l*s+r*o,0,l*o+r*s,u*o+n,u*s-r*a,0,l*s-r*o,u*s+r*a,i*s*s+n,0,0,0,0,1),this}},{key:"makeScale",value:function(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}},{key:"makeShear",value:function(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}},{key:"compose",value:function(e,t,n){var r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,l=i+i,u=a+a,c=o+o,h=i*l,d=i*u,f=i*c,p=a*u,m=a*c,v=o*c,g=s*l,y=s*u,x=s*c,b=n.x,_=n.y,w=n.z;return r[0]=(1-(p+v))*b,r[1]=(d+x)*b,r[2]=(f-y)*b,r[3]=0,r[4]=(d-x)*_,r[5]=(1-(h+v))*_,r[6]=(m+g)*_,r[7]=0,r[8]=(f+y)*w,r[9]=(m-g)*w,r[10]=(1-(h+p))*w,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}},{key:"decompose",value:function(e,t,n){var r=this.elements,i=Wn.set(r[0],r[1],r[2]).length(),a=Wn.set(r[4],r[5],r[6]).length(),o=Wn.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],Zn.copy(this);var s=1/i,l=1/a,u=1/o;return Zn.elements[0]*=s,Zn.elements[1]*=s,Zn.elements[2]*=s,Zn.elements[4]*=l,Zn.elements[5]*=l,Zn.elements[6]*=l,Zn.elements[8]*=u,Zn.elements[9]*=u,Zn.elements[10]*=u,t.setFromRotationMatrix(Zn),n.x=i,n.y=a,n.z=o,this}},{key:"makePerspective",value:function(e,t,n,r,i,a){void 0===a&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var o=this.elements,s=2*i/(t-e),l=2*i/(n-r),u=(t+e)/(t-e),c=(n+r)/(n-r),h=-(a+i)/(a-i),d=-2*a*i/(a-i);return o[0]=s,o[4]=0,o[8]=u,o[12]=0,o[1]=0,o[5]=l,o[9]=c,o[13]=0,o[2]=0,o[6]=0,o[10]=h,o[14]=d,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this}},{key:"makeOrthographic",value:function(e,t,n,r,i,a){var o=this.elements,s=1/(t-e),l=1/(n-r),u=1/(a-i),c=(t+e)*s,h=(n+r)*l,d=(a+i)*u;return o[0]=2*s,o[4]=0,o[8]=0,o[12]=-c,o[1]=0,o[5]=2*l,o[9]=0,o[13]=-h,o[2]=0,o[6]=0,o[10]=-2*u,o[14]=-d,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this}},{key:"equals",value:function(e){for(var t=this.elements,n=e.elements,r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<16;n++)this.elements[n]=e[n+t];return this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}]),e}();Gn.prototype.isMatrix4=!0;var Wn=new fn,Zn=new Gn,qn=new fn(0,0,0),Xn=new fn(1,1,1),Jn=new fn,Yn=new fn,Kn=new fn,Qn=new Gn,$n=new dn,er=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.DefaultOrder;Object(f.a)(this,e),this._x=t,this._y=n,this._z=r,this._order=i}
1return Object(p.a)(e,[{key:"set",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._order;return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._order)}},{key:"copy",value:function(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],l=r[5],u=r[9],c=r[2],h=r[6],d=r[10];switch(t){case"XYZ":this._y=Math.asin(Ht(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-u,d),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(h,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Ht(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(o,d),this._z=Math.atan2(s,l)):(this._y=Math.atan2(-c,i),this._z=0);break;case"ZXY":this._x=Math.asin(Ht(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-c,d),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-Ht(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,l));break;case"YZX":this._z=Math.asin(Ht(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-u,l),this._y=Math.atan2(-c,i)):(this._x=0,this._y=Math.atan2(o,d));break;case"XZY":this._z=Math.asin(-Ht(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,l),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-u,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}},{key:"setFromQuaternion",value:function(e,t,n){return Qn.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Qn,t,n)}},{key:"setFromVector3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(e.x,e.y,e.z,t)}},{key:"reorder",value:function(e){return $n.setFromEuler(this),this.setFromQuaternion($n,e)}},{key:"equals",value:function(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}},{key:"fromArray",value:function(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}},{key:"toArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}},{key:"toVector3",value:function(e){return e?e.set(this._x,this._y,this._z):new fn(this._x,this._y,this._z)}},{key:"_onChange",value:function(e){return this._onChangeCallback=e,this}},{key:"_onChangeCallback",value:function(){}},{key:"x",get:function(){return this._x},set:function(e){this._x=e,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(e){this._y=e,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(e){this._z=e,this._onChangeCallback()}},{key:"order",get:function(){return this._order},set:function(e){this._order=e,this._onChangeCallback()}}]),e}();er.prototype.isEuler=!0,er.DefaultOrder="XYZ",er.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];var tr=function(){function e(){Object(f.a)(this,e),this.mask=1}return Object(p.a)(e,[{key:"set",value:function(e){this.mask=(1<<e|0)>>>0}},{key:"enable",value:function(e){this.mask|=1<<e|0}},{key:"enableAll",value:function(){this.mask=-1}},{key:"toggle",value:function(e){this.mask^=1<<e|0}},{key:"disable",value:function(e){this.mask&=~(1<<e|0)}},{key:"disableAll",value:function(){this.mask=0}},{key:"test",value:function(e){return 0!=(this.mask&e.mask)}},{key:"isEnabled",value:function(e){return 0!=(this.mask&(1<<e|0))}}]),e}(),nr=0,rr=new fn,ir=new dn,ar=new Gn,or=new fn,sr=new fn,lr=new fn,ur=new dn,cr=new fn(1,0,0),hr=new fn(0,1,0),dr=new fn(0,0,1),fr={type:"added"},pr={type:"removed"},mr=function(e){function t(){var e;Object(f.a)(this,t),e=Object(l.a)(this,Object(a.a)(t).call(this)),Object.defineProperty(Object(u.a)(e),"id",{value:nr++}),e.uuid=zt(),e.name="",e.type="Object3D",e.parent=null,e.children=[],e.up=t.DefaultUp.clone();var n=new fn,r=new er,i=new dn,o=new fn(1,1,1);return r._onChange((function(){i.setFromEuler(r,!1)})),i._onChange((function(){r.setFromQuaternion(i,void 0,!1)})),Object.defineProperties(Object(u.a)(e),{position:{configurable:!0,enumerable:!0,value:n},rotation:{configurable:!0,enumerable:!0,value:r},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:o},modelViewMatrix:{value:new Gn},normalMatrix:{value:new qt}}),e.matrix=new Gn,e.matrixWorld=new Gn,e.matrixAutoUpdate=t.DefaultMatrixAutoUpdate,e.matrixWorldNeedsUpdate=!1,e.layers=new tr,e.visible=!0,e.castShadow=!1,e.receiveShadow=!1,e.frustumCulled=!0,e.renderOrder=0,e.animations=[],e.userData={},e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"onBeforeRender",value:function(){}},{key:"onAfterRender",value:function(){}},{key:"applyMatrix4",value:function(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}},{key:"applyQuaternion",value:function(e){return this.quaternion.premultiply(e),this}},{key:"setRotationFromAxisAngle",value:function(e,t){this.quaternion.setFromAxisAngle(e,t)}},{key:"setRotationFromEuler",value:function(e){this.quaternion.setFromEuler(e,!0)}}
1,{key:"setRotationFromMatrix",value:function(e){this.quaternion.setFromRotationMatrix(e)}},{key:"setRotationFromQuaternion",value:function(e){this.quaternion.copy(e)}},{key:"rotateOnAxis",value:function(e,t){return ir.setFromAxisAngle(e,t),this.quaternion.multiply(ir),this}},{key:"rotateOnWorldAxis",value:function(e,t){return ir.setFromAxisAngle(e,t),this.quaternion.premultiply(ir),this}},{key:"rotateX",value:function(e){return this.rotateOnAxis(cr,e)}},{key:"rotateY",value:function(e){return this.rotateOnAxis(hr,e)}},{key:"rotateZ",value:function(e){return this.rotateOnAxis(dr,e)}},{key:"translateOnAxis",value:function(e,t){return rr.copy(e).applyQuaternion(this.quaternion),this.position.add(rr.multiplyScalar(t)),this}},{key:"translateX",value:function(e){return this.translateOnAxis(cr,e)}},{key:"translateY",value:function(e){return this.translateOnAxis(hr,e)}},{key:"translateZ",value:function(e){return this.translateOnAxis(dr,e)}},{key:"localToWorld",value:function(e){return e.applyMatrix4(this.matrixWorld)}},{key:"worldToLocal",value:function(e){return e.applyMatrix4(ar.copy(this.matrixWorld).invert())}},{key:"lookAt",value:function(e,t,n){e.isVector3?or.copy(e):or.set(e,t,n);var r=this.parent;this.updateWorldMatrix(!0,!1),sr.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ar.lookAt(sr,or,this.up):ar.lookAt(or,sr,this.up),this.quaternion.setFromRotationMatrix(ar),r&&(ar.extractRotation(r.matrixWorld),ir.setFromRotationMatrix(ar),this.quaternion.premultiply(ir.invert()))}},{key:"add",value:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(null!==e.parent&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(fr)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}},{key:"remove",value:function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}var n=this.children.indexOf(e);return-1!==n&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(pr)),this}},{key:"removeFromParent",value:function(){var e=this.parent;return null!==e&&e.remove(this),this}},{key:"clear",value:function(){for(var e=0;e<this.children.length;e++){var t=this.children[e];t.parent=null,t.dispatchEvent(pr)}return this.children.length=0,this}},{key:"attach",value:function(e){return this.updateWorldMatrix(!0,!1),ar.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),ar.multiply(e.parent.matrixWorld)),e.applyMatrix4(ar),this.add(e),e.updateWorldMatrix(!1,!0),this}},{key:"getObjectById",value:function(e){return this.getObjectByProperty("id",e)}},{key:"getObjectByName",value:function(e){return this.getObjectByProperty("name",e)}},{key:"getObjectByProperty",value:function(e,t){if(this[e]===t)return this;for(var n=0,r=this.children.length;n<r;n++){var i=this.children[n].getObjectByProperty(e,t);if(void 0!==i)return i}}},{key:"getWorldPosition",value:function(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}},{key:"getWorldQuaternion",value:function(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(sr,e,lr),e}},{key:"getWorldScale",value:function(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(sr,ur,e),e}},{key:"getWorldDirection",value:function(e){this.updateWorldMatrix(!0,!1);var t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}},{key:"raycast",value:function(){}},{key:"traverse",value:function(e){e(this);for(var t=this.children,n=0,r=t.length;n<r;n++)t[n].traverse(e)}},{key:"traverseVisible",value:function(e){if(!1!==this.visible){e(this);for(var t=this.children,n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}}},{key:"traverseAncestors",value:function(e){var t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}},{key:"updateMatrix",value:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}},{key:"updateMatrixWorld",value:function(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix
1):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);for(var t=this.children,n=0,r=t.length;n<r;n++)t[n].updateMatrixWorld(e)}},{key:"updateWorldMatrix",value:function(e,t){var n=this.parent;if(!0===e&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===t)for(var r=this.children,i=0,a=r.length;i<a;i++)r[i].updateWorldMatrix(!1,!0)}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var r={};function i(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(r.uuid=this.uuid,r.type=this.type,""!==this.name&&(r.name=this.name),!0===this.castShadow&&(r.castShadow=!0),!0===this.receiveShadow&&(r.receiveShadow=!0),!1===this.visible&&(r.visible=!1),!1===this.frustumCulled&&(r.frustumCulled=!1),0!==this.renderOrder&&(r.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);var a=this.geometry.parameters;if(void 0!==a&&void 0!==a.shapes){var o=a.shapes;if(Array.isArray(o))for(var s=0,l=o.length;s<l;s++){var u=o[s];i(e.shapes,u)}else i(e.shapes,o)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){for(var c=[],h=0,d=this.material.length;h<d;h++)c.push(i(e.materials,this.material[h]));r.material=c}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(var f=0;f<this.children.length;f++)r.children.push(this.children[f].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(var p=0;p<this.animations.length;p++){var m=this.animations[p];r.animations.push(i(e.animations,m))}}if(t){var v=M(e.geometries),g=M(e.materials),y=M(e.textures),x=M(e.images),b=M(e.shapes),_=M(e.skeletons),w=M(e.animations);v.length>0&&(n.geometries=v),g.length>0&&(n.materials=g),y.length>0&&(n.textures=y),x.length>0&&(n.images=x),b.length>0&&(n.shapes=b),_.length>0&&(n.skeletons=_),w.length>0&&(n.animations=w)}return n.object=r,n;function M(e){var t=[];for(var n in e){var r=e[n];delete r.metadata,t.push(r)}return t}}},{key:"clone",value:function(e){return(new this.constructor).copy(this,e)}},{key:"copy",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(var n=0;n<e.children.length;n++){var r=e.children[n];this.add(r.clone())}return this}}]),t}(Dt);mr.DefaultUp=new fn(0,1,0),mr.DefaultMatrixAutoUpdate=!0,mr.prototype.isObject3D=!0;var vr=new fn,gr=new fn,yr=new fn,xr=new fn,br=new fn,_r=new fn,wr=new fn,Mr=new fn,Er=new fn,Sr=new fn,Cr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new fn;Object(f.a)(this,e),this.a=t,this.b=n,this.c=r}return Object(p.a)(e,[{key:"set",value:function(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}},{key:"setFromPointsAndIndices",value:function(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}},{key:"setFromAttributeAndIndices",value:function(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}},{key:"getArea",value:function(){return vr.subVectors(this.c,this.b),gr.subVectors(this.a,this.b),.5*vr.cross(gr).length()}},{key:"getMidpoint",value:function(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}},{key:"getNormal",value:function(t){return e.getNormal(this.a,this.b,this.c,t)}},{key:"getPlane",value:function(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}},{key:"getBarycoord",value:function(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}},{key:"getUV",value:function(t,n,r,i,a){return e.getUV(t,this.a,this.b,this.c,n,r,i,a)}},{key:"containsPoint",value:function(t){return e.containsPoint(t,this.a,this.b,this.c)}},{key:"isFrontFacing",value:function(t){return e.isFrontFacing(this.a,this.b,this.c,t)}},{key:"intersectsBox",value:function(e){return e.intersectsTriangle(this)}},{key:"closestPointToPoint",value:function(e,t){var n,r,i=this.a,a=this.b,o=this.c;br.subVectors(a,i),_r.subVectors(o,i),Mr.subVectors(e,i);var s=br.dot(Mr),l=_r.dot(Mr);if(s<=0&&l<=0)return t.copy(i);Er.subVectors(e,a);var u=br.dot(Er),c=_r.dot(Er);if(u>=0&&c<=u)return t.copy(a);var h=s*c-u*l;if(h<=0&&s>=0&&u<=0)return n=s/(s-u),t.copy(i).addScaledVector(br,n);Sr.subVectors(e,o);
1var d=br.dot(Sr),f=_r.dot(Sr);if(f>=0&&d<=f)return t.copy(o);var p=d*l-s*f;if(p<=0&&l>=0&&f<=0)return r=l/(l-f),t.copy(i).addScaledVector(_r,r);var m=u*f-d*c;if(m<=0&&c-u>=0&&d-f>=0)return wr.subVectors(o,a),r=(c-u)/(c-u+(d-f)),t.copy(a).addScaledVector(wr,r);var v=1/(m+p+h);return n=p*v,r=h*v,t.copy(i).addScaledVector(br,n).addScaledVector(_r,r)}},{key:"equals",value:function(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}],[{key:"getNormal",value:function(e,t,n,r){r.subVectors(n,t),vr.subVectors(e,t),r.cross(vr);var i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}},{key:"getBarycoord",value:function(e,t,n,r,i){vr.subVectors(r,t),gr.subVectors(n,t),yr.subVectors(e,t);var a=vr.dot(vr),o=vr.dot(gr),s=vr.dot(yr),l=gr.dot(gr),u=gr.dot(yr),c=a*l-o*o;if(0===c)return i.set(-2,-1,-1);var h=1/c,d=(l*s-o*u)*h,f=(a*u-o*s)*h;return i.set(1-d-f,f,d)}},{key:"containsPoint",value:function(e,t,n,r){return this.getBarycoord(e,t,n,r,xr),xr.x>=0&&xr.y>=0&&xr.x+xr.y<=1}},{key:"getUV",value:function(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,xr),s.set(0,0),s.addScaledVector(i,xr.x),s.addScaledVector(a,xr.y),s.addScaledVector(o,xr.z),s}},{key:"isFrontFacing",value:function(e,t,n,r){return vr.subVectors(n,t),gr.subVectors(e,t),vr.cross(gr).dot(r)<0}}]),e}(),Tr=0,kr=function(e){function t(){var e;return Object(f.a)(this,t),e=Object(l.a)(this,Object(a.a)(t).call(this)),Object.defineProperty(Object(u.a)(e),"id",{value:Tr++}),e.uuid=zt(),e.name="",e.type="Material",e.fog=!0,e.blending=C,e.side=w,e.vertexColors=!1,e.opacity=1,e.transparent=!1,e.blendSrc=z,e.blendDst=H,e.blendEquation=L,e.blendSrcAlpha=null,e.blendDstAlpha=null,e.blendEquationAlpha=null,e.depthFunc=Y,e.depthTest=!0,e.depthWrite=!0,e.stencilWriteMask=255,e.stencilFunc=Ot,e.stencilRef=0,e.stencilFuncMask=255,e.stencilFail=At,e.stencilZFail=At,e.stencilZPass=At,e.stencilWrite=!1,e.clippingPlanes=null,e.clipIntersection=!1,e.clipShadows=!1,e.shadowSide=null,e.colorWrite=!0,e.alphaWrite=!0,e.precision=null,e.polygonOffset=!1,e.polygonOffsetFactor=0,e.polygonOffsetUnits=0,e.dithering=!1,e.alphaToCoverage=!1,e.premultipliedAlpha=!1,e.visible=!0,e.toneMapped=!0,e.userData={},e.version=0,e._alphaTest=0,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"onBuild",value:function(){}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(e){if(void 0!==e)for(var t in e){var n=e[t];if(void 0!==n)if("shading"!==t){var r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}else console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===n;else console.warn("THREE.Material: '"+t+"' parameter is undefined.")}}},{key:"toJSON",value:function(e){var t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){var t=[];for(var n in e){var r=e[n];delete r.metadata,t.push(r)}return t}
vendor: 6,998 bytes, line 1
1if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==C&&(n.blending=this.blending),this.side!==w&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.alphaWrite=this.alphaWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),t){var i=r(e.textures),a=r(e.images);i.length>0&&(n.textures=i),a.length>0&&(n.images=a)}return n}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.name=e.name,this.fog=e.fog,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;var t=e.clippingPlanes,n=null;if(null!==t){var r=t.length;n=new Array(r);for(var i=0;i!==r;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipSh
1adows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.alphaWrite=e.alphaWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"alphaTest",get:function(){return this._alphaTest},set:function(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),t}(Dt);kr.prototype.isMaterial=!0;var Ar=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="MeshBasicMaterial",n.color=new rn(16777215),n.map=null,n.lightMap=null,n.lightMapIntensity=1,n.aoMap=null,n.aoMapIntensity=1,n.specularMap=null,n.alphaMap=null,n.envMap=null,n.combine=te,n.reflectivity=1,n.refractionRatio=.98,n.wireframe=!1,n.wireframeLinewidth=1,n.wireframeLinecap="round",n.wireframeLinejoin="round",n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),t}(kr);Ar.prototype.isMeshBasicMaterial=!0;var Or=new fn,Lr=new Zt,Pr=function(){function e(t,n,r){if(Object(f.a)(this,e),Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=n,this.count=void 0!==t?t.length/n:0,this.normalized=!0===r,this.usage=Lt,this.updateRange={offset:0,count:-1},this.version=0}return Object(p.a)(e,[{key:"onUploadCallback",value:function(){}},{key:"setUsage",value:function(e){return this.usage=e,this}},{key:"copy",value:function(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}},{key:"copyAt",value:function(e,t,n){e*=this.itemSize,n*=t.itemSize;for(var r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}},{key:"copyArray",value:function(e){return this.array.set(e),this}},{key:"copyColorsArray",value:function(e){for(var t=this.array,n=0,r=0,i=e.length;r<i;r++){var a=e[r];void 0===a&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",r),a=new rn),t[n++]=a.r,t[n++]=a.g,t[n++]=a.b}return this}},{key:"copyVector2sArray",value:function(e){for(var t=this.array,n=0,r=0,i=e.length;r<i;r++){var a=e[r];void 0===a&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),a=new Zt),t[n++]=a.x,t[n++]=a.y}return this}},{key:"copyVector3sArray",value:function(e){for(var t=this.array,n=0,r=0,i=e.length;r<i;r++){var a=e[r];void 0===a&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),a=new fn),t[n++]=a.x,t[n++]=a.y,t[n++]=a.z}return this}},{key:"copyVector4sArray",value:function(e){for(var t=this.array,n=0,r=0,i=e.length;r<i;r++){var a=e[r];void 0===a&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",r),a=new un),t[n++]=a.x,t[n++]=a.y,t[n++]=a.z,t[n++]=a.w}return this}},{key:"applyMatrix3",value:function(e){if(2===this.itemSize)for(var t=0,n=this.count;t<n;t++)Lr.fromBufferAttribute(this,t),Lr.applyMatrix3(e),this.setXY(t,Lr.x,Lr.y);else if(3===this.itemSize)for(var r=0,i=this.count;r<i;r++)Or.fromBufferAttribute(this,r),Or.applyMatrix3(e),this.setXYZ(r,Or.x,Or.y,Or.z);return this}},{key:"applyMatrix4",value:function(e){for(var t=0,n=this.count;t<n;t++)Or.x=this.getX(t),Or.y=this.getY(t),Or.z=this.getZ(t),Or.applyM
1atrix4(e),this.setXYZ(t,Or.x,Or.y,Or.z);return this}},{key:"applyNormalMatrix",value:function(e){for(var t=0,n=this.count;t<n;t++)Or.x=this.getX(t),Or.y=this.getY(t),Or.z=this.getZ(t),Or.applyNormalMatrix(e),this.setXYZ(t,Or.x,Or.y,Or.z);return this}},{key:"transformDirection",value:function(e){for(var t=0,n=this.count;t<n;t++)Or.x=this.getX(t),Or.y=this.getY(t),Or.z=this.getZ(t),Or.transformDirection(e),this.setXYZ(t,Or.x,Or.y,Or.z);return this}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}},{key:"getX",value:function(e){return this.array[e*this.itemSize]}},{key:"setX",value:function(e,t){return this.array[e*this.itemSize]=t,this}},{key:"getY",value:function(e){return this.array[e*this.itemSize+1]}},{key:"setY",value:function(e,t){return this.array[e*this.itemSize+1]=t,this}},{key:"getZ",value:function(e){return this.array[e*this.itemSize+2]}},{key:"setZ",value:function(e,t){return this.array[e*this.itemSize+2]=t,this}},{key:"getW",value:function(e){return this.array[e*this.itemSize+3]}},{key:"setW",value:function(e,t){return this.array[e*this.itemSize+3]=t,this}},{key:"setXY",value:function(e,t,n){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this}},{key:"setXYZ",value:function(e,t,n,r){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}},{key:"setXYZW",value:function(e,t,n,r,i){return e*=this.itemSize,this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}},{key:"onUpload",value:function(e){return this.onUploadCallback=e,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==Lt&&(e.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(e.updateRange=this.updateRange),e}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),e}();Pr.prototype.isBufferAttribute=!0;var Rr=function(e){function t(e,n,r){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,new Uint16Array(e),n,r))}return Object(c.a)(t,e),t}(Pr),Ir=function(e){function t(e,n,r){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,new Uint32Array(e),n,r))}return Object(c.a)(t,e),t}(Pr);(function(e){function t(e,n,r){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,new Uint16Array(e),n,r))}return Object(c.a)(t,e),t})(Pr).prototype.isFloat16BufferAttribute=!0;var Dr=function(e){function t(e,n,r){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,new Float32Array(e),n,r))}return Object(c.a)(t,e),t}(Pr),jr=0,Nr=new Gn,Fr=new mr,Br=new fn,zr=new vn,Hr=new vn,Ur=new fn,Vr=function(e){function t(){var e;return Object(f.a)(this,t),e=Object(l.a)(this,Object(a.a)(t).call(this)),Object.defineProperty(Object(u.a)(e),"id",{value:jr++}),e.uuid=zt(),e.name="",e.type="BufferGeometry",e.index=null,e.attributes={},e.morphAttributes={},e.morphTargetsRelative=!1,e.groups=[],e.boundingBox=null,e.boundingSphere=null,e.drawRange={start:0,count:1/0},e.userData={},e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){return Array.isArray(e)?this.index=new(Xt(e)?Ir:Rr)(e,1):this.index=e,this}},{key:"getAttribute",value:function(e){return this.attributes[e]}},{key:"setAttribute",value:function(e,t){return this.attributes[e]=t,this}},{key:"deleteAttribute",value:function(e){return delete this.attributes[e],this}},{key:"hasAttribute",value:function(e){return void 0!==this.attributes[e]}},{key:"addGroup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:e,count:t,materialIndex:n})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(e,t){this.drawRange.start=e,this.drawRange.count=t}},{key:"applyMatrix4",value:function(e){var t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);var n=this.attributes.normal;if(void 0!==n){var r=(new qt).getNormalMatrix(e);n.applyNormalMatrix(r),n.needsUpdate=!0}var i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(e){return Nr.makeRotationFromQuaternion(e),this.applyMatrix4(Nr),this}},{key:"rotateX",value:function(e){return Nr.makeRotationX(e),this.applyMatrix4(Nr),this}},{key:"rotateY",value:function(e){return Nr.makeRotationY(e),this.applyMatrix4(Nr),this}},{key:"rotateZ",value:function(e){return Nr.makeRotationZ(e),this.applyMatrix4(Nr),this}},{key:"translate",value:function(e,t,n){return Nr.makeTranslation(e,t,n),this.applyMatrix4(Nr),this}},{key:"scale",value:function(e,t,n){return Nr.makeScale(e,t,n),this.applyMatrix4(Nr),this}},{key:"lookAt",value:function(e){return Fr.lookAt(e),Fr.updateMatrix(),this.applyMatrix4(Fr.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Br).negate(),this.translate(Br.x,Br.y,Br.z),this}},{key:"setFromPoints",value:function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];t.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new Dr(t,3)),this}},{key:"computeBoundingBox",value:function(){null===this.boundingBox&&
1(this.boundingBox=new vn);var e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new fn(-1/0,-1/0,-1/0),new fn(1/0,1/0,1/0));if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(var n=0,r=t.length;n<r;n++){var i=t[n];zr.setFromBufferAttribute(i),this.morphTargetsRelative?(Ur.addVectors(this.boundingBox.min,zr.min),this.boundingBox.expandByPoint(Ur),Ur.addVectors(this.boundingBox.max,zr.max),this.boundingBox.expandByPoint(Ur)):(this.boundingBox.expandByPoint(zr.min),this.boundingBox.expandByPoint(zr.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}},{key:"computeBoundingSphere",value:function(){null===this.boundingSphere&&(this.boundingSphere=new Dn);var e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "fal
1se".',this),void this.boundingSphere.set(new fn,1/0);if(e){var n=this.boundingSphere.center;if(zr.setFromBufferAttribute(e),t)for(var r=0,i=t.length;r<i;r++){var a=t[r];Hr.setFromBufferAttribute(a),this.morphTargetsRelative?(Ur.addVectors(zr.min,Hr.min),zr.expandByPoint(Ur),Ur.addVectors(zr.max,Hr.max),zr.expandByPoint(Ur)):(zr.expandByPoint(Hr.min),zr.expandByPoint(Hr.max))}zr.getCenter(n);for(var o=0,s=0,l=e.count;s<l;s++)Ur.fromBufferAttribute(e,s),o=Math.max(o,n.distanceToSquared(Ur));if(t)for(var u=0,c=t.length;u<c;u++)for(var h=t[u],d=this.morphTargetsRelative,f=0,p=h.count;f<p;f++)Ur.fromBufferAttribute(h,f),d&&(Br.fromBufferAttribute(e,f),Ur.add(Br)),o=Math.max(o,n.distanceToSquared(Ur));this.boundingSphere.radius=Math.sqrt(o),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}},{key:"computeTangents",value:function(){var e=this.index,t=this.attributes;if(null!==e&&void 0!==t.position&&void 0!==t.normal&&void 0!==t.uv){var n=e.array,r=t.position.array,i=t.normal.array,a=t.uv.array,o=r.length/3;void 0===t.tangent&&this.setAttribute("tangent",new Pr(new Float32Array(4*o),4));for(var s=t.tangent.array,l=[],u=[],c=0;c<o;c++)l[c]=new fn,u[c]=new fn;var h=new fn,d=new fn,f=new fn,p=new Zt,m=new Zt,v=new Zt,g=new fn,y=new fn,x=this.groups;0===x.length&&(x=[{start:0,count:n.length}]);for(var b=0,_=x.length;b<_;++b)for(var w=x[b],M=w.start,E=M,S=M+w.count;E<S;E+=3)j(n[E+0],n[E+1],n[E+2]);for(var C=new fn,T=new fn,k=new fn,A=new fn,O=0,L=x.length;O<L;++O)for(var P=x[O],R=P.start,I=R,D=R+P.count;I<D;I+=3)N(n[I+0]),N(n[I+1]),N(n[I+2])}else console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");function j(e,t,n){h.fromArray(r,3*e),d.fromArray(r,3*t),f.fromArray(r,3*n),p.fromArray(a,2*e),m.fromArray(a,2*t),v.fromArray(a,2*n),d.sub(h),f.sub(h),m.sub(p),v.sub(p);var i=1/(m.x*v.y-v.x*m.y);isFinite(i)&&(g.copy(d).multiplyScalar(v.y).addScaledVector(f,-m.y).multiplyScalar(i),y.copy(f).multiplyScalar(m.x).addScaledVector(d,-v.x).multiplyScalar(i),l[e].add(g),l[t].add(g),l[n].add(g),u[e].add(y),u[t].add(y),u[n].add(y))}function N(e){k.fromArray(i,3*e),A.copy(k);var t=l[e];C.copy(t),C.sub(k.multiplyScalar(k.dot(t))).normalize(),T.crossVectors(A,t);var n=T.dot(u[e])<0?-1:1;s[4*e]=C.x,s[4*e+1]=C.y,s[4*e+2]=C.z,s[4*e+3]=n}}},{key:"computeVertexNormals",value:function(){var e=this.index,t=this.getAttribute("position");if(void 0!==t){var n=this.getAttribute("normal");if(void 0===n)n=new Pr(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(var r=0,i=n.count;r<i;r++)n.setXYZ(r,0,0,0);var a=new fn,o=new fn,s=new fn,l=new fn,u=new fn,c=new fn,h=new fn,d=new fn;if(e)for(var f=0,p=e.count;f<p;f+=3){var m=e.getX(f+0),v=e.getX(f+1),g=e.getX(f+2);a.fromBufferAttribute(t,m),o.fromBufferAttribute(t,v),s.fromBufferAttribute(t,g),h.subVectors(s,o),d.subVectors(a,o),h.cross(d),l.fromBufferAttribute(n,m),u.fromBufferAttribute(n,v),c.fromBufferAttribute(n,g),l.add(h),u.add(h),c.add(h),n.setXYZ(m,l.x,l.y,l.z),n.setXYZ(v,u.x,u.y,u.z),n.setXYZ(g,c.x,c.y,c.z)}else for(var y=0,x=t.count;y<x;y+=3)a.fromBufferAttribute(t,y+0),o.fromBufferAttribute(t,y+1),s.fromBufferAttribute(t,y+2),h.subVectors(s,o),d.subVectors(a,o),h.cross(d),n.setXYZ(y+0,h.x,h.y,h.z),n.setXYZ(y+1,h.x,h.y,h.z),n.setXYZ(y+2,h.x,h.y,h.z);this.normalizeNormals(),n.needsUpdate=!0}}},{key:"merge",value:function(e,t){if(e&&e.isBufferGeometry){void 0===t&&(t=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var n=this.attributes;for(var r in n)if(void 0!==e.attributes[r])for(var i=n[r].array,a=e.attributes[r],o=a.array,s=a.itemSize*t,l=Math.min(o.length,i.length-s),u=0,c=s;u<l;u++,c++)i[c]=o[u];return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",e)}},{key:"normalizeNormals",value:function(){for(var e=this.attributes.normal,t=0,n=e.count;t<n;t++)Ur.fromBufferAttribute(e,t),Ur.normalize(),e.setXYZ(t,Ur.x,Ur.y,Ur.z)}},{key:"toNonIndexed",value:function(){function e(e,t){for(var n=e.array,r=e.itemSize,i=e.normalized,a=new n.constructor(t.length*r),o=0,s=0,l=0,u=t.length;l<u;l++){o=e.isInterleavedBufferAttribute?t[l]*e.data.stride+e.offset:t[l]*r;for(var c=0;c<r;c++)a[s++]=n[o++]}return new Pr(a,r,i)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;var n=new t,r=this.index.array,i=this.attributes;for(var a in i){var o=e(i[a],r);n.setAttribute(a,o)}var s=this.morphAttributes;for(var l in s){for(var u=[],c=s[l],h=0,d=c.length;h<d;h++){var f=e(c[h],r);u.push(f)}n.morphAttributes[l]=u}n.morphTargetsRelative=this.morphTargetsRelative;for(var p=this.groups,m=0,v=p.length;m<v;m++){var g=p[m];n.addGroup(g.start,g.count,g.materialIndex)}return n}},{key:"toJSON",value:function(){var e={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};
1if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){var t=this.parameters;for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};var r=this.index;null!==r&&(e.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});var i=this.attributes;for(var a in i){var o=i[a];e.data.attributes[a]=o.toJSON(e.data)}var s={},l=!1;for(var u in this.morphAttributes){for(var c=this.morphAttributes[u],h=[],d=0,f=c.length;d<f;d++){var p=c[d];h.push(p.toJSON(e.data))}h.length>0&&(s[u]=h,l=!0)}l&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);var m=this.groups;m.length>0&&(e.data.groups=JSON.parse(JSON.stringify(m)));var v=this.boundingSphere;return null!==v&&(e.data.boundingSphere={center:v.center.toArray(),radius:v.radius}),e}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var t={};this.name=e.name;var n=e.index;null!==n&&this.setIndex(n.clone(t));var r=e.attributes;for(var i in r){var a=r[i];this.setAttribute(i,a.clone(t))}var o=e.morphAttributes;for(var s in o){for(var l=[],u=o[s],c=0,h=u.length;c<h;c++)l.push(u[c].clone(t));this.morphAttributes[s]=l}this.morphTargetsRelative=e.morphTargetsRelative;for(var d=e.groups,f=0,p=d.length;f<p;f++){var m=d[f];this.addGroup(m.start,m.count,m.materialIndex)}var v=e.boundingBox;null!==v&&(this.boundingBox=v.clone());var g=e.boundingSphere;return null!==g&&(this.boundingSphere=g.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,void 0!==e.parameters&&(this.parameters=Object.assign({},e.parameters)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}}]),t}(Dt);Vr.prototype.isBufferGeometry=!0;var Gr=new Gn,Wr=new Vn,Zr=new Dn,qr=new fn,Xr=new fn,Jr=new fn,Yr=new fn,Kr=new fn,Qr=new fn,$r=new fn,ei=new fn,ti=new fn,ni=new Zt,ri=new Zt,ii=new Zt,ai=new fn,oi=new fn,si=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Vr,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ar;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="Mesh",e.geometry=n,e.material=r,e.updateMorphTargets(),e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this}},{key:"updateMorphTargets",value:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i<a;i++){var o=r[i].name||String(i);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=i}}}}else{var s=e.morphTargets;void 0!==s&&s.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}},{key:"raycast",value:function(e,t){var n,r=this.geometry,i=this.material,a=this.matrixWorld;if(void 0!==i&&(null===r.boundingSphere&&r.computeBoundingSphere(),Zr.copy(r.boundingSphere),Zr.applyMatrix4(a),!1!==e.ray.intersectsSphere(Zr)&&(Gr.copy(a).invert(),Wr.copy(e.ray).applyMatrix4(Gr),null===r.boundingBox||!1!==Wr.intersectsBox(r.boundingBox))))if(r.isBufferGeometry){var o=r.index,s=r.attributes.position,l=r.morphAttributes.position,u=r.morphTargetsRelative,c=r.attributes.uv,h=r.attributes.uv2,d=r.groups,f=r.drawRange;if(null!==o)if(Array.isArray(i))for(var p=0,m=d.length;p<m;p++)for(var v=d[p],g=i[v.materialIndex],y=Math.max(v.start,f.start),x=Math.min(o.count,Math.min(v.start+v.count,f.start+f.count));y<x;y+=3){var b=o.getX(y),_=o.getX(y+1),w=o.getX(y+2);(n=li(this,g,e,Wr,s,l,u,c,h,b,_,w))&&(n.faceIndex=Math.floor(y/3),n.face.materialIndex=v.materialIndex,t.push(n))}else for(var M=Math.max(0,f.start),E=Math.min(o.count,f.start+f.count);M<E;M+=3){var S=o.getX(M),C=o.getX(M+1),T=o.getX(M+2);(n=li(this,i,e,Wr,s,l,u,c,h,S,C,T))&&(n.faceIndex=Math.floor(M/3),t.pu
1sh(n))}else if(void 0!==s)if(Array.isArray(i))for(var k=0,A=d.length;k<A;k++)for(var O=d[k],L=i[O.materialIndex],P=Math.max(O.start,f.start),R=Math.min(s.count,Math.min(O.start+O.count,f.start+f.count));P<R;P+=3){(n=li(this,L,e,Wr,s,l,u,c,h,P,P+1,P+2))&&(n.faceIndex=Math.floor(P/3),n.face.materialIndex=O.materialIndex,t.push(n))}else for(var I=Math.max(0,f.start),D=Math.min(s.count,f.start+f.count);I<D;I+=3){(n=li(this,i,e,Wr,s,l,u,c,h,I,I+1,I+2))&&(n.faceIndex=Math.floor(I/3),t.push(n))}}else r.isGeometry&&console.error("THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}]),t}(mr);function li(e,t,n,r,i,a,o,s,l,u,c,h){qr.fromBufferAttribute(i,u),Xr.fromBufferAttribute(i,c),Jr.fromBufferAttribute(i,h);var d=e.morphTargetInfluences;if(a&&d){$r.set(0,0,0),ei.set(0,0,0),ti.set(0,0,0);for(var f=0,p=a.length;f<p;f++){var m=d[f],v=a[f];0!==m&&(Yr.fromBufferAttribute(v,u),Kr.fromBufferAttribute(v,c),Qr.fromBufferAttribute(v,h),o?($r.addScaledVector(Yr,m),ei.addScaledVector(Kr,m),ti.addScaledVector(Qr,m)):($r.addScaledVector(Yr.sub(qr),m),ei.addScaledVector(Kr.sub(Xr),m),ti.addScaledVector(Qr.sub(Jr),m)))}qr.add($r),Xr.add(ei),Jr.add(ti)}e.isSkinnedMesh&&(e.boneTransform(u,qr),e.boneTransform(c,Xr),e.boneTransform(h,Jr));var g=function(e,t,n,r,i,a,o,s){if(null===(t.side===M?r.intersectTriangle(o,a,i,!0,s):r.intersectTriangle(i,a,o,t.side!==E,s)))return null;oi.copy(s),oi.applyMatrix4(e.matrixWorld);var l=n.ray.origin.distanceTo(oi);return l<n.near||l>n.far?null:{distance:l,point:oi.clone(),object:e}}(e,t,n,r,qr,Xr,Jr,ai);if(g){s&&(ni.fromBufferAttribute(s,u),ri.fromBufferAttribute(s,c),ii.fromBufferAttribute(s,h),g.uv=Cr.getUV(ai,qr,Xr,Jr,ni,ri,ii,new Zt)),l&&(ni.fromBufferAttribute(l,u),ri.fromBufferAttribute(l,c),ii.fromBufferAttribute(l,h),g.uv2=Cr.getUV(ai,qr,Xr,Jr,ni,ri,ii,new Zt));var y={a:u,b:c,c:h,normal:new fn,materialIndex:0};Cr.getNormal(qr,Xr,Jr,y.normal),g.face=y}return g}si.prototype.isMesh=!0;var ui=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="BoxGeometry",e.parameters={width:n,height:r,depth:i,widthSegments:o,heightSegments:s,depthSegments:c};var h=Object(u.a)(e);o=Math.floor(o),s=Math.floor(s),c=Math.floor(c);var d=[],p=[],m=[],v=[],g=0,y=0;function x(e,t,n,r,i,a,o,s,l,u,c){for(var f=a/l,x=o/u,b=a/2,_=o/2,w=s/2,M=l+1,E=u+1,S=0,C=0,T=new fn,k=0;k<E;k++)for(var A=k*x-_,O=0;O<M;O++){var L=O*f-b;T[e]=L*r,T[t]=A*i,T[n]=w,p.push(T.x,T.y,T.z),T[e]=0,T[t]=0,T[n]=s>0?1:-1,m.push(T.x,T.y,T.z),v.push(O/l),v.push(1-k/u),S+=1}for(var P=0;P<u;P++)for(var R=0;R<l;R++){var I=g+R+M*P,D=g+R+M*(P+1),j=g+(R+1)+M*(P+1),N=g+(R+1)+M*P;d.push(I,D,N),d.push(D,j,N),C+=6}h.addGroup(y,C,c),y+=C,g+=S}return x("z","y","x",-1,-1,i,r,n,c,s,0),x("z","y","x",1,-1,i,r,-n,c,s,1),x("x","z","y",1,1,n,i,r,o,c,2),x("x","z","y",1,-1,n,i,-r,o,c,3),x("x","y","z",1,-1,n,r,i,o,s,4),x("x","y","z",-1,-1,n,r,-i,o,s,5),e.setIndex(d),e.setAttribute("position",new Dr(p,3)),e.setAttribute("normal",new Dr(m,3)),e.setAttribute("uv",new Dr(v,2)),e}return Object(c.a)(t,e),Object(p.a)(t,null,[{key:"fromJSON",value:function(e){return new t(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}]),t}(Vr);function ci(e){var t={};for(var n in e)for(var r in t[n]={},e[n]){var i=e[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?t[n][r]=i.clone():Array.isArray(i)?t[n][r]=i.slice():t[n][r]=i}return t}function hi(e){for(var t={},n=0;n<e.length;n++){var r=ci(e[n]);for(var i in r)t[i]=r[i]}return t}var di={clone:ci,merge:hi},fi="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",pi="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",mi=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="ShaderMaterial",n.defines={},n.uniforms={},n.vertexShader=fi,n.fragmentShader=pi,n.linewidth=1,n.wireframe=!1,n.wireframeLinewidth=1,n.fog=!1,n.lights=!1,n.clipping=!1,n.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},n.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},n.index0AttributeName=void 0,n.uniformsNeedUpdate=!1,n.glslVersion=null,void 0!==e&&(void 0!==e.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),n.setValues(e)),n}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=ci(e.uniforms),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}},{key:"toJSON",value:function(e){var n=s(Object(a.a)(t.prototype),"toJSON",this).call(this,e);for(var r in n.glslVersion=this.glslVersion,n.uniforms={},this.uniforms){var i=this.uniforms[r].value;i&&i.isTexture?n.uniforms[r]={type:"t",value:i.toJSON(e).uuid}:i&&i.isColor?n.uniforms[r]={type:"c",value:i.getHex()}:i&&i.isVector2?n.uniforms[r]={type:"v2",value:i.toArray()}:i&&i.isVector3?n.uniforms[r]={type:"v3",value:i.toArray()}:i&&i.isVector4?n.uniforms[r]={type:"v4",value:i.toArray()}:i&&i.isMatrix3?n.uniforms[r]={type:"m3",value:i.toArray()}:i&&i.isMatrix4?n.uniforms[r]={type:"m4",value:i.toArray()}:n.uniforms[r]={value:i}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader;var o={};for(var l in this.extensions)!0===this.extensions[l]&&(o[l]=!0);return Object.keys(o).length>0&&(n.extensions=o),n}}]),t}(kr);mi.prototype.isShaderMaterial=!0;var vi=function(e){function t(){var e;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="Camera",e.matrixWorldInverse=new Gn,e.projectionMatrix=new Gn,e.projectionMatrixInverse=new Gn,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e,n){return s(Object(a.a)(t.prototype),"copy",this).call(this,e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}},{key:"getWorldDirection",value:function(e){this.updateWorldMatrix(!0,!1);var t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}},{key:"updateMatrixWorld",value:function(e){s(Object(a.a)(t.prototype),"updateMatrixWorld",this).call(this,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}},{key:"updateWorldMatrix",value:function(e,n){s(Object(a.a)(t.prototype),"updateWorldMatrix",this).call(this,e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),t}(mr);vi.prototype.isCamera=!0;var gi=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2e3;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="PerspectiveCamera",e.fov=n,e.zoom=1,e.near=i,e.far=o,e.focus=10,e.aspect=r,e.view=null,e.filmGauge=35,e.filmOffset=0,e.updateProjectionMatrix(),e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e,n){return s(Object(a.a)(t.prototype),"copy",this).call(this,e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}},{key:"setFocalLength",value:function(e){var t=.5*this.getFilmHeight()/e;this.fov=2*Bt*Math.atan(t),this.updateProjectionMatrix()}},{key:"getFocalLength",value:function(){var e=Math.tan(.5*Ft*this.fov);return.5*this.getFilmHeight()/e}},{key:"getEffectiveFOV",value:function(){return 2*Bt*Math.atan(Math.tan(.5*Ft*this.fov)/this.zoom)}},{key:"getFilmWidth",value:function(){return this.filmGauge*Math.min(this.aspect,1)}},{key:"getFilmHeight",value:function(){return this.filmGauge/Math.max(this.aspect,1)}},{key:"setViewOffset",value:function(e,t,n,r,i,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var e=this.near,t=e*Math.tan(.5*Ft*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,a=this.view;if(null!==this.view&&this.view.enabled){var o=a.fullWidth,s=a.fullHeight;i+=a.offsetX*r/o,t-=a.offsetY*n/s,r*=a.width/o,n*=a.height/s}var l=this.filmOffset;0!==l&&(i+=e*l/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(e){var n=s(Object(a.a)(t.prototype),"toJSON",this).call(this,e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,null!==this.view&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}]),t}(vi);gi.prototype.isPerspectiveCamera=!0;var yi=90,xi=1,bi=function(e){function t(e,n,r){var i;if(Object(f.a)(this,t),(i=Object(l.a)(this,Object(a.a)(t).call(this))).type="CubeCamera",!0!==r.isWebGLCubeRen
1derTarget)return console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter."),Object(l.a)(i);i.renderTarget=r;var o=new gi(yi,xi,e,n);o.layers=i.layers,o.up.set(0,-1,0),o.lookAt(new fn(1,0,0)),i.add(o);var s=new gi(yi,xi,e,n);s.layers=i.layers,s.up.set(0,-1,0),s.lookAt(new fn(-1,0,0)),i.add(s);var u=new gi(yi,xi,e,n);u.layers=i.layers,u.up.set(0,0,1),u.lookAt(new fn(0,1,0)),i.add(u);var c=new gi(yi,xi,e,n);c.layers=i.layers,c.up.set(0,0,-1),c.lookAt(new fn(0,-1,0)),i.add(c);var h=new gi(yi,xi,e,n);h.layers=i.layers,h.up.set(0,-1,0),h.lookAt(new fn(0,0,1)),i.add(h);var d=new gi(yi,xi,e,n);return d.layers=i.layers,d.up.set(0,-1,0),d.lookAt(new fn(0,0,-1)),i.add(d),i}return Object(c.a)(t,e),Object(p.a)(t,[{key:"update",value:function(e,t){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,r=Object(i.a)(this.children,6),a=r[0],o=r[1],s=r[2],l=r[3],u=r[4],c=r[5],h=e.xr.enabled,d=e.getRenderTarget();e.xr.enabled=!1;var f=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,a),e.setRenderTarget(n,1),e.render(t,o),e.setRenderTarget(n,2),e.render(t,s),e.setRenderTarget(n,3),e.render(t,l),e.setRenderTarget(n,4),e.render(t,u),n.texture.generateMipmaps=f,e.setRenderTarget(n,5),e.render(t,c),e.setRenderTarget(d),e.xr.enabled=h,n.texture.needsPMREMUpdate=!0}}]),t}(mr),_i=function(e){function t(e,n,r,i,o,s,u,c,h,d){var p;return Object(f.a)(this,t),e=void 0!==e?e:[],n=void 0!==n?n:he,(p=Object(l.a)(this,Object(a.a)(t).call(this,e,n,r,i,o,s,u,c,h,d))).flipY=!1,p}return Object(c.a)(t,e),Object(p.a)(t,[{key:"images",get:function(){return this.image},set:function(e){this.image=e}}]),t}(sn);_i.prototype.isCubeTexture=!0;var wi=function(e){function t(e,n,r){var i;return Object(f.a)(this,t),Number.isInteger(n)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),n=r),i=Object(l.a)(this,Object(a.a)(t).call(this,e,e,n)),n=n||{},i.texture=new _i(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),i.texture.isRenderTargetTexture=!0,i.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,i.texture.minFilter=void 0!==n.minFilter?n.minFilter:Me,i}return Object(c.a)(t,e),Object(p.a)(t,[{key:"fromEquirectangularTexture",value:function(e,t){this.texture.type=t.type,this.texture.format=Fe,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;var n={tEquirect:{value:null}},r="\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",i="\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t",a=new ui(5,5,5),o=new mi({name:"CubemapFromEquirect",uniforms:ci(n),vertexShader:r,fragmentShader:i,side:M,blending:S});o.uniforms.tEquirect.value=t;var s=new si(a,o),l=t.minFilter;return t.minFilter===Se&&(t.minFilter=Me),new bi(1,10,this).update(e,s),t.minFilter=l,s.geometry.dispose(),s.material.dispose(),this}},{key:"clear",value:function(e,t,n,r){for(var i=e.getRenderTarget(),a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(t,n,r);e.setRenderTarget(i)}}]),t}(cn);wi.prototype.isWebGLCubeRenderTarget=!0;var Mi=new fn,Ei=new fn,Si=new qt,Ci=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn(1,0,0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(f.a)(this,e),this.normal=t,this.constant=n}return Object(p.a)(e,[{key:"set",value:function(e,t){return this.normal.copy(e),this.constant=t,this}},{key:"setComponents",value:function(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}},{key:"setFromNormalAndCoplanarPoint",value:function(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}},{key:"setFromCoplanarPoints",value:function(e,t,n){var r=Mi.subVectors(n,t).cross(Ei.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}},{key:"copy",value:function(e){return this.normal.copy(e.normal),this.constant=e.constant,this}},{key:"normalize",value:function(){var e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}},{key:"negate",value:function(){return this.constant*=-1,this.normal.negate(),this}},{key:"distanceToPoint",value:function(e){return this.normal.dot(e)+this.constant}},{key:"distanceToSphere",value:function(e){return this.distanceToPoint(e.center)-e.radius}},{key:"projectPoint",value:function(e,t){return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}},{key:"intersectLine",value:function(e,t){var n=e.delta(Mi),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;
1var i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(n).multiplyScalar(i).add(e.start)}},{key:"intersectsLine",value:function(e){var t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}},{key:"intersectsBox",value:function(e){return e.intersectsPlane(this)}},{key:"intersectsSphere",value:function(e){return e.intersectsPlane(this)}},{key:"coplanarPoint",value:function(e){return e.copy(this.normal).multiplyScalar(-this.constant)}},{key:"applyMatrix4",value:function(e,t){var n=t||Si.getNormalMatrix(e),r=this.coplanarPoint(Mi).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}},{key:"translate",value:function(e){return this.constant-=e.dot(this.normal),this}},{key:"equals",value:function(e){return e.normal.equals(this.normal)&&e.constant===this.constant}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}();Ci.prototype.isPlane=!0;var Ti=new Dn,ki=new fn,Ai=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ci,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ci,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Ci,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Ci,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Ci,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Ci;Object(f.a)(this,e),this.planes=[t,n,r,i,a,o]}return Object(p.a)(e,[{key:"set",value:function(e,t,n,r,i,a){var o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}},{key:"copy",value:function(e){for(var t=this.planes,n=0;n<6;n++)t[n].copy(e.planes[n]);return this}},{key:"setFromProjectionMatrix",value:function(e){var t=this.planes,n=e.elements,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6],c=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],v=n[13],g=n[14],y=n[15];return t[0].setComponents(o-r,c-s,p-h,y-m).normalize(),t[1].setComponents(o+r,c+s,p+h,y+m).normalize(),t[2].setComponents(o+i,c+l,p+d,y+v).normalize(),t[3].setComponents(o-i,c-l,p-d,y-v).normalize(),t[4].setComponents(o-a,c-u,p-f,y-g).normalize(),t[5].setComponents(o+a,c+u,p+f,y+g).normalize(),this}},{key:"intersectsObject",value:function(e){var t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Ti.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(Ti)}},{key:"intersectsSprite",value:function(e){return Ti.center.set(0,0,0),Ti.radius=.7071067811865476,Ti.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ti)}},{key:"intersectsSphere",value:function(e){for(var t=this.planes,n=e.center,r=-e.radius,i=0;i<6;i++){if(t[i].distanceToPoint(n)<r)return!1}return!0}},{key:"intersectsBox",value:function(e){for(var t=this.planes,n=0;n<6;n++){var r=t[n];if(ki.x=r.normal.x>0?e.max.x:e.min.x,ki.y=r.normal.y>0?e.max.y:e.min.y,ki.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(ki)<0)return!1}return!0}},{key:"containsPoint",value:function(e){for(var t=this.planes,n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}();function Oi(){var e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Li(e,t){var n=t.isWebGL2,r=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)},remove:function(t){t.isInterleavedBufferAttribute&&(t=t.data);var n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))},update:function(t,i){if(t.isGLBufferAttribute){var a=r.get(t);(!a||a.version<t.version)&&r.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version})}else{t.isInterleavedBufferAttribute&&(t=t.data);var o=r.get(t);void 0===o?r.set(t,function(t,r){var i=t.array,a=t.usage,o=e.createBuffer();e.bindBuffer(r,o),e.bufferData(r,i,a),t.onUploadCallback();var s=5126;return i instanceof Float32Array?s=5126:i instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):i instanceof Uint16Array?t.isFloat16BufferAttribute?n?s=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):s=5123:i instanceof Int16Array?s=5122:i instanceof Uint32Array?s=5125:i instanceof Int32Array?s=5124:i instanceof Int8Array?s=5120:i instanceof Uint8Array?s=5121:i instanceof Uint8ClampedArray&&(s=5121),{buffer:o,type:s,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}(t,i)):o.version<t.version&&(!function(t,r,i){var a=r.array,o=r.updateRange;e.bindBuffer(i,t),-1===o.count?e.bufferSubData(i,0,a):(n?e.bufferSubData(i,o.offset*a.BYTES_PER_ELEMENT,a,o.offset,o.count):e.bufferSubData(i,o.offset*a.BYTES_PER_ELEMENT,a.subarray(o.offset,o.offset+o.count)),o.count=-1)}(o.buffer,t,i),o.version=t.version)}}}}var Pi=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="PlaneGeometry",e.parameters={width:n,height:r,widthSegments:i,heightSegments:o};for(var s=n/2,u=r/2,c=Math.floor(i),h=Math.floor(o),d=c+1,p=h+1,m=n/c,v=r/h,g=[],y=[],x=[],b=[],_=0;_<p;_++)for(var w=_*v-u,M=0;M<d;M++){var E=M*m-s;
1y.push(E,-w,0),x.push(0,0,1),b.push(M/c),b.push(1-_/h)}for(var S=0;S<h;S++)for(var C=0;C<c;C++){var T=C+d*S,k=C+d*(S+1),A=C+1+d*(S+1),O=C+1+d*S;g.push(T,k,O),g.push(k,A,O)}return e.setIndex(g),e.setAttribute("position",new Dr(y,3)),e.setAttribute("normal",new Dr(x,3)),e.setAttribute("uv",new Dr(b,2)),e}return Object(c.a)(t,e),Object(p.a)(t,null,[{key:"fromJSON",value:function(e){return new t(e.width,e.height,e.widthSegments,e.heightSegments)}}]),t}(Vr),Ri={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\tif ( diffuseColor.a < alphaTest ) discard;\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x >
1 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 ) + 0.5;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\treturn texture2D( envMap, uv ).rgb;\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + dis
1placementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec;\n\t\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\t\treflectVec = reflect( - viewDir, normal );\n\t\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\t#else\n\t\t\t\treflectVec = refract( - viewDir, normal, refractionRatio );\n\t\t\t#endif\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t}
1 else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tlightMapIrradiance *= PI;\n\t#endif\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointLightInfo( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotLightInfo( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalLightInfo( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#else\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}
1\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\t#ifdef SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULARINTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n\t\t#endif\n\t\t#ifdef USE_SPECULARCOLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vUv ).rgb;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;
1\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) {\
1n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\tvec3 FssEss = specularColor * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
1\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1, 2 ) * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform vec2 morphTargetsTextureSize;\n\t\tvec3 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset, const in int stride ) {\n\t\t\tfloat texelIndex = float( vertexIndex * stride + offset );\n\t\t\tfloat y = floor( texelIndex / morphTargetsTextureSize.x );\n\t\t\tfloat x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tvec3 morphUV = vec3( ( x + 0.5 ) / morphTargetsTextureSize.x, y / morphTargetsTextureSize.y, morphTargetIndex );\n\t\t\treturn texture( morphTargetsTexture, morphUV ).xyz;\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\t#ifndef USE_MORPHNORMALS\n\t\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0, 1 ) * morphTargetInfluences[ i ];\n\t\t\t#else\n\t\t\t\tif ( morphTargetInfluences[ i ] !=
vendor: 12,506 bytes, line 1
1 0.0 ) transformed += getMorph( gl_VertexID, i, 0, 2 ) * morphTargetInfluences[ i ];\n\t\t\t#endif\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;
vendor: 4,652 bytes, line 1
1\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
vendor: 7,260 bytes, line 1
1\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(
1  1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,  1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,  1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tfloat transmissionAlpha = 1.0;\n\tfloat transmissionFactor = transmission;\n\tfloat thicknessFactor = thickness;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\ttransmissionFactor *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tthicknessFactor *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n\t\tattenuationColor, attenuationDistance );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor );\n\ttransmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\treturn texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#else\n\t\t\treturn texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#endif\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( attenuationDistance == 0.0 ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tgl_FragColor = texture2D( t2D, vUv );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opac
1ity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULARINTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n\t#ifdef USE_SPECULARCOLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;
1\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;
1\n\t#endif\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}"},Ii={common:{diffuse:{value:new rn(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new qt},uv2Transform:{value:new qt},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new Zt(1,1)}}
1,displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new rn(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new rn(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new qt}},sprite:{diffuse:{value:new rn(16777215)},opacity:{value:1},center:{value:new Zt(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new qt}}},Di={basic:{uniforms:hi([Ii.common,Ii.specularmap,Ii.envmap,Ii.aomap,Ii.lightmap,Ii.fog]),vertexShader:Ri.meshbasic_vert,fragmentShader:Ri.meshbasic_frag},lambert:{uniforms:hi([Ii.common,Ii.specularmap,Ii.envmap,Ii.aomap,Ii.lightmap,Ii.emissivemap,Ii.fog,Ii.lights,{emissive:{value:new rn(0)}}]),vertexShader:Ri.meshlambert_vert,fragmentShader:Ri.meshlambert_frag},phong:{uniforms:hi([Ii.common,Ii.specularmap,Ii.envmap,Ii.aomap,Ii.lightmap,Ii.emissivemap,Ii.bumpmap,Ii.normalmap,Ii.displacementmap,Ii.fog,Ii.lights,{emissive:{value:new rn(0)},specular:{value:new rn(1118481)},shininess:{value:30}}]),vertexShader:Ri.meshphong_vert,fragmentShader:Ri.meshphong_frag},standard:{uniforms:hi([Ii.common,Ii.envmap,Ii.aomap,Ii.lightmap,Ii.emissivemap,Ii.bumpmap,Ii.normalmap,Ii.displacementmap,Ii.roughnessmap,Ii.metalnessmap,Ii.fog,Ii.lights,{emissive:{value:new rn(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ri.meshphysical_vert,fragmentShader:Ri.meshphysical_frag},toon:{uniforms:hi([Ii.common,Ii.aomap,Ii.lightmap,Ii.emissivemap,Ii.bumpmap,Ii.normalmap,Ii.displacementmap,Ii.gradientmap,Ii.fog,Ii.lights,{emissive:{value:new rn(0)}}]),vertexShader:Ri.meshtoon_vert,fragmentShader:Ri.meshtoon_frag},matcap:{uniforms:hi([Ii.common,Ii.bumpmap,Ii.normalmap,Ii.displacementmap,Ii.fog,{matcap:{value:null}}]),vertexShader:Ri.meshmatcap_vert,fragmentShader:Ri.meshmatcap_frag},points:{uniforms:hi([Ii.points,Ii.fog]),vertexShader:Ri.points_vert,fragmentShader:Ri.points_frag},dashed:{uniforms:hi([Ii.common,Ii.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ri.linedashed_vert,fragmentShader:Ri.linedashed_frag},depth:{uniforms:hi([Ii.common,Ii.displacementmap]),vertexShader:Ri.depth_vert,fragmentShader:Ri.depth_frag},normal:{uniforms:hi([Ii.common,Ii.bumpmap,Ii.normalmap,Ii.displacementmap,{opacity:{value:1}}]),vertexShader:Ri.meshnormal_vert,fragmentShader:Ri.meshnormal_frag},sprite:{uniforms:hi([Ii.sprite,Ii.fog]),vertexShader:Ri.sprite_vert,fragmentShader:Ri.sprite_frag},background:{uniforms:{uvTransform:{value:new qt},t2D:{value:null}},vertexShader:Ri.background_vert,fragmentShader:Ri.background_frag},cube:{uniforms:hi([Ii.envmap,{opacity:{value:1}}]),vertexShader:Ri.cube_vert,fragmentShader:Ri.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ri.equirect_vert,fragmentShader:Ri.equirect_frag},distanceRGBA:{uniforms:hi([Ii.common,Ii.displacementmap,{referencePosition:{value:new fn},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ri.distanceRGBA_vert,fragmentShader:Ri.distanceRGBA_frag},shadow:{uniforms:hi([Ii.lights,Ii.fog,{color:{value:new rn(0)},opacity:{value:1}}]),vertexShader:Ri.shadow_vert,fragmentShader:Ri.shadow_frag}};function ji(e,t,n,r,i,a){var o,s,l=new rn(0),u=!0===i?0:1,c=null,h=0,d=null;function f(e,t){n.buffers.color.setClear(e.r,e.g,e.b,t,a)}return{getClearColor:function(){return l},setClearColor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;l.set(e),f(l,u=t)},getClearAlpha:function(){return u},setClearAlpha:function(e){f(l,u=e)},render:function(n,i){var a=!1,p=!0===i.isScene?i.background:null;p&&p.isTexture&&(p=t.get(p));var m=e.xr,v=m.getSession&&m.getSession();v&&"additive"===v.environmentBlendMode&&(p=null),null===p?f(l,u):p&&p.isColor&&(f(p,1),a=!0),(e.autoClear||a)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),p&&(p.isCubeTexture||p.mapping===me)?(void 0===s&&((s=new si(new ui(1,1,1),new mi({name:"Backgroun
1dCubeMaterial",uniforms:ci(Di.cube.uniforms),vertexShader:Di.cube.vertexShader,fragmentShader:Di.cube.fragmentShader,side:M,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.deleteAttribute("normal"),s.geometry.deleteAttribute("uv"),s.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(s.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(s)),s.material.uniforms.envMap.value=p,s.material.uniforms.flipEnvMap.value=p.isCubeTexture&&!1===p.isRenderTargetTexture?-1:1,c===p&&h===p.version&&d===e.toneMapping||(s.material.needsUpdate=!0,c=p,h=p.version,d=e.toneMapping),n.unshift(s,s.geometry,s.material,0,0,null)):p&&p.isTexture&&(void 0===o&&((o=new si(new Pi(2,2),new mi({name:"BackgroundMaterial",uniforms:ci(Di.background.uniforms),vertexShader:Di.background.vertexShader,fragmentShader:Di.background.fragmentShader,side:w,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.deleteAttribute("normal"),Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(o)),o.material.uniforms.t2D.value=p,!0===p.matrixAutoUpdate&&p.updateMatrix(),o.material.uniforms.uvTransform.value.copy(p.matrix),c===p&&h===p.version&&d===e.toneMapping||(o.material.needsUpdate=!0,c=p,h=p.version,d=e.toneMapping),n.unshift(o,o.geometry,o.material,0,0,null))}}}function Ni(e,t,n,r){var i=e.getParameter(34921),a=r.isWebGL2?null:t.get("OES_vertex_array_object"),o=r.isWebGL2||null!==a,s={},l=d(null),u=l;function c(t){return r.isWebGL2?e.bindVertexArray(t):a.bindVertexArrayOES(t)}function h(t){return r.isWebGL2?e.deleteVertexArray(t):a.deleteVertexArrayOES(t)}function d(e){for(var t=[],n=[],r=[],a=0;a<i;a++)t[a]=0,n[a]=0,r[a]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:n,attributeDivisors:r,object:e,attributes:{},index:null}}function f(){for(var e=u.newAttributes,t=0,n=e.length;t<n;t++)e[t]=0}function p(e){m(e,0)}function m(n,i){var a=u.newAttributes,o=u.enabledAttributes,s=u.attributeDivisors;(a[n]=1,0===o[n]&&(e.enableVertexAttribArray(n),o[n]=1),s[n]!==i)&&((r.isWebGL2?e:t.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,i),s[n]=i)}function v(){for(var t=u.newAttributes,n=u.enabledAttributes,r=0,i=n.length;r<i;r++)n[r]!==t[r]&&(e.disableVertexAttribArray(r),n[r]=0)}function g(t,n,i,a,o,s){!0!==r.isWebGL2||5124!==i&&5125!==i?e.vertexAttribPointer(t,n,i,a,o,s):e.vertexAttribIPointer(t,n,i,o,s)}function y(){x(),u!==l&&c((u=l).object)}function x(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(i,l,h,y,x){var b=!1;if(o){var _=function(t,n,i){var o=!0===i.wireframe,l=s[t.id];void 0===l&&(l={},s[t.id]=l);var u=l[n.id];void 0===u&&(u={},l[n.id]=u);var c=u[o];void 0===c&&(c=d(r.isWebGL2?e.createVertexArray():a.createVertexArrayOES()),u[o]=c);return c}(y,h,l);u!==_&&c((u=_).object),(b=function(e,t){var n=u.attributes,r=e.attributes,i=0;for(var a in r){var o=n[a],s=r[a];if(void 0===o)return!0;if(o.attribute!==s)return!0;if(o.data!==s.data)return!0;i++}return u.attributesNum!==i||u.index!==t}(y,x))&&function(e,t){var n={},r=e.attributes,i=0;for(var a in r){var o=r[a],s={};s.attribute=o,o.data&&(s.data=o.data),n[a]=s,i++}u.attributes=n,u.attributesNum=i,u.index=t}(y,x)}else{var w=!0===l.wireframe;u.geometry===y.id&&u.program===h.id&&u.wireframe===w||(u.geometry=y.id,u.program=h.id,u.wireframe=w,b=!0)}!0===i.isInstancedMesh&&(b=!0),null!==x&&n.update(x,34963),b&&(!function(i,a,o,s){if(!1===r.isWebGL2&&(i.isInstancedMesh||s.isInstancedBufferGeometry)&&null===t.get("ANGLE_instanced_arrays"))return;f();var l=s.attributes,u=o.getAttributes(),c=a.defaultAttributeValues;for(var h in u){var d=u[h];if(d.location>=0){var y=l[h];if(void 0===y&&("instanceMatrix"===h&&i.instanceMatrix&&(y=i.instanceMatrix),"instanceColor"===h&&i.instanceColor&&(y=i.instanceColor)),void 0!==y){var x=y.normalized,b=y.itemSize,_=n.get(y);if(void 0===_)continue;var w=_.buffer,M=_.type,E=_.bytesPerElement;if(y.isInterleavedBufferAttribute){var S=y.data,C=S.stride,T=y.offset;if(S&&S.isInstancedInterleavedBuffer){for(var k=0;k<d.locationSize;k++)m(d.location+k,S.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=S.meshPerAttribute*S.count)}else for(var A=0;A<d.locationSize;A++)p(d.location+A);e.bindBuffer(34962,w);for(var O=0;O<d.locationSize;O++)g(d.location+O,b/d.locationSize,M,x,C*E,(T+b/d.locationSize*O)*E)}else{if(y.isInstancedBufferAttribute){for(var L=0;L<d.locationSize;L++)m(d.location+L,y.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=y.meshPerAttribute*y.count)}else for(var P=0;P<d.locationSize;P++)p(d.location+P);e.bindBuffer(34962,w);for(var R=0;R<d.locationSize;R++)g(d.location+R,b/d.locationSize,M,x,b*E,b/d.locationSize*R*E)}}else if(void 0!==c){var I=c[h];if(void 0!==I)switch(I.length){case 2:e.vertexAttrib2fv(d.location,I);break;case 3:e.vertexAttrib3fv(d.location,I);break;case 4:e.vertexAttrib4fv(d.location,I);break;default:e.vertexAttrib1fv(d.location,I)}}}}v()}(i,l,h,y),null!==x&&e.bindBuffer(34963,n.get(x).buffer))},reset:y,resetDefaultState:x,dispose:function(){for(var e in y(),s){var t=s[e];for(var n in t){var r=t[n];for(var i in r)h(r[i].object),delete r[i];delete t[n]}delete s[e]}},releaseStatesOfGeometry:function(e){if(void 0!==s[e.id]){var t=s[e.id];for(var n in t){var r=t[n];for(var i in r)h(r[i].object),delete r[i];delete t[n]}delete s[e.id]}},releaseStatesOfProgram:function(e){for(var t in s){var n=s[t];if(void 0!==n[e.id]){var r=n[e.id];for(var i in r)h(r[i].object),delete r[i];delete n[e.id]}}},initAttributes:f,enableAttribute:p,disableUnusedAttributes:v}}function Fi(e,t,n,r){var i,a=r.isWebGL2;this.setMode=function(e){i=e},this.render=function(t,r){e.drawArrays(i,t,r),n.update(r,i,1)},this.renderInstances=function(r,o,s){if(0!==s){var l,u;if(a)l=e,u="drawArraysInstanced";
1else if(u="drawArraysInstancedANGLE",null===(l=t.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[u](i,r,o,s),n.update(o,i,s)}}}function Bi(e,t,n){var r;function i(t){if("highp"===t){if(e.getShaderPrecisionFormat(35633,36338).precision>0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}var a="undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||"undefined"!=typeof WebGL2ComputeRenderingContext&&e instanceof WebGL2ComputeRenderingContext,o=void 0!==n.precision?n.precision:"highp",s=i(o);s!==o&&(console.warn("THREE.WebGLRenderer:",o,"not supported, using",s,"instead."),o=s);var l=a||t.has("WEBGL_draw_buffers"),u=!0===n.logarithmicDepthBuffer,c=e.getParameter(34930),h=e.getParameter(35660),d=e.getParameter(3379),f=e.getParameter(34076),p=e.getParameter(34921),m=e.getParameter(36347),v=e.getParameter(36348),g=e.getParameter(36349),y=h>0,x=a||t.has("OES_texture_float");return{isWebGL2:a,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){var n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:o,logarithmicDepthBuffer:u,maxTextures:c,maxVertexTextures:h,maxTextureSize:d,maxCubemapSize:f,maxAttributes:p,maxVertexUniforms:m,maxVaryings:v,maxFragmentUniforms:g,vertexTextures:y,floatFragmentTextures:x,floatVertexTextures:y&&x,maxSamples:a?e.getParameter(36183):0}}function zi(e){var t=this,n=null,r=0,i=!1,a=!1,o=new Ci,s=new qt,l={value:null,needsUpdate:!1};function u(){l.value!==n&&(l.value=n,l.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function c(e,n,r,i){var a=null!==e?e.length:0,u=null;if(0!==a){if(u=l.value,!0!==i||null===u){var c=r+4*a,h=n.matrixWorldInverse;s.getNormalMatrix(h),(null===u||u.length<c)&&(u=new Float32Array(c));for(var d=0,f=r;d!==a;++d,f+=4)o.copy(e[d]).applyMatrix4(h,s),o.normal.toArray(u,f),u[f+3]=o.constant}l.value=u,l.needsUpdate=!0}return t.numPlanes=a,t.numIntersection=0,u}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t,a){var o=0!==e.length||t||0!==r||i;return i=t,n=c(e,a,0),r=e.length,o},this.beginShadows=function(){a=!0,c(null)},this.endShadows=function(){a=!1,u()},this.setState=function(t,o,s){var h=t.clippingPlanes,d=t.clipIntersection,f=t.clipShadows,p=e.get(t);if(!i||null===h||0===h.length||a&&!f)a?c(null):u();else{var m=a?0:r,v=4*m,g=p.clippingState||null;l.value=g,g=c(h,o,v,s);for(var y=0;y!==v;++y)g[y]=n[y];p.clippingState=g,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=m}}}function Hi(e){var t=new WeakMap;function n(e,t){return t===fe?e.mapping=he:t===pe&&(e.mapping=de),e}function r(e){var n=e.target;n.removeEventListener("dispose",r);var i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){var a=i.mapping;if(a===fe||a===pe){if(t.has(i))return n(t.get(i).texture,i.mapping);var o=i.image;if(o&&o.height>0){var s=new wi(o.height/2);return s.fromEquirectangularTexture(e,i),t.set(i,s),i.addEventListener("dispose",r),n(s.texture,i.mapping)}return null}}return i},dispose:function(){t=new WeakMap}}}Di.physical={uniforms:hi([Di.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new Zt(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new rn(0)},sheenColorMap:{value:null},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new Zt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new rn(0)},specularIntensity:{value:1},specularIntensityMap:{value:null},specularColor:{value:new rn(1,1,1)},specularColorMap:{value:null}}]),vertexShader:Ri.meshphysical_vert,fragmentShader:Ri.meshphysical_frag};var Ui=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="Orthogra
1phicCamera",e.zoom=1,e.view=null,e.left=n,e.right=r,e.top=i,e.bottom=o,e.near=s,e.far=u,e.updateProjectionMatrix(),e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e,n){return s(Object(a.a)(t.prototype),"copy",this).call(this,e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}},{key:"setViewOffset",value:function(e,t,n,r,i,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2,i=n-e,a=n+e,o=r+t,s=r-t;if(null!==this.view&&this.view.enabled){var l=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a=(i+=l*this.view.offsetX)+l*this.view.width,s=(o-=u*this.view.offsetY)-u*this.view.height}this.projectionMatrix.makeOrthographic(i,a,o,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(e){var n=s(Object(a.a)(t.prototype),"toJSON",this).call(this,e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,null!==this.view&&(n.object.view=Object.assign({},this.view)),n}}]),t}(vi);Ui.prototype.isOrthographicCamera=!0;var Vi=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this,e))).type="RawShaderMaterial",n}return Object(c.a)(t,e),t}(mi);Vi.prototype.isRawShaderMaterial=!0;var Gi=4,Wi=8,Zi=Math.pow(2,Wi),qi=[.125,.215,.35,.446,.526,.582],Xi=Wi-Gi+1+qi.length,Ji=20,Yi=new Ui,Ki=sa(),Qi=Ki._lodPlanes,$i=Ki._sizeLods,ea=Ki._sigmas,ta=new rn,na=null,ra=(1+Math.sqrt(5))/2,ia=1/ra,aa=[new fn(1,1,1),new fn(-1,1,1),new fn(1,1,-1),new fn(-1,1,-1),new fn(0,ra,ia),new fn(0,ra,-ia),new fn(ia,0,ra),new fn(-ia,0,ra),new fn(ra,ia,0),new fn(-ra,ia,0)],oa=function(){function e(t){var n,r,i;Object(f.a)(this,e),this._renderer=t,this._pingPongRenderTarget=null,this._blurMaterial=(n=Ji,r=new Float32Array(n),i=new fn(0,1,0),new Vi({name:"SphericalGaussianBlur",defines:{n:n},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:S,depthTest:!1,depthWrite:!1})),this._equirectShader=null,this._cubemapShader=null,this._compileMaterial(this._blurMaterial)}return Object(p.a)(e,[{key:"fromScene",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;na=this._renderer.getRenderTarget();var i=this._allocateTargets();return this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}},{key:"fromEquirectangular",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._fromTexture(e,t)}},{key:"fromCubemap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._fromTexture(e,t)}},{key:"compileCubemapShader",value:function(){null===this._cubemapShader&&(this._cubemapShader=ha(),this._compileMaterial(this._cubemapShader))}},{key:"compileEquirectangularShader",value:function(){null===this._equirectShader&&(this._equirectShader=ca(),this._compileMaterial(this._equirectShader))}},{key:"dispose",value:function(){this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose(),null!==this._cubemapShader&&this._cubemapShader.dispose(),null!==this._equirectShader&&this._equirectShader.dispose();for(var e=0;e<Qi.length;e++)Qi[e].dispose()}},{key:"_cleanup",value:function(e){this._renderer.setRenderTarget(na),e.scissorTest=!1,ua(e,0,0,e.width,e.height)}},{key:"_fromTexture",value:function(e,t){na=this._renderer.getRenderTarget();var n=t||this._allocateTargets(e);return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}},{key:"_allocateTargets",value:function(e){var t={magFilter:Me,minFilter:Me,generateMipmaps:!1,type:Re,format:Fe,encoding:Mt,depthBuffer:!1},n=la(t);return n.depthBuffer=!e,null===this._pingPongRenderTarget&&(this._pingPongRenderTarget=la(t)),n}},{key:"_compileMaterial",value:function(e){var t=new si(Qi[0],e);this._renderer.compile(t,Yi)}},{key:"_sceneToCubeUV",value:function(e,t,n,r){var i=new gi(90,1,t,n),a=[1,-1,1,1,1,1],o=[1,1,1,-1,-1,-1],s=this._renderer,l=s.autoClear,u=s.toneMapping;s.getClearColor(ta),s.toneMapping=ie,s.autoClear=!1;
1var c=new Ar({name:"PMREM.Background",side:M,depthWrite:!1,depthTest:!1}),h=new si(new ui,c),d=!1,f=e.background;f?f.isColor&&(c.color.copy(f),e.background=null,d=!0):(c.color.copy(ta),d=!0);for(var p=0;p<6;p++){var m=p%3;0===m?(i.up.set(0,a[p],0),i.lookAt(o[p],0,0)):1===m?(i.up.set(0,0,a[p]),i.lookAt(0,o[p],0)):(i.up.set(0,a[p],0),i.lookAt(0,0,o[p])),ua(r,m*Zi,p>2?Zi:0,Zi,Zi),s.setRenderTarget(r),d&&s.render(h,i),s.render(e,i)}h.geometry.dispose(),h.material.dispose(),s.toneMapping=u,s.autoClear=l,e.background=f}},{key:"_textureToCubeUV",value:function(e,t){var n=this._renderer,r=e.mapping===he||e.mapping===de;r?(null===this._cubemapShader&&(this._cubemapShader=ha()),this._cubemapShader.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectShader&&(this._equirectShader=ca());var i=r?this._cubemapShader:this._equirectShader,a=new si(Qi[0],i),o=i.uniforms;o.envMap.value=e,r||o.texelSize.value.set(1/e.image.width,1/e.image.height),ua(t,0,0,3*Zi,2*Zi),n.setRenderTarget(t),n.render(a,Yi)}},{key:"_applyPMREM",value:function(e){var t=this._renderer,n=t.autoClear;t.autoClear=!1;for(var r=1;r<Xi;r++){var i=Math.sqrt(ea[r]*ea[r]-ea[r-1]*ea[r-1]),a=aa[(r-1)%aa.length];this._blur(e,r-1,r,i,a)}t.autoClear=n}},{key:"_blur",value:function(e,t,n,r,i){var a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,r,"latitudinal",i),this._halfBlur(a,e,n,n,r,"longitudinal",i)}},{key:"_halfBlur",value:function(e,t,n,r,i,a,o){var s=this._renderer,l=this._blurMaterial;"latitudinal"!==a&&"longitudinal"!==a&&console.error("blur direction must be either latitudinal or longitudinal!");var u=new si(Qi[r],l),c=l.uniforms,h=$i[n]-1,d=isFinite(i)?Math.PI/(2*h):2*Math.PI/(2*Ji-1),f=i/d,p=isFinite(i)?1+Math.floor(3*f):Ji;p>Ji&&console.warn("sigmaRadians, ".concat(i,", is too large and will clip, as it requested ").concat(p," samples when the maximum is set to ").concat(Ji));for(var m=[],v=0,g=0;g<Ji;++g){var y=g/f,x=Math.exp(-y*y/2);m.push(x),0===g?v+=x:g<p&&(v+=2*x)}for(var b=0;b<m.length;b++)m[b]=m[b]/v;c.envMap.value=e.texture,c.samples.value=p,c.weights.value=m,c.latitudinal.value="latitudinal"===a,o&&(c.poleAxis.value=o),c.dTheta.value=d,c.mipInt.value=Wi-n;var _=$i[r];ua(t,3*Math.max(0,Zi-2*_),(0===r?0:2*Zi)+2*_*(r>Wi-Gi?r-Wi+Gi:0),3*_,2*_),s.setRenderTarget(t),s.render(u,Yi)}}]),e}();function sa(){for(var e=[],t=[],n=[],r=Wi,i=0;i<Xi;i++){var a=Math.pow(2,r);t.push(a);var o=1/a;i>Wi-Gi?o=qi[i-Wi+Gi-1]:0===i&&(o=0),n.push(o);for(var s=1/(a-1),l=-s/2,u=1+s/2,c=[l,l,u,l,u,u,l,l,u,u,l,u],h=new Float32Array(108),d=new Float32Array(72),f=new Float32Array(36),p=0;p<6;p++){var m=p%3*2/3-1,v=p>2?0:-1,g=[m,v,0,m+2/3,v,0,m+2/3,v+1,0,m,v,0,m+2/3,v+1,0,m,v+1,0];h.set(g,18*p),d.set(c,12*p);var y=[p,p,p,p,p,p];f.set(y,6*p)}var x=new Vr;x.setAttribute("position",new Pr(h,3)),x.setAttribute("uv",new Pr(d,2)),x.setAttribute("faceIndex",new Pr(f,1)),e.push(x),r>Gi&&r--}return{_lodPlanes:e,_sizeLods:t,_sigmas:n}}function la(e){var t=new cn(3*Zi,3*Zi,e);return t.texture.mapping=me,t.texture.name="PMREM.cubeUv",t.scissorTest=!0,t}function ua(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function ca(){var e=new Zt(1,1);return new Vi({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:e}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform vec2 texelSize;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = texture2D ( envMap, uv ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = texture2D ( envMap, uv ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = texture2D ( envMap, uv ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = texture2D ( envMap, uv ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t}\n\t\t",blending:S,depthTest:!1,depthWrite:!1})}function ha(){return new Vi({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:S,depthTest:!1,depthWrite:!1})}function da(e){var t=new WeakMap,n=null;function r(e){var n=e.target;n.removeEventListener("dispose",r);var i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){var a=i.mapping,o=a===fe||a===pe,s=a===he||a===de;if(o||s){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;var l=t.get(i);return null===n&&(n=new oa(e)),l=o?n.fromEquirectangular(i,l):n.fromCubemap(i,l),t.set(i,l),l.texture}if(t.has(i))return t.get(i).texture;var u=i.image;if(o&&u&&u.height>0||s&&u&&function(e){for(var t=0,n=0;n<6;n++)void 0!==e[n]&&t++;return 6===t}(u)){null===n&&(n=new oa(e));var c=o?n.fromEquirectangular(i):n.fromCubemap(i);return t.set(i,c),i.addEventListener("dispose",r),c.texture}return null}}return i},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function fa(e){var t={};
1function n(n){if(void 0!==t[n])return t[n];var r;switch(n){case"WEBGL_depth_texture":r=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return null!==n(e)},init:function(e){e.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(e){var t=n(e);return null===t&&console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function pa(e,t,n,r){var i={},a=new WeakMap;function o(e){var s=e.target;for(var l in null!==s.index&&t.remove(s.index),s.attributes)t.remove(s.attributes[l]);s.removeEventListener("dispose",o),delete i[s.id];var u=a.get(s);u&&(t.remove(u),a.delete(s)),r.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,n.memory.geometries--}function s(e){var n=[],r=e.index,i=e.attributes.position,o=0;if(null!==r){var s=r.array;o=r.version;for(var l=0,u=s.length;l<u;l+=3){var c=s[l+0],h=s[l+1],d=s[l+2];n.push(c,h,h,d,d,c)}}else{var f=i.array;o=i.version;for(var p=0,m=f.length/3-1;p<m;p+=3){var v=p+0,g=p+1,y=p+2;n.push(v,g,g,y,y,v)}}var x=new(Xt(n)?Ir:Rr)(n,1);x.version=o;var b=a.get(e);b&&t.remove(b),a.set(e,x)}return{get:function(e,t){return!0===i[t.id]?t:(t.addEventListener("dispose",o),i[t.id]=!0,n.memory.geometries++,t)},update:function(e){var n=e.attributes;for(var r in n)t.update(n[r],34962);var i=e.morphAttributes;for(var a in i)for(var o=i[a],s=0,l=o.length;s<l;s++)t.update(o[s],34962)},getWireframeAttribute:function(e){var t=a.get(e);if(t){var n=e.index;null!==n&&t.version<n.version&&s(e)}else s(e);return a.get(e)}}}function ma(e,t,n,r){var i,a,o,s=r.isWebGL2;this.setMode=function(e){i=e},this.setIndex=function(e){a=e.type,o=e.bytesPerElement},this.render=function(t,r){e.drawElements(i,r,a,t*o),n.update(r,i,1)},this.renderInstances=function(r,l,u){if(0!==u){var c,h;if(s)c=e,h="drawElementsInstanced";else if(h="drawElementsInstancedANGLE",null===(c=t.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");c[h](i,l,a,r*o,u),n.update(l,i,u)}}}function va(e){var t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.frame++,t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(e,n,r){switch(t.calls++,n){case 4:t.triangles+=r*(e/3);break;case 1:t.lines+=r*(e/2);break;case 3:t.lines+=r*(e-1);break;case 2:t.lines+=r*e;break;case 0:t.points+=r*e;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}var ga=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this,null))).image={data:n,width:r,height:i,depth:o},e.magFilter=be,e.minFilter=be,e.wrapR=ye,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e}return Object(c.a)(t,e),t}(sn);function ya(e,t){return e[0]-t[0]}function xa(e,t){return Math.abs(t[1])-Math.abs(e[1])}function ba(e,t){var n=1,r=t.isInterleavedBufferAttribute?t.data.array:t.array;r instanceof Int8Array?n=127:r instanceof Int16Array?n=32767:r instanceof Int32Array?n=2147483647:console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ",r),e.divideScalar(n)}function _a(e,t,n){for(var r={},i=new Float32Array(8),a=new WeakMap,o=new fn,s=[],l=0;l<8;l++)s[l]=[l,0];return{update:function(l,u,c,h){var d=l.morphTargetInfluences;if(!0===t.isWebGL2){var f=u.morphAttributes.position.length,p=a.get(u);if(void 0===p||p.count!==f){void 0!==p&&p.texture.dispose();var m=void 0!==u.morphAttributes.normal,v=u.morphAttributes.position,g=u.morphAttributes.normal||[],y=!0===m?2:1,x=u.attributes.position.count*y,b=1;x>t.maxTextureSize&&(b=Math.ceil(x/t.maxTextureSize),x=t.maxTextureSize);var _=new Float32Array(x*b*4*f),w=new ga(_,x,b,f);w.format=Fe,w.type=Pe,w.needsUpdate=!0;for(var M=4*y,E=0;E<f;E++)for(var S=v[E],C=g[E],T=x*b*4*E,k=0;k<S.count;k++){o.fromBufferAttribute(S,k),!0===S.normalized&&ba(o,S);var A=k*M;
1_[T+A+0]=o.x,_[T+A+1]=o.y,_[T+A+2]=o.z,_[T+A+3]=0,!0===m&&(o.fromBufferAttribute(C,k),!0===C.normalized&&ba(o,C),_[T+A+4]=o.x,_[T+A+5]=o.y,_[T+A+6]=o.z,_[T+A+7]=0)}p={count:f,texture:w,size:new Zt(x,b)},a.set(u,p),u.addEventListener("dispose",(function e(){w.dispose(),a.delete(u),u.removeEventListener("dispose",e)}))}for(var O=0,L=0;L<d.length;L++)O+=d[L];var P=u.morphTargetsRelative?1:1-O;h.getUniforms().setValue(e,"morphTargetBaseInfluence",P),h.getUniforms().setValue(e,"morphTargetInfluences",d),h.getUniforms().setValue(e,"morphTargetsTexture",p.texture,n),h.getUniforms().setValue(e,"morphTargetsTextureSize",p.size)}else{var R=void 0===d?0:d.length,I=r[u.id];if(void 0===I||I.length!==R){I=[];for(var D=0;D<R;D++)I[D]=[D,0];r[u.id]=I}for(var j=0;j<R;j++){var N=I[j];N[0]=j,N[1]=d[j]}I.sort(xa);for(var F=0;F<8;F++)F<R&&I[F][1]?(s[F][0]=I[F][0],s[F][1]=I[F][1]):(s[F][0]=Number.MAX_SAFE_INTEGER,s[F][1]=0);s.sort(ya);for(var B=u.morphAttributes.position,z=u.morphAttributes.normal,H=0,U=0;U<8;U++){var V=s[U],G=V[0],W=V[1];G!==Number.MAX_SAFE_INTEGER&&W?(B&&u.getAttribute("morphTarget"+U)!==B[G]&&u.setAttribute("morphTarget"+U,B[G]),z&&u.getAttribute("morphNormal"+U)!==z[G]&&u.setAttribute("morphNormal"+U,z[G]),i[U]=W,H+=W):(B&&!0===u.hasAttribute("morphTarget"+U)&&u.deleteAttribute("morphTarget"+U),z&&!0===u.hasAttribute("morphNormal"+U)&&u.deleteAttribute("morphNormal"+U),i[U]=0)}var Z=u.morphTargetsRelative?1:1-H;h.getUniforms().setValue(e,"morphTargetBaseInfluence",Z),h.getUniforms().setValue(e,"morphTargetInfluences",i)}}}}function wa(e,t,n,r){var i=new WeakMap;function a(e){var t=e.target;t.removeEventListener("dispose",a),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(e){var o=r.render.frame,s=e.geometry,l=t.get(e,s);return i.get(l)!==o&&(t.update(l),i.set(l,o)),e.isInstancedMesh&&(!1===e.hasEventListener("dispose",a)&&e.addEventListener("dispose",a),n.update(e.instanceMatrix,34962),null!==e.instanceColor&&n.update(e.instanceColor,34962)),l},dispose:function(){i=new WeakMap}}}ga.prototype.isDataTexture2DArray=!0;var Ma=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this,null))).image={data:n,width:r,height:i,depth:o},e.magFilter=be,e.minFilter=be,e.wrapR=ye,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e}return Object(c.a)(t,e),t}(sn);Ma.prototype.isDataTexture3D=!0;var Ea=new sn,Sa=new ga,Ca=new Ma,Ta=new _i,ka=[],Aa=[],Oa=new Float32Array(16),La=new Float32Array(9),Pa=new Float32Array(4);function Ra(e,t,n){var r=e[0];if(r<=0||r>0)return e;var i=t*n,a=ka[i];if(void 0===a&&(a=new Float32Array(i),ka[i]=a),0!==t){r.toArray(a,0);for(var o=1,s=0;o!==t;++o)s+=n,e[o].toArray(a,s)}return a}function Ia(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Da(e,t){for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}function ja(e,t){var n=Aa[t];void 0===n&&(n=new Int32Array(t),Aa[t]=n);for(var r=0;r!==t;++r)n[r]=e.allocateTextureUnit();return n}function Na(e,t){var n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function Fa(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Ia(n,t))return;e.uniform2fv(this.addr,t),Da(n,t)}}function Ba(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(Ia(n,t))return;e.uniform3fv(this.addr,t),Da(n,t)}}function za(e,t){var n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Ia(n,t))return;e.uniform4fv(this.addr,t),Da(n,t)}}function Ha(e,t){var n=this.cache,r=t.elements;if(void 0===r){if(Ia(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Da(n,t)}else{if(Ia(n,r))return;Pa.set(r),e.uniformMatrix2fv(this.addr,!1,Pa),Da(n,r)}}function Ua(e,t){var n=this.cache,r=t.elements;if(void 0===r){if(Ia(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Da(n,t)}else{if(Ia(n,r))return;La.set(r),e.uniformMatrix3fv(this.addr,!1,La),Da(n,r)}}function Va(e,t){var n=this.cache,r=t.elements;if(void 0===r){if(Ia(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Da(n,t)}else{if(Ia(n,r))return;Oa.set(r),e.uniformMatrix4fv(this.addr,!1,Oa),Da(n,r)}}function Ga(e,t){var n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Wa(e,t){var n=this.cache;Ia(n,t)||(e.uniform2iv(this.addr,t),Da(n,t))}function Za(e,t){var n=this.cache;Ia(n,t)||(e.uniform3iv(this.addr,t),Da(n,t))}function qa(e,t){var n=this.cache;Ia(n,t)||(e.uniform4iv(this.addr,t),Da(n,t))}function Xa(e,t){var n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function Ja(e,t){var n=this.cache;Ia(n,t)||(e.uniform2uiv(this.addr,t),Da(n,t))}function Ya(e,t){var n=this.cache;Ia(n,t)||(e.uniform3uiv(this.addr,t),Da(n,t))}function Ka(e,t){var n=this.cache;Ia(n,t)||(e.uniform4uiv(this.addr,t),Da(n,t))}
1function Qa(e,t,n){var r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.safeSetTexture2D(t||Ea,i)}function $a(e,t,n){var r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(t||Ca,i)}function eo(e,t,n){var r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.safeSetTextureCube(t||Ta,i)}function to(e,t,n){var r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(t||Sa,i)}function no(e,t){e.uniform1fv(this.addr,t)}function ro(e,t){var n=Ra(t,this.size,2);e.uniform2fv(this.addr,n)}function io(e,t){var n=Ra(t,this.size,3);e.uniform3fv(this.addr,n)}function ao(e,t){var n=Ra(t,this.size,4);e.uniform4fv(this.addr,n)}function oo(e,t){var n=Ra(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function so(e,t){var n=Ra(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function lo(e,t){var n=Ra(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function uo(e,t){e.uniform1iv(this.addr,t)}function co(e,t){e.uniform2iv(this.addr,t)}function ho(e,t){e.uniform3iv(this.addr,t)}function fo(e,t){e.uniform4iv(this.addr,t)}function po(e,t){e.uniform1uiv(this.addr,t)}function mo(e,t){e.uniform2uiv(this.addr,t)}function vo(e,t){e.uniform3uiv(this.addr,t)}function go(e,t){e.uniform4uiv(this.addr,t)}function yo(e,t,n){var r=t.length,i=ja(n,r);e.uniform1iv(this.addr,i);for(var a=0;a!==r;++a)n.safeSetTexture2D(t[a]||Ea,i[a])}function xo(e,t,n){var r=t.length,i=ja(n,r);e.uniform1iv(this.addr,i);for(var a=0;a!==r;++a)n.setTexture3D(t[a]||Ca,i[a])}function bo(e,t,n){var r=t.length,i=ja(n,r);e.uniform1iv(this.addr,i);for(var a=0;a!==r;++a)n.safeSetTextureCube(t[a]||Ta,i[a])}function _o(e,t,n){var r=t.length,i=ja(n,r);e.uniform1iv(this.addr,i);for(var a=0;a!==r;++a)n.setTexture2DArray(t[a]||Sa,i[a])}function wo(e,t,n){this.id=e,this.addr=n,this.cache=[],this.setValue=function(e){switch(e){case 5126:return Na;case 35664:return Fa;case 35665:return Ba;case 35666:return za;case 35674:return Ha;case 35675:return Ua;case 35676:return Va;case 5124:case 35670:return Ga;case 35667:case 35671:return Wa;case 35668:case 35672:return Za;case 35669:case 35673:return qa;case 5125:return Xa;case 36294:return Ja;case 36295:return Ya;case 36296:return Ka;case 35678:case 36198:case 36298:case 36306:case 35682:return Qa;case 35679:case 36299:case 36307:return $a;case 35680:case 36300:case 36308:case 36293:return eo;case 36289:case 36303:case 36311:case 36292:return to}}(t.type)}function Mo(e,t,n){this.id=e,this.addr=n,this.cache=[],this.size=t.size,this.setValue=function(e){switch(e){case 5126:return no;case 35664:return ro;case 35665:return io;case 35666:return ao;case 35674:return oo;case 35675:return so;case 35676:return lo;case 5124:case 35670:return uo;case 35667:case 35671:return co;case 35668:case 35672:return ho;case 35669:case 35673:return fo;case 5125:return po;case 36294:return mo;case 36295:return vo;case 36296:return go;case 35678:case 36198:case 36298:case 36306:case 35682:return yo;case 35679:case 36299:case 36307:return xo;case 35680:case 36300:case 36308:case 36293:return bo;case 36289:case 36303:case 36311:case 36292:return _o}}(t.type)}function Eo(e){this.id=e,this.seq=[],this.map={}}Mo.prototype.updateCache=function(e){var t=this.cache;e instanceof Float32Array&&t.length!==e.length&&(this.cache=new Float32Array(e.length)),Da(t,e)},Eo.prototype.setValue=function(e,t,n){for(var r=this.seq,i=0,a=r.length;i!==a;++i){var o=r[i];o.setValue(e,t[o.id],n)}};var So=/(\w+)(\])?(\[|\.)?/g;function Co(e,t){e.seq.push(t),e.map[t.id]=t}function To(e,t,n){var r=e.name,i=r.length;for(So.lastIndex=0;;){var a=So.exec(r),o=So.lastIndex,s=a[1],l="]"===a[2],u=a[3];if(l&&(s|=0),void 0===u||"["===u&&o+2===i){Co(n,void 0===u?new wo(s,e,t):new Mo(s,e,t));break}var c=n.map[s];void 0===c&&Co(n,c=new Eo(s)),n=c}}function ko(e,t){this.seq=[],this.map={};for(var n=e.getProgramParameter(t,35718),r=0;r<n;++r){var i=e.getActiveUniform(t,r);To(i,e.getUniformLocation(t,i.name),this)}}function Ao(e,t,n){var r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}ko.prototype.setValue=function(e,t,n,r){var i=this.map[t];void 0!==i&&i.setValue(e,n,r)},ko.prototype.setOptional=function(e,t,n){var r=t[n];void 0!==r&&this.setValue(e,n,r)},ko.upload=function(e,t,n,r){for(var i=0,a=t.length;i!==a;++i){var o=t[i],s=n[o.id];!1!==s.needsUpdate&&o.setValue(e,s.value,r)}},ko.seqWithValue=function(e,t){for(var n=[],r=0,i=e.length;r!==i;++r){var a=e[r];a.id in t&&n.push(a)}return n};var Oo=0;function Lo(e,t,n){var r=e.getShaderParameter(t,35713),i=e.getShaderInfoLog(t).trim();return r&&""===i?"":n.toUpperCase()+"\n\n"+i+"\n\n"+function(e){for(var t=e.split("\n"),n=0;n<t.length;n++)t[n]=n+1+": "+t[n];return t.join("\n")}(e.getShaderSource(t))}function Po(e,t){var n=function(e){switch(e){case Mt:return["Linear","( value )"];case Et:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",e),["Linear","( value )"]}}(t);return"vec4 "+e+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Ro(e,t){var n;switch(t){case ae:n="Linear";break;case oe:n="Reinhard";break;case se:n="OptimizedCineon";break;case le:n="ACESFilmic";break;case ue:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Io(e){return""!==e}function Do(e,t){return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_L
vendor: 4,492 bytes, line 1
1IGHTS/g,t.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function jo(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}var No=/^[ \t]*#include +<([\w\d./]+)>/gm;function Fo(e){return e.replace(No,Bo)}function Bo(e,t){var n=Ri[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return Fo(n)}var zo=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Ho=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Uo(e){return e.replace(Ho,Go).replace(zo,Vo)}function Vo(e,t,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),Go(e,t,n,r)}function Go(e,t,n,r){for(var i="",a=parseInt(t);a<parseInt(n);a++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+a+" ]").replace(/UNROLLED_LOOP_INDEX/g,a);return i}function Wo(e){var t="precision "+e.precision+" float;\nprecision "+e.precision+" int;";return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function Zo(e,t,n,r){var i,a,o=e.getContext(),s=n.defines,l=n.vertexShader,u=n.fragmentShader,c=function(e){var t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===x?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===b?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===_&&(t="SHADOWMAP_TYPE_VSM"),t}(n),h=function(e){var t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case he:case de:t="ENVMAP_TYPE_CUBE";break;case me:case ve:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),d=function(e){var t="ENVMAP_MODE_REFLECTION";if(e.envMap)switch(e.envMapMode){case de:case ve:t="ENVMAP_MODE_REFRACTION"}return t}(n),f=function(e){var t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case te:t="ENVMAP_BLENDING_MULTIPLY";break;case ne:t="ENVMAP_BLENDING_MIX";break;case re:t="ENVMAP_BLENDING_ADD"}return t}(n),p=n.isWebGL2?"":function(e){return[e.extensionDerivatives||e.envMapCubeUV||e.bumpMap||e.tangentSpaceNormalMap||e.clearcoatNormalMap||e.flatShading||"physical"===e.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(e.extensionFragDepth||e.logarithmicDepthBuffer)&&e.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",e.extensionDrawBuffers&&e.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(e.extensionShaderTextureLOD||e.envMap||e.transmission)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Io).join("\n")}(n),m=function(e){var t=[];for(var n in e){var r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}(s),v=o.createProgram(),g=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?((i=[m].filter(Io).join("\n")).length>0&&(i+="\n"),(a=[p,m].filter(Io).join("\n")).length>0&&(a+="\n")):(i=[Wo(n),"#define SHADER_NAME "+n.shaderName,m,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alph
vendor: 5,057 bytes, line 1
1aMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Io).join("\n"),a=[p,Wo(n),"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+h:"",n.envMap?"#define "+d:"",n.envMap?"#define "+f:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==ie?"#define TONE_MAPPING":"",n.toneMapping!==ie?Ri.tonemapping_pars_fragment:"",n.toneMapping!==ie?Ro("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.alph
1aWrite?"":"#define OPAQUE",Ri.encodings_pars_fragment,Po("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Io).join("\n")),l=jo(l=Do(l=Fo(l),n),n),u=jo(u=Do(u=Fo(u),n),n),l=Uo(l),u=Uo(u),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(g="#version 300 es\n",i=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+i,a=["#define varying in",n.glslVersion===Rt?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Rt?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+a);var y,w,M=g+a+u,E=Ao(o,35633,g+i+l),S=Ao(o,35632,M);if(o.attachShader(v,E),o.attachShader(v,S),void 0!==n.index0AttributeName?o.bindAttribLocation(v,0,n.index0AttributeName):!0===n.morphTargets&&o.bindAttribLocation(v,0,"position"),o.linkProgram(v),e.debug.checkShaderErrors){var C=o.getProgramInfoLog(v).trim(),T=o.getShaderInfoLog(E).trim(),k=o.getShaderInfoLog(S).trim(),A=!0,O=!0;if(!1===o.getProgramParameter(v,35714)){A=!1;var L=Lo(o,E,"vertex"),P=Lo(o,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+o.getError()+" - VALIDATE_STATUS "+o.getProgramParameter(v,35715)+"\n\nProgram Info Log: "+C+"\n"+L+"\n"+P)}else""!==C?console.warn("THREE.WebGLProgram: Program Info Log:",C):""!==T&&""!==k||(O=!1);O&&(this.diagnostics={runnable:A,programLog:C,vertexShader:{log:T,prefix:i},fragmentShader:{log:k,prefix:a}})}return o.deleteShader(E),o.deleteShader(S),this.getUniforms=function(){return void 0===y&&(y=new ko(o,v)),y},this.getAttributes=function(){return void 0===w&&(w=function(e,t){for(var n={},r=e.getProgramParameter(t,35721),i=0;i<r;i++){var a=e.getActiveAttrib(t,i),o=a.name,s=1;35674===a.type&&(s=2),35675===a.type&&(s=3),35676===a.type&&(s=4),n[o]={type:a.type,location:e.getAttribLocation(t,o),locationSize:s}}return n}(o,v)),w},this.destroy=function(){r.releaseStatesOfProgram(this),o.deleteProgram(v),this.program=void 0},this.name=n.shaderName,this.id=Oo++,this.cacheKey=t,this.usedTimes=1,this.program=v,this.vertexShader=E,this.fragmentShader=S,this}var qo=0,Xo=function(){function e(){Object(f.a)(this,e),this.shaderCache=new Map,this.materialCache=new Map}return Object(p.a)(e,[{key:"update",value:function(e){var t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return!1===a.has(r)&&(a.add(r),r.usedTimes++),!1===a.has(i)&&(a.add(i),i.usedTimes++),this}},{key:"remove",value:function(e){var t=this.materialCache.get(e),n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;s.usedTimes--,0===s.usedTimes&&this.shaderCache.delete(s)}}catch(l){r=!0,i=l}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return this.materialCache.delete(e),this}},{key:"getVertexShaderID",value:function(e){return this._getShaderStage(e.vertexShader).id}},{key:"getFragmentShaderID",value:function(e){return this._getShaderStage(e.fragmentShader).id}},{key:"dispose",value:function(){this.shaderCache.clear(),this.materialCache.clear()}},{key:"_getShaderCacheForMaterial",value:function(e){var t=this.materialCache;return!1===t.has(e)&&t.set(e,new Set),t.get(e)}},{key:"_getShaderStage",value:function(e){var t=this.shaderCache;if(!1===t.has(e)){var n=new Jo;t.set(e,n)}return t.get(e)}}]),e}(),Jo=function e(){Object(f.a)(this,e),this.id=qo++,this.usedTimes=0};function Yo(e,t,n,r,i,a,o){var s=new tr,l=new Xo,u=[],c=i.isWebGL2,h=i.logarithmicDepthBuffer,d=i.floatVertexTextures,f=i.maxVertexUniforms,p=i.vertexTextures,m=i.precision,v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};return{getParameters:function(a,s,u,g,y){var x,b,_,w,S=g.fog,C=a.isMeshStandardMaterial?g.environment:null,T=(a.isMeshStandardMaterial?n:t).get(a.envMap||C),k=v[a.type],A=y.isSkinnedMesh?function(e){var t=e.skeleton.bones;if(d)return 1024;var n=f,r=Math.floor((n-20)/4),i=Math.min(r,t.length);return i<t.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+t.length+" bones. This GPU supports "+i+"."),0):i}(y):0;if(null!==a.precision&&(m=i.getMaxPrecision(a.precision))!==a.precision&&console.warn("THREE.WebGLProgram.getParameters:",a.precision,"not supported, using",m,"instead."),k){var O=Di[k];x=O.vertexShader,b=O.fragmentShader}else x=a.vertexShader,b=a.fragmentShader,l.update(a),_=l.getVertexShaderID(a),w=l.getFragmentShaderID(a);var L=e.getRenderTarget(),P=a.alphaTest>0,R=a.clearcoat>0;return{isWebGL2:c,shaderID:k,shaderName:a.type,vertexShader:x,fragmentShader:b,defines:a.defines,customVertexShaderID:_,customFragmentShaderID:w,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:m,instancing:!0===y.isInstancedMesh,instancingColor:!0===y.isInstancedMesh&&null!==y.instanceColor,supportsVertexTextures:p,outputEncoding:null===L?e.outputEncoding:!0===L.isXRRenderTarget?L.texture.encoding:Mt,map:!!a.map,matcap:!!a.matcap,envMap:!!T,envMapMode:T&&T.mapping,envMapCubeUV:!!T&&(T.mapping===me||T.mapping===ve),lightMap:!!a.lightMap,aoMap:!!a.aoMap,emissiveMap:!!a.emissiveMap,bumpMap:!!a.bumpMap,normalMap:!!a.normalMap,objectSpaceNormalMap:a.normalMapType===kt,tangentSpaceNormalMap:a.normalMapType===Tt,decodeVideoTexture:!!a.map&&!0===a.map.isVideoTexture&&a.map.encoding===Et,clearcoat:R,clearcoatMap:R&&!!a.clearcoatMap,clearcoatRoughnessMap:R&&!!a.clearcoatRoughnessMap,clearcoatNormalMap:R&&!!a.clearcoatNormalMap,displacementMap:!!a.displacementMap,roughnessMap:!!a.roughnessMap,metalnessMap:!!a.metalnessMap,specularMap:!!a.specularMap,specularIntensityMap:!!a.specularIntensityMap,specularColorMap:!!a.specularColorMap,alph
1aMap:!!a.alphaMap,alphaTest:P,alphaWrite:a.alphaWrite||a.transparent,gradientMap:!!a.gradientMap,sheen:a.sheen>0,sheenColorMap:!!a.sheenColorMap,sheenRoughnessMap:!!a.sheenRoughnessMap,transmission:a.transmission>0,transmissionMap:!!a.transmissionMap,thicknessMap:!!a.thicknessMap,combine:a.combine,vertexTangents:!!a.normalMap&&!!y.geometry&&!!y.geometry.attributes.tangent,vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!y.geometry&&!!y.geometry.attributes.color&&4===y.geometry.attributes.color.itemSize,vertexUvs:!!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatMap||a.clearcoatRoughnessMap||a.clearcoatNormalMap||a.displacementMap||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheenColorMap||a.sheenRoughnessMap),uvsVertexOnly:!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatNormalMap||a.transmission>0||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheen>0||a.sheenColorMap||a.sheenRoughnessMap||!a.displacementMap),fog:!!S,useFog:a.fog,fogExp2:S&&S.isFogExp2,flatShading:!!a.flatShading,sizeAttenuation:a.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===y.isSkinnedMesh&&A>0,maxBones:A,useVertexTexture:d,morphTargets:!!y.geometry&&!!y.geometry.morphAttributes.position,morphNormals:!!y.geometry&&!!y.geometry.morphAttributes.normal,morphTargetsCount:y.geometry&&y.geometry.morphAttributes.position?y.geometry.morphAttributes.position.length:0,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:a.toneMapped?e.toneMapping:ie,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===E,flipSided:a.side===M,depthPacking:void 0!==a.depthPacking&&a.depthPacking,index0AttributeName:a.index0AttributeName,extensionDerivatives:a.extensions&&a.extensions.derivatives,extensionFragDepth:a.extensions&&a.extensions.fragDepth,extensionDrawBuffers:a.extensions&&a.extensions.drawBuffers,extensionShaderTextureLOD:a.extensions&&a.extensions.shaderTextureLOD,rendererExtensionFragDepth:c||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:c||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:c||r.has("EXT_shader_texture_lod"),customProgramCacheKey:a.customProgramCacheKey()}},getProgramCacheKey:function(t){var n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(var r in t.defines)n.push(r),n.push(t.defines[r]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputEncoding),e.push(t.envMapMode),e.push(t.combine),e.push(t.vertexUvs),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.maxBones),e.push(t.morphTargetsCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.alphaWrite)}(n,t),function(e,t){s.disableAll(),t.isWebGL2&&s.enable(0);t.supportsVertexTextures&&s.enable(1);t.instancing&&s.enable(2);t.instancingColor&&s.enable(3);t.map&&s.enable(4);t.matcap&&s.enable(5);t.envMap&&s.enable(6);t.envMapCubeUV&&s.enable(7);t.lightMap&&s.enable(8);t.aoMap&&s.enable(9);t.emissiveMap&&s.enable(10);t.bumpMap&&s.enable(11);t.normalMap&&s.enable(12);t.objectSpaceNormalMap&&s.enable(13);t.tangentSpaceNormalMap&&s.enable(14);t.clearcoat&&s.enable(15);t.clearcoatMap&&s.enable(16);t.clearcoatRoughnessMap&&s.enable(17);t.clearcoatNormalMap&&s.enable(18);t.displacementMap&&s.enable(19);t.specularMap&&s.enable(20);t.roughnessMap&&s.enable(21);t.metalnessMap&&s.enable(22);t.gradientMap&&s.enable(23);t.alphaMap&&s.enable(24);t.alphaTest&&s.enable(25);t.vertexColors&&s.enable(26);t.vertexAlphas&&s.enable(27);t.vertexUvs&&s.enable(28);t.vertexTangents&&s.enable(29);t.uvsVertexOnly&&s.enable(30);t.fog&&s.enable(31);e.push(s.mask),s.disableAll(),t.useFog&&s.enable(0);t.flatShading&&s.enable(1);t.logarithmicDepthBuffer&&s.enable(2);t.skinning&&s.enable(3);t.useVertexTexture&&s.enable(4);t.morphTargets&&s.enable(5);t.morphNormals&&s.enable(6);t.premultipliedAlpha&&s.enable(7);t.shadowMapEnabled&&s.enable(8);t.physicallyCorrectLights&&s.enable(9);t.doubleSided&&s.enable(10);t.flipSided&&s.enable(11);t.depthPacking&&s.enable(12);t.dithering&&s.enable(13);t.specularIntensityMap&&s.enable(14);t.specularColorMap&&s.enable(15);t.transmission&&s.enable(16);t.transmissionMap&&s.enable(17);t.thicknessMap&&s.enable(18);t.sheen&&s.enable(19);t.sheenColorMap&&s.enable(20);t.sheenRoughnessMap&&s.enable(21);t.decodeVideoTexture&&s.enable(22);e.push(s.mask)}(n,t),n.push(e.outputEncoding)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){var t,n=v[e.type];if(n){var r=Di[n];t=di.clone(r.uniforms)}else t=e.uniforms;return t},acquireProgram:function(t,n){for(var r,i=0,o=u.length;i<o;i++){var s=u[i];if(s.cacheKey===n){++(r=s).usedTimes;break}}return void 0===r&&(r=new Zo(e,n,t,a),u.push(r)),r},releaseProgram:function(e){if(0==--e.usedTimes){var t=u.indexOf(e);u[t]=u[u.length-1],u.pop(),e.destroy()}},releaseShaderCache:function(e){l.remove(e)},programs:u,dispose:function(){l.dispose()}}}function Ko(){var e=new WeakMap;return{get:function(t){var n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,r){e.get(t)[n]=r},dispose:function(){e=new WeakMap}}}function Qo(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function $o(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function es(){var e=[],t=0,n=[],r=[],i=[];function a(n,r,i,a,o,s){var l=e[t];
1return void 0===l?(l={id:n.id,object:n,geometry:r,material:i,groupOrder:a,renderOrder:n.renderOrder,z:o,group:s},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=o,l.group=s),t++,l}return{opaque:n,transmissive:r,transparent:i,init:function(){t=0,n.length=0,r.length=0,i.length=0},push:function(e,t,o,s,l,u){var c=a(e,t,o,s,l,u);o.transmission>0?r.push(c):!0===o.transparent?i.push(c):n.push(c)},unshift:function(e,t,o,s,l,u){var c=a(e,t,o,s,l,u);o.transmission>0?r.unshift(c):!0===o.transparent?i.unshift(c):n.unshift(c)},finish:function(){for(var n=t,r=e.length;n<r;n++){var i=e[n];if(null===i.id)break;i.id=null,i.object=null,i.geometry=null,i.material=null,i.group=null}},sort:function(e,t){n.length>1&&n.sort(e||Qo),r.length>1&&r.sort(t||$o),i.length>1&&i.sort(t||$o)}}}function ts(){var e=new WeakMap;return{get:function(t,n){var r;return!1===e.has(t)?(r=new es,e.set(t,[r])):n>=e.get(t).length?(r=new es,e.get(t).push(r)):r=e.get(t)[n],r},dispose:function(){e=new WeakMap}}}function ns(){var e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];var n;switch(t.type){case"DirectionalLight":n={direction:new fn,color:new rn};break;case"SpotLight":n={position:new fn,direction:new fn,color:new rn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new fn,color:new rn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new fn,skyColor:new rn,groundColor:new rn};break;case"RectAreaLight":n={color:new rn,position:new fn,halfWidth:new fn,halfHeight:new fn}}return e[t.id]=n,n}}}var rs=0;function is(e,t){return(t.castShadow?1:0)-(e.castShadow?1:0)}function as(e,t){for(var n,r=new ns,i=(n={},{get:function(e){if(void 0!==n[e.id])return n[e.id];var t;switch(e.type){case"DirectionalLight":case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Zt};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Zt,shadowCameraNear:1,shadowCameraFar:1e3}}return n[e.id]=t,t}}),a={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},o=0;o<9;o++)a.probe.push(new fn);var s=new fn,l=new Gn,u=new Gn;return{setup:function(n,o){for(var s=0,l=0,u=0,c=0;c<9;c++)a.probe[c].set(0,0,0);var h=0,d=0,f=0,p=0,m=0,v=0,g=0,y=0;n.sort(is);for(var x=!0!==o?Math.PI:1,b=0,_=n.length;b<_;b++){var w=n[b],M=w.color,E=w.intensity,S=w.distance,C=w.shadow&&w.shadow.map?w.shadow.map.texture:null;if(w.isAmbientLight)s+=M.r*E*x,l+=M.g*E*x,u+=M.b*E*x;else if(w.isLightProbe)for(var T=0;T<9;T++)a.probe[T].addScaledVector(w.sh.coefficients[T],E);else if(w.isDirectionalLight){var k=r.get(w);if(k.color.copy(w.color).multiplyScalar(w.intensity*x),w.castShadow){var A=w.shadow,O=i.get(w);O.shadowBias=A.bias,O.shadowNormalBias=A.normalBias,O.shadowRadius=A.radius,O.shadowMapSize=A.mapSize,a.directionalShadow[h]=O,a.directionalShadowMap[h]=C,a.directionalShadowMatrix[h]=w.shadow.matrix,v++}a.directional[h]=k,h++}else if(w.isSpotLight){var L=r.get(w);if(L.position.setFromMatrixPosition(w.matrixWorld),L.color.copy(M).multiplyScalar(E*x),L.distance=S,L.coneCos=Math.cos(w.angle),L.penumbraCos=Math.cos(w.angle*(1-w.penumbra)),L.decay=w.decay,w.castShadow){var P=w.shadow,R=i.get(w);R.shadowBias=P.bias,R.shadowNormalBias=P.normalBias,R.shadowRadius=P.radius,R.shadowMapSize=P.mapSize,a.spotShadow[f]=R,a.spotShadowMap[f]=C,a.spotShadowMatrix[f]=w.shadow.matrix,y++}a.spot[f]=L,f++}else if(w.isRectAreaLight){var I=r.get(w);I.color.copy(M).multiplyScalar(E),I.halfWidth.set(.5*w.width,0,0),I.halfHeight.set(0,.5*w.height,0),a.rectArea[p]=I,p++}else if(w.isPointLight){var D=r.get(w);if(D.color.copy(w.color).multiplyScalar(w.intensity*x),D.distance=w.distance,D.decay=w.decay,w.castShadow){var j=w.shadow,N=i.get(w);N.shadowBias=j.bias,N.shadowNormalBias=j.normalBias,N.shadowRadius=j.radius,N.shadowMapSize=j.mapSize,N.shadowCameraNear=j.camera.near,N.shadowCameraFar=j.camera.far,a.pointShadow[d]=N,a.pointShadowMap[d]=C,a.pointShadowMatrix[d]=w.shadow.matrix,g++}a.point[d]=D,d++}else if(w.isHemisphereLight){var F=r.get(w);F.skyColor.copy(w.color).multiplyScalar(E*x),F.groundColor.copy(w.groundColor).multiplyScalar(E*x),a.hemi[m]=F,m++}}p>0&&(t.isWebGL2?(a.rectAreaLTC1=Ii.LTC_FLOAT_1,a.rectAreaLTC2=Ii.LTC_FLOAT_2):!0===e.has("OES_texture_float_linear")?(a.rectAreaLTC1=Ii.LTC_FLOAT_1,a.rectAreaLTC2=Ii.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(a.rectAreaLTC1=Ii.LTC_HALF_1,a.rectAreaLTC2=Ii.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),a.ambient[0]=s,a.ambient[1]=l,a.ambient[2]=u;var B=a.hash;B.directionalLength===h&&B.pointLength===d&&B.spotLength===f&&B.rectAreaLength===p&&B.hemiLength===m&&B.numDirectionalShadows===v&&B.numPointShadows===g&&B.numSpotShadows===y||(a.directional.length=h,a.spot.length=f,a.rectArea.length=p,a.point.length=d,a.hemi.length=m,a.directionalShadow.length=v,a.directionalShadowMap.length=v,a.pointShadow.length=g,a.pointShadowMap.length=g,a.spotShadow.length=y,a.spotShadowMap.length=y,a.directionalShadowMatrix.length=v,a.pointShadowMatrix.length=g,a.spotShadowMatrix.length=y,B.directionalLength=h,B.pointLength=d,B.spotLength=f,B.rectAreaLength=p,B.hemiLength=m,B.numDirectionalShadows=v,B.numPointShadows=g,B.numSpotShadows=y,a.version=rs++)},setupView:function(e,t){for(var n=0,r=0,i=0,o=0,c=0,h=t.matrixWorldInverse,d=0,f=e.length;d<f;d++){var p=e[d];if(p.isDirectionalLight){var m=a.directional[n];m.direction.setFromMatrixPosition(p.matrixWorld),s.setFromMatrixPosition(p.target.matrixWorld),m.direction.sub(s),m.direction.transformDirection(h),n++}else if(p.isSpotLight){var v=a.spot[i];v.position.setFromMatrixPosition(p.matrixWorld),v.position.applyMatrix4(h),v.direction.setFromMatrixPosition(p.matrixWorld),s.setFromMatrixPosition(p.target.matrixWorld),v.direction.sub(s),v.direction.transformDirection(h),i++}else if(p.isRectAreaLight){var g=a.rectArea[o];g.position.setFromMatrixPosition(p.matrixWorld),g.position.applyMatrix4(h),u.identity(),l.copy(p.matrixWorld),l.premultiply(h),u.extractRotation(l),g.halfWidth.set(.5*p.width,0,0),g.halfHeight.set(0,.5*p.height,0),g.halfWidth.applyMatrix4(u),g.halfHeight.applyMatrix4(u),o++}else if(p.isPointLight){var y=a.point[r];y.position.setFromMatrixPosition(p.matrixWorld),y.position.applyMatrix4(h),r++}else if(p.isHemisphereLight){var x=a.hemi[c];x.direction.setFromMatrixPosition(p.matrixWorld),x.direction.transformDirection(h),x.direction.normalize(),c++}}},state:a}}function os(e,t){var n=new as(e,t),r=[],i=[];return{init:function(){r.length=0,i.length=0},state:{lightsArray:r,shadowsArray:i,lights:n},setupLights:function(e){n.setup(r,e)},setupLightsView:function(e){n.setupView(r,e)},pushLight:function(e){r.push(e)},pushShadow:function(e){i.push(e)}}}function ss(e,t){var n=new WeakMap;return{get:function(r){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!1===n.has(r)?(i=new os(e,t),n.set(r,[i])):a>=n.get(r).length?(i=new os(e,t),n.get(r).push(i)):i=n.get(r)[a],i},dispose:function(){n=new WeakMap}}}var ls=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="MeshDepthMaterial",n.depthPacking=St,n.map=null,n.alphaMap=null,n.displacementMap=null,n.displacementScale=1,n.displacementBias=0,n.wireframe=!1,n.wireframeLinewidth=1,n.fog=!1,n.setValues(e),n}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}]),t}(kr);ls.prototype.isMeshDepthMaterial=!0;var us=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="MeshDistanceMaterial",n.referencePosition=new fn,n.nearDistance=1,n.farDistance=1e3,n.map=null,n.alphaMap=null,n.displacementMap=null,n.displacementScale=1,n.displacementBias=0,n.fog=!1,n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}]),t}(kr);us.prototype.isMeshDistanceMaterial=!0;var cs="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",hs="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function ds(e,t,n){var r=new Ai,i=new Zt,a=new Zt,o=new un,s=new ls({depthPacking:Ct}),l=new us,u={},c=n.maxTextureSize,h={0:M,1:w,2:E},d=new mi({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Zt},radius:{value:4}},vertexShader:cs,fragmentShader:hs}),f=d.clone();f.defines.HORIZONTAL_PASS=1;var p=new Vr;p.setAttribute("position",new Pr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));var m=new si(p,d),v=this;function g(n,r){var i=t.update(m);d.defines.VSM_SAMPLES!==n.blurSamples&&(d.defines.VSM_SAMPLES=n.blurSamples,f.defines.VSM_SAMPLES=n.blurSamples,d.needsUpdate=!0,f.needsUpdate=!0),d.uniforms.shadow_pass.value=n.map.texture,d.uniforms.resolution.value=n.mapSize,d.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,i,d,m,null),f.uniforms.shadow_pass.value=n.mapPass.texture,f.uniforms.resolution.value=n.mapSize,f.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,i,f,m,null)}function y(t,n,r,i,a,o,c){var d=null,f=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(d=void 0!==f?f:!0===i.isPointLight?l:s,e.localClippingEnabled&&!0===r.clipShadows&&0!==r.clippingPlanes.length||r.displacementMap&&0!==r.displacementScale||r.alphaMap&&r.alphaTest>0){var p=d.uuid,m=r.uuid,v=u[p];void 0===v&&(v={},u[p]=v);var g=v[m];void 0===g&&(g=d.clone(),v[m]=g),d=g}return d.visible=r.visible,d.wireframe=r.wireframe,d.side=c===_?null!==r.shadowSide?r.shadowSide:r.side:null!==r.shadowSide?r.shadowSide:h[r.side],d.alphaMap=r.alphaMap,d.alphaTest=r.alphaTest,d.clipShadows=r.clipShadows,d.clippingPlanes=r.clippingPlanes,d.clipIntersection=r.clipIntersection,d.displacementMap=r.displacementMap,d.displacementScale=r.displacementScale,d.displacementBias=r.displacementBias,d.wireframeLinewidth=r.wireframeLinewidth,d.linewidth=r.linewidth,!0===i.isPointLight&&!0===d.isMeshDistanceMaterial&&(d.referencePosition.setFromMatrixPosition(i.matrixWorld),d.nearDistance=a,d.farDistance=o),d}
1function b(n,i,a,o,s){if(!1!==n.visible){if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===_)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);var l=t.update(n),u=n.material;if(Array.isArray(u))for(var c=l.groups,h=0,d=c.length;h<d;h++){var f=c[h],p=u[f.materialIndex];if(p&&p.visible){var m=y(n,0,p,o,a.near,a.far,s);e.renderBufferDirect(a,null,l,m,n,f)}}else if(u.visible){var v=y(n,0,u,o,a.near,a.far,s);e.renderBufferDirect(a,null,l,v,n,null)}}for(var g=n.children,x=0,w=g.length;x<w;x++)b(g[x],i,a,o,s)}}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=x,this.render=function(t,n,s){if(!1!==v.enabled&&(!1!==v.autoUpdate||!1!==v.needsUpdate)&&0!==t.length){var l=e.getRenderTarget(),u=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),d=e.state;d.setBlending(S),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);for(var f=0,p=t.length;f<p;f++){var m=t[f],y=m.shadow;if(void 0!==y){if(!1!==y.autoUpdate||!1!==y.needsUpdate){i.copy(y.mapSize);var x=y.getFrameExtents();if(i.multiply(x),a.copy(y.mapSize),(i.x>c||i.y>c)&&(i.x>c&&(a.x=Math.floor(c/x.x),i.x=a.x*x.x,y.mapSize.x=a.x),i.y>c&&(a.y=Math.floor(c/x.y),i.y=a.y*x.y,y.mapSize.y=a.y)),null===y.map&&!y.isPointLightShadow&&this.type===_){var w={minFilter:Me,magFilter:Me,format:Fe};y.map=new cn(i.x,i.y,w),y.map.texture.name=m.name+".shadowMap",y.mapPass=new cn(i.x,i.y,w),y.camera.updateProjectionMatrix()}if(null===y.map){var M={minFilter:be,magFilter:be,format:Fe};y.map=new cn(i.x,i.y,M),y.map.texture.name=m.name+".shadowMap",y.camera.updateProjectionMatrix()}e.setRenderTarget(y.map),e.clear();for(var E=y.getViewportCount(),C=0;C<E;C++){var T=y.getViewport(C);o.set(a.x*T.x,a.y*T.y,a.x*T.z,a.y*T.w),d.viewport(o),y.updateMatrices(m,C),r=y.getFrustum(),b(n,s,y.camera,m,this.type)}y.isPointLightShadow||this.type!==_||g(y,s),y.needsUpdate=!1}}else console.warn("THREE.WebGLShadowMap:",m,"has no shadow.")}v.needsUpdate=!1,e.setRenderTarget(l,u,h)}}}function fs(e,t,n){var i,a,o=n.isWebGL2;var s=new function(){var t=!1,n=new un,r=null,i=new un(0,0,0,0);return{setMask:function(n){r===n||t||(e.colorMask(n,n,n,n),r=n)},setLocked:function(e){t=e},setClear:function(t,r,a,o,s){!0===s&&(t*=o,r*=o,a*=o),n.set(t,r,a,o),!1===i.equals(n)&&(e.clearColor(t,r,a,o),i.copy(n))},reset:function(){t=!1,r=null,i.set(-1,0,0,0)}}},l=new function(){var t=!1,n=null,r=null,i=null;return{setTest:function(e){e?we(2929):Me(2929)},setMask:function(r){n===r||t||(e.depthMask(r),n=r)},setFunc:function(t){if(r!==t){if(t)switch(t){case q:e.depthFunc(512);break;case X:e.depthFunc(519);break;case J:e.depthFunc(513);break;case Y:e.depthFunc(515);break;case K:e.depthFunc(514);break;case Q:e.depthFunc(518);break;case $:e.depthFunc(516);break;case ee:e.depthFunc(517);break;default:e.depthFunc(515)}else e.depthFunc(515);r=t}},setLocked:function(e){t=e},setClear:function(t){i!==t&&(e.clearDepth(t),i=t)},reset:function(){t=!1,n=null,r=null,i=null}}},u=new function(){var t=!1,n=null,r=null,i=null,a=null,o=null,s=null,l=null,u=null;return{setTest:function(e){t||(e?we(2960):Me(2960))},setMask:function(r){n===r||t||(e.stencilMask(r),n=r)},setFunc:function(t,n,o){r===t&&i===n&&a===o||(e.stencilFunc(t,n,o),r=t,i=n,a=o)},setOp:function(t,n,r){o===t&&s===n&&l===r||(e.stencilOp(t,n,r),o=t,s=n,l=r)},setLocked:function(e){t=e},setClear:function(t){u!==t&&(e.clearStencil(t),u=t)},reset:function(){t=!1,n=null,r=null,i=null,a=null,o=null,s=null,l=null,u=null}}},c={},h={},d=new WeakMap,f=[],p=null,m=!1,x=null,b=null,_=null,w=null,te=null,ne=null,re=null,ie=!1,ae=null,oe=null,se=null,le=null,ue=null,ce=e.getParameter(35661),he=!1,de=0,fe=e.getParameter(7938);-1!==fe.indexOf("WebGL")?(de=parseFloat(/^WebGL (\d)/.exec(fe)[1]),he=de>=1):-1!==fe.indexOf("OpenGL ES")&&(de=parseFloat(/^OpenGL ES (\d)/.exec(fe)[1]),he=de>=2);var pe=null,me={},ve=e.getParameter(3088),ge=e.getParameter(2978),ye=(new un).fromArray(ve),xe=(new un).fromArray(ge);function be(t,n,r){var i=new Uint8Array(4),a=e.createTexture();e.bindTexture(t,a),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(var o=0;o<r;o++)e.texImage2D(n+o,0,6408,1,1,0,6408,5121,i);return a}var _e={};function we(t){!0!==c[t]&&(e.enable(t),c[t]=!0)}function Me(t){!1!==c[t]&&(e.disable(t),c[t]=!1)}_e[3553]=be(3553,3553,1),_e[34067]=be(34067,34069,6),s.setClear(0,0,0,1),l.setClear(1),u.setClear(0),we(2929),l.setFu
1nc(Y),ke(!1),Ae(g),we(2884),Te(S);var Ee=(i={},Object(r.a)(i,L,32774),Object(r.a)(i,P,32778),Object(r.a)(i,R,32779),i);if(o)Ee[I]=32775,Ee[D]=32776;else{var Se=t.get("EXT_blend_minmax");null!==Se&&(Ee[I]=Se.MIN_EXT,Ee[D]=Se.MAX_EXT)}var Ce=(a={},Object(r.a)(a,j,0),Object(r.a)(a,N,1),Object(r.a)(a,F,768),Object(r.a)(a,z,770),Object(r.a)(a,Z,776),Object(r.a)(a,G,774),Object(r.a)(a,U,772),Object(r.a)(a,B,769),Object(r.a)(a,H,771),Object(r.a)(a,W,775),Object(r.a)(a,V,773),a);function Te(t,n,r,i,a,o,s,l){if(t!==S){if(!1===m&&(we(3042),m=!0),t===O)a=a||n,o=o||r,s=s||i,n===b&&a===te||(e.blendEquationSeparate(Ee[n],Ee[a]),b=n,te=a),r===_&&i===w&&o===ne&&s===re||(e.blendFuncSeparate(Ce[r],Ce[i],Ce[o],Ce[s]),_=r,w=i,ne=o,re=s),x=t,ie=null;else if(t!==x||l!==ie){if(b===L&&te===L||(e.blendEquation(32774),b=L,te=L),l)switch(t){case C:e.blendFuncSeparate(1,771,1,771);break;case T:e.blendFunc(1,1);break;case k:e.blendFuncSeparate(0,769,0,1);break;case A:e.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case C:e.blendFuncSeparate(770,771,1,771);break;case T:e.blendFunc(770,1);break;case k:e.blendFuncSeparate(0,769,0,1);break;case A:e.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}_=null,w=null,ne=null,re=null,x=t,ie=l}}else!0===m&&(Me(3042),m=!1)}function ke(t){ae!==t&&(t?e.frontFace(2304):e.frontFace(2305),ae=t)}function Ae(t){t!==v?(we(2884),t!==oe&&(t===g?e.cullFace(1029):t===y?e.cullFace(1028):e.cullFace(1032))):Me(2884),oe=t}function Oe(t,n,r){t?(we(32823),le===n&&ue===r||(e.polygonOffset(n,r),le=n,ue=r)):Me(32823)}function Le(t){void 0===t&&(t=33984+ce-1),pe!==t&&(e.activeTexture(t),pe=t)}return{buffers:{color:s,depth:l,stencil:u},enable:we,disable:Me,bindFramebuffer:function(t,n){return h[t]!==n&&(e.bindFramebuffer(t,n),h[t]=n,o&&(36009===t&&(h[36160]=n),36160===t&&(h[36009]=n)),!0)},drawBuffers:function(r,i){var a=f,o=!1;if(r)if(void 0===(a=d.get(i))&&(a=[],d.set(i,a)),r.isWebGLMultipleRenderTargets){var s=r.texture;if(a.length!==s.length||36064!==a[0]){for(var l=0,u=s.length;l<u;l++)a[l]=36064+l;a.length=s.length,o=!0}}else 36064!==a[0]&&(a[0]=36064,o=!0);else 1029!==a[0]&&(a[0]=1029,o=!0);o&&(n.isWebGL2?e.drawBuffers(a):t.get("WEBGL_draw_buffers").drawBuffersWEBGL(a))},useProgram:function(t){return p!==t&&(e.useProgram(t),p=t,!0)},setBlending:Te,setMaterial:function(e,t){e.side===E?Me(2884):we(2884);var n=e.side===M;t&&(n=!n),ke(n),e.blending===C&&!1===e.transparent?Te(S):Te(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),l.setFunc(e.depthFunc),l.setTest(e.depthTest),l.setMask(e.depthWrite),s.setMask(e.colorWrite);var r=e.stencilWrite;u.setTest(r),r&&(u.setMask(e.stencilWriteMask),u.setFunc(e.stencilFunc,e.stencilRef,e.stencilFuncMask),u.setOp(e.stencilFail,e.stencilZFail,e.stencilZPass)),Oe(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits),!0===e.alphaToCoverage?we(32926):Me(32926)},setFlipSided:ke,setCullFace:Ae,setLineWidth:function(t){t!==se&&(he&&e.lineWidth(t),se=t)},setPolygonOffset:Oe,setScissorTest:function(e){e?we(3089):Me(3089)},activeTexture:Le,bindTexture:function(t,n){null===pe&&Le();var r=me[pe];void 0===r&&(r={type:void 0,texture:void 0},me[pe]=r),r.type===t&&r.texture===n||(e.bindTexture(t,n||_e[t]),r.type=t,r.texture=n)},unbindTexture:function(){var t=me[pe];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(t){!1===ye.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),ye.copy(t))},viewport:function(t){!1===xe.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),xe.copy(t))},reset:function(){e.disable(3042),e.disable(2884),e.disable(2929),e.disable(32823),e.disable(3089),e.disable(2960),e.disable(32926),e.blendEquation(32774),e.blendFunc(1,0),e.blendFuncSeparate(1,0,1,0),e.colorMask(!0,!0,
1!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(513),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(519,0,4294967295),e.stencilOp(7680,7680,7680),e.clearStencil(0),e.cullFace(1029),e.frontFace(2305),e.polygonOffset(0,0),e.activeTexture(33984),e.bindFramebuffer(36160,null),!0===o&&(e.bindFramebuffer(36009,null),e.bindFramebuffer(36008,null)),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),c={},pe=null,me={},h={},d=new WeakMap,f=[],p=null,m=!1,x=null,b=null,_=null,w=null,te=null,ne=null,re=null,ie=!1,ae=null,oe=null,se=null,le=null,ue=null,ye.set(0,0,e.canvas.width,e.canvas.height),xe.set(0,0,e.canvas.width,e.canvas.height),s.reset(),l.reset(),u.reset()}}}function ps(e,t,n,i,a,o,s){var l,u,c,h=a.isWebGL2,d=a.maxTextures,f=a.maxCubemapSize,p=a.maxTextureSize,m=a.maxSamples,v=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):void 0,g=new WeakMap,y=!1;try{y="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(G){}function x(e,t){return y?new OffscreenCanvas(e,t):Jt("canvas")}function b(e,t,n,r){var i=1;if((e.width>r||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){var a=t?Wt:Math.floor,o=a(i*e.width),s=a(i*e.height);void 0===c&&(c=x(o,s));var l=n?x(o,s):c;return l.width=o,l.height=s,l.getContext("2d").drawImage(e,0,0,o,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+o+"x"+s+")."),l}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function _(e){return Gt(e.width)&&Gt(e.height)}function w(e,t){return e.generateMipmaps&&t&&e.minFilter!==be&&e.minFilter!==Me}function M(t){e.generateMipmap(t)}function E(n,r,i,a){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!1===h)return r;if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}var s=r;return 6403===r&&(5126===i&&(s=33326),5131===i&&(s=33325),5121===i&&(s=33321)),33319===r&&(5126===i&&(s=33328),5131===i&&(s=33327),5121===i&&(s=33323)),6408===r&&(5126===i&&(s=34836),5131===i&&(s=34842),5121===i&&(s=a===Et&&!1===o?35907:32856),32819===i&&(s=32854),32820===i&&(s=32855)),33325!==s&&33326!==s&&33327!==s&&33328!==s&&34842!==s&&34836!==s||t.get("EXT_color_buffer_float"),s}function S(e,t,n){return!0===w(e,n)||e.isFramebufferTexture&&e.minFilter!==be&&e.minFilter!==Me?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){return e===be||e===_e||e===we?9728:9729}function T(t){var n=t.target;n.removeEventListener("dispose",T),function(t){var n=i.get(t);if(void 0===n.__webglInit)return;e.deleteTexture(n.__webglTexture),i.remove(t)}(n),n.isVideoTexture&&g.delete(n),s.memory.textures--}function k(t){var n=t.target;n.removeEventListener("dispose",k),function(t){var n=t.texture,r=i.get(t),a=i.get(n);if(!t)return;void 0!==a.__webglTexture&&(e.deleteTexture(a.__webglTexture),s.memory.textures--);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLCubeRenderTarget)for(var o=0;o<6;o++)e.deleteFramebuffer(r.__webglFramebuffer[o]),r.__webglDepthbuffer&&e.deleteRenderbuffer(r.__webglDepthbuffer[o]);else e.deleteFramebuffer(r.__webglFramebuffer),r.__webglDepthbuffer&&e.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&e.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer&&e.deleteRenderbuffer(r.__webglColorRenderbuffer),r.__webglDepthRenderbuffer&&e.deleteRenderbuffer(r.__webglDepthRenderbuffer);if(t.isWebGLMultipleRenderTargets)for(var l=0,u=n.length;l<u;l++){var c=i.get(n[l]);c.__webglTexture&&(e.deleteTexture(c.__webglTexture),s.memory.textures--),i.remove(n[l])}i.remove(n),i.remove(t)}(n)}var A=0;function O(e,t){var r=i.get(e);if(e.isVideoTexture&&function(e){var t=s.render.frame;
1g.get(e)!==t&&(g.set(e,t),e.update())}(e),e.version>0&&r.__version!==e.version){var a=e.image;if(void 0===a)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==a.complete)return void j(r,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+t),n.bindTexture(3553,r.__webglTexture)}function L(t,r){var a=i.get(t);t.version>0&&a.__version!==t.version?function(t,r,i){if(6!==r.image.length)return;D(t,r),n.activeTexture(33984+i),n.bindTexture(34067,t.__webglTexture),e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment),e.pixelStorei(37443,0);for(var a=r&&(r.isCompressedTexture||r.image[0].isCompressedTexture),s=r.image[0]&&r.image[0].isDataTexture,l=[],u=0;u<6;u++)l[u]=a||s?s?r.image[u].image:r.image[u]:b(r.image[u],!1,!0,f),l[u]=H(r,l[u]);var c,d=l[0],p=_(d)||h,m=o.convert(r.format,r.encoding),v=o.convert(r.type),g=E(r.internalFormat,m,v,r.encoding),y=h&&!0!==r.isVideoTexture,x=void 0===t.__version,C=S(r,d,p);if(I(34067,r,p),a){y&&x&&n.texStorage2D(34067,C,g,d.width,d.height);for(var T=0;T<6;T++){c=l[T].mipmaps;for(var k=0;k<c.length;k++){var A=c[k];r.format!==Fe?null!==m?y?n.compressedTexSubImage2D(34069+T,k,0,0,A.width,A.height,m,A.data):n.compressedTexImage2D(34069+T,k,g,A.width,A.height,0,A.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):y?n.texSubImage2D(34069+T,k,0,0,A.width,A.height,m,v,A.data):n.texImage2D(34069+T,k,g,A.width,A.height,0,m,v,A.data)}}}else{c=r.mipmaps,y&&x&&(c.length>0&&C++,n.texStorage2D(34067,C,g,l[0].width,l[0].height));for(var O=0;O<6;O++)if(s){y?n.texSubImage2D(34069+O,0,0,0,l[O].width,l[O].height,m,v,l[O].data):n.texImage2D(34069+O,0,g,l[O].width,l[O].height,0,m,v,l[O].data);for(var L=0;L<c.length;L++){var P=c[L].image[O].image;y?n.texSubImage2D(34069+O,L+1,0,0,P.width,P.height,m,v,P.data):n.texImage2D(34069+O,L+1,g,P.width,P.height,0,m,v,P.data)}}else{y?n.texSubImage2D(34069+O,0,0,0,m,v,l[O]):n.texImage2D(34069+O,0,g,m,v,l[O]);for(var R=0;R<c.length;R++){var j=c[R];y?n.texSubImage2D(34069+O,R+1,0,0,m,v,j.image[O]):n.texImage2D(34069+O,R+1,g,m,v,j.image[O])}}}w(r,p)&&M(34067);t.__version=r.version,r.onUpdate&&r.onUpdate(r)}(a,t,r):(n.activeTexture(33984+r),n.bindTexture(34067,a.__webglTexture))}var P=(l={},Object(r.a)(l,ge,10497),Object(r.a)(l,ye,33071),Object(r.a)(l,xe,33648),l),R=(u={},Object(r.a)(u,be,9728),Object(r.a)(u,_e,9984),Object(r.a)(u,we,9986),Object(r.a)(u,Me,9729),Object(r.a)(u,Ee,9985),Object(r.a)(u,Se,9987),u);function I(n,r,o){if(o?(e.texParameteri(n,10242,P[r.wrapS]),e.texParameteri(n,10243,P[r.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,P[r.wrapR]),e.texParameteri(n,10240,R[r.magFilter]),e.texParameteri(n,10241,R[r.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),r.wrapS===ye&&r.wrapT===ye||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,C(r.magFilter)),e.texParameteri(n,10241,C(r.minFilter)),r.minFilter!==be&&r.minFilter!==Me&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===t.has("EXT_texture_filter_anisotropic")){var s=t.get("EXT_texture_filter_anisotropic");if(r.type===Pe&&!1===t.has("OES_texture_float_linear"))return;if(!1===h&&r.type===Re&&!1===t.has("OES_texture_half_float_linear"))return;(r.anisotropy>1||i.get(r).__currentAnisotropy)&&(e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(r.anisotropy,a.getMaxAnisotropy())),i.get(r).__currentAnisotropy=r.anisotropy)}}function D(t,n){void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",T),t.__webglTexture=e.createTexture(),s.memory.textures++)}function j(t,r,i){var a=3553;r.isDataTexture2DArray&&(a=35866),r.isDataTexture3D&&(a=32879),D(t,r),n.activeTexture(33984+i),n.bindTexture(a,t.__webglTexture),e.pixelStorei(37440,r.flipY),e.pixelStorei(37441,r.premultiplyAlpha),e.pixelStorei(3317,r.unpackAlignment),e.pixelStorei(37443,0);var s,l=function(e){return!h&&(e.wrapS!==ye||e.wrapT!==ye||e.minFilter!==be&&e.minFilter!==Me)}(r)&&!1===_(r.image),u=b(r.image,l,!1,p),c=_(u=H(r,u))||h,d=o.convert(r.format,r.encoding),f=o.convert(r.type),m=E(r.internalFormat,d,f,r.encoding,r.isVideoTexture);I(a,r,c);var v=r.mipmaps,g=h&&!0!==r.isVideoTexture,y=void 0===t.__version,x=S(r,u,c);
1if(r.isDepthTexture)m=6402,h?m=r.type===Pe?36012:r.type===Le?33190:r.type===je?35056:33189:r.type===Pe&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===He&&6402===m&&r.type!==Ae&&r.type!==Le&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=Ae,f=o.convert(r.type)),r.format===Ue&&6402===m&&(m=34041,r.type!==je&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=je,f=o.convert(r.type))),g&&y?n.texStorage2D(3553,1,m,u.width,u.height):n.texImage2D(3553,0,m,u.width,u.height,0,d,f,null);else if(r.isDataTexture)if(v.length>0&&c){g&&y&&n.texStorage2D(3553,x,m,v[0].width,v[0].height);for(var C=0,T=v.length;C<T;C++)s=v[C],g?n.texSubImage2D(3553,0,0,0,s.width,s.height,d,f,s.data):n.texImage2D(3553,C,m,s.width,s.height,0,d,f,s.data);r.generateMipmaps=!1}else g?(y&&n.texStorage2D(3553,x,m,u.width,u.height),n.texSubImage2D(3553,0,0,0,u.width,u.height,d,f,u.data)):n.texImage2D(3553,0,m,u.width,u.height,0,d,f,u.data);else if(r.isCompressedTexture){g&&y&&n.texStorage2D(3553,x,m,v[0].width,v[0].height);for(var k=0,A=v.length;k<A;k++)s=v[k],r.format!==Fe?null!==d?g?n.compressedTexSubImage2D(3553,k,0,0,s.width,s.height,d,s.data):n.compressedTexImage2D(3553,k,m,s.width,s.height,0,s.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):g?n.texSubImage2D(3553,k,0,0,s.width,s.height,d,f,s.data):n.texImage2D(3553,k,m,s.width,s.height,0,d,f,s.data)}else if(r.isDataTexture2DArray)g?(y&&n.texStorage3D(35866,x,m,u.width,u.height,u.depth),n.texSubImage3D(35866,0,0,0,0,u.width,u.height,u.depth,d,f,u.data)):n.texImage3D(35866,0,m,u.width,u.height,u.depth,0,d,f,u.data);else if(r.isDataTexture3D)g?(y&&n.texStorage3D(32879,x,m,u.width,u.height,u.depth),n.texSubImage3D(32879,0,0,0,0,u.width,u.height,u.depth,d,f,u.data)):n.texImage3D(32879,0,m,u.width,u.height,u.depth,0,d,f,u.data);else if(r.isFramebufferTexture)g&&y?n.texStorage2D(3553,x,m,u.width,u.height):n.texImage2D(3553,0,m,u.width,u.height,0,d,f,null);else if(v.length>0&&c){g&&y&&n.texStorage2D(3553,x,m,v[0].width,v[0].height);for(var O=0,L=v.length;O<L;O++)s=v[O],g?n.texSubImage2D(3553,O,0,0,d,f,s):n.texImage2D(3553,O,m,d,f,s);r.generateMipmaps=!1}else g?(y&&n.texStorage2D(3553,x,m,u.width,u.height),n.texSubImage2D(3553,0,0,0,d,f,u)):n.texImage2D(3553,0,m,d,f,u);w(r,c)&&M(a),t.__version=r.version,r.onUpdate&&r.onUpdate(r)}function N(t,r,a,s,l){var u=o.convert(a.format,a.encoding),c=o.convert(a.type),h=E(a.internalFormat,u,c,a.encoding);i.get(r).__hasExternalTextures||(32879===l||35866===l?n.texImage3D(l,0,h,r.width,r.height,r.depth,0,u,c,null):n.texImage2D(l,0,h,r.width,r.height,0,u,c,null)),n.bindFramebuffer(36160,t),r.useRenderToTexture?v.framebufferTexture2DMultisampleEXT(36160,s,l,i.get(a).__webglTexture,0,z(r)):e.framebufferTexture2D(36160,s,l,i.get(a).__webglTexture,0),n.bindFramebuffer(36160,null)}function F(t,n,r){if(e.bindRenderbuffer(36161,t),n.depthBuffer&&!n.stencilBuffer){var i=33189;if(r||n.useRenderToTexture){var a=n.depthTexture;a&&a.isDepthTexture&&(a.type===Pe?i=36012:a.type===Le&&(i=33190));var s=z(n);n.useRenderToTexture?v.renderbufferStorageMultisampleEXT(36161,s,i,n.width,n.height):e.renderbufferStorageMultisample(36161,s,i,n.width,n.height)}else e.renderbufferStorage(36161,i,n.width,n.height);e.framebufferRenderbuffer(36160,36096,36161,t)}else if(n.depthBuffer&&n.stencilBuffer){var l=z(n);r&&n.useRenderbuffer?e.renderbufferStorageMultisample(36161,l,35056,n.width,n.height):n.useRenderToTexture?v.renderbufferStorageMultisampleEXT(36161,l,35056,n.width,n.height):e.renderbufferStorage(36161,34041,n.width,n.height),e.framebufferRenderbuffer(36160,33306,36161,t)}else{var u=!0===n.isWebGLMultipleRenderTargets?n.texture[0]:n.texture,c=o.convert(u.format,u.encoding),h=o.convert(u.type),d=E(u.internalFormat,c,h,u.encoding),f=z(n);r&&n.useRenderbuffer?e.renderbufferStorageMultisample(36161,f,d,n.width,n.height):n.useRenderToTexture?v.renderbufferStorageMultisampleEXT(36161,f,d,n.width,n.height):e.renderbufferStorage(36161,d,n.width,n.height)}e.bindRenderbuffer(36161,null)}
1function B(t){var r=i.get(t),a=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!r.__autoAllocateDepthBuffer){if(a)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,r){if(r&&r.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,t),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),O(r.depthTexture,0);var a=i.get(r.depthTexture).__webglTexture,o=z(r);if(r.depthTexture.format===He)r.useRenderToTexture?v.framebufferTexture2DMultisampleEXT(36160,36096,3553,a,0,o):e.framebufferTexture2D(36160,36096,3553,a,0);else{if(r.depthTexture.format!==Ue)throw new Error("Unknown depthTexture format");r.useRenderToTexture?v.framebufferTexture2DMultisampleEXT(36160,33306,3553,a,0,o):e.framebufferTexture2D(36160,33306,3553,a,0)}}(r.__webglFramebuffer,t)}else if(a){r.__webglDepthbuffer=[];for(var o=0;o<6;o++)n.bindFramebuffer(36160,r.__webglFramebuffer[o]),r.__webglDepthbuffer[o]=e.createRenderbuffer(),F(r.__webglDepthbuffer[o],t,!1)}else n.bindFramebuffer(36160,r.__webglFramebuffer),r.__webglDepthbuffer=e.createRenderbuffer(),F(r.__webglDepthbuffer,t,!1);n.bindFramebuffer(36160,null)}function z(e){return h&&(e.useRenderbuffer||e.useRenderToTexture)?Math.min(m,e.samples):0}function H(e,n){var r=e.encoding,i=e.format,a=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===It?n:(r!==Mt&&(r===Et?!1===h?!0===t.has("EXT_sRGB")&&i===Fe?(e.format=It,e.minFilter=Me,e.generateMipmaps=!1):n=an.sRGBToLinear(n):i===Fe&&a===Ce||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",r)),n)}var U=!1,V=!1;this.allocateTextureUnit=function(){var e=A;return e>=d&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+d),A+=1,e},this.resetTextureUnits=function(){A=0},this.setTexture2D=O,this.setTexture2DArray=function(e,t){var r=i.get(e);e.version>0&&r.__version!==e.version?j(r,e,t):(n.activeTexture(33984+t),n.bindTexture(35866,r.__webglTexture))},this.setTexture3D=function(e,t){var r=i.get(e);e.version>0&&r.__version!==e.version?j(r,e,t):(n.activeTexture(33984+t),n.bindTexture(32879,r.__webglTexture))},this.setTextureCube=L,this.rebindTextures=function(e,t,n){var r=i.get(e);void 0!==t&&N(r.__webglFramebuffer,e,e.texture,36064,3553),void 0!==n&&B(e)},this.setupRenderTarget=function(t){var r=t.texture,l=i.get(t),u=i.get(r);t.addEventListener("dispose",k),!0!==t.isWebGLMultipleRenderTargets&&(void 0===u.__webglTexture&&(u.__webglTexture=e.createTexture()),u.__version=r.version,s.memory.textures++);var c=!0===t.isWebGLCubeRenderTarget,d=!0===t.isWebGLMultipleRenderTargets,f=r.isDataTexture3D||r.isDataTexture2DArray,p=_(t)||h;if(c){l.__webglFramebuffer=[];for(var m=0;m<6;m++)l.__webglFramebuffer[m]=e.createFramebuffer()}else if(l.__webglFramebuffer=e.createFramebuffer(),d)if(a.drawBuffers)for(var v=t.texture,g=0,y=v.length;g<y;g++){var x=i.get(v[g]);void 0===x.__webglTexture&&(x.__webglTexture=e.createTexture(),s.memory.textures++)}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");else if(t.useRenderbuffer)if(h){l.__webglMultisampledFramebuffer=e.createFramebuffer(),l.__webglColorRenderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(36161,l.__webglColorRenderbuffer);var b=o.convert(r.format,r.encoding),S=o.convert(r.type),C=E(r.internalFormat,b,S,r.encoding),T=z(t);e.renderbufferStorageMultisample(36161,T,C,t.width,t.height),n.bindFramebuffer(36160,l.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(36160,36064,36161,l.__webglColorRenderbuffer),e.bindRenderbuffer(36161,null),t.depthBuffer&&(l.__webglDepthRenderbuffer=e.createRenderbuffer(),F(l.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(c){n.bindTexture(34067,u.__webglTexture),I(34067,r,p);for(var A=0;A<6;A++)N(l.__webglFramebuffer[A],t,r,36064,34069+A);w(r,p)&&M(34067),n.unbindTexture()}else if(d){for(var O=t.texture,L=0,P=O.length;L<P;L++){var R=O[L],D=i.get(R);n.bindTexture(3553,D.__webglTexture),I(3553,R,p),N(l.__webglFramebuffer,t,R,36064+L,3553),w(R,p)&&M(3553)}n.unbindTexture()}else{var j=3553;if(f)if(h)j=r.isDataTexture3D?32879:35866;else console.warn("THREE.DataTexture3D and THREE.DataTexture2DArray only supported with WebGL2.");n.bindTexture(j,u.__webglTexture),I(j,r,p),N(l.__webglFramebuffer,t,r,36064,j),w(r,p)&&M(j),n.unbindTexture()}t.depthBuffer&&B(t)},this.updateRenderTargetMipmap=function(e){for(var t=_(e)||h,r=!0===e.isWebGLMultipleRenderTargets?e.texture:[e.texture],a=0,o=r.length;a<o;a++){var s=r[a];
1if(w(s,t)){var l=e.isWebGLCubeRenderTarget?34067:3553,u=i.get(s).__webglTexture;n.bindTexture(l,u),M(l),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(t.useRenderbuffer)if(h){var r=t.width,a=t.height,o=16384,s=[36064],l=t.stencilBuffer?33306:36096;t.depthBuffer&&s.push(l),t.ignoreDepthForMultisampleCopy||(t.depthBuffer&&(o|=256),t.stencilBuffer&&(o|=1024));var u=i.get(t);n.bindFramebuffer(36008,u.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,u.__webglFramebuffer),t.ignoreDepthForMultisampleCopy&&(e.invalidateFramebuffer(36008,[l]),e.invalidateFramebuffer(36009,[l])),e.blitFramebuffer(0,0,r,a,0,0,r,a,o,9728),e.invalidateFramebuffer(36008,s),n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,u.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")},this.setupDepthRenderbuffer=B,this.setupFrameBufferTexture=N,this.safeSetTexture2D=function(e,t){e&&e.isWebGLRenderTarget&&(!1===U&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),U=!0),e=e.texture),O(e,t)},this.safeSetTextureCube=function(e,t){e&&e.isWebGLCubeRenderTarget&&(!1===V&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),V=!0),e=e.texture),L(e,t)}}function ms(e,t,n){var r=n.isWebGL2;return{convert:function(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e===Ce)return 5121;if(e===Ie)return 32819;if(e===De)return 32820;if(e===Te)return 5120;if(e===ke)return 5122;if(e===Ae)return 5123;if(e===Oe)return 5124;if(e===Le)return 5125;if(e===Pe)return 5126;if(e===Re)return r?5131:null!==(n=t.get("OES_texture_half_float"))?n.HALF_FLOAT_OES:null;if(e===Ne)return 6406;if(e===Fe)return 6408;if(e===Be)return 6409;if(e===ze)return 6410;if(e===He)return 6402;if(e===Ue)return 34041;if(e===Ve)return 6403;if(e===It)return null!==(n=t.get("EXT_sRGB"))?n.SRGB_ALPHA_EXT:null;if(e===Ge)return 36244;if(e===We)return 33319;if(e===Ze)return 33320;if(e===qe)return 36249;if(e===Xe||e===Je||e===Ye||e===Ke)if(i===Et){if(null===(n=t.get("WEBGL_compressed_texture_s3tc_srgb")))return null;if(e===Xe)return n.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(e===Je)return n.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(e===Ye)return n.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(e===Ke)return n.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(null===(n=t.get("WEBGL_compressed_texture_s3tc")))return null;if(e===Xe)return n.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===Je)return n.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===Ye)return n.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===Ke)return n.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(e===Qe||e===$e||e===et||e===tt){if(null===(n=t.get("WEBGL_compressed_texture_pvrtc")))return null;if(e===Qe)return n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(e===$e)return n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(e===et)return n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(e===tt)return n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(e===nt)return null!==(n=t.get("WEBGL_compressed_texture_etc1"))?n.COMPRESSED_RGB_ETC1_WEBGL:null;if(e===rt||e===it){if(null===(n=t.get("WEBGL_compressed_texture_etc")))return null;if(e===rt)return i===Et?n.COMPRESSED_SRGB8_ETC2:n.COMPRESSED_RGB8_ETC2;if(e===it)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:n.COMPRESSED_RGBA8_ETC2_EAC}if(e===at||e===ot||e===st||e===lt||e===ut||e===ct||e===ht||e===dt||e===ft||e===pt||e===mt||e===vt||e===gt||e===yt){if(null===(n=t.get("WEBGL_compressed_texture_astc")))return null;if(e===at)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:n.COMPRESSED_RGBA_ASTC_4x4_KHR;if(e===ot)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:n.COMPRESSED_RGBA_ASTC_5x4_KHR;if(e===st)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:n.COMPRESSED_RGBA_ASTC_5x5_KHR;if(e===lt)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:n.COMPRESSED_RGBA_ASTC_6x5_KHR;if(e===ut)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:n.COMPRESSED_RGBA_ASTC_6x6_KHR;if(e===ct)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:n.COMPRESSED_RGBA_ASTC_8x5_KHR;if(e===ht)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:n.COMPRESSED_RGBA_ASTC_8x6_KHR;if(e===dt)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:n.COMPRESSED_RGBA_ASTC_8x8_KHR;if(e===ft)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:n.COMPRESSED_RGBA_ASTC_10x5_KHR;if(e===pt)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:n.COMPRESSED_RGBA_ASTC_10x6_KHR;if(e===mt)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:n.COMPRESSED_RGBA_ASTC_10x8_KHR;if(e===vt)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:n.COMPRESSED_RGBA_ASTC_10x10_KHR;if(e===gt)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:n.COMPRESSED_RGBA_ASTC_12x10_KHR;if(e===yt)return i===Et?n.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:n.COMPRESSED_RGBA_ASTC_12x12_KHR}if(e===xt){if(null===(n=t.get("EXT_texture_compression_bptc")))return null;if(e===xt)return i===Et?n.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:n.COMPRESSED_RGBA_BPTC_UNORM_EXT}return e===je?r?34042:null!==(n=t.get("WEBGL_depth_texture"))?n.UNSIGNED_INT_24_8_WEBGL:null:void 0}}}var vs=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).cameras=n,e}return Object(c.a)(t,e),t}(gi);vs.prototype.isArrayCamera=!0;var gs=function(e){function t(){var e;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="Group",e}return Object(c.a)(t,e),t}(mr);gs.prototype.isGroup=!0;var ys={type:"move"},xs=function(){function e(){Object(f.a)(this,e),this._targetRay=null,this._grip=null,this._hand=null}return Object(p.a)(e,[{key:"getHandSpace",value:function(){return null===this._hand&&(this._hand=new gs,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}},{key:"getTargetRaySpace",value:function(){return null===this._targetRay&&(this._targetRay=new gs,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new fn,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new fn),this._targetRay}},{key:"getGripSpace",value:function(){return null===this._grip&&(this._grip=new gs,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new fn,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new fn),this._grip}},{key:"dispatchEvent",value:function(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}},{key:"disconnect",value:function(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}},{key:"update",value:function(e,t,n){var r=null,i=null,a=null,o=this._targetRay,s=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState)if(null!==o&&null!==(r=t.getPose(e.targetRaySpace,n))&&
1(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(ys)),l&&e.hand){a=!0;var u=!0,c=!1,h=void 0;try{for(var d,f=e.hand.values()[Symbol.iterator]();!(u=(d=f.next()).done);u=!0){var p=d.value,m=t.getJointPose(p,n);if(void 0===l.joints[p.jointName]){var v=new gs;v.matrixAutoUpdate=!1,v.visible=!1,l.joints[p.jointName]=v,l.add(v)}var g=l.joints[p.jointName];null!==m&&(g.matrix.fromArray(m.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.jointRadius=m.radius),g.visible=null!==m}}catch(_){c=!0,h=_}finally{try{u||null==f.return||f.return()}finally{if(c)throw h}}var y=l.joints["index-finger-tip"],x=l.joints["thumb-tip"],b=y.position.distanceTo(x.position);l.inputState.pinching&&b>.025?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&b<=.015&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&null!==(i=t.getPose(e.gripSpace,n))&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1);return null!==o&&(o.visible=null!==r),null!==s&&(s.visible=null!==i),null!==l&&(l.visible=null!==a),this}}]),e}(),bs=function(e){function t(e,n,r,i,o,s,u,c,h,d){var p;if(Object(f.a)(this,t),(d=void 0!==d?d:He)!==He&&d!==Ue)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");return void 0===r&&d===He&&(r=Ae),void 0===r&&d===Ue&&(r=je),(p=Object(l.a)(this,Object(a.a)(t).call(this,null,i,o,s,u,c,d,r,h))).image={width:e,height:n},p.magFilter=void 0!==u?u:be,p.minFilter=void 0!==c?c:be,p.flipY=!1,p.generateMipmaps=!1,p}return Object(c.a)(t,e),t}(sn);bs.prototype.isDepthTexture=!0;var _s=function(e){function t(e,n){var r;Object(f.a)(this,t),r=Object(l.a)(this,Object(a.a)(t).call(this));var i=Object(u.a)(r),o=null,s=1,c=null,h="local-floor",p=e.extensions.has("WEBGL_multisampled_render_to_texture"),m=null,v=null,g=null,y=null,x=!1,b=null,_=n.getContextAttributes(),w=null,M=null,E=[],S=new Map,C=new gi;C.layers.enable(1),C.viewport=new un;var T=new gi;T.layers.enable(2),T.viewport=new un;var k=[C,T],A=new vs;A.layers.enable(1),A.layers.enable(2);var O=null,L=null;function P(e){var t=S.get(e.inputSource);t&&t.dispatchEvent({type:e.type,data:e.inputSource})}function R(){S.forEach((function(e,t){e.disconnect(t)})),S.clear(),O=null,L=null,e.setRenderTarget(w),y=null,g=null,v=null,o=null,M=null,B.stop(),i.isPresenting=!1,i.dispatchEvent({type:"sessionend"})}function I(e){for(var t=o.inputSources,n=0;n<E.length;n++)S.set(t[n],E[n]);for(var r=0;r<e.removed.length;r++){var i=e.removed[r],a=S.get(i);a&&(a.dispatchEvent({type:"disconnected",data:i}),S.delete(i))}for(var s=0;s<e.added.length;s++){var l=e.added[s],u=S.get(l);u&&u.dispatchEvent({type:"connected",data:l})}}r.cameraAutoUpdate=!0,r.enabled=!1,r.isPresenting=!1,r.getController=function(e){var t=E[e];return void 0===t&&(t=new xs,E[e]=t),t.getTargetRaySpace()},r.getControllerGrip=function(e){var t=E[e];return void 0===t&&(t=new xs,E[e]=t),t.getGripSpace()},r.getHand=function(e){var t=E[e];return void 0===t&&(t=new xs,E[e]=t),t.getHandSpace()},r.setFramebufferScaleFactor=function(e){s=e,!0===i.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},r.setReferenceSpaceType=function(e){h=e,!0===i.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},r.getReferenceSpace=function(){return c},r.getBaseLayer=function(){return null!==g?g:y},r.getBinding=function(){return v},r.getFrame=function(){return b},r.getSession=function(){return o},r.setSession=function(t){var r,a,l,u,f;return d.a.async((function(m){for(;;)switch(m.prev=m.next){case 0:if(null===(o=t)){m.next=24;break}if(w=e.getRenderTarget(),o.addEventListener("select",P),o.addEventListener("selectstart",P),o.addEventListener("selectend",P),o.addEventListener("squeeze",P),o.addEventListener("squeezestart",P),o.addEventListener("squeezeend",P),o.addEventListener("end",R),o.addEventListener("inputsourceschange",I),!0===_.xrC
1ompatible){m.next=14;break}return m.next=14,d.a.awrap(n.makeXRCompatible());case 14:return void 0===o.renderState.layers||!1===e.capabilities.isWebGL2?(r={antialias:void 0!==o.renderState.layers||_.antialias,alpha:_.alpha,depth:_.depth,stencil:_.stencil,framebufferScaleFactor:s},y=new XRWebGLLayer(o,n,r),o.updateRenderState({baseLayer:y}),M=new cn(y.framebufferWidth,y.framebufferHeight,{format:Fe,type:Ce,encoding:e.outputEncoding})):(x=_.antialias,a=null,l=null,u=null,_.depth&&(u=_.stencil?35056:33190,a=_.stencil?Ue:He,l=_.stencil?je:Ae),f={colorFormat:e.outputEncoding===Et?35907:32856,depthFormat:u,scaleFactor:s},v=new XRWebGLBinding(o,n),g=v.createProjectionLayer(f),o.updateRenderState({layers:[g]}),M=x?new hn(g.textureWidth,g.textureHeight,{format:Fe,type:Ce,depthTexture:new bs(g.textureWidth,g.textureHeight,l,void 0,void 0,void 0,void 0,void 0,void 0,a),stencilBuffer:_.stencil,ignoreDepth:g.ignoreDepthValues,useRenderToTexture:p,encoding:e.outputEncoding}):new cn(g.textureWidth,g.textureHeight,{format:Fe,type:Ce,depthTexture:new bs(g.textureWidth,g.textureHeight,l,void 0,void 0,void 0,void 0,void 0,void 0,a),stencilBuffer:_.stencil,ignoreDepth:g.ignoreDepthValues,encoding:e.outputEncoding})),M.isXRRenderTarget=!0,this.setFoveation(1),m.next=19,d.a.awrap(o.requestReferenceSpace(h));case 19:c=m.sent,B.setContext(o),B.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"});case 24:case"end":return m.stop()}}),null,this)};var D=new fn,j=new fn;function N(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}r.updateCamera=function(e){if(null!==o){A.near=T.near=C.near=e.near,A.far=T.far=C.far=e.far,O===A.near&&L===A.far||(o.updateRenderState({depthNear:A.near,depthFar:A.far}),O=A.near,L=A.far);var t=e.parent,n=A.cameras;N(A,t);for(var r=0;r<n.length;r++)N(n[r],t);A.matrixWorld.decompose(A.position,A.quaternion,A.scale),e.position.copy(A.position),e.quaternion.copy(A.quaternion),e.scale.copy(A.scale),e.matrix.copy(A.matrix),e.matrixWorld.copy(A.matrixWorld);for(var i=e.children,a=0,s=i.length;a<s;a++)i[a].updateMatrixWorld(!0);2===n.length?function(e,t,n){D.setFromMatrixPosition(t.matrixWorld),j.setFromMatrixPosition(n.matrixWorld);var r=D.distanceTo(j),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),l=(i[9]+1)/i[5],u=(i[9]-1)/i[5],c=(i[8]-1)/i[0],h=(a[8]+1)/a[0],d=o*c,f=o*h,p=r/(-c+h),m=p*-c;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(p),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();var v=o+p,g=s+p,y=d-m,x=f+(r-m),b=l*s/g*v,_=u*s/g*v;e.projectionMatrix.makePerspective(y,x,b,_,v,g)}(A,C,T):A.projectionMatrix.copy(C.projectionMatrix)}},r.getCamera=function(){return A},r.getFoveation=function(){return null!==g?g.fixedFoveation:null!==y?y.fixedFoveation:void 0},r.setFoveation=function(e){null!==g&&(g.fixedFoveation=e),null!==y&&void 0!==y.fixedFoveation&&(y.fixedFoveation=e)};var F=null;var B=new Oi;return B.setAnimationLoop((function(t,n){if(m=n.getViewerPose(c),b=n,null!==m){var r=m.views;null!==y&&(e.setRenderTargetFramebuffer(M,y.framebuffer),e.setRenderTarget(M));var i=!1;r.length!==A.cameras.length&&(A.cameras.length=0,i=!0);for(var a=0;a<r.length;a++){var s=r[a],l=null;if(null!==y)l=y.getViewport(s);else{var u=v.getViewSubImage(g,s);l=u.viewport,0===a&&(e.setRenderTargetTextures(M,u.colorTexture,g.ignoreDepthValues?void 0:u.depthStencilTexture),e.setRenderTarget(M))}var h=k[a];h.matrix.fromArray(s.transform.matrix),h.projectionMatrix.fromArray(s.projectionMatrix),h.viewport.set(l.x,l.y,l.width,l.height),0===a&&A.matrix.copy(h.matrix),!0===i&&A.cameras.push(h)}}for(var d=o.inputSources,f=0;f<E.length;f++){var p=E[f],x=d[f];p.update(x,n,c)}F&&F(t,n),b=null})),r.setAnimationLoop=function(e){F=e},r.dispose=function(){},r}return Object(c.a)(t,e),t}(Dt);function ws(e){function t(t,n){t.opacity.value=n.opacity,n.color&&t.diffuse.value.copy(n.color),n.emissive&&t.emissive.value.copy(n.emissive).multiplyScalar(n.emissiveIntensity),n.map&&(t.map.value=n.map),n.alphaMap&&(t.alphaMap.value=n.alphaMap),n.specularMap&&(t.specularMap.value=n.specularMap),n.alphaTest>0&&(t.alphaTest.value=n.alphaTest);var r,i,a=e.get(n).envMap;a&&(t.envMap.value=a,t.flipEnvMap.value=a.isCubeTexture&&!1===a.isRenderTargetTexture?-1:1,t.reflectivity.value=n.reflectivity,t.ior.value=n.ior,t.refractionRatio.value=n.refractionRatio),n.lightMap&&(t.lightMap.value=n.lightMap,t.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(t.aoMap.value=n.aoMap,t.aoMapIntensity.value=n.aoMapIntensity),n.map?r=n.map:n.specularMap?r=n.specularMap:n.displacementMap?r=n.displacementMap:n.normalMap?r=n.normalMap:n.bumpMap?r=n.bumpMap:n.roughnessMap?r=n.roughnessMap:n.metalnessMap?r=n.metalnessMap:n.alphaMap?r=n.alphaMap:n.emissiveMap?r=n.emissiveMap:n.clearcoatMap?r=n.clearcoatMap:n.clearcoatNormalMap?r=n.clearcoatNormalMap:n.clearcoatRoughnessMap?r=n.clearcoatRoughnessMap:n.specularIntensityMap?r=n.specularIntensityMap:n.specularColorMap?r=n.specularColorMap:n.transmissionMap?r=n.transmissionMap:n.thicknessMap?r=n.thicknessMap:n.sheenColorMap?r=n.sheenColorMap:n.sheenRoughnessMap&&(r=n.sheenRoughnessMap),void 0!==r&&(r.isWebGLRenderTarget&&(r=r.texture),!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix)),n.aoMap?i=n.aoMap:n.lightMap&&(i=n.lightMap),void 0!==i&&(i.isWebG
1LRenderTarget&&(i=i.texture),!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uv2Transform.value.copy(i.matrix))}function n(t,n){t.roughness.value=n.roughness,t.metalness.value=n.metalness,n.roughnessMap&&(t.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(t.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(t.emissiveMap.value=n.emissiveMap),n.bumpMap&&(t.bumpMap.value=n.bumpMap,t.bumpScale.value=n.bumpScale,n.side===M&&(t.bumpScale.value*=-1)),n.normalMap&&(t.normalMap.value=n.normalMap,t.normalScale.value.copy(n.normalScale),n.side===M&&t.normalScale.value.negate()),n.displacementMap&&(t.displacementMap.value=n.displacementMap,t.displacementScale.value=n.displacementScale,t.displacementBias.value=n.displacementBias),e.get(n).envMap&&(t.envMapIntensity.value=n.envMapIntensity)}return{refreshFogUniforms:function(e,t){e.fogColor.value.copy(t.color),t.isFog?(e.fogNear.value=t.near,e.fogFar.value=t.far):t.isFogExp2&&(e.fogDensity.value=t.density)},refreshMaterialUniforms:function(e,r,i,a,o){r.isMeshBasicMaterial?t(e,r):r.isMeshLambertMaterial?(t(e,r),function(e,t){t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap)}(e,r)):r.isMeshToonMaterial?(t(e,r),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap);t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap);t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===M&&(e.bumpScale.value*=-1));t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===M&&e.normalScale.value.negate());t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshPhongMaterial?(t(e,r),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4),t.emissiveMap&&(e.emissiveMap.value=t.emissiveMap);t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===M&&(e.bumpScale.value*=-1));t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===M&&e.normalScale.value.negate());t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshStandardMaterial?(t(e,r),r.isMeshPhysicalMaterial?function(e,t,r){n(e,t),e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,t.side===M&&e.clearcoatNormalScale.value.negate()));t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap);t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap)}(e,r,o):n(e,r)):r.isMeshMatcapMaterial?(t(e,r),function(e,t){t.matcap&&(e.matcap.value=t.matcap);t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===M&&(e.bumpScale.value*=-1));t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===M&&e.normalScale.value.negate());t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshDepthMaterial?(t(e,r),function(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isMeshDistanceMaterial?(t(e,r),function(e,t){t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias);e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}(e,r)):r.isMeshNormalMaterial?(t(e,r),function(e,t){t.bumpMap&&(e.bumpMap.value=t.bumpMap,e.bumpScale.value=t.bumpScale,t.side===M&&(e.bumpScale.value*=-1));t.normalMap&&(e.normalMap.value=t.normalMap,e.normalScale.value.copy(t.normalScale),t.side===M&&e.normalScale.value.negate());t.displacementMap&&(e.displacementMap.value=t.displacementMap,e.displacementScale.value=t.displacementScale,e.displacementBias.value=t.displacementBias)}(e,r)):r.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}(e,r),r.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize
1+t.gapSize,e.scale.value=t.scale}(e,r)):r.isPointsMaterial?function(e,t,n,r){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map);t.alphaMap&&(e.alphaMap.value=t.alphaMap);t.alphaTest>0&&(e.alphaTest.value=t.alphaTest);var i;t.map?i=t.map:t.alphaMap&&(i=t.alphaMap);void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}(e,r,i,a):r.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map);t.alphaMap&&(e.alphaMap.value=t.alphaMap);t.alphaTest>0&&(e.alphaTest.value=t.alphaTest);var n;t.map?n=t.map:t.alphaMap&&(n=t.alphaMap);void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}(e,r):r.isShadowMaterial?(e.color.value.copy(r.color),e.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function Ms(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=void 0!==t.canvas?t.canvas:((e=Jt("canvas")).style.display="block",e),r=void 0!==t.context?t.context:null,i=void 0!==t.alpha&&t.alpha,a=void 0===t.depth||t.depth,o=void 0===t.stencil||t.stencil,s=void 0!==t.antialias&&t.antialias,l=void 0===t.premultipliedAlpha||t.premultipliedAlpha,u=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,c=void 0!==t.powerPreference?t.powerPreference:"default",h=void 0!==t.failIfMajorPerformanceCaveat&&t.failIfMajorPerformanceCaveat,d=null,f=null,p=[],v=[];this.domElement=n,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=Mt,this.physicallyCorrectLights=!1,this.toneMapping=ie,this.toneMappingExposure=1;var g=this,y=!1,x=0,b=0,_=null,S=-1,C=null,T=new un,k=new un,A=null,O=n.width,L=n.height,P=1,R=null,I=null,D=new un(0,0,O,L),j=new un(0,0,O,L),N=!1,F=new Ai,B=!1,z=!1,H=null,U=new Gn,V=new fn,G={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function W(){return null===_?P:1}var Z,q,X,J,Y,K,Q,$,ee,te,ne,re,ae,oe,se,le,ue,ce,he,de,fe,pe,me,ve=r;function ge(e,t){for(var r=0;r<e.length;r++){var i=e[r],a=n.getContext(i,t);if(null!==a)return a}return null}try{var xe={alpha:!0,depth:a,stencil:o,antialias:s,premultipliedAlpha:l,preserveDrawingBuffer:u,powerPreference:c,failIfMajorPerformanceCaveat:h};if("setAttribute"in n&&n.setAttribute("data-engine","three.js r".concat(m)),n.addEventListener("webglcontextlost",Ee,!1),n.addEventListener("webglcontextrestored",Te,!1),null===ve){var _e=["webgl2","webgl","experimental-webgl"];if(!0===g.isWebGL1Renderer&&_e.shift(),null===(ve=ge(_e,xe)))throw ge(_e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===ve.getShaderPrecisionFormat&&(ve.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(He){throw console.error("THREE.WebGLRenderer: "+He.message),He}function we(){Z=new fa(ve),q=new Bi(ve,Z,t),Z.init(q),pe=new ms(ve,Z,q),X=new fs(ve,Z,q),J=new va(ve),Y=new Ko,K=new ps(ve,Z,X,Y,q,pe,J),Q=new Hi(g),$=new da(g),ee=new Li(ve,q),me=new Ni(ve,Z,ee,q),te=new pa(ve,ee,J,me),ne=new wa(ve,te,ee,J),he=new _a(ve,q,K),le=new zi(Y),re=new Yo(g,Q,$,Z,q,me,le),ae=new ws(Y),oe=new ts,se=new ss(Z,q),ce=new ji(g,Q,X,ne,i,l),ue=new ds(g,ne,q),de=new Fi(ve,Z,J,q),fe=new ma(ve,Z,J,q),J.programs=re.programs,g.capabilities=q,g.extensions=Z,g.properties=Y,g.renderLists=oe,g.shadowMap=ue,g.state=X,g.info=J}we();var Me=new _s(g,ve);function Ee(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),y=!0}function Te(){console.log("THREE.WebGLRenderer: Context Restored."),y=!1;var e=J.autoReset,t=ue.enabled,n=ue.autoUpdate,r=ue.needsUpdate,i=ue.type;we(),J.autoReset=e,ue.enabled=t,ue.autoUpdate=n,ue.needsUpdate=r,ue.type=i}function ke(e){var t=e.target;t.removeEventListener("dispose",ke),function(e){(function(e){var t=Y.get(e).programs;void 0!==t&&(t.forEach((function(e){re.releaseProgram(e)})),e.isShaderMaterial&&re.releaseShaderCache(e))})(e),Y.remove(e)}(t)}this.xr=Me,this.getContext=function(){return ve},this.getContextAttributes=function(){return ve.getContextAttributes()},this.forceContextLoss=function(){var e=Z.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){var e=Z.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return P},this.setPixelRatio=function(e){void 0!==e&&(P=e,this.setSize(O,L,!1))}
1,this.getSize=function(e){return e.set(O,L)},this.setSize=function(e,t,r){Me.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(O=e,L=t,n.width=Math.floor(e*P),n.height=Math.floor(t*P),!1!==r&&(n.style.width=e+"px",n.style.height=t+"px"),this.setViewport(0,0,e,t))},this.getDrawingBufferSize=function(e){return e.set(O*P,L*P).floor()},this.setDrawingBufferSize=function(e,t,r){O=e,L=t,P=r,n.width=Math.floor(e*r),n.height=Math.floor(t*r),this.setViewport(0,0,e,t)},this.getCurrentViewport=function(e){return e.copy(T)},this.getViewport=function(e){return e.copy(D)},this.setViewport=function(e,t,n,r){e.isVector4?D.set(e.x,e.y,e.z,e.w):D.set(e,t,n,r),X.viewport(T.copy(D).multiplyScalar(P).floor())},this.getScissor=function(e){return e.copy(j)},this.setScissor=function(e,t,n,r){e.isVector4?j.set(e.x,e.y,e.z,e.w):j.set(e,t,n,r),X.scissor(k.copy(j).multiplyScalar(P).floor())},this.getScissorTest=function(){return N},this.setScissorTest=function(e){X.setScissorTest(N=e)},this.setOpaqueSort=function(e){R=e},this.setTransparentSort=function(e){I=e},this.getClearColor=function(e){return e.copy(ce.getClearColor())},this.setClearColor=function(){ce.setClearColor.apply(ce,arguments)},this.getClearAlpha=function(){return ce.getClearAlpha()},this.setClearAlpha=function(){ce.setClearAlpha.apply(ce,arguments)},this.clear=function(e,t,n){var r=0;(void 0===e||e)&&(r|=16384),(void 0===t||t)&&(r|=256),(void 0===n||n)&&(r|=1024),ve.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){n.removeEventListener("webglcontextlost",Ee,!1),n.removeEventListener("webglcontextrestored",Te,!1),oe.dispose(),se.dispose(),Y.dispose(),Q.dispose(),$.dispose(),ne.dispose(),me.dispose(),re.dispose(),Me.dispose(),Me.removeEventListener("sessionstart",Oe),Me.removeEventListener("sessionend",Le),H&&(H.dispose(),H=null),Ie.stop()},this.renderBufferDirect=function(e,t,n,r,i,a){null===t&&(t=G);var o=i.isMesh&&i.matrixWorld.determinant()<0,s=function(e,t,n,r,i){!0!==t.isScene&&(t=G);K.resetTextureUnits();var a=t.fog,o=r.isMeshStandardMaterial?t.environment:null,s=null===_?g.outputEncoding:!0===_.isXRRenderTarget?_.texture.encoding:Mt,l=(r.isMeshStandardMaterial?$:Q).get(r.envMap||o),u=!0===r.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,c=!!r.normalMap&&!!n.attributes.tangent,h=!!n.morphAttributes.position,d=!!n.morphAttributes.normal,p=n.morphAttributes.position?n.morphAttributes.position.length:0,m=r.toneMapped?g.toneMapping:ie,v=Y.get(r),y=f.state.lights;if(!0===B&&(!0===z||e!==C)){var x=e===C&&r.id===S;le.setState(r,e,x)}var b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputEncoding!==s?b=!0:i.isInstancedMesh&&!1===v.instancing?b=!0:i.isInstancedMesh||!0!==v.instancing?i.isSkinnedMesh&&
1!1===v.skinning?b=!0:i.isSkinnedMesh||!0!==v.skinning?v.envMap!==l?b=!0:r.fog&&v.fog!==a?b=!0:void 0===v.numClippingPlanes||v.numClippingPlanes===le.numPlanes&&v.numIntersection===le.numIntersection?v.vertexAlphas!==u?b=!0:v.vertexTangents!==c?b=!0:v.morphTargets!==h?b=!0:v.morphNormals!==d?b=!0:v.toneMapping!==m?b=!0:!0===q.isWebGL2&&v.morphTargetsCount!==p&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);var w=v.currentProgram;!0===b&&(w=Be(r,t,i));var M=!1,E=!1,T=!1,k=w.getUniforms(),A=v.uniforms;X.useProgram(w.program)&&(M=!0,E=!0,T=!0);r.id!==S&&(S=r.id,E=!0);if(M||C!==e){if(k.setValue(ve,"projectionMatrix",e.projectionMatrix),q.logarithmicDepthBuffer&&k.setValue(ve,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),C!==e&&(C=e,E=!0,T=!0),r.isShaderMaterial||r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshStandardMaterial||r.envMap){var O=k.map.cameraPosition;void 0!==O&&O.setValue(ve,V.setFromMatrixPosition(e.matrixWorld))}(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&k.setValue(ve,"isOrthographic",!0===e.isOrthographicCamera),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial||r.isShadowMaterial||i.isSkinnedMesh)&&k.setValue(ve,"viewMatrix",e.matrixWorldInverse)}if(i.isSkinnedMesh){k.setOptional(ve,i,"bindMatrix"),k.setOptional(ve,i,"bindMatrixInverse");var R=i.skeleton;R&&(q.floatVertexTextures?(null===R.boneTexture&&R.computeBoneTexture(),k.setValue(ve,"boneTexture",R.boneTexture,K),k.setValue(ve,"boneTextureSize",R.boneTextureSize)):k.setOptional(ve,R,"boneMatrices"))}!n||void 0===n.morphAttributes.position&&void 0===n.morphAttributes.normal||he.update(i,n,r,w);(E||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,k.setValue(ve,"receiveShadow",i.receiveShadow));E&&(k.setValue(ve,"toneMappingExposure",g.toneMappingExposure),v.needsLights&&(D=T,(I=A).ambientLightColor.needsUpdate=D,I.lightProbe.needsUpdate=D,I.directionalLights.needsUpdate=D,I.directionalLightShadows.needsUpdate=D,I.pointLights.needsUpdate=D,I.pointLightShadows.needsUpdate=D,I.spotLights.needsUpdate=D,I.spotLightShadows.needsUpdate=D,I.rectAreaLights.needsUpdate=D,I.hemisphereLights.needsUpdate=D),a&&r.fog&&ae.refreshFogUniforms(A,a),ae.refreshMaterialUniforms(A,r,P,L,H),ko.upload(ve,v.uniformsList,A,K));var I,D;r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(ko.upload(ve,v.uniformsList,A,K),r.uniformsNeedUpdate=!1);r.isSpriteMaterial&&k.setValue(ve,"center",i.center);return k.setValue(ve,"modelViewMatrix",i.modelViewMatrix),k.setValue(ve,"normalMatrix",i.normalMatrix),k.setValue(ve,"modelMatrix",i.matrixWorld),w}(e,t,n,r,i);X.setMaterial(r,o);var l=n.index,u=n.attributes.position;if(null===l){if(void 0===u||0===u.count)return}else if(0===l.count)return;var c,h=1;!0===r.wireframe&&(l=te.getWireframeAttribute(n),h=2),me.setup(i,r,s,n,l);var d=de;null!==l&&(c=ee.get(l),(d=fe).setIndex(c));var p=null!==l?l.count:u.count,m=n.drawRange.start*h,v=n.drawRange.count*h,y=null!==a?a.start*h:0,x=null!==a?a.count*h:1/0,b=Math.max(m,y),w=Math.min(p,m+v,y+x)-1,M=Math.max(0,w-b+1);if(0!==M){if(i.isMesh)!0===r.wireframe?(X.setLineWidth(r.wireframeLinewidth*W()),d.setMode(1)):d.setMode(4);else if(i.isLine){var E=r.linewidth;void 0===E&&(E=1),X.setLineWidth(E*W()),i.isLineSegments?d.setMode(1):i.isLineLoop?d.setMode(2):d.setMode(3)}else i.isPoints?d.setMode(0):i.isSprite&&d.setMode(4);if(i.isInstancedMesh)d.renderInstances(b,M,i.count);else if(n.isInstancedBufferGeometry){var T=Math.min(n.instanceCount,n._maxInstanceCount);d.renderInstances(b,M,T)}else d.render(b,M)}},this.compile=function(e,t){(f=se.get(e)).init(),v.push(f),e.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(f.pushLight(e),e.castShadow&&f.pushShadow(e))})),f.setupLights(g.physicallyCorrectLights),e.traverse((function(t){var n=t.material;if(n)if(Array.isArray(n))for(var r=0;r<n.length;r++){Be(n[r],e,t)}else Be(n,e,t)})),v.pop(),f=null};var Ae=null;function Oe(){Ie.stop()}function Le(){Ie.start()}var Ie=new Oi;function De(e,t,n,r){var i=e.opaque,a=e.transmissive,o=e.transparent;f.setupLightsView(n),a.length>0&&function(e,t,n){if(null===H){var r=!0===s&&!0===q.isWebGL2;H=new(r?hn:cn)(1024,1024,{generateMipmaps:!0,type:null!==pe.convert(Re)?Re:Ce,minFilter:Se,magFilter:be,wrapS:ye,wrapT:ye,useRenderToTexture:Z.has("WEBGL_multisampled_render_to_texture")})}var i=g.getRenderTarget();g.setRenderTarget(H),g.clear();var a=g.toneMapping;g.toneMapping=ie,je(e,t,n),g.toneMapping=a,K.updateMultisampleRenderTarget(H),K.updateRenderTargetMipmap(H),g.setRenderTarget(i)}(i,t,n),r&&X.viewport(T.copy(r)),i.length>0&&je(i,t,n),a.length>0&&je(a,t,n),o.length>0&&je(o,t,n)}function je(e,t,n){for(var r=!0===t.isScene?t.overrideMaterial:null,i=0,a=e.length;i<a;i++){var o=e[i],s=o.object,l=o.geometry,u=null===r?o.material:r,c=o.group;s.layers.test(n.layers)&&Ne(s,t,n,l,u,c)}}function Ne(e,t,n,r,i,a){e.onBeforeRender(g,t,n,r,i,a),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),i.onBeforeRender(g,t,n,r,e,a),!0===i.transparent&&i.side===E?(i.side=M,i.needsUpdate=!0,g.renderBufferDirect(n,t,r,i,e,a),i.side=w,i.needsUpdate=!0,g.renderBufferDirect(n,t,r,i,e,a),i.side=E):g.renderBufferDirect(n,t,r,i,e,a),e.onAfterRender(g,t,n,r,i,a)}function Be(e,t,n){!0!==t.isScene&&(t=G);var r=Y.get(e),i=f.state.lights,a=f.state.shadowsArray,o=i.state.ver
1sion,s=re.getParameters(e,i.state,a,t,n),l=re.getProgramCacheKey(s),u=r.programs;r.environment=e.isMeshStandardMaterial?t.environment:null,r.fog=t.fog,r.envMap=(e.isMeshStandardMaterial?$:Q).get(e.envMap||r.environment),void 0===u&&(e.addEventListener("dispose",ke),u=new Map,r.programs=u);var c=u.get(l);if(void 0!==c){if(r.currentProgram===c&&r.lightsStateVersion===o)return ze(e,s),c}else s.uniforms=re.getUniforms(e),e.onBuild(n,s,g),e.onBeforeCompile(s,g),c=re.acquireProgram(s,l),u.set(l,c),r.uniforms=s.uniforms;var h=r.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(h.clippingPlanes=le.uniform),ze(e,s),r.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),r.lightsStateVersion=o,r.needsLights&&(h.ambientLightColor.value=i.state.ambient,h.lightProbe.value=i.state.probe,h.directionalLights.value=i.state.directional,h.directionalLightShadows.value=i.state.directionalShadow,h.spotLights.value=i.state.spot,h.spotLightShadows.value=i.state.spotShadow,h.rectAreaLights.value=i.state.rectArea,h.ltc_1.value=i.state.rectAreaLTC1,h.ltc_2.value=i.state.rectAreaLTC2,h.pointLights.value=i.state.point,h.pointLightShadows.value=i.state.pointShadow,h.hemisphereLights.value=i.state.hemi,h.directionalShadowMap.value=i.state.directionalShadowMap,h.directionalShadowMatrix.value=i.state.directionalShadowMatrix,h.spotShadowMap.value=i.state.spotShadowMap,h.spotShadowMatrix.value=i.state.spotShadowMatrix,h.pointShadowMap.value=i.state.pointShadowMap,h.pointShadowMatrix.value=i.state.pointShadowMatrix);var d=c.getUniforms(),p=ko.seqWithValue(d.seq,h);return r.currentProgram=c,r.uniformsList=p,c}function ze(e,t){var n=Y.get(e);n.outputEncoding=t.outputEncoding,n.instancing=t.instancing,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}Ie.setAnimationLoop((function(e){Ae&&Ae(e)})),"undefined"!=typeof window&&Ie.setContext(window),this.setAnimationLoop=function(e){Ae=e,Me.setAnimationLoop(e),null===e?Ie.stop():Ie.start()},Me.addEventListener("sessionstart",Oe),Me.addEventListener("sessionend",Le),this.render=function(e,t){if(void 0===t||!0===t.isCamera){if(!0!==y){!0===e.autoUpdate&&e.updateMatrixWorld(),null===t.parent&&t.updateMatrixWorld(),!0===Me.enabled&&!0===Me.isPresenting&&(!0===Me.cameraAutoUpdate&&Me.updateCamera(t),t=Me.getCamera()),!0===e.isScene&&e.onBeforeRender(g,e,t,_),(f=se.get(e,v.length)).init(),v.push(f),U.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),F.setFromProjectionMatrix(U),z=this.localClippingEnabled,B=le.init(this.clippingPlanes,z,t),(d=oe.get(e,p.length)).init(),p.push(d),function e(t,n,r,i){if(!1===t.visible)return;if(t.layers.test(n.layers))if(t.isGroup)r=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(n);else if(t.isLight)f.pushLight(t),t.castShadow&&f.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||F.intersectsSprite(t)){i&&V.setFromMatrixPosition(t.matrixWorld).applyMatrix4(U);var a=ne.update(t),o=t.material;o.visible&&d.push(t,a,o,r,V.z,null)}}else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==J.render.frame&&(t.skeleton.update(),t.skeleton.frame=J.render.frame),!t.frustumCulled||F.intersectsObject(t))){i&&V.setFromMatrixPosition(t.matrixWorld).applyMatrix4(U);var s=ne.update(t),l=t.material;if(Array.isArray(l))for(var u=s.groups,c=0,h=u.length;c<h;c++){var p=u[c],m=l[p.materialIndex];m&&m.visible&&d.push(t,s,m,r,V.z,p)}else l.visible&&d.push(t,s,l,r,V.z,null)}for(var v=t.children,g=0,y=v.length;g<y;g++)e(v[g],n,r,i)}(e,t,0,g.sortObjects),d.finish(),!0===g.sortObjects&&d.sort(R,I),!0===B&&le.beginShadows();var n=f.state.shadowsArray;if(ue.render(n,e,t),!0===B&&le.endShadows(),!0===this.info.autoReset&&this.info.reset(),ce.render(d,e),f.setupLights(g.physicallyCorrectLights),t.isArrayCamera)for(var r=t.cameras,i=0,a=r.length;i<a;i++){var o=r[i];De(d,e,o,o.viewport)}else De(d,e,t);null!==_&&(K.updateMultisampleRenderTarget(_),K.updateRenderTargetMipmap(_)),!0===e.isScene&&e.onAfterRender(g,e,t),X.buffers.depth.setTest(!0),X.buffers.depth.setMask(!0),X.buffers.color.setMask(!0),X.setPolygonOffset(!1),me.resetDefaultState(),S=-1,C=null,v.pop(),f=v.length>0?v[v.length-1]:null,p.pop(),d=p.length>0?p[p.length-1]:null}}else console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")},this.getActiveCubeFace=function(){return x},this.getActiveMipmapLevel=function(){return b},this.getRenderTarget=function(){return _},this.setRenderTargetTextures=function(e,t,n){Y.get(e.texture).__webglTexture=t,Y.get(e.depthTexture).__webglTexture=n;var r=Y.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||e.useRenderToTexture&&(console.warn("render-to-texture extension was disabled because an external texture was provided"),e.useRenderToTexture=!1,e.useRenderbuffer=!0))},this.setRenderTargetFramebuffer=function(e,t){var n=Y.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_=e,x=t,b=n;var r=!0;if(e){var i=Y.get(e);void 0!==i.__useDefaultFramebuffer?(X.bindFramebuffer(36160,null),r=!1):void 0===i.__webglFramebuffer?K.setupRenderTarget(e):i.__hasExternalTextures&&K.rebindTextures(e,Y.get(e.texture).__webglTexture,Y.get(e.depthTexture).__webglTexture)}var a=null,o=!1,s=!1;if(e){var l=e.texture;(l.isDataTexture3D||l.isDataTexture2DArray)&&(s=!0);var u=Y.get(e).__webglFramebuffer;
1e.isWebGLCubeRenderTarget?(a=u[t],o=!0):a=e.useRenderbuffer?Y.get(e).__webglMultisampledFramebuffer:u,T.copy(e.viewport),k.copy(e.scissor),A=e.scissorTest}else T.copy(D).multiplyScalar(P).floor(),k.copy(j).multiplyScalar(P).floor(),A=N;var c=X.bindFramebuffer(36160,a);if(c&&q.drawBuffers&&r&&X.drawBuffers(e,a),X.viewport(T),X.scissor(k),X.setScissorTest(A),o){var h=Y.get(e.texture);ve.framebufferTexture2D(36160,36064,34069+t,h.__webglTexture,n)}else if(s){var d=Y.get(e.texture),f=t||0;ve.framebufferTextureLayer(36160,36064,d.__webglTexture,n||0,f)}S=-1},this.readRenderTargetPixels=function(e,t,n,r,i,a,o){if(e&&e.isWebGLRenderTarget){var s=Y.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==o&&(s=s[o]),s){X.bindFramebuffer(36160,s);try{var l=e.texture,u=l.format,c=l.type;if(u!==Fe&&pe.convert(u)!==ve.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");var h=c===Re&&(Z.has("EXT_color_buffer_half_float")||q.isWebGL2&&Z.has("EXT_color_buffer_float"));if(!(c===Ce||pe.convert(c)===ve.getParameter(35738)||c===Pe&&(q.isWebGL2||Z.has("OES_texture_float")||Z.has("WEBGL_color_buffer_float"))||h))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===ve.checkFramebufferStatus(36160)?t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ve.readPixels(t,n,r,i,pe.convert(u),pe.convert(c),a):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{var d=null!==_?Y.get(_).__webglFramebuffer:null;X.bindFramebuffer(36160,d)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!0===t.isFramebufferTexture){var r=Math.pow(2,-n),i=Math.floor(t.image.width*r),a=Math.floor(t.image.height*r);K.setTexture2D(t,0),ve.copyTexSubImage2D(3553,n,0,0,e.x,e.y,i,a),X.unbindTexture()}else console.error("THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.")},this.copyTextureToTexture=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=t.image.width,a=t.image.height,o=pe.convert(n.format),s=pe.convert(n.type);K.setTexture2D(n,0),ve.pixelStorei(37440,n.flipY),ve.pixelStorei(37441,n.premultiplyAlpha),ve.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?ve.texSubImage2D(3553,r,e.x,e.y,i,a,o,s,t.image.data):t.isCompressedTexture?ve.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,o,t.mipmaps[0].data):ve.texSubImage2D(3553,r,e.x,e.y,o,s,t.image),0===r&&n.generateMipmaps&&ve.generateMipmap(3553),X.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(g.isWebGL1Renderer)console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");else{var a,o=e.max.x-e.min.x+1,s=e.max.y-e.min.y+1,l=e.max.z-e.min.z+1,u=pe.convert(r.format),c=pe.convert(r.type);if(r.isDataTexture3D)K.setTexture3D(r,0),a=32879;else{if(!r.isDataTexture2DArray)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");K.setTexture2DArray(r,0),a=35866}ve.pixelStorei(37440,r.flipY),ve.pixelStorei(37441,r.premultiplyAlpha),ve.pixelStorei(3317,r.unpackAlignment);var h=ve.getParameter(3314),d=ve.getParameter(32878),f=ve.getParameter(3316),p=ve.getParameter(3315),m=ve.getParameter(32877),v=n.isCompressedTexture?n.mipmaps[0]:n.image;ve.pixelStorei(3314,v.width),ve.pixelStorei(32878,v.height),ve.pixelStorei(3316,e.min.x),ve.pixelStorei(3315,e.min.y),ve.pixelStorei(32877,e.min.z),n.isDataTexture||n.isDataTexture3D?ve.texSubImage3D(a,i,t.x,t.y,t.z,o,s,l,u,c,v.data):n.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),ve.compressedTexSubImage3D(a,i,t.x,t.y,t.z,o,s,l,u,v.data)):ve.texSubImage3D(a,i,t.x,t.y,t.z,o,s,l,u,c,v),ve.pixelStorei(3314,h),ve.pixelStorei(32878,d),ve.pixelStorei(3316,f),ve.pixelStorei(3315,p),ve.pixelStorei(32877,m),0===i&&r.generateMipmaps&&ve.generateMipmap(a),X.unbindTexture()}},this.initTexture=function(e){K.setTexture2D(e,0),X.unbindTexture()},this.resetState=function(){x=0,b=0,_=null,X.reset(),me.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Ms.prototype.isWebGLRenderer=!0,function(e){function t(){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(c.a)(t,e),t}(Ms).prototype.isWebGL1Renderer=!0;var Es=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25e-5;Object(f.a)(this,e),this.name="",this.color=new rn(t),this.density=n}return Object(p.a)(e,[{key:"clone",value:function(){return new e(this.color,this.density)}},{key:"toJSON",value:function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}]),e}();Es.prototype.isFogExp2=!0;var Ss=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;Object(f.a)(this,e),this.name="",this.color=new rn(t),this.near=n,this.far=r}return Object(p.a)(e,[{key:"clone",value:function(){return new e(this.color,this.near,this.far)}},{key:"toJSON",value:function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}]),e}();Ss.prototype.isFog=!0;var Cs=function(e){function t(){var e;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="Scene",e.background=null,e.environment=null,e.fog=null,e.overrideMaterial=null,e.autoUpdate=!0,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:Object(u.a)(e)})),e}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e,n){return s(Object(a.a)(t.prototype),"copy",this).call(this,e,n),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.autoUpdate=e.autoUpdate,this.matrixAutoUpdate=e.matrixAutoUpdate,this}},{key:"toJSON",value:function(e){var n=s(Object(a.a)(t.prototype),"toJSON",this).call(this,e);return null!==this.fog&&(n.object.fog=this.fog.toJSON()),n}}]),t}(mr);Cs.prototype.isScene=!0;var Ts=function(){function e(t,n){Object(f.a)(this,e),this.array=t,this.stride=n,this.count=void 0!==t?t.length/n:0,this.usage=Lt,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=zt()}return Object(p.a)(e,[{key:"onUploadCallback",value:function(){}},{key:"setUsage",value:function(e){return this.usage=e,this}},{key:"copy",value:function(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}},{key:"copyAt",value:function(e,t,n){e*=this.stride,n*=t.stride;for(var r=0,i=this.stride;r<i;r++)this.array[e+r]=t.array[n+r];return this}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}},{key:"clone",value:function(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=zt()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);var t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}},{key:"onUpload",value:function(e){return this.onUploadCallback=e,this}},{key:"toJSON",value:function(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=zt()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),e}();Ts.prototype.isInterleavedBuffer=!0;var ks=new fn,As=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object(f.a)(this,e),this.name="",this.data=t,this.itemSize=n,this.offset=r,this.normalized=!0===i}return Object(p.a)(e,[{key:"applyMatrix4",value:function(e){for(var t=0,n=this.data.count;t<n;t++)ks.x=this.getX(t),ks.y=this.getY(t),ks.z=this.getZ(t),ks.applyMatrix4(e),this.setXYZ(t,ks.x,ks.y,ks.z);return this}},{key:"applyNormalMatrix",value:function(e){for(var t=0,n=this.count;t<n;t++)ks.x=this.getX(t),ks.y=this.getY(t),ks.z=this.getZ(t),ks.applyNormalMatrix(e),this.setXYZ(t,ks.x,ks.y,ks.z);return this}},{key:"transformDirection",value:function(e){for(var t=0,n=this.count;t<n;t++)ks.x=this.getX(t),ks.y=this.getY(t),ks.z=this.getZ(t),ks.transformDirection(e),this.setXYZ(t,ks.x,ks.y,ks.z);return this}},{key:"setX",value:function(e,t){return this.data.array[e*this.data.stride+this.offset]=t,this}},{key:"setY",value:function(e,t){return this.data.array[e*this.data.stride+this.offset+1]=t,this}},{key:"setZ",value:function(e,t){return this.data.array[e*this.data.stride+this.offset+2]=t,this}},{key:"setW",value:function(e,t){return this.data.array[e*this.data.stride+this.offset+3]=t,this}},{key:"getX",value:function(e){return this.data.array[e*this.data.stride+this.offset]}},{key:"getY",value:function(e){return this.data.array[e*this.data.stride+this.offset+1]}},{key:"getZ",value:function(e){return this.data.array[e*this.data.stride+this.offset+2]}},{key:"getW",value:function(e){return this.data.array[e*this.data.stride+this.offset+3]}},{key:"setXY",value:function(e,t,n){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this}},{key:"setXYZ",value:function(e,t,n,r){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this}},{key:"setXYZW",value:function(e,t,n,r,i){return e=e*this.data.stride+this.offset,this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this.data.array[e+3]=i,this}},{key:"clone",value:function(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");for(var n=[],r=0;r<this.count;r++)for(var i=r*this.data.stride+this.offset,a=0;a<this.itemSize;a++)n.push(this.data.array[i+a]);
1return new Pr(new this.array.constructor(n),this.itemSize,this.normalized)}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new e(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}},{key:"toJSON",value:function(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");for(var t=[],n=0;n<this.count;n++)for(var r=n*this.data.stride+this.offset,i=0;i<this.itemSize;i++)t.push(this.data.array[r+i]);return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}},{key:"count",get:function(){return this.data.count}},{key:"array",get:function(){return this.data.array}},{key:"needsUpdate",set:function(e){this.data.needsUpdate=e}}]),e}();As.prototype.isInterleavedBufferAttribute=!0;var Os,Ls=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="SpriteMaterial",n.color=new rn(16777215),n.map=null,n.alphaMap=null,n.rotation=0,n.sizeAttenuation=!0,n.transparent=!0,n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this}}]),t}(kr);Ls.prototype.isSpriteMaterial=!0;var Ps=new fn,Rs=new fn,Is=new fn,Ds=new Zt,js=new Zt,Ns=new Gn,Fs=new fn,Bs=new fn,zs=new fn,Hs=new Zt,Us=new Zt,Vs=new Zt,Gs=function(e){function t(e){var n;if(Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="Sprite",void 0===Os){Os=new Vr;var r=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),i=new Ts(r,5);Os.setIndex([0,1,2,0,2,3]),Os.setAttribute("position",new As(i,3,0,!1)),Os.setAttribute("uv",new As(i,2,3,!1))}return n.geometry=Os,n.material=void 0!==e?e:new Ls,n.center=new Zt(.5,.5),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"raycast",value:function(e,t){null===e.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),Rs.setFromMatrixScale(this.matrixWorld),Ns.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),Is.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&Rs.multiplyScalar(-Is.z);var n,r,i=this.material.rotation;0!==i&&(r=Math.cos(i),n=Math.sin(i));var a=this.center;Ws(Fs.set(-.5,-.5,0),Is,a,Rs,n,r),Ws(Bs.set(.5,-.5,0),Is,a,Rs,n,r),Ws(zs.set(.5,.5,0),Is,a,Rs,n,r),Hs.set(0,0),Us.set(1,0),Vs.set(1,1);var o=e.ray.intersectTriangle(Fs,Bs,zs,!1,Ps);if(null!==o||(Ws(Bs.set(-.5,.5,0),Is,a,Rs,n,r),Us.set(0,1),null!==(o=e.ray.intersectTriangle(Fs,zs,Bs,!1,Ps)))){var s=e.ray.origin.distanceTo(Ps);s<e.near||s>e.far||t.push({distance:s,point:Ps.clone(),uv:Cr.getUV(Ps,Fs,Bs,zs,Hs,Us,Vs,new Zt),face:null,object:this})}}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}]),t}(mr);function Ws(e,t,n,r,i,a){Ds.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(js.x=a*Ds.x-i*Ds.y,js.y=i*Ds.x+a*Ds.y):js.copy(Ds),e.copy(t),e.x+=js.x,e.y+=js.y,e.applyMatrix4(Ns)}Gs.prototype.isSprite=!0;var Zs=new fn,qs=new un,Xs=new un,Js=new fn,Ys=new Gn,Ks=function(e){function t(e,n){var r;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).type="SkinnedMesh",r.bindMode="attached",r.bindMatrix=new Gn,r.bindMatrixInverse=new Gn,r}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this}},{key:"bind",value:function(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}},{key:"pose",value:function(){this.skeleton.pose()}},{key:"normalizeSkinWeights",value:function(){for(var e=new un,t=this.geometry.attributes.skinWeight,n=0,r=t.count;n<r;n++){e.x=t.getX(n),e.y=t.getY(n),e.z=t.getZ(n),e.w=t.getW(n);var i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),t.setXYZW(n,e.x,e.y,e.z,e.w)}}},{key:"updateMatrixWorld",value:function(e){s(Object(a.a)(t.prototype),"updateMatrixWorld",this).call(this,e),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}},{key:"boneTransform",value:function(e,t){var n=this.skeleton,r=this.geometry;qs.fromBufferAttribute(r.attributes.skinIndex,e),Xs.fromBufferAttribute(r.attributes.skinWeight,e),Zs.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(var i=0;i<4;i++){var a=Xs.getComponent(i);if(0!==a){var o=qs.getComponent(i);Ys.multiplyMatrices(n.bones[o].matrixWorld,n.boneInverses[o]),t.addScaledVector(Js.copy(Zs).applyMatrix4(Ys),a)}}
1return t.applyMatrix4(this.bindMatrixInverse)}}]),t}(si);Ks.prototype.isSkinnedMesh=!0;var Qs=function(e){function t(){var e;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="Bone",e}return Object(c.a)(t,e),t}(mr);Qs.prototype.isBone=!0;var $s=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,h=arguments.length>7?arguments[7]:void 0,d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:be,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:be,m=arguments.length>10?arguments[10]:void 0,v=arguments.length>11?arguments[11]:void 0;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this,null,u,c,h,d,p,o,s,m,v))).image={data:n,width:r,height:i},e.magFilter=d,e.minFilter=p,e.generateMipmaps=!1,e.flipY=!1,e.unpackAlignment=1,e}return Object(c.a)(t,e),t}(sn);$s.prototype.isDataTexture=!0;var el=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return Object(f.a)(this,t),"number"==typeof r&&(o=r,r=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),(i=Object(l.a)(this,Object(a.a)(t).call(this,e,n,r))).meshPerAttribute=o,i}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}]),t}(Pr);el.prototype.isInstancedBufferAttribute=!0;var tl=new Gn,nl=new Gn,rl=[],il=new si,al=function(e){function t(e,n,r){var i;return Object(f.a)(this,t),(i=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).instanceMatrix=new el(new Float32Array(16*r),16),i.instanceColor=null,i.count=r,i.frustumCulled=!1,i}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.instanceMatrix.copy(e.instanceMatrix),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,this}},{key:"getColorAt",value:function(e,t){t.fromArray(this.instanceColor.array,3*e)}},{key:"getMatrixAt",value:function(e,t){t.fromArray(this.instanceMatrix.array,16*e)}},{key:"raycast",value:function(e,t){var n=this.matrixWorld,r=this.count;if(il.geometry=this.geometry,il.material=this.material,void 0!==il.material)for(var i=0;i<r;i++){this.getMatrixAt(i,tl),nl.multiplyMatrices(n,tl),il.matrixWorld=nl,il.raycast(e,rl);for(var a=0,o=rl.length;a<o;a++){var s=rl[a];s.instanceId=i,s.object=this,t.push(s)}rl.length=0}}},{key:"setColorAt",value:function(e,t){null===this.instanceColor&&(this.instanceColor=new el(new Float32Array(3*this.instanceMatrix.count),3)),t.toArray(this.instanceColor.array,3*e)}},{key:"setMatrixAt",value:function(e,t){t.toArray(this.instanceMatrix.array,16*e)}},{key:"updateMorphTargets",value:function(){}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}}]),t}(si);al.prototype.isInstancedMesh=!0;var ol=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="LineBasicMaterial",n.color=new rn(16777215),n.linewidth=1,n.linecap="round",n.linejoin="round",n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this}}]),t}(kr);ol.prototype.isLineBasicMaterial=!0;var sl=new fn,ll=new fn,ul=new Gn,cl=new Vn,hl=new Dn,dl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Vr,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ol;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="Line",e.geometry=n,e.material=r,e.updateMorphTargets(),e}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.material=e.material,this.geometry=e.geometry,this}},{key:"computeLineDistances",value:function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[0],r=1,i=t.count;r<i;r++)sl.fromBufferAttribute(t,r-1),ll.fromBufferAttribute(t,r),n[r]=n[r-1],n[r]+=sl.distanceTo(ll);e.setAttribute("lineDistance",new Dr(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else e.isGeometry&&console.error("THREE.Line.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}},{key:"raycast",value:function(e,t){var n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),hl.copy(n.boundingSphere),hl.applyMatrix4(r),hl.radius+=i,!1!==e.ray.intersectsSphere(hl)){ul.copy(r).invert(),cl.copy(e.ray).applyMatrix4(ul);var o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,l=new fn,u=new fn,c=new fn,h=new fn,d=this.isLineSegments?2:1;if(n.isBufferGeometry){var f=n.index,p=n.attributes.position;if(null!==f)for(var m=Math.max(0,a.start),v=Math.min(f.count,a.start+a.count)-1;m<v;m+=d){var g=f.getX(m),y=f.getX(m+1);if(l.fromBufferAttribute(p,g),u.fromBufferAttribute(p,y),!(cl.distanceSqToSegment(l,u,h,c)>s)){h.applyMatrix4(this.matrixWorld);var x=e.ray.origin.distanceTo(h);x<e.near||x>e.far||t.push({distance:x,point:c.clone().applyMatrix4(this.matrixWorld),index:m,face:null,faceIndex:null,object:this})}}else for(var b=Math.max(0,a.start),_=Math.min(p.count,a.start+a.count)-1;b<_;b+=d){if(l.fromBufferAttribute(p,b),u.fromBufferAttribute(p,b+1),!(cl.distanceSqToSegment(l,u,h,c)>s)){h.applyMatrix4(this.matrixWorld);var w=e.ray.origin.distanceTo(h);w<e.near||w>e.far||t.push({distance:w,point:c.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}},{key:"updateMorphTargets",value:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i<a;i++){var o=r[i].name||String(i);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=i}}}}else{var s=e.morphTargets;void 0!==s&&s.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}]),t}(mr);dl.prototype.isLine=!0;var fl=new fn,pl=new fn,ml=function(e){function t(e,n){var r;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).type="LineSegments",r}return Object(c.a)(t,e),Object(p.a)(t,[{key:"computeLineDistances",value:function(){var e=this.geometry;if(e.isBufferGeometry)if(null===e.index){for(var t=e.attributes.position,n=[],r=0,i=t.count;r<i;r+=2)fl.fromBufferAttribute(t,r),pl.fromBufferAttribute(t,r+1),n[r]=0===r?0:n[r-1],n[r+1]=n[r]+fl.distanceTo(pl);e.setAttribute("lineDistance",new Dr(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else e.isGeometry&&console.error("THREE.LineSegments.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}}]),t}(dl);ml.prototype.isLineSegments=!0;var vl=function(e){function t(e,n){var r;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).type="LineLoop",r}return Object(c.a)(t,e),t}(dl);vl.prototype.isLineLoop=!0;var gl=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="PointsMaterial",n.color=new rn(16777215),n.map=null,n.alphaMap=null,n.size=1,n.sizeAttenuation=!0,n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this}}]),t}(kr);gl.prototype.isPointsMaterial=!0;var yl=new Gn,xl=new Vn,bl=new Dn,_l=new fn,wl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Vr,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new gl;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="Points",e.geometry=n,e.material=r,e.updateMorphTargets(),e}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.material=e.material,this.geometry=e.geometry,this}},{key:"raycast",value:function(e,t){var n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),bl.copy(n.boundingSphere),bl.applyMatrix4(r),bl.radius+=i,!1!==e.ray.intersectsSphere(bl)){yl.copy(r).invert(),xl.copy(e.ray).applyMatrix4(yl);var o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o;if(n.isBufferGeometry){var l=n.index,u=n.attributes.position;if(null!==l)for(var c=Math.max(0,a.start),h=Math.min(l.count,a.start+a.count);c<h;c++){var d=l.getX(c);_l.fromBufferAttribute(u,d),Ml(_l,d,s,r,e,t,this)}else for(var f=Math.max(0,a.start),p=Math.min(u.count,a.start+a.count);f<p;f++)_l.fromBufferAttribute(u,f),Ml(_l,f,s,r,e,t,this)}else console.error("THREE.Points.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}},{key:"updateMorphTargets",value:function(){var e=this.geometry;if(e.isBufferGeometry){var t=e.morphAttributes,n=Object.keys(t);if(n.length>0){var r=t[n[0]];if(void 0!==r){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var i=0,a=r.length;i<a;i++){var o=r[i].name||String(i);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=i}}}}else{var s=e.morphTargets;void 0!==s&&s.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}]),t}(mr);function Ml(e,t,n,r,i,a,o){var s=xl.distanceSqToPoint(e);if(s<n){var l=new fn;xl.closestPointToPoint(e,l),l.applyMatrix4(r);var u=i.ray.origin.distanceTo(l);if(u<i.near||u>i.far)return;a.push({distance:u,distanceToRay:Math.sqrt(s),point:l,index:t,face:null,object:o})}}wl.prototype.isPoints=!0,function(e){function t(e,n,r,i,o,s,c,h,d){var p;Object(f.a)(this,t),(p=Object(l.a)(this,Object(a.a)(t).call(this,e,n,r,i,o,s,c,h,d))).minFilter=void 0!==s?s:Me,p.magFilter=void 0!==o?o:Me,p.generateMipmaps=!1;var m=Object(u.a)(p);return"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback((function t(){m.needsUpdate=!0,e.requestVideoFrameCallback(t)})),p}return Object(c.a)(t,e),Object(p.a)(t,[{key:"clone",value:function(){return new this.constructor(this.image).copy(this)}},{key:"update",value:function(){var e=this.image;!1==="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}]),t}(sn).prototype.isVideoTexture=!0,function(e){function t(e,n,r){var i;return Object(f.a)(this,t),(i=Object(l.a)(this,Object(a.a)(t).call(this,{width:e,height:n}))).format=r,i.magFilter=be,i.minFilter=be,i.generateMipmaps=!1,i.needsUpdate=!0,i}return Object(c.a)(t,e),t}(sn).prototype.isFramebufferTexture=!0;var El=function(e){function t(e,n,r,i,o,s,u,c,h,d,p,m){var v;return Object(f.a)(this,t),(v=Object(l.a)(this,Object(a.a)(t).call(this,null,s,u,c,h,d,i,o,p,m))).image={width:n,height:r},v.mipmaps=e,v.flipY=!1,v.generateMipmaps=!1,v}return Object(c.a)(t,e),t}(sn);El.prototype.isCompressedTexture=!0,function(e){function t(e,n,r,i,o,s,u,c,h){var d;return Object(f.a)(this,t),(d=Object(l.a)(this,Object(a.a)(t).call(this,e,n,r,i,o,s,u,c,h))).needsUpdate=!0,d}return Object(c.a)(t,e),t}(sn).prototype.isCanvasTexture=!0;var Sl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="PolyhedronGeometry",e.parameters={vertices:n,indices:r,radius:i,detail:o};var s=[],u=[];function c(e,t,n,r){for(var i=r+1,a=[],o=0;o<=i;o++){a[o]=[];for(var s=e.clone().lerp(n,o/i),l=t.clone().lerp(n,o/i),u=i-o,c=0;c<=u;c++)a[o][c]=0===c&&o===i?s:s.clone().lerp(l,c/u)}for(var d=0;d<i;d++)for(var f=0;f<2*(i-d)-1;f++){var p=Math.floor(f/2);f%2==0?(h(a[d][p+1]),h(a[d+1][p]),h(a[d][p])):(h(a[d][p+1]),h(a[d+1][p+1]),h(a[d+1][p]))}}function h(e){s.push(e.x,e.y,e.z)}function d(e,t){var r=3*e;t.x=n[r+0],t.y=n[r+1],t.z=n[r+2]}function p(e,t,n,r){r<0&&1===e.x&&(u[t]=e.x-1),0===n.x&&0===n.z&&(u[t]=r/2/Math.PI+.5)}function m(e){return Math.atan2(e.z,-e.x)}return function(e){for(var t=new fn,n=new fn,i=new fn,a=0;a<r.length;a+=3)d(r[a+0],t),d(r[a+1],n),d(r[a+2],i),c(t,n,i,e)}(o),function(e){for(var t=new fn,n=0;n<s.length;n+=3)t.x=s[n+0],t.y=s[n+1],t.z=s[n+2],t.normalize().multiplyScalar(e),s[n+0]=t.x,s[n+1]=t.y,s[n+2]=t.z}(i),function(){for(var e=new fn,t=0;t<s.length;t+=3){e.x=s[t+0],e.y=s[t+1],e.z=s[t+2];var n=m(e)/2/Math.PI+.5,r=(i=e,Math.atan2(-i.y,Math.sqrt(i.x*i.x+i.z*i.z))/Math.PI+.5);u.push(n,1-r)}var i;(function(){for(var e=new fn,t=new fn,n=new fn,r=new fn,i=new Zt,a=new Zt,o=new Zt,l=0,c=0;l<s.length;l+=9,c+=6){e.set(s[l+0],s[l+1],s[l+2]),t.set(s[l+3],s[l+4],s[l+5]),n.set(s[l+6],s[l+7],s[l+8]),i.set(u[c+0],u[c+1]),a.set(u[c+2],u[c+3]),o.set(u[c+4],u[c+5]),r.copy(e).add(t).add(n).divideScalar(3);var h=m(r);p(i,c+0,e,h),p(a,c+2,t,h),p(o,c+4,n,h)}})(),function(){for(var e=0;e<u.length;e+=6){var t=u[e+0],n=u[e+2],r=u[e+4],i=Math.max(t,n,r),a=Math.min(t,n,r);i>
1.9&&a<.1&&(t<.2&&(u[e+0]+=1),n<.2&&(u[e+2]+=1),r<.2&&(u[e+4]+=1))}}()}(),e.setAttribute("position",new Dr(s,3)),e.setAttribute("normal",new Dr(s.slice(),3)),e.setAttribute("uv",new Dr(u,2)),0===o?e.computeVertexNormals():e.normalizeNormals(),e}return Object(c.a)(t,e),Object(p.a)(t,null,[{key:"fromJSON",value:function(e){return new t(e.vertices,e.indices,e.radius,e.details)}}]),t}(Vr),Cl=(new fn,new fn,new fn,new Cr,function(){function e(){Object(f.a)(this,e),this.type="Curve",this.arcLengthDivisions=200}return Object(p.a)(e,[{key:"getPoint",value:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}},{key:"getPointAt",value:function(e,t){var n=this.getUtoTmapping(e);return this.getPoint(n,t)}},{key:"getPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}},{key:"getSpacedPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}},{key:"getLength",value:function(){var e=this.getLengths();return e[e.length-1]}},{key:"getLengths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var t,n=[],r=this.getPoint(0),i=0;n.push(0);for(var a=1;a<=e;a++)i+=(t=this.getPoint(a/e)).distanceTo(r),n.push(i),r=t;return this.cacheArcLengths=n,n}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.getLengths()}},{key:"getUtoTmapping",value:function(e,t){var n,r=this.getLengths(),i=0,a=r.length;n=t||e*r[a-1];for(var o,s=0,l=a-1;s<=l;)if((o=r[i=Math.floor(s+(l-s)/2)]-n)<0)s=i+1;else{if(!(o>0)){l=i;break}l=i-1}if(r[i=l]===n)return i/(a-1);var u=r[i];return(i+(n-u)/(r[i+1]-u))/(a-1)}},{key:"getTangent",value:function(e,t){var n=e-1e-4,r=e+1e-4;n<0&&(n=0),r>1&&(r=1);var i=this.getPoint(n),a=this.getPoint(r),o=t||(i.isVector2?new Zt:new fn);return o.copy(a).sub(i).normalize(),o}},{key:"getTangentAt",value:function(e,t){var n=this.getUtoTmapping(e);return this.getTangent(n,t)}},{key:"computeFrenetFrames",value:function(e,t){for(var n=new fn,r=[],i=[],a=[],o=new fn,s=new Gn,l=0;l<=e;l++){var u=l/e;r[l]=this.getTangentAt(u,new fn)}i[0]=new fn,a[0]=new fn;var c=Number.MAX_VALUE,h=Math.abs(r[0].x),d=Math.abs(r[0].y),f=Math.abs(r[0].z);h<=c&&(c=h,n.set(1,0,0)),d<=c&&(c=d,n.set(0,1,0)),f<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(var p=1;p<=e;p++){if(i[p]=i[p-1].clone(),a[p]=a[p-1].clone(),o.crossVectors(r[p-1],r[p]),o.length()>Number.EPSILON){o.normalize();var m=Math.acos(Ht(r[p-1].dot(r[p]),-1,1));i[p].applyMatrix4(s.makeRotationAxis(o,m))}a[p].crossVectors(r[p],i[p])}if(!0===t){var v=Math.acos(Ht(i[0].dot(i[e]),-1,1));v/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(v=-v);for(var g=1;g<=e;g++)i[g].applyMatrix4(s.makeRotationAxis(r[g],v*g)),a[g].crossVectors(r[g],i[g])}return{tangents:r,normals:i,binormals:a}}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},{key:"toJSON",value:function(){var e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}},{key:"fromJSON",value:function(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}]),e}()),Tl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6],h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="EllipseCurve",e.aX=n,e.aY=r,e.xRadius=i,e.yRa
1dius=o,e.aStartAngle=s,e.aEndAngle=u,e.aClockwise=c,e.aRotation=h,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e,t){for(var n=t||new Zt,r=2*Math.PI,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<Number.EPSILON;i<0;)i+=r;for(;i>r;)i-=r;i<Number.EPSILON&&(i=a?0:r),!0!==this.aClockwise||a||(i===r?i=-r:i-=r);var o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),l=this.aY+this.yRadius*Math.sin(o);if(0!==this.aRotation){var u=Math.cos(this.aRotation),c=Math.sin(this.aRotation),h=s-this.aX,d=l-this.aY;s=h*u-d*c+this.aX,l=h*c+d*u+this.aY}return n.set(s,l)}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}},{key:"fromJSON",value:function(e){return s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}]),t}(Cl);Tl.prototype.isEllipseCurve=!0;var kl=function(e){function t(e,n,r,i,o,s){var u;return Object(f.a)(this,t),(u=Object(l.a)(this,Object(a.a)(t).call(this,e,n,r,r,i,o,s))).type="ArcCurve",u}return Object(c.a)(t,e),t}(Tl);function Al(){var e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){var l=(t-e)/a-(n-e)/(a+o)+(n-t)/o,u=(n-t)/o-(r-t)/(o+s)+(r-n)/s;i(t,n,l*=o,u*=o)},calc:function(i){var a=i*i;return e+t*i+n*a+r*(a*i)}}}kl.prototype.isArcCurve=!0;var Ol=new fn,Ll=new Al,Pl=new Al,Rl=new Al,Il=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="CatmullRomCurve3",e.points=n,e.closed=r,e.curveType=i,e.tension=o,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn,i=r,a=this.points,o=a.length,s=(o-(this.closed?0:1))*e,l=Math.floor(s),u=s-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/o)+1)*o:0===u&&l===o-1&&(l=o-2,u=1),this.closed||l>0?t=a[(l-1)%o]:(Ol.subVectors(a[0],a[1]).add(a[0]),t=Ol);var c=a[l%o],h=a[(l+1)%o];if(this.closed||l+2<o?n=a[(l+2)%o]:(Ol.subVectors(a[o-1],a[o-2]).add(a[o-1]),n=Ol),"centripetal"===this.curveType||"chordal"===this.curveType){var d="chordal"===this.curveType?.5:.25,f=Math.pow(t.distanceToSquared(c),d),p=Math.pow(c.distanceToSquared(h),d),m=Math.pow(h.distanceToSquared(n),d);p<1e-4&&(p=1),f<1e-4&&(f=p),m<1e-4&&(m=p),Ll.initNonuniformCatmullRom(t.x,c.x,h.x,n.x,f,p,m),Pl.initNonuniformCatmullRom(t.y,c.y,h.y,n.y,f,p,m),Rl.initNonuniformCatmullRom(t.z,c.z,h.z,n.z,f,p,m)}else"catmullrom"===this.curveType&&(Ll.initCatmullRom(t.x,c.x,h.x,n.x,this.tension),Pl.initCatmullRom(t.y,c.y,h.y,n.y,this.tension),Rl.initCatmullRom(t.z,c.z,h.z,n.z,this.tension));return i.set(Ll.calc(u),Pl.calc(u),Rl.calc(u)),i}},{key:"copy",value:function(e){s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.points=[];for(var n=0,r=e.points.length;n<r;n++){var i=e.points[n];this.points.push(i.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);e.points=[];for(var n=0,r=this.points.length;n<r;n++){var i=this.points[n];e.points.push(i.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}},{key:"fromJSON",value:function(e){s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.points=[];for(var n=0,r=e.points.length;n<r;n++){var i=e.points[n];this.points.push((new fn).fromArray(i))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}]),t}(Cl);function Dl(e,t,n,r,i){var a=.5*(r-t),o=.5*(i-n),s=e*e;return(2*n-2*r+a+o)*(e*s)+(-3*n+3*r-2*a-o)*s+a*e+n}function jl(e,t,n,r){return function(e,t){var n=1-e;return n*n*t}(e,t)+function(e,t){return 2*(1-e)*e*t}(e,n)+function(e,t){return e*e*t}(e,r)}function Nl(e,t,n,r,i){return function(e,t){var n=1-e;return n*n*n*t}(e,t)+function(e,t){var n=1-e;return 3*n*n*e*t}(e,n)+function(e,t){return 3*(1-e)*e*e*t}(e,r)+function(e,t){return e*e*e*t}(e,i)}Il.prototype.isCatmullRomCurve3=!0;var Fl=function(e){function t(){var e,n=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:new Zt,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Zt,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Zt,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Zt;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="CubicBezierCurve",e.v0=n,e.v1=r,e.v2=i,e.v3=o,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Zt,n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(Nl(e,r.x,i.x,a.x,o.x),Nl(e,r.y,i.y,a.y,o.y)),n}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}]),t}(Cl);Fl.prototype.isCubicBezierCurve=!0;var Bl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new fn,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new fn;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="CubicBezierCurve3",e.v0=n,e.v1=r,e.v2=i,e.v3=o,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn,n=t,r=this.v0,i=this.v1,a=this.v2,o=this.v3;return n.set(Nl(e,r.x,i.x,a.x,o.x),Nl(e,r.y,i.y,a.y,o.y),Nl(e,r.z,i.z,a.z,o.z)),n}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}},{key:"fromJSON",value:function(e){return s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}]),t}(Cl);Bl.prototype.isCubicBezierCurve3=!0;var zl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Zt,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Zt;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="LineCurve",e.v1=n,e.v2=r,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Zt,n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"getTangent",value:function(e,t){var n=t||new Zt;return n.copy(this.v2).sub(this.v1).normalize(),n}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),t}(Cl);zl.prototype.isLineCurve=!0;var Hl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="LineCurve3",e.isLineCurve3=!0,e.v1=n,e.v2=r,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn,n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}},{key:"getPointAt",value:function(e,t){return this.getPoint(e,t)}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),t}(Cl),Ul=function(e){function t(){var e,n=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:new Zt,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Zt,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Zt;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="QuadraticBezierCurve",e.v0=n,e.v1=r,e.v2=i,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Zt,n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(jl(e,r.x,i.x,a.x),jl(e,r.y,i.y,a.y)),n}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),t}(Cl);Ul.prototype.isQuadraticBezierCurve=!0;var Vl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new fn;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="QuadraticBezierCurve3",e.v0=n,e.v1=r,e.v2=i,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn,n=t,r=this.v0,i=this.v1,a=this.v2;return n.set(jl(e,r.x,i.x,a.x),jl(e,r.y,i.y,a.y),jl(e,r.z,i.z,a.z)),n}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}},{key:"fromJSON",value:function(e){return s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}]),t}(Cl);Vl.prototype.isQuadraticBezierCurve3=!0;var Gl=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="SplineCurve",e.points=n,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Zt,n=t,r=this.points,i=(r.length-1)*e,a=Math.floor(i),o=i-a,s=r[0===a?a:a-1],l=r[a],u=r[a>r.length-2?r.length-1:a+1],c=r[a>r.length-3?r.length-1:a+2];return n.set(Dl(o,s.x,l.x,u.x,c.x),Dl(o,s.y,l.y,u.y,c.y)),n}},{key:"copy",value:function(e){s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.points=[];for(var n=0,r=e.points.length;n<r;n++){var i=e.points[n];this.points.push(i.clone())}return this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);e.points=[];for(var n=0,r=this.points.length;n<r;n++){var i=this.points[n];e.points.push(i.toArray())}return e}},{key:"fromJSON",value:function(e){s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.points=[];for(var n=0,r=e.points.length;n<r;n++){var i=e.points[n];this.points.push((new Zt).fromArray(i))}return this}}]),t}(Cl);Gl.prototype.isSplineCurve=!0;var Wl=Object.freeze({__proto__:null,ArcCurve:kl,CatmullRomCurve3:Il,CubicBezierCurve:Fl,CubicBezierCurve3:Bl,EllipseCurve:Tl,LineCurve:zl,LineCurve3:Hl,QuadraticBezierCurve:Ul,QuadraticBezierCurve3:Vl,SplineCurve:Gl}),Zl=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="Path",n.currentPoint=new Zt,e&&n.setFromPoints(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"setFromPoints",value:function(e){this.moveTo(e[0].x,e[0].y);for(var t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}},{key:"moveTo",value:function(e,t){return this.currentPoint.set(e,t),this}},{key:"lineTo",value:function(e,t){var n=new zl(this.currentPoint.clone(),new Zt(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}},{key:"quadraticCurveTo",value:function(e,t,n,r){var i=new Ul(this.currentPoint.clone(),new Zt(e,t),new Zt(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this}},{key:"bezierCurveTo",value:function(e,t,n,r,i,a){var o=new Fl(this.currentPoint.clone(),new Zt(e,t),new Zt(n,r),new Zt(i,a));return this.curves.push(o),this.currentPoint.set(i,a),this}},{key:"splineThru",value:function(e){var t=[this.currentPoint.clone()].concat(e),n=new Gl
1(t);return this.curves.push(n),this.currentPoint.copy(e[e.length-1]),this}},{key:"arc",value:function(e,t,n,r,i,a){var o=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(e+o,t+s,n,r,i,a),this}},{key:"absarc",value:function(e,t,n,r,i,a){return this.absellipse(e,t,n,n,r,i,a),this}},{key:"ellipse",value:function(e,t,n,r,i,a,o,s){var l=this.currentPoint.x,u=this.currentPoint.y;return this.absellipse(e+l,t+u,n,r,i,a,o,s),this}},{key:"absellipse",value:function(e,t,n,r,i,a,o,s){var l=new Tl(e,t,n,r,i,a,o,s);if(this.curves.length>0){var u=l.getPoint(0);u.equals(this.currentPoint)||this.lineTo(u.x,u.y)}this.curves.push(l);var c=l.getPoint(1);return this.currentPoint.copy(c),this}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.currentPoint.copy(e.currentPoint),this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return e.currentPoint=this.currentPoint.toArray(),e}},{key:"fromJSON",value:function(e){return s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.currentPoint.fromArray(e.currentPoint),this}}]),t}(function(e){function t(){var e;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="CurvePath",e.curves=[],e.autoClose=!1,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"add",value:function(e){this.curves.push(e)}},{key:"closePath",value:function(){var e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new zl(t,e))}},{key:"getPoint",value:function(e,t){for(var n=e*this.getLength(),r=this.getCurveLengths(),i=0;i<r.length;){if(r[i]>=n){var a=r[i]-n,o=this.curves[i],s=o.getLength(),l=0===s?0:1-a/s;return o.getPointAt(l,t)}i++}return null}},{key:"getLength",value:function(){var e=this.getCurveLengths();return e[e.length-1]}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}},{key:"getCurveLengths",value:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var e=[],t=0,n=0,r=this.curves.length;n<r;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}},{key:"getSpacedPoints",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,t=[],n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}},{key:"getPoints",value:function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,n=[],r=0,i=this.curves;r<i.length;r++)for(var a=i[r],o=a&&a.isEllipseCurve?2*t:a&&(a.isLineCurve||a.isLineCurve3)?1:a&&a.isSplineCurve?t*a.points.length:t,s=a.getPoints(o),l=0;l<s.length;l++){var u=s[l];e&&e.equals(u)||(n.push(u),e=u)}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}},{key:"copy",value:function(e){s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.curves=[];for(var n=0,r=e.curves.length;n<r;n++){var i=e.curves[n];this.curves.push(i.clone())}return this.autoClose=e.autoClose,this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);e.autoClose=this.autoClose,e.curves=[];for(var n=0,r=this.curves.length;n<r;n++){var i=this.curves[n];e.curves.push(i.toJSON())}return e}},{key:"fromJSON",value:function(e){s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.autoClose=e.autoClose,this.curves=[];for(var n=0,r=e.curves.length;n<r;n++){var i=e.curves[n];this.curves.push((new Wl[i.type]).fromJSON(i))}return this}}]),t}(Cl)),ql=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this,e))).uuid=zt(),n.type="Shape",n.holes=[],n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getPointsHoles",value:function(e){for(var t=[],n=0,r=this.holes.length;n<r;n++)t[n]=this.holes[n].getPoints(e);return t}},{key:"extractPoints",value:function(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}},{key:"copy",value:function(e){s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.holes=[];for(var n=0,r=e.holes.length;n<r;n++){var i=e.holes[n];this.holes.push(i.clone())}return this}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);e.uuid=this.uuid,e.holes=[];for(var n=0,r=this.holes.length;n<r;n++){var i=this.holes[n];e.holes.push(i.toJSON())}return e}},{key:"fromJSON",value:function(e){s(Object(a.a)(t.prototype),"fromJSON",this).call(this,e),this.uuid=e.uuid,this.holes=[];for(var n=0,r=e.holes.length;n<r;n++){var i=e.holes[n];this.holes.push((new Zl).fromJSON(i))}return this}}]),t}(Zl),Xl=function(e,t){var n,r,i,a,o,s,l,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,c=t&&t.length,h=c?t[0]*u:e.length,d=Jl(e,0,h,u,!0),f=[];if(!d||d.next===d.prev)return f;if(c&&(d=nu(e,t,d,u)),e.length>80*u){n=i=e[0],r=a=e[1];for(var p=u;p<h;p+=u)(o=e[p])<n&&(n=o),(s=e[p+1])<r&&(r=s),o>i&&(i=o),s>a&&(a=s);l=0!==(l=Math.max(i-n,a-r))?1/l:0}return Kl(d,f,u,n,r,l),f};function Jl(e,t,n,r,i){var a,o;if(i===function(e,t,n,r){for(var i=0,a=t,o=n-r;a<n;a+=r)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}(e,t,n,r)>0)for(a=t;a<n;
vendor: 2,836 bytes, line 1
1a+=r)o=gu(a,e[a],e[a+1],o);else for(a=n-r;a>=t;a-=r)o=gu(a,e[a],e[a+1],o);return o&&hu(o,o.next)&&(yu(o),o=o.next),o}function Yl(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!hu(r,r.next)&&0!==cu(r.prev,r,r.next))r=r.next;else{if(yu(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function Kl(e,t,n,r,i,a,o){if(e){!o&&a&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=ou(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,a,o,s,l,u=1;do{for(n=e,e=null,a=null,o=0;n;){for(o++,r=n,s=0,t=0;t<u&&(s++,r=r.nextZ);t++);for(l=u;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;n=r}a.nextZ=null,u*=2}while(o>1)}(i)}(e,r,i,a);for(var s,l,u=e;e.prev!==e.next;)if(s=e.prev,l=e.next,a?$l(e,r,i,a):Ql(e))t.push(s.i/n),t.push(e.i/n),t.push(l.i/n),yu(e),e=l.next,u=l.next;else if((e=l)===u){o?1===o?Kl(e=eu(Yl(e),t,n),t,n,r,i,a,2):2===o&&tu(e,t,n,r,i,a):Kl(Yl(e),t,n,r,i,a,1);break}}}function Ql(e){var t=e.prev,n=e,r=e.next;if(cu(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(lu(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&cu(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function $l(e,t,n,r){var i=e.prev,a=e,o=e.next;if(cu(i,a,o)>=0)return!1;for(var s=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,l=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,u=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,c=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,h=ou(s,l,t,n,r),d=ou(u,c,t,n,r),f=e.prevZ,p=e.nextZ;f&&f.z>=h&&p&&p.z<=d;){if(f!==e.prev&&f!==e.next&&lu(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&&cu(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,p!==e.prev&&p!==e.next&&lu(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&cu(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;f&&f.z>=h;){if(f!==e.prev&&f!==e.next&&lu(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&&cu(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;p&&p.z<=d;){if(p!==e.prev&&p!==e.next&&lu(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&&cu(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function eu(e,t,n){var r=e;do{var i=r.prev,a=r.next.next;!hu(i,a)&&du(i,r,r.next,a)&&mu(i,a)&&mu(a,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(a.i/n),yu(r),yu(r.next),r=e=a),r=r.next}while(r!==e);return Yl(r)}function tu(e,t,n,r,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&uu(o,s)){var l=vu(o,s);return o=Yl(o,o.next),l=Yl(l,l.next),Kl(o,t,n,r,i,a),void Kl(l,t,n,r,i,a)}s=s.next}o=o.next}while(o!==e)}function nu(e,t,n,r){var i,a,o,s=[];for(i=0,a=t.length;i<a;i++)(o=Jl(e,t[i]*r,i<a-1?t[i+1]*r:e.length,r,!1))===o.next&&(o.steiner=!0),s.push(su(o));for(s.sort(ru),i=0;i<s.length;i++)iu(s[i],n),n=Yl(n,n.next);return n}function ru(e,t){return e.x-t.x}function iu(e,t){if(t=function(e,t){var n,r=t,i=e.x,a=e.y,o=-1/0;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y
1);if(s<=i&&s>o){if(o=s,s===i){if(a===r.y)return r;if(a===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===o)return n;var l,u=n,c=n.x,h=n.y,d=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&lu(a<h?i:o,a,c,h,a<h?o:i,a,r.x,r.y)&&(l=Math.abs(a-r.y)/(i-r.x),mu(r,e)&&(l<d||l===d&&(r.x>n.x||r.x===n.x&&au(n,r)))&&(n=r,d=l)),r=r.next}while(r!==u);return n}(e,t)){var n=vu(t,e);Yl(t,t.next),Yl(n,n.next)}}function au(e,t){return cu(e.prev,e,t.prev)<0&&cu(t.next,e,e.next)<0}function ou(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function su(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function lu(e,t,n,r,i,a,o,s){return(i-o)*(t-s)-(e-o)*(a-s)>=0&&(e-o)*(r-s)-(n-o)*(t-s)>=0&&(n-o)*(a-s)-(i-o)*(r-s)>=0}function uu(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&du(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(mu(e,t)&&mu(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(cu(e.prev,e,t.prev)||cu(e,t.prev,t))||hu(e,t)&&cu(e.prev,e,e.next)>0&&cu(t.prev,t,t.next)>0)}function cu(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function hu(e,t){return e.x===t.x&&e.y===t.y}function du(e,t,n,r){var i=pu(cu(e,t,n)),a=pu(cu(e,t,r)),o=pu(cu(n,r,e)),s=pu(cu(n,r,t));return i!==a&&o!==s||(!(0!==i||!fu(e,n,t))||(!(0!==a||!fu(e,r,t))||(!(0!==o||!fu(n,e,r))||!(0!==s||!fu(n,t,r)))))}function fu(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function pu(e){return e>0?1:e<0?-1:0}function mu(e,t){return cu(e.prev,e,e.next)<0?cu(e,t,e.next)>=0&&cu(e,e.prev,t)>=0:cu(e,t,e.prev)<0||cu(e,e.next,t)<0}function vu(e,t){var n=new xu(e.i,e.x,e.y),r=new xu(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function gu(e,t,n,r){var i=new xu(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function yu(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function xu(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}var bu=function(){function e(){Object(f.a)(this,e)}return Object(p.a)(e,null,[{key:"area",value:function(e){for(var t=e.length,n=0,r=t-1,i=0;i<t;r=i++)n+=e[r].x*e[i].y-e[i].x*e[r].y;return.5*n}},{key:"isClockWise",value:function(t){return e.area(t)<0}},{key:"triangulateShape",value:function(e,t){var n=[],r=[],i=[];_u(e),wu(n,e);var a=e.length;t.forEach(_u);for(var o=0;o<t.length;o++)r.push(a),a+=t[o].length,wu(n,t[o]);for(var s=Xl(n,r),l=0;l<s.length;l+=3)i.push(s.slice(l,l+3));return i}}]),e}();function _u(e){var t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function wu(e,t){for(var n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}var Mu=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ql([new Zt(.5,.5),new Zt(-.5,.5),new Zt(-.5,-.5),new Zt(.5,-.5)]),r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="ExtrudeGeometry",e.parameters={shapes:n,options:r},n=Array.isArray(n)?n:[n];for(var i=Object(u.a)(e),o=[],s=[],c=0,h=n.length;c<h;c++){d(n[c])}function d(e){var t=[],n=void 0!==r.curveSegments?r.curveSegments:12,a=void 0!==r.steps?r.steps:1,l=void 0!==r.depth?r.depth:1,u=void 0===r.bevelEnabled||r.bevelEnabled,c=void 0!==r.bevelThickness?r.bevelThickness:.2,h=void 0!==r.bevelSize?r.bevelSize:c-.1,d=void 0!==r.bevelOffset?r.bevelOffset:0,f=void 0!==r.bevelSegments?r.bevelSegments:3,p=r.extrudePath,m=void 0!==r.UVGenerator?r.UVGenerator:Eu;void 0!==r.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),l=r.amount);var v,g,y,x,b,_=!1;
1p&&(v=p.getSpacedPoints(a),_=!0,u=!1,g=p.computeFrenetFrames(a,!1),y=new fn,x=new fn,b=new fn),u||(f=0,c=0,h=0,d=0);var w=e.extractPoints(n),M=w.shape,E=w.holes;if(!bu.isClockWise(M)){M=M.reverse();for(var S=0,C=E.length;S<C;S++){var T=E[S];bu.isClockWise(T)&&(E[S]=T.reverse())}}for(var k=bu.triangulateShape(M,E),A=M,O=0,L=E.length;O<L;O++){var P=E[O];M=M.concat(P)}function R(e,t,n){return t||console.error("THREE.ExtrudeGeometry: vec does not exist"),t.clone().multiplyScalar(n).add(e)}var I=M.length,D=k.length;function j(e,t,n){var r,i,a,o=e.x-t.x,s=e.y-t.y,l=n.x-e.x,u=n.y-e.y,c=o*o+s*s,h=o*u-s*l;if(Math.abs(h)>Number.EPSILON){var d=Math.sqrt(c),f=Math.sqrt(l*l+u*u),p=t.x-s/d,m=t.y+o/d,v=((n.x-u/f-p)*u-(n.y+l/f-m)*l)/(o*u-s*l),g=(r=p+o*v-e.x)*r+(i=m+s*v-e.y)*i;if(g<=2)return new Zt(r,i);a=Math.sqrt(g/2)}else{var y=!1;o>Number.EPSILON?l>Number.EPSILON&&(y=!0):o<-Number.EPSILON?l<-Number.EPSILON&&(y=!0):Math.sign(s)===Math.sign(u)&&(y=!0),y?(r=-s,i=o,a=Math.sqrt(c)):(r=o,i=s,a=Math.sqrt(c/2))}return new Zt(r/a,i/a)}for(var N=[],F=0,B=A.length,z=B-1,H=F+1;F<B;F++,z++,H++)z===B&&(z=0),H===B&&(H=0),N[F]=j(A[F],A[z],A[H]);for(var U,V=[],G=N.concat(),W=0,Z=E.length;W<Z;W++){var q=E[W];U=[];for(var X=0,J=q.length,Y=J-1,K=X+1;X<J;X++,Y++,K++)Y===J&&(Y=0),K===J&&(K=0),U[X]=j(q[X],q[Y],q[K]);V.push(U),G=G.concat(U)}for(var Q=0;Q<f;Q++){for(var $=Q/f,ee=c*Math.cos($*Math.PI/2),te=h*Math.sin($*Math.PI/2)+d,ne=0,re=A.length;ne<re;ne++){var ie=R(A[ne],N[ne],te);Le(ie.x,ie.y,-ee)}for(var ae=0,oe=E.length;ae<oe;ae++){var se=E[ae];U=V[ae];for(var le=0,ue=se.length;le<ue;le++){var ce=R(se[le],U[le],te);Le(ce.x,ce.y,-ee)}}}for(var he=h+d,de=0;de<I;de++){var fe=u?R(M[de],G[de],he):M[de];_?(x.copy(g.normals[0]).multiplyScalar(fe.x),y.copy(g.binormals[0]).multiplyScalar(fe.y),b.copy(v[0]).add(x).add(y),Le(b.x,b.y,b.z)):Le(fe.x,fe.y,0)}for(var pe=1;pe<=a;pe++)for(var me=0;me<I;me++){var ve=u?R(M[me],G[me],he):M[me];_?(x.copy(g.normals[pe]).multiplyScalar(ve.x),y.copy(g.binormals[pe]).multiplyScalar(ve.y),b.copy(v[pe]).add(x).add(y),Le(b.x,b.y,b.z)):Le(ve.x,ve.y,l/a*pe)}for(var ge=f-1;ge>=0;ge--){for(var ye=ge/f,xe=c*Math.cos(ye*Math.PI/2),be=h*Math.sin(ye*Math.PI/2)+d,_e=0,we=A.length;_e<we;_e++){var Me=R(A[_e],N[_e],be);Le(Me.x,Me.y,l+xe)}for(var Ee=0,Se=E.length;Ee<Se;Ee++){var Ce=E[Ee];U=V[Ee];for(var Te=0,ke=Ce.length;Te<ke;Te++){var Ae=R(Ce[Te],U[Te],be);_?Le(Ae.x,Ae.y+v[a-1].y,v[a-1].x+xe):Le(Ae.x,Ae.y,l+xe)}}}function Oe(e,t){for(var n=e.length;--n>=0;){var r=n,i=n-1;i<0&&(i=e.length-1);for(var o=0,s=a+2*f;o<s;o++){var l=I*o,u=I*(o+1);Re(t+r+l,t+i+l,t+i+u,t+r+u)}}}function Le(e,n,r){t.push(e),t.push(n),t.push(r)}function Pe(e,t,n){Ie(e),Ie(t),Ie(n);var r=o.length/3,a=m.generateTopUV(i,o,r-3,r-2,r-1);De(a[0]),De(a[1]),De(a[2])}function Re(e,t,n,r){Ie(e),Ie(t),Ie(r),Ie(t),Ie(n),Ie(r);var a=o.length/3,s=m.generateSideWallUV(i,o,a-6,a-3,a-2,a-1);De(s[0]),De(s[1]),De(s[3]),De(s[1]),De(s[2]),De(s[3])}function Ie(e){o.push(t[3*e+0]),o.push(t[3*e+1]),o.push(t[3*e+2])}function De(e){s.push(e.x),s.push(e.y)}!function(){var e=o.length/3;if(u){for(var t=0,n=I*t,r=0;r<D;r++){var s=k[r];Pe(s[2]+n,s[1]+n,s[0]+n)}n=I*(t=a+2*f);for(var l=0;l<D;l++){var c=k[l];Pe(c[0]+n,c[1]+n,c[2]+n)}}else{for(var h=0;h<D;h++){var d=k[h];Pe(d[2],d[1],d[0])}for(var p=0;p<D;p++){var m=k[p];Pe(m[0]+I*a,m[1]+I*a,m[2]+I*a)}}i.addGroup(e,o.length/3-e,0)}(),function(){var e=o.length/3,t=0;Oe(A,t),t+=A.length;for(var n=0,r=E.length;n<r;n++){var a=E[n];Oe(a,t),t+=a.length}i.addGroup(e,o.length/3-e,1)}()}return e.setAttribute("position",new Dr(o,3)),e.setAttribute("uv",new Dr(s,2)),e.computeVertexNormals(),e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return function(e,t,n){if(n.shapes=[],Array.isArray(e))for(var r=0,i=e.length;r<i;r++){var a=e[r];n.shapes.push(a.uuid)}else n.shapes.push(e.uuid);void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON());return n}(this.parameters.shapes,this.parameters.options,e)}}],[{key:"fromJSON",value:function(e,n){for(var r=[],i=0,a=e.shapes.length;i<a;i++){var o=n[e.shapes[i]];r.push(o)}var s=e.options.extrudePath;return void 0!==s&&(e.options.extrudePath=(new Wl[s.type]).fromJSON(s)),new t(r,e.options)}}]),t}(Vr),Eu={generateTopUV:function(e,t,n,r,i){var a=t[3*n],o=t[3*n+1],s=t[3*r],l=t[3*r+1],u=t[3*i],c=t[3*i+1];return[new Zt(a,o),new Zt(s,l),new Zt(u,c)]},generateSideWallUV:function(e,t,n,r,i,a){var o=t[3*n],s=t[3*n+1],l=t[3*n+2],u=t[3*r],c=t[3*r+1],h=t[3*r+2],d=t[3*i],f=t[3*i+1],p=t[3*i+2],m=t[3*a],v=t[3*a+1],g=t[3*a+2];
1return Math.abs(s-c)<Math.abs(o-u)?[new Zt(o,1-l),new Zt(u,1-h),new Zt(d,1-p),new Zt(m,1-g)]:[new Zt(s,1-l),new Zt(c,1-h),new Zt(f,1-p),new Zt(v,1-g)]}};var Su=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(f.a)(this,t);var i=(1+Math.sqrt(5))/2,o=[-1,i,0,1,i,0,-1,-i,0,1,-i,0,0,-1,i,0,1,i,0,-1,-i,0,1,-i,i,0,-1,i,0,1,-i,0,-1,-i,0,1];return(e=Object(l.a)(this,Object(a.a)(t).call(this,o,[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],n,r))).type="IcosahedronGeometry",e.parameters={radius:n,detail:r},e}return Object(c.a)(t,e),Object(p.a)(t,null,[{key:"fromJSON",value:function(e){return new t(e.radius,e.detail)}}]),t}(Sl),Cu=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ql([new Zt(0,.5),new Zt(-.5,-.5),new Zt(.5,-.5)]),r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="ShapeGeometry",e.parameters={shapes:n,curveSegments:r};var i=[],o=[],s=[],u=[],c=0,h=0;if(!1===Array.isArray(n))p(n);else for(var d=0;d<n.length;d++)p(n[d]),e.addGroup(c,h,d),c+=h,h=0;function p(e){var t=o.length/3,n=e.extractPoints(r),a=n.shape,l=n.holes;!1===bu.isClockWise(a)&&(a=a.reverse());for(var c=0,d=l.length;c<d;c++){var f=l[c];!0===bu.isClockWise(f)&&(l[c]=f.reverse())}for(var p=bu.triangulateShape(a,l),m=0,v=l.length;m<v;m++){var g=l[m];a=a.concat(g)}for(var y=0,x=a.length;y<x;y++){var b=a[y];o.push(b.x,b.y,0),s.push(0,0,1),u.push(b.x,b.y)}for(var _=0,w=p.length;_<w;_++){var M=p[_],E=M[0]+t,S=M[1]+t,C=M[2]+t;i.push(E,S,C),h+=3}}return e.setIndex(i),e.setAttribute("position",new Dr(o,3)),e.setAttribute("normal",new Dr(s,3)),e.setAttribute("uv",new Dr(u,2)),e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this);return function(e,t){if(t.shapes=[],Array.isArray(e))for(var n=0,r=e.length;n<r;n++){var i=e[n];t.shapes.push(i.uuid)}else t.shapes.push(e.uuid);return t}(this.parameters.shapes,e)}}],[{key:"fromJSON",value:function(e,n){for(var r=[],i=0,a=e.shapes.length;i<a;i++){var o=n[e.shapes[i]];r.push(o)}return new t(r,e.curveSegments)}}]),t}(Vr);var Tu=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="ShadowMaterial",n.color=new rn(0),n.transparent=!0,n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this}}]),t}(kr);Tu.prototype.isShadowMaterial=!0;var ku=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).defines={STANDARD:""},n.type="MeshStandardMaterial",n.color=new rn(16777215),n.roughness=1,n.metalness=0,n.map=null,n.lightMap=null,n.lightMapIntensity=1,n.aoMap=null,n.aoMapIntensity=1,n.emissive=new rn(0),n.emissiveIntensity=1,n.emissiveMap=null,n.bumpMap=null,n.bumpScale=1,n.normalMap=null,n.normalMapType=Tt,n.normalScale=new Zt(1,1),n.displacementMap=null,n.displacementScale=1,n.displacementBias=0,n.roughnessMap=null,n.metalnessMap=null,n.alphaMap=null,n.envMap=null,n.envMapIntensity=1,n.refractionRatio=.98,n.wireframe=!1,n.wireframeLinewidth=1,n.wireframeLinecap="round",n.wireframeLinejoin="round",n.flatShading=!1,n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}]),t}(kr);ku.prototype.isMeshStandardMaterial=!0;var Au=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).defines={STANDARD:"",PHYSICAL:""},n.type="MeshPhysicalMaterial",n.clearcoatMap=null,n.clearcoatRoughness=0,n.clearcoatRoughnessMap=null,n.clearcoatNormalScale=new Zt(1,1),n.clearcoatNormalMap=null,n.ior=1.5,Object.defineProperty(Object(u.a)(n),"reflectivity",{get:function(){return Ht(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),n.sheenColor=new rn(0),n.sheenColorMap=null,n.sheenRoughness=1,n.sheenRoughnessMap=null,n.transmissionMap=null,n.thickness=0,n.thicknessMap=null,n.attenuationDistance=0,n.attenuationColor=new rn(1,1,1),n.specularIntensity=1,n.specularIntensityMap=null,n.specularColor=new rn(1,1,1),n.specularColorMap=null,n._sheen=0,n._clearcoat=0,n._transmission=0,n.setValues(e),n}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},{key:"sheen",get:function(){return this._sheen},set:function(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}},{key:"clearcoat",get:function(){return this._clearcoat},set:function(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}},{key:"transmission",get:function(){return this._transmission},set:function(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}}]),t}(ku);Au.prototype.isMeshPhysicalMaterial=!0;var Ou=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="MeshPhongMaterial",n.color=new rn(16777215),n.specular=new rn(1118481),n.shininess=30,n.map=null,n.lightMap=null,n.lightMapIntensity=1,n.aoMap=null,n.aoMapIntensity=1,n.emissive=new rn(0),n.emissiveIntensity=1,n.emissiveMap=null,n.bumpMap=null,n.bumpScale=1,n.normalMap=null,n.normalMapType=Tt,n.normalScale=new Zt(1,1),n.displacementMap=null,n.displacementScale=1,n.displacementBias=0,n.specularMap=null,n.alphaMap=null,n.envMap=null,n.combine=te,n.reflectivity=1,n.refractionRatio=.98,n.wireframe=!1,n.wireframeLinewidth=1,n.wireframeLinecap="round",n.wireframeLinejoin="round",n.flatShading=!1,n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this}}]),t}(kr);Ou.prototype.isMeshPhongMaterial=!0;var Lu=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).defines={TOON:""},n.type="MeshToonMaterial",n.color=new rn(16777215),n.map=null,n.gradientMap=null,n.lightMap=null,n.lightMapIntensity=1,n.aoMap=null,n.aoMapIntensity=1,n.emissive=new rn(0),n.emissiveIntensity=1,n.emissiveMap=null,n.bumpMap=null,n.bumpScale=1,n.normalMap=null,n.normalMapType=Tt,n.normalScale=new Zt(1,1),n.displacementMap=null,n.displacementScale=1,n.displacementBias=0,n.alphaMap=null,n.wireframe=!1,n.wireframeLinewidth=1,n.wireframeLinecap="round",n.wireframeLinejoin="round",n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),t}(kr);Lu.prototype.isMeshToonMaterial=!0;var Pu=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="MeshNormalMaterial",n.bumpMap=null,n.bumpScale=1,n.normalMap=null,n.normalMapType=Tt,n.normalScale=new Zt(1,1),n.displacementMap=null,n.displacementScale=1,n.displacementBias=0,n.wireframe=!1,n.wireframeLinewidth=1,n.fog=!1,n.flatShading=!1,n.setValues(e),n}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}]),t}(kr);Pu.prototype.isMeshNormalMaterial=!0;var Ru=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="MeshLambertMaterial",n.color=new rn(16777215),n.map=null,n.lightMap=null,n.lightMapIntensity=1,n.aoMap=null,n.aoMapIntensity=1,n.emissive=new rn(0),n.emissiveIntensity=1,n.emissiveMap=null,n.specularMap=null,n.alphaMap=null,n.envMap=null,n.combine=te,n.reflectivity=1,n.refractionRatio=.98,n.wireframe=!1,n.wireframeLinewidth=1,n.wireframeLinecap="round",n.wireframeLinejoin="round",n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this}}]),t}(kr);Ru.prototype.isMeshLambertMaterial=!0;var Iu=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).defines={MATCAP:""},n.type="MeshMatcapMaterial",n.color=new rn(16777215),n.matcap=null,n.map=null,n.bumpMap=null,n.bumpScale=1,n.normalMap=null,n.normalMapType=Tt,n.normalScale=new Zt(1,1),n.displacementMap=null,n.displacementScale=1,n.displacementBias=0,n.alphaMap=null,n.flatShading=!1,n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this}}]),t}(kr);Iu.prototype.isMeshMatcapMaterial=!0;var Du=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="LineDashedMaterial",n.scale=1,n.dashSize=3,n.gapSize=1,n.setValues(e),n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}]),t}(ol);Du.prototype.isLineDashedMaterial=!0;var ju={arraySlice:function(e,t,n){return ju.isTypedArray(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)},convertArray:function(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)},isTypedArray:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},getKeyframeOrder:function(e){for(var t=e.length,n=new Array(t),r=0;r!==t;++r)n[r]=r;return n.sort((function(t,n){return e[t]-e[n]})),n},sortedArray:function(e,t,n){for(var r=e.length,i=new e.constructor(r),a=0,o=0;o!==r;++a)for(var s=n[a]*t,l=0;l!==t;++l)i[o++]=e[s+l];return i},flattenJSON:function(e,t,n,r){for(var i=1,a=e[0];void 0!==a&&void 0===a[r];)a=e[i++];if(void 0!==a){var o=a[r];if(void 0!==o)if(Array.isArray(o))do{void 0!==(o=a[r])&&(t.push(a.time),n.push.apply(n,o)),a=e[i++]}while(void 0!==a);else if(void 0!==o.toArray)do{void 0!==(o=a[r])&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++]}while(void 0!==a);else do{void 0!==(o=a[r])&&(t.push(a.time),n.push(o)),a=e[i++]}while(void 0!==a)}},subclip:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:30,a=e.clone();a.name=t;for(var o=[],s=0;s<a.tracks.length;++s){for(var l=a.tracks[s],u=l.getValueSize(),c=[],h=[],d=0;d<l.times.length;++d){var f=l.times[d]*i;if(!(f<n||f>=r)){c.push(l.times[d]);for(var p=0;p<u;++p)h.push(l.values[d*u+p])}}0!==c.length&&(l.times=ju.convertArray(c,l.times.constructor),l.values=ju.convertArray(h,l.values.constructor),o.push(l))}a.tracks=o;for(var m=1/0,v=0;v<a.tracks.length;++v)m>a.tracks[v].times[0]&&(m=a.tracks[v].times[0]);for(var g=0;g<a.tracks.length;++g)a.tracks[g].shift(-1*m);return a.resetDuration(),a},makeClipAdditive:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;r<=0&&(r=30);for(var i=n.tracks.length,a=t/r,o=function(t){var r=n.tracks[t],i=r.ValueTypeName;if("bool"===i||"string"===i)return"continue";var o=e.tracks.find((function(e){return e.name===r.name&&e.ValueTypeName===i}));if(void 0===o)return"continue";var s=0,l=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(s=l/3);var u=0,c=o.getValueSize();o.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(u=c/3);var h=r.times.length-1,d=void 0;if(a<=r.times[0]){var f=s,p=l-s;d=ju.arraySlice(r.values,f,p)}else if(a>=r.times[h]){var m=h*l+s,v=m+l-s;d=ju.arraySlice(r.values,m,v)}else{var g=r.createInterpolant(),y=s,x=l-s;g.evaluate(a),d=ju.arraySlice(g.resultBuffer,y,x)}"quaternion"===i&&(new dn).fromArray(d).normalize().conjugate().toArray(d);for(var b=o.times.length,_=0;_<b;++_){var w=_*c+u;if("quaternion"===i)dn.multiplyQuaternionsFlat(o.values,w,d,0,o.values,w);else for(var M=c-2*u,E=0;E<M;++E)o.values[w+E]-=d[E]}},s=0;s<i;++s)o(s);return e.blendMode=2501,e}},Nu=function(){function e(t,n,r,i){Object(f.a)(this,e),this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new n.constructor(r),this.sampleValues=n,this.valueSize=r,this.settings=null,this.DefaultSettings_={}}return Object(p.a)(e,[{key:"evaluate",value:function(e){var t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];e:{t:{var a;n:{r:if(!(e<r)){for(var o=n+2;;){if(void 0===r){if(e<i)break r;
1return n=t.length,this._cachedIndex=n,this.afterEnd_(n-1,e,i)}if(n===o)break;if(i=r,e<(r=t[++n]))break t}a=t.length;break n}if(e>=i)break e;var s=t[1];e<s&&(n=2,i=s);for(var l=n-2;;){if(void 0===i)return this._cachedIndex=0,this.beforeStart_(0,e,r);if(n===l)break;if(r=i,e>=(i=t[--n-1]))break t}a=n,n=0}for(;n<a;){var u=n+a>>>1;e<t[u]?a=u:n=u+1}if(r=t[n],void 0===(i=t[n-1]))return this._cachedIndex=0,this.beforeStart_(0,e,r);if(void 0===r)return n=t.length,this._cachedIndex=n,this.afterEnd_(n-1,i,e)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}},{key:"getSettings_",value:function(){return this.settings||this.DefaultSettings_}},{key:"copySampleValue_",value:function(e){for(var t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r,a=0;a!==r;++a)t[a]=n[i+a];return t}},{key:"interpolate_",value:function(){throw new Error("call to abstract method")}},{key:"intervalChanged_",value:function(){}}]),e}();Nu.prototype.beforeStart_=Nu.prototype.copySampleValue_,Nu.prototype.afterEnd_=Nu.prototype.copySampleValue_;var Fu=function(e){function t(e,n,r,i){var o;return Object(f.a)(this,t),(o=Object(l.a)(this,Object(a.a)(t).call(this,e,n,r,i)))._weightPrev=-0,o._offsetPrev=-0,o._weightNext=-0,o._offsetNext=-0,o.DefaultSettings_={endingStart:_t,endingEnd:_t},o}return Object(c.a)(t,e),Object(p.a)(t,[{key:"intervalChanged_",value:function(e,t,n){var r=this.parameterPositions,i=e-2,a=e+1,o=r[i],s=r[a];if(void 0===o)switch(this.getSettings_().endingStart){case 2401:i=e,o=2*t-n;break;case 2402:o=t+r[i=r.length-2]-r[i+1];break;default:i=e,o=n}if(void 0===s)switch(this.getSettings_().endingEnd){case 2401:a=e,s=2*n-t;break;case 2402:a=1,s=n+r[1]-r[0];break;default:a=e-1,s=t}var l=.5*(n-t),u=this.valueSize;this._weightPrev=l/(t-o),this._weightNext=l/(s-n),this._offsetPrev=i*u,this._offsetNext=a*u}},{key:"interpolate_",value:function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=s-o,u=this._offsetPrev,c=this._offsetNext,h=this._weightPrev,d=this._weightNext,f=(n-t)/(r-t),p=f*f,m=p*f,v=-h*m+2*h*p-h*f,g=(1+h)*m+(-1.5-2*h)*p+(-.5+h)*f+1,y=(-1-d)*m+(1.5+d)*p+.5*f,x=d*m-d*p,b=0;b!==o;++b)i[b]=v*a[u+b]+g*a[l+b]+y*a[s+b]+x*a[c+b];return i}}]),t}(Nu),Bu=function(e){function t(e,n,r,i){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,e,n,r,i))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"interpolate_",value:function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=s-o,u=(n-t)/(r-t),c=1-u,h=0;h!==o;++h)i[h]=a[l+h]*c+a[s+h]*u;return i}}]),t}(Nu),zu=function(e){function t(e,n,r,i){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,e,n,r,i))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"interpolate_",value:function(e){return this.copySampleValue_(e-1)}}]),t}(Nu),Hu=function(){function e(t,n,r,i){if(Object(f.a)(this,e),void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===n||0===n.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=ju.convertArray(n,this.TimeBufferType),this.values=ju.convertArray(r,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}return Object(p.a)(e,[{key:"InterpolantFactoryMethodDiscrete",value:function(e){return new zu(this.times,this.values,this.getValueSize(),e)}},{key:"InterpolantFactoryMethodLinear",value:function(e){return new Bu(this.times,this.values,this.getValueSize(),e)}},{key:"InterpolantFactoryMethodSmooth",value:function(e){return new Fu(this.times,this.values,this.getValueSize(),e)}},{key:"setInterpolation",value:function(e){var t;switch(e){case 2300:t=this.InterpolantFactoryMethodDiscrete;break;case 2301:t=this.InterpolantFactoryMethodLinear;break;case 2302:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){var n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(n);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",n),this}return this.createInterpolant=t,this}},{key:"getInterpolation",value:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}}},{key:"getValueSize",value:function(){return this.values.length/this.times.length}},{key:"shift",value:function(e){if(0!==e)for(var t=this.times,n=0,r=t.length;n!==r;++n)t[n]+=e;return this}},{key:"scale",value:function(e){if(1!==e)for(var t=this.times,n=0,r=t.length;n!==r;++n)t[n]*=e;return this}},{key:"trim",value:function(e,t){for(var n=this.times,r=n.length,i=0,a=r-1;i!==r&&n[i]<e;)++i;for(;-1!==a&&n[a]>t;)--a;if(++a,0!==i||a!==r){i>=a&&(i=(a=Math.max(a,1))-1);var o=this.getValueSize();this.times=ju.arraySlice(n,i,a),this.values=ju.arraySlice(this.values,i*o,a*o)}return this}},{key:"validate",value:function(){var e=!0,t=this.getValueSize();t-Math.floor(t)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);var n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);for(var a=null,o=0;o!==i;o++){var s=n[o];if("number"==typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,s),e=!1;break}if(null!==a&&a>s){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,s,a),e=!1;break}a=s}if(void 0!==r&&ju.isTypedArray(r))for(var l=0,u=r.length;l!==u;++l){var c=r[l];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,l,c),e=!1;break}}return e}},{key:"optimize",value:function(){for(var e=ju.arraySlice(this.times),t=ju.arraySlice(this.values),n=this.getValueSize(),r=2302===this.getInterpolation(),i=e.length-1,a=1,o=1;o<i;++o){var s=!1,l=e[o];if(l!==e[o+1]&&(1!==o||l!==e[0]))if(r)s=!0;else for(var u=o*n,c=u-n,h=u+n,d=0;d!==n;++d){var f=t[u+d];if(f!==t[c+d]||f!==t[h+d]){s=!0;break}}if(s){if(o!==a){e[a]=e[o];for(var p=o*n,m=a*n,v=0;v!==n;++v)t[m+v]=t[p+v]}++a}}if(i>0){e[a]=e[i];for(var g=i*n,y=a*n,x=0;x!==n;++x)t[y+x]=t[g+x];++a}return a!==e.length?(this.times=ju.arraySlice(e,0,a),this.values=ju.arraySlice(t,0,a*n)):(this.times=e,this.values=t),this}},{key:"clone",value:function(){var e=ju.arraySlice(this.times,0),t=ju.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}],[{key:"toJSON",value:function(e){var t,n=e.constructor;if(n.toJSON!==this.toJSON)t=n.toJSON(e);else{t={name:e.name,times:ju.convertArray(e.times,Array),values:ju.convertArray(e.values,Array)};var r=e.getInterpolation();r!==e.DefaultInterpolation&&(t.interpolation=r)}return t.type=e.ValueTypeName,t}}]),e}();Hu.prototype.TimeBufferType=Float32Array,Hu.prototype.ValueBufferType=Float32Array,Hu.prototype.DefaultInterpolation=2301;var Uu=function(e){function t(){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(c.a)(t,e),t}(Hu);Uu.prototype.ValueTypeName="bool",Uu.prototype.ValueBufferType=Array,Uu.prototype.DefaultInterpolation=2300,Uu.prototype.InterpolantFactoryMethodLinear=void 0,Uu.prototype.InterpolantFactoryMethodSmooth=void 0;var Vu=function(e){function t(){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(c.a)(t,e),t}(Hu);Vu.prototype.ValueTypeName="color";var Gu=function(e){function t(){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(c.a)(t,e),t}(Hu);Gu.prototype.ValueTypeName="number";var Wu=function(e){function t(e,n,r,i){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,e,n,r,i))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"interpolate_",value:function(e,t,n,r){for(var i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),l=e*o,u=l+o;l!==u;l+=4)dn.slerpFlat(i,0,a,l-o,a,l,s);return i}}]),t}(Nu),Zu=function(e){function t(){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"InterpolantFactoryMethodLinear",value:function(e){return new Wu(this.times,this.values,this.getValueSize(),e)}}]),t}(Hu);Zu.prototype.ValueTypeName="quaternion",Zu.prototype.DefaultInterpolation=2301,Zu.prototype.InterpolantFactoryMethodSmooth=void 0;var qu=function(e){function t(){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(c.a)(t,e),t}(Hu);qu.prototype.ValueTypeName="string",qu.prototype.ValueBufferType=Array,qu.prototype.DefaultInterpolation=2300,qu.prototype.InterpolantFactoryMethodLinear=void 0,qu.prototype.InterpolantFactoryMethodSmooth=void 0;var Xu=function(e){function t(){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(c.a)(t,e),t}(Hu);Xu.prototype.ValueTypeName="vector";var Ju=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wt;Object(f.a)(this,e),this.name=t,this.tracks=r,this.duration=n,this.blendMode=i,this.uuid=zt(),this.duration<0&&this.resetDuration()}return Object(p.a)(e,[{key:"resetDuration",value:function(){for(var e=0,t=0,n=this.tracks.length;t!==n;++t){var r=this.tracks[t];e=Math.max(e,r.times[r.times.length-1])}return this.duration=e,this}},{key:"trim",value:function(){for(var e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}},{key:"validate",value:function(){for(var e=!0,t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}},{key:"optimize",value:function(){for(var e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}},{key:"clone",value:function(){for(var e=[],t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}},{key:"toJSON",value:function(){return this.constructor.toJSON(this)}}],[{key:"parse",value:function(e){for(var t=[],n=e.tracks,r=1/(e.fps||1),i=0,a=n.length;i!==a;++i)t.push(Yu(n[i]).scale(r));var o=new this(e.name,e.duration,t,e.blendMode);return o.uuid=e.uuid,o}},{key:"toJSON",value:function(e){for(var t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode},i=0,a=n.length;i!==a;++i)t.push(Hu.toJSON(n[i]));return r}},{key:"CreateFromMorphTargetSequence",value:function(e,t,n,r){for(var i=t.length,a=[],o=0;o<i;o++){var s=[],l=[];s.push((o+i-1)%i,o,(o+1)%i),l.push(0,1,0);var u=ju.getKeyframeOrder(s);s=ju.sortedArray(s,1,u),l=ju.sortedArray(l,1,u),r||0!==s[0]||(s.push(i),l.push(l[0])),a.push(new Gu(".morphTargetInfluences["+t[o].name+"]",s,l).scale(1/n))}return new this(e,-1,a)}},{key:"findByName",value:function(e,t){var n=e;if(!Array.isArray(e)){var r=e;n=r.geometry&&r.geometry.animations||r.animations}for(var i=0;i<n.length;i++)if(n[i].name===t)return n[i];return null}},{key:"CreateClipsFromMorphTargetSequences",value:function(e,t,n){for(var r={},i=/^([\w-]*?)([\d]+)$/,a=0,o=e.length;a<o;a++){var s=e[a],l=s.name.match(i);if(l&&l.length>1){var u=l[1],c=r[u];c||(r[u]=c=[]),c.push(s)}}var h=[];for(var d in r)h.push(this.CreateFromMorphTargetSequence(d,r[d],t,n));return h}},{key:"parseAnimation",value:function(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var n=function(e,t,n,r,i){if(0!==n.length){var a=[],o=[];ju.flattenJSON(n,a,o,r),0!==a.length&&i.push(new e(t,a,o))}},r=[],i=e.name||"default",a=e.fps||30,o=e.blendMode,s=e.length||-1,l=e.hierarchy||[],u=0;u<l.length;u++){var c=l[u].keys;if(c&&0!==c.length)if(c[0].morphTargets){var h={},d=void 0;for(d=0;d<c.length;d++)if(c[d].morphTargets)for(var f=0;f<c[d].morphTargets.length;f++)h[c[d].morphTargets[f]]=-1;for(var p in h){for(var m=[],v=[],g=0;g!==c[d].morphTargets.length;++g){var y=c[d];m.push(y.time),v.push(y.morphTarget===p?1:0)}r.push(new Gu(".morphTargetInfluence["+p+"]",m,v))}s=h.length*(a||1)}else{var x=".bones["+t[u].name+"]";n(Xu,x+".position",c,"pos",r),n(Zu,x+".quaternion",c,"rot",r),n(Xu,x+".scale",c,"scl",r)}}return 0===r.length?null:new this(i,s,r,o)}}]),e}();function Yu(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");var t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Gu;
1case"vector":case"vector2":case"vector3":case"vector4":return Xu;case"color":return Vu;case"quaternion":return Zu;case"bool":case"boolean":return Uu;case"string":return qu}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){var n=[],r=[];ju.flattenJSON(e.keys,n,r,"value"),e.times=n,e.values=r}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}var Ku={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}},Qu=function e(t,n,r){Object(f.a)(this,e);var i=this,a=!1,o=0,s=0,l=void 0,u=[];this.onStart=void 0,this.onLoad=t,this.onProgress=n,this.onError=r,this.itemStart=function(e){s++,!1===a&&void 0!==i.onStart&&i.onStart(e,o,s),a=!0},this.itemEnd=function(e){o++,void 0!==i.onProgress&&i.onProgress(e,o,s),o===s&&(a=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(e){void 0!==i.onError&&i.onError(e)},this.resolveURL=function(e){return l?l(e):e},this.setURLModifier=function(e){return l=e,this},this.addHandler=function(e,t){return u.push(e,t),this},this.removeHandler=function(e){var t=u.indexOf(e);return-1!==t&&u.splice(t,2),this},this.getHandler=function(e){for(var t=0,n=u.length;t<n;t+=2){var r=u[t],i=u[t+1];if(r.global&&(r.lastIndex=0),r.test(e))return i}return null}},$u=new Qu,ec=function(){function e(t){Object(f.a)(this,e),this.manager=void 0!==t?t:$u,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}return Object(p.a)(e,[{key:"load",value:function(){}},{key:"loadAsync",value:function(e,t){var n=this;return new Promise((function(r,i){n.load(e,r,t,i)}))}},{key:"parse",value:function(){}},{key:"setCrossOrigin",value:function(e){return this.crossOrigin=e,this}},{key:"setWithCredentials",value:function(e){return this.withCredentials=e,this}},{key:"setPath",value:function(e){return this.path=e,this}},{key:"setResourcePath",value:function(e){return this.resourcePath=e,this}},{key:"setRequestHeader",value:function(e){return this.requestHeader=e,this}}]),e}(),tc={},nc=function(e){function t(e){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,e))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"load",value:function(e,t,n,r){var i=this;void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var a=Ku.get(e);if(void 0!==a)return this.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;if(void 0===tc[e]){tc[e]=[],tc[e].push({onLoad:t,onProgress:n,onError:r});var o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,l=this.responseType;fetch(o).then((function(t){if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===t.body.getReader)return t;var n=tc[e],r=t.body.getReader(),i=t.headers.get("Content-Length"),a=i?parseInt(i):0,o=0!==a,s=0,l=new ReadableStream({start:function(e){!function t(){r.read().then((function(r){var i=r.done,l=r.value;if(i)e.close();else{s+=l.byteLength;for(var u=new ProgressEvent("progress",{lengthComputable:o,loaded:s,total:a}),c=0,h=n.length;c<h;c++){var d=n[c];d.onProgress&&d.onProgress(u)}e.enqueue(l),t()}}))}()}});return new Response(l)}throw Error('fetch for "'.concat(t.url,'" responded with ').concat(t.status,": ").concat(t.statusText))})).then((function(e){switch(l){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((function(e){return(new DOMParser).parseFromString(e,s)}));case"json":return e.json();default:if(void 0===s)return e.text();var t=/charset="?([^;"\s]*)"?/i.exec(s),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then((function(e){return r.decode(e)}))}})).then((function(t){Ku.add(e,t);var n=tc[e];delete tc[e];for(var r=0,i=n.length;r<i;r++){var a=n[r];a.onLoad&&a.onLoad(t)}})).catch((function(t){var n=tc[e];if(void 0===n)throw i.manager.itemError(e),t;delete tc[e];for(var r=0,a=n.length;r<a;r++){var o=n[r];o.onError&&o.onError(t)}i.manager.itemError(e)})).finally((function(){i.manager.itemEnd(e)})),this.manager.itemStart(e)}else tc[e].push({onLoad:t,onProgress:n,onError:r})}},{key:"setResponseType",value:function(e){return this.responseType=e,this}},{key:"setMimeType",value:function(e){return this.mimeType=e,this}}]),t}(ec),rc=function(e){function t(e){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,e))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"load",value:function(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var i=this,a=Ku.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;var o=Jt("img");function s(){u(),Ku.add(e,this),t&&t(this),i.manager.itemEnd(e)}function l(t){u(),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}function u(){o.removeEventListener("load",s,!1),o.removeEventListener("error",l,!1)}return o.addEventListener("load",s,!1),o.addEventListener("error",l,!1),"data:"!==e.substr(0,5)&&void 0!==this.crossOrigin&&(o.crossOrigin=this.crossOrigin),i.manager.itemStart(e),o.src=e,o}}]),t}(ec),ic=function(e){function t(e){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,e))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"load",value:function(e,t,n,r){var i=new _i,a=new rc(this.manager);a.setCrossOrigin(this.crossOrigin),a.setPath(this.path);var o=0;function s(n){a.load(e[n],(function(e){i.images[n]=e,6===++o&&(i.needsUpdate=!0,t&&t(i))}),void 0,r)}for(var l=0;l<e.length;++l)s(l);return i}}]),t}(ec),ac=function(e){function t(e){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,e))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"load",value:function(e,t,n,r){var i=new sn,a=new rc(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,(function(e){i.image=e,i.needsUpdate=!0,void 0!==t&&t(i)}),n,r),i}}]),t}(ec),oc=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="Light",n.color=new rn(e),n.intensity=r,n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"dispose",value:function(){}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.color.copy(e.color),this.intensity=e.intensity,this}},{key:"toJSON",value:function(e){var n=s(Object(a.a)(t.prototype),"toJSON",this).call(this,e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,void 0!==this.groundColor&&(n.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(n.object.distance=this.distance),void 0!==this.angle&&(n.object.angle=this.angle),void 0!==this.decay&&(n.object.decay=this.decay),void 0!==this.penumbra&&(n.object.penumbra=this.penumbra),void 0!==this.shadow&&(n.object.shadow=this.shadow.toJSON()),n}}]),t}(mr);oc.prototype.isLight=!0;var sc=function(e){function t(e,n,r){var i;return Object(f.a)(this,t),(i=Object(l.a)(this,Object(a.a)(t).call(this,e,r))).type="HemisphereLight",i.position.copy(mr.DefaultUp),i.updateMatrix(),i.groundColor=new rn(n),i}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return oc.prototype.copy.call(this,e),this.groundColor.copy(e.groundColor),this}}]),t}(oc);sc.prototype.isHemisphereLight=!0;var lc=new Gn,uc=new fn,cc=new fn,hc=function(){function e(t){Object(f.a)(this,e),this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Zt(512,512),this.map=null,this.mapPass=null,this.matrix=new Gn,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Ai,this._frameExtents=new Zt(1,1),this._viewportCount=1,this._viewports=[new un(0,0,1,1)]}return Object(p.a)(e,[{key:"getViewportCount",value:function(){return this._viewportCount}},{key:"getFrustum",value:function(){return this._frustum}},{key:"updateMatrices",value:function(e){var t=this.camera,n=this.matrix;uc.setFromMatrixPosition(e.matrixWorld),t.position.copy(uc),cc.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(cc),t.updateMatrixWorld(),lc.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(lc),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(t.projectionMatrix),n.multiply(t.matrixWorldInverse)}},{key:"getViewport",value:function(e){return this._viewports[e]}},{key:"getFrameExtents",value:function(){return this._frameExtents}},{key:"dispose",value:function(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}},{key:"copy",value:function(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"toJSON",value:function(){var e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}]),e}(),dc=function(e){function t(){var e;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this,new gi(50,1,.5,500)))).focus=1,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"updateMatrices",value:function(e){var n=this.camera,r=2*Bt*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,o=e.distance||n.far;r===n.fov&&i===n.aspect&&o===n.far||(n.fov=r,n.aspect=i,n.far=o,n.updateProjectionMatrix()),s(Object(a.a)(t.prototype),"updateMatrices",this).call(this,e)}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.focus=e.focus,this}}]),t}(hc);dc.prototype.isSpotLightShadow=!0;var fc=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.PI/3,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).type="SpotLight",r.position.copy(mr.DefaultUp),r.updateMatrix(),r.target=new mr,r.distance=i,r.angle=o,r.penumbra=s,r.decay=u,r.shadow=new dc,r}return Object(c.a)(t,e),Object(p.a)(t,[{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}},{key:"power",get:function(){return this.intensity*Math.PI},set:function(e){this.intensity=e/Math.PI}}]),t}(oc);fc.prototype.isSpotLight=!0;var pc=new Gn,mc=new fn,vc=new fn,gc=function(e){function t(){var e;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this,new gi(90,1,.5,500))))._frameExtents=new Zt(4,2),e._viewportCount=6,e._viewports=[new un(2,1,1,1),new un(0,1,1,1),new un(3,1,1,1),new un(1,1,1,1),new un(3,0,1,1),new un(1,0,1,1)],e._cubeDirections=[new fn(1,0,0),new fn(-1,0,0),new fn(0,0,1),new fn(0,0,-1),new fn(0,1,0),new fn(0,-1,0)],e._cubeUps=[new fn(0,1,0),new fn(0,1,0),new fn(0,1,0),new fn(0,1,0),new fn(0,0,1),new fn(0,0,-1)],e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"updateMatrices",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),mc.setFromMatrixPosition(e.matrixWorld),n.position.copy(mc),vc.copy(n.position),vc.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(vc),n.updateMatrixWorld(),r.makeTranslation(-mc.x,-mc.y,-mc.z),pc.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(pc)}}]),t}(hc);gc.prototype.isPointLightShadow=!0;var yc=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).type="PointLight",r.distance=i,r.decay=o,r.shadow=new gc,r}return Object(c.a)(t,e),Object(p.a)(t,[{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}},{key:"power",get:function(){return 4*this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}}]),t}(oc);yc.prototype.isPointLight=!0;var xc=function(e){function t(){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,new Ui(-5,5,5,-5,.5,500)))}return Object(c.a)(t,e),t}(hc);xc.prototype.isDirectionalLightShadow=!0;var bc=function(e){function t(e,n){var r;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).type="DirectionalLight",r.position.copy(mr.DefaultUp),r.updateMatrix(),r.target=new mr,r.shadow=new xc,r}return Object(c.a)(t,e),Object(p.a)(t,[{key:"dispose",value:function(){this.shadow.dispose()}},{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}]),t}(oc);bc.prototype.isDirectionalLight=!0;var _c=function(e){function t(e,n){var r;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).type="AmbientLight",r}return Object(c.a)(t,e),t}(oc);_c.prototype.isAmbientLight=!0;var wc=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).type="RectAreaLight",r.width=i,r.he
1ight=o,r}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.width=e.width,this.height=e.height,this}},{key:"toJSON",value:function(e){var n=s(Object(a.a)(t.prototype),"toJSON",this).call(this,e);return n.object.width=this.width,n.object.height=this.height,n}},{key:"power",get:function(){return this.intensity*this.width*this.height*Math.PI},set:function(e){this.intensity=e/(this.width*this.height*Math.PI)}}]),t}(oc);wc.prototype.isRectAreaLight=!0;var Mc=function(){function e(){Object(f.a)(this,e),this.coefficients=[];for(var t=0;t<9;t++)this.coefficients.push(new fn)}return Object(p.a)(e,[{key:"set",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}},{key:"zero",value:function(){for(var e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}},{key:"getAt",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.282095),t.addScaledVector(a[1],.488603*r),t.addScaledVector(a[2],.488603*i),t.addScaledVector(a[3],.488603*n),t.addScaledVector(a[4],n*r*1.092548),t.addScaledVector(a[5],r*i*1.092548),t.addScaledVector(a[6],.315392*(3*i*i-1)),t.addScaledVector(a[7],n*i*1.092548),t.addScaledVector(a[8],.546274*(n*n-r*r)),t}},{key:"getIrradianceAt",value:function(e,t){var n=e.x,r=e.y,i=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.886227),t.addScaledVector(a[1],1.023328*r),t.addScaledVector(a[2],1.023328*i),t.addScaledVector(a[3],1.023328*n),t.addScaledVector(a[4],.858086*n*r),t.addScaledVector(a[5],.858086*r*i),t.addScaledVector(a[6],.743125*i*i-.247708),t.addScaledVector(a[7],.858086*n*i),t.addScaledVector(a[8],.429043*(n*n-r*r)),t}},{key:"add",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}},{key:"addScaledSH",value:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}},{key:"scale",value:function(e){for(var t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}},{key:"lerp",value:function(e,t){for(var n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}},{key:"equals",value:function(e){for(var t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}},{key:"copy",value:function(e){return this.set(e.coefficients)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.coefficients,r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this}},{key:"toArray",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.coefficients,r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}}],[{key:"getBasisAt",value:function(e,t){var n=e.x,r=e.y,i=e.z;t[0]=.282095,t[1]=.488603*r,t[2]=.488603*i,t[3]=.488603*n,t[4]=1.092548*n*r,t[5]=1.092548*r*i,t[6]=.315392*(3*i*i-1),t[7]=1.092548*n*i,t[8]=.546274*(n*n-r*r)}}]),e}();Mc.prototype.isSphericalHarmonics3=!0;var Ec=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Mc,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this,void 0,r))).sh=n,e}return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.sh.copy(e.sh),this}},{key:"fromJSON",value:function(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}},{key:"toJSON",value:function(e){var n=s(Object(a.a)(t.prototype),"toJSON",this).call(this,e);return n.object.sh=this.sh.toArray(),n}}]),t}(oc);Ec.prototype.isLightProbe=!0;var Sc=function(){function e(){Object(f.a)(this,e)}return Object(p.a)(e,null,[{key:"decodeText",value:function(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var t="",n=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);try{return decodeURIComponent(escape(t))}catch(i){return t}}},{key:"extractUrlBase",value:function(e){var t=e.lastIndexOf("/");return-1===t?"./":e.substr(0,t+1)}},{key:"resolveURL",value:function(e,t){return"string"!=typeof e||""===e?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)?e:/^data:.*,.*$/i.test(e)?e:/^blob:.*$/i.test(e)?e:t+e)}}]),e}(),Cc=function(e){function t(){var e;return Object(f.a)(this,t),(e=Object(l.a)(this,Object(a.a)(t).call(this))).type="InstancedBufferGeometry",e.instanceCount=1/0,e}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.instanceCount=e.instanceCount,this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"toJSON",value:function(){var e=s(Object(a.a)(t.prototype),"toJSON",this).call(this,this);return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}}]),t}(Vr);Cc.prototype.isInstancedBufferGeometry=!0;var Tc;(function(e){function t(e){var n;return Object(f.a)(this,t),n=Object(l.a)(this,Object(a.a)(t).call(this,e)),"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),n.options={premultiplyAlpha:"none"},n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"setOptions",value:function(e){return this.options=e,this}},{key:"load",value:function(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);var i=this,a=Ku.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;var o={};o.credentials="anonymous"===this.crossOrigin?"same-origin":"include",o.headers=this.requestHeader,fetch(e,o).then((function(e){return e.blob()})).then((function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:"none"}))})).then((function(n){Ku.add(e,n),t&&t(n),i.manager.itemEnd(e)})).catch((function(t){r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)})),i.manager.itemStart(e)}}]),t})(ec).prototype.isImageBitmapLoader=!0;var kc={getContext:function(){return void 0===Tc&&(Tc=new(window.AudioContext||window.webkitAudioContext)),Tc},setContext:function(e){Tc=e}},Ac=function(e){function t(e){return Object(f.a)(this,t),Object(l.a)(this,Object(a.a)(t).call(this,e))}return Object(c.a)(t,e),Object(p.a)(t,[{key:"load",value:function(e,t,n,r){var i=this,a=new nc(this.manager);a.setResponseType("arraybuffer"),a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,(function(n){try{var a=n.slice(0);kc.getContext().decodeAudioData(a,(function(e){t(e)}))}catch(o){r?r(o):console.error(o),i.manager.itemError(e)}}),n,r)}}]),t}(ec);(function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Object(f.a)(this,t),r=Object(l.a)(this,Object(a.a)(t).call(this,void 0,i));var o=(new rn).set(e),s=(new rn).set(n),u=new fn(o.r,o.g,o.b),c=new fn(s.r,s.g,s.b),h=Math.sqrt(Math.PI),d=h*Math.sqrt(.75);return r.sh.coefficients[0].copy(u).add(c).multiplyScalar(h),r.sh.coefficients[1].copy(u).sub(c).multiplyScalar(d),r}return Object(c.a)(t,e),t})(Ec).prototype.isHemisphereLightProbe=!0,function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Object(f.a)(this,t),n=Object(l.a)(this,Object(a.a)(t).call(this,void 0,r));var i=(new rn).set(e);return n.sh.coefficients[0].set(i.r,i.g,i.b).multiplyScalar(2*Math.sqrt(Math.PI)),n}return Object(c.a)(t,e),t}(Ec).prototype.isAmbientLightProbe=!0;var Oc=function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this))).type="Audio",n.listener=e,n.context=e.context,n.gain=n.context.createGain(),n.gain.connect(e.getInput()),n.autoplay=!1,n.buffer=null,n.detune=0,n.loop=!1,n.loopStart=0,n.loopEnd=0,n.offset=0,n.duration=void 0,n.playbackRate=1,n.isPlaying=!1,n.hasPlaybackControl=!0,n.source=null,n.sourceType="empty",n._startedAt=0,n._progress=0,n._connected=!1,n.filters=[],n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"getOutput",value:function(){return this.gain}},{key:"setNodeSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}},{key:"setMediaElementSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}},{key:"setMediaStreamSource",value:function(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}},{key:"setBuffer",value:function(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!0!==this.isPlaying){if(!1!==this.hasPlaybackControl){this._startedAt=this.context.currentTime+e;var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}else console.warn("THREE.Audio: Audio is already playing.")}},{key:"pause",value:function(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"stop",value:function(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"connect",value:function(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(var e=1,t=this.filters.length;e<t;e++)this.filters[e-1].connect(this.filters[e]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}},{key:"disconnect",value:function(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(var e=1,t=this.filters.length;e<t;e++)this.filters[e-1].disconnect(this.filters[e]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}},{key:"getFilters",value:function(){return this.filters}},{key:"setFilters",value:function(e){return e||(e=[]),!0===this._connected?(this.disconnect(),this.filters=e.slice(),this.connect()):this.filters=e.slice(),this}},{key:"setDetune",value:function(e){if(this.detune=e,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}},{key:"getDetune",value:function(){return this.detune}},{key:"getFilter",value:function(){return this.getFilters()[0]}},{key:"setFilter",value:function(e){return this.setFilters(e?[e]:[])}},{key:"setPlaybackRate",value:function(e){if(!1!==this.hasPlaybackControl)return this.playbackRate=e,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"getPlaybackRate",value:function(){return this.playbackRate}},{key:"onEnded",value:function(){this.isPlaying=!1}},{key:"getLoop",value:function(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}},{key:"setLoop",value:function(e){if(!1!==this.hasPlaybackControl)return this.loop=e,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}},{key:"setLoopStart",value:function(e){return this.loopStart=e,this}},{key:"setLoopEnd",value:function(e){return this.loopEnd=e,this}},{key:"getVolume",value:function(){return this.gain.gain.value}},{key:"setVolume",value:function(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}}]),t}(mr),Lc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2048;Object(f.a)(this,e),this.analyser=t.context.createAnalyser(),this.analyser.fftSize=n,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}return Object(p.a)(e,[{key:"getFrequencyData",value:function(){return this.analyser.getByteFrequencyData(this.data),this.data}},{key:"getAverageFrequency",value:function(){for(var e=0,t=this.getFrequencyData(),n=0;n<t.length;n++)e+=t[n];return e/t.length}}]),e}(),Pc=function(){function e(t,n,r){var i,a,o;switch(Object(f.a)(this,e),this.binding=t,this.valueSize=r,n){case"quaternion":i=this._slerp,a=this._slerpAdditive,o=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*r),this._workIndex=5;break;case"string":case"bool":i=this._select,a=this._select,o=this._setAdditiveIdentityOther,this.buffer=new Array(5*r);break;default:i=this._lerp,a=this._lerpAdditive,o=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*r)}this._mixBufferRegion=i,this._mixBufferRegionAdditive=a,this._setIdentity=o,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}return Object(p.a)(e,[{key:"accumulate",value:function(e,t){var n=this.buffer,r=this.valueSize,i=e*r+r,a=this.cumulativeWeight;if(0===a){for(var o=0;o!==r;++o)n[i+o]=n[o];a=t}else{var s=t/(a+=t);this._mixBufferRegion(n,i,0,s,r)}this.cumulativeWeight=a}},{key:"accumulateAdditive",value:function(e){var t=this.buffer,n=this.valueSize,r=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(t,r,0,e,n),this.cumulativeWeightAdditive+=e}},{key:"apply",value:function(e){var t=this.valueSize,n=this.buffer,r=e*t+t,i=this.cumulativeWeight,a=this.cumulativeWeightAdditive,o=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,i<1){var s=t*this._origIndex;this._mixBufferRegion(n,r,s,1-i,t)}a>0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(var l=t,u=t+t;l!==u;++l)if(n[l]!==n[l+t]){o.setValue(n,r);break}}},{key:"saveOriginalState",value:function(){var e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(var i=n,a=r;i!==a;++i)t[i]=t[r+i%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}},{key:"restoreOriginalState",value:function(){var e=3*this.valueSize;this.binding.setValue(this.buffer,e)}},{key:"_setAdditiveIdentityNumeric",value:function(){for(var e=this._addIndex*this.valueSize,t=e+this.valueSize,n=e;n<t;n++)this.buffer[n]=0}},{key:"_setAdditiveIdentityQuaternion",value:function(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}},{key:"_setAdditiveIdentityOther",value:function(){for(var e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize,n=0;n<this.valueSize;n++)this.buffer[t+n]=this.buffer[e+n]}},{key:"_select",value:function(e,t,n,r,i){if(r>=.5)for(var a=0;a!==i;++a)e[t+a]=e[n+a]}},{key:"_slerp",value:function(e,t,n,r){dn.slerpFlat(e,t,e,t,e,n,r)}},{key:"_slerpAdditive",value:function(e,t,n,r,i){var a=this._workIndex*i;dn.multiplyQuaternionsFlat(e,a,e,t,e,n),dn.slerpFlat(e,t,e,t,e,a,r)}},{key:"_lerp",value:function(e,t,n,r,i){for(var a=1-r,o=0;o!==i;++o){var s=t+o;e[s]=e[s]*a+e[n+o]*r}}},{key:"_lerpAdditive",value:function(e,t,n,r,i){for(var a=0;a!==i;++a){var o=t+a;e[o]=e[o]+e[n+a]*r}}}]),e}(),Rc=new RegExp("[\\[\\]\\.:\\/]","g"),Ic="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",Dc=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]"),jc=/(WCOD+)?/.source.replace("WCOD",Ic),Nc=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),Fc=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),Bc=new RegExp("^"+Dc+jc+Nc+Fc+"$"),zc=["material","materials","bones"],Hc=function(){function e(t,n,r){Object(f.a)(this,e);var i=r||Uc.parseTrackName(n);this._targetGroup=t,this._bindings=t.subscribe_(n,i)}return Object(p.a)(e,[{key:"getValue",value:function(e,t){this.bind();var n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)}},{key:"setValue",value:function(e,t){for(var n=this._bindings,r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}},{key:"bind",value:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}},{key:"unbind",value:function(){for(var e=this._bindings,t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}]),e}(),Uc=function(){function e(t,n,r){Object(f.a)(this,e),this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}return Object(p.a)(e,[{key:"_getValue_unavailable",value:function(){}},{key:"_setValue_unavailable",value:function(){}},{key:"_getValue_direct",value:function(e,t){e[t]=this.targetObject[this.propertyName]}},{key:"_getValue_array",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)e[t++]=n[r]}},{key:"_getValue_arrayElement",value:function(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}},{key:"_getValue_toArray",value:function(e,t){this.resolvedProperty.toArray(e,t)}},{key:"_setValue_direct",value:function(e,t){this.targetObject[this.propertyName]=e[t]}},{key:"_setValue_direct_setNeedsUpdate",value:function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}},{key:"_setValue_direct_setMatrixWorldNeedsUpdate",value:function(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_array",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++]}},{key:"_setValue_array_setNeedsUpdate",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}}
1,{key:"_setValue_array_setMatrixWorldNeedsUpdate",value:function(e,t){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_arrayElement",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}},{key:"_setValue_arrayElement_setNeedsUpdate",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}},{key:"_setValue_arrayElement_setMatrixWorldNeedsUpdate",value:function(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_setValue_fromArray",value:function(e,t){this.resolvedProperty.fromArray(e,t)}},{key:"_setValue_fromArray_setNeedsUpdate",value:function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}},{key:"_setValue_fromArray_setMatrixWorldNeedsUpdate",value:function(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}},{key:"_getValue_unbound",value:function(e,t){this.bind(),this.getValue(e,t)}},{key:"_setValue_unbound",value:function(e,t){this.bind(),this.setValue(e,t)}},{key:"bind",value:function(){var t=this.node,n=this.parsedPath,r=n.objectName,i=n.propertyName,a=n.propertyIndex;if(t||(t=e.findNode(this.rootNode,n.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(r){var o=n.objectIndex;switch(r){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(var s=0;s<t.length;s++)if(t[s].name===o){o=s;break}break;default:if(void 0===t[r])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[r]}if(void 0!==o){if(void 0===t[o])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[o]}}var l=t[i];if(void 0!==l){var u=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?u=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(u=this.Versioning.MatrixWorldNeedsUpdate);var c=this.BindingType.Direct;if(void 0!==a){if("morphTargetInfluences"===i){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.isBufferGeometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[a]&&(a=t.morphTargetDictionary[a])}c=this.BindingType.ArrayElement,this.resolvedProperty=l,this.propertyIndex=a}else void 0!==l.fromArray&&void 0!==l.toArray?(c=this.BindingType.HasFromToArray,this.resolvedProperty=l):Array.isArray(l)?(c=this.BindingType.EntireArray,this.resolvedProperty=l):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][u]}else{var h=n.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+h+"."+i+" but it wasn't found.",t)}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")}},{key:"unbind",value:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}],[{key:"create",value:function(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}},{key:"sanitizeNodeName",value:function(e){return e.replace(/\s/g,"_").replace(Rc,"")}},{key:"parseTrackName",value:function(e){var t=Bc.exec(e);if(!t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);var n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){var i=n.nodeName.substring(r+1);-1!==zc.indexOf(i)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=i)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}},{key:"findNode",value:function(e,t){if(!t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){var n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){var r=function e(n){for(var r=0;r<n.length;r++){var i=n[r];if(i.name===t||i.uuid===t)return i;var a=e(i.children);if(a)return a}return null}(e.children);if(r)return r}return null}}]),e}();Uc.Composite=Hc,Uc.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Uc.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},Uc.prototype.GetterByBindingType=[Uc.prototype._getValue_direct,Uc.prototype._getValue_array,Uc.prototype._getValue_arrayElement,Uc.prototype._getValue_toArray],Uc.prototype.SetterByBindingTypeAndVersioning=[[Uc.prototype._setValue_direct,Uc.prototype._setValue_direct_setNeedsUpdate,Uc.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[Uc.prototype._setValue_array,Uc.prototype._setValue_array_setNeedsUpdate,Uc.prototype._setValue_array_setMatr
1ixWorldNeedsUpdate],[Uc.prototype._setValue_arrayElement,Uc.prototype._setValue_arrayElement_setNeedsUpdate,Uc.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[Uc.prototype._setValue_fromArray,Uc.prototype._setValue_fromArray_setNeedsUpdate,Uc.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]],function(){function e(){Object(f.a)(this,e),this.uuid=zt(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;for(var n=0,r=arguments.length;n!==r;++n)t[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var i=this;this.stats={objects:{get total(){return i._objects.length},get inUse(){return this.total-i.nCachedObjects_}},get bindingsPerObject(){return i._bindings.length}}}return Object(p.a)(e,[{key:"add",value:function(){for(var e=this._objects,t=this._indicesByUUID,n=this._paths,r=this._parsedPaths,i=this._bindings,a=i.length,o=void 0,s=e.length,l=this.nCachedObjects_,u=0,c=arguments.length;u!==c;++u){var h=arguments[u],d=h.uuid,f=t[d];if(void 0===f){f=s++,t[d]=f,e.push(h);for(var p=0,m=a;p!==m;++p)i[p].push(new Uc(h,n[p],r[p]))}else if(f<l){o=e[f];var v=--l,g=e[v];t[g.uuid]=f,e[f]=g,t[d]=v,e[v]=h;for(var y=0,x=a;y!==x;++y){var b=i[y],_=b[v],w=b[f];b[f]=_,void 0===w&&(w=new Uc(h,n[y],r[y])),b[v]=w}}else e[f]!==o&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=l}},{key:"remove",value:function(){for(var e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,a=0,o=arguments.length;a!==o;++a){var s=arguments[a],l=s.uuid,u=t[l];if(void 0!==u&&u>=i){var c=i++,h=e[c];t[h.uuid]=u,e[u]=h,t[l]=c,e[c]=s;for(var d=0,f=r;d!==f;++d){var p=n[d],m=p[c],v=p[u];p[u]=m,p[c]=v}}}this.nCachedObjects_=i}},{key:"uncache",value:function(){for(var e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length,i=this.nCachedObjects_,a=e.length,o=0,s=arguments.length;o!==s;++o){var l=arguments[o],u=l.uuid,c=t[u];if(void 0!==c)if(delete t[u],c<i){var h=--i,d=e[h],f=--a,p=e[f];t[d.uuid]=c,e[c]=d,t[p.uuid]=h,e[h]=p,e.pop();for(var m=0,v=r;m!==v;++m){var g=n[m],y=g[h],x=g[f];g[c]=y,g[h]=x,g.pop()}}else{var b=--a,_=e[b];b>0&&(t[_.uuid]=c),e[c]=_,e.pop();for(var w=0,M=r;w!==M;++w){var E=n[w];E[c]=E[b],E.pop()}}}this.nCachedObjects_=i}},{key:"subscribe_",value:function(e,t){var n=this._bindingsIndicesByPath,r=n[e],i=this._bindings;if(void 0!==r)return i[r];var a=this._paths,o=this._parsedPaths,s=this._objects,l=s.length,u=this.nCachedObjects_,c=new Array(l);r=i.length,n[e]=r,a.push(e),o.push(t),i.push(c);for(var h=u,d=s.length;h!==d;++h){var f=s[h];c[h]=new Uc(f,e,t)}return c}},{key:"unsubscribe_",value:function(e){var t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){var r=this._paths,i=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o];t[e[o]]=n,a[n]=s,a.pop(),i[n]=i[o],i.pop(),r[n]=r[o],r.pop()}}}]),e}().prototype.isAnimationObjectGroup=!0;var Vc=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.blendMode;Object(f.a)(this,e),this._mixer=t,this._clip=n,this._localRoot=r,this.blendMode=i;for(var a=n.tracks,o=a.length,s=new Array(o),l={endingStart:_t,endingEnd:_t},u=0;u!==o;++u){var c=a[u].createInterpolant(null);s[u]=c,c.settings=l}this._interpolantSettings=l,this._interpolants=s,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=bt,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}return Object(p.a)(e,[{key:"play",value:function(){return this._mixer._activateAction(this),this}},{key:"stop",value:function(){return this._mixer._deactivateAction(this),this.reset()}},{key:"reset",value:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}},{key:"isRunning",value:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}},{key:"isScheduled",value:function(){return this._mixer._isActiveAction(this)}},{key:"startAt",value:function(e){return this._startTime=e,this}},{key:"setLoop",value:function(e,t){return this.loop=e,this.repetitions=t,this}},{key:"setEffectiveWeight",value:function(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}},{key:"getEffectiveWeight",value:function(){return this._effectiveWeight}},{key:"fadeIn",value:function(e){return this._scheduleFading(e,0,1
1)}},{key:"fadeOut",value:function(e){return this._scheduleFading(e,1,0)}},{key:"crossFadeFrom",value:function(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){var r=this._clip.duration,i=e._clip.duration,a=i/r,o=r/i;e.warp(1,a,t),this.warp(o,1,t)}return this}},{key:"crossFadeTo",value:function(e,t,n){return e.crossFadeFrom(this,t,n)}},{key:"stopFading",value:function(){var e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}},{key:"setEffectiveTimeScale",value:function(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}},{key:"getEffectiveTimeScale",value:function(){return this._effectiveTimeScale}},{key:"setDuration",value:function(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}},{key:"syncWith",value:function(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}},{key:"halt",value:function(e){return this.warp(this._effectiveTimeScale,0,e)}},{key:"warp",value:function(e,t,n){var r=this._mixer,i=r.time,a=this.timeScale,o=this._timeScaleInterpolant;null===o&&(o=r._lendControlInterpolant(),this._timeScaleInterpolant=o);var s=o.parameterPositions,l=o.sampleValues;return s[0]=i,s[1]=i+n,l[0]=e/a,l[1]=t/a,this}},{key:"stopWarping",value:function(){var e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}},{key:"getMixer",value:function(){return this._mixer}},{key:"getClip",value:function(){return this._clip}},{key:"getRoot",value:function(){return this._localRoot||this._mixer._root}},{key:"_update",value:function(e,t,n,r){if(this.enabled){var i=this._startTime;if(null!==i){var a=(e-i)*n;if(a<0||0===n)return;this._startTime=null,t=n*a}t*=this._updateTimeScale(e);var o=this._updateTime(t),s=this._updateWeight(e);if(s>0){var l=this._interpolants,u=this._propertyBindings;switch(this.blendMode){case 2501:for(var c=0,h=l.length;c!==h;++c)l[c].evaluate(o),u[c].accumulateAdditive(s);break;case wt:default:for(var d=0,f=l.length;d!==f;++d)l[d].evaluate(o),u[d].accumulate(r,s)}}}else this._updateWeight(e)}},{key:"_updateWeight",value:function(e){var t=0;if(this.enabled){t=this.weight;var n=this._weightInterpolant;if(null!==n){var r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}},{key:"_updateTimeScale",value:function(e){var t=0;if(!this.paused){t=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n)t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}return this._effectiveTimeScale=t,t}},{key:"_updateTime",value:function(e){var t=this._clip.duration,n=this.loop,r=this.time+e,i=this._loopCount,a=2202===n;if(0===e)return-1===i?r:a&&1==(1&i)?t-r:r;if(2200===n){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),r>=t||r<0){var o=Math.floor(r/t);r-=t*o,i+=Math.abs(o);var s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){var l=e<0;this._setEndings(l,!l,a)}else this._setEndings(!1,!1,a);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:o})}}else this.time=r;if(a&&1==(1&i))return t-r}return r}},{key:"_setEndings",value:function(e,t,n){var r=this._interpolantSettings;n?(r.endingStart=2401,r.endingEnd=2401):(r.endingStart=e?this.zeroSlopeAtStart?2401:_t:2402,r.endingEnd=t?this.zeroSlopeAtEnd?2401:_t:2402)}},{key:"_scheduleFading",value:function(e,t,n){var r=this._mixer,i=r.time,a=this._weightInterpolant;null===a&&(a=r._lendControlInterpolant(),this._weightInterpolant=a);var o=a.parameterPositions,s=a.sampleValues;return o[0]=i,s[0]=t,o[1]=i+e,s[1]=n,this}}]),e}();(function(e){function t(e){var n;return Object(f.a)(this,t),(n=Object(l.a)(this,Object(a.a)(t).call(this)))._root=e,n._initMemoryManager(),n._accuIndex=0,n.time=0,n.timeScale=1,n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"_bindAction",value:function(e,t){var n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,a=e._propertyBindings,o=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName,u=l[s];void 0===u&&(u={},l[s]=u);for(var c=0;c!==i;++c){var h=r[c],d=h.name,f=u[d];if(void 0!==f)++f.referenceCount,a[c]=f;else{if(void 0!==(f=a[c])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,s,d));continue}var p=t&&t._propertyBindings[c].binding.parsedPath;++(f=new Pc(Uc.create(n,d,p),h.ValueTypeName,h.getValueSize())).referenceCount,this._addInactiveBinding(f,s,d),a[c]=f}o[c].resultBuffer=f.buffer}}},{key:"_activateAction",value:function(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){var t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r
1=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}for(var i=e._propertyBindings,a=0,o=i.length;a!==o;++a){var s=i[a];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(e)}}},{key:"_deactivateAction",value:function(e){if(this._isActiveAction(e)){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0==--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(e)}}},{key:"_initMemoryManager",value:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}},{key:"_isActiveAction",value:function(e){var t=e._cacheIndex;return null!==t&&t<this._nActiveActions}},{key:"_addInactiveAction",value:function(e,t,n){var r=this._actions,i=this._actionsByClip,a=i[t];if(void 0===a)a={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,i[t]=a;else{var o=a.knownActions;e._byClipCacheIndex=o.length,o.push(e)}e._cacheIndex=r.length,r.push(e),a.actionByRoot[n]=e}},{key:"_removeInactiveAction",value:function(e){var t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;var i=e._clip.uuid,a=this._actionsByClip,o=a[i],s=o.knownActions,l=s[s.length-1],u=e._byClipCacheIndex;l._byClipCacheIndex=u,s[u]=l,s.pop(),e._byClipCacheIndex=null,delete o.actionByRoot[(e._localRoot||this._root).uuid],0===s.length&&delete a[i],this._removeInactiveBindingsForAction(e)}},{key:"_removeInactiveBindingsForAction",value:function(e){for(var t=e._propertyBindings,n=0,r=t.length;n!==r;++n){var i=t[n];0==--i.referenceCount&&this._removeInactiveBinding(i)}}},{key:"_lendAction",value:function(e){var t=this._actions,n=e._cacheIndex,r=this._nActiveActions++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}},{key:"_takeBackAction",value:function(e){var t=this._actions,n=e._cacheIndex,r=--this._nActiveActions,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}},{key:"_addInactiveBinding",value:function(e,t,n){var r=this._bindingsByRootAndName,i=this._bindings,a=r[t];void 0===a&&(a={},r[t]=a),a[n]=e,e._cacheIndex=i.length,i.push(e)}},{key:"_removeInactiveBinding",value:function(e){var t=this._bindings,n=e.binding,r=n.rootNode.uuid,i=n.path,a=this._bindingsByRootAndName,o=a[r],s=t[t.length-1],l=e._cacheIndex;s._cacheIndex=l,t[l]=s,t.pop(),delete o[i],0===Object.keys(o).length&&delete a[r]}},{key:"_lendBinding",value:function(e){var t=this._bindings,n=e._cacheIndex,r=this._nActiveBindings++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}},{key:"_takeBackBinding",value:function(e){var t=this._bindings,n=e._cacheIndex,r=--this._nActiveBindings,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}},{key:"_lendControlInterpolant",value:function(){var e=this._controlInterpolants,t=this._nActiveControlInterpolants++,n=e[t];return void 0===n&&((n=new Bu(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=t,e[t]=n),n}},{key:"_takeBackControlInterpolant",value:function(e){var t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,i=t[r];e.__cacheIndex=r,t[r]=e,i.__cacheIndex=n,t[n]=i}},{key:"clipAction",value:function(e,t,n){var r=t||this._root,i=r.uuid,a="string"==typeof e?Ju.findByName(r,e):e,o=null!==a?a.uuid:e,s=this._actionsByClip[o],l=null;if(void 0===n&&(n=null!==a?a.blendMode:wt),void 0!==s){var u=s.actionByRoot[i];if(void 0!==u&&u.blendMode===n)return u;l=s.knownActions[0],null===a&&(a=l._clip)}if(null===a)return null;var c=new Vc(this,a,t,n);return this._bindAction(c,l),this._addInactiveAction(c,o,i),c}},{key:"existingAction",value:function(e,t){var n=t||this._root,r=n.uuid,i="string"==typeof e?Ju.findByName(n,e):e,a=i?i.uuid:e,o=this._actionsByClip[a];return void 0!==o&&o.actionByRoot[r]||null}},{key:"stopAllAction",value:function(){for(var e=this._actions,t=this._nActiveActions-1;t>=0;--t)e[t].stop();return this}},{key:"update",value:function(e){e*=this.timeScale;for(var t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),a=this._accuIndex^=1,o=0;o!==n;++o){t[o]._update(r,e,i,a)}for(var s=this._bindings,l=this._nActiveBindings,u=0;u!==l;++u)s[u].apply(a);return this}},{key:"setTime",value:function(e){this.time=0;for(var t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(e)}},{key:"getRoot",value:function(){return this._root}},{key:"uncacheClip",value:function(e){var t=this._actions,n=e.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){for(var a=i.knownActions,o=0,s=a.length;o!==s;++o){var l=a[o];this._deactivateAction(l);var u=l._cacheIndex,c=t[t.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,c._cacheIndex=u,t[u]=c,t.pop(),this._removeInactiveBindingsForAction(l)}delete r[n]}}},{key:"uncacheRoot",value:function(e){var t=e.uuid,n=this._actionsByClip;for(var r in n){var i=n[r].actionByRoot[t];void 0!==i&&(this._deactivateAction(i),this._removeInactiveAction(i))}var a=this._bindingsByRootAndName[t];if(void 0!==a)for(var o in a){var s=a[o];s.restoreOriginalState(),this._removeInactiveBinding(s)}}},{key:"uncacheAction",value:function(e,t){var n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}]),t})(Dt).prototype._controlInterpolantsResultBuffer=new Float32Array(1);var Gc=function(){function e(t){Object(f.a)(this,e),"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}return Object(p.a)(e,[{key:"clone",value:function(){return new e(void 0===this.value.clone?this.value:this.value.clone())}}]),e}();(function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Object(f.a)(this,t),(r=Object(l.a)(this,Object(a.a)(t).call(this,e,n))).meshPerAttribute=i,r}
1return Object(c.a)(t,e),Object(p.a)(t,[{key:"copy",value:function(e){return s(Object(a.a)(t.prototype),"copy",this).call(this,e),this.meshPerAttribute=e.meshPerAttribute,this}},{key:"clone",value:function(e){var n=s(Object(a.a)(t.prototype),"clone",this).call(this,e);return n.meshPerAttribute=this.meshPerAttribute,n}},{key:"toJSON",value:function(e){var n=s(Object(a.a)(t.prototype),"toJSON",this).call(this,e);return n.isInstancedInterleavedBuffer=!0,n.meshPerAttribute=this.meshPerAttribute,n}}]),t})(Ts).prototype.isInstancedInterleavedBuffer=!0,function(){function e(t,n,r,i,a){Object(f.a)(this,e),this.buffer=t,this.type=n,this.itemSize=r,this.elementSize=i,this.count=a,this.version=0}return Object(p.a)(e,[{key:"setBuffer",value:function(e){return this.buffer=e,this}},{key:"setType",value:function(e,t){return this.type=e,this.elementSize=t,this}},{key:"setItemSize",value:function(e){return this.itemSize=e,this}},{key:"setCount",value:function(e){return this.count=e,this}},{key:"needsUpdate",set:function(e){!0===e&&this.version++}}]),e}().prototype.isGLBufferAttribute=!0;var Wc=new Zt,Zc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Zt(1/0,1/0),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Zt(-1/0,-1/0);Object(f.a)(this,e),this.min=t,this.max=n}return Object(p.a)(e,[{key:"set",value:function(e,t){return this.min.copy(e),this.max.copy(t),this}},{key:"setFromPoints",value:function(e){this.makeEmpty();for(var t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}},{key:"setFromCenterAndSize",value:function(e,t){var n=Wc.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(e){return this.min.copy(e.min),this.max.copy(e.max),this}},{key:"makeEmpty",value:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}},{key:"isEmpty",value:function(){return this.max.x<this.min.x||this.max.y<this.min.y}},{key:"getCenter",value:function(e){return this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}},{key:"getSize",value:function(e){return this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)}},{key:"expandByPoint",value:function(e){return this.min.min(e),this.max.max(e),this}},{key:"expandByVector",value:function(e){return this.min.sub(e),this.max.add(e),this}},{key:"expandByScalar",value:function(e){return this.min.addScalar(-e),this.max.addScalar(e),this}},{key:"containsPoint",value:function(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)}},{key:"containsBox",value:function(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}},{key:"getParameter",value:function(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}},{key:"intersectsBox",value:function(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y)}},{key:"clampPoint",value:function(e,t){return t.copy(e).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(e){return Wc.copy(e).clamp(this.min,this.max).sub(e).length()}},{key:"intersect",value:function(e){return this.min.max(e.min),this.max.min(e.max),this}},{key:"union",value:function(e){return this.min.min(e.min),this.max.max(e.max),this}},{key:"translate",value:function(e){return this.min.add(e),this.max.add(e),this}},{key:"equals",value:function(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}]),e}();Zc.prototype.isBox2=!0;
1var qc=new fn,Xc=new fn,Jc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fn,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fn;Object(f.a)(this,e),this.start=t,this.end=n}return Object(p.a)(e,[{key:"set",value:function(e,t){return this.start.copy(e),this.end.copy(t),this}},{key:"copy",value:function(e){return this.start.copy(e.start),this.end.copy(e.end),this}},{key:"getCenter",value:function(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}},{key:"delta",value:function(e){return e.subVectors(this.end,this.start)}},{key:"distanceSq",value:function(){return this.start.distanceToSquared(this.end)}},{key:"distance",value:function(){return this.start.distanceTo(this.end)}},{key:"at",value:function(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}},{key:"closestPointToPointParameter",value:function(e,t){qc.subVectors(e,this.start),Xc.subVectors(this.end,this.start);var n=Xc.dot(Xc),r=Xc.dot(qc)/n;return t&&(r=Ht(r,0,1)),r}},{key:"closestPointToPoint",value:function(e,t,n){var r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}},{key:"applyMatrix4",value:function(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}},{key:"equals",value:function(e){return e.start.equals(this.start)&&e.end.equals(this.end)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}]),e}(),Yc=new fn,Kc=new Gn,Qc=new Gn,$c=function(e){function t(e){var n;Object(f.a)(this,t);for(var r=function e(t){var n=[];t&&t.isBone&&n.push(t);for(var r=0;r<t.children.length;r++)n.push.apply(n,e(t.children[r]));return n}(e),i=new Vr,o=[],s=[],u=new rn(0,0,1),c=new rn(0,1,0),h=0;h<r.length;h++){var d=r[h];d.parent&&d.parent.isBone&&(o.push(0,0,0),o.push(0,0,0),s.push(u.r,u.g,u.b),s.push(c.r,c.g,c.b))}i.setAttribute("position",new Dr(o,3)),i.setAttribute("color",new Dr(s,3));var p=new ol({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});return(n=Object(l.a)(this,Object(a.a)(t).call(this,i,p))).type="SkeletonHelper",n.isSkeletonHelper=!0,n.root=e,n.bones=r,n.matrix=e.matrixWorld,n.matrixAutoUpdate=!1,n}return Object(c.a)(t,e),Object(p.a)(t,[{key:"updateMatrixWorld",value:function(e){var n=this.bones,r=this.geometry,i=r.getAttribute("position");Qc.copy(this.root.matrixWorld).invert();for(var o=0,l=0;o<n.length;o++){var u=n[o];u.parent&&u.parent.isBone&&(Kc.multiplyMatrices(Qc,u.matrixWorld),Yc.setFromMatrixPosition(Kc),i.setXYZ(l,Yc.x,Yc.y,Yc.z),Kc.multiplyMatrices(Qc,u.parent.matrixWorld),Yc.setFromMatrixPosition(Kc),i.setXYZ(l+1,Yc.x,Yc.y,Yc.z),l+=2)}r.getAttribute("position").needsUpdate=!0,s(Object(a.a)(t.prototype),"updateMatrixWorld",this).call(this,e)}}]),t}(ml);var eh=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4473924,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8947848;Object(f.a)(this,t),i=new rn(i),o=new rn(o);for(var s=r/2,u=n/r,c=n/2,h=[],d=[],p=0,m=0,v=-c;p<=r;p++,v+=u){h.push(-c,0,v,c,0,v),h.push(v,0,-c,v,0,c);var g=p===s?i:o;g.toArray(d,m),m+=3,g.toArray(d,m),m+=3,g.toArray(d,m),m+=3,g.toArray(d,m),m+=3}var y=new Vr;y.setAttribute("position",new Dr(h,3)),y.setAttribute("color",new Dr(d,3));var x=new ol({vertexColors:!0,toneMapped:!1});return(e=Object(l.a)(this,Object(a.a)(t).call(this,y,x))).type="GridHelper",e}return Object(c.a)(t,e),t}(ml);var th=new Float32Array(1),nh=(new Int32Array(th.buffer),1),rh=2;Cl.create=function(e,t){return console.log("THREE.Curve.create() has been deprecated"),e.prototype=Object.create(Cl.prototype),e.prototype.constructor=e,e.prototype.getPoint=t,e},Zl.prototype.fromPoints=function(e){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(e)},eh.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},$c.prototype.update=function(){console.error("THREE.SkeletonHelper: update(
1) no longer needs to be called.")},ec.prototype.extractUrlBase=function(e){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Sc.extractUrlBase(e)},ec.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Zc.prototype.center=function(e){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(e)},Zc.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Zc.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Zc.prototype.size=function(e){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(e)},vn.prototype.center=function(e){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(e)},vn.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},vn.prototype.isIntersectionBox=function(e){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},vn.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},vn.prototype.size=function(e){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(e)},Dn.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Ai.prototype.setFromMatrix=function(e){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(e)},Jc.prototype.center=function(e){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(e)},qt.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},qt.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix3: .multiplyVector3(
1) has been removed. Use vector.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},qt.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},qt.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),e.applyMatrix3(this)},qt.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},qt.prototype.getInverse=function(e){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},Gn.prototype.extractPosition=function(e){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(e)},Gn.prototype.flattenToArrayOffset=function(e,t){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(e,t)},Gn.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new fn).setFromMatrixColumn(this,3)},Gn.prototype.setRotationFromQuaternion=function(e){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(e)},Gn.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},Gn.prototype.multiplyVector3=function(e){return console.warn("THREE.Matrix4: .multiplyVector3(
1) has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Gn.prototype.multiplyVector4=function(e){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Gn.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},Gn.prototype.rotateAxis=function(e){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),e.transformDirection(this)},Gn.prototype.crossVector=function(e){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Gn.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},Gn.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},Gn.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},Gn.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},Gn.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},Gn.prototype.applyToBufferAttribute=function(e){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),e.applyMatrix4(this)},Gn.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},Gn.prototype.makeFrustum=function(e,t,n,r,i,a){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(e,t,r,n,i,a)},Gn.prototype.getInverse=function(e){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(e).invert()},Ci.prototype.isIntersectionLine=function(e){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(e)},dn.prototype.multiplyVector3=function(e){return console.warn("THREE.Quaternion: .multiplyVector3(
1) has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),e.applyQuaternion(this)},dn.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},Vn.prototype.isIntersectionBox=function(e){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(e)},Vn.prototype.isIntersectionPlane=function(e){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(e)},Vn.prototype.isIntersectionSphere=function(e){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(e)},Cr.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},Cr.prototype.barycoordFromPoint=function(e,t){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(e,t)},Cr.prototype.midpoint=function(e){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(e)},Cr.prototypenormal=function(e){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(e)},Cr.prototype.plane=function(e){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(e)},Cr.barycoordFromPoint=function(e,t,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Cr.getBarycoord(e,t,n,r,i)},Cr.normal=function(e,t,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Cr.getNormal(e,t,n,r)},ql.prototype.extractAllPoints=function(e){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(e)},ql.prototype.extrude=function(e){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Mu(this,e)},ql.prototype.makeGeometry=function(e){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Cu(this,e)},Zt.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},Zt.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},Zt.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},fn.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},fn.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},fn.prototype.getPositionFromMatrix=function(e){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(e)},fn.prototype.getScaleFromMatrix=function(e){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(e)},fn.prototype.getColumnFromMatrix=function(e,t){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(t,e)},fn.prototype.applyProjection=function(e){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(e)},fn.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},fn.prototype.distanceToManhattan=function(e){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(e)},fn.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},un.prototype.fromAttribute=function(e,t,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(e,t,n)},un.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},mr.prototype.getChildByName=function(e){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(e)},mr.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},mr.prototype.translate=function(e,t){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(t,e)},mr.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")}
vendor: 11,159 bytes, line 1
1,mr.prototype.applyMatrix=function(e){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(mr.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(e){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=e}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),si.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(si.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),0},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),Ks.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},gi.prototype.setLens=function(e,t){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==t&&(this.filmGauge=t),this.setFocalLength(e)},Object.defineProperties(oc.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(e){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=e}},shadowCameraLeft:{set:function(e){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=e}},shadowCameraRight:{set:function(e){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=e}},shadowCameraTop:{set:function(e){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=e}},shadowCameraBottom:{set:function(e){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=e}},shadowCameraNear:{set:function(e){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=e}},shadowCameraFar:{set:function(e){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=e}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(e){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=e}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(e){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=e}},shadowMapHeight:{set:function(e){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=e}}}),Object.defineProperties(Pr.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===Pt},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(Pt)}}}),Pr.prototype.setDynamic=function(e){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?Pt:Lt),this},Pr.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},Pr.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Vr.prototype.addIndex=function(e){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(e)},Vr.prototype.addAttribute=function(e,t){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),t&&t.isBufferAttribute||t&&t.isInterleavedBufferAttribute?"index"===e?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(t),this):this.setAttribute(e,t):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(e,new Pr(arguments[1],arguments[2])))},Vr.prototype.addDrawCall=function(e,t,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(e,t)},Vr.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},Vr.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},Vr.prototype.removeAttribute=function(e){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(e)},Vr.prototype.applyMatrix=function(e){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(e)},Object.defineProperties(Vr.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Ts.prototype.setDynamic=function(e){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===e?Pt:Lt),this},Ts.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Mu.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Mu.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Mu.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Cs.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},Gc.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(kr.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new rn}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===e}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(e){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=e}},vertexTangents:{get:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")},set:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")}}}),Object.defineProperties(mi.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(e){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=e}}}),Ms.prototype.clearTarget=function(e,t,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(e),this.clear(t,n,r)},Ms.prototype.animate=function(e){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(e)},Ms.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Ms.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Ms.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Ms.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Ms.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Ms.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Ms.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Ms.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Ms.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Ms.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Ms.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Ms.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_
1instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Ms.prototype.enableScissorTest=function(e){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(e)},Ms.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Ms.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Ms.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Ms.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Ms.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Ms.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Ms.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Ms.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Ms.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Ms.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Ms.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=e}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(e){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=e}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(e){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===e?Et:Mt}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}},gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}}),Object.defineProperties(ds.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(cn.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=e}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(e){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=e}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=e}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(e){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=e}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy 
1is now .texture.anisotropy."),this.texture.anisotropy},set:function(e){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=e}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(e){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=e}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(e){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=e}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(e){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=e}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(e){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=e}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(e){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=e}}}),Oc.prototype.load=function(e){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var t=this;return(new Ac).load(e,(function(e){t.setBuffer(e)})),this},Lc.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},bi.prototype.updateCubeMap=function(e,t){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update(
1)."),this.update(e,t)},bi.prototype.clear=function(e,t,n,r){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(e,t,n,r)},an.crossOrigin=void 0,an.loadTexture=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var i=new ac;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},an.loadTextureCube=function(e,t,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var i=new ic;i.setCrossOrigin(this.crossOrigin);var a=i.load(e,n,void 0,r);return t&&(a.mapping=t),a},an.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},an.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:m}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=m)},WtKE:function(e,t,n){"use strict";var r,i=59;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,(t=r.textContent).charCodeAt(t.length-1)===i&&"semi"!==e)return!1;return t!==n&&t}},Y9lz:function(e,t,n){n("7DDg")("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},Z87L:function(e){e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')},ZB7h:function(e,t,n){e.exports=n.p+"static/stars-6494ab5b3760b5e2cc46f5566a245371.png"},ZNIu:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ANONYMOUS";if("undefined"==typeof window)return null;if(e[t]){if(!(e[t]instanceof window.Element))return new Error('Prop name "'.concat(t,'" in <').concat(n,"> must be an HTML DOM element."))}return null}},ZO1O:function(e,t,n){"use strict";n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("91GP");var r=n("q1tI"),i=n.n(r),a=n("vOnD"),o=n("Y7ja");var s=a.e.div.withConfig({displayName:"Card__Wrapper",componentId:"sc-2z6ouu-0"})(["display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding:3rem 1.875rem;border-radius:0.63rem;background:#f9f9f9;text-align:",";"],(function(e){return e.centered?"center":"left"})),l=a.e.i.withConfig({displayName:"Card__Icon",componentId:"sc-2z6ouu-1"})(["display:inline-block;margin-bottom:1.25rem;@media screen and (min-width:","){margin:0 0 2rem;}"],o.a.md),u=a.e.h5.withConfig({displayName:"Card__Title",componentId:"sc-2z6ouu-2"})(["margin:0 0 1rem 0;font-family:Helvetica;font-size:1.125rem;font-weight:700;color:#1c2f45;letter-spacing:0;"]),c=a.e.div.withConfig({displayName:"Card__Body",componentId:"sc-2z6ouu-3"})(["flex:1;font-size:0.875rem;color:#1c2f45;letter-spacing:0;line-height:1.375;"]);function h(e){var t=e.icon,n=e.title,r=e.footer,a=e.children,o=e.className,h=e.centered,d=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["icon","title","footer","children","className","centered"]);return i.a.createElement(s,Object.assign({className:o,centered:h},d),t&&i.a.createElement(l,null,t),n&&i.a.createElement(u,null,n),i.a.createElement(c,null,a),r)}h.defaultProps={icon:null,title:null,footer:null,children:null,centered:!1,className:null},t.a=h},ZONP:function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},ZWk2:function(e,t,n){"use strict";var r=n("m2n9"),i=n("Z87L"),a=n("ZONP"),o=n("fjrl"),s=n("J5yW"),l=n("WtKE");e.exports=function(e,t){var n,a,o={};t||(t={});for(a in d)n=t[a],o[a]=null==n?d[a]:n;(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start);return function(e,t){var n,a,o,d,B,z,H,U,V,G,W,Z,q,X,J,Y,K,Q,$,ee=t.additional,te=t.nonTerminated,ne=t.text,re=t.reference,ie=t.warning,ae=t.textContext,oe=t.referenceContext,se=t.warningContext,le=t.position,ue=t.indent||[],ce=e.length,he=0,de=-1,fe=le.column||1,pe=le.line||1,me="",ve=[];"string"==typeof ee&&(ee=ee.charCodeAt(0));Y=ye(),U=ie?function(e,t){var n=ye();n.column+=t,n.offset+=t,ie.call(se,N[e],n,e)}:h,he--,ce++;for(;++he<ce;)if(B===p&&(fe=ue[de]||1),(B=e.charCodeAt(he))===g){if((H=e.charCodeAt(he+1))===f||H===p||H===m||H===v||H===g||H===x||H!=H||ee&&H===ee){me+=c(B),fe++;continue}
1for(Z=q=he+1,$=q,H===_?($=++Z,(H=e.charCodeAt($))===w||H===M?(X=C,$=++Z):X=T):X=S,n="",W="",d="",J=A[X],$--;++$<ce&&(H=e.charCodeAt($),J(H));)d+=c(H),X===S&&u.call(r,d)&&(n=d,W=r[d]);(o=e.charCodeAt($)===y)&&($++,(a=X===S&&l(d))&&(n=d,W=a)),Q=1+$-q,(o||te)&&(d?X===S?(o&&!W?U(I,1):(n!==d&&($=Z+n.length,Q=1+$-Z,o=!1),o||(V=n?O:P,t.attribute?(H=e.charCodeAt($))===b?(U(V,Q),W=null):s(H)?W=null:U(V,Q):U(V,Q))),z=W):(o||U(L,Q),z=parseInt(d,k[X]),(ge=z)>=55296&&ge<=57343||ge>1114111?(U(j,Q),z=c(E)):z in i?(U(D,Q),z=i[z]):(G="",F(z)&&U(D,Q),z>65535&&(G+=c((z-=65536)>>>10|55296),z=56320|1023&z),z=G+c(z))):X!==S&&U(R,Q)),z?(xe(),Y=ye(),he=$-1,fe+=$-q+1,ve.push(z),(K=ye()).offset++,re&&re.call(oe,z,{start:Y,end:K},e.slice(q-1,$)),Y=K):(d=e.slice(q-1,$),me+=d,fe+=d.length,he=$-1)}else 10===B&&(pe++,de++,fe=0),B==B?(me+=c(B),fe++):xe();var ge;return ve.join("");function ye(){return{line:pe,column:fe,offset:he+(le.offset||0)}}function xe(){me&&(ve.push(me),ne&&ne.call(ae,me,{start:Y,end:ye()}),me="")}}(e,o)};var u={}.hasOwnProperty,c=String.fromCharCode,h=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,p=10,m=12,v=32,g=38,y=59,x=60,b=61,_=35,w=88,M=120,E=65533,S="named",C="hexadecimal",T="decimal",k={};k[C]=16,k[T]=10;var A={};A[S]=s,A[T]=a,A[C]=o;var O=1,L=2,P=3,R=4,I=5,D=6,j=7,N={};function F(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}N[O]="Named character references must be terminated by a semicolon",N[L]="Numeric character references must be terminated by a semicolon",N[P]="Named character references cannot be empty",N[R]="Numeric character references cannot be empty",N[I]="Named character references must be known",N[D]="Numeric character references cannot be disallowed",N[j]="Numeric character references cannot be outside the permissible Unicode range"},ZkSf:function(e,t,n){"use strict";n("V+eJ"),e.exports=s;var r=n("uzq8"),i=r.CONTINUE,a=r.SKIP,o=r.EXIT;function s(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}s.CONTINUE=i,s.SKIP=a,s.EXIT=o},Zz4T:function(e,t,n){"use strict";n("OGtf")("sub",(function(e){return function(){return e(this,"sub","","")}}))},a3WO:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},aCXt:function(e,t,n){"use strict";n("V+eJ"),n("f3/d");var r=n("/qNp");function i(){}e.exports=o,i.prototype=Error.prototype,o.prototype=new i;var a=o.prototype;function o(e,t,n){var i,a,o;"string"==typeof t&&(n=t,t=null),i=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),a=r(t)||"1:1",o={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(o=t,t=t.start):o.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=o,this.source=i[0],this.ruleId=i[1]}a.file="",a.name="",a.reason="",a.message="",a.stack="",a.fatal=null,a.column=null,a.line=null},akNn:function(e,t,n){"use strict";var r=n("IPAr");e.exports=function(e,t,n){var i,a,o,s,l=t.charAt(0);if("\n"!==l)return;if(n)return!0;s=1,i=t.length,a=l,o="";for(;s<i&&(l=t.charAt(s),r(l));)o+=l,"\n"===l&&(a+=o,o=""),s++;e(a)}},appx:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.y0,n=e.y1,i=e.x1,a=e.x0,o=(0,r.parseValueAndUnit)(t),s=(0,r.parseValueAndUnit)(n),l=(0,r.parseValueAndUnit)(a),u=(0,r.parseValueAndUnit)(i);
1if(l.unit!==u.unit||o.unit!==s.unit)throw new Error("Must provide matching units for the min and max offset values of each axis.");var c=l.unit||"%",h=o.unit||"%";return{xUnit:c,yUnit:h,y0:o,y1:s,x0:l,x1:u}};var r=n("H2s6")},"aqI/":function(e,t,n){n("7DDg")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},c6LQ:function(e,t,n){"use strict";n("V+eJ");var r=n("IPAr"),i=n("ACGk"),a=n("d+Jj");e.exports=v,v.locator=i;var o="link",s="image",l="footnote",u="shortcut",c="collapsed",h="full",d="^",f="\\",p="[",m="]";function v(e,t,n){var i,v,g,y,x,b,_,w,M=t.charAt(0),E=0,S=t.length,C="",T="",k=o,A=u;if("!"===M&&(k=s,T=M,M=t.charAt(++E)),M===p){if(E++,T+=M,b="",this.options.footnotes&&t.charAt(E)===d){if(k===s)return;T+=d,E++,k=l}for(w=0;E<S;){if((M=t.charAt(E))===p)_=!0,w++;else if(M===m){if(!w)break;w--}M===f&&(b+=f,M=t.charAt(++E)),b+=M,E++}if(C=b,i=b,(M=t.charAt(E))===m){for(E++,C+=M,b="";E<S&&(M=t.charAt(E),r(M));)b+=M,E++;if(M=t.charAt(E),k!==l&&M===p){for(v="",b+=M,E++;E<S&&(M=t.charAt(E))!==p&&M!==m;)M===f&&(v+=f,M=t.charAt(++E)),v+=M,E++;(M=t.charAt(E))===m?(A=v?h:c,b+=v+M,E++):v="",C+=b,b=""}else{if(!i)return;v=i}if(A===h||!_)return C=T+C,k===o&&this.inLink?null:!!n||(k===l&&-1!==i.indexOf(" ")?e(C)({type:"footnote",children:this.tokenizeInline(i,e.now())}):((g=e.now()).column+=T.length,g.offset+=T.length,y={type:k+"Reference",identifier:a(v=A===h?v:i)},k!==o&&k!==s||(y.referenceType=A),k===o?(x=this.enterLink(),y.children=this.tokenizeInline(i,g),x()):k===s&&(y.alt=this.decode.raw(this.unescape(i),g)||null),e(C)(y)))}}}},cBNe:function(e,t,n){"use strict";var r=n("ZkSf");function i(e){delete e.position}function a(e){e.position=void 0}e.exports=function(e,t){return r(e,t?i:a),e}},cFAA:function(e,t,n){"use strict";var r=n("IPAr"),i=n("36yr");e.exports=o,o.locator=i;var a="`";function o(e,t,n){for(var i,o,s,l,u,c,h,d,f=t.length,p=0,m="",v="";p<f&&t.charAt(p)===a;)m+=a,p++;if(m){for(u=m,l=p,m="",d=t.charAt(p),s=0;p<f;){if(c=d,d=t.charAt(p+1),c===a?(s++,v+=c):(s=0,m+=c),s&&d!==a){if(s===l){u+=m+v,h=!0;break}m+=v,v=""}p++}if(!h){if(l%2!=0)return;m=""}if(n)return!0;for(i="",o="",f=m.length,p=-1;++p<f;)c=m.charAt(p),r(c)?o+=c:(o&&(i&&(i+=o),o=""),i+=c);return e(u)({type:"inlineCode",value:i})}}},cVWj:function(e,t,n){"use strict";n("V+eJ"),n("SRfc");var r=n("ZkSf"),i="virtualHtml",a=/^<(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\s*\/?>$/i,o=/^<(\/?)([a-z]+)\s*>$/;e.exports=function(e){var t,n;return r(e,"html",(function(e,r,s){n!==s&&(t=[],n=s);var l=function(e){var t=e.value.match(a);return!!t&&t[1]}(e);if(l)return s.children.splice(r,1,{type:i,tag:l,position:e.position}),!0;var u=function(e,t){var n=e.value.match(o);return!!n&&{tag:n[2],opening:!n[1],node:e}}(e);if(!u)return!0;var c=function(e,t){var n=e.length;for(;n--;)if(e[n].tag===t)return e.splice(n,1)[0];return!1}(t,u.tag);return c?s.children.splice(r,0,function(e,t,n){var r=n.children.indexOf(e.node),a=n.children.indexOf(t.node),o=n.children.splice(r,a-r+1).slice(1,-1);return{type:i,children:o,tag:e.tag,position:{start:e.node.position.start,end:t.node.position.end,indent:[]}}}(u,c,s)):u.opening||t.push(u),!0}),!0),e}},cmLN:function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,a,o,s,l,u,c=["pedantic","commonmark"],h=c.length,d=e.length,f=-1;for(;++f<d;){for(i=e[f],a=i[1]||{},o=i[0],s=-1,u=!1;++s<h;)if(void 0!==a[l=c[s]]&&a[l]!==n.options[l]){u=!0;break}if(!u&&t[o].apply(n,r))return!0}return!1}},"d+Jj":function(e,t,n){"use strict";var r=n("JqBK");e.exports=function(e){return r(e).toLowerCase()}},egI8:function(e,t,n){"use strict";var r=n("IPAr"),i=n("Fhq4");e.exports=s,s.locator=i;var a="~",o="~~";function s(e,t,n){var i,s,l,u="",c="",h="",d="";if(this.options.gfm&&t.charAt(0)===a&&t.charAt(1)===a&&!r(t.charAt(2)))for(i=1,s=t.length,(l=e.now()).column+=2,l.offset+=2;++i<s;
1){if(!((u=t.charAt(i))!==a||c!==a||h&&r(h)))return!!n||e(o+d+o)({type:"delete",children:this.tokenizeInline(d,l)});d+=c,h=c,c=u}}},fN96:function(e,t,n){var r=n("XKFU");r(r.S,"Number",{isInteger:n("nBIS")})},fjrl:function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},foSv:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},fsL8:function(e,t,n){var r=n("cDf5").default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(L){h=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new k(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var p={};function m(){}function v(){}function g(){}var y={};h(y,l,(function(){return this}));var x=Object.getPrototypeOf,b=x&&x(x(A([])));b&&b!==n&&a.call(b,l)&&(y=b);var _=g.prototype=m.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){var n;o(this,"_invoke",{value:function(i,o){function s(){return new t((function(n,s){!function n(i,o,s,l){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==r(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(h).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}(i,o,n,s)}))}return n=n?n.then(s,s):s()}})}function E(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function A(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return v.prototype=g,o(_,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=h(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,h(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},w(M.prototype),h(M.prototype,u,(function(){return this})),t.AsyncIterator=M,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new M(d(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(_),h(_,c,"Generator"),h(_,l,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
1h(T),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},fukl:function(e,t,n){"use strict";var r;n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((r=n("q1tI"))&&r.__esModule?r:{default:r}).default.createContext(null);t.default=i},g1k0:function(e,t,n){"use strict";n("SRfc");var r=n("1iAE"),i=n("NBu1"),a=n("1T8B").tag;e.exports=l,l.locator=i;var o=/^<a /i,s=/^<\/a>/i;function l(e,t,n){var i,l,u=t.length;if(!("<"!==t.charAt(0)||u<3)&&(i=t.charAt(1),(r(i)||"?"===i||"!"===i||"/"===i)&&(l=t.match(a))))return!!n||(l=l[0],!this.inLink&&o.test(l)?this.inLink=!0:this.inLink&&s.test(l)&&(this.inLink=!1),e(l)({type:"html",value:l}))}},"h/M4":function(e,t,n){var r=n("XKFU");r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},h9ck:function(e,t,n){"use strict";n("rE2o"),n("ioFf");t.HtmlParser="undefined"==typeof Symbol?"__RMD_HTML_PARSER__":Symbol("__RMD_HTML_PARSER__")},hEFP:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(n){}return e}},ho0Y:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){return(n-t)*(e-r)/(i-r)+t}},kDuX:function(e,t,n){"use strict";e.exports=function(e,t,n){var l,u,c,h=this.options,d=t.length+1,f=-1,p=e.now(),m="",v="";for(;++f<d;){if((l=t.charAt(f))!==a&&l!==i){f--;break}m+=l}c=0;for(;++f<=d;){if((l=t.charAt(f))!==o){f--;break}m+=l,c++}if(c>s)return;if(!c||!h.pedantic&&t.charAt(f+1)===o)return;d=t.length+1,u="";for(;++f<d;){if((l=t.charAt(f))!==a&&l!==i){f--;break}u+=l}if(!h.pedantic&&0===u.length&&l&&l!==r)return;if(n)return!0;m+=u,u="",v="";for(;++f<d&&(l=t.charAt(f))&&l!==r;)if(l===a||l===i||l===o){for(;l===a||l===i;)u+=l,l=t.charAt(++f);for(;l===o;)u+=l,l=t.charAt(++f);for(;l===a||l===i;)u+=l,l=t.charAt(++f);f--}else v+=u+l,u="";return p.column+=m.length,p.offset+=m.length,e(m+=v+u)({type:"heading",depth:c,children:this.tokenizeInline(v,p)})};var r="\n",i="\t",a=" ",o="#",s=6},kJKS:function(e,t,n){"use strict";
1n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=t.getBoundingClientRect();if(n.scrollContainer){var a=n.scrollContainer.getBoundingClientRect();i={top:i.top-a.top,right:i.right-a.left,bottom:i.bottom-a.top,left:i.left-a.left}}this.height=t.offsetHeight,this.width=t.offsetWidth,this.left=i.left+r.x,this.right=i.right+r.x,this.top=i.top+r.y,this.bottom=i.bottom+r.y,this.originTotalDistY=n.height+this.height,this.originTotalDistX=n.width+this.width};t.default=r},kmJ7:function(e,t,n){"use strict";var r=n("RjOF"),i=n("3GlI");e.exports=function(e,t,n){var r,u,c,h=-1,d=t.length,f="",p="",m="",v="";for(;++h<d;)if(r=t.charAt(h),c)if(c=!1,f+=m,p+=v,m="",v="",r===a)m=r,v=r;else for(f+=r,p+=r;++h<d;){if(!(r=t.charAt(h))||r===a){v=r,m=r;break}f+=r,p+=r}else if(r===s&&t.charAt(h+1)===r&&t.charAt(h+2)===r&&t.charAt(h+3)===r)m+=l,h+=3,c=!0;else if(r===o)m+=r,c=!0;else{for(u="";r===o||r===s;)u+=r,r=t.charAt(++h);if(r!==a)break;m+=u+r,v+=r}if(p)return!!n||e(f)({type:"code",lang:null,value:i(p)})};var a="\n",o="\t",s=" ",l=r(s,4)},kywa:function(e,t,n){"use strict";n("dRSK"),n("SRfc"),n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{value:0,unit:"px"};if("number"!=typeof e&&"string"!=typeof e)throw new Error("Invalid value provided. Must provide a value as a string or number");if(e=String(e),t.value=parseFloat(e,10),t.unit=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"%",!["px","%"].find((function(e){return e===t.unit})))throw new Error("Invalid unit provided. Must provide a unit of px in or %");return t}},l0Rn:function(e,t,n){"use strict";var r=n("RYi7"),i=n("vhPU");e.exports=function(e){var t=String(i(this)),n="",a=r(e);
1if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},lebq:function(e,t,n){"use strict";e.exports=function(e,t,n){var l,u,c,h,d,f=e.now(),p=t.length,m=-1,v="";for(;++m<p;){if((c=t.charAt(m))!==a||m>=o){m--;break}v+=c}l="",u="";for(;++m<p;){if((c=t.charAt(m))===r){m--;break}c===a||c===i?u+=c:(l+=u+c,u="")}if(f.column+=v.length,f.offset+=v.length,v+=l+u,c=t.charAt(++m),h=t.charAt(++m),c!==r||!s[h])return;v+=c,u=h,d=s[h];for(;++m<p;){if((c=t.charAt(m))!==h){if(c!==r)return;m--;break}u+=c}if(n)return!0;return e(v+u)({type:"heading",depth:d,children:this.tokenizeInline(l,f)})};var r="\n",i="\t",a=" ",o=3,s={};s["="]=1,s["-"]=2},lgF9:function(e,t,n){"use strict";var r=n("7XrY");e.exports=a,a.locator=r;var i=2;function a(e,t,n){for(var r,a=t.length,o=-1,s="";++o<a;){if("\n"===(r=t.charAt(o))){if(o<i)return;return!!n||e(s+=r)({type:"break"})}if(" "!==r)return;s+=r}}},ls82:function(e,t,n){n("rGqo"),n("yt8O"),n("a1Th"),n("h7Nl"),n("VRzm"),n("Btvt"),n("/SS/"),n("f3/d"),n("8+KV"),n("hHhE"),n("rE2o"),n("ioFf");var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),o=new T(r||[]);return a._invoke=function(e,t,n){var r=c;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw a;return A()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?f:h,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var c="suspendedStart",h="suspendedYield",d="executing",f="completed",p={};function m(){}function v(){}function g(){}var y={};y[a]=function(){return this};var x=Object.getPrototypeOf,b=x&&x(x(k([])));b&&b!==n&&r.call(b,a)&&(y=b);var _=g.prototype=m.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function M(e){var t;this._invoke=function(n,i){function a(){return new Promise((function(t,a){!function t(n,i,a,o){var s=u(e[n],e,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,a,o)}),(function(e){t("throw",e,a,o)})):Promise.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return t("throw",e,a,o)}))}o(s.arg)}(n,i,t,a)}))}return t=t?t.then(a,a):a()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:A}}function A(){return{value:t,done:!0}}return v.prototype=_.constructor=g,g.constructor=v,g[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(M.prototype),M.prototype[o]=function(){return this},e.AsyncIterator=M,e.async=function(t,n,r,i){var a=new M(l(t,n,r,i));return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),_[s]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
1h(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},lvtm:function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},m2n9:function(e){e.exports=JSON.parse('{"AElig":"Æ","AMP":"&","Aacute":"Á","Acirc":"Â","Agrave":"À","Aring":"Å","Atilde":"Ã","Auml":"Ä","COPY":"©","Ccedil":"Ç","ETH":"Ð","Eacute":"É","Ecirc":"Ê","Egrave":"È","Euml":"Ë","GT":">","Iacute":"Í","Icirc":"Î","Igrave":"Ì","Iuml":"Ï","LT":"<","Ntilde":"Ñ","Oacute":"Ó","Ocirc":"Ô","Ograve":"Ò","Oslash":"Ø","Otilde":"Õ","Ouml":"Ö","QUOT":"\\"","REG":"®","THORN":"Þ","Uacute":"Ú","Ucirc":"Û","Ugrave":"Ù","Uuml":"Ü","Yacute":"Ý","aacute":"á","acirc":"â","acute":"´","aelig":"æ","agrave":"à","amp":"&","aring":"å","atilde":"ã","auml":"ä","brvbar":"¦","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","curren":"¤","deg":"°","divide":"÷","eacute":"é","ecirc":"ê","egrave":"è","eth":"ð","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","iacute":"í","icirc":"î","iexcl":"¡","igrave":"ì","iquest":"¿","iuml":"ï","laquo":"«","lt":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","ntilde":"ñ","oacute":"ó","ocirc":"ô","ograve":"ò","ordf":"ª","ordm":"º","oslash":"ø","otilde":"õ","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","raquo":"»","reg":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","thorn":"þ","times":"×","uacute":"ú","ucirc":"û","ugrave":"ù","uml":"¨","uuml":"ü","yacute":"ý","yen":"¥","yuml":"ÿ"}')},mFtL:function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return o;if("object"==typeof e)return("length"in e?a:i)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function i(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function a(e){var t=function(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=r(e[i]);return t}(e),n=t.length;return function(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}function o(){return!0}e.exports=r},mcUT:function(e,t,n){"use strict";n("V+eJ");var r=n("FxOa");function i(e,t,n){var r,i;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(i))}
1e.exports=i,i.locator=r},md7G:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("U8pU"),i=n("JX7q");function a(e,t){if(t&&("object"===Object(r.a)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(i.a)(e)}},nBIS:function(e,t,n){var r=n("0/R4"),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},nCnK:function(e,t,n){n("7DDg")("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},nJMu:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.isElementInView=function(e,t,n,r){var i=e-r,a=t-r,o=a>=0&&a<=n,s=i<=0&&a>=n;return i>=0&&i<=n||o||s}},nLTZ:function(e,t,n){"use strict";n("WLL4"),n("jm62"),n("8+KV"),n("0l/t"),n("ioFf"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.Element=void 0;var r=n("H2s6"),i=n("qJUE"),a=n("MLbX"),o=l(n("xTHp")),s=l(n("kJKS"));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elInner=t.elInner,this.elOuter=t.elOuter,this.props=t.props,this.scrollAxis=t.scrollAxis,this.id=(0,r.createId)(),this.offsets=(0,i.getOffsets)(this.props),this.isInView=null,this.percent=0,this.updatePosition=t.scrollAxis===a.VERTICAL?this._updatePositionVertical:this._updatePositionHorizontal}var t,n,l;return t=e,(n=[{key:"updateProps",value:function(e){return this.props=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props,{},e),this.offsets=(0,i.getOffsets)(e),this}},{key:"setCachedAttributes",value:function(e,t){return this.rect=new s.default(this.elOuter,e,t),this.bounds=new o.default(this.rect,this.offsets,e),this}},{key:"_updatePositionHorizontal",value:function(e,t){return this.isInView=(0,i.isElementInView)(this.bounds.left,this.bounds.right,e.width,t.x),this.isInView?(this.percent=(0,i.percentMoved)(this.rect.left,this.rect.originTotalDistX,e.width,t.x),(0,i.setParallaxStyles)(this.elInner,this.offsets,this.percent),this):this}},{key:"_updatePositionVertical",value:function(e,t){return this.isInView=(0,i.isElementInView)(this.bounds.top,this.bounds.bottom,e.height,t.y),this.isInView?(this.percent=(0,i.percentMoved)(this.rect.top,this.rect.originTotalDistY,e.height,t.y),(0,i.setParallaxStyles)(this.elInner,this.offsets,this.percent),this):this}}])&&h(t.prototype,n),l&&h(t,l),e}();t.Element=d},o0o1:function(e,t,n){var r=n("fsL8")();e.exports=r;try{regeneratorRuntime=r}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},o46R:function(e,t,n){"use strict";var r=n("U8pU");function i(e){var t=function(e,t){if("object"!==Object(r.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Object(r.a)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(r.a)(t)?t:String(t)}n.d(t,"a",(function(){return i}))},obXZ:function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\w/},"pp/T":function(e,t,n){var r=n("XKFU");r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},qJUE:function(e,t,n){"use strict";
1n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ParallaxContext",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"percentMoved",{enumerable:!0,get:function(){return i.percentMoved}}),Object.defineProperty(t,"setParallaxStyles",{enumerable:!0,get:function(){return a.setParallaxStyles}}),Object.defineProperty(t,"resetStyles",{enumerable:!0,get:function(){return a.resetStyles}}),Object.defineProperty(t,"getParallaxOffsets",{enumerable:!0,get:function(){return o.getParallaxOffsets}}),Object.defineProperty(t,"isElementInView",{enumerable:!0,get:function(){return s.isElementInView}}),Object.defineProperty(t,"getOffsets",{enumerable:!0,get:function(){return l.default}});var r=u(n("fukl")),i=n("UHTB"),a=n("7OGT"),o=n("MUSX"),s=n("nJMu"),l=u(n("appx"));function u(e){return e&&e.__esModule?e:{default:e}}},qPMR:function(e,t,n){"use strict";var r=n("RsFJ"),i=n("IPAr"),a=n("044C");e.exports=l,l.locator=a;var o="*",s="_";function l(e,t,n){var a,l,u,c,h,d,f,p=0,m=t.charAt(p);if(!(m!==o&&m!==s||t.charAt(++p)!==m||(l=this.options.pedantic,h=(u=m)+u,d=t.length,p++,c="",m="",l&&i(t.charAt(p)))))for(;p<d;){if(f=m,!((m=t.charAt(p))!==u||t.charAt(p+1)!==u||l&&i(f))&&(m=t.charAt(p+2))!==u){if(!r(c))return;return!!n||((a=e.now()).column+=2,a.offset+=2,e(h+c+h)({type:"strong",children:this.tokenizeInline(c,a)}))}l||"\\"!==m||(c+=m,m=t.charAt(++p)),c+=m,p++}}},qUik:function(e,t,n){"use strict";var r=n("U6jy"),i=n("MQ5/"),a=n("3+Nb");e.exports=function(e){var t,n,o=this.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in a){if(null==(n=e[t])&&(n=o[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return this.options=e,this.escape=i(e),this}},r1bV:function(e,t,n){n("7DDg")("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},rUY8:function(e,t,n){"use strict";e.exports=function(e,t,n){var c,h,d,f,p=-1,m=t.length+1,v="";for(;++p<m&&((c=t.charAt(p))===i||c===a);)v+=c;if(c!==o&&c!==l&&c!==s)return;h=c,v+=c,d=1,f="";for(;++p<m;)if((c=t.charAt(p))===h)d++,v+=f+h,f="";else{if(c!==a)return d>=u&&(!c||c===r)?(v+=f,!!n||e(v)({type:"thematicBreak"})):void 0;f+=c}};var r="\n",i="\t",a=" ",o="*",s="_",l="-",u=3},rePB:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("o46R");function i(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},sEfC:function(e,t,n){var r=n("GoyQ"),i=n("QIyF"),a=n("tLB3"),o="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var u,c,h,d,f,p,m=0,v=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError(o);function x(t){var n=u,r=c;return u=c=void 0,m=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-m>=h}function _(){var e=i();if(b(e))return w(e);f=setTimeout(_,function(e){var n=t-(e-p);return g?l(n,h-(e-m)):n}(e))}function w(e){return f=void 0,y&&u?x(e):(u=c=void 0,d)}function M(){var e=i(),n=b(e);if(u=arguments,c=this,p=e,n){if(void 0===f)return function(e){return m=e,f=setTimeout(_,t),v?x(e):d}(p);if(g)return clearTimeout(f),f=setTimeout(_,t),x(p)}return void 0===f&&(f=setTimeout(_,t)),d}return t=a(t)||0,r(n)&&(v=!!n.leading,h=(g="maxWait"in n)?s(a(n.maxWait)||0,t):h,y="trailing"in n?!!n.trailing:y),M.cancel=function(){void 0!==f&&clearTimeout(f),m=0,u=p=c=f=void 0},M.flush=function(){return void 0===f?d:w(i())},M}},sFw1:function(e,t,n){n("7DDg")("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},soWj:function(e,t,n){"use strict";n("V+eJ");var r=n("RsFJ"),i=n("cmLN");e.exports=function(e,t,n){var u,c,h,d,f,p,m,v,g,y=this.offset,x=this.blockTokenizers,b=this.interruptBlockquote,_=e.now(),w=_.line,M=t.length,E=[],S=[],C=[],T=0;for(;T<M&&((c=t.charAt(T))===s||c===o);)T++;if(t.charAt(T)!==l)return;if(n)return!0;T=0;for(;T<M;){for(d=t.indexOf(a,T),m=T,v=!1,-1===d&&(d=M);T<M&&((c=t.charAt(T))===s||c===o);)T++;if(t.charAt(T)===l?(T++,v=!0,t.charAt(T)===s&&T++):T=m,f=t.slice(T,d),!v&&!r(f)){T=m;break}if(!v&&(h=t.slice(T),i(b,x,this,[e,h,!0])))break;p=m===T?f:t.slice(m,d),C.push(T-m),E.push(p),S.push(f),T=d+1}T=-1,M=C.length,u=e(E.join(a));for(;++T<M;)y[w]=(y[w]||0)+C[T],w++;return g=this.enterBlock(),S=this.tokenizeBlock(S.join(a),_),g(),u({type:"blockquote",children:S})};var a="\n",o="\t",s=" ",l=">"},tuSo:function(e,t,n){n("7DDg")("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},tvOo:function(e,t,n){"use strict";n("V+eJ"),n("Oyvg");var r=n("1T8B").openCloseTag;e.exports=function(e,t,n){var l,u,c,h,d,f,p,m=this.options.blocks,v=t.length,g=0,y=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+m.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];for(;g<v&&((h=t.charAt(g))===i||h===a);)g++;if(t.charAt(g)!==s)return;l=-1===(l=t.indexOf(o,g+1))?v:l,u=t.slice(g,l),c=-1,d=y.length;for(;++c<d;)if(y[c][0].test(u)){f=y[c];break}if(!f)return;if(n)return f[2];if(g=l,!f[1].test(u))for(;g<v;){if(l=-1===(l=t.indexOf(o,g+1))?v:l,u=t.slice(g+1,l),f[1].test(u)){u&&(g=l);break}g=l}return p=t.slice(0,g),e(p)({type:"html",value:p})};var i="\t",a=" ",o="\n",s="<"},"u3i/":function(e,t,n){"use strict";n("8+KV");var r=n("ZkSf");function i(e,t,n,r){if("remove"===r)n.children.splice(t,1);else if("unwrap"===r){var i=[t,1];e.children&&(i=i.concat(e.children)),Array.prototype.splice.apply(n.children,i)}}t.ofType=function(e,t){return function(t){return e.forEach((function(e){return r(t,e,n,!0)})),t};function n(e,n,r){r&&i(e,n,r,t)}},t.ifNotMatch=function(e,t){return function(e){return r(e,n,!0),e};function n(n,r,a){a&&!e(n,r,a)&&i(n,r,a,t)}}},u7ke:function(e,t,n){"use strict";n("hHhE"),n("/SS/"),n("rE2o"),n("ioFf"),n("rGqo"),n("yt8O"),n("Btvt"),n("XfO3"),n("EK0E"),n("HAE/"),Object.defineProperty(t,"__esMo
1dule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=c();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),i=u(n("17x9")),a=u(n("fukl")),o=u(n("QKcw")),s=n("MLbX"),l=u(n("ZNIu"));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){return"undefined"==typeof window?null:o.default.init(e)},y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=f(this,p(t).call(this,e))).controller=g({scrollAxis:e.scrollAxis,scrollContainer:e.scrollContainer}),n}var n,i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),n=t,(i=[{key:"componentDidUpdate",value:function(e){e.scrollContainer!==this.props.scrollContainer&&this.controller.updateScrollContainer(this.props.scrollContainer)}},{key:"componentWillUnmount",value:function(){this.controller=this.controller.destroy()}},{key:"render",value:function(){var e=this.props.children;return r.default.createElement(a.default.Provider,{value:this.controller},e)}}])&&d(n.prototype,i),o&&d(n,o),t}(r.Component);t.default=y,v(y,"defaultProps",{scrollAxis:s.VERTICAL}),v(y,"propTypes",{children:i.default.node.isRequired,scrollAxis:i.default.oneOf([s.VERTICAL,s.HORIZONTAL]),scrollContainer:l.default})},ujXz:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAFalJREFUeNrMXYl22zgSbBwk7ez/f+omEkkAO84SnlKpGqQzdjJ+T0+WLFMkCn1VHwxmFkz/BHruv789Irxux2v1uXa87p9v4vua8/dC38XHDvC9/ZH+emQ6p/mvx3T873Q88vH3BT43Hf8/H+9F+o4E51jh2trx2I9z3o/X2/G6wO9vf7sd///2WI/nrR83XwAjDN7DxY7ivf6Tjv8psFgMhAJsBDQvVDx+79/VFz0fj/l4TvQ6ADD5ACbA6yA2FQLRASrwWI/j78cjHYvez+9+vG/H+31tSr4IRBC7MziL12CR8GIaXGCgi+uvK3w2EGg2kNQEuxoXdAaJSCAhM0hCpt8nOF4iaWEg+qOABBQAo+/+DCD0c1/h+F2KWj7ZjSZUFC4y7vQowGNJiCQFjVRbEuqrENhBHA93PgKTQBJmAOjt/ReQHpaiiQAJJJ31+P4dzn09zrWroh3A6JtiP47XpaKylsmOSjJHElhfM0DJUWes95sAA4GtBCoCW4V+7zZiPp7zoYb6YiywKAjMBCAsAGwC4PAcTEhJAUnoO306Fn89Xnd1dTuOt4PqegH1ZZ4NMVqQIF7j4mda+ESfbeJYkYxjACmpoJcn+v5K59DV4wLvzbTwCyz6TCAhOBPZkUzgR5KQCou5AiDb8boDcgOA+/sBwLkxIHFgM6LQ28lRUxkWKBE4aFuMFtgIOFRZdbBR2IgnWNAOyAIAvNDreSA5UTxQQgqBsghA+vN0PL99z3c65h3VenZcWaWnE+2WDCAEUlmZjheFxODfCnlOqBJGXmCExZtB1XSb8Hq89w0W/BWA6u+hPZlIdSXhflfysHYw6AjGHQC+wRrdxPGse1nxxHawyEZSFZPQ5YEuKpALbAKYRiohgffCLnGGi1jgHLJQSS8AwALgvJIay8Iri+RosKeFqhVjja6WlmPxb7AWt0Es1bKIJQIBgHYhUgCWQN8mAiuR1LAeDqQCgtgxHISx8TdyVRdSWS+kqhCQBcBiW5IEIGFg1AtIyQ7HW8mLS0Jb4CZsWaDFoGRySTGSzXQBCowsIl/2sNArK/B+JUCiY9QTSMkCKugVgHk5Xr8QUDNJRoZzTuK8GZRCj+049goqi9UfsxXvkpZPpMMzmgjEREAluqBEYp9EgFfpIo2AKWT0+/9gvDCLwO8bPC8ABoKiAOFNxc5OJeNeQUpmcHPPVN8TbZUFCFEs5kR8z0TAMEeU6YQ8US2D3dIfQdgRtDkJ6I+FAHkFyViO59cL0pEGnqSiTSqprn7tq7MpowB471xWGEgGBkiZduIsIuFE0oMAceCoPK4dQNhIYtj/D0AkLhR/vAhV9faZ/wBwLyIG4V0dHZqokbdVSUrycf5R2N9+7TttvIIqC3cuLh5LxEw7MMGu5AubyOCrXcIEYxV6GS/YiPOKRAIuIBkTgMGSsZBETY6qCkLNKIIRF5XtZiQ13SiOeeDBsqCuo+B4Mu2oBQBaBA0xk/hPjtNgQiVVsXN2+hzHIjOo1BfysF5h8V/JDZ6d2CM6YATHsFexSYJDSrKzgte4KW8iCZU1i8dC6mGm3caBWhTMKfv2FUS5gYQgKCpg5Gh7oSDwGxnyxXFzk6B9bJAzahQ/lQEpGegaC0T4GwOShSuLbOkinlEteBxRctxIEzR8o8VHQHbwZgxEPdJGQml9JdU0C69qFJWHi4DgZgqw49VnqxNQdlBe2IYksctninQXoY9RTTBJxx5XGKgsI3++gcQUAomZBd5AL2ITTQKM/ItgmEgdVOf/GISZovr36J4lI1FuQKmpbwQEB18T2ZBZuJERdhM+N0r0dFqbbQpySRwnzWTLlIryXFwv5XD2w9QP0kTt+M5G57/D+XWa5Y4gBFrICVTQQlGu8l5wV+YBFaG8lkJuJHpYGwFUhErApNREbO5M3mEWaiqe2I2RygqCvY7icxk21S6C2LeofkGmFhcuExgLgYBG8pvwbCaho5lCaQNXEBM+E+SpK+UgOBE2EWHoReAq8FMBYLggGZz5VBnTBIRpIpWOajRlojsySchMC70QECryfaEvOjOYDEgDWgR99InUWSOdHcluZUc1pYF7+hEwlMribGlzgu0OysZsRxYelkrWLADCN6IkXj9A1kUnSm9OYLiJfMNO7qMRIGkgoQqMMNj59gmg2ICSyhz7ZQc59LIUhc0S8kKJn0kwwaNFQFoEd38G6VghEm70O5cBqbxGdMD4FSN+BZTmUFL8+wPnly+oK2VHPK5oOZGOESAMAu76zp6ipKjkVXQASAMw7JPAOKtt45RGEkUUydOzzFstgr7+5uQW2JvxIlcbUBAJJGAj7yUBcZdEvkTR/1fA+EwgmlMDEEVq+4E743w4S8nLSYCoImEVAQenkOKMF6qU/8DFZHsSB+ohnFRjfiUw6rujk45IWUToE5FuiwiwGIjZobJHi+JREEHkSwJwW
1VhoxhlGL/P5VdLwq9ISBEEau4QkUYrpeSyToB+8CDieMKdngFQRaHFOYSPpCiKPH5yA9HeDM7Ix79eQScQnAGV2Csk4wlS8UBQ55GDjSvsmjGCl7GYRbG9xaHlVOf9vAGD4Xhb6FouNp4E6yxcCsKs0tgLGSwxlUbeFBKUynu1fAEhzHJmHa8lO3dUkyMYsQn+vKGAUAXvZNwVWJJWVKJfOpUFhsACeevR4qc8AoDkZxiY2VcMyoHRS4KCkIDtlP3Ggps7EtjngRVr4RN4VtzGEwaL8SUlQRRzoWTZVCJdE/iI5VSRn0e9H6YizPpTo+PTRcWPbxcdXgtOoZEg1+rw/czI/CVcsOh7LV9ERChRzvLUwqAppIj3sAfFZUtQcIFQOvVBu5CfDrary2LVMA/ohOov2mQGXOh4X9TVHIioBURxgPkO1tUHK1qvf2u2xF7FGceFMOZiQoCvB3mf66Gc2KQx0N2cZebd+hqS0gfdUKY+DybaHipO35+wYTxML0QaeSPjCQIsXOwyydo0oFs7kFQo6OcvHbO2VjXYFjEKkKEpHf956Tj2ckH7hF4OsrwCoOUa7ioUIIlYxoFtMZPZUkNp+wXZUoaIKSUNvWbgjWFn5wvRlVYj2mUfx1W6kWghWRSYACfac/g0ilgkXpaRdkAyWCO6w2gGYNTuoKk+kftB1/IxAq53sQl6MYn49sPJ+sAEzCokJJ1KivqudAIFgoKS8lwHxDguOh+IB5j3CFwBzthPxHI2i+yokorMVeGwGI1w8r0qeHIPxtuC3QxLu9ndnVX/vJ0hZ7KJCO63SxTYn0vTcx/ALoLSBKlTuJAZX7D1hFN8c7worQpoT69ggh+N5UzvZCgblB72+Y6+eamTcRKjPrluxv2uO4sAbuwpKO1EH3kZRUoIOSQViMtOxcWOmAWWvztML+FglMRA/AKguKT+ygyrvuiuPRNySojTaB1QAA6HOpToB1k47ucdQRUgTnjcOrqknaqs5qqoMVNXtAAKlBVXWmkn18Mly+Q1eeH+d4UKj43Iq3e291xyJVS0KuwNMJToeiwv6uU4gNcUe8/hnJGkbuLg7uba4+P8lCUEpuaMNKY5qwoLghb5sssdpN6pb1Zxg82qOoA5UJgdWuz1XpeB3JrGBMNeDBCpPGhp1UKkNzN7T22J/B5vxXwDkO/x+y0KM8YAzXXTvKu1/99qfFfP6EY+lOYEVNuerIKvYYy1wE9TPTikEbEPDATHBdKOmDWzZJoz5zVFZP+hx74BwmebmiF3PFK72WATRa6Y2sejZCbhG6moU6aKNW4VPv8H5V7JlgVIJE1y3qm4clS6NzhHP4SaMeJcKdnvv7PbuIrzfCJgJALraqZoEKJ7qOgOD9fKdgFmF2sIEFibUWDK4gjMLdlmp1Z20ywpgsA35DgB8F1Jyy0JVdTXVpedufw/gUsUMChDsiWBPxpMQpQZ2oapWFeH2HQYLwi0O2KvBrXbY767GMsUBazHiqW5ktH8IlYVSsmfBuazgkdztsXDuNsgYqsANvTjPa2kDupxtxoNHQheMbib+LxesdRW1wcbC8Xubc23MehchIWoS0J1sCKuqB7uD/dQZDNNEB+/gjHIizdnlnjTZie1AMCoAoGiIuz0ODNuBRKzCseCyWa8+bVRpWUU8tAnbxjHHCraEz33NdEDcJTiJQBW/JXsep4QSMpF7qXq/bZD834XrvZKU4A5E5hSvSSW6cNrCBtcXSGrMnkeBVBG7sUO0CinZBCh3ckre6fedFiwNFj+Z33/NJ+jV+KqaqerQ1uxBIRgrif5Gnthuz/0aCEIhVzjaY8lqsMeWhyD4vJ1cXp4mhxJwExurHO/vncva4YtXOME+E1CVCdlFQ7yZ38836lJtBEYh8V+JciiwAP13c4jEmTZOhCCXB8549qOJLGCBc9nBIeJNhCoXW/XWbtTx4Fgvi377D6pIUTEEUweqaSfZeUtbpQvsNgSl4EZeVaHM205g4MLehBpq9ljcnR2WmuurMN65w3Ohc2WvcKPreT9nZHuLPVeYY8D3Q1DqIx5nNBCMjaQ3oW2U3MG4YyUdHmDBlHeH1xyJgDThorfBufIkuUrGenMAYWfg5+sMZOBueqyfgU8fhK1A2uDFHlvQcKBktud63zhwd6tY7M2JzllVYn4H7QiOJWwia9gcEJQk89iPHaQaz78RtVPp2lAjbJm+JBK/Y0SDBJEq7QdciHjEwmyv7rcJw85GmRe+ECC7sF8m6PNofo9iI5qlOhUtJlIT1SE47+L8VuLaOBn40M+H6qk5NVFNnNwuDHlXV3fzW5KDE0yy57LZ87DiuyMVPHPEnKI67tAyhxA949iq2BA7LfI+yC092aJMuYNELCmfXBXsMLuod3see5QdT80bPlPEheyON4PxgBEQSVDwzGl55bFq8vYoL+IVVKu0uJETYwwI9+4Z7EQ8wO4s3kaU/Wp69JGqIbZBChklRc3PWu2xExcLFzBCnwWFghqAm0TZe2RvTNV/BQocm1N40WgjPdiqLHSoanzvf58Fn7M7xGR2qAm+qwF/fxE80U5/52g5kBoq9jwfOAi6JAvvj5NSxaGDcJfzVKCdkmLBnmfaq/rjmkXwxCprF/+IamUGMDg6V808SQRbwfwq8V1IaRCFDHwnBbPHTjA1dsObsRjJmcGAlYnRRClhMz2hu9jz0M/GYGUhfmFQhoOBFdoSrDpR4/LUrKwksoa4MTbH4BupikikIV8o90CqWV4qTjJR5lSA0eC1WQk8JmATqVdZzZJPPBNz6pcm2qVZUNk40D4Lb8ccSWFpreQZcVEbutLFHidHqKHOPDpklCVsjsRGoukD2TivdyY6ybp3cLKQBlZZRagWrGHa7XlmbyTCUqkDvkVSE6BUYVxVBJ3t+ZZEap4I99Rnp8BhxEYkobYKpYOR6WYSMzj1Bj9/z05Uyi3JG6mZSrsRk1AeEJONb59UBb/EC1xJ1WXTjaGc1+B5iwqYJFIKzNNtQjIYGIO12R22fPPinWz6/h2NPAheRFRxmfRrFIxpFPmF4IDC6gvvjhZhNxoZySCA4H57nseiQAnCu6xUs5WcfFAliVXu/kqq7KFcKZvuhajkxqGhZeKtCvWgDFpyarVGwBgRhI2cAkWPJOFBZbIbPKU0i5qsIDg2duFVoXUBwCtJS6D0Bk9WDfmkyDmQu5dECSYb2R2kJoHnsTtFZ6pH0WgzZJJInI+r7oPI3cQ4wlYNzZkdw84ZTCUZVaSr1e0pwqBKpykJURRBsOdReg3cy0L+Pt+4y8tJ4GInYdyNJEDdCa4KEjA6XlV2VBfOiFQ3oGlUkZhE+qCIuKyIkiJuMd+F2/8gIapdrDqJmuJwPfh3tiG8qF3/b+IiA9mkidSpkUSxIefAT00r4ttVsGE3wUgkUrfM6/GABTVIjWex4OM9Ug+Oumrk5TB5hotbSGXttIsiOQrKSYhUiY62bHIKDVQRg4o/kvC2Fnu+24OSkCIknMnVCVLBm41v0+GOHskOs9scppfdtDpgP3kAZDkx5lzhsdnj/U128un5/FQgqO5zon5fhKfFKoudDs6FZEjMRbEZogPKwyM76ooDMbPnqW5m/u2LVF1tgosIjvurJDGRTTLH1ilvy5snqUZMcdTe7HlaHd7ZZx/wdfmE3vd67kN2qtCbAMGcWqpAWTjlQVWh+9lTiyKeaYIdNZFL8YaVebdxujJayoQdrRSRq5pgr4RqdMO1B5VlA9c3XHx/N78PpAj3Vt1bSjkU0fxedHMkkg1+NH+IchosqGKiR4uvquWj+TftlKr77NarZucTHGxgY9RsQSMjHgSxqVRVE7kTZk5HQyaVZ+Pd6kmdp6f3o/n3dzf6Xu/ewjaSEE99KdWhZpJ4akXlsKvpSQomSlP53rmjYQbNyZeHE6dCOQpqsqg5jtDZCJDRJKLLgJiowDAnmOTiCJSaImgTb+AY52iSQzrWwQKYjSdLtAsbcTThYqQtvPVSd9z5kIRctS9m/giM4DgJQXhTbHOqyFObnfeKNzvvV1TEYR1Uw4z6Hvl7PYk4HQf1TwCxgeh+9DjsItdBTVQbpHvN/FbqKy3e6saRXtev1xsvR/c5oJgqcvjVn3YBFDXdudp4vlUYBJ1ckH22+KqOivsVkz3fK53pd1UItzslS3we7USKHq7/nwAyAklN/lRzraJDYJrpet9o/jiP5iy+WsxNsLFGTDJH6lzCisctAihPgtrg/O2zAfEkRzHJyoU1UZKEiSrVGKSkglUMlqRmQZEYBaXqNndYCKgm+ihwPGlVm+r/GcPWPn/EVQjhihfC6dkgonbPPVQ6m9UHgtCpjtX8RlUukFA2hLuAV/PbsjehytQgnwfp/goJsUFE7808GVEkI89GlZoqss+7rSrftyQ5gHAPIfY3ruKxiQ1ShJ2pn2nUr6qv8IHPNScmGQGDJB8b3Q7Gan6JD941jQ0850OwrQ57He8n0qI8NOmmfzUgH5EklfBqA17LU1c75SRWwSmpjt/NyYfwZzYC4zZQYeyNnXpgvwMQFU+EEwnx5vCqSZ+RCgfObEUTDoHndZk9dwV77c5KUnbTE5WKAOa3SohXyu/ZGk9VFcos8qKq+06FC4CouiwGpJjfEdwlxbMnagaLlPb8G1WSCa7rzN5Uh47n2ARLbLzhBEoFsXSMjLqahaU6gu8OENxcVJT7+ydtSDN/Rm4b2BKWFqxv2kxPjOBEWW/BU4kmddtUNR6Km09HgKg+SBkw5j8EhDleFRvTZM83MC6khrje6+xeiSgdkyMdYcAW7KY7gjfHDfa8LBkk/m4b4iWwmkNHcy8g638EYLfxLflUDdVkfjvC2WDkbQAMguF5W/VPS4gXa5ylitsg4VTs/BYZqnu2V7BsNh5q0BwnYBf2RI3V2Ex33br81u8EJFyQmOawxqqnj1WY+lG3quCCNq83xE7cbQZF0Sb7gCGWwPxPgAEAGJFap1YiMfwAAAAASUVORK5CYII="},upKx:function(e,t,n){"use strict";var r=n("S/j/"),i=n("d/Gc"),a=n("ne8i");e.exports=[].copyWithin||function(e,t){var n=r(this),o=a(n.length),s=i(e,o),l=i(t,o),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?o:i(u,o))-l,o-s),h=1;for(l<s&&s<l+c&&(h=-1,l+=c-1,s+=c-1);c-- >0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},uuyv:function(e,t,n){"use strict";var r=n("IPAr"),i=n("d+Jj");e.exports=y,y.notInList=!0,y.notInBlock=!0;var a='"',o="'",s="\\",l="\n",u="\t",c=" ",h="[",d="]",f="(",p=")",m=":",v="<",g=">";function y(e,t,n){for(var r,g,y,_,w,M,E,S,C=this.options.commonmark,T=0,k=t.length,A="";T<k&&((_=t.charAt(T))===c||_===u);)A+=_,T++;if((_=t.charAt(T))===h){for(T++,A+=_,y="";T<k&&(_=t.charAt(T))!==d;)_===s&&(y+=_,T++,_=t.charAt(T)),y+=_,T++;if(y&&t.charAt(T)===d&&t.charAt(T+1)===m){for(M=y,T=(A+=y+d+m).length,y="";T<k&&((_=t.charAt(T))===u||_===c||_===l);)A+=_,T++;if(y="",r=A,(_=t.charAt(T))===v){for(T++;T<k&&x(_=t.charAt(T));)y+=_,T++;if((_=t.charAt(T))===x.delimiter)A+=v+y+_,T++;else{if(C)return;T-=y.length+1,y=""}}if(!y){for(;T<k&&b(_=t.charAt(T));)y+=_,T++;A+=y}if(y){for(E=y,y="";T<k&&((_=t.charAt(T))===u||_===c||_===l);)y+=_,T++;if(w=null,(_=t.charAt(T))===a?w=a:_===o?w=o:_===f&&(w=p),w){if(!y)return;for(T=(A+=y+_).length,y="";T<k&&(_=t.charAt(T))!==w;){if(_===l){if(T++,(_=t.charAt(T))===l||_===w)return;y+=l}y+=_,T++}if((_=t.charAt(T))!==w)return;g=A,A+=y+_,T++,S=y,y=""}else y="",T=A.length;for(;T<k&&((_=t.charAt(T))===u||_===c);)A+=_,T++;return(_=t.charAt(T))&&_!==l?void 0:!!n||(r=e(r).test().end,E=this.decode.raw(this.unescape(E),r,{nonTerminated:!1}),S&&(g=e(g).test().end,S=this.decode.raw(this.unescape(S),g)),e(A)({type:"definition",identifier:i(M),title:S||null,url:E}))}}}}function x(e){return e!==g&&e!==h&&e!==d}function b(e){return e!==h&&e!==d&&!r(e)}x.delimiter=g},uzq8:function(e,t,n){"use strict";e.exports=s;var r=n("mFtL"),i=!0,a="skip",o=!1;function s(e,t,n,i){var s;function u(e,r,c){var h,d=[];return(t&&!s(e,r,c[c.length-1]||null)||(d=l(n(e,c)))[0]!==o)&&e.children&&d[0]!==a&&(h=l(function(e,t){var n,r=i?-1:1,a=(i?e.length:-1)+r;for(;a>-1&&a<e.length;){if((n=u(e[a],a,t))[0]===o)return n;a="number"==typeof n[1]?n[1]:a+r}}(e.children,c.concat(e))))[0]===o?h:d}"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),s=r(t),u(e,null,[])}function l(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[i,e]:[e]}s.CONTINUE=i,s.SKIP=a,s.EXIT=o},v0oL:function(e,t,n){"use strict";var r=n("5t69"),i=n("U6jy"),a=n("JWB8");function o(e){var t=r(a);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Parser=t}e.exports=o,o.Parser=a},vPdy:function(e,t,n){"use strict";e.exports=function(e){var t,n=0,i=0,a=e.charAt(n),o={};for(;a in r;)t=r[a],i+=t,t>1&&(i=Math.floor(i/t)*t),o[i]=n,a=e.charAt(++n);return{indent:i,stops:o}};var r={" ":1,"\t":4}},vuIU:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("o46R");function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Object(r.a)(i.key),i)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},vvrU:function(e,t,n){"use strict";n("KKXr");var r=n("RsFJ"),i=n("RjOF"),a=n("vPdy");e.exports=function(e,t){var n,u,c,h,d=e.split(s),f=d.length+1,p=1/0,m=[];d.unshift(i(o,t)+"!");for(;f--;)if(u=a(d[f]),m[f]=u.stops,0!==r(d[f]).length){if(!u.indent){p=1/0;break}u.indent>0&&u.indent<p&&(p=u.indent)}if(p!==1/0)for(f=d.length;f--;){for(c=m[f],n=p;n&&!(n in c);)n--;h=0!==r(d[f]).length&&p&&n!==p?l:"",d[f]=h+d[f].slice(n in c?c[n]+1:0)}return d.shift(),d.join(s)};var o=" ",s="\n",l="\t"},wnOJ:function(e,t,n){var r=n("UfUV");e.exports=function(){return function(e){return r(e,"list",(function(e,t){var n,r,i=0;for(n=0,r=t.length;n<r;n++)"list"===t[n].type&&(i+=1);for(n=0,r=e.children.length;n<r;n++){var a=e.children[n];a.index=n,a.ordered=e.ordered}e.depth=i})),e}}},xTHp:function(e,t,n){"use strict";
1n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=n.y0,a=n.y1,o=n.x1,s=n.x0,l="%"===a.unit&&"%"===i.unit,u=i.value,c=a.value;if(l){var h=t.height/100;u=i.value*h,c=a.value*h}var d="%"===o.unit&&"%"===s.unit,f=s.value,p=o.value;if(d){var m=t.width/100;f=s.value*m,p=o.value*m}var v=Math.abs(u)+Math.abs(c);this.totalDistY=r.height+t.height+v;var g=r.height+t.height+(c>u?-1*v:v),y=Math.abs(f)+Math.abs(p);this.totalDistX=r.width+t.width+y;var x=r.width+t.width+(p>f?-1*y:y),b=t.originTotalDistY/g,_=t.originTotalDistX/x;this.top=t.top,this.bottom=t.bottom,u<0&&(this.top=this.top+u*b),c>0&&(this.bottom=this.bottom+c*b),this.left=t.left,this.right=t.right,f<0&&(this.left=this.left+f*_),p>0&&(this.right=this.right+p*_)};t.default=r},xkQk:function(e,t,n){"use strict";var r=n("EBzq");e.exports=a,a.wrap=r;var i=[].slice;function a(){var e=[],t={run:function(){var t=-1,n=i.call(arguments,0,-1),a=arguments[arguments.length-1];if("function"!=typeof a)throw new Error("Expected function as last argument, not "+a);(function o(s){var l=e[++t],u=i.call(arguments,0).slice(1),c=n.length,h=-1;if(s)a(s);else{for(;++h<c;)null!==u[h]&&void 0!==u[h]||(u[h]=n[h]);n=u,l?r(l,o).apply(null,n):a.apply(null,[null].concat(n))}}).apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}}}]);
2//# sourceMappingURL=component---src-pages-index-js-67def7952c00370a5378.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.