1/*! For license information please see main.b744f0a3.js.LICENSE.txt */ 2(()=>{var e={325:(e,t,n)=>{var r=n(15785);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},384:(e,t,n)=>{n(18387)("WeakSet")},1304:(e,t,n)=>{var r=n(67060);r(r.S,"Object",{is:n(52108)})},1363:(e,t,n)=>{"use strict";var r=n(25763),i=n(56283),o=n(36143),a=n(15036),s=n(29303),l=n(61900),c=n(88691),u=n(79102),d=o.isBrowser("Firefox");function p(e,t,n,o,a){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,o);return i.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),h=o.getStartOffset(),f=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var m,g=p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),v=!1;if(v||(v=l(e._latestCommittedEditorState)),!v){var y=n.getBlockTree(f),b=g.getBlockTree(f);v=y.size!==b.size||y.zip(b).some(function(e){var t=e[0],n=e[1],i=t.get("start"),o=i+(i>=h?r.length:0),a=t.get("end"),s=a+(a>=h?r.length:0),l=n.get("start"),c=n.get("end"),u=n.get("decoratorKey");return t.get("decoratorKey")!==u||t.get("leaves").size!==n.get("leaves").size||o!==l||s!==c||null!=u&&c-l!==a-i})}if(v||(m=r,v=d&&("'"==m||"/"==m)),v||(v=c(g.getDirectionMap()).get(f)!==c(n.getDirectionMap()).get(f)),v)return t.preventDefault(),g=i.set(g,{forceSelection:!0}
2),void e.update(g);g=i.set(g,{nativelyRenderedContent:g.getCurrentContent()}),e._pendingStateFromBeforeInput=g,u(function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}},1473:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{fround:n(85523)})},1528:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},1907:(e,t,n)=>{"use strict";n(77579);var r=n(88972),i=n(12730),o=n(83881),a=n(49649),s=n(63759),l=n(72369),c=s("species"),u=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=s(e),h=!o(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),f=h?!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!t}):void 0;if(!h||!f||"replace"===e&&!u||"split"===e&&!d){var m=/./[p],g=n(a,p,""[e],function(e,t,n,r,i){return t.exec===l?h&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},1991:(e,t,n)=>{n(32836),e.exports=n(89173).RegExp.escape},2008:(e,t,n)=>{var r=n(44786),i=n(61529),o=n(25586),a=n(56547),s=n(40964),l=n(38871),c=Object.getOwnPropertyDescriptor;t.f=n(73358)?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},2052:(e,t,n)=>{"use strict";e.exports=n(47755)||!n(83881)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(76101)[e]})},2124:(e,t,n)=>{"use strict";var r=n(48645),i=n(56283),o=n(84909),a=n(87809);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,s=a(n,o(e)),l=s.selectionState;l!==n.getSelection()&&(n=s.needsRecovery?i.forceSelection(n,l):i.acceptSelection(n,l),e.update(n))}}},2321:e=>{e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},2576:(e,t,n)=>{"use strict";if(n(40248),n(1991),n.g._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");n.g._babelPolyfill=!0;function r(e,t,n){e[t]||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n})}r(String.prototype,"padLeft","".padStart),r(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&r(Array,e,Function.call.bind([][e]))})},3040:(e,t,n)=>{var r=n(76101).parseFloat,i=n(61504).trim;e.exports=1/r(n(89094)+"-0")!==-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},3241:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},3327:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(87707),a=n(66559),s=n(34075),l=n(92593),c=n(47551),u=(n(44863),n(94666)),d=n(19806),p=n(61894),h=n(4155),f=n(70306),m=n(78819),g=n(31320),v=n(36415),y=m("draft_tree_data_support"),b=g.List,x=g.Map,S=g.OrderedMap,w=function(e,t){var n=e.key,r=e.type,i=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||f(),data:x(i),characterList:_(e,t)}},_=function(e,t){var n=e.text,i=e.entityRanges,o=e.inlineStyleRanges,a=i||[];return d(h(n,o||[]),p(n,a.filter(function(e){return t.hasOwnProperty(e.key)}).map(function(e){return r({},e,{key:t[e.key]})})))},k=function(e){return r({},e,{key:e.key||f()})},M=function(e,t,n){var i=t.map(function(e){return r({},e,{parentRef:n})});return e.concat(i.reverse())},C=function(e,t){var n=e.blocks.find(function(e){return Array.isArray(e.children)&&e.children.length>0}),i=y&&!n?c.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!y)return function(e,t){return S(e.map(function(e){var n=new o(w(e,t));return[n.getKey(),n]}))}(n?c.fromRawTreeStateToRawState(e).blocks:i,t);var s=function(e,t){return e.map(k).reduce(function(n,i,o){Array.isArray(i.children)||v(!1);var s=i.children.map(k),l=new a(r({},w(i,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:b(s.map(function(e){return e.key}))}));n=n.set(l.getKey(),l);for(var c=M([],s,l);c.length>0;){var u=c.pop(),d=u.parentRef,p=d.getChildKeys(),h=p.indexOf(u.key),f=Array.isArray(u.children);if(!f){f||v(!1);break}var m=u.children.map(k),g=new a(r({},w(u,t),{parent:d.getKey(),children:b(m.map(function(e){return e.key})),prevSibling:0===h?null:p.get(h-1),nextSibling:h===p.size-1?null:p.get(h+1)}));n=n.set(g.getKey(),g),c=M(c,m,g)}return n},S())}(i,t);return s};e.exports=function(e){Array.isArray(e.blocks)||v(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach(function(e){var r=t[e],i=r.type,o=r.mutability,a=r.data;n[e]=l.__create(i,o,a||{})}),n}(e),n=C(e,t),r=n.isEmpty()?new u:u.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},3444:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}}
2,3729:(e,t,n)=>{n(58452)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},4132:function(e,t,n){!function(e){"use strict";if(!e.setImmediate){var t,n=1,r={},i=!1,o=e.document,a=Object.getPrototypeOf&&Object.getPrototypeOf(e);a=a&&a.setTimeout?a:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick(function(){l(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var n="setImmediate$"+Math.random()+"$",r=function(t){t.source===e&&"string"===typeof t.data&&0===t.data.indexOf(n)&&l(+t.data.slice(n.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),t=function(t){e.postMessage(n+t,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){l(e.data)},t=function(t){e.port2.postMessage(t)}}():o&&"onreadystatechange"in o.createElement("script")?function(){var e=o.documentElement;t=function(t){var n=o.createElement("script");n.onreadystatechange=function(){l(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():t=function(e){setTimeout(l,0,e)},a.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var i=new Array(arguments.length-1),o=0;o<i.length;o++)i[o]=arguments[o+1];var a={callback:e,args:i};return r[n]=a,t(n),n++},a.clearImmediate=s}function s(e){delete r[e]}function l(e){if(i)setTimeout(l,0,e);else{var t=r[e];if(t){i=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{s(e),i=!1}}}}}("undefined"===typeof self?"undefined"===typeof n.g?this:n.g:self)},4155:(e,t,n)=>{"use strict";var r=n(24939),i=n(31320).OrderedSet,o=r.substr,a=i();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach(function(t){for(var r=o(e,0,t.offset).length,i=r+o(e,t.offset,t.length).length;r<i;)n[r]=n[r].add(t.style),r++}),n}},4341:(e,t,n)=>{"use strict";var r=n(67060),i=n(58116),o=n(7309),a="endsWith",s=""[a];r(r.P+r.F*n(95314)(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),l=void 0===n?r:Math.min(i(n),r),c=String(e);return s?s.call(t,c,l):t.slice(l-c.length,l)===c}})},4391:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.A,createChainedFunction:()=>o.A,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>p,setRef:()=>h,unstable_ClassNameGenerator:()=>S,unstable_useEnhancedEffect:()=>f.A,unstable_useId:()=>m.A,unsupportedProp:()=>g,useControlled:()=>v.A,useEventCallback:()=>y.A,useForkRef:()=>b.A,useIsFocusVisible:()=>x.A});var r=n(79386),i=n(6803),o=n(6593),a=n(59662),s=n(80950);const l=function(e,t){return()=>null};var c=n(27328),u=n(22427),d=n(36078);const p=function(e,t){return()=>null};const h=n(26564).A;var f=n(55013),m=n(45879);const g=function(e,t,n,r,i){return null};var v=n(54516),y=n(93319),b=n(95849),x=n(87844);const S={configure:e=>{r.A.configure(e)}}},4409:(e,t,n)=>{var r=n(67060),i=n(64353),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},4414:e=>{"use strict";var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],i=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}};e.exports=n},4923:e=>{"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},5089:e=>{"use strict";e.exports=function(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},5609:(e,t,n)=>{"use strict";n.r(t),function(){var e;function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var r,i=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);function o(e,t){if(t)e:{var r=i;e=e.split(".");for(var o=0;o<e.length-1;o++){var a=e[o];if(!(a in r))break e;r=r[a]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}function a(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function s(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}if(o("Symbol",function(e){function t(e,t){this.A=e,n(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.A};var r="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return function e(n){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(r+(n||"")+"_"+i++,n)}}),o("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var r="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;o<r.length;o++){var s=i[r[o]];"function"===typeof s&&"function"!=typeof s.prototype[e]&&n(s.prototype,e,{configurable:!0,writable:!0,value:function(){return a(t(this))}})}return e}),"function"==typeof Object.setPrototypeOf)r=Object.setPrototypeOf;else{var l;e:{var c={};try{c.__proto__={a:!0},l=c.a;break e}catch(D){}l=!1}r=l?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var u=r;function d(){this.m=!1,this.j=null,this.v=void 0,this.h=1,this.u=this.C=0,this.l=null}function p(e){if(e.m)throw new TypeError("Generator is already running");e.m=!0}function h(e,t){return e.h=3,{value:t}}function f(e){this.g=new d,this.G=e}function m(e,t,n,r){try{var i=t.call(e.g.j,n);if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object");
2if(!i.done)return e.g.m=!1,i;var o=i.value}catch(a){return e.g.j=null,e.g.s(a),g(e)}return e.g.j=null,r.call(e.g,o),g(e)}function g(e){for(;e.g.h;)try{var t=e.G(e.g);if(t)return e.g.m=!1,{value:t.value,done:!1}}catch(n){e.g.v=void 0,e.g.s(n)}if(e.g.m=!1,e.g.l){if(t=e.g.l,e.g.l=null,t.F)throw t.D;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function v(e){this.next=function(t){return e.o(t)},this.throw=function(t){return e.s(t)},this.return=function(t){return function(e,t){p(e.g);var n=e.g.j;return n?m(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),g(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function y(e,t){return t=new v(new f(t)),u&&e.prototype&&u(t,e.prototype),t}if(d.prototype.o=function(e){this.v=e},d.prototype.s=function(e){this.l={D:e,F:!0},this.h=this.C||this.u},d.prototype.return=function(e){this.l={return:e},this.h=this.u},f.prototype.o=function(e){return p(this.g),this.g.j?m(this,this.g.j.next,e,this.g.o):(this.g.o(e),g(this))},f.prototype.s=function(e){return p(this.g),this.g.j?m(this,this.g.j.throw,e,this.g.o):(this.g.s(e),g(this))},o("Array.prototype.entries",function(e){return e||function(){return function(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}(this,function(e,t){return[e,t]})}}),"undefined"!==typeof Blob&&("undefined"===typeof FormData||!FormData.prototype.keys)){var b=function(e,t){for(var n=0;n<e.length;n++)t(e[n])},x=function(e){return e.replace(/\r?\n|\r/g,"\r\n")},S=function(e,t,n){return t instanceof Blob?(n=void 0!==n?String(n+""):"string"===typeof t.name?t.name:"blob",t.name===n&&"[object Blob]"!==Object.prototype.toString.call(t)||(t=new File([t],n)),[String(e),t]):[String(e),String(t)]},w=function(e,t){if(e.length<t)throw new TypeError(t+" argument required, but only "+e.length+" present.")},_="object"===typeof globalThis?globalThis:"object"===typeof window?window:"object"===typeof self?self:this,k=_.FormData,M=_.XMLHttpRequest&&_.XMLHttpRequest.prototype.send,C=_.Request&&_.fetch,T=_.navigator&&_.navigator.sendBeacon,A=_.Element&&_.Element.prototype,E=_.Symbol&&Symbol.toStringTag;E&&(Blob.prototype[E]||(Blob.prototype[E]="Blob"),"File"in _&&!File.prototype[E]&&(File.prototype[E]="File"));try{new File([],"")}catch(D){_.File=function(e,t,n){return e=new Blob(e,n||{}),Object.defineProperties(e,{name:{value:t},lastModified:{value:+(n&&void 0!==n.lastModified?new Date(n.lastModified):new Date)},toString:{value:function(){return"[object File]"}}}),E&&Object.defineProperty(e,E,{value:"File"}),e}}var j=function(e){return e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22")},N=function(e){this.i=[];var t=this;e&&b(e.elements,function(e){if(e.name&&!e.disabled&&"submit"!==e.type&&"button"!==e.type&&!e.matches("form fieldset[disabled] *"))if("file"===e.type){var n=e.files&&e.files.length?e.files:[new File([],"",{type:"application/octet-stream"})];b(n,function(n){t.append(e.name,n)})}else"select-multiple"===e.type||"select-one"===e.type?b(e.options,function(n){!n.disabled&&n.selected&&t.append(e.name,n.value)}):"checkbox"===e.type||"radio"===e.type?e.checked&&t.append(e.name,e.value):(n="textarea"===e.type?x(e.value):e.value,t.append(e.name,n))})};if((e=N.prototype).append=function(e,t,n){w(arguments,2),this.i.push(S(e,t,n))},e.delete=function(e){w(arguments,1);var t=[];e=String(e),b(this.i,function(n){n[0]!==e&&t.push(n)}),this.i=t},e.entries=function e(){var t,n=this;return y(e,function(e){if(1==e.h&&(t=0),3!=e.h)return t<n.i.length?e=h(e,n.i[t]):(e.h=0,e=void 0),e;t++,e.h=2})},e.forEach=function(e,t){w(arguments,1);for(var n=s(this),r=n.next();!r.done;r=n.next()){var i=s(r.value);r=i.next().value,i=i.next().value,e.call(t,i,r,this)}},e.get=function(e){w(arguments,1);var t=this.i;e=String(e);for(var n=0;n<t.length;n++)if(t[n][0]===e)return t[n][1];return null},e.getAll=function(e){w(arguments,1);var t=[];return e=String(e),b(this.i,function(n){n[0]===e&&t.push(n[1])}),t}
2,e.has=function(e){w(arguments,1),e=String(e);for(var t=0;t<this.i.length;t++)if(this.i[t][0]===e)return!0;return!1},e.keys=function e(){var t,n,r,i,o=this;return y(e,function(e){if(1==e.h&&(t=s(o),n=t.next()),3!=e.h)return n.done?void(e.h=0):(r=n.value,i=s(r),h(e,i.next().value));n=t.next(),e.h=2})},e.set=function(e,t,n){w(arguments,2),e=String(e);var r=[],i=S(e,t,n),o=!0;b(this.i,function(t){t[0]===e?o&&(o=!r.push(i)):r.push(t)}),o&&r.push(i),this.i=r},e.values=function e(){var t,n,r,i,o=this;return y(e,function(e){if(1==e.h&&(t=s(o),n=t.next()),3!=e.h)return n.done?void(e.h=0):(r=n.value,(i=s(r)).next(),h(e,i.next().value));n=t.next(),e.h=2})},N.prototype._asNative=function(){for(var e=new k,t=s(this),n=t.next();!n.done;n=t.next()){var r=s(n.value);n=r.next().value,r=r.next().value,e.append(n,r)}return e},N.prototype._blob=function(){var e="----formdata-polyfill-"+Math.random(),t=[],n="--"+e+'\r\nContent-Disposition: form-data; name="';return this.forEach(function(e,r){return"string"==typeof e?t.push(n+j(x(r))+'"\r\n\r\n'+x(e)+"\r\n"):t.push(n+j(x(r))+'"; filename="'+j(e.name)+'"\r\nContent-Type: '+(e.type||"application/octet-stream")+"\r\n\r\n",e,"\r\n")}),t.push("--"+e+"--"),new Blob(t,{type:"multipart/form-data; boundary="+e})},N.prototype[Symbol.iterator]=function(){return this.entries()},N.prototype.toString=function(){return"[object FormData]"},A&&!A.matches&&(A.matches=A.matchesSelector||A.mozMatchesSelector||A.msMatchesSelector||A.oMatchesSelector||A.webkitMatchesSelector||function(e){for(var t=(e=(this.document||this.ownerDocument).querySelectorAll(e)).length;0<=--t&&e.item(t)!==this;);return-1<t}),E&&(N.prototype[E]="FormData"),M){var I=_.XMLHttpRequest.prototype.setRequestHeader;_.XMLHttpRequest.prototype.setRequestHeader=function(e,t){I.call(this,e,t),"content-type"===e.toLowerCase()&&(this.B=!0)},_.XMLHttpRequest.prototype.send=function(e){e instanceof N?(e=e._blob(),this.B||this.setRequestHeader("Content-Type",e.type),M.call(this,e)):M.call(this,e)}}C&&(_.fetch=function(e,t){return t&&t.body&&t.body instanceof N&&(t.body=t.body._blob()),C.call(this,e,t)}),T&&(_.navigator.sendBeacon=function(e,t){return t instanceof N&&(t=t._asNative()),T.call(this,e,t)}),_.FormData=N}}()},5722:(e,t,n)=>{"use strict";var r=n(56283),i=n(36143);e.exports=function(e,t){var n=e._latestEditorState,o=n.getSelection();if(!o.getHasFocus()){var a=o.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),i.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},5844:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var i=n(65043);let o=0;const a=(r||(r=n.t(i,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect(()=>{null==t&&(o+=1,n("mui-".concat(o)))},[t]),r}(e)}},5941:(e,t,n)=>{"use strict";var r=n(37385);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"A"===e.nodeName)}},5983:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help")},6241:(e,t,n)=>{var r=n(36040);n(80156)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},6381:(e,t,n)=>{var r=n(67060);r(r.S+r.F*!n(73358),"Object",{defineProperty:n(12718).f})},6531:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(11188)},6546:(e,t,n)=>{"use strict";var r=n(67060),i=n(63435)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(60599)("includes")},6591:(e,t,n)=>{var r,i,o,a=n(57621),s=n(59258),l=n(31371),c=n(81101),u=n(76101),d=u.process,p=u.setImmediate,h=u.clearImmediate,f=u.MessageChannel,m=u.Dispatch,g=0,v={},y="onreadystatechange",b=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},x=function(e){b.call(e.data)};p&&h||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},h=function(e){delete v[e]},"process"==n(3444)(d)?r=function(e){d.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:f?(o=(i=new f).port2,i.port1.onmessage=x,r=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",x,!1)):r=y in c("script")?function(e){l.appendChild(c("script"))[y]=function(){l.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:p,clear:h}}
2,6593:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(42456).A},6602:(e,t,n)=>{var r=n(67060);r(r.S,"Number",{isNaN:function(e){return e!=e}})},6803:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(67598).A},7128:(e,t,n)=>{"use strict";var r=n(67060),i=n(40123),o=n(23237),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},7309:(e,t,n)=>{var r=n(42242),i=n(49649);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},7414:(e,t,n)=>{"use strict";var r=n(66559),i=n(45791),o=n(31320),a=n(36415),s=o.OrderedMap,l=o.List,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t,n,r,i){if(!i)return e;var o="after"===r,a=t.getKey(),s=n.getKey(),u=t.getParentKey(),d=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),h=n.getParentKey(),f=o?n.getNextSiblingKey():s,m=o?s:n.getPrevSiblingKey();return e.withMutations(function(e){c(u,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})}),c(p,e,function(e){return e.merge({nextSibling:d})}),c(d,e,function(e){return e.merge({prevSibling:p})}),c(f,e,function(e){return e.merge({prevSibling:a})}),c(m,e,function(e){return e.merge({nextSibling:a})}),c(h,e,function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=o?n+1:0!==n?n-1:0,i=t.toArray();return i.splice(r,0,a),e.merge({children:l(i)})}),c(a,e,function(e){return e.merge({nextSibling:f,prevSibling:m,parent:h})})})};e.exports=function(e,t,n,o){"replace"===o&&a(!1);var l=n.getKey(),c=t.getKey();c===l&&a(!1);var d=e.getBlockMap(),p=t instanceof r,h=[t],f=d.delete(c);p&&(h=[],f=d.withMutations(function(e){var n=t.getNextSiblingKey(),r=i(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===c}).takeWhile(function(e){var t=e.getKey(),i=t===c,o=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(i||o||a)}).forEach(function(t){h.push(t),e.delete(t.getKey())})}));var m=f.toSeq().takeUntil(function(e){return e===n}),g=f.toSeq().skipUntil(function(e){return e===n}).skip(1),v=h.map(function(e){return[e.getKey(),e]}),y=s();if("before"===o){var b=e.getBlockBefore(l);b&&b.getKey()===t.getKey()&&a(!1),y=m.concat([].concat(v,[[l,n]]),g).toOrderedMap()}else if("after"===o){var x=e.getBlockAfter(l);x&&x.getKey()===c&&a(!1),y=m.concat([[l,n]].concat(v),g).toOrderedMap()}return e.merge({blockMap:u(y,t,n,o,p),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},7538:(e,t,n)=>{"use strict";n(27713)("sub",function(e){return function(){return e(this,"sub","","")}})},7776:(e,t,n)=>{"use strict";var r=n(67060),i=n(63435)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(65417)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},7777:(e,t,n)=>{"use strict";var r=n(67060),i=n(68027),o=n(56547),a=n(26928),s=n(2008).f;n(73358)&&r(r.P+n(2052),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},7849:(e,t,n)=>{n(58452)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},8130:(e,t,n)=>{"use strict";var r=n(67060),i=n(75621),o=n(2321);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},8184:(e,t,n)=>{"use strict";n(27713)("sup",function(e){return function(){return e(this,"sup","","")}})},8208:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(78678),o=n(63112),a=n(31320),s=a.List,l=a.Repeat,c=a.Record,u=function(){return!0},d=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),h={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new d({start:0,end:0}))}));var o=[],a=n?n.getDecorations(t,e):s(l(null,r)),c=t.getCharacterList();return i(a,m,u,function(e,t){o.push(new p({start:e,end:t,decoratorKey:a.get(e),leaves:f(c.slice(e,t).toList(),e)}))}),s(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["leaves"]);return new p(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}
2))),i.forEach(function(t){r(e,t,n[t])})}return e}({},n,{leaves:null!=t?s(Array.isArray(t)?t:o(t)).map(function(e){return d(e)}):null}))}};function f(e,t){var n=[],r=e.map(function(e){return e.getStyle()}).toList();return i(r,m,u,function(e,r){n.push(new d({start:e+t,end:r+t}))}),s(n)}function m(e,t){return e===t}e.exports=h},8978:e=>{"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;\u30fb\u3001\u3002\u3008-\u3011\u3014-\u301f\uff1a-\uff1f\uff01-\uff0f\uff3b-\uff40\uff5b-\uff65\u2e2e\u061f\u066a-\u066c\u061b\u060c\u060d\ufd3e\ufd3f\u1801\u0964\u104a\u104b\u2010-\u2027\u2030-\u205e\xa1-\xb1\xb4-\xb8\xba\xbb\xbf]"}}},9087:(e,t,n)=>{"use strict";var r=n(58097),i={};i[n(63759)("toStringTag")]="z",i+""!="[object z]"&&n(88972)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},9874:(e,t,n)=>{var r=n(57621),i=n(12372),o=n(68027),a=n(58116),s=n(9911);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,h=t||s;return function(t,s,f){for(var m,g,v=o(t),y=i(v),b=r(s,f,3),x=a(y.length),S=0,w=n?h(t,x):l?h(t,0):void 0;x>S;S++)if((p||S in y)&&(g=b(m=y[S],S,v),e))if(n)w[S]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:w.push(m)}else if(u)return!1;return d?-1:c||u?u:w}}},9911:(e,t,n)=>{var r=n(28295);e.exports=function(e,t){return new(r(e))(t)}},9990:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},10039:(e,t,n)=>{var r=n(67060);r(r.P,"Array",{copyWithin:n(44111)}),n(60599)("copyWithin")},10228:(e,t,n)=>{var r=n(33435),i=n(30853),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var l=s.get(t);return l.delete(n),!!l.size||s.delete(t)}})},10267:(e,t,n)=>{"use strict";var r=n(67060),i=n(42545),o=n(68027),a=n(58116),s=n(37652),l=n(9911);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(r.length),n=l(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(60599)("flatMap")},10333:(e,t,n)=>{var r=n(67060),i=n(28704),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},10457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(17868)},10540:(e,t,n)=>{var r=n(67060),i=Math.imul;r(r.S+r.F*n(83881)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},10751:(e,t,n)=>{var r=n(67060),i=n(2008).f,o=n(30853);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},10906:(e,t,n)=>{n(18387)("WeakMap")},11188:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},11306:(e,t,n)=>{"use strict";var r=n(36415);e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){n.push({start:e,end:t})}),n.length||r(!1),n}},11869:(e,t,n)=>{window,e.exports=function(e,t){return i={},n.m=r=[function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(0),o=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},a=function(e,t,n){var r,o=e.textContent;return""===o.trim()?{chunk:(r=n,{text:" ",inlines:[new i.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:o,inlines:Array(o.length).fill(t),entities:Array(o.length).fill(n),blocks:[]}}}
vendor: 4,843 bytes, line 2
2,s=function(){return{text:"\n",inlines:[new i.OrderedSet],entities:new Array(1),blocks:[]}},l=function(){return{text:"",inlines:[],entities:[],blocks:[]}},c=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new i.Map({})}]}},u=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new i.Map({})}]}},d=function(e){return{text:"\r ",inlines:[new i.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new i.Map({})}]}},p=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},h=new i.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),f={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function m(e){return e.style.textAlign?new i.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new i.Map({"margin-left":e.style.marginLeft}):void 0}var g=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",function(){return S});var v=" ",y=new RegExp(" ","g"),b=!0;function x(e,t,n,i,o,v){var y=e.nodeName.toLowerCase();if(v){var S=v(y,e);if(S){var w=r.Entity.__create(S.type,S.mutability,S.data||{});return{chunk:d(w)}}}if("#text"===y&&"\n"!==e.textContent)return a(e,t,o);if("br"===y)return{chunk:s()};if("img"===y&&e instanceof HTMLImageElement){var _={};_.src=e.getAttribute&&e.getAttribute("src")||e.src,_.alt=e.alt,_.height=e.style.height,_.width=e.style.width,e.style.float&&(_.alignment=e.style.float);var k=r.Entity.__create("IMAGE","MUTABLE",_);return{chunk:d(k)}}if("video"===y&&e instanceof HTMLVideoElement){var M={};M.src=e.getAttribute&&e.getAttribute("src")||e.src,M.alt=e.alt,M.height=e.style.height,M.width=e.style.width,e.style.float&&(M.alignment=e.style.float);var C=r.Entity.__create("VIDEO","MUTABLE",M);return{chunk:d(C)}}if("iframe"===y&&e instanceof HTMLIFrameElement){var T={};T.src=e.getAttribute&&e.getAttribute("src")||e.src,T.height=e.height,T.width=e.width;var A=r.Entity.__create("EMBEDDED_LINK","MUTABLE",T);return{chunk:d(A)}}var E,j=function(e,t){var n=h.filter(function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)}).keySeq().toSet().toArray();if(1===n.length)return n[0]}(y,i);j&&("ul"===y||"ol"===y?(i=y,n+=1):("unordered-list-item"!==j&&"ordered-list-item"!==j&&(i="",n=-1),b?(E=c(j,m(e)),b=!1):E=u(j,n,m(e)))),E=E||l(),t=function(e,t,n){var r,i=f[e];if(i)r=n.add(i).toOrderedSet();else if(t instanceof HTMLElement){var o=t;r=(r=n).withMutations(function(e){var t=o.style.color,n=o.style.backgroundColor,r=o.style.fontSize,i=o.style.fontFamily.replace(/^"|"$/g,""),a=o.style.fontWeight,s=o.style.textDecoration,l=o.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),i&&e.add("fontfamily-".concat(i)),"bold"===a&&e.add(f.strong),"underline"===s&&e.add(f.ins),"italic"===l&&e.add(f.em)}).toOrderedSet()}return r}(y,e,t);for(var N=e.firstChild;N;){var I=x(N,t,n,i,g(N)||o,v).chunk;E=p(E,I),N=N.nextSibling}return{chunk:E}}function S(e,t){var n,a,s,l=(n=t,a=e.trim().replace(y,v),(s=o(a))?(b=!0,{chunk:x(s,new i.OrderedSet,-1,"",void 0,n).chunk}):null);if(l){var c=l.chunk,u=new i.OrderedMap({});c.entities&&c.entities.forEach(function(e){e&&(u=u.set(e,r.Entity.__get(e)))});var d=0;return{contentBlocks:c.text.split("\r").map(function(e,t){var n=d+e.length,o=c&&c.inlines.slice(d,n),a=c&&c.entities.slice(d,n),s=new i.List(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)}));return d=n,new r.ContentBlock({key:Object(r.genKey)(),type:c&&c.blocks[t]&&c.blocks[t].type||"unstyled",depth:c&&c.blocks[t]&&c.blocks[t].depth,data:c&&c.blocks[t]&&c.blocks[t].data||new i.Map({}),text:e,characterList:s})}),entityMap:u}}return null}}],n.c=i,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2);function n(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var r,i}(n(92119),n(54410))},11984:(e,t,n)=>{"use strict";var r=n(42123);function i(){return i=r||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},i.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(27159),l=n(4414),c=n(65043),u=n(67904),d=n(20947),p=n(88691),h=function(e,t,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),c=n.getDecorator();return i!==o||a!==s||l!==c||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,u=e.customStyleFn,f=e.editorState,m=e.editorKey,g=e.preventScroll,v=e.textDirectionality,y=f.getCurrentContent(),b=f.getSelection(),x=f.mustForceSelection(),S=f.getDecorator(),w=p(f.getDirectionMap()),_=y.getBlocksAsArray(),k=[],M=null,C=null,T=0;T<_.length;T++){var A=_[T],E=A.getKey(),j=A.getType(),N=n(A),I=void 0,D=void 0,P=void 0;N&&(I=N.component,D=N.props,P=N.editable);var L=v||w.get(E),R=l.encode(E,0,0),O={contentState:y,block:A,blockProps:D,blockStyleFn:r,customStyleMap:a,customStyleFn:u,decorator:S,direction:L,forceSelection:x,offsetKey:R,preventScroll:g,selection:b,tree:f.getBlockTree(E)},z=t.get(j)||t.get("unstyled"),F=z.wrapper,B=z.element||t.get("unstyled").element,U=A.getDepth(),H="";if(r&&(H=r(A)),"li"===B)H=d(H,h(j,U,C!==F||null===M||U>M,L));var W=I||s,V={className:H,"data-block":!0,"data-editor":m,"data-offset-key":R,key:E};void 0!==P&&(V=o({},V,{contentEditable:P,suppressContentEditableWarning:!0}));var G=c.createElement(B,V,c.createElement(W,i({},O,{key:E})));k.push({block:G,wrapperTemplate:F,key:E,offsetKey:R}),M=F?A.getDepth():null,C=F}for(var q=[],K=0;K<k.length;){var Y=k[K];if(Y.wrapperTemplate){var X=[];do{X.push(k[K].block),K++}while(K<k.length&&k[K].wrapperTemplate===Y.wrapperTemplate);var Z=c.cloneElement(Y.wrapperTemplate,{key:Y.key+"-wrap","data-offset-key":Y.offsetKey},X);q.push(Z)}else q.push(Y.block),K++}return c.createElement("div",{"data-contents":"true"},q)},r}(c.Component);e.exports=f},12294:(e,t,n)=>{var r=n(67060),i=n(25586),o=n(58116);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})}
2,12372:(e,t,n)=>{var r=n(3444);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},12718:(e,t,n)=>{var r=n(30853),i=n(38871),o=n(56547),a=Object.defineProperty;t.f=n(73358)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},12730:(e,t,n)=>{var r=n(12718),i=n(61529);e.exports=n(73358)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},13030:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(58168);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.A)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.A)({},s),Object.keys(a).forEach(e=>{n[o][e]=i(a[e],s[e])})):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])}),n}},13054:(e,t,n)=>{"use strict";var r,i,o,a,s=n(47755),l=n(76101),c=n(57621),u=n(58097),d=n(67060),p=n(36040),h=n(37652),f=n(45797),m=n(15785),g=n(54483),v=n(6591).set,y=n(31129)(),b=n(75621),x=n(2321),S=n(23237),w=n(99468),_="Promise",k=l.TypeError,M=l.process,C=M&&M.versions,T=C&&C.v8||"",A=l[_],E="process"==u(M),j=function(){},N=i=b.f,I=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[n(63759)("species")]=function(e){e(j,j)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(j)instanceof t&&0!==T.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(r){}}(),D=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(i||(2==e._h&&O(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),a=!0)),n===t.promise?c(k("Promise-chain cycle")):(o=D(n))?o.call(n,l,c):l(n)):c(r)}catch(d){u&&!a&&u.exit(),c(d)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){v.call(l,function(){var t,n,r,i=e._v,o=R(e);if(o&&(t=x(function(){E?M.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=E||R(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},O=function(e){v.call(l,function(){var t;
vendor: 4,214 bytes, line 2
2E?M.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},z=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw k("Promise can't be resolved itself");(t=D(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,c(F,r,1),c(z,r,1))}catch(i){z.call(r,i)}}):(n._v=e,n._s=1,P(n,!1))}catch(r){z.call({_w:n,_d:!1},r)}}};I||(A=function(e){f(this,A,_,"_h"),h(e),r.call(this);try{e(c(F,this,1),c(z,this,1))}catch(t){z.call(this,t)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(66254)(A.prototype,{then:function(e,t){var n=N(g(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=E?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(F,e,1),this.reject=c(z,e,1)},b.f=N=function(e){return e===A||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!I,{Promise:A}),n(35973)(A,_),n(95971)(_),a=n(89173)[_],d(d.S+d.F*!I,_,{reject:function(e){var t=N(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!I),_,{resolve:function(e){return w(s&&this===a?A:this,e)}}),d(d.S+d.F*!(I&&n(85214)(function(e){A.all(e).catch(j)})),_,{all:function(e){var t=this,n=N(t),r=n.resolve,i=n.reject,o=x(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=N(t),r=n.reject,i=x(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},13174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>w.A,StyledEngineProvider:()=>S,ThemeContext:()=>i.T,css:()=>v.AH,default:()=>_,internal_processStyles:()=>k,keyframes:()=>v.i7});var r=n(58168),i=n(69369),o=n(66598),a=n(69436),s=n(81722),l=n(65043),c=n(30918),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focu
2sable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(0,c.A)(function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:p},f=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.SF)(t,n,r),(0,a.s)(function(){return(0,s.sk)(t,n,r)}),null},g=function e(t,n){var a,c,u=t.__emotion_real===t,d=u&&t.__emotion_base||t;void 0!==n&&(a=n.label,c=n.target);var p=f(t,n,u),g=p||h(d),v=!g("as");return function(){var y=arguments,b=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{var x=y[0];b.push(x[0]);for(var S=y.length,w=1;w<S;w++)b.push(y[w],x[w])}var _=(0,i.w)(function(e,t,n){var r=v&&e.as||d,a="",u=[],f=e;if(null==e.theme){for(var y in f={},e)f[y]=e[y];f.theme=l.useContext(i.T)}"string"===typeof e.className?a=(0,s.Rk)(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var x=(0,o.J)(b.concat(u),t.registered,f);a+=t.key+"-"+x.name,void 0!==c&&(a+=" "+c);var S=v&&void 0===p?h(r):g,w={};for(var _ in e)v&&"as"===_||S(_)&&(w[_]=e[_]);return w.className=a,n&&(w.ref=n),l.createElement(l.Fragment,null,l.createElement(m,{cache:t,serialized:x,isStringTag:"string"===typeof r}),l.createElement(r,w))});return _.displayName=void 0!==a?a:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=d,_.__emotion_styles=b,_.__emotion_forwardProp=p,Object.defineProperty(_,"toString",{value:function(){return"."+c}}),_.withComponent=function(t,i){return e(t,(0,r.A)({},n,i,{shouldForwardProp:f(_,i,!0)})).apply(void 0,b)},_}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g[e]=g(e)});var v=n(83290),y=n(93803),b=n(70579);let x;function S(e){const{injectFirst:t,children:n}=e;return t&&x?(0,b.jsx)(i.C,{value:x,children:n}):n}
2"object"===typeof document&&(x=(0,y.A)({key:"css",prepend:!0}));var w=n(70869);function _(e,t){return g(e,t)}const k=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},13305:(e,t,n)=>{"use strict";var r=n(31320).OrderedMap,i={createFromArray:function(e){return r(e.map(function(e){return[e.getKey(),e]}))}};e.exports=i},13310:()=>{"use strict";Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError("this is null or not defined");var t=Object(this),n=t.length>>>0;if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return o;i++}}})},13375:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},13487:(e,t,n)=>{var r,i,o,a,s=n(66937);r=e.exports,i="PublisherInterface",o=()=>p,a=e=>p=e,Object.defineProperty(r,i,{get:o,set:a,enumerable:!0,configurable:!0});var l,c=function(e,t,n,i){return new(n||(n=Promise))(function(o,a){function s(e){try{c(i.next(e))}catch(r){a(r)}}function l(e){try{c(i.throw(e))}catch(r){a(r)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,l)}c((i=i.apply(e,t||[])).next())})},u=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},d=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n};class p{constructor(){this.chiliEventListenerCallbacks=new Map,this.debug=!1,this.creationTime="",l.set(this,null),this.getProperty=this.getObject}static build(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;return c(this,void 0,void 0,function*(){const r=new p;r.child=yield(0,s.connectToChild)({iframe:e,methods:{handleEvents:r.handleEvents.bind(r)},timeout:t.timeout,debug:t.penpalDebug}).promise,r.debug=null!==(n=t.penpalDebug)&&void 0!==n&&n,r.creationTime=(new Date).toLocaleString(),r.createDebugLog("build()");const i=t.events;if(null!=i&&i.length>0)for(const e of i)"string"==typeof e?r.addListener(e):r.addListener(e.name,e.func);return r})}handleEvents(e,t){var n;return this.chiliEventListenerCallbacks.has(e)&&(null===(n=this.chiliEventListenerCallbacks.get(e))||void 0===n||n(t)),e}createDebugLog(e){this.debug&&console.log("[PublisherInterface - ".concat(this.creationTime,"]"),"Creating ".concat(e," call request"))}get editorObject(){return null==u(this,l,"f")&&d(this,l,{Alert:this.alert.bind(this),GetDirtyState:this.getDirtyState.bind(this),NextPage:this.nextPage.bind(this),PreviousPage:this.previousPage.bind(this),SetSelectedPage:this.setSelectedPage.bind(this),GetSelectedPage:this.getSelectedPage.bind(this),GetSelectedPageName:this.getSelectedPageName.bind(this),GetNumPages:this.getNumPages.bind(this),RemoveListener:this.removeListener.bind(this),AddListener:this.addListener.bind(this),GetObject:this.getObject.bind(this),SetProperty:this.setProperty.bind(this),ExecuteFunction:this.executeFunction.bind(this),GetPageSnapshot:this.getPageSnapshot.bind(this),GetFrameSnapshot:this.getFrameSnapshot.bind(this),GetFrameSubjectArea:this.getFrameSubjectArea.bind(this),SetFrameSubjectArea:this.setFrameSubjectArea.bind(this),ClearFrameSubjectArea:this.clearFrameSubjectArea.bind(this),GetAssetSubjectInfo:this.getAssetSubjectInfo.bind(this),SetAssetSubjectInfo:this.setAssetSubjectInfo.bind(this),ClearAssetSubjectInfo:this.clearAssetSubjectInfo.bind(this),SetVariableIsLocked:this.setVariableIsLocked.bind(this)},"f"),u(this,l,"f")}registerFunction(e,t){return c(this,void 0,void 0,function*(){this.createDebugLog("registerFunction()");const n=yield this.child.registerFunction(e,t);if(n.isError)throw new Error(n.error)})}registerFunctionOnEvent(e,t){return c(this,void 0,void 0,function*(){this.createDebugLog("registerFunction()");const n=yield this.child.registerFunctionOnEvent(e,t);if(n.isError)throw new Error(n.error)})}runRegisteredFunction(e){return c(this,void 0,void 0,function*(){this.createDebugLog("runReisteredFunction()");const t=yield this.child.runRegisteredFunction(e);if(t.isError)throw new Error(t.error);return t.ok})}alert(e,t){return c(this,void 0,void 0,function*(){this.createDebugLog("alert()");const n=yield this.child.alert(e,t);if(n.isError)throw new Error(n.error)})}getDirtyState(){return c(this,void 0,void 0,function*(){this.createDebugLog("getDirtyState()");const e=yield this.child.getDirtyState();if(e.isError)throw new Error(e.error);return e.ok})}nextPage(){return c(this,void 0,void 0,function*(){this.createDebugLog("nextPage()");const e=yield this.child.nextPage();if(e.isError)throw new Error(e.error)})}previousPage(){return c(this,void 0,void 0,function*(){this.createDebugLog("previousPage()");const e=yield this.child.previousPage();if(e.isError)throw new Error(e.error)})}setSelectedPage(e){return c(this,void 0,void 0,function*(){this.createDebugLog("setSelectedPage()");const t=yield this.child.setSelectedPage(e);if(t.isError)throw new Error(t.error)})}getSelectedPage(){return c(this,void 0,void 0,function*(){this.createDebugLog("getSelectedPage()");
2const e=yield this.child.getSelectedPage();if(e.isError)throw new Error(e.error);return e.ok})}getSelectedPageName(){return c(this,void 0,void 0,function*(){this.createDebugLog("getSelectedPageName()");const e=yield this.child.getSelectedPageName();if(e.isError)throw new Error(e.error);return e.ok})}getNumPages(){return c(this,void 0,void 0,function*(){this.createDebugLog("getNumPages()");const e=yield this.child.getNumPages();if(e.isError)throw new Error(e.error);return e.ok})}removeListener(e){return c(this,void 0,void 0,function*(){this.createDebugLog("removeListener()"),this.chiliEventListenerCallbacks.delete(e);const t=yield this.child.removeListener(e);if(t.isError)throw new Error(t.error)})}addListener(e,t){return c(this,void 0,void 0,function*(){this.createDebugLog("addListener()"),this.chiliEventListenerCallbacks.set(e,null==t?t=>{null!=window.OnEditorEvent&&window.OnEditorEvent(e,t)}:t);const n=yield this.child.addListener(e);if(n.isError)throw new Error(n.error)})}getObject(e){return c(this,void 0,void 0,function*(){this.createDebugLog("getObject()");const t=yield this.child.getObject(e);if(t.isError)throw new Error(t.error);return t.ok})}setProperty(e,t,n){return c(this,void 0,void 0,function*(){this.createDebugLog("setProperty()");const r=yield this.child.setProperty(e,t,n);if(r.isError)throw new Error(r.error)})}executeFunction(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return c(this,void 0,void 0,function*(){this.createDebugLog("executeFunction()");const n=yield this.child.executeFunction(e,t,r);if(n.isError)throw new Error(n.error);return n.ok})}getPageSnapshot(e,t,n,r,i,o){return c(this,void 0,void 0,function*(){this.createDebugLog("getPageSnapshot()");const a=yield this.child.getPageSnapshot(e,t,n,r,i,o);if(a.isError)throw new Error(a.error);return a.ok})}getFrameSnapshot(e,t,n){return c(this,void 0,void 0,function*(){this.createDebugLog("getFrameSnapshot()");const r=yield this.child.getFrameSnapshot(e,t,n);if(r.isError)throw new Error(r.error);return r.ok})}getFrameSubjectArea(e){return c(this,void 0,void 0,function*(){this.createDebugLog("getFrameSubjectArea()");const t=yield this.child.getFrameSubjectArea(e);if(t.isError)throw new Error(t.error);return t.ok})}setFrameSubjectArea(e,t,n,r,i){return c(this,void 0,void 0,function*(){this.createDebugLog("setFrameSubjectArea()");const o=yield this.child.setFrameSubjectArea(e,t,n,r,i);if(o.isError)throw new Error(o.error)})}clearFrameSubjectArea(e){return c(this,void 0,void 0,function*(){this.createDebugLog("clearFrameSubjectArea()");const t=yield this.child.clearFrameSubjectArea(e);if(t.isError)throw new Error(t.error)})}getAssetSubjectInfo(e){return c(this,void 0,void 0,function*(){this.createDebugLog("getAssetSubjectInfo()");const t=yield this.child.getAssetSubjectInfo(e);if(t.isError)throw new Error(t.error);return t.ok})}setAssetSubjectInfo(e,t,n,r,i,o,a){return c(this,void 0,void 0,function*(){this.createDebugLog("setAssetSubjectInfo()");const s=yield this.child.setAssetSubjectInfo(e,t,n,r,i,o,a);if(s.isError)throw new Error(s.error)})}clearAssetSubjectInfo(e){return c(this,void 0,void 0,function*(){this.createDebugLog("clearAssetSubjectInfo()");const t=yield this.child.clearAssetSubjectInfo(e);if(t.isError)throw new Error(t.error)})}setVariableIsLocked(e,t){return c(this,void 0,void 0,function*(){this.createDebugLog("setVariableIsLocked()");const n=yield this.child.setVariableIsLocked(e,t);if(n.isError)throw new Error(n.error)})}}l=new WeakMap},13654:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,b:()=>s});var r=n(65043),i=n(13030),o=n(70579);const a=r.createContext(void 0);function s(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?(0,i.A)(o.defaultProps,r):o.styleOverrides||o.variants?r:(0,i.A)(o,r)}({props:t,name:n,theme:{components:r.useContext(a)}})}const l=function(e){let{value:t,children:n}=e;return(0,o.jsx)(a.Provider,{value:t,children:n})}},13750:(e,t,n)=>{"use strict";var r=n(76101),i=n(67060),o=n(88972),a=n(66254),s=n(30387),l=n(15785),c=n(45797),u=n(36040),d=n(83881),p=n(85214),h=n(35973),f=n(14589);e.exports=function(e,t,n,m,g,v){var y=r[e],b=y,x=g?"set":"add",S=b&&b.prototype,w={},_=function(e){var t=S[e];o(S,e,"delete"==e||"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};
2if("function"==typeof b&&(v||S.forEach&&!d(function(){(new b).entries().next()}))){var k=new b,M=k[x](v?{}:-0,1)!=k,C=d(function(){k.has(1)}),T=p(function(e){new b(e)}),A=!v&&d(function(){for(var e=new b,t=5;t--;)e[x](t,t);return!e.has(-0)});T||((b=t(function(t,n){c(t,b,e);var r=f(new y,t,b);return void 0!=n&&l(n,g,r[x],r),r})).prototype=S,S.constructor=b),(C||A)&&(_("delete"),_("has"),g&&_("get")),(A||M)&&_(x),v&&S.clear&&delete S.clear}else b=m.getConstructor(t,e,g,x),a(b.prototype,n),s.NEED=!0;return h(b,e),w[e]=b,i(i.G+i.W+i.F*(b!=y),w),v||m.setStrong(b,e,g),b}},13767:(e,t,n)=>{var r=n(89173),i=n(76101),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(47755)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},13813:(e,t,n)=>{t.f=n(63759)},13815:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(19172);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},13922:(e,t,n)=>{"use strict";var r=n(36620);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},14043:(e,t,n)=>{for(var r=n(27892),i=n(92426),o=n(88972),a=n(76101),s=n(12730),l=n(91271),c=n(63759),u=c("iterator"),d=c("toStringTag"),p=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=i(h),m=0;m<f.length;m++){var g,v=f[m],y=h[v],b=a[v],x=b&&b.prototype;if(x&&(x[u]||s(x,u,p),x[d]||s(x,d,v),l[v]=p,y))for(g in r)x[g]||o(x,g,r[g],!0)}},14048:(e,t,n)=>{var r=n(67060),i=n(45583);r(r.G+r.F*(parseInt!=i),{parseInt:i})},14059:(e,t,n)=>{"use strict";var r=n(56283);e.exports=function(e,t,n){var i=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout(function(){n(i)},0)):n(i);else{var o=i.getCurrentContent();n(r.set(i,{nativelyRenderedContent:o}))}}},14148:e=>{e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},14202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,m(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray,w=Object.prototype.hasOwnProperty,_={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:_.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function A(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function E(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+A(l,0):o,S(a)?(i="",null!=e&&(i=e.replace(T,"$&/")+"/"),E(a,t,i,"",function(e){return e})):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",S(e))for(var c=0;c<e.length;c++){var u=o+A(s=e[c],c);l+=E(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=E(s=s.value,t,i,u=o+A(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function j(e,t,n){if(null==e)return e;var r=[],i=0;return E(e,r,"","",function(e){return t.call(n,e,i++)}),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},D={transition:null},P={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:D,ReactCurrentOwner:_};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.act=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=M,t.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},14318:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,p0:()=>s});var r=n(98587),i=n(58168);const o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(Math.round(e),"ms")}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.A)({},a,e.easing),n=(0,i.A)({},s,e.duration);return(0,i.A)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;(0,r.A)(i,o);return(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"===typeof a?a:l(a)," ").concat(s," ").concat("string"===typeof c?c:l(c))).join(",")}},e,{easing:t,duration:n})}},14556:(e,t,n)=>{"use strict";var r=n(12718).f,i=n(72506),o=n(66254),a=n(57621),s=n(45797),l=n(15785),c=n(50966),u=n(45471),d=n(95971),p=n(73358),h=n(30387).fastKey,f=n(30289),m=p?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,r){s(e,u,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&l(r,n,e[c],e)});return o(u.prototype,{clear:function(){for(var e=f(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=f(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){f(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(f(this,t),e)}}),p&&r(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=f(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))},n?"entries":"values",!n,!0),d(t)}}}
2,14589:(e,t,n)=>{var r=n(36040),i=n(95867).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},14669:(e,t,n)=>{"use strict";var r=n(36415),i="LTR",o=null;function a(e){return e===i||"RTL"===e}function s(e){return a(e)||r(!1),e===i?"ltr":"rtl"}function l(e){o=e}var c={NEUTRAL:"NEUTRAL",LTR:i,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return a(e)||r(!1),a(t)||r(!1),e===t?null:s(e)},setGlobalDir:l,initGlobalDir:function(){l(i)},getGlobalDir:function(){return o||this.initGlobalDir(),o||r(!1),o}};e.exports=c},14789:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H4V8l8 5 8-5zm-8-7L4 6h16z"}),"MailOutline")},15036:(e,t,n)=>{"use strict";var r=n(22934).notEmptyKey;function i(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:i(e.getEntityMap(),n):null}var a=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(a);return n=s===l.getLength()?null:l.getEntityAt(s),i(e.getEntityMap(),n)}},15170:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(64780).A)()},15530:(e,t,n)=>{var r=n(81115),i=n(325),o=n(33435),a=n(30853),s=n(26928),l=o.keys,c=o.key,u=function(e,t){var n=l(e,t),o=s(e);if(null===o)return n;var a=u(o,t);return a.length?n.length?i(new r(n.concat(a))):a:n};o.exp({getMetadataKeys:function(e){return u(a(e),arguments.length<2?void 0:c(arguments[1]))}})},15719:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,a=i&n,s=r>>>16,l=i>>>16,c=(s*a>>>0)+(o*a>>>16);return s*l+(c>>>16)+((o*l>>>0)+(c&n)>>>16)}})},15775:(e,t,n)=>{"use strict";var r=n(67060),i=n(25534);r(r.S+r.F*n(83881)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},15785:(e,t,n)=>{var r=n(57621),i=n(63921),o=n(38109),a=n(30853),s=n(58116),l=n(67011),c={},u={},d=e.exports=function(e,t,n,d,p){var h,f,m,g,v=p?function(){return e}:l(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(h=s(e.length);h>b;b++)if((g=t?y(a(f=e[b])[0],f[1]):y(e[b]))===c||g===u)return g}else for(m=v.call(e);!(f=m.next()).done;)if((g=i(m,y,f.value,t))===c||g===u)return g};d.BREAK=c,d.RETURN=u},15794:(e,t,n)=>{var r=n(67060),i=n(6591);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},15902:e=>{"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},16485:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},16711:(e,t,n)=>{var r=n(67060),i=n(45583);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},16726:(e,t,n)=>{"use strict";var r=n(67060),i=n(68027),o=n(37652),a=n(12718);n(73358)&&r(r.P+n(2052),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},17162:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var r=n(67598),i=n(89751);function o(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n="vars.".concat(t).split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:o(e,n)||i,t&&(r=t(r,i,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,s)||{};return(0,i.NI)(e,c,e=>{let i=a(u,l,e);return e===i&&"string"===typeof e&&(i=a(u,l,"".concat(t).concat("default"===e?"":(0,r.A)(e)),e)),!1===n?i:{[n]:i}})};return c.propTypes={},c.filterProps=[t],c}}
2,17443:(e,t,n)=>{"use strict";var r=n(49534);e.exports=r},17465:(e,t,n)=>{"use strict";n(35499);var r=n(30853),i=n(40671),o=n(73358),a="toString",s=/./[a],l=function(e){n(88972)(RegExp.prototype,a,e,!0)};n(83881)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?l(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):s.name!=a&&l(function(){return s.call(this)})},17713:(e,t,n)=>{var r=n(58097),i=n(325);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},17868:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},17888:(e,t,n)=>{var r=n(12718),i=n(2008),o=n(26928),a=n(40964),s=n(67060),l=n(61529),c=n(30853),u=n(36040);s(s.S,"Reflect",{set:function e(t,n,s){var d,p,h=arguments.length<4?t:
2arguments[3],f=i.f(c(t),n);if(!f){if(u(p=o(t)))return e(p,n,s,h);f=l(0)}if(a(f,"value")){if(!1===f.writable||!u(h))return!1;if(d=i.f(h,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(h,n,d)}else r.f(h,n,l(0,s));return!0}return void 0!==f.set&&(f.set.call(h,s),!0)}})},18167:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,function(e,t){return t.toUpperCase()})}},18280:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(58168),i=n(98587),o=n(19172),a=n(34853);const s={borderRadius:4};var l=n(28604);var c=n(58812),u=n(37758),d=n(89703);const p=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:f={}}=e,m=(0,i.A)(e,p),g=(0,a.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map(e=>{const n=t(e);return"number"===typeof n?"".concat(n,"px"):n}).join(" ")};return n.mui=!0,n}(h);let y=(0,o.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:v,shape:(0,r.A)({},s,f)},m);y.applyStyles=d.A;for(var b=arguments.length,x=new Array(b>1?b-1:0),S=1;S<b;S++)x[S-1]=arguments[S];return y=x.reduce((e,t)=>(0,o.A)(e,t),y),y.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}}
2,18328:(e,t,n)=>{var r=n(67060),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},18387:(e,t,n)=>{"use strict";var r=n(67060);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},18684:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{log1p:n(66754)})},18698:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),i=n(98587),o=n(19172),a=n(37758);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach(t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,o.Q)(e)?(0,r.A)({},a,e):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},18731:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},18799:(e,t,n)=>{"use strict";n(17443);e.exports=function(e,t){var n,r=e.getSelection(),i=r.getStartKey(),o=r.getStartOffset(),a=e.getCurrentContent(),s=i;return t>a.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+t,r.merge({focusKey:s,focusOffset:n})}}
2,19172:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,Q:()=>o});var r=n(58168),i=n(65043);function o(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(i.isValidElement(e)||!o(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=a(e[n])}),t}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const l=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach(r=>{i.isValidElement(t[r])?l[r]=t[r]:o(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&o(e[r])?l[r]=s(e[r],t[r],n):n.clone?l[r]=o(t[r])?a(t[r]):t[r]:l[r]=t[r]}),l}},19482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(19172)},19523:(e,t,n)=>{"use strict";var r=n(42123);function i(){return i=r||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},i.apply(this,arguments)}var o=n(4414),a=n(65043),s=n(35782),l=n(14669),c=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,c=e.decorator,u=e.decoratorKey,d=e.direction,p=e.leafSet,h=e.text,f=t.getKey(),m=p.get("leaves"),g=c.getComponentForKey(u),v=c.getPropsForKey(u),y=o.encode(f,parseInt(u,10),0),b=h.slice(m.first().get("start"),m.last().get("end")),x=l.getHTMLDirIfDifferent(s.getDirection(b),d);return a.createElement(g,i({},v,{contentState:r,decoratedText:b,dir:x,key:y,entityKey:t.getEntityAt(p.get("start")),offsetKey:y}),n)},r}(a.Component);e.exports=c},19759:(e,t,n)=>{var r=n(67060),i=n(91115)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},19778:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},19806:(e,t,n)=>{"use strict";var r=n(52367),i=n(31320).List;e.exports=function(e,t){var n=e.map(function(e,n){var i=t[n];return r.create({style:e,entity:i})});return i(n)}},19911:(e,t,n)=>{var r=n(25586),i=n(2008).f;n(80156)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},20169:(e,t,n)=>{"use strict";var r=n(25763),i=n(56283),o=n(61275),a=n(88691),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=i.push(e,t,"insert-characters");return i.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var a=n.getBlockMap().delete(o.getKey()),l=n.merge({blockMap:a,selectionAfter:t});if(l!==n)return i.push(e,l,"remove-range")}var c=s.tryToRemoveBlockStyle(e);return c?i.push(e,c,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),o=t.getStartKey(),a=n.getBlockForKey(o).getLength();if(t.getStartOffset()<a)return null;
2var s=n.getBlockAfter(o);if(!s||"atomic"!==s.getType())return null;var l=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),c=r.removeRange(n,l,"forward");return c!==n?i.push(e,c,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var s=t.getCurrentContent(),l=s.getBlockForKey(a),c=l.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return t;e.preventDefault();var u=l.getDepth();if(!e.shiftKey&&u===n)return t;var d=o(s,r,e.shiftKey?-1:1,n);return i.push(t,d,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),o=n.getStartKey(),s=n.getEndKey(),l=e.getCurrentContent(),c=n;if(o!==s&&0===n.getEndOffset()){var u=a(l.getBlockBefore(s));s=u.getKey(),c=c.merge({anchorKey:o,anchorOffset:n.getStartOffset(),focusKey:s,focusOffset:u.getLength(),isBackward:!1})}if(l.getBlockMap().skipWhile(function(e,t){return t!==o}).reverse().skipWhile(function(e,t){return t!==s}).some(function(e){return"atomic"===e.getType()}))return e;var d=l.getBlockForKey(o).getType()===t?"unstyled":t;return i.push(e,r.setBlockType(l,c,d),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),o=e.getCurrentInlineStyle();if(n.isCollapsed())return i.setInlineStyleOverride(e,o.has(t)?o.remove(t):o.add(t));var a,s=e.getCurrentContent();return a=o.has(t)?r.removeInlineStyle(s,n,t):r.applyInlineStyle(s,n,t),i.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var o=r.applyEntity(e.getCurrentContent(),t,n);return i.push(e,o,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var i=t.getAnchorKey(),o=e.getCurrentContent(),a=o.getBlockForKey(i).getType(),s=o.getBlockBefore(i);if("code-block"===a&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==a)return r.setBlockType(o,t,"unstyled")}return null}};e.exports=s},20247:(e,t,n)=>{var r=n(67060);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},20947:e=>{"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var i=arguments[r];i&&(t=(t?t+" ":"")+i)}return t}},21032:(e,t,n)=>{"use strict";var r=n(48009)(!0);n(50966)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},21580:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(2);r(r.P+r.F*!n(65417)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},22198:(e,t,n)=>{"use strict";var r=n(56283),i=n(24939),o=n(18799),a=n(73767);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return o(e,s?i.getUTF16Length(s,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},22246:(e,t,n)=>{var r=n(67060),i=n(30853),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},22324:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{scale:n(36791)})},22342:(e,t,n)=>{var r=n(79500),i=n(58116);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}},22351:(e,t,n)=>{"use strict";var r=n(76101),i=n(73358),o=n(47755),a=n(77548),s=n(12730),l=n(66254),c=n(83881),u=n(45797),d=n(79500),p=n(58116),h=n(22342),f=n(45658).f,m=n(12718).f,g=n(72063),v=n(35973),y="ArrayBuffer",b="DataView",x="prototype",S="Wrong index!",w=r[y],_=r[b],k=r.Math,M=r.RangeError,C=r.Infinity,T=w,A=k.abs,E=k.pow,j=k.floor,N=k.log,I=k.LN2,D="buffer",P="byteLength",L="byteOffset",R=i?"_b":D,O=i?"_l":P,z=i?"_o":L;function F(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?E(2,-24)-E(2,-77):0,d=0,p=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===C?(i=e!=e?1:0,r=l):(r=j(N(e)/I),e*(o=E(2,-r))<1&&(r--,o*=2),(e+=r+c>=1?u/o:u*E(2,1-c))*o>=2&&(r++,o/=2),r+c>=l?(i=0,r=l):r+c>=1?(i=(e*o-1)*E(2,t),r+=c):(i=e*E(2,c-1)*E(2,t),r=0));t>=8;a[d++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[d++]=255&r,r/=256,s-=8);return a[--d]|=128*p,a}function B(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return r?NaN:c?-C:C;r+=E(2,t),u-=a}return(c?-1:1)*r*E(2,u-t)}function U(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function W(e){return[255&e,e>>8&255]}function V(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function G(e){return F(e,52,8)}function q(e){return F(e,23,4)}function K(e,t,n){m(e[x],t,{get:function(){return this[n]}})}function Y(e,t,n,r){var i=h(+n);if(i+t>e[O])throw M(S);var o=e[R]._b,a=i+e[z],s=o.slice(a,a+t);return r?s:s.reverse()}function X(e,t,n,r,i,o){var a=h(+n);if(a+t>e[O])throw M(S);for(var s=e[R]._b,l=a+e[z],c=r(+i),u=0;u<t;u++)s[l+u]=c[o?u:t-u-1]}if(a.ABV){if(!c(function(){w(1)})||!c(function(){new w(-1)})||c(function(){return new w,new w(1.5),new w(NaN),w.name!=y})){for(var Z,Q=(w=function(e){return u(this,w),new T(h(e))}
2)[x]=T[x],J=f(T),$=0;J.length>$;)(Z=J[$++])in w||s(w,Z,T[Z]);o||(Q.constructor=w)}var ee=new _(new w(2)),te=_[x].setInt8;ee.setInt8(0,2147483648),ee.setInt8(1,2147483649),!ee.getInt8(0)&&ee.getInt8(1)||l(_[x],{setInt8:function(e,t){te.call(this,e,t<<24>>24)},setUint8:function(e,t){te.call(this,e,t<<24>>24)}},!0)}else w=function(e){u(this,w,y);var t=h(e);this._b=g.call(new Array(t),0),this[O]=t},_=function(e,t,n){u(this,_,b),u(e,w,b);var r=e[O],i=d(t);if(i<0||i>r)throw M("Wrong offset!");if(i+(n=void 0===n?r-i:p(n))>r)throw M("Wrong length!");this[R]=e,this[z]=i,this[O]=n},i&&(K(w,P,"_l"),K(_,D,"_b"),K(_,P,"_l"),K(_,L,"_o")),l(_[x],{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return U(Y(this,4,e,arguments[1]))},getUint32:function(e){return U(Y(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return B(Y(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return B(Y(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,H,t)},setUint8:function(e,t){X(this,1,e,H,t)},setInt16:function(e,t){X(this,2,e,W,t,arguments[2])},setUint16:function(e,t){X(this,2,e,W,t,arguments[2])},setInt32:function(e,t){X(this,4,e,V,t,arguments[2])},setUint32:function(e,t){X(this,4,e,V,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,q,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,G,t,arguments[2])}});v(w,y),v(_,b),s(_[x],a.VIEW,!0),t[y]=w,t[b]=_},22427:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(31668).A},22526:(e,t,n)=>{"use strict";var r=n(30853),i=n(56547),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},22536:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z"}),"Map")},22934:e=>{"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},23226:(e,t,n)=>{"use strict";var r=n(64088),i=n(24939).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(o,a){var s=e.getText(),l=e.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(t[r.stringify(l)])})}),n}},23237:(e,t,n)=>{var r=n(76101).navigator;e.exports=r&&r.userAgent||""},23797:(e,t,n)=>{var r=n(67060);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},24343:(e,t,n)=>{var r=n(67060);r(r.P,"Array",{fill:n(72063)}),n(60599)("fill")},24419:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,a=i&n,s=r>>16,l=i>>16,c=(s*a>>>0)+(o*a>>>16);return s*l+(c>>16)+((o*l>>>0)+(c&n)>>16)}})},24766:(e,t,n)=>{var r=n(67060);r(r.P+r.R,"Map",{toJSON:n(17713)("Map")})},24801:(e,t,n)=>{"use strict";var r="['\u2018\u2019]",i="\\s|(?![_])"+n(8978).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:"+r+"|(?!"+i+").)*(?:(?!"+i+").)"),a=new RegExp("(?:(?!"+i+").)(?:"+r+"|(?!"+i+").)*(?:"+i+")*$");function s(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var l={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=l},24864:(e,t,n)=>{"use strict";var r=n(30853),i=n(68027),o=n(58116),a=n(79500),s=n(38963),l=n(64748),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,f=function(e){return void 0===e?e:String(e)};n(1907)("replace",2,function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),p=String(this),h="function"===typeof t;h||(t=String(t));var v=d.global;if(v){var y=d.unicode;d.lastIndex=0}for(var b=[];;){var x=l(d,p);if(null===x)break;if(b.push(x),!v)break;""===String(x[0])&&(d.lastIndex=s(p,o(d.lastIndex),y))}for(var S="",w=0,_=0;_<b.length;_++){x=b[_];for(var k=String(x[0]),M=c(u(a(x.index),p.length),0),C=[],T=1;T<x.length;T++)C.push(f(x[T]));var A=x.groups;if(h){var E=[k].concat(C,M,p);void 0!==A&&E.push(A);var j=String(t.apply(void 0,E))}else j=g(k,p,M,C,A,t);M>=w&&(S+=p.slice(w,M)+j,w=M+k.length)}return S+p.slice(w)}];function g(e,t,r,o,a,s){var l=r+e.length,c=o.length,u=h;return void 0!==a&&(a=i(a),u=p),n.call(s,u,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):n}s=o[u-1]}return void 0===s?"":s})}})}
2,24939:(e,t,n)=>{"use strict";var r=n(36415),i=/[\uD800-\uDFFF]/;function o(e){return 55296<=e&&e<=57343}function a(e){return i.test(e)}function s(e,t){return 1+o(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var i=0;if(t>0){for(;t>0&&i<r;t--)i+=s(e,i);if(i>=r)return""}else if(t<0){for(i=r;t<0&&0<i;t++)i-=s(e,i-1);i<0&&(i=0)}var o=r;if(n<r)for(o=i;n>0&&o<r;n--)o+=s(e,o);return e.substring(i,o)}var c={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=s(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:o,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),i=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=i&&i<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,n=0;n<e.length;n+=s(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return l(e,t=t<n?t:n,r)},substr:l};e.exports=c},24989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var r=n(18280),i=n(34853),o=n(89703)},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},25173:(e,t,n)=>{var r=n(67060);r(r.S+r.F*!n(73358),"Object",{defineProperties:n(49349)})},25534:(e,t,n)=>{"use strict";var r=n(12718),i=n(61529);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},25586:(e,t,n)=>{var r=n(12372),i=n(49649);e.exports=function(e){return r(i(e))}},25763:(e,t,n)=>{"use strict";var r=n(52367),i=n(81589),o=n(43633),a=n(79639),s=n(36935),l=n(31320),c=n(53384),u=n(45311),d=n(36415),p=n(91477),h=n(79529),f=n(75638),m=n(28701),g=l.OrderedSet,v={replaceText:function(e,t,n,i,o){var a=h(e,t),s=f(a,t),l=r.create({style:i||g(),entity:o||null});return u(s,s.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,i){return t.isCollapsed()||d(!1),v.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=s(e,t),i=v.removeRange(e,t,"backward");return v.replaceWithFragment(i,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",i=h(e,t),o=f(i,t);return c(o,o.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,i,o,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),i=t.getFocusKey(),o=e.getBlockForKey(r),s=e.getBlockForKey(i);var l=t.getStartOffset(),c=t.getEndOffset(),u=o.getEntityAt(l),d=s.getEntityAt(c-1);if(r===i&&u&&u===d){var p=a(e.getEntityMap(),o,s,t,n);return f(e,p)}var m=h(e,t);return f(m,t)},splitBlock:function(e,t){var n=h(e,t),r=f(n,t);return m(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return i.add(e,t,n)},removeInlineStyle:function(e,t,n){return i.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,function(e){return e.merge({type:n,depth:0})})},setBlockData:function(e,t,n){return p(e,t,function(e){return e.merge({data:n})})},mergeBlockData:function(e,t,n){return p(e,t,function(e){return e.merge({data:e.getData().merge(n)})})},applyEntity:function(e,t,n){var r=h(e,t);return o(r,t,n)}};e.exports=v},25798:(e,t,n)=>{"use strict";var r=n(24939),i=n(38358),o=n(43e3),a=n(36415);function s(e,t){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),i=Math.max(i,s.top),o=Math.max(o,s.bottom))}return i<=r&&i-n<t&&o-r<t}function l(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}
2e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=i(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||a(!1),o.appendChild(r);var s=r.getBoundingClientRect();return o.removeChild(r),s.height}(t),c=e.endContainer,u=e.endOffset;for(e.setStart(e.startContainer,0);s(o(e),n)&&(c=e.startContainer,u=e.startOffset,c.parentNode||a(!1),e.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var d=c,p=u-1;;){for(var h=d.nodeValue,f=p;f>=0;f--)if(!(null!=h&&f>0&&r.isSurrogatePair(h,f-1))){if(e.setStart(d,f),!s(o(e),n))break;c=d,u=f}if(-1===f||0===d.childNodes.length)break;p=l(d=d.childNodes[f])}return e.setStart(c,u),e}},26564:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},26581:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox")},26928:(e,t,n)=>{var r=n(40964),i=n(68027),o=n(42993)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},26951:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm1 10h-4v1h3c.55 0 1 .45 1 1v3c0 .55-.45 1-1 1h-1v1h-2v-1H9v-2h4v-1h-3c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1h1V9h2v1h2zm-2-4V3.5L17.5 8z"}),"RequestQuote")},27154:(e,t,n)=>{var r=n(3444);e.exports=Array.isArray||function(e){return"Array"==r(e)}},27159:(e,t,n)=>{"use strict";var r=n(42123);function i(){return i=r||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},i.apply(this,arguments)}var o=n(93586),a=n(4414),s=n(65043),l=n(35914),c=n(51614),u=n(35782),d=n(14669),p=n(67904),h=n(70636),f=n(68349),m=n(85628),g=n(36415),v=n(9990),y=n(88691),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},x=function(e){var t,n;function r(){for(var t,n,r,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),i=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var x=r.prototype;return x.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},x.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,i=c.getScrollParent(n),o=f(i);if(i===window){var a=h(n);(r=a.y+a.height-m().height)>0&&window.scrollTo(o.x,o.y+r+10)}else{v(n)||g(!1),(r=n.offsetHeight+n.offsetTop-(i.offsetTop+i.offsetHeight+o.y))>0&&l.setTop(i,l.getTop(i)+r+10)}}}}},x._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),l=this.props.tree.size-1,c=b(this.props.selection,n);return this.props.tree.map(function(p,h){var f=p.get("leaves");if(0===f.size)return null;var m=f.size-1,g=f.map(function(i,u){var d=a.encode(n,h,u),p=i.get("start"),f=i.get("end");return s.createElement(o,{key:d,offsetKey:d,block:t,start:p,selection:c?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,f),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===l&&u===m})}).toArray(),v=p.get("decoratorKey");if(null==v)return g;if(!e.props.decorator)return g;var b=y(e.props.decorator),x=b.getComponentForKey(v);if(!x)return g;var S=b.getPropsForKey(v),w=a.encode(n,h,0),_=f.first().get("start"),k=f.last().get("end"),M=r.slice(_,k),C=t.getEntityAt(p.get("start")),T=d.getHTMLDirIfDifferent(u.getDirection(M),e.props.direction),A={contentState:e.props.contentState,decoratedText:M,dir:T,start:_,end:k,blockKey:n,entityKey:C,offsetKey:w};return s.createElement(x,i({},S,A,{key:w}),g)}).toArray()},x.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,i=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},r}(s.Component);e.exports=x},27234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function S(e){if(g=!1,x(e),!m)if(null!==r(c))m=!0,D(w);else{var t=r(u);null!==t&&P(S,t.startTime-e)}}function w(e,n){m=!1,g&&(g=!1,y(C),C=-1),f=!0;var o=h;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!E());){var a=p.callback;if("function"===typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===r(c)&&i(c),x(n)}else i(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&P(S,d.startTime-n),l=!1}return l}finally{p=null,h=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,k=!1,M=null,C=-1,T=5,A=-1;function E(){return!(t.unstable_now()-A<T)}function j(){if(null!==M){var e=t.unstable_now();A=e;var n=!0;try{n=M(!0,e)}finally{n?_():(k=!1,M=null)}}else k=!1}if("function"===typeof b)_=function(){b(j)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,I=N.port2;N.port1.onmessage=j,_=function(){I.postMessage(null)}}else _=function(){v(j,0)};function D(e){M=e,k||(k=!0,_())}function P(e,n){C=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,D(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(y(C),C=-1):g=!0,P(S,o-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,D(w))),e},t.unstable_shouldYield=E,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}
2,27328:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65043);const i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},27711:(e,t,n)=>{var r=n(12718),i=n(67060),o=n(30853),a=n(56547);i(i.S+i.F*n(83881)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(i){return!1}}})},27713:(e,t,n)=>{var r=n(67060),i=n(83881),o=n(49649),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},27892:(e,t,n)=>{"use strict";var r=n(60599),i=n(45471),o=n(91271),a=n(25586);e.exports=n(50966)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},27924:(e,t,n)=>{"use strict";var r=n(67060),i=n(89173),o=n(76101),a=n(54483),s=n(99468);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.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)}})},28009:e=>{"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},28077:(e,t,n)=>{var r=n(67060),i=n(31241),o=n(25586),a=n(2008),s=n(25534);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),l=a.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=l(r,t=c[d++]))&&s(u,t,n);return u}})},28149:(e,t,n)=>{n(58452)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},28210:(e,t,n)=>{var r=n(33435),i=n(30853),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},28295:(e,t,n)=>{var r=n(36040),i=n(27154),o=n(63759)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},28604:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>h,_W:()=>m,Lc:()=>y,Ms:()=>b});var r=n(89751),i=n(17162),o=n(13815);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(e,t,n,r){var o;const a=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function f(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=m(t,n),e),{})}(c(n),i),a=e[n];return(0,r.NI)(e,a,o)}function v(e,t){const n=f(e.theme);return Object.keys(e).map(r=>g(e,t,r,n)).reduce(o.A,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function x(e){return v(e,p)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=p},28701:(e,t,n)=>{"use strict";var r=n(66559),i=n(70306),o=n(31320),a=n(36415),s=n(91477),l=o.List,c=o.Map,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),o=e.getBlockMap(),d=o.get(n),p=d.getText();if(!p){var h=d.getType();if("unordered-list-item"===h||"ordered-list-item"===h)return s(e,t,function(e){return e.merge({type:"unstyled",depth:0})})}var f=t.getAnchorOffset(),m=d.getCharacterList(),g=i(),v=d instanceof r,y=d.merge({text:p.slice(0,f),characterList:m.slice(0,f)}),b=y.merge({key:g,text:p.slice(f),characterList:m.slice(f),data:c()}),x=o.toSeq().takeUntil(function(e){return e===d}),S=o.toSeq().skipUntil(function(e){return e===d}).rest(),w=x.concat([[n,y],[g,b]],S).toOrderedMap();return v&&(d.getChildKeys().isEmpty()||a(!1),w=function(e,t,n){return e.withMutations(function(e){var r=t.getKey(),i=n.getKey();u(t.getParentKey(),e,function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,o=t.toArray();
2return o.splice(n,0,i),e.merge({children:l(o)})}),u(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:i})}),u(r,e,function(e){return e.merge({nextSibling:i})}),u(i,e,function(e){return e.merge({prevSibling:r})})})}(w,y,b)),e.merge({blockMap:w,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},28704:(e,t,n)=>{var r=n(79500),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},28951:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},29262:(e,t,n)=>{"use strict";n(27713)("fixed",function(e){return function(){return e(this,"tt","","")}})},29303:e=>{"use strict";e.exports=function(e){return"handled"===e||!0===e}},29704:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause")},30289:(e,t,n)=>{var r=n(36040);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},30387:(e,t,n)=>{var r=n(49338)("meta"),i=n(36040),o=n(40964),a=n(12718).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(83881)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!o(e,r)&&u(e),e}}},30807:(e,t,n)=>{var r=n(36040);n(80156)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},30853:(e,t,n)=>{var r=n(36040);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},30918:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},31129:(e,t,n)=>{var r=n(76101),i=n(6591).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n(3444)(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(l&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=d=!d}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},31241:(e,t,n)=>{var r=n(45658),i=n(35421),o=n(30853),a=n(76101).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},31320:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:K(e)}function r(e){return s(e)?e:Y(e)}function i(e){return l(e)?e:X(e)}function o(e){return a(e)&&!c(e)?e:Z(e)}function a(e){return!(!e||!e[d])}function s(e){return!(!e||!e[p])}function l(e){return!(!e||!e[h])}function c(e){return s(e)||l(e)}function u(e){return!(!e||!e[f])}t(r,n),t(i,n),t(o,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=l,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=i,n.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",f="@@__IMMUTABLE_ORDERED__@@",m="delete",g=5,v=1<<g,y=v-1,b={},x={value:!1},S={value:!1};function w(e){return e.value=!1,e}function _(e){e&&(e.value=!0)}function k(){}function M(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function C(e){return void 0===e.size&&(e.size=e.__iterate(A)),e.size}function T(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function A(){return!0}function E(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function j(e,t){return I(e,t,0)}function N(e,t){return I(e,t,t)}function I(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,P=1,L=2,R="function"===typeof Symbol&&Symbol.iterator,O="@@iterator",z=R||O;function F(e){this.next=e}function B(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function U(){return{value:void 0,done:!0}}function H(e){return!!G(e)}function W(e){return e&&"function"===typeof e.next}function V(e){var t=G(e);return t&&t.call(e)}function G(e){var t=e&&(R&&e[R]||e[O]);if("function"===typeof t)return t}function q(e){return e&&"number"===typeof e.length}function K(e){return null===e||void 0===e?ae():a(e)?e.toSeq():ce(e)}function Y(e){return null===e||void 0===e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function X(e){return null===e||void 0===e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function Z(e){return(null===e||void 0===e?ae():a(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=P,F.ENTRIES=L,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[z]=function(){return this},t(K,n),K.of=function(){return K(arguments)},K.prototype.toSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq {","}")},K.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},K.prototype.__iterate=function(e,t){return de(this,e,t,!0)},K.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(Y,K),Y.prototype.toKeyedSeq=function(){return this},t(X,K),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return de(this,e,t,!1)},X.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Z,K),Z.of=function(){return Z(arguments)},Z.prototype.toSetSeq=function(){return this},K.isSeq=oe,K.Keyed=Y,K.Set=Z,K.Indexed=X;
vendor: 5,016 bytes, line 2
2var Q,J,$,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return Q||(Q=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():W(e)?new ie(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return q(e)?new te(e):W(e)?new ie(e):H(e)?new re(e):void 0}function de(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new F(function(){var e=i[n?o-a:a];return a++>o?U():B(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function he(e,t){return t?fe(t,e,"",{"":e}):me(e)}function fe(e,t,n,r){return Array.isArray(t)?e.call(r,n,X(t).map(function(n,r){return fe(e,n,r,t)})):ge(t)?e.call(r,n,Y(t).map(function(n,r){return fe(e,n,r,t)})):t}function me(e){return Array.isArray(e)?X(e).map(me).toList():ge(e)?Y(e).map(me).toMap():e}function ge(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function ye(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&ve(i[1],e)&&(n||ve(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var d=!0,p=t.__iterate(function(t,r){if(n?!e.has(t):i?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return d=!1,!1});return d&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function xe(e,t){if(!e)throw new Error(t)}function Se(e,t,n){if(!(this instanceof Se))return new Se(e,t,n);if(xe(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if($)return $;$=this}}function we(){throw TypeError("Abstract")}function _e(){}function ke(){}function Me(){}K.prototype[ee]=!0,t(te,X),te.prototype.get=function(e,t){return this.has(e)?this._array[T(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new F(function(){return i>r?U():B(e,i,n[t?r-i++:i++])})},t(ne,Y),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(!1===e(n[a],a,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new F(function(){var a=r[t?i-o:o];return o++>i?U():B(e,a,n[a])})},ne.prototype[f]=!0,t(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=V(this._iterable),r=0;if(W(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=V(this._iterable);if(!W(n))return new F(U);var r=0;return new F(function(){var t=n.next();return t.done?t:B(e,r++,t.value)})},t(ie,X),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===e(i[o],o++,this))return o;for(;!(n=r.next()).done;){var a=n.value;if(i[o]=a,!1===e(a,o++,this))break}return o},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new F(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}
2return B(e,i,r[i++])})},t(be,X),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return E(e,t,n)?this:new be(this._value,N(t,n)-j(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F(function(){return r<n.size?B(e,r++,n._value):U()})},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):ye(e)},t(Se,X),Se.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Se.prototype.get=function(e,t){return this.has(e)?this._start+T(this,e)*this._step:t},Se.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Se.prototype.slice=function(e,t){return E(e,t,this.size)?this:(e=j(e,this.size),(t=N(t,this.size))<=e?new Se(0,0):new Se(this.get(e,this._end),this.get(t,this._end),this._step))},Se.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Se.prototype.lastIndexOf=function(e){return this.indexOf(e)},Se.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(i,o,this))return o+1;i+=t?-r:r}return o},Se.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,o=0;return new F(function(){var a=i;return i+=t?-r:r,o>n?U():B(e,o++,a)})},Se.prototype.equals=function(e){return e instanceof Se?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(we,n),t(_e,we),t(ke,we),t(Me,we),we.Keyed=_e,we.Indexed=ke,we.Set=Me;var Ce="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Te(e){return e>>>1&1073741824|3221225471&e}function Ae(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Te(n)}if("string"===t)return e.length>Fe?Ee(e):je(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return Ne(e);if("function"===typeof e.toString)return je(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ee(e){var t=He[e];return void 0===t&&(t=je(e),Ue===Be&&(Ue=0,He={}),Ue++,He[e]=t),t}function je(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Te(t)}function Ne(e){var t;if(Re&&void 0!==(t=Le.get(e)))return t;if(void 0!==(t=e[ze]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ze]))return t;if(void 0!==(t=Pe(e)))return t}if(t=++Oe,1073741824&Oe&&(Oe=0),Re)Le.set(e,t);else{if(void 0!==Ie&&!1===Ie(e))throw new Error("Non-extensible objects are not allowed as keys.");
vendor: 38,911 bytes, line 2
2if(De)Object.defineProperty(e,ze,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ze]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ze]=t}}return t}var Ie=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Pe(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Le,Re="function"===typeof WeakMap;Re&&(Le=new WeakMap);var Oe=0,ze="__immutablehash__";"function"===typeof Symbol&&(ze=Symbol(ze));var Fe=16,Be=255,Ue=0,He={};function We(e){xe(e!==1/0,"Cannot perform this action with an infinite size.")}function Ve(e){return null===e||void 0===e?it():Ge(e)&&!u(e)?e:it().withMutations(function(t){var n=r(e);We(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Ge(e){return!(!e||!e[Ke])}t(Ve,_e),Ve.prototype.toString=function(){return this.__toString("Map {","}")},Ve.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ve.prototype.set=function(e,t){return ot(this,e,t)},Ve.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},Ve.prototype.remove=function(e){return ot(this,e,b)},Ve.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},Ve.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ve.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=gt(this,wn(e),t,n);return r===b?void 0:r},Ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):it()},Ve.prototype.merge=function(){return pt(this,void 0,arguments)},Ve.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ve.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,it(),function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]})},Ve.prototype.mergeDeep=function(){return pt(this,ht,arguments)},Ve.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ft(t),n)},Ve.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,it(),function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]})},Ve.prototype.sort=function(e){return Ht(dn(this,e))},Ve.prototype.sortBy=function(e,t){return Ht(dn(this,t,e))},Ve.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ve.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},Ve.prototype.asImmutable=function(){return this.__ensureOwner()},Ve.prototype.wasAltered=function(){return this.__altered},Ve.prototype.__iterator=function(e,t){return new et(this,e,t)},Ve.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},Ve.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ve.isMap=Ge;var qe,Ke="@@__IMMUTABLE_MAP__@@",Ye=Ve.prototype;function Xe(e,t){this.ownerID=e,this.entries=t}function Ze(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Qe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function $e(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return B(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var i=Object.create(Ye);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function it(){return qe||(qe=rt(0))}function ot(e,t,n){var r,i;if(e._root){var o=w(x),a=w(S);if(r=at(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===b?-1:1:0)}else{if(n===b)return e;i=1,r=new Xe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(i,r):it()}function at(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===b?e:(_(s),_(a),new $e(t,r,[i,o]))}function st(e){return e.constructor===$e||e.constructor===Je}function lt(e,t,n,r,i){if(e.keyHash===r)return new Je(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&y,s=(0===n?r:r>>>n)&y;return new Ze(t,1<<a|1<<s,a===s?[lt(e,t,n+g,r,i)]:(o=new $e(t,r,i),a<s?[e,o]:[o,e]))}function ct(e,t,n,r){e||(e=new k);for(var i=new $e(e,Ae(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}function ut(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(i|=l,a[o++]=u)}return new Ze(e,i,a)}function dt(e,t,n,r,i){for(var o=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new Qe(e,o+1,a)}function pt(e,t,n){for(var i=[],o=0;o<n.length;o++){var s=n[o],l=r(s);a(s)||(l=l.map(function(e){return he(e)})),i.push(l)}return mt(e,t,i)}function ht(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ft(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return ve(t,i)?t:i}}function mt(e,t,n){return 0===(n=n.filter(function(e){return 0!==e.size})).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,b,function(e){return e===b?n:t(e,n,r)})}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)}):e.constructor(n[0])}function gt(e,t,n,r){var i=e===b,o=t.next();if(o.done){var a=i?n:e,s=r(a);return s===a?e:s}xe(i||e&&e.set,"invalid keyPath");var l=o.value,c=i?b:e.get(l,b),u=gt(c,t,n,r);return u===c?e:u===b?e.remove(l):(i?it():e).set(l,u)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function yt(e,t,n,r){var i=r?e:M(e);return i[t]=n,i}function bt(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}function xt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}Ye[Ke]=!0,Ye[m]=Ye.remove,Ye.removeIn=Ye.deleteIn,Xe.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ve(n,i[o][0]))return i[o][1];return r},Xe.prototype.update=function(e,t,n,r,i,o,a){for(var s=i===b,l=this.entries,c=0,u=l.length;c<u&&!ve(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===i:s)return this;if(_(a),(s||!d)&&_(o),!s||1!==l.length){if(!d&&!s&&l.length>=St)return ct(e,l,r,i);var p=e&&e===this.ownerID,h=p?l:M(l);return d?s?c===u-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),p?(this.entries=h,this):new Xe(e,h)}},Ze.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var i=1<<((0===e?t:t>>>e)&y),o=this.bitmap;return 0===(o&i)?r:this.nodes[vt(o&i-1)].get(e+g,t,n,r)},Ze.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&y,l=1<<s,c=this.bitmap,u=0!==(c&l);if(!u&&i===b)return this;var d=vt(c&l-1),p=this.nodes,h=u?p[d]:void 0,f=at(h,e,t+g,n,r,i,o,a);if(f===h)return this;if(!u&&f&&p.length>=wt)return dt(e,p,c,s,f);if(u&&!f&&2===p.length&&st(p[1^d]))return p[1^d];if(u&&f&&1===p.length&&st(f))return f;var m=e&&e===this.ownerID,v=u?f?c:c^l:c|l,x=u?f?yt(p,d,f,m):xt(p,d,m):bt(p,d,f,m);return m?(this.bitmap=v,this.nodes=x,this):new Ze(e,v,x)},Qe.prototype.get=function(e,t,n,r){void 0===t&&(t=Ae(n));var i=(0===e?t:t>>>e)&y,o=this.nodes[i];return o?o.get(e+g,t,n,r):r},Qe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=(0===t?n:n>>>t)&y,l=i===b,c=this.nodes,u=c[s];if(l&&!u)return this;var d=at(u,e,t+g,n,r,i,o,a);if(d===u)return this;var p=this.count;if(u){if(!d&&--p<_t)return ut(e,c,p,s)}else p++;var h=e&&e===this.ownerID,f=yt(c,s,d,h);return h?(this.count=p,this.nodes=f,this):new Qe(e,p,f)},Je.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ve(n,i[o][0]))return i[o][1];return r},Je.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ae(r));var s=i===b;if(n!==this.keyHash)return s?this:(_(a),_(o),lt(this,e,t,n,[r,i]));for(var l=this.entries,c=0,u=l.length;c<u&&!ve(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===i:s)return this;if(_(a),(s||!d)&&_(o),s&&2===u)return new $e(e,this.keyHash,l[1^c]);var p=e&&e===this.ownerID,h=p?l:M(l);return d?s?c===u-1?h.pop():h[c]=h.pop():h[c]=[r,i]:h.push([r,i]),p?(this.entries=h,this):new Je(e,this.keyHash,h)},$e.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},$e.prototype.update=function(e,t,n,r,i,o,a){var s=i===b,l=ve(r,this.entry[0]);return(l?i===this.entry[1]:s)?this:(_(a),s?void _(o):l?e&&e===this.ownerID?(this.entry[1]=i,this):new $e(e,this.keyHash,[r,i]):(_(o),lt(this,e,t,Ae(r),[r,i])))},Xe.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ze.prototype.iterate=Qe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},$e.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return tt(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return tt(e,o.entry);t=this._stack=nt(o,t)}continue}t=this._stack=this._stack.__prev}return U()};var St=v/4,wt=v/2,_t=v/4;function kt(e){var t=Pt();if(null===e||void 0===e)return t;if(Mt(e))return e;var n=i(e),r=n.size;return 0===r?t:(We(r),r>0&&r<v?Dt(0,r,g,null,new At(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}function Mt(e){return!(!e||!e[Ct])}t(kt,ke),kt.of=function(){return this(arguments)},kt.prototype.toString=function(){return this.__toString("List [","]")},kt.prototype.get=function(e,t){if((e=T(this,e))>=0&&e<this.size){var n=zt(this,e+=this._origin);return n&&n.array[e&y]}return t},kt.prototype.set=function(e,t){return Lt(this,e,t)},kt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},kt.prototype.insert=function(e,t){return this.splice(e,0,t)},kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Pt()},kt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},kt.prototype.pop=function(){return Ft(this,0,-1)},kt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},kt.prototype.shift=function(){return Ft(this,1)},kt.prototype.merge=function(){return Bt(this,void 0,arguments)},kt.prototype.mergeWith=function(t){return Bt(this,t,e.call(arguments,1))},kt.prototype.mergeDeep=function(){return Bt(this,ht,arguments)},kt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,ft(t),n)},kt.prototype.setSize=function(e){return Ft(this,0,e)},kt.prototype.slice=function(e,t){var n=this.size;return E(e,t,n)?this:Ft(this,j(e,n),N(t,n))},kt.prototype.__iterator=function(e,t){var n=0,r=It(this,t);return new F(function(){var t=r();return t===Nt?U():B(e,n++,t)})},kt.prototype.__iterate=function(e,t){for(var n,r=0,i=It(this,t);(n=i())!==Nt&&!1!==e(n,r++,this););return r},kt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},kt.isList=Mt;var Ct="@@__IMMUTABLE_LIST__@@",Tt=kt.prototype;function At(e,t){this.array=e,this.ownerID=t}Tt[Ct]=!0,Tt[m]=Tt.remove,Tt.setIn=Ye.setIn,Tt.deleteIn=Tt.removeIn=Ye.removeIn,Tt.update=Ye.update,Tt.updateIn=Ye.updateIn,Tt.mergeIn=Ye.mergeIn,Tt.mergeDeepIn=Ye.mergeDeepIn,Tt.withMutations=Ye.withMutations,Tt.asMutable=Ye.asMutable,Tt.asImmutable=Ye.asImmutable,Tt.wasAltered=Ye.wasAltered,At.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new At([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-g,n))===a&&o)return this}if(o&&!i)return this;var s=Ot(this,e);if(!o)for(var l=0;l<r;l++)s.array[l]=void 0;return i&&(s.array[r]=i),s},At.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&y;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-g,n))===o&&i===this.array.length-1)return this}var a=Ot(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Et,jt,Nt={};function It(e,t){var n=e._origin,r=e._capacity,i=Ut(r),o=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,a){var s=a===i?o&&o.array:e&&e.array,l=a>n?0:n-a,c=r-a;return c>v&&(c=v),function(){if(l===c)return Nt;var e=t?--c:l++;return s&&s[e]}}function l(e,i,o){var s,l=e&&e.array,c=o>n?0:n-o>>i,u=1+(r-o>>i);return u>v&&(u=v),function(){for(;;){if(s){var e=s();if(e!==Nt)return e;s=null}if(c===u)return Nt;var n=t?--u:c++;s=a(l&&l[n],i-g,o+(n<<i))}}}}function Dt(e,t,n,r,i,o,a){var s=Object.create(Tt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Pt(){return Et||(Et=Dt(0,0,g))}function Lt(e,t,n){if((t=T(e,t))!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=w(S);return t>=Ut(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,o):i=Rt(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,i,r):e}function Rt(e,t,n,r,i,o){var a,s=r>>>n&y,l=e&&s<e.array.length;if(!l&&void 0===i)return e;if(n>0){var c=e&&e.array[s],u=Rt(c,t,n-g,r,i,o);return u===c?e:((a=Ot(e,t)).array[s]=u,a)}return l&&e.array[s]===i?e:(_(o),a=Ot(e,t),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Ot(e,t){return t&&e&&t===e.ownerID?e:new At(e?e.array.slice():[],t)}function zt(e,t){if(t>=Ut(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=g;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new k,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,c=e._root,u=0;a+u<0;)c=new At(c&&c.array.length?[void 0,c]:[],r),u+=1<<(l+=g);u&&(a+=u,i+=u,s+=u,o+=u);for(var d=Ut(o),p=Ut(s);p>=1<<l+g;)c=new At(c&&c.array.length?[c]:[],r),l+=g;var h=e._tail,f=p<d?zt(e,s-1):p>d?new At([],r):h;if(h&&p>d&&a<o&&h.array.length){for(var m=c=Ot(c,r),v=l;v>g;v-=g){var b=d>>>v&y;m=m.array[b]=Ot(m.array[b],r)}m.array[d>>>g&y]=h}if(s<o&&(f=f&&f.removeAfter(r,0,s)),a>=p)a-=p,s-=p,l=g,c=null,f=f&&f.removeBefore(r,0,a);else if(a>i||p<d){for(u=0;c;){var x=a>>>l&y;if(x!==p>>>l&y)break;x&&(u+=(1<<l)*x),l-=g,c=c.array[x]}c&&a>i&&(c=c.removeBefore(r,l,a-u)),c&&p<d&&(c=c.removeAfter(r,l,p-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=c,e._tail=f,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,l,c,f)}function Bt(e,t,n){for(var r=[],o=0,s=0;s<n.length;s++){var l=n[s],c=i(l);c.size>o&&(o=c.size),a(l)||(c=c.map(function(e){return he(e)})),r.push(c)}return o>e.size&&(e=e.setSize(o)),mt(e,t,r)}function Ut(e){return e<v?0:e-1>>>g<<g}function Ht(e){return null===e||void 0===e?Gt():Wt(e)?e:Gt().withMutations(function(t){var n=r(e);We(n.size),n.forEach(function(e,n){return t.set(n,e)})})}function Wt(e){return Ge(e)&&u(e)}function Vt(e,t,n,r){var i=Object.create(Ht.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Gt(){return jt||(jt=Vt(it(),Pt()))}function qt(e,t,n){var r,i,o=e._map,a=e._list,s=o.get(t),l=void 0!==s;if(n===b){if(!l)return e;a.size>=v&&a.size>=2*o.size?(r=(i=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Vt(r,i)}function Kt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Qt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=xn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===L){var r=e.__iterator(t,n);return new F(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===P?D:P,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,b);return o===b?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(L,i);return new F(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return B(r,s,t.call(n,a[1],s,e),i)})},r}function $t(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Qt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=xn,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var i=bn(e);return r&&(i.has=function(r){var i=e.get(r,b);return i!==b&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,b);return o!==b&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(L,o),s=0;return new F(function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return B(i,r?c:s++,u,o)}})},i}function tn(e,t,n){var r=Ve().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function nn(e,t,n){var r=s(e),i=(u(e)?Ht():Ve()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=yn(e);return i.map(function(t){return mn(e,o(t))})}function rn(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),E(t,n,i))return e;var o=j(t,i),a=N(n,i);if(o!==o||a!==a)return rn(e.toSeq().cacheResult(),t,n,r);var s,l=a-o;l===l&&(s=l<0?0:l);var c=bn(e);return c.size=0===s?s:e.size&&s||void 0,!r&&oe(e)&&s>=0&&(c.get=function(t,n){return(t=T(this,t))>=0&&t<s?e.get(t+o,n):n}),c.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,c=0;return e.__iterate(function(e,n){if(!l||!(l=a++<o))return c++,!1!==t(e,r?n:c-1,i)&&c!==s}),c},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var i=0!==s&&e.__iterator(t,n),a=0,l=0;return new F(function(){for(;a++<o;)i.next();if(++l>s)return U();var e=i.next();return r||t===P?e:B(t,l-1,t===D?void 0:e.value[1],e)})},c}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(L,i),s=!0;return new F(function(){if(!s)return U();var e=a.next();if(e.done)return e;var i=e.value,l=i[0],c=i[1];return t.call(n,c,l,o)?r===L?e:B(r,l,c,e):(s=!1,U())})},r}function an(e,t,n,r){var i=bn(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return l++,i(e,r?o:l-1,a)}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(L,o),l=!0,c=0;return new F(function(){var e,o,u;do{if((e=s.next()).done)return r||i===P?e:B(i,c++,i===D?void 0:e.value[1],e);var d=e.value;o=d[0],u=d[1],l&&(l=t.call(n,u,o,a))}while(l);return i===L?e:B(i,o,u,e)})},i}function sn(e,t){var n=s(e),i=[e].concat(t).map(function(e){return a(e)?n&&(e=r(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var o=i[0];if(o===e||n&&s(o)||l(e)&&l(o))return o}var c=new te(i);return n?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),c}function ln(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,i){var o=0,s=!1;function l(e,c){var u=this;e.__iterate(function(e,i){return(!t||c<t)&&a(e)?l(e,c+1):!1===r(e,n?i:o++,u)&&(s=!0),!s},i)}return l(e,0),o},r.__iteratorUncached=function(r,i){var o=e.__iterator(r,i),s=[],l=0;return new F(function(){for(;o;){var e=o.next();if(!1===e.done){var c=e.value;if(r===L&&(c=c[1]),t&&!(s.length<t)||!a(c))return n?e:B(r,l++,c,e);s.push(o),o=c.__iterator(r,i)}else o=s.pop()}return U()})},r}function cn(e,t,n){var r=yn(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}function un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e,r){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(P,r),a=0;return new F(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?B(n,a++,t):B(n,a++,i.value,i)})},n}function dn(e,t,n){t||(t=Sn);var r=s(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?Y(o):l(e)?X(o):Z(o)}function pn(e,t,n){if(t||(t=Sn),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return hn(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return hn(t,e,n)?n:e})}function hn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function fn(e,t,r){var i=bn(e);return i.size=new te(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(P,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=n(e),V(i?e.reverse():e)}),a=0,s=!1;return new F(function(){var n;return s||(n=o.map(function(e){return e.next()}),s=n.some(function(e){return e.done})),s?U():B(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function mn(e,t){return oe(e)?t:e.constructor(t)}function gn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return We(e.size),C(e)}function yn(e){return s(e)?r:l(e)?i:o}function bn(e){return Object.create((s(e)?Y:l(e)?X:Z).prototype)}function xn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function Sn(e,t){return e>t?1:e<t?-1:0}function wn(e){var t=V(e);if(!t){if(!q(e))throw new TypeError("Expected iterable or array-like: "+e);t=V(n(e))}return t}function _n(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e);Tn(i,a),i.size=a.length,i._name=t,i._keys=a,i._defaultValues=e}this._map=Ve(o)},i=r.prototype=Object.create(kn);return i.constructor=r,r}t(Ht,Ve),Ht.of=function(){return this(arguments)},Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ht.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Gt()},Ht.prototype.set=function(e,t){return qt(this,e,t)},Ht.prototype.remove=function(e){return qt(this,e,b)},Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ht.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Vt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ht.isOrderedMap=Wt,Ht.prototype[f]=!0,Ht.prototype[m]=Ht.prototype.remove,t(Kt,Y),Kt.prototype.get=function(e,t){return this._iter.get(e,t)},Kt.prototype.has=function(e){return this._iter.has(e)},Kt.prototype.valueSeq=function(){return this._iter.valueSeq()},Kt.prototype.reverse=function(){var e=this,t=$t(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Kt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Kt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(i){return e(i,t?--n:n++,r)}),t)},Kt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(P,t),r=t?vn(this):0;return new F(function(){var i=n.next();return i.done?i:B(e,t?--r:r++,i.value,i)})},Kt.prototype[f]=!0,t(Yt,X),Yt.prototype.includes=function(e){return this._iter.includes(e)},Yt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t),r=0;return new F(function(){var t=n.next();return t.done?t:B(e,r++,t.value,t)})},t(Xt,Z),Xt.prototype.has=function(e){return this._iter.includes(e)},Xt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},Xt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t);return new F(function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)})},t(Zt,Y),Zt.prototype.entrySeq=function(){return this._iter.toSeq()},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){gn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t);return new F(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){gn(r);var i=a(r);return B(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},Yt.prototype.cacheResult=Kt.prototype.cacheResult=Xt.prototype.cacheResult=Zt.prototype.cacheResult=xn,t(_n,_e),_n.prototype.toString=function(){return this.__toString(Cn(this)+" {","}")},_n.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},_n.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},_n.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Mn(this,it()))},_n.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Cn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Mn(this,n)},_n.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Mn(this,t)},_n.prototype.wasAltered=function(){return this._map.wasAltered()},_n.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},_n.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},_n.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Mn(this,t,e):(this.__ownerID=e,this._map=t,this)};var kn=_n.prototype;function Mn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Cn(e){return e._name||e.constructor.name||"Record"}function Tn(e,t){try{t.forEach(An.bind(void 0,e))}catch(n){}}function An(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){xe(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function En(e){return null===e||void 0===e?Rn():jn(e)&&!u(e)?e:Rn().withMutations(function(t){var n=o(e);We(n.size),n.forEach(function(e){return t.add(e)})})}function jn(e){return!(!e||!e[In])}kn[m]=kn.remove,kn.deleteIn=kn.removeIn=Ye.removeIn,kn.merge=Ye.merge,kn.mergeWith=Ye.mergeWith,kn.mergeIn=Ye.mergeIn,kn.mergeDeep=Ye.mergeDeep,kn.mergeDeepWith=Ye.mergeDeepWith,kn.mergeDeepIn=Ye.mergeDeepIn,kn.setIn=Ye.setIn,kn.update=Ye.update,kn.updateIn=Ye.updateIn,kn.withMutations=Ye.withMutations,kn.asMutable=Ye.asMutable,kn.asImmutable=Ye.asImmutable,t(En,Me),En.of=function(){return this(arguments)},En.fromKeys=function(e){return this(r(e).keySeq())},En.prototype.toString=function(){return this.__toString("Set {","}")},En.prototype.has=function(e){return this._map.has(e)},En.prototype.add=function(e){return Pn(this,this._map.set(e,!0))},En.prototype.remove=function(e){return Pn(this,this._map.remove(e))},En.prototype.clear=function(){return Pn(this,this._map.clear())},En.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},En.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return o(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},En.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map(function(e){return o(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},En.prototype.merge=function(){return this.union.apply(this,arguments)},En.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},En.prototype.sort=function(e){return On(dn(this,e))},En.prototype.sortBy=function(e,t){return On(dn(this,t,e))},En.prototype.wasAltered=function(){return this._map.wasAltered()},En.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},En.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},En.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},En.isSet=jn;var Nn,In="@@__IMMUTABLE_SET__@@",Dn=En.prototype;function Pn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Ln(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Nn||(Nn=Ln(it()))}function On(e){return null===e||void 0===e?Hn():zn(e)?e:Hn().withMutations(function(t){var n=o(e);We(n.size),n.forEach(function(e){return t.add(e)})})}function zn(e){return jn(e)&&u(e)}Dn[In]=!0,Dn[m]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ye.withMutations,Dn.asMutable=Ye.asMutable,Dn.asImmutable=Ye.asImmutable,Dn.__empty=Rn,Dn.__make=Ln,t(On,En),On.of=function(){return this(arguments)},On.fromKeys=function(e){return this(r(e).keySeq())},On.prototype.toString=function(){return this.__toString("OrderedSet {","}")},On.isOrderedSet=zn;var Fn,Bn=On.prototype;function Un(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Fn||(Fn=Un(Gt()))}function Wn(e){return null===e||void 0===e?Xn():Vn(e)?e:Xn().unshiftAll(e)}function Vn(e){return!(!e||!e[qn])}Bn[f]=!0,Bn.__empty=Hn,Bn.__make=Un,t(Wn,ke),Wn.of=function(){return this(arguments)},Wn.prototype.toString=function(){return this.__toString("Stack [","]")},Wn.prototype.get=function(e,t){var n=this._head;for(e=T(this,e);n&&e--;)n=n.next;return n?n.value:t},Wn.prototype.peek=function(){return this._head&&this._head.value},Wn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yn(e,t)},Wn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;We(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yn(t,n)},Wn.prototype.pop=function(){return this.slice(1)},Wn.prototype.unshift=function(){return this.push.apply(this,arguments)},Wn.prototype.unshiftAll=function(e){return this.pushAll(e)},Wn.prototype.shift=function(){return this.pop.apply(this,arguments)},Wn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xn()},Wn.prototype.slice=function(e,t){if(E(e,t,this.size))return this;var n=j(e,this.size);if(N(t,this.size)!==this.size)return ke.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Yn(r,i)},Wn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Wn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Wn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F(function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return U()})},Wn.isStack=Vn;var Gn,qn="@@__IMMUTABLE_STACK__@@",Kn=Wn.prototype;function Yn(e,t,n,r){var i=Object.create(Kn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Xn(){return Gn||(Gn=Yn(0))}function Zn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Kn[qn]=!0,Kn.withMutations=Ye.withMutations,Kn.asMutable=Ye.asMutable,Kn.asImmutable=Ye.asImmutable,Kn.wasAltered=Ye.wasAltered,n.Iterator=F,Zn(n,{toArray:function(){We(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new Yt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"===typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Kt(this,!0)},toMap:function(){return Ve(this.toKeyedSeq())},toObject:function(){We(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return On(s(this)?this.valueSeq():this)},toSet:function(){return En(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Xt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Wn(s(this)?this.valueSeq():this)},toList:function(){return kt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return mn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return ve(t,e)})},entries:function(){return this.__iterator(L)},every:function(e,t){We(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return mn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return We(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){We(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(D)},map:function(e,t){return mn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,i;return We(this.size),arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return mn(this,$t(this,!0))},slice:function(e,t){return mn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return mn(this,dn(this,e))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ye(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n
vendor: 5,847 bytes, line 2
2)},first:function(){return this.find(A)},flatMap:function(e,t){return mn(this,cn(this,e,t))},flatten:function(e){return mn(this,ln(this,e,!0))},fromEntrySeq:function(){return new Zt(this)},get:function(e,t){return this.find(function(t,n){return ve(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=wn(e);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):or)},minBy:function(e,t){return pn(this,t?nr(t):or,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return mn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return mn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return mn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return mn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return mn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Qn=n.prototype;Qn[d]=!0,Qn[z]=Qn.values,Qn.__toJS=Qn.toArray,Qn.__toStringMapper=rr,Qn.inspect=Qn.toSource=function(){return this.toString()},Qn.chain=Qn.flatMap,Qn.contains=Qn.includes,function(){try{Object.defineProperty(Qn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Zn(r,{flip:function(){return mn(this,Qt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return ve(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return ve(t,e)})},mapEntries:function(e,t){var n=this,r=0;return mn(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return mn(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Jn=r.prototype;function $n(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"===typeof e?JSON.stringify(e):e}function ir(){return M(arguments)}function or(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0;return sr(e.__iterate(n?t?function(e,t){r=31*r+lr(Ae(e),Ae(t))|0}:function(e,t){r=r+lr(Ae(e),Ae(t))|0}:t?function(e){r=31*r+Ae(e)|0}:function(e){r=r+Ae(e)|0}),r)}function sr(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Te((t=Ce(t^t>>>13,3266489909))^t>>>16)}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Jn[p]=!0,Jn[z]=Qn.entries,Jn.__toJS=Qn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Zn(i,{toKeyedSeq:function(){return new Kt(this,!1)},filter:function(e,t){return mn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return mn(this,$t(this,!1))},slice:function(e,t){return mn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=j(e,e<0?this.count():this.size);var r=this.slice(0,e);return mn(this,1===n?r:r.concat(M(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return mn(this,ln(this,e,!1))},get:function(e,t){return(e=T(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=T(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return mn(this,un(this,e))},interleave:function(){var e=[this].concat(M(arguments)),t=fn(this.toSeq(),X.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),mn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return mn(this,an(this,e,t,!1))},zip:function(){return mn(this,fn(this,ir,[this].concat(M(arguments))))},zipWith:function(e){var t=M(arguments);return t[0]=this,mn(this,fn(this,e,t))}}),i.prototype[h]=!0,i.prototype[f]=!0,Zn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Qn.includes,Zn(Y,r.prototype),Zn(X,i.prototype),Zn(Z,o.prototype),Zn(_e,r.prototype),Zn(ke,i.prototype),Zn(Me,o.prototype),{Iterable:n,Seq:K,Collection:we,Map:Ve,OrderedMap:Ht,List:kt,Stack:Wn,Set:En,OrderedSet:On,Record:_n,Range:Se,Repeat:be,is:ve,fromJS:he}}()},31371:(e,t,n)=>{var r=n(76101).document;e.exports=r&&r.documentElement}
2,31449:(e,t,n)=>{var r=n(67060),i=n(91115)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},31551:(e,t,n)=>{n(80835)("asyncIterator")},31668:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},31679:(e,t,n)=>{"use strict";var r=n(66254),i=n(30387).getWeak,o=n(30853),a=n(36040),s=n(45797),l=n(15785),c=n(9874),u=n(40964),d=n(30289),p=c(5),h=c(6),f=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return p(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=h(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e(function(e,r){s(e,c,t,"_i"),e._t=t,e._i=f++,e._l=void 0,void 0!=r&&l(r,n,e[o],e)});return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?m(d(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?m(d(this,t)).has(e):n&&u(n,this._i)}}),c},def:function(e,t,n){var r=i(o(t),!0);return!0===r?m(e).set(t,n):r[e._i]=n,e},ufstore:m}},31782:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65043),i=n(84440);const o=function(e){const t=r.useRef(e);return(0,i.A)(()=>{t.current=e}),r.useRef(function(){return(0,t.current)(...arguments)}).current}},31873:(e,t,n)=>{"use strict";n(17443);e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var l=r.getKeyBefore(i);if(null==l)a=i;else a=l,s=r.getBlockForKey(l).getText().length}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},32013:(e,t,n)=>{"use strict";var r=n(4923);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},32162:(e,t,n)=>{n(58452)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},32333:(e,t,n)=>{"use strict";var r=n(36143),i=n(32013),o=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return o&&e.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(e){return o?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:i};e.exports=a},32836:(e,t,n)=>{var r=n(67060),i=n(14148)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},32918:(e,t,n)=>{n(58452)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},32994:(e,t,n)=>{n(95971)("Array")},33126:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},33328:(e,t,n)=>{var r=n(67060),i=n(36791),o=n(85523);r(r.S,"Math",{fscale:function(e,t,n,r,a){return o(i(e,t,n,r,a))}})},33366:(e,t,n)=>{"use strict";var r=n(31320).List,i=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach(function(r,i){var o=0;(0,r.strategy)(e,function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}(n,e,t,i+"."+o),o++)},t)}),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=i},33435:(e,t,n)=>{var r=n(38237),i=n(67060),o=n(13767)("metadata"),a=o.store||(o.store=new(n(99880))),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o};e.exports={store:a,map:s,has:function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){s(n,r,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),r=[];
2return n&&n.forEach(function(e,t){r.push(t)}),r},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){i(i.S,"Reflect",e)}}},33935:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(36143),o=n(65037),a=n(90978),s=n(31320),l=n(36415),c=n(88691),u=s.Map,d={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=i.isBrowser("IE <= 11"),h=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=u();var n=a(e);n.MutationObserver&&!p?this.observer=new n.MutationObserver(function(e){return t.registerMutations(e)}):this.onCharData=function(e){e.target instanceof Node||l(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,d):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=u(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=c(o(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=h},34075:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(13305),a=n(52367),s=n(87707),l=n(66559),c=n(92593),u=n(94666),d=n(70306),p=n(63112),h=n(78819),f=n(31320),m=n(83272),g=f.List,v=f.Record,y=f.Repeat,b=f.Map,x=f.OrderedMap,S=v({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),w=h("draft_tree_data_support")?l:s,_=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.prototype;return s.getEntityMap=function(){return c},s.getBlockMap=function(){return this.get("blockMap")},s.getSelectionBefore=function(){return this.get("selectionBefore")},s.getSelectionAfter=function(){return this.get("selectionAfter")},s.getBlockForKey=function(e){return this.getBlockMap().get(e)},s.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},s.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},s.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},s.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},s.getBlocksAsArray=function(){return this.getBlockMap().toArray()},s.getFirstBlock=function(){return this.getBlockMap().first()},s.getLastBlock=function(){return this.getBlockMap().last()},s.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():""}).join(e||"\n")},s.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},s.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return c.__create(e,t,n),this},s.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},s.addEntity=function(e){return c.__add(e),this},s.getEntity=function(e){return c.__get(e)},s.getAllEntities=function(){return c.__getAll()},s.loadWithEntities=function(e){return c.__loadWithEntities(e)},i.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=o.createFromArray(n),a=r.isEmpty()?new u:u.createEmpty(r.first().getKey());return new i({blockMap:r,entityMap:t||c,selectionBefore:a,selectionAfter:a})},i.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map(function(e){return e=m(e),new w({key:d(),text:e,type:"unstyled",characterList:g(y(a.EMPTY,e.length))})});return i.createFromBlockArray(n)},i.fromJS=function(e){return new i(r({},e,{blockMap:x(e.blockMap).map(i.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},i.createContentBlockFromJS=function(e){var t=e.characterList;return new w(r({},e,{data:b(e.data),characterList:null!=t?g((Array.isArray(t)?t:p(t)).map(function(e){return a.fromJS(e)})):void 0}))},i}(S);e.exports=_},34109:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank")},34282:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(3);r(r.P+r.F*!n(65417)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},34535:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(38052),i=n(15170),o=n(13375),a=n(61475);const s=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},34596:(e,t,n)=>{var r=n(2008),i=n(26928),o=n(40964),a=n(67060),s=n(36040),l=n(30853);a(a.S,"Reflect",{get:function e(t,n){var a,c,u=arguments.length<3?t:arguments[2];return l(t)===u?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(c=i(t))?e(c,n,u):void 0}})},34612:(e,t)=>
vendor: 4,108 bytes, line 2
2{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function S(e){if(g=!1,x(e),!m)if(null!==r(c))m=!0,D(w);else{var t=r(u);null!==t&&P(S,t.startTime-e)}}function w(e,n){m=!1,g&&(g=!1,y(C),C=-1),f=!0;var o=h;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!E());){var a=p.callback;if("function"===typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===r(c)&&i(c),x(n)}else i(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&P(S,d.startTime-n),l=!1}return l}finally{p=null,h=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,k=!1,M=null,C=-1,T=5,A=-1;function E(){return!(t.unstable_now()-A<T)}function j(){if(null!==M){var e=t.unstable_now();A=e;var n=!0;try{n=M(!0,e)}finally{n?_():(k=!1,M=null)}}else k=!1}if("function"===typeof b)_=function(){b(j)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,I=N.port2;N.port1.onmessage=j,_=function(){I.postMessage(null)}}else _=function(){v(j,0)};function D(e){M=e,k||(k=!0,_())}function P(e,n){C=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,D(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(g?(y(C),C=-1):g=!0,P(S,o-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,D(w))),e},t.unstable_shouldYield=E,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},34813:(e,t,n)=>{"use strict";n(27713)("bold",function(e){return function(){return e(this,"b","","")}})},34853:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(98587),i=n(58168);const o=["values","unit","step"],a=e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>
2e.val-t.val),t.reduce((e,t)=>(0,i.A)({},e,{[t.key]:t.val}),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,o),c=a(t),u=Object.keys(c);function d(e){const r="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(r).concat(n,")")}function p(e){const r="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(r-s/100).concat(n,")")}function h(e,r){const i=u.indexOf(r);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:r)-s/100).concat(n,")")}return(0,i.A)({keys:u,values:c,up:d,down:p,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},35071:(e,t,n)=>{var r=n(68027),i=n(26928);n(80156)("getPrototypeOf",function(){return function(e){return i(r(e))}})},35143:(e,t,n)=>{n(80050)("WeakMap")},35169:(e,t,n)=>{"use strict";var r=n(96643);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},35421:(e,t)=>{t.f=Object.getOwnPropertySymbols},35499:(e,t,n)=>{n(73358)&&"g"!=/./g.flags&&n(12718).f(RegExp.prototype,"flags",{configurable:!0,get:n(40671)})},35782:(e,t,n)=>{"use strict";var r=n(14669),i=n(36415),o="\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05d0-\u05ea\u05eb-\u05ef\u05f0-\u05f2\u05f3-\u05f4\u05f5-\u05ff\u07c0-\u07c9\u07ca-\u07ea\u07f4-\u07f5\u07fa\u07fb-\u07ff\u0800-\u0815\u081a\u0824\u0828\u082e-\u082f\u0830-\u083e\u083f\u0840-\u0858\u085c-\u085d\u085e\u085f-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb37\ufb38-\ufb3c\ufb3d\ufb3e\ufb3f\ufb40-\ufb41\ufb42\ufb43-\ufb44\ufb45\ufb46-\ufb4f",a="\u0608\u060b\u060d\u061b\u061c\u061d\u061e-\u061f\u0620-\u063f\u0640\u0641-\u064a\u066d\u066e-\u066f\u0671-\u06d3\u06d4\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06fd-\u06fe\u06ff\u0700-\u070d\u070e\u070f\u0710\u0712-\u072f\u074b-\u074c\u074d-\u07a5\u07b1\u07b2-\u07bf\u08a0-\u08b2\u08b3-\u08e3\ufb50-\ufbb1\ufbb2-\ufbc1\ufbc2-\ufbd2\ufbd3-\ufd3d\ufd40-\ufd4f\ufd50-\ufd8f\ufd90-\ufd91\ufd92-\ufdc7\ufdc8-\ufdcf\ufdf0-\ufdfb\ufdfc\ufdfe-\ufdff\ufe70-\ufe74\ufe75\ufe76-\ufefc\ufefd-\ufefe",s=new RegExp("["+"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u01ba\u01bb\u01bc-\u01bf\u01c0-\u01c3\u01c4-\u0293\u0294\u0295-\u02af\u02b0-\u02b8\u02bb-\u02c1\u02d0-\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a\u037b-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0482\u048a-\u052f\u0531-\u0556\u0559\u055a-\u055f\u0561-\u0587\u0589\u0903\u0904-\u0939\u093b\u093d\u093e-\u0940\u0949-\u094c\u094e-\u094f\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096f\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09be-\u09c0\u09c7-\u09c8\u09cb-\u09cc\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e1\u09e6-\u09ef\u09f0-\u09f1\u09f4-\u09f9\u09fa\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0abe-\u0ac0\u0ac9\u0acb-\u0acc\u0ad0\u0ae0-\u0ae1\u0ae6-\u0aef\u0af0\u0b02-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47-\u0b48\u0b4b-\u0b4c\u0b57\u0b5c-\u0b5d\u0b5f-\u0b61\u0b66-\u0b6f\u0b70\u0b71\u0b72-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bbf\u0bc1-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bef\u0bf0-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c59\u0c60-\u0c61\u0c66-\u0c6f\u0c7f\u0c82-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cbe\u0cbf\u0cc0-\u0cc4\u0cc6\u0cc7-\u0cc8\u0cca-\u0ccb\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce1\u0ce6-\u0cef\u0cf1-\u0cf2\u0d02-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d60-\u0d61\u0d66-\u0d6f\u0d70-\u0d75\u0d79\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0df4\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e46\u0e4f\u0e50-\u0e59\u0e5a-\u0e5b\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f01-\u0f03\u0f04-\u0f12\u0f13\u0f14\u0f15-\u0f17\u0f1a-\u0f1f\u0f20-\u0f29\u0f2a-\u0f33\u0f34\u0f36\u0f38\u0f3e-\u0f3f\u0f40-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fcf\u0fd0-\u0fd4\u
20fd5-\u0fd8\u0fd9-\u0fda\u1000-\u102a\u102b-\u102c\u1031\u1038\u103b-\u103c\u103f\u1040-\u1049\u104a-\u104f\u1050-\u1055\u1056-\u1057\u105a-\u105d\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106d\u106e-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108c\u108e\u108f\u1090-\u1099\u109a-\u109c\u109e-\u109f\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fb\u10fc\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1360-\u1368\u1369-\u137c\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166d-\u166e\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16eb-\u16ed\u16ee-\u16f0\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7-\u17c8\u17d4-\u17d6\u17d7\u17d8-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930-\u1931\u1933-\u1938\u1946-\u194f\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c0\u19c1-\u19c7\u19c8-\u19c9\u19d0-\u19d9\u19da\u1a00-\u1a16\u1a19-\u1a1a\u1a1e-\u1a1f\u1a20-\u1a54\u1a55\u1a57\u1a61\u1a63-\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aa6\u1aa7\u1aa8-\u1aad\u1b04\u1b05-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b44\u1b45-\u1b4b\u1b50-\u1b59\u1b5a-\u1b60\u1b61-\u1b6a\u1b74-\u1b7c\u1b82\u1b83-\u1ba0\u1ba1\u1ba6-\u1ba7\u1baa\u1bae-\u1baf\u1bb0-\u1bb9\u1bba-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2-\u1bf3\u1bfc-\u1bff\u1c00-\u1c23\u1c24-\u1c2b\u1c34-\u1c35\u1c3b-\u1c3f\u1c40-\u1c49\u1c4d-\u1c4f\u1c50-\u1c59\u1c5a-\u1c77\u1c78-\u1c7d\u1c7e-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf1\u1cf2-\u1cf3\u1cf5-\u1cf6\u1d00-\u1d2b\u1d2c-\u1d6a\u1d6b-\u1d77\u1d78\u1d79-\u1d9a\u1d9b-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2134\u2135-\u2138\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c7b\u2c7c-\u2c7d\u2c7e-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005\u3006\u3007\u3021-\u3029\u302e-\u302f\u3031-\u3035\u3038-\u303a\u303b\u303c\u3041-\u3096\u309d-\u309e\u309f\u30a1-\u30fa\u30fc-\u30fe\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u3191\u3192-\u3195\u3196-\u319f\u31a0-\u31ba\u31f0-\u31ff\u3200-\u321c\u3220-\u3229\u322a-\u3247\u3248-\u324f\u3260-\u327b\u327f\u3280-\u3289\u328a-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua014\ua015\ua016-\ua48c\ua4d0-\ua4f7\ua4f8-\ua4fd\ua4fe-\ua4ff\ua500-\ua60b\ua60c\ua610-\ua61f\ua620-\ua629\ua62a-\ua62b\ua640-\ua66d\ua66e\ua680-\ua69b\ua69c-\ua69d\ua6a0-\ua6e5\ua6e6-\ua6ef\ua6f2-\ua6f7\ua722-\ua76f\ua770\ua771-\ua787\ua789-\ua78a\ua78b-\ua78e\ua790-\ua7ad\ua7b0-\ua7b1\ua7f7\ua7f8-\ua7f9\ua7fa\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua823-\ua824\ua827\ua830-\ua835\ua836-\ua837\ua840-\ua873\ua880-\ua881\ua882-\ua8b3\ua8b4-\ua8c3\ua8ce-\ua8cf\ua8d0-\ua8d9\ua8f2-\ua8f7\ua8f8-\ua8fa\ua8fb\ua900-\ua909\ua90a-\ua925\ua92e-\ua92f\ua930-\ua946\ua952-\ua953\ua95f\ua960-\ua97c\ua983\ua984-\ua9b2\ua9b4-\ua9b5\ua9ba-\ua9bb\ua9bd-\ua9c0\ua9c1-\ua9cd\ua9cf\ua9d0-\ua9d9\ua9de-\ua9df\ua9e0-\ua9e4\ua9e6\ua9e7-\ua9ef\ua9f0-\ua9f9\ua9fa-\ua9fe\uaa00-\uaa28\uaa2f-\uaa30\uaa33-\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f\uaa60-\uaa6f\uaa70\uaa71-\uaa76\uaa77-\uaa79\uaa7a\uaa7b\uaa7d\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadc\uaadd\uaade-\uaadf\uaae0-\uaaea\uaaeb\uaaee-\uaaef\uaaf0-\uaaf1\uaaf2\uaaf3-\uaaf4\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5b\uab5c-\uab5f\uab64-\uab65\uabc0-\uabe2\uabe3-\uabe4\uabe6-\uabe7\uabe9-\uabea\uabeb\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\uf8ff\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uff6f\uff70\uff71-\uff9d\uff9e-\uff9f\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"+o+a+"]"),l=new RegExp("["+o+a+"]");function c(e){var t=s.exec(e);return null==t?null:t[0]}function u(e){var t=c(e);return null==t?r.NEUTRAL:l.exec(t)?r.RTL:r.LTR}function d(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=u(e);return n===r.NEUTRAL?t:n}function p(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||i(!1),d(e,t)}var h={firstStrongChar:c,firstStrongCharDir:u,resolveBlockDir:d,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===r.LTR},isDirectionRTL:function(e,t){return p(e,t)===r.RTL}};e.exports=h},35914:e=>{"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},35973:(e,t,n)=>{var r=n(12718).f,i=n(40964),o=n(63759)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},36040:e=>{e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},36078:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(63940).A}
2,36143:(e,t,n)=>{"use strict";var r=n(49399),i=n(55754),o=n(57014),a=n(58332);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,i.contains(o,t))}function l(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var c={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,l)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=o(c,a)},36233:(e,t,n)=>{var r=n(33435),i=n(30853),o=n(26928),a=r.has,s=r.get,l=r.key,c=function(e,t,n){if(a(e,t,n))return s(e,t,n);var r=o(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:l(arguments[2]))}})},36357:(e,t,n)=>{"use strict";var r=n(36143),i=n(36415),o=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||i(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},36415:e=>{"use strict";var t=function(e){};e.exports=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(t(n),!e){var a;if(void 0===n)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;(a=new Error(n.replace(/%s/g,function(){return String(i[s++])}))).name="Invariant Violation"}throw a.framesToPop=1,a}}},36520:(e,t,n)=>{"use strict";var r=n(67060),i=n(48009)(!0),o=n(83881)(function(){return"\ud842\udfb7"!=="\ud842\udfb7".at(0)});r(r.P+r.F*o,"String",{at:function(e){return i(this,e)}})},36620:(e,t,n)=>{"use strict";var r=n(94099);e.exports=function(e){return r(e)&&3==e.nodeType}},36627:(e,t,n)=>{"use strict";var r=n(36143),i=n(1363),o=n(91933),a=n(59678),s=n(35169),l=n(56350),c=n(77660),u=n(58796),d=n(5722),p=n(70078),h=n(50617),f=n(87677),m=n(2124),g=r.isBrowser("Chrome"),v=r.isBrowser("Firefox"),y=g||v?m:function(e){},b={onBeforeInput:i,onBlur:o,onCompositionStart:a,onCopy:s,onCut:l,onDragOver:c,onDragStart:u,onFocus:d,onInput:p,onKeyDown:h,onPaste:f,onSelect:m,onMouseUp:y,onKeyUp:y};e.exports=b},36791:e=>{e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},36935:(e,t,n)=>{"use strict";var r=n(81287),i=n(79529);e.exports=function(e,t){var n=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),l=i(e,t).getBlockMap(),c=l.keySeq(),u=c.indexOf(n),d=c.indexOf(a)+1;return r(l.slice(u,d).map(function(e,t){var r=e.getText(),i=e.getCharacterList();return n===a?e.merge({text:r.slice(o,s),characterList:i.slice(o,s)}):t===n?e.merge({text:r.slice(o),characterList:i.slice(o)}):t===a?e.merge({text:r.slice(0,s),characterList:i.slice(0,s)}):e}))}},36968:(e,t,n)=>{"use strict";var r=n(15902),i=n(40475),o=n(49534),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var c=function(){function e(e){this.data=e,this.types=e.types?i(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return s[e]})},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-l
2ist")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var i=t[n].type;if(!r.isImage(i))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(l).filter(o.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=c},36997:(e,t,n)=>{var r=n(67060);r(r.S,"Reflect",{ownKeys:n(31241)})},37385:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},37652:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},37691:e=>{"use strict";var t="undefined"!==typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},37707:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(35782),o=n(14669),a=n(36415),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?o.isStrong(e)||a(!1):e=o.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=i.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},37758:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(28604),i=n(17162),o=n(13815);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),i=e=>Object.keys(e).reduce((t,n)=>r[n]?(0,o.A)(t,r[n](e)):t,{});return i.propTypes={},i.filterProps=t.reduce((e,t)=>e.concat(t.filterProps),[]),i};var s=n(89751);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),S=c("outlineColor"),w=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};w.propTypes={},w.filterProps=["borderRadius"];a(u,d,p,h,f,m,g,v,y,b,w,x,S);const _=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};_.propTypes={},_.filterProps=["gap"];const k=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};k.propTypes={},k.filterProps=["columnGap"];const M=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};M.propTypes={},M.filterProps=["rowGap"];a(_,k,M,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function C(e,t){return"grey"===t?t:e}a((0,i.Ay)({prop:"color",themeKey:"palette",transform:C}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:C}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:C}));function T(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const A=(0,i.Ay)({prop:"width",transform:T}),E=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:"".concat(i).c
2oncat(e.theme.breakpoints.unit)}:{maxWidth:i}:{maxWidth:T(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};E.filterProps=["maxWidth"];const j=(0,i.Ay)({prop:"minWidth",transform:T}),N=(0,i.Ay)({prop:"height",transform:T}),I=(0,i.Ay)({prop:"maxHeight",transform:T}),D=(0,i.Ay)({prop:"minHeight",transform:T}),P=((0,i.Ay)({prop:"size",cssProperty:"width",transform:T}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:T}),a(A,E,j,N,I,D,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w},color:{themeKey:"palette",transform:C},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:C},backgroundColor:{themeKey:"palette",transform:C},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_},rowGap:{style:M},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:T},maxWidth:{style:E},minWidth:{transform:T},height:{transform:T},maxHeight:{transform:T},minHeight:{transform:T},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},37811:(e,t,n)=>{"use strict";var r=n(67060),i=n(77548),o=n(22351),a=n(30853),s=n(28704),l=n(58116),c=n(36040),u=n(76101).ArrayBuffer,d=n(54483),p=o.ArrayBuffer,h=o.DataView,f=i.ABV&&u.isView,m=p.prototype.slice,g=i.VIEW,v="ArrayBuffer";r(r.G+r.W+r.F*(u!==p),{ArrayBuffer:p}),r(r.S+r.F*!i.CONSTR,v,{isView:function(e){return f&&f(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(83881)(function(){return!new p(2).slice(1,void 0).byteLength}),v,{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(d(this,p))(l(i-r)),c=new h(this),u=new h(o),f=0;r<i;)u.setUint8(f++,c.getUint8(r++));return o}}),n(95971)(v)}
2,38052:(e,t,n)=>{"use strict";var r=n(24994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:v((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:d,slot:h,skipVariantsResolver:m,skipSx:x,overridesResolver:S=y(g(h))}=c,w=(0,o.default)(c,p),_=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,k=x||!1;let M=f;"Root"===h||"root"===h?M=r:h?M=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(M=void 0);const C=(0,a.default)(e,(0,i.default)({shouldForwardProp:M,label:undefined},w)),T=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,i.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,A=function(r){let o=T(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(T):[];d&&S&&c.push(e=>{const r=v((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const o=r.components[d].styleOverrides,a={};return Object.entries(o).forEach(t=>{let[n,o]=t;a[n]=b(o,(0,i.default)({},e,{theme:r}))}),S(e,a)}),d&&!_&&c.push(e=>{var r;const o=v((0,i.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:o}))}),k||c.push(u);const p=c.length-s.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const h=C(o,...c);return e.muiName&&(h.muiName=e.muiName),h};return C.withConfig&&(A.withConfig=C.withConfig),A}};var i=r(n(94634)),o=r(n(54893)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(13174)),s=n(19482),l=(r(n(87918)),r(n(83382)),r(n(24989))),c=r(n(73234));const u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,o.default)(t,u);const a="function"===typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap(e=>b(e,(0,i.default)({ownerState:n},r)));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.default)(a,d);return e.forEach(e=>{let o=!0;"function"===typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)}),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))}),t}return a}},38063:e=>{"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},38109:(e,t,n)=>{var r=n(91271),i=n(63759)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},38206:(e,t,n)=>{"use strict";n(27713)("link",function(e){return function(t){return e(this,"a","href",t)}})},38237:(e,t,n)=>{"use strict";var r=n(14556),i=n(30289),o="Map";e.exports=n(13750)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)}
2,38333:(e,t,n)=>{var r=n(67060),i=n(95867);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(n){return!1}}})},38358:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},38611:(e,t,n)=>{n(18387)("Map")},38871:(e,t,n)=>{e.exports=!n(73358)&&!n(83881)(function(){return 7!=Object.defineProperty(n(81101)("div"),"a",{get:function(){return 7}}).a})},38923:(e,t,n)=>{n(58452)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},38956:(e,t,n)=>{var r=n(33435),i=n(30853),o=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,i(n),o(r))}})},38963:(e,t,n)=>{"use strict";var r=n(48009)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},39160:(e,t,n)=>{var r=n(67060),i=n(3040);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},39819:(e,t,n)=>{"use strict";n(61504)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},39956:function(e){e.exports=function(){"use strict";function e(e,t){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&t(n,e[n])}function t(e){return void 0===e||null===e||0===e.length||0===e.trim().length}var n={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function r(e){return e&&n[e]}function i(t){var n="";return e(t,function(e,t){t&&(n+="".concat(e,":").concat(t,";"))}),n}function o(e,t){var n=[];if(t)for(var r=0,i=0,o=e,a=t.trigger||"#",s=t.separator||" ";o.length>0&&i>=0;)if(o[0]===a?(i=0,r=0,o=o.substr(a.length)):(i=o.indexOf(s+a))>=0&&(o=o.substr(i+(s+a).length),r+=i+s.length),i>=0){var l=o.indexOf(s)>=0?o.indexOf(s):o.length,c=o.substr(0,l);c&&c.length>0&&n.push({offset:r,length:c.length+a.length,type:"HASHTAG"}),r+=a.length}return n}function a(e,t){var n=[],r=0,i=e.entityRanges.map(function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}});return(i=(i=i.concat(o(e.text,t))).sort(function(e,t){return e.offset-t.offset})).forEach(function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length}),r<e.text.length&&n.push({start:r,end:e.text.length}),n}function s(e){return!(!(e.entityRanges.length>0)||!t(e.text)&&"atomic"!==e.type)}function l(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach(function(e){for(var t=e.offset,n=t+e.length,i=t;i<n;i+=1)0===e.style.indexOf("color-")?r.COLOR[i]=e.style.substring(6):0===e.style.indexOf("bgcolor-")?r.BGCOLOR[i]=e.style.substring(8):0===e.style.indexOf("fontsize-")?r.FONTSIZE[i]=e.style.substring(9):0===e.style.indexOf("fontfamily-")?r.FONTFAMILY[i]=e.style.substring(11):r[e.style]&&(r[e.style][i]=!0)}),r}function c(e,t){var n={};return e.COLOR[t]&&(n.COLOR=e.COLOR[t]),e.BGCOLOR[t]&&(n.BGCOLOR=e.BGCOLOR[t]),e.FONTSIZE[t]&&(n.FONTSIZE=e.FONTSIZE[t]),e.FONTFAMILY[t]&&(n.FONTFAMILY=e.FONTFAMILY[t]),e.UNDERLINE[t]&&(n.UNDERLINE=!0),e.ITALIC[t]&&(n.ITALIC=!0),e.BOLD[t]&&(n.BOLD=!0),e.STRIKETHROUGH[t]&&(n.STRIKETHROUGH=!0),e.CODE[t]&&(n.CODE=!0),e.SUBSCRIPT[t]&&(n.SUBSCRIPT=!0),e.SUPERSCRIPT[t]&&(n.SUPERSCRIPT=!0),n}function u(e,t,n){var r=!0;return n>0&&n<e.length?t.forEach(function(t){r=r&&e[t][n]===e[t][n-1]}):r=!1,r}function d(e,t){return"BOLD"===e?"<strong>".concat(t,"</strong>"):"ITALIC"===e?"<em>".concat(t,"</em>"):"UNDERLINE"===e?"<ins>".concat(t,"</ins>"):"STRIKETHROUGH"===e?"<del>".concat(t,"</del>"):"CODE"===e?"<code>".concat(t,"</code>"):"SUPERSCRIPT"===e?"<sup>".concat(t,"</sup>"):"SUBSCRIPT"===e?"<sub>".concat(t,"</sub>"):t}function p(e){return e&&e.length>0?e.map(function(e){switch(e){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return e}}).join(""):""}function h(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(n+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(n+="font-family: ".concat(e.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(t,"</span>")}return t}function f(e,t,n,r){var i=e[t];if("function"===typeof r){var o=r(i,n);if(o)return o}if("MENTION"===i.type)return'<a href="'.concat(i.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(i.data.value,'">').concat(n,"</a>");
2if("LINK"===i.type){var a=i.data.targetOption||"_self";return'<a href="'.concat(i.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if("IMAGE"===i.type){var s=i.data.alignment;return s&&s.length?'<div style="text-align:'.concat(s,';"><img src="').concat(i.data.src,'" alt="').concat(i.data.alt,'" style="height: ').concat(i.data.height,";width: ").concat(i.data.width,'"/></div>'):'<img src="'.concat(i.data.src,'" alt="').concat(i.data.alt,'" style="height: ').concat(i.data.height,";width: ").concat(i.data.width,'"/>')}return"EMBEDDED_LINK"===i.type?'<iframe width="'.concat(i.data.width,'" height="').concat(i.data.height,'" src="').concat(i.data.src,'" frameBorder="0"></iframe>'):n}function m(e,t,n,r){var i=[],o=Array.from(e.text);if(o.length>0)for(var a,s=l(e),d=n;d<r;d+=1)d!==n&&u(s,t,d)?(a.text.push(o[d]),a.end=d+1):(a={styles:c(s,d),text:[o[d]],start:d,end:d+1},i.push(a));return i}function g(e){if(e){for(var t=e,n=0;n<t.length&&" "===e[n];n+=1)t=t.replace(" "," ");return t}return e}function v(e){if(e){for(var t=e,n=t.length-1;n>=0&&" "===t[n];n-=1)t="".concat(t.substring(0,n)," ").concat(t.substring(n+1));return t}return e}function y(t){var n=t.styles,r=p(t.text);return e(n,function(e,t){r=d(e,r)}),r}function b(e,t){var n=m(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],t.start,t.end),r="";return n.forEach(function(e){r+=y(e)}),r=h(t.styles,r)}function x(e,t,n,r){var i=[];m(e,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach(function(t){i.push(b(e,t))});var o=i.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(o=f(t,n.entityKey,o,r)):"HASHTAG"===n.type&&(o='<a href="'.concat(o,'" class="wysiwyg-hashtag">').concat(o,"</a>")),o}function S(e,t,n,r){var i=[],o=a(e,n);return o.forEach(function(n,a){var s=x(e,t,n,r);0===a&&(s=g(s)),a===o.length-1&&(s=v(s)),i.push(s)}),i.join("")}function w(e,t,n,o,a){var l=[];if(s(e))l.push(f(t,e.entityRanges[0].key,void 0,a));else{var c=r(e.type);if(c){l.push("<".concat(c));var u=i(e.data);u&&l.push(' style="'.concat(u,'"')),o&&l.push(' dir = "auto"'),l.push(">"),l.push(S(e,t,n,a)),l.push("</".concat(c,">"))}}return l.push("\n"),l.join("")}function _(e){return"unordered-list-item"===e||"ordered-list-item"===e}function k(e,t,n,o,a){var s,l=[],c=[];return e.forEach(function(e){var u=!1;if(s?s.type!==e.type?(l.push("</".concat(r(s.type),">\n")),l.push("<".concat(r(e.type),">\n"))):s.depth===e.depth?c&&c.length>0&&(l.push(k(c,t,n,o,a)),c=[]):(u=!0,c.push(e)):l.push("<".concat(r(e.type),">\n")),!u){l.push("<li");var d=i(e.data);d&&l.push(' style="'.concat(d,'"')),o&&l.push(' dir = "auto"'),l.push(">"),l.push(S(e,t,n,a)),l.push("</li>\n"),s=e}}),c&&c.length>0&&l.push(k(c,t,n,o,a)),l.push("</".concat(r(s.type),">\n")),l.join("")}function M(e,t,n,r){var i=[];if(e){var o=e.blocks,a=e.entityMap;if(o&&o.length>0){var s=[];if(o.forEach(function(e){if(_(e.type))s.push(e);else{if(s.length>0){var o=k(s,a,t,r);i.push(o),s=[]}var l=w(e,a,t,n,r);i.push(l)}}),s.length>0){var l=k(s,a,t,n,r);i.push(l),s=[]}}}return i.join("")}return M}()},39983:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp")},40039:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(4391)},40123:(e,t,n)=>{var r=n(58116),i=n(87555),o=n(49649);e.exports=function(e,t,n,a){var s=String(o(e)),l=s.length,c=void 0===n?" ":String(n),u=r(t);if(u<=l||""==c)return s;var d=u-l,p=i.call(c,Math.ceil(d/c.length));return p.length>d&&(p=p.slice(0,d)),a?p+s:s+p}},40248:(e,t,n)=>{n(73751),n(64316),n(6381),n(25173),n(19911),n(35071),n(62228),n(93828),n(85263),n(97561),n(77747),n(30807),n(6241),n(46264),n(96033),n(1304),n(46907),n(9087),n(40614),n(54574),n(85265),n(14048),n(88175),n(89712),n(44200),n(93730),n(77778),n(54048),n(68953),n(6602),n(4409),n(23797),n(20247),n(39160),n(16711),n(67405),n(62594),n(59289),n(89104),n(61057),n(69526),n(64194),n(1473),n(78929),n(10540
2),n(76636),n(18684),n(80811),n(90806),n(81021),n(40382),n(91685),n(10333),n(12294),n(79806),n(21032),n(50232),n(4341),n(51807),n(42185),n(46052),n(45079),n(77198),n(74206),n(34813),n(29262),n(89952),n(40310),n(75321),n(38206),n(73487),n(82984),n(7538),n(8184),n(85125),n(66119),n(55620),n(98084),n(96832),n(55158),n(42678),n(15775),n(85290),n(83978),n(74274),n(63793),n(71682),n(21580),n(34282),n(80371),n(52588),n(82443),n(7776),n(73229),n(10039),n(24343),n(97277),n(53616),n(32994),n(27892),n(48028),n(77579),n(17465),n(35499),n(45873),n(24864),n(54642),n(64856),n(13054),n(38237),n(81115),n(99880),n(94098),n(37811),n(88247),n(32162),n(3729),n(32918),n(38923),n(93834),n(28149),n(53068),n(71362),n(7849),n(69856),n(41381),n(27711),n(10751),n(83494),n(34596),n(71709),n(40433),n(63216),n(22246),n(36997),n(68229),n(17888),n(38333),n(6546),n(10267),n(76861),n(36520),n(71337),n(7128),n(39819),n(90546),n(63518),n(31551),n(60691),n(28077),n(31449),n(19759),n(85994),n(16726),n(7777),n(88861),n(24766),n(60836),n(38611),n(47713),n(10906),n(384),n(92338),n(56772),n(35143),n(95857),n(43229),n(45486),n(59189),n(3241),n(33126),n(92719),n(33328),n(92448),n(74695),n(24419),n(91222),n(18328),n(22324),n(15719),n(69910),n(27924),n(8130),n(38956),n(10228),n(36233),n(15530),n(94094),n(58099),n(58237),n(28210),n(81702),n(68311),n(97387),n(80013),n(15794),n(14043),e.exports=n(89173)},40310:(e,t,n)=>{"use strict";n(27713)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},40382:(e,t,n)=>{var r=n(67060),i=n(53536),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},40430:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown")},40433:(e,t,n)=>{var r=n(67060),i=n(26928),o=n(30853);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},40475:(e,t,n)=>{"use strict";var r=n(36415);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!==typeof e&&"function"!==typeof e)&&r(!1),"number"!==typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"===typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(o){}for(var n=Array(t),i=0;i<t;i++)n[i]=e[i];return n}(e):[e]}},40614:(e,t,n)=>{var r=n(67060);r(r.P,"Function",{bind:n(42501)})},40671:(e,t,n)=>{"use strict";var r=n(30853);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},40964:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},41381:(e,t,n)=>{var r=n(67060),i=n(72506),o=n(37652),a=n(30853),s=n(36040),l=n(83881),c=n(42501),u=(n(76101).Reflect||{}).construct,d=l(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),p=!l(function(){u(function(){})});r(r.S+r.F*(d||p),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(p&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var l=n.prototype,h=i(s(l)?l:Object.prototype),f=Function.apply.call(e,h,t);return s(f)?f:h}})},41981:(e,t,n)=>{"use strict";var r=n(88250),i=n(48645),o=n(36143),a=n(13922),s=n(5089),l=n(38358),c=n(36415),u=n(37385),d=o.isBrowser("IE");function p(e,t){if(!e)return"[empty]";var n=h(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(u(n)||c(!1),n.outerHTML)}function h(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return l(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var o=e.childNodes,a=0;a<o.length;a++)i.appendChild(h(o[a],t));return i}function f(e,t){for(var n=e,r=n;n;){if(u(n)&&r.hasAttribute("contenteditable"))return p(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}
2function m(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function g(e,t,n,r){var o=s();if(e.extend&&null!=t&&a(o,t)){n>m(t)&&i.logSelectionStateFailure({anonymizedDom:f(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var l=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(u){throw i.logSelectionStateFailure({anonymizedDom:f(t,function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:l,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:u?""+u:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),u}}else if(t&&e.rangeCount>0){var c=e.getRangeAt(0);c.setEnd(t,n),e.addRange(c.cloneRange())}}function v(e,t,n,o){var a=l(t).createRange();if(n>m(t)&&(i.logSelectionStateFailure({anonymizedDom:f(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),d)try{e.addRange(a)}catch(s){0}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,i){var o=l(t);if(a(o.documentElement,t)){var s=o.defaultView.getSelection(),c=e.getAnchorKey(),u=e.getAnchorOffset(),d=e.getFocusKey(),p=e.getFocusOffset(),h=e.getIsBackward();if(!s.extend&&h){var f=c,m=u;c=d,u=p,d=f,p=m,h=!1}var y=c===n&&r<=u&&i>=u,b=d===n&&r<=p&&i>=p;if(y&&b)return s.removeAllRanges(),v(s,t,u-r,e),void g(s,t,p-r,e);if(h){if(b&&(s.removeAllRanges(),v(s,t,p-r,e)),y){var x=s.focusNode,S=s.focusOffset;s.removeAllRanges(),v(s,t,u-r,e),g(s,x,S,e)}}else y&&(s.removeAllRanges(),v(s,t,u-r,e)),b&&g(s,t,p-r,e)}},addFocusToSelection:g}},42123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},42185:(e,t,n)=>{var r=n(67060);r(r.P,"String",{repeat:n(87555)})},42242:(e,t,n)=>{var r=n(36040),i=n(3444),o=n(63759)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},42402:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build")},42456:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)},()=>{})}n.d(t,{A:()=>r})},42501:(e,t,n)=>{"use strict";var r=n(37652),i=n(36040),o=n(59258),a=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),l=function(){var r=n.concat(a.call(arguments));return this instanceof l?function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(l.prototype=t.prototype),l}},42545:(e,t,n)=>{"use strict";var r=n(27154),i=n(36040),o=n(58116),a=n(57621),s=n(63759)("isConcatSpreadable");e.exports=function e(t,n,l,c,u,d,p,h){for(var f,m,g=u,v=0,y=!!p&&a(p,h,3);v<c;){if(v in l){if(f=y?y(l[v],v,n):l[v],m=!1,i(f)&&(m=void 0!==(m=f[s])?!!m:r(f)),m&&d>0)g=e(t,n,f,o(f.length),g,d-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=f}g++}v++}return g}},42678:(e,t,n)=>{"use strict";var r=n(57621),i=n(67060),o=n(68027),a=n(63921),s=n(38109),l=n(58116),c=n(25534),u=n(67011);i(i.S+i.F*!n(85214)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,p=o(e),h="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(p);if(g&&(m=r(m,f>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(n=new h(t=l(p.length));t>v;v++)c(n,v,g?m(p[v],v):p[v]);else for(d=y.call(p),n=new h;!(i=d.next()).done;v++)c(n,v,g?a(d,m,[i.value,v],!0):i.value);return n.length=v,n}})}
2,42993:(e,t,n)=>{var r=n(13767)("keys"),i=n(49338);e.exports=function(e){return r[e]||(r[e]=i(e))}},43e3:(e,t,n)=>{"use strict";var r=n(36143),i=n(36415);var o=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(n.push(s),o)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}i(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=o},43229:(e,t,n)=>{var r=n(67060);r(r.G,{global:n(76101)})},43633:(e,t,n)=>{"use strict";var r=n(84701),i=n(31320);e.exports=function(e,t,n){var o=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),l=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil(function(e,t){return t===a}).takeUntil(function(e,t){return t===l}).toOrderedMap().merge(i.OrderedMap([[l,o.get(l)]])).map(function(e,t){var i=t===a?s:0,o=t===l?c:e.getLength();return r(e,i,o,n)});return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}},43878:(e,t,n)=>{e.exports=n(13767)("native-function-to-string",Function.toString)},44111:(e,t,n)=>{"use strict";var r=n(68027),i=n(28704),o=n(58116);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),l=i(t,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:i(c,a))-l,a-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},44200:(e,t,n)=>{"use strict";var r=n(67060),i=n(79500),o=n(74241),a=n(87555),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d="0",p=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=l(r/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=l(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call(d,7-n.length)+n}return t},m=function(e,t,n){return 0===t?n:t%2===1?m(e,t-1,n*e):m(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(83881)(function(){s.call({})})),"Number",{toFixed:function(e){var t,n,r,s,l=o(this,u),c=i(e),g="",v=d;if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*m(2,69,1))-69,n=t<0?l*m(2,-t,1):l/m(2,t,1),n*=4503599627370496,(t=52-t)>0){for(p(0,n),r=c;r>=7;)p(1e7,0),r-=7;for(p(m(10,r,1),0),r=t-1;r>=23;)h(1<<23),r-=23;h(1<<r),p(1,1),h(2),v=f()}else p(0,n),p(1<<-t,0),v=f()+a.call(d,c);return v=c>0?g+((s=v.length)<=c?"0."+a.call(d,c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):g+v}})},44208:(e,t,n)=>{var r=n(92426),i=n(35421),o=n(44786);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},44786:(e,t)=>{t.f={}.propertyIsEnumerable},44863:(e,t,n)=>{"use strict";n(17443);e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map(function(e){return t.get(e)}).every(function(e){return e.getParentKey()===n}))return!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return!1;var o=e.getNextSiblingKey();if(null!=o&&t.get(o).getPrevSiblingKey()!==n)return!1;return(null===o||null===i||i!==o)&&!(""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter(function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()});if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),i=[];null!=r;){var o=e.get(r),a=o.getChildKeys(),s=o.getNextSiblingKey();if(a.size>0){null!=s&&i.unshift(s);var l=a.map(function(t){return e.get(t)}).find(function(e){return null==e.getPrevSiblingKey()});if(null==l)return!1;r=l.getKey()}else r=null!=o.getNextSiblingKey()?o.getNextSiblingKey():i.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every(function(n){return t.isValidBlock(n,e)})&&this.isConnectedTree(e)}}},45079:(e,t,n)=>{"use strict";n(27713)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},45103:(e,t,n)=>{"use strict";var r=n(42123);function i(){return i=r||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},i.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(69358),l=n(4414),c=n(65043),u=n(35914),d=n(51614),p=n(70636),h=n(68349),f=n(85628),m=n(31320),g=n(36415),v=n(9990),y=(m.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),b=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},x=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},S=function(e,t,n,r,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},l=r(e);return l&&(s.className=l),void 0!==i.customEditable&&(s=o({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",c.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var m=r.prototype;return m.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,i=t.tree,o=!n.getChildKeys().isEmpty(),a=n!==e.block||i!==e.tree||r!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection;return o||a},m.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,i=d.getScrollParent(n),o=h(i);if(i===window){var a=p(n);(r=a.y+a.height-f().height)>0&&window.scrollTo(o.x,o.y+r+10)}else{v(n)||g(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(i.offsetHeight+o.y))>0&&u.setTop(i,u.getTop(i)+r+10)}}}},m.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,u=t.blockRendererFn,d=t.blockStyleFn,p=t.contentState,h=t.decorator,f=t.editorKey,m=t.editorState,g=t.customStyleFn,v=t.customStyleMap,w=t.direction,_=t.forceSelection,k=t.selection,M=t.tree,C=null;n.children.size&&(C=n.children.reduce(function(t,n){var i=l.encode(n,0,0),s=p.getBlockForKey(n),h=x(s,u),g=h.CustomComponent||r,v=b(s,a),y=v.Element,w=v.wrapperTemplate,_=S(s,f,i,d,h,null),k=o({},e.props,{tree:m.getBlockTree(n),blockProps:h.customProps,offsetKey:i,block:s});return t.push(c.createElement(y,_,c.createElement(g,k))),!w||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(s,p)||function(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s,u=n.reverse()[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var d=s.value;if(d.type!==t)break;r.push(d)}}catch(f){o=!0,a=f}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),h=p[0].key;n.push(c.cloneElement(e,{key:"".concat(h,"-wrap"),"data-offset-key":l.encode(h,0,0)},p))}(w,y,t),t},[]));var T=n.getKey(),A=l.encode(T,0,0),E=x(n,u),j=E.CustomComponent,N=null!=j?c.createElement(j,i({},this.props,{tree:m.getBlockTree(T),blockProps:E.customProps,offsetKey:A,block:n})):c.createElement(s,{block:n,children:C,contentState:p,customStyleFn:g,customStyleMap:v,decorator:h,direction:w,forceSelection:_,hasSelection:y(k,T),selection:k,tree:M});if(n.getParentKey())return N;var I=b(n,a).Element,D=S(n,f,A,d,E,this.wrapperRef);return c.createElement(I,D,N)},r}(c.Component);e.exports=w},45311:(e,t,n)=>{"use strict";var r=n(31320),i=n(53422),o=n(36415),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||o(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var l=e.getBlockMap(),c=t.getStartKey(),u=t.getStartOffset(),d=l.get(c),p=d.getText(),h=d.merge({text:p.slice(0,u)+n+p.slice(u,d.getLength()),characterList:i(d.getCharacterList(),a(r,s).toList(),u)}),f=u+s;return e.merge({blockMap:l.set(c,h),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})}},45471:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},45486:(e,t,n)=>{var r=n(67060);r(r.S,"System",{global:n(76101)})}
2,45583:(e,t,n)=>{var r=n(76101).parseInt,i=n(61504).trim,o=n(89094),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},45658:(e,t,n)=>{var r=n(72630),i=n(67573).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},45791:(e,t,n)=>{"use strict";var r=n(66559);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var i=e.getParentKey();if(!i)return null;for(var o=t.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?t.get(a):null}return o?o.getNextSiblingKey():null}},45797:e=>{e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},45873:(e,t,n)=>{"use strict";var r=n(30853),i=n(58116),o=n(38963),a=n(64748);n(1907)("match",1,function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;for(var d,p=[],h=0;null!==(d=a(l,c));){var f=String(d[0]);p[h]=f,""===f&&(l.lastIndex=o(c,i(l.lastIndex),u)),h++}return 0===h?null:p}]})},45879:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5844).A},46052:(e,t,n)=>{"use strict";var r=n(67060),i=n(58116),o=n(7309),a="startsWith",s=""[a];r(r.P+r.F*n(95314)(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},46264:(e,t,n)=>{var r=n(36040);n(80156)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},46907:(e,t,n)=>{var r=n(67060);r(r.S,"Object",{setPrototypeOf:n(95867).set})},46959:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(87707),o=n(66559),a=n(80555),s=n(70306),l=n(36357),c=n(78819),u=n(31320),d=n(83272),p=u.List,h=u.Repeat,f=c("draft_tree_data_support"),m=f?o:i,g={processHTML:function(e,t){return a(e,l,t)},processText:function(e,t,n){return e.reduce(function(e,i,o){i=d(i);var a=s(),l={key:a,type:n,text:i,characterList:p(h(t,i.length))};if(f&&0!==o){var c=o-1;l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}({},l,{prevSibling:(e[c]=e[c].merge({nextSibling:a})).getKey()})}return e.push(new m(l)),e},[])}};e.exports=g},47003:e=>{"use strict";e.exports={getRemovalRange:function(e,t,n,r,i){var o=n.split(" ");o=o.map(function(e,t){if("forward"===i){if(t>0)return" "+e}else if(t<o.length-1)return e+" ";return e});for(var a,s=r,l=null,c=null,u=0;u<o.length;u++){if(e<(a=s+o[u].length)&&s<t)null!==l||(l=s),c=a;else if(null!==l)break;s=a}var d=r+n.length,p=l===r,h=c===d;return(!p&&h||p&&!h)&&("forward"===i?c!==d&&c++:l!==r&&l--),{start:l,end:c}}}},47123:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},47367:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"}),"HourglassEmpty")},47551:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(70306),a=n(36415),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},l={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var i=r.children;Array.isArray(i)||a(!1),n=n.concat([].concat(i.reverse()))}}(t,function(e){var t=r({},e);s(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map(function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t}))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))}),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach(function(e){var i=s(e),a=e.depth||0,l=r({},e,{children:[]});if(i){var c=n[0];if(null==c&&0===a)t.push(l);else if(null==c||c.depth<a-1){var u={key:o(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(u),1===a?t.push(u):null!=c&&c.children.push(u),u.children.push(l)}else if(c.depth===a-1)c.children.push(l);else{for(;null!=c&&c.depth>=a;)n.shift(),c=n[0];a>0?c.children.push(l):t.push(l)}}else t.push(l)}),r({},e,{blocks:t})}};e.exports=l},47713:(e,t,n)=>{n(18387)("Set")},47755:e=>{e.exports=!1},47996:(e,t,n)=>{"use strict";var r=n(78819)("draft_tree_data_support");e.exports=n(r?75714:11984)},48009:(e,t,n)=>{var r=n(79500),i=n(49649);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}}
2,48028:(e,t,n)=>{var r=n(76101),i=n(14589),o=n(12718).f,a=n(45658).f,s=n(42242),l=n(40671),c=r.RegExp,u=c,d=c.prototype,p=/a/g,h=/a/g,f=new c(p)!==p;if(n(73358)&&(!f||n(83881)(function(){return h[n(63759)("match")]=!1,c(p)!=p||c(h)==h||"/a/i"!=c(p,"i")}))){c=function(e,t){var n=this instanceof c,r=s(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(f?new u(r&&!o?e.source:e,t):u((r=e instanceof c)?e.source:e,r&&o?l.call(e):t),n?this:d,c)};for(var m=function(e){e in c||o(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},g=a(u),v=0;g.length>v;)m(g[v++]);d.constructor=c,c.prototype=d,n(88972)(r,"RegExp",c)}n(95971)("RegExp")},48265:(e,t,n)=>{"use strict";var r=n(72506),i=n(61529),o=n(35973),a={};n(12730)(a,n(63759)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},48625:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},48645:e=>{"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},49167:e=>{"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},49338:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},49349:(e,t,n)=>{var r=n(12718),i=n(30853),o=n(92426);e.exports=n(73358)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},49399:(e,t,n)=>{"use strict";var r=n(54121),i="Unknown",o={"Mac OS":"Mac OS X"};var a,s=(new r).getResult(),l=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(s.browser.version),c={browserArchitecture:s.cpu.architecture||i,browserFullVersion:s.browser.version||i,browserMinorVersion:l.minor||i,browserName:s.browser.name||i,browserVersion:s.browser.major||i,deviceName:s.device.model||i,engineName:s.engine.name||i,engineVersion:s.engine.version||i,platformArchitecture:s.cpu.architecture||i,platformName:(a=s.os.name,o[a]||a||i),platformVersion:s.os.version||i,platformFullVersion:s.os.version||i};e.exports=c},49534:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},49640:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(65043),i=n(99303);let o=!0,a=!1;const s=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function p(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){const e=r.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))},[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,()=>{a=!1}),t.current=!1,!0)},ref:e}}},49649:e=>{e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},50147:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},50232:(e,t,n)=>{"use strict";var r=n(67060),i=n(48009)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},50317:(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}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(65043),a=n(36143),s=n(36415),l=n(37385),c=a.isBrowser("IE <= 11");var u=function(e){var t,n;function a(t){var n;return i(r(n=e.call(this,t)||this),"_forceFlag",void 0),i(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=a.prototype;return u.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;l(t)||s(!1);var r=t;return n?!function(e){return c?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},u.componentDidMount=function(){this._forceFlag=!this._forceFlag},u.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},u.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},c?o.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return c?o.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):o.createElement("br",{key:"B","data-text":"true",ref:e})}(function(e){return t._node=e}):o.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(o.Component);e.exports=u},50617:(e,t,n)=>{"use strict";var r=n(25763),i=n(56283),o=n(32333),a=n(4923),s=n(59909),l=n(36143),c=n(29303),u=n(59384),d=n(78502),p=n(96882),h=n(84454),f=n(88516),m=n(77603),g=n(62002),v=n(22198),y=n(79690),b=n(14059),x=o.isOptionKeyCommand,S=l.isBrowser("Chrome");
2e.exports=function(e,t){var n=t.which,o=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&c(e.props.handleReturn(t,o)))return;break;case a.ESC:if(t.preventDefault(),l("onEscape"))return;break;case a.TAB:if(l("onTab"))return;break;case a.UP:if(l("onUpArrow"))return;break;case a.RIGHT:if(l("onRightArrow"))return;break;case a.DOWN:if(l("onDownArrow"))return;break;case a.LEFT:if(l("onLeftArrow"))return;break;case a.SPACE:S&&x(t)&&t.preventDefault()}var w=e.props.keyBindingFn(t);if(null!=w&&""!==w)if("undo"!==w){if(t.preventDefault(),!e.props.handleKeyCommand||!c(e.props.handleKeyCommand(w,o,t.timeStamp))){var _=function(e,t,n){switch(e){case"redo":return i.redo(t);case"delete":return v(t);case"delete-word":return p(t);case"backspace":return g(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return u(t,n);case"split-block":return h(t);case"transpose-characters":return y(t);case"move-selection-to-start-of-block":return m(t);case"move-selection-to-end-of-block":return f(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(w,o,t);_!==o&&e.update(_)}}else b(t,o,e.update);else if(n===a.SPACE&&S&&x(t)){var k=r.replaceText(o.getCurrentContent(),o.getSelection(),"\xa0");e.update(i.push(o,k,"insert-characters"))}}},50966:(e,t,n)=>{"use strict";var r=n(47755),i=n(67060),o=n(88972),a=n(12730),s=n(91271),l=n(48265),c=n(35973),u=n(26928),d=n(63759)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,n,g,v,y,b){l(n,t,g);var x,S,w,_=function(e){if(!p&&e in T)return T[e];switch(e){case h:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",M=v==f,C=!1,T=e.prototype,A=T[d]||T["@@iterator"]||v&&T[v],E=A||_(v),j=v?M?_("entries"):E:void 0,N="Array"==t&&T.entries||A;if(N&&(w=u(N.call(new e)))!==Object.prototype&&w.next&&(c(w,k,!0),r||"function"==typeof w[d]||a(w,d,m)),M&&A&&A.name!==f&&(C=!0,E=function(){return A.call(this)}),r&&!b||!p&&!C&&T[d]||a(T,d,E),s[t]=E,s[k]=m,v)if(x={values:M?E:_(f),keys:y?E:_(h),entries:j},b)for(S in x)S in T||o(T,S,x[S]);else i(i.P+i.F*(p||C),t,x);return x}},50995:(e,t,n)=>{"use strict";var r,i=n(37707),o=n(31320),a=n(88691),s=o.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),l=n.valueSeq().map(function(e){return a(r).getDirection(e.getText())}),c=s(n.keySeq().zip(l));return null!=t&&o.is(t,c)?t:c}};e.exports=l},51052:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65043);function i(e){let{controlled:t,default:n,name:i,state:o="value"}=e;const{current:a}=r.useRef(void 0!==t),[s,l]=r.useState(n);return[a?t:s,r.useCallback(e=>{a||l(e)},[])]}},51153:(e,t,n)=>{"use strict";var r=n(65043),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c}
2,51614:(e,t,n)=>{"use strict";function r(e,t){var n=i.get(e,t);return"auto"===n||"scroll"===n}var i={get:n(81075),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=i},51807:(e,t,n)=>{"use strict";var r=n(67060),i=n(7309),o="includes";r(r.P+r.F*n(95314)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},52108:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},52367:(e,t,n)=>{"use strict";var r=n(31320),i=r.Map,o=r.OrderedSet,a=r.Record,s=o(),l={style:s,entity:null},c=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return u;var t=i({style:s,entity:null}).merge(e),n=d.get(t);if(n)return n;var o=new r(t);return d=d.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?o(t):t,entity:Array.isArray(n)?o(n):n})},r}(a(l)),u=new c,d=i([[i(l),u]]);c.EMPTY=u,e.exports=c},52447:(e,t,n)=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var r=n(1),i="function"===typeof importScripts;e.exports=r(i?self:window)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=[];function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=i.reduce(function(e,t){return[t].concat(e)},[]),s=Promise.resolve(n);return a.forEach(function(e){var t=e.request,n=e.requestError;(t||n)&&(s=s.then(function(e){return t.apply(void 0,r(e))},n))}),s=s.then(function(t){var n=new(Function.prototype.bind.apply(Request,[null].concat(r(t))));return e(n).then(function(e){return e.request=n,e}).catch(function(e){return e.request=n,Promise.reject(e)})}),a.forEach(function(e){var t=e.response,n=e.responseError;(t||n)&&(s=s.then(t,n))}),s}e.exports=function(e){if(!e.fetch)try{n(2)}catch(t){throw Error("No fetch available. Unable to register fetch-intercept")}return e.fetch=function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return o.apply(void 0,[e].concat(n))}}(e.fetch),{register:function(e){return i.push(e),function(){var t=i.indexOf(e);t>=0&&i.splice(t,1)}},clear:function(){i=[]}}}},function(e,t){e.exports=n(94953)}])},52588:(e,t,n)=>{"use strict";var r=n(67060),i=n(93252);r(r.P+r.F*!n(65417)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},52991:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m13.5-9 1.96 2.5H17V9.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"LocalShipping")},53068:(e,t,n)=>{n(58452)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},53384:(e,t,n)=>{"use strict";var r=n(13305),i=n(66559),o=n(31320),a=n(53422),s=n(36415),l=n(81287),c=o.List,u=function(e,t,n,o,a,s){var l=n.first()instanceof i,u=[],d=o.size,p=n.get(a),h=o.first(),f=o.last(),m=f.getLength(),g=f.getKey(),v=l&&(!p.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());
2n.forEach(function(e,t){t===a?(v?u.push(e):u.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.slice(0,t),a=i.slice(0,t),s=n.first();return e.merge({text:o+s.getText(),characterList:a.concat(s.getCharacterList()),type:o?e.getType():s.getType(),data:s.getData()})}(e,s,o)),o.slice(v?0:1,d-1).forEach(function(e){return u.push(e)}),u.push(function(e,t,n){var r=e.getText(),i=e.getCharacterList(),o=r.length,a=r.slice(t,o),s=i.slice(t,o),l=n.last();return l.merge({text:l.getText()+a,characterList:l.getCharacterList().concat(s),data:l.getData()})}(e,s,o))):u.push(e)});var y=r.createFromArray(u);return l&&(y=function(e,t,n,r){return e.withMutations(function(t){var i=n.getKey(),o=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),l=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var o=r.getNextSiblingKey();if(!o)break;i.push(o),r=t.get(o)}return i}(r,e),u=l[l.length-1];if(t.get(o)?(t.setIn([i,"nextSibling"],o),t.setIn([o,"prevSibling"],i)):(t.setIn([i,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],i)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),l.forEach(function(e){return t.setIn([e,"parent"],s)}),s){var d=e.get(s).getChildKeys(),p=d.indexOf(i)+1,h=d.toArray();h.splice.apply(h,[p,0].concat(l)),t.setIn([s,"children"],c(h))}})}(y,0,p,h)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:m,focusKey:g,focusOffset:m,isBackward:!1})})};e.exports=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var o=e.getBlockMap(),c=l(n),d=t.getStartKey(),p=t.getStartOffset(),h=o.get(d);return h instanceof i&&(h.getChildKeys().isEmpty()||s(!1)),1===c.size?function(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(i),c=l.getText(),u=l.getCharacterList(),d=i,p=o+r.getText().length,h=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":h=r.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":h=r.getData()}var f=l.getType();c&&"unstyled"===f&&(f=r.getType());var m=l.merge({text:c.slice(0,o)+r.getText()+c.slice(o),characterList:a(u,r.getCharacterList(),o),type:f,data:h});return e.merge({blockMap:n.set(i,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})}(e,t,o,c.first(),d,p,r):u(e,t,o,c,d,p)}},53422:e=>{"use strict";e.exports=function(e,t,n){var r=e;if(n===r.count())t.forEach(function(e){r=r.push(e)});else if(0===n)t.reverse().forEach(function(e){r=r.unshift(e)});else{var i=r.slice(0,n),o=r.slice(n);r=i.concat(t,o).toList()}return r}},53536:e=>{var t=Math.expm1;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:t},53572:(e,t,n)=>{var r=n(25586),i=n(45658).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(t){return a.slice()}}(e):i(r(e))}},53616:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(60599)(o)},53763:(e,t,n)=>{"use strict";e.exports=n(54983)},54048:(e,t,n)=>{var r=n(67060),i=n(76101).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},54121:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",l="object",c="string",u="major",d="model",p="name",h="type",f="vendor",m="version",g="architecture",v="console",y="mobile",b="tablet",x="smarttv",S="wearable",w="embedded",_="Amazon",k="Apple",M="ASUS",C="BlackBerry",T="Browser",A="Chrome",E="Firefox",j="Google",N="Huawei",I="LG",D="Microsoft",P="Motorola",L="Opera",R="Samsung",O="Sharp",z="Sony",F="Xiaomi",B="Zebra",U="Facebook",H="Chromium OS",W="Mac OS",V=" Browser",G=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},q=function(e,t){return typeof e===c&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},X=function(e,t){for(var n,r,i,s,c,u,d=0;d<t.length&&!c;){var p=t[d],h=t[d+1];for(n=r=0;n<p.length&&!c&&p[n];)if(c=p[n++].exec(e))for(i=0;i<h.length;i++)u=c[++r],typeof(s=h[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):o:this[s[0]]=u?s[1].call(this,u,s[2]):o:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):o):this[s]=u||o;d+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(q(t[n][r],e))return"?"===n?o:n}else if(q(t[n],e))return"?"===n?o:n;return t.hasOwnProperty("*")?t["*"]:e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,L+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[p,L+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[p,L]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[p,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[p,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UC"+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[p,"Smart Lenovo "+T]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+T],m],[/\bfocus\/([\w\.]+)/i],[m,[p,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI"+V]],[/fxios\/([\w\.-]+)/i],[m,[p,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[p,"360"]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+V],m],[/samsungbrowser\/([\w\.]+)/i],[m,[p,R+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[p,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,U],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/musical_ly(?:.
vendor: 5,971 bytes, line 2
2+app_?version\/|_)([\w\.]+)/i],[m,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,A+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,A+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android "+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[p,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,K]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,R],[h,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[f,R],[h,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[f,k],[h,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[f,k],[h,b]],[/(macintosh);/i],[d,[f,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[f,O],[h,y]],[/(?:honor)([-\w ]+)[;\)]/i],[d,[f,"Honor"],[h,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[f,N],[h,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[f,N],[h,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[d,/_/g," "],[f,F],[h,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[f,F],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[f,"OPPO"],[h,y]],[/\b(opd2\d{3}a?) bui/i],[d,[f,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[f,"Vivo"],[h,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[f,"Realme"],[h,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[f,P],[h,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[f,P],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,I],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[f,I],[h,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[f,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[f,"Nokia"],[h,y]],[/(pixel c)\b/i],[d,[f,j],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[f,j],[h,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[f,z],[h,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[f,z],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[f,"OnePlus"],[h,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[f,_],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[f,_],[h,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,f,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[f,C],[h,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[f,M],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[f,M],[h,y]],[/(nexus 9)/i],[d,[f,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[d,/_/g," "],[h,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[f,"TCL"],[h,b]],[/(itel) ((\w+))/i],[[f,K],d,[h,Z,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[f,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[f,"Meizu"],[h,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[f,"Ulefone"],[h,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[f,"Energizer"],[h,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[f,"Cat"],[h,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[f,"Smartfren"],[h,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[f,"Nothing"],[h,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/;
2 (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,d,[h,y]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,d,[h,b]],[/(surface duo)/i],[d,[f,D],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[f,"Fairphone"],[h,y]],[/(u304aa)/i],[d,[f,"AT&T"],[h,y]],[/\bsie-(\w*)/i],[d,[f,"Siemens"],[h,y]],[/\b(rct\w+) b/i],[d,[f,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[f,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[f,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[f,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[d,[f,"NuVision"],[h,b]],[/\b(k88) b/i],[d,[f,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[d,[f,"ZTE"],[h,y]],[/\b(gen\d{3}) b.+49h/i],[d,[f,"Swiss"],[h,y]],[/\b(zur\d{3}) b/i],[d,[f,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[d,[f,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],d,[h,b]],[/\b(ns-?\w{0,9}) b/i],[d,[f,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[f,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],d,[h,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],d,[h,y]],[/\b(ph-1) /i],[d,[f,"Essential"],[h,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[f,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[d,[f,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[d,[f,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[d,[f,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[f,d,[h,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[f,D],[h,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[f,B],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[f,B],[h,y]],[/smart-tv.+(samsung)/i],[f,[h,x]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[f,R],[h,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,I],[h,x]],[/(apple) ?tv/i],[f,[d,k+" TV"],[h,x]],[/crkey/i],[[d,A+"cast"],[f,j],[h,x]],[/droid.+aft(\w+)( bui|\))/i],[d,[f,_],[h,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[f,O],[h,x]],[/(bravia[\w ]+)( bui|\))/i],[d,[f,z],[h,x]],[/(mitv-\w{5}) bui/i],[d,[f,F],[h,x]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[h,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,Y],[d,Y],[h,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[h,v]],[/droid.+; (shield) bui/i],[d,[f,"Nvidia"],[h,v]],[/(playstation [345portablevi]+)/i],[d,[f,z],[h,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[f,D],[h,v]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[d,[f,R],[h,S]],[/((pebble))app/i],[f,d,[h,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[f,k],[h,S]],[/droid.+; (glass) \d/i],[d,[f,j],[h,S]],[/droid.+; (wt63?0{2,3})\)/i],[d,[f,B],[h,S]],[/droid.+; (glass) \d/i],[d,[f,j],[h,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,d,[h,S]],[/; (quest( \d| pro)?)/i],[d,[f,U],[h,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[h,w]],[/(aeobc)\b/i],[d,[f,_],[h,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[p,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[m,Z,Q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,Z,Q],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,W],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,m],[/\(bb(10);/i],[m,[p,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+);
2 rv:.+ gecko\/([\w\.]+)/i],[m,[p,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[p,A+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,H],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,m]]},$=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof $))return new $(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),v=n&&n.userAgentData?n.userAgentData:o,x=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,t):J,S=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[p]=o,t[m]=o,X.call(t,r,x.browser),t[u]=typeof(e=t[m])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,S&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[g]=o,X.call(e,r,x.cpu),e},this.getDevice=function(){var e={};return e[f]=o,e[d]=o,e[h]=o,X.call(e,r,x.device),S&&!e[h]&&v&&v.mobile&&(e[h]=y),S&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[p]=o,e[m]=o,X.call(e,r,x.engine),e},this.getOS=function(){var e={};return e[p]=o,e[m]=o,X.call(e,r,x.os),S&&!e[p]&&v&&v.platform&&"Unknown"!=v.platform&&(e[p]=v.platform.replace(/chrome os/i,H).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?Y(e,500):e,this},this.setUA(r),this};$.VERSION="0.7.40",$.BROWSER=G([p,m,u]),$.CPU=G([g]),$.DEVICE=G([d,f,h,v,y,x,b,S,w]),$.ENGINE=$.OS=G([p,m]),typeof t!==s?(e.exports&&(t=e.exports=$),t.UAParser=$):n.amdO?(r=function(){return $}.call(t,n,t,e))===o||(e.exports=r):typeof i!==s&&(i.UAParser=$);var ee=typeof i!==s&&(i.jQuery||i.Zepto);if(ee&&!ee.ua){var te=new $;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"===typeof window?window:this)},54410:(e,t,n)=>{"use strict";var r=n(62370),i=n(13305),o=n(52367),a=n(33366),s=n(87707),l=n(34075),c=n(81144),u=n(38063),d=n(57538),p=n(27159),h=n(92593),f=n(25763),m=n(90186),g=n(56283),v=n(32333),y=n(96966),b=n(20169),x=n(94666),S=n(58421),w=n(3327),_=n(70306),k=n(59684),M=n(74587),C={Editor:d,EditorBlock:p,EditorState:g,CompositeDecorator:a,Entity:h,EntityInstance:m,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:l,RawDraftContentState:y,SelectionState:x,AtomicBlockUtils:r,KeyBindingUtil:v,Modifier:f,RichUtils:b,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:u,convertFromHTML:n(80555),convertFromRaw:w,convertToRaw:S,genKey:_,getDefaultKeyBinding:k,getVisibleSelectionRect:M};e.exports=C},54469:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},54483:(e,t,n)=>{var r=n(30853),i=n(37652),o=n(63759)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},54516:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(51052).A}
2,54574:(e,t,n)=>{var r=n(12718).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n(73358)&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},54642:(e,t,n)=>{"use strict";var r=n(30853),i=n(52108),o=n(64748);n(1907)("search",1,function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var u=o(s,l);return i(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]})},54893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},54983:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||S(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=S},55013:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(84440).A},55030:(e,t,n)=>{"use strict";var r=n(37385);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"BR"===e.nodeName)}},55158:(e,t,n)=>{var r=n(67060);r(r.S,"Array",{isArray:n(27154)})},55620:(e,t,n)=>{var r=n(67060),i=n(68990);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},55754:(e,t,n)=>{"use strict";var r=n(36415),i=/\./,o=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function c(e,t){var n=e.split(o);return n.length>1?n.some(function(e){return x.contains(e,t)}):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return u(n[0],t);var i=n[0],o=n[1];return m(i)&&m(o)||r(!1),u(">="+i,t)&&u("<="+o,t)}(e=n[0].trim(),t)}function u(e,t){if(""===(e=e.trim()))return!0;var n=t.split(i),r=h(e),o=r.modifier,a=r.rangeComponents;switch(o){case"<":return d(n,a);case"<=":return function(e,t){var n=b(e,t);
2return-1===n||0===n}(n,a);case">=":return p(n,a);case">":return 1===b(n,a);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,o=parseInt(r[i],10);f(o)&&(r[i]=o+1+"");return p(e,n)&&d(e,r)}(n,a);default:return function(e,t){return 0===b(e,t)}(n,a)}}function d(e,t){return-1===b(e,t)}function p(e,t){var n=b(e,t);return 1===n||0===n}function h(e){var t=e.split(i),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function f(e){return!isNaN(e)&&isFinite(e)}function m(e){return!h(e).modifier}function g(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function v(e,t){var n=e.match(l)[1],r=t.match(l)[1],i=parseInt(n,10),o=parseInt(r,10);return f(i)&&f(o)&&i!==o?y(i,o):y(e,t)}function y(e,t){return typeof e!==typeof t&&r(!1),e>t?1:e<t?-1:0}function b(e,t){for(var n=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var i=n;i<e.length;i++)e[i]="0"}return g(t,e.length),[e,t]}(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=v(r[o],i[o]);if(a)return a}return 0}var x={contains:function(e,t){return c(e.trim(),t.trim())}};e.exports=x},55896:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},56283:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8208),a=n(34075),s=n(50995),l=n(94666),c=n(31320),u=c.OrderedSet,d=c.Record,p=c.Stack,h=c.OrderedMap,f=c.List,m=d({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),g=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(a.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:p(),redoStack:p(),decorator:n||null,selection:l.createEmpty(r)})},t.create=function(e){var n=e.currentContent,i=r({},e,{treeMap:y(n,e.decorator),directionMap:s.getDirectionMap(n)});return new t(new m(i))},t.fromJS=function(e){return new t(new m(r({},e,{directionMap:null!=e.directionMap?h(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?u(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?p(e.redoStack.map(function(e){return a.fromJS(e)})):e.redoStack,selection:null!=e.selection?new l(e.selection):e.selection,treeMap:null!=e.treeMap?h(e.treeMap).map(function(e){return f(e).map(function(e){return o.fromJS(e)})}):e.treeMap,undoStack:null!=e.undoStack?p(e.undoStack.map(function(e){return a.fromJS(e)})):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations(function(t){var r=t.get("decorator"),i=r;null===n.decorator?i=null:n.decorator&&(i=n.decorator);var a=n.currentContent||e.getCurrentContent();if(i!==r){var s,l=t.get("treeMap");return s=i&&r?function(e,t,n,r,i){return n.merge(t.toSeq().filter(function(t){return r.getDecorations(t,e)!==i.getDecorations(t,e)}).map(function(t){return o.generate(e,t,r)}))}(a,a.getBlockMap(),l,i,r):y(a,i),void t.merge({decorator:i,treeMap:s,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var i=e.getCurrentContent().set("entityMap",n),a=i.getBlockMap(),s=e.getImmutable().get("treeMap");return s.merge(t.toSeq().filter(function(e,t){return e!==a.get(t)}).map(function(e){return o.generate(i,e,r)}))}
vendor: 4,904 bytes, line 2
2(e,a.getBlockMap(),a.getEntityMap(),i)),t.merge(n)}))};var e=t.prototype;function t(e){i(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);if(r>0)return i.getInlineStyleAt(r-1);if(i.getLength())return i.getInlineStyleAt(0);return b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);if(r<i.getLength())return i.getInlineStyleAt(r);if(r>0)return i.getInlineStyleAt(r-1);return b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return v(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),v(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return t.acceptSelection(e,new l({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var o=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),c=e.getUndoStack(),u=n;a!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(l),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",l.getSelectionBefore()));var d=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(d=null);var h={currentContent:u,directionMap:o,undoStack:c,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:d};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:e.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:e.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function v(e,t,n){return g.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function y(e,t){return e.getBlockMap().map(function(n){return o.generate(e,n,t)}).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}
2e.exports=g},56350:(e,t,n)=>{"use strict";var r=n(25763),i=n(56283),o=n(51614),a=n(96643),s=n(68349),l=n(49167);e.exports=function(e,t){var n,c=e._latestEditorState,u=c.getSelection(),d=t.target;if(u.isCollapsed())t.preventDefault();else{if(l(d)){var p=d;n=s(o.getScrollParent(p))}var h=a(c);e.setClipboard(h),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return i.push(e,t,"remove-range")}(c))},0)}}},56547:(e,t,n)=>{var r=n(36040);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},56772:(e,t,n)=>{n(80050)("Set")},57014:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var i={};for(var o in e)t.call(e,o)&&(i[o]=n.call(r,e[o],o,e));return i}},57538:(e,t,n)=>{"use strict";var r=n(42123);function i(){return i=r||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},i.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s(e,t,n[t])})}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var c=n(81144),u=n(38063),d=n(85401),p=n(47996),h=n(91609),f=n(36627),m=n(88847),g=n(62251),v=n(88250),y=n(56283),b=n(65043),x=n(35914),S=n(51614),w=n(36143),_=n(67904),k=n(70306),M=n(59684),C=n(68349),T=n(78819),A=n(36415),E=n(9990),j=n(88691),N=w.isBrowser("IE"),I=!N,D={edit:f,composite:d,drag:h,cut:null,render:null},P=!1,L=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(b.Component),R=function(e){function t(t){var n;return s(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),s(a(n),"_clipboard",void 0),s(a(n),"_handler",void 0),s(a(n),"_dragCount",void 0),s(a(n),"_internalDrag",void 0),s(a(n),"_editorKey",void 0),s(a(n),"_placeholderAccessibilityID",void 0),s(a(n),"_latestEditorState",void 0),s(a(n),"_latestCommittedEditorState",void 0),s(a(n),"_pendingStateFromBeforeInput",void 0),s(a(n),"_onBeforeInput",void 0),s(a(n),"_onBlur",void 0),s(a(n),"_onCharacterData",void 0),s(a(n),"_onCompositionEnd",void 0),s(a(n),"_onCompositionStart",void 0),s(a(n),"_onCopy",void 0),s(a(n),"_onCut",void 0),s(a(n),"_onDragEnd",void 0),s(a(n),"_onDragOver",void 0),s(a(n),"_onDragStart",void 0),s(a(n),"_onDrop",void 0),s(a(n),"_onInput",void 0),s(a(n),"_onFocus",void 0),s(a(n),"_onKeyDown",void 0),s(a(n),"_onKeyPress",void 0),s(a(n),"_onKeyUp",void 0),s(a(n),"_onMouseDown",void 0),s(a(n),"_onMouseUp",void 0),s(a(n),"_onPaste",void 0),s(a(n),"_onSelect",void 0),s(a(n),"editor",void 0),s(a(n),"editorContainer",void 0),s(a(n),"focus",void 0),s(a(n),"blur",void 0),s(a(n),"setMode",void 0),s(a(n),"exitCurrentMode",void 0),s(a(n),"restoreEditorDOM",void 0),s(a(n),"setClipboard",void 0),s(a(n),"getClipboard",void 0),s(a(n),"getEditorKey",void 0),s(a(n),"update",void 0),s(a(n),"onDragEnter",void 0),s(a(n),"onDragLeave",void 0),s(a(n),"_handleEditorContainerRef",function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null}),s(a(n),"focus",function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),i=n.editor;if(i){var o=S.getScrollParent(i),a=e||C(o),s=a.x,l=a.y;E(i)||A(!1),i.focus(),o===window?window.scrollTo(s,l):x.setTop(o,l),r||n.update(y.forceSelection(t,t.getSelection()))}}),s(a(n),"blur",function(){var e=n.editor;e&&(E(e)||A(!1),e.blur())}),s(a(n),"setMode",function(e){var t=n.props,r=t.onPaste,i=t.onCut,a=t.onCopy,s=o({},D.edit);r&&(s.onPaste=r),i&&(s.onCut=i),a&&(s.onCopy=a);var l=o({},D,{edit:s});n._handler=l[e]}
vendor: 4,479 bytes, line 2
2),s(a(n),"exitCurrentMode",function(){n.setMode("edit")}),s(a(n),"restoreEditorDOM",function(e){n.setState({contentsKey:n.state.contentsKey+1},function(){n.focus(e)})}),s(a(n),"setClipboard",function(e){n._clipboard=e}),s(a(n),"getClipboard",function(){return n._clipboard}),s(a(n),"update",function(e){n._latestEditorState=e,n.props.onChange(e)}),s(a(n),"onDragEnter",function(){n._dragCount++}),s(a(n),"onDragLeave",function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()}),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||k(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}l(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(m?m(function(){return r(t,n)}):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:j(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(g,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,l=e.editorState,c=e.preventScroll,d=e.readOnly,h=e.textAlignment,f=e.textDirectionality,m=_({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),g=this.props.role||"textbox",v="combobox"===g?!!this.props.ariaExpanded:null,y={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:o({},u,s),customStyleFn:a,editorKey:this._editorKey,editorState:l,preventScroll:c,textDirectionality:f};return b.createElement("div",{className:m},this._renderPlaceholder(),b.createElement("div",{className:_("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":d?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":d?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:_({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:d?null:g,spell
2Check:I&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(L,{editor:this,editorState:l}),b.createElement(p,i({},y,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!P&&T("draft_ods_enabled")&&(P=!0,v.initODS()),this.setMode("edit"),N&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(b.Component);s(R,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:M,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=R},57621:(e,t,n)=>{var r=n(37652);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},57779:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Sync")},58097:(e,t,n)=>{var r=n(3444),i=n(63759)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},58099:(e,t,n)=>{var r=n(33435),i=n(30853),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},58116:(e,t,n)=>{var r=n(79500),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},58237:(e,t,n)=>{var r=n(33435),i=n(30853),o=n(26928),a=r.has,s=r.key,l=function(e,t,n){if(a(e,t,n))return!0;var r=o(t);return null!==r&&l(e,r,n)};r.exp({hasMetadata:function(e,t){return l(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},58332:e=>{"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},58387:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},58421:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(87707),o=n(66559),a=n(64088),s=n(23226),l=n(71375),c=n(36415),u=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l(e),entityRanges:s(e,t),data:e.getData().toObject()}},d=function(e,t,n,a){if(e instanceof i)n.push(u(e,t));else{e instanceof o||c(!1);var s=e.getParentKey(),l=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}({},u(e,t),{children:[]});s?a[s].children.push(l):n.push(l)}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],i={},o={},s=0;
vendor: 4,632 bytes, line 2
2return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return null!==e.getEntity()},function(t){var r=e.getEntityAt(t),i=a.stringify(r);o[i]||(o[i]=r,n[i]="".concat(s),s++)}),d(e,n,r,i)}),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,i={};return Object.keys(r).forEach(function(t,n){var r=e.getEntity(a.unstringify(t));i[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}}),{blocks:n,entityMap:i}}(e,t),t}},58452:(e,t,n)=>{"use strict";if(n(73358)){var r=n(47755),i=n(76101),o=n(83881),a=n(67060),s=n(77548),l=n(22351),c=n(57621),u=n(45797),d=n(61529),p=n(12730),h=n(66254),f=n(79500),m=n(58116),g=n(22342),v=n(28704),y=n(56547),b=n(40964),x=n(58097),S=n(36040),w=n(68027),_=n(38109),k=n(72506),M=n(26928),C=n(45658).f,T=n(67011),A=n(49338),E=n(63759),j=n(9874),N=n(63435),I=n(54483),D=n(27892),P=n(91271),L=n(85214),R=n(95971),O=n(72063),z=n(44111),F=n(12718),B=n(2008),U=F.f,H=B.f,W=i.RangeError,V=i.TypeError,G=i.Uint8Array,q="ArrayBuffer",K="Shared"+q,Y="BYTES_PER_ELEMENT",X="prototype",Z=Array[X],Q=l.ArrayBuffer,J=l.DataView,$=j(0),ee=j(2),te=j(3),ne=j(4),re=j(5),ie=j(6),oe=N(!0),ae=N(!1),se=D.values,le=D.keys,ce=D.entries,ue=Z.lastIndexOf,de=Z.reduce,pe=Z.reduceRight,he=Z.join,fe=Z.sort,me=Z.slice,ge=Z.toString,ve=Z.toLocaleString,ye=E("iterator"),be=E("toStringTag"),xe=A("typed_constructor"),Se=A("def_constructor"),we=s.CONSTR,_e=s.TYPED,ke=s.VIEW,Me="Wrong length!",Ce=j(1,function(e,t){return Ne(I(e,e[Se]),t)}),Te=o(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Ae=!!G&&!!G[X].set&&o(function(){new G(1).set({})}),Ee=function(e,t){var n=f(e);if(n<0||n%t)throw W("Wrong offset!");return n},je=function(e){if(S(e)&&_e in e)return e;throw V(e+" is not a typed array!")},Ne=function(e,t){if(!S(e)||!(xe in e))throw V("It is not a typed array constructor!");return new e(t)},Ie=function(e,t){return De(I(e,e[Se]),t)},De=function(e,t){for(var n=0,r=t.length,i=Ne(e,r);r>n;)i[n]=t[n++];return i},Pe=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Le=function(e){var t,n,r,i,o,a,s=w(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,p=T(s);if(void 0!=p&&!_(p)){for(a=p.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,n=m(s.length),i=Ne(this,n);n>t;t++)i[t]=d?u(s[t],t):s[t];return i},Re=function(){for(var e=0,t=arguments.length,n=Ne(this,t);t>e;)n[e]=arguments[e++];return n},Oe=!!G&&o(function(){ve.call(new G(1))}),ze=function(){return ve.apply(Oe?me.call(je(this)):je(this),arguments)},Fe={copyWithin:function(e,t){return z.call(je(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(je(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return O.apply(je(this),arguments)},filter:function(e){return Ie(this,ee(je(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(je(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(je(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){$(je(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(je(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(je(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(je(this),arguments)},lastIndexOf:function(e){return ue.apply(je(this),arguments)},map:function(e){return Ce(je(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(je(this),arguments)},reduceRight:function(e){return pe.apply(je(this),arguments)},reverse:function(){for(var e,t=this,n=je(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return te(je(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return fe.call(je(this),e)},subarray:function(e,t){var n=je(this),r=n.length,i=v(e,r);return new(I(n,n[Se]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Be=function(e,t){return Ie(this,me.call(je(this),e,t))},Ue=function(e){je(this);var t=Ee(arguments[1],1),n=this.length,r=w(e),i=m(r.length),o=0;if(i+t>n)throw W(Me);for(;o<i;)this[t+o]=r[o++]},He={entries:function(){return ce.call(je(this))},keys:function(){return le.call(je(this))},values:function(){return se.call(je(this))}},We=function(e,t){return S(e)&&e[_e]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ve=function(e,t){return We(e,t=y(t,!0))?d(2,e[t]):H(e,t)},Ge=function(e,t,n){return!(We(e,t=y(t,!0))&&S(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(e,t,n
2):(e[t]=n.value,e)};we||(B.f=Ve,F.f=Ge),a(a.S+a.F*!we,"Object",{getOwnPropertyDescriptor:Ve,defineProperty:Ge}),o(function(){ge.call({})})&&(ge=ve=function(){return he.call(this)});var qe=h({},Fe);h(qe,He),p(qe,ye,He.values),h(qe,{slice:Be,set:Ue,constructor:function(){},toString:ge,toLocaleString:ze}),Pe(qe,"buffer","b"),Pe(qe,"byteOffset","o"),Pe(qe,"byteLength","l"),Pe(qe,"length","e"),U(qe,be,{get:function(){return this[_e]}}),e.exports=function(e,t,n,l){var c=e+((l=!!l)?"Clamped":"")+"Array",d="get"+e,h="set"+e,f=i[c],v=f||{},y=f&&M(f),b=!f||!s.ABV,w={},_=f&&f[X],T=function(e,n){U(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[d](n*t+r.o,Te)}(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[h](n*t+i.o,r,Te)}(this,n,e)},enumerable:!0})};b?(f=n(function(e,n,r,i){u(e,f,c,"_d");var o,a,s,l,d=0,h=0;if(S(n)){if(!(n instanceof Q||(l=x(n))==q||l==K))return _e in n?De(f,n):Le.call(f,n);o=n,h=Ee(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw W(Me);if((a=v-h)<0)throw W(Me)}else if((a=m(i)*t)+h>v)throw W(Me);s=a/t}else s=g(n),o=new Q(a=s*t);for(p(e,"_d",{b:o,o:h,l:a,e:s,v:new J(o)});d<s;)T(e,d++)}),_=f[X]=k(qe),p(_,"constructor",f)):o(function(){f(1)})&&o(function(){new f(-1)})&&L(function(e){new f,new f(null),new f(1.5),new f(e)},!0)||(f=n(function(e,n,r,i){var o;return u(e,f,c),S(n)?n instanceof Q||(o=x(n))==q||o==K?void 0!==i?new v(n,Ee(r,t),i):void 0!==r?new v(n,Ee(r,t)):new v(n):_e in n?De(f,n):Le.call(f,n):new v(g(n))}),$(y!==Function.prototype?C(v).concat(C(y)):C(v),function(e){e in f||p(f,e,v[e])}),f[X]=_,r||(_.constructor=f));var A=_[ye],E=!!A&&("values"==A.name||void 0==A.name),j=He.values;p(f,xe,!0),p(_,_e,c),p(_,ke,!0),p(_,Se,f),(l?new f(1)[be]==c:be in _)||U(_,be,{get:function(){return c}}),w[c]=f,a(a.G+a.W+a.F*(f!=v),w),a(a.S,c,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o(function(){v.of.call(f,1)}),c,{from:Le,of:Re}),Y in _||p(_,Y,t),a(a.P,c,Fe),R(c),a(a.P+a.F*Ae,c,{set:Ue}),a(a.P+a.F*!E,c,He),r||_.toString==ge||(_.toString=ge),a(a.P+a.F*o(function(){new f(1).slice()}),c,{slice:Be}),a(a.P+a.F*(o(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!o(function(){_.toLocaleString.call([1,2])})),c,{toLocaleString:ze}),P[c]=E?A:j,r||E||p(_,ye,j)}}else e.exports=function(){}},58796:e=>{"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},58812:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(67598),i=n(13815),o=n(17162),a=n(89751),s=n(37758);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,o.Yn)(n,u)||{};if(p)return p(s);return(0,a.NI)(s,t,t=>{let n=(0,o.BO)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,o.BO)(h,d,"".concat(e).concat("default"===t?"":(0,r.A)(t)),t)),!1===c?n:{[c]:n}})}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const o=(0,a.EU)(l.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach(n=>{const o=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==o&&void 0!==o)if("object"===typeof o)if(c[n])u=(0,i.A)(u,e(n,o,l,c));else{const e=(0,a.NI)({theme:l},o,e=>({[n]:e}));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce((e,t)=>e.concat(Object.keys(t)),[]),i=new Set(r);return t.every(e=>i.size===Object.keys(e).length)}(e,o)?u=(0,i.A)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.A)(u,e(n,o,l,c))}),(0,a.vf)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"];const u=c},59189:(e,t,n)=>{var r=n(67060),i=n(3444);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},59193:(e,t,n)=>{"use strict";var r=n(43e3);e.exports=function(e){var t=r(e),n=0,i=0,o=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,i=s.right,o=s.bottom,a=s.left}else{var l=t[0];n=l.top,i=l.right,o=l.bottom,a=l.left}for(var c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),i=Math.max(i,u.right),o=Math.max(o,u.bottom),a=Math.min(a,u.left))}}
2return{top:n,right:i,bottom:o,left:a,width:i-a,height:o-n}}},59258:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},59289:(e,t,n)=>{var r=n(67060),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},59384:(e,t,n)=>{"use strict";var r=n(56283),i=n(25798),o=n(77404),a=n(31873),s=n(73767);e.exports=function(e,t){var n=s(e,function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=i(r),o(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState},"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},59662:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(58168),i=n(65043),o=n(98587),a=n(58387),s=n(98610),l=n(6803),c=n(98206),u=n(34535),d=n(92532),p=n(72372);function h(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(70579);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.A)(n.color))],t["fontSize".concat((0,l.A)(n.fontSize))]]}})(e=>{let{theme:t,ownerState:n}=e;var r,i,o,a,s,l,c,u,d,p,h,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(i=r.create)?void 0:i.call(r,"fill",{duration:null==(o=t.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(p=null==(h=(t.vars||t).palette)||null==(h=h[n.color])?void 0:h.main)?p:{action:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}}),v=i.forwardRef(function(e,t){const n=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:v="svg",fontSize:y="medium",htmlColor:b,inheritViewBox:x=!1,titleAccess:S,viewBox:w="0 0 24 24"}=n,_=(0,o.A)(n,m),k=i.isValidElement(u)&&"svg"===u.type,M=(0,r.A)({},n,{color:p,component:v,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:w,hasSvgAsChild:k}),C={};x||(C.viewBox=w);const T=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(n))]};return(0,s.A)(i,h,r)})(M);return(0,f.jsxs)(g,(0,r.A)({as:v,className:(0,a.A)(T.root,d),focusable:"false",color:b,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:t},C,_,k&&u.props,{ownerState:M,children:[k?u.props.children:u,S?(0,f.jsx)("title",{children:S}):null]}))});v.muiName="SvgIcon";const y=v;function b(e,t){function n(n,i){return(0,f.jsx)(y,(0,r.A)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))}return n.muiName=y.muiName,i.memo(i.forwardRef(n))}},59678:(e,t,n)=>{"use strict";var r=n(56283);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},59684:(e,t,n)=>{"use strict";var r=n(32333),i=n(4923),o=n(36143),a=o.isPlatform("Mac OS X"),s=a&&o.isBrowser("Firefox < 29"),l=r.hasCommandModifier,c=r.isCtrlKeyCommand;function u(e){return a&&e.altKey||c(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return c(e)?"delete":null;case 72:return c(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return a&&c(e)?"secondary-cut":null;case 77:case 79:return c(e)?"split-block":null;case 84:return a&&c(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return a&&c(e)?"backspace-word":null;case 89:return c(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case i.RETURN:return"split-block";case i.DELETE:return function(e){return!a&&e.shiftKey?null:u(e)?"delete-word":"delete"}(e);case i.BACKSPACE:return function(e){return l(e)&&a?"backspace-to-start-of-line":u(e)?"backspace-word":"backspace"}(e);case i.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case i.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},59909:(e,t,n)=>{"use strict";var r=n(25763),i=n(56283),o=n(36935),a=n(88691),s=null,l={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),l=null;if(n.isCollapsed()){var c=n.getAnchorKey(),u=t.getBlockForKey(c).getLength();if(u===n.getAnchorOffset()){var d=t.getKeyAfter(c);if(null==d)return e;l=n.set("focusKey",d).set("focusOffset",0)}else l=n.set("focusOffset",u)}else l=n;l=a(l),s=o(t,l);var p=r.removeRange(t,l,"forward");return p===t?e:i.push(e,p,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return i.push(e,t,"insert-fragment")}};e.exports=l}
2,60599:(e,t,n)=>{var r=n(63759)("unscopables"),i=Array.prototype;void 0==i[r]&&n(12730)(i,r,{}),e.exports=function(e){i[r][e]=!0}},60691:(e,t,n)=>{n(80835)("observable")},60836:(e,t,n)=>{var r=n(67060);r(r.P+r.R,"Set",{toJSON:n(17713)("Set")})},61057:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},61275:e=>{"use strict";e.exports=function(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat([[o,a.get(o)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},61475:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(47123);const i=e=>(0,r.A)(e)&&"classes"!==e},61504:(e,t,n)=>{var r=n(67060),i=n(49649),o=n(83881),a=n(89094),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var i={},s=o(function(){return!!a[e]()||"\u200b\x85"!="\u200b\x85"[e]()}),l=i[e]=s?t(d):a[e];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},d=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},61529:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},61894:(e,t,n)=>{"use strict";var r=n(24939).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach(function(t){for(var i=r(e,0,t.offset).length,o=i+r(e,t.offset,t.length).length,a=i;a<o;a++)n[a]=t.key}),n}},61900:e=>{"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(e){return i===e.get("start")?(o=!0,!0):i<e.get("end")&&e.get("leaves").some(function(e){var t=e.get("start");return i===t&&(o=!0,!0)})}),o}},62002:(e,t,n)=>{"use strict";var r=n(56283),i=n(24939),o=n(31873),a=n(73767);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return o(e,s?i.getUTF16Length(s,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},62228:(e,t,n)=>{var r=n(68027),i=n(92426);n(80156)("keys",function(){return function(e){return i(r(e))}})},62251:(e,t,n)=>{"use strict";var r=n(65043),i=n(67904),o=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=o.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
2Focus":e});return r.createElement("div",{className:t},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},o}(r.Component);e.exports=o},62370:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(13305),a=n(52367),s=n(87707),l=n(66559),c=n(25763),u=n(56283),d=n(70306),p=n(78819),h=n(31320),f=n(7414),m=p("draft_tree_data_support"),g=m?l:s,v=h.List,y=h.Repeat,b={insertAtomicBlock:function(e,t,n){var i=e.getCurrentContent(),s=e.getSelection(),l=c.removeRange(i,s,"backward"),p=l.getSelectionAfter(),h=c.splitBlock(l,p),f=h.getSelectionAfter(),b=c.setBlockType(h,f,"atomic"),x=a.create({entity:t}),S={key:d(),type:"atomic",text:n,characterList:v(y(x,n.length))},w={key:d(),type:"unstyled"};m&&(S=r({},S,{nextSibling:w.key}),w=r({},w,{prevSibling:S.key}));var _=[new g(S),new g(w)],k=o.createFromArray(_),M=c.replaceWithFragment(b,f,k),C=M.merge({selectionBefore:s,selectionAfter:M.getSelectionAfter().set("hasFocus",!0)});return u.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var i,o=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());i=f(o,t,s,r)}else{var l=c.removeRange(o,n,"backward"),d=l.getSelectionAfter(),p=l.getBlockForKey(d.getFocusKey());if(0===d.getStartOffset())i=f(l,t,p,"before");else if(d.getEndOffset()===p.getLength())i=f(l,t,p,"after");else{var h=c.splitBlock(l,d),m=h.getSelectionAfter(),g=h.getBlockForKey(m.getFocusKey());i=f(h,t,g,"before")}}var v=i.merge({selectionBefore:a,selectionAfter:i.getSelectionAfter().set("hasFocus",!0)});return u.push(e,v,"move-block")}};e.exports=b},62594:(e,t,n)=>{var r=n(67060),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},62954:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload")},63102:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning")},63112:e=>{"use strict";e.exports=function(e){return Object.keys(e).map(function(t){return e[t]})}},63216:(e,t,n)=>{var r=n(67060);r(r.S,"Reflect",{has:function(e,t){return t in e}})},63435:(e,t,n)=>{var r=n(25586),i=n(58116),o=n(28704);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},63462:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65043),i=n(26564);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{(0,i.A)(t,e)})},t)}},63518:(e,t,n)=>{"use strict";var r=n(67060),i=n(49649),o=n(58116),a=n(42242),s=n(40671),l=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(48265)(c,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),r(r.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in l?String(e.flags):s.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new c(r,t)}})},63759:(e,t,n)=>{var r=n(13767)("wks"),i=n(49338),o=n(76101).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r}
2,63793:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(0),o=n(65417)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},63921:(e,t,n)=>{var r=n(30853);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e.return;throw void 0!==o&&r(o.call(e)),a}}},63940:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(31668);function i(e){return(0,r.A)(e).defaultView||window}},64088:e=>{"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},64194:(e,t,n)=>{var r=n(67060),i=n(53536);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},64316:(e,t,n)=>{var r=n(67060);r(r.S,"Object",{create:n(72506)})},64353:(e,t,n)=>{var r=n(36040),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},64748:(e,t,n)=>{"use strict";var r=n(58097),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},64780:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(58168),i=n(98587),o=n(17868),a=n(19172),s=n(37758),l=n(58812),c=n(18280);var u=n(67266);const d={black:"#000",white:"#fff"},p={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var y=n(50147);const b=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,i):"dark"===t&&(e.dark=(0,u.e$)(e.main,o)))}function _(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),_=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}
2:{main:h[500],light:h[300],dark:h[700]}}(t),k=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),M=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),C=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y.A[400],light:y.A[300],dark:y.A[700]}:{main:y.A[800],light:y.A[500],dark:y.A[900]}}(t),T=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function A(e){return(0,u.eM)(e,S.text.primary)>=n?S.text.primary:x.text.primary}const E=e=>{let{color:t,name:n,mainShade:i=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,o.A)(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error((0,o.A)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return w(t,"light",a,s),w(t,"dark",l,s),t.contrastText||(t.contrastText=A(t.main)),t},j={dark:S,light:x};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:E({color:c,name:"primary"}),secondary:E({color:_,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:k,name:"error"}),warning:E({color:T,name:"warning"}),info:E({color:M,name:"info"}),success:E({color:C,name:"success"}),grey:p,contrastThreshold:n,getContrastText:A,augmentColor:E,tonalOffset:s},j[t]),l)}const k=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const M={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){const n="function"===typeof t?t(e):t,{fontFamily:o=C,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=n,m=(0,i.A)(n,k);const g=s/14,v=f||(e=>"".concat(e/p*g,"rem")),y=(e,t,n,i,a)=>{return(0,r.A)({fontFamily:o,fontWeight:e,fontSize:v(t),lineHeight:n},o===C?{letterSpacing:"".concat((s=i/t,Math.round(1e5*s)/1e5),"em")}:{},a,h);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,M),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,M),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:p,pxToRem:v,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function A(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const E=["none",A(0,2,1,-1,0,1,1,0,0,1,3,0),A(0,3,1,-2,0,2,2,0,0,1,5,0),A(0,3,3,-2,0,3,4,0,0,1,8,0),A(0,2,4,-1,0,4,5,0,0,1,10,0),A(0,3,5,-1,0,5,8,0,0,1,14,0),A(0,3,5,-1,0,6,10,0,0,1,18,0),A(0,4,5,-2,0,7,10,1,0,2,16,1),A(0,5,5,-3,0,8,10,1,0,3,14,2),A(0,5,6,-3,0,9,12,1,0,3,16,2),A(0,6,6,-3,0,10,14,1,0,4,18,3),A(0,6,7,-4,0,11,15,1,0,4,20,3),A(0,7,8,-4,0,12,17,2,0,5,22,4),A(0,7,8,-4,0,13,19,2,0,5,24,4),A(0,7,9,-4,0,14,21,2,0,5,26,4),A(0,8,9,-5,0,15,22,2,0,6,28,5),A(0,8,10,-5,0,16,24,2,0,6,30,5),A(0,8,11,-5,0,17,26,2,0,6,32,5),A(0,9,11,-5,0,18,28,2,0,7,34,6),A(0,9,12,-6,0,19,29,2,0,7,36,6
2),A(0,10,13,-6,0,20,31,3,0,8,38,7),A(0,10,13,-6,0,21,33,3,0,8,40,7),A(0,10,14,-6,0,22,35,3,0,8,42,7),A(0,11,14,-7,0,23,36,3,0,9,44,8),A(0,11,15,-7,0,24,38,3,0,9,46,8)];var j=n(14318);const N={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},I=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,p=(0,i.A)(e,I);if(e.vars&&void 0===e.generateCssVars)throw new Error((0,o.A)(18));const h=_(n),f=(0,c.A)(e);let m=(0,a.A)(f,{mixins:(g=f.breakpoints,v=t,(0,r.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},v)),palette:h,shadows:E.slice(),typography:T(h,d),transitions:(0,j.Ay)(u),zIndex:(0,r.A)({},N)});var g,v;m=(0,a.A)(m,p);for(var y=arguments.length,b=new Array(y>1?y-1:0),x=1;x<y;x++)b[x-1]=arguments[x];return m=b.reduce((e,t)=>(0,a.A)(e,t),m),m.unstable_sxConfig=(0,r.A)({},s.A,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const P=D},64856:(e,t,n)=>{"use strict";var r=n(42242),i=n(30853),o=n(54483),a=n(38963),s=n(58116),l=n(64748),c=n(72369),u=n(83881),d=Math.min,p=[].push,h="split",f="length",m="lastIndex",g=4294967295,v=!u(function(){RegExp(g,"y")});n(1907)("split",2,function(e,t,n,u){var y;return y="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[f]||2!="ab"[h](/(?:ab)*/)[f]||4!="."[h](/(.?)(.?)/)[f]||"."[h](/()()/)[f]>1||""[h](/.?/)[f]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,a,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,h=void 0===t?g:t>>>0,v=new RegExp(e.source,u+"g");(o=c.call(v,i))&&!((a=v[m])>d&&(l.push(i.slice(d,o.index)),o[f]>1&&o.index<i[f]&&p.apply(l,o.slice(1)),s=o[0][f],d=a,l[f]>=h));)v[m]===o.index&&v[m]++;return d===i[f]?!s&&v.test("")||l.push(""):l.push(i.slice(d)),l[f]>h?l.slice(0,h):l}:"0"[h](void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(e,t){var r=u(y,e,this,t,y!==n);if(r.done)return r.value;var c=i(e),p=String(this),h=o(c,RegExp),f=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),b=new h(v?c:"^(?:"+c.source+")",m),x=void 0===t?g:t>>>0;if(0===x)return[];if(0===p.length)return null===l(b,p)?[p]:[];for(var S=0,w=0,_=[];w<p.length;){b.lastIndex=v?w:0;var k,M=l(b,v?p:p.slice(w));if(null===M||(k=d(s(b.lastIndex+(v?0:w)),p.length))===S)w=a(p,w,f);else{if(_.push(p.slice(S,w)),_.length===x)return _;for(var C=1;C<=M.length-1;C++)if(_.push(M[C]),_.length===x)return _;w=S=k}}return _.push(p.slice(S)),_}]})},65037:(e,t,n)=>{"use strict";var r=n(38358),i=n(68746);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=i(t);if(null!=n)return n;t=t.parentNode}return null}},65043:(e,t,n)=>{"use strict";e.exports=n(14202)},65417:(e,t,n)=>{"use strict";var r=n(83881);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},66119:(e,t,n)=>{"use strict";var r=n(67060),i=n(68027),o=n(56547);r(r.P+r.F*n(83881)(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=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},66254:(e,t,n)=>{var r=n(88972);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},66559:(e,t,n)=>{"use strict";var r=n(52367),i=n(78678),o=n(31320),a=o.List,s=o.Map,l=o.OrderedSet,c=o.Record,u=o.Repeat,d=l(),p={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},h=function(e,t){return e.getStyle()===t.getStyle()},f=function(e,t){return e.getEntity()===t.getEntity()},m=function(e){var t,n;function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){i(this.getCharacterList(),h,e,t)},s.findEntityRanges=function(e,t){i(this.getCharacterList(),f,e,t)},o}(c(p));e.exports=m}
2,66598:(e,t,n)=>{"use strict";n.d(t,{J:()=>g});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(30918),o=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,i.A)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,function(e,t,n){return f={name:t,styles:n,next:f},t})}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return f={name:i.name,styles:i.styles,next:f},i.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=h(e,t,n[i])+";";else for(var a in n){var s=n[a];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&o)throw new Error(p);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var f=h(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+f+";";break;default:r+=a+"{"+f+"}"}}else for(var m=0;m<s.length;m++)c(s[m])&&(r+=u(a)+":"+d(a,s[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=f,m=n(e);return f=l,h(e,t,m)}}var g=n;if(null==t)return g;var v=t[g];return void 0!==v?v:g}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";f=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=h(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=h(n,t,e[a]),r)i+=o[a]}m.lastIndex=0;for(var s,l="";null!==(s=m.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:f}}},66754:e=>{e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},66885:(e,t,n)=>{"use strict";var r,i;r=n(82160),i=n(68556),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToNodeStream=r.renderToNodeStream,t.renderToStaticNodeStream=r.renderToStaticNodeStream,t.renderToReadableStream=i.renderToReadableStream},66937:(e,t,n)=>{"use strict";var r,i,o,a,s;n.r(t),n.d(t,{ErrorCode:()=>o,connectToChild:()=>w,connectToParent:()=>_}),function(e){e.Call="call",e.Reply="reply",e.Syn="syn",e.SynAck="synAck",e.Ack="ack"}(r||(r={})),function(e){e.Fulfilled="fulfilled",e.Rejected="rejected"}(i||(i={})),function(e){e.ConnectionDestroyed="ConnectionDestroyed",e.ConnectionTimeout="ConnectionTimeout",e.NoIframeSrc="NoIframeSrc"}(o||(o={})),function(e){e.DataCloneError="DataCloneError"}(a||(a={})),function(e){e.Message="message"}(s||(s={}));const l=(e,t)=>
2{const n=[];let r=!1;return{destroy(i){r||(r=!0,t("".concat(e,": Destroying connection")),n.forEach(e=>{e(i)}))},onDestroy(e){r?e():n.push(e)}}},c=e=>function(){if(e){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.log("[Penpal]",...n)}},u={"http:":"80","https:":"443"},d=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,p=["file:","data:"],h=e=>{let{name:t,message:n,stack:r}=e;return{name:t,message:n,stack:r}},f=(e,t,n)=>{const{localName:o,local:l,remote:c,originForSending:u,originForReceiving:d}=e;let p=!1;const f=e=>{if(e.source!==c||e.data.penpal!==r.Call)return;if("*"!==d&&e.origin!==d)return void n("".concat(o," received message from origin ").concat(e.origin," which did not match expected origin ").concat(d));const s=e.data,{methodName:l,args:f,id:m}=s;n("".concat(o,": Received ").concat(l,"() call"));const g=e=>t=>{if(n("".concat(o,": Sending ").concat(l,"() reply")),p)return void n("".concat(o,": Unable to send ").concat(l,"() reply due to destroyed connection"));const s={penpal:r.Reply,id:m,resolution:e,returnValue:t};e===i.Rejected&&t instanceof Error&&(s.returnValue=h(t),s.returnValueIsError=!0);try{c.postMessage(s,u)}catch(d){if(d.name===a.DataCloneError){const e={penpal:r.Reply,id:m,resolution:i.Rejected,returnValue:h(d),returnValueIsError:!0};c.postMessage(e,u)}throw d}};new Promise(e=>e(t[l].apply(t,f))).then(g(i.Fulfilled),g(i.Rejected))};return l.addEventListener(s.Message,f),()=>{p=!0,l.removeEventListener(s.Message,f)}};let m=0;const g=()=>++m,v=e=>e?e.split("."):[],y=(e,t,n)=>{const r=v(t);return r.reduce((e,t,i)=>("undefined"===typeof e[t]&&(e[t]={}),i===r.length-1&&(e[t]=n),e[t]),e),e},b=(e,t)=>{const n={};return Object.keys(e).forEach(r=>{const i=e[r],o=((e,t)=>{const n=v(t||"");return n.push(e),(e=>e.join("."))(n)})(r,t);"object"===typeof i&&Object.assign(n,b(i,o)),"function"===typeof i&&(n[o]=i)}),n},x=(e,t,n,a,l)=>{const{localName:c,local:u,remote:d,originForSending:p,originForReceiving:h}=t;let f=!1;l("".concat(c,": Connecting call sender"));const m=e=>function(){for(var t=arguments.length,n=new Array(t),m=0;m<t;m++)n[m]=arguments[m];let v;l("".concat(c,": Sending ").concat(e,"() call"));try{d.closed&&(v=!0)}catch(y){v=!0}if(v&&a(),f){const t=new Error("Unable to send ".concat(e,"() call due ")+"to destroyed connection");throw t.code=o.ConnectionDestroyed,t}return new Promise((t,o)=>{const a=g(),f=n=>{if(n.source!==d||n.data.penpal!==r.Reply||n.data.id!==a)return;if("*"!==h&&n.origin!==h)return void l("".concat(c," received message from origin ").concat(n.origin," which did not match expected origin ").concat(h));const p=n.data;l("".concat(c,": Received ").concat(e,"() reply")),u.removeEventListener(s.Message,f);let m=p.returnValue;p.returnValueIsError&&(m=(e=>{const t=new Error;return Object.keys(e).forEach(n=>t[n]=e[n]),t})(m)),(p.resolution===i.Fulfilled?t:o)(m)};u.addEventListener(s.Message,f);const m={penpal:r.Call,id:a,methodName:e,args:n};d.postMessage(m,p)})},v=n.reduce((e,t)=>(e[t]=m(t),e),{});return Object.assign(e,(e=>{const t={};for(const n in e)y(t,n,e[n]);return t})(v)),()=>{f=!0}},S=(e,t)=>{let n;return void 0!==e&&(n=window.setTimeout(()=>{const n=new Error("Connection timed out after ".concat(e,"ms"));n.code=o.ConnectionTimeout,t(n)},e)),()=>{clearTimeout(n)}},w=e=>{let{iframe:t,methods:n={},childOrigin:i,timeout:a,debug:h=!1}=e;const m=c(h),g=l("Parent",m),{onDestroy:v,destroy:y}=g;i||((e=>{if(!e.src&&!e.srcdoc){const e=new Error("Iframe must have src or srcdoc property defined.");throw e.code=o.NoIframeSrc,e}})(t),i=(e=>{if(e&&p.find(t=>e.startsWith(t)))return"null";const t=document.location,n=d.exec(e);let r,i,o;n?(r=n[1]?n[1]:t.protocol,i=n[2],o=n[4]):(r=t.protocol,i=t.hostname,o=t.port);const a=o&&o!==u[r]?":".concat(o):"";return"".concat(r,"//").concat(i).concat(a)})(t.src));const w="null"===i?"*":i,_=b(n),k=((e,t,n,i)=>o=>{if(!o.source)return;if("*"!==n&&o.origin!==n)return void e("Parent: Handshake - Received SYN message from origin ".concat(o.origin," which did not match expected origin ").concat(n));e("Parent: Handshake - Received SYN, responding with SYN-ACK");const a={penpal:r.SynAck,methodNames:Object.keys(t)};
2o.source.postMessage(a,i)})(m,_,i,w),M=((e,t,n,r,i)=>{const{destroy:o,onDestroy:a}=r;let s,l;const c={};return r=>{if("*"!==t&&r.origin!==t)return void i("Parent: Handshake - Received ACK message from origin ".concat(r.origin," which did not match expected origin ").concat(t));i("Parent: Handshake - Received ACK");const u={localName:"Parent",local:window,remote:r.source,originForSending:n,originForReceiving:t};s&&s(),s=f(u,e,i),a(s),l&&l.forEach(e=>{delete c[e]}),l=r.data.methodNames;const d=x(c,u,l,o,i);return a(d),c}})(_,i,w,g,m),C=new Promise((e,n)=>{const i=S(a,y),o=n=>{if(n.source===t.contentWindow&&n.data)if(n.data.penpal!==r.Syn){if(n.data.penpal===r.Ack){const t=M(n);return void(t&&(i(),e(t)))}}else k(n)};window.addEventListener(s.Message,o),m("Parent: Awaiting handshake"),((e,t)=>{const{destroy:n,onDestroy:r}=t,i=setInterval(()=>{e.isConnected||(clearInterval(i),n())},6e4);r(()=>{clearInterval(i)})})(t,g),v(e=>{window.removeEventListener(s.Message,o),e&&n(e)})});return{promise:C,destroy(){y()}}},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{parentOrigin:t="*",methods:n={},timeout:i,debug:o=!1}=e,a=c(o),u=l("Child",a),{destroy:d,onDestroy:p}=u,h=b(n),m=((e,t,n,i)=>{const{destroy:o,onDestroy:a}=n;return n=>{if(!(e instanceof RegExp?e.test(n.origin):"*"===e||e===n.origin))return void i("Child: Handshake - Received SYN-ACK from origin ".concat(n.origin," which did not match expected origin ").concat(e));i("Child: Handshake - Received SYN-ACK, responding with ACK");const s="null"===n.origin?"*":n.origin,l={penpal:r.Ack,methodNames:Object.keys(t)};window.parent.postMessage(l,s);const c={localName:"Child",local:window,remote:window.parent,originForSending:s,originForReceiving:n.origin},u=f(c,t,i);a(u);const d={},p=x(d,c,n.data.methodNames,o,i);return a(p),d}})(t,h,u,a);return{promise:new Promise((e,n)=>{const o=S(i,d),l=t=>{if((()=>{try{clearTimeout()}catch(e){return!1}return!0})()&&t.source===parent&&t.data&&t.data.penpal===r.SynAck){const n=m(t);n&&(window.removeEventListener(s.Message,l),o(),e(n))}};window.addEventListener(s.Message,l),(()=>{a("Child: Handshake - Sending SYN");const e={penpal:r.Syn},n=t instanceof RegExp?"*":t;window.parent.postMessage(e,n)})(),p(e=>{window.removeEventListener(s.Message,l),e&&n(e)})}),destroy(){d()}}}},67011:(e,t,n)=>{var r=n(58097),i=n(63759)("iterator"),o=n(91271);e.exports=n(89173).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},67060:(e,t,n)=>{var r=n(76101),i=n(89173),o=n(12730),a=n(88972),s=n(57621),l="prototype",c=function(e,t,n){var u,d,p,h,f=e&c.F,m=e&c.G,g=e&c.S,v=e&c.P,y=e&c.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[l],x=m?i:i[t]||(i[t]={}),S=x[l]||(x[l]={});for(u in m&&(n=t),n)p=((d=!f&&b&&void 0!==b[u])?b:n)[u],h=y&&d?s(p,r):v&&"function"==typeof p?s(Function.call,p):p,b&&a(b,u,p,e&c.U),x[u]!=p&&o(x,u,h),v&&S[u]!=p&&(S[u]=p)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},67205:(e,t,n)=>{"use strict";e.exports=n(67302)},67266:(e,t,n)=>{"use strict";var r=n(24994);t.X4=h,t.e$=f,t.eM=function(e,t){const n=p(e),r=p(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var i=r(n(10457)),o=r(n(6531));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,o.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;
2return i-o*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function p(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?f(e,t):m(e,t)}},67302:(e,t)=>{"use strict";t.ConcurrentRoot=1,t.ContinuousEventPriority=4,t.DefaultEventPriority=16,t.DiscreteEventPriority=1},67405:(e,t,n)=>{var r=n(67060),i=n(66754),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},67573:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},67598:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(17868);function i(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},67904:e=>{"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},68027:(e,t,n)=>{var r=n(49649);e.exports=function(e){return Object(r(e))}},68229:(e,t,n)=>{var r=n(67060),i=n(30853),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(t){return!1}}})},68311:(e,t,n)=>{var r=n(67060),i=n(31129)(),o=n(76101).process,a="process"==n(3444)(o);r(r.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},68349:(e,t,n)=>{"use strict";var r=n(37691),i=n(80093);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=i(e),o=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-o.clientWidth,s=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},68556:(e,t,n)=>{"use strict";var r=n(65043);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=null,a=0;function s(e,t){if(0!==t.length)if(512<t.length)0<a&&(e.enqueue(new Uint8Array(o.buffer,0,a)),o=new Uint8Array(512),a=0),e.enqueue(t);else{var n=o.length-a;n<t.length&&(0===n?e.enqueue(o):(o.set(t.subarray(0,n),a),e.enqueue(o),t=t.subarray(n)),o=new Uint8Array(512),a=0),o.set(t,a),a+=t.length}}function l(e,t){return s(e,t),!0}function c(e){o&&0<a&&(e.enqueue(new Uint8Array(o.buffer,0,a)),o=null,a=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function p(e){return u.encode(e)}function h(e,t){"function"===typeof e.error?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function y(e){return!!f.call(v,e)||!f.call(g,e)&&(m.test(e)?v[e]=!0:(g[e]=!0,!1))}function b(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){x[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 11,898 bytes, line 2
2h(function(e){var t=e[0];x[t]=new b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){x[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){x[e]=new b(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){x[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){x[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){x[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){x[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){x[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(S,w);x[t]=new b(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(S,w);x[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(S,w);x[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){x[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),x.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){x[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});var _={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},k=["Webkit","ms","Moz","O"];Object.keys(_).forEach(function(e){k.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_[t]=_[e]})});var M=/["'&<>]/;function C(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=M.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var T=/([A-Z])/g,A=/^ms-/,E=Array.isArray,j=p("<script>"),N=p("<\/script>"),I=p('<script src="'),D=p('<script type="module" src="'),P=p('" async=""><\/script>'),L=/(<\/|<)(s)(cript)/gi;function R(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function O(e,t){return{insertionMode:e,selectedValue:t}}var z=p("\x3c!-- --\x3e");function F(e,t,n,r){return""===t?r:(r&&e.push(z),e.push(d(C(t))),!0)}var B=new Map,U=p(' style="'),H=p(":"),W=p(";");function V(e,t,n){if("object"!==typeof n)throw Error(i(62));for(var r in t=!0,n)if(f.call(n,r)){var o=n[r];if(null!=o&&"boolean"!==typeof o&&""!==o){if(0===r.indexOf("--")){var a=d(C(r));o=d(C((""+o).trim()))}else{a=r;var s=B.get(a);void 0!==s||(s=p(C(a.replace(T,"-$1").toLowerCase().replace(A,"-ms-"))),B.set(a,s)),a=s,o="number"===typeof o?0===o||f.call(_,r)?d(""+o):d(o+"px"):d(C((""+o).trim()))}t?(t=!1,e.push(U,a,H,o)):e.push(W,a,H,o)}}t||e.push(K)}var G=p(" "),q=p('="'),K=p('"'),Y=p('=""');function X(e,t,n,r){switch(n){case"style":return void V(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=x.hasOwnProperty(n)?x[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push(G,n,Y);break;case 4:!0===r?e.push(G,n,Y):!1!==r&&e.push(G,n,q,d(C(r)),K);break;case 5:isNaN(r)||e.push(G,n,q,d(C(r)),K);break;case 6:!isNaN(r)&&1<=r&&e.push(G,n,q,d(C(r)),K);break;default:t.sanitizeURL&&(r=""+r),e.push(G,n,q,d(C(r)),K)}}else if(y(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(G,d(n),q,d(C(r)),K)}}var Z=p(">"),Q=p("/>");function J(e,t,n){if(null!=t){if(null!=n)throw Error(i(60));if("object"!==typeof t||!("__html"in t))throw Error(i(61));null!==(t=t.__html)&&void 0!==t&&e.push(d(""+t))}}var $=p(' selected=""');function ee(e,t,n,r){e.push(ie(n));var i,o=n=null;for(i in t)if(f.call(t,i)){var a=t[i];if(null!=a)switch(i){case"children":n=a;break;case"dangerouslySetInnerHTML":o=a;break;default:X(e,r,i,a)}}return e.push(Z),J(e,o,n),"string"===typeof n?(e.push(d(C(n))),null):n}var te=p("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function ie(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(i(65,e));t=p("<"+e),re.set(e,t)}return t}var oe=p("<!DOCTYPE html>");function ae(e,t,n,o,a){switch(t){case"select":e.push(ie("select"));var s=null,l=null;for(h in n)if(f.call(n,h)){var c=n[h];if(null!=c)switch(h){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"defaultValue":case"value":break;default:X(e,o,h,c)}}return e.push(Z),J(e,l,s),s;case"option":l=a.selectedValue,e.push(ie("option"));var u=c=null,p=null,h=null;for(s in n)if(f.call(n,s)){var m=n[s];if(null!=m)switch(s){case"children":c=m;break;case"selected":p=m;break;case"dangerouslySetInnerHTML":h=m;break;case"value":u=m;default:X(e,o,s,m)}}if(null!=l)if(n=null!==u?""+u:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(c),E(l)){for(o=0;o<l.length;o++)if(""+l[o]===n){e.push($);break}}else""+l===n&&e.push($);else p&&e.push($);return e.push(Z),J(e,h,c),c;case"textarea":for(c in e.push(ie("textarea")),h=l=s=null,n)if(f.call(n,c)&&null!=(u=n[c]))switch(c){case"children":h=u;break;case"value":s=u;break;case"defaultValue":l=u;break;case"dangerouslySetInnerHTML":throw Error(i(91));default:X(e,o,c,u)}if(null===s&&null!==l&&(s=l),e.push(Z),null!=h){if(null!=s)throw Error(i(92));if(E(h)&&1<h.length)throw Error(i(93));s=""+h}return"string"===typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(d(C(""+s))),null;case"input":for(l in e.push(ie("input")),u=h=c=s=null,n)if(f.call(n,l)&&null!=(p=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,"input"));case"defaultChecked":u=p;break;case"defaultValue":c=p;break;case"checked":h=p;break;case"value":s=p;break;default:X(e,o,l,p)}return null!==h?X(e,o,"checked",h):null!==u&&X(e,o,"checked",u),null!==s?X(e,o,"value",s):null!==c&&X(e,o,"value",c),e.push(Q),null;case"menuitem":for(var g in e.push(ie("menuitem")),n)if(f.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(i(400));default:X(e,o,g,s)}return e.push(Z),null;case"title":for(m in e.push(ie("title")),s=null,n)if(f.call(n,m)&&null!=(l=n[m]))switch(m){case"children":s=l;break;case"dangerouslySetInnerHTML":throw Error(i(434));default:X(e,o,m,l)}return e.push(Z),s;case"listing":case"pre":for(u in e.push(ie(t)),l=s=null,n)if(f.call(n,u)&&null!=(c=n[u]))switch(u){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;default:X(e,o,u,c)}if(e.push(Z),null!=l){if(null!=s)throw Error(i(60));if("object"!==typeof l||!("__html"in l))throw Error(i(61));null!==(n=l.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"===typeof s&&"\n"===s[0]&&e.push(te),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(ie(t)),n)if(f.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,t));default:X(e,o,v,s)}return e.push(Q),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,o);case"html":return 0===a.insertionMode&&e.push(oe),ee(e,n,t,o);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return ee(e,n,t,o);for(p in e.push(ie(t)),l=s=null,n)if(f.call(n,p)&&null!=(c=n[p]))switch(p){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"style":V(e,o,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(p)&&"function"!==typeof c&&"symbol"!==typeof c&&e.push(G,d(p),q,d(C(c)),K)}return e.push(Z),J(e,l,s),s}}var se=p("</"),le=p(">"),ce=p('<template id="'),ue=p('"></template>'),de=p("\x3c!--$--\x3e"),pe=p('\x3c!--$?--\x3e<template id="'),he=p('"></template>'),fe=p("\x3c!--$!--\x3e"),me=p("\x3c!--/$--\x3e"),ge=p("<template"),ve=p('"'),ye=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var be=p("></template>");function xe(e,t,n){if(s(e,pe),null===n)throw Error(i(395));return s(e,n),l(e,he)}var Se=p('<div hidden id="'),we=p('">'),_e=p("</div>"),ke=p('<svg aria-hidden="true" style="display:none" id="'),Me=p('">'),Ce=p("</svg>"),Te=p('<math aria-hidden="true" style="display:none" id="'),Ae=p('">'),Ee=p("</math>"),je=p('<table hidden id="'),Ne=p('">'),Ie=p("</table>"),De=p('<table hidden><tbody id="'),Pe=p('">'),Le=p("</tbody></table>"),Re=p('<table hidden><tr id="'),Oe=p('">'),ze=p("</tr></table>"),Fe=p('<table hidden><colgroup id="'),Be=p('">'),Ue=p("</colgroup></table>");var He=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),We=p('$RS("'),Ve=p('","'),Ge=p('")<\/script>'),qe=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ke=p('$RC("'),Ye=p('","'),Xe=p('")<\/script>'),Ze=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Qe=p('$RX("'),Je=p('"'),$e=p(")<\/script>
2"),et=p(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var rt=Object.assign,it=Symbol.for("react.element"),ot=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),lt=Symbol.for("react.profiler"),ct=Symbol.for("react.provider"),ut=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),ht=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),gt=Symbol.for("react.scope"),vt=Symbol.for("react.debug_trace_mode"),yt=Symbol.for("react.legacy_hidden"),bt=Symbol.for("react.default_value"),xt=Symbol.iterator;function St(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case at:return"Fragment";case ot:return"Portal";case lt:return"Profiler";case st:return"StrictMode";case pt:return"Suspense";case ht:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ut:return(e.displayName||"Context")+".Consumer";case ct:return(e._context.displayName||"Context")+".Provider";case dt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ft:return null!==(t=e.displayName||null)?t:St(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return St(e(t))}catch(n){}}return null}var wt={};function _t(e,t){if(!(e=e.contextTypes))return wt;var n,r={};for(n in e)r[n]=t[n];return r}var kt=null;function Mt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(i(401))}else{if(null===n)throw Error(i(401));Mt(e,n)}t.context._currentValue=t.value}}function Ct(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ct(e)}function Tt(e){var t=e.parent;null!==t&&Tt(t),e.context._currentValue=e.value}function At(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?Mt(e,t):At(e,t)}function Et(e,t){var n=t.parent;if(null===n)throw Error(i(402));e.depth===n.depth?Mt(e,n):Et(e,n),t.context._currentValue=t.value}function jt(e){var t=kt;t!==e&&(null===t?Tt(e):null===e?Ct(t):t.depth===e.depth?Mt(t,e):t.depth>e.depth?At(t,e):Et(t,e),kt=e)}var Nt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function It(e,t,n,r){var i=void 0!==e.state?e.state:null;e.updater=Nt,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"===typeof a&&null!==a?a._currentValue:r,"function"===typeof(a=t.getDerivedStateFromProps)&&(i=null===(a=a(n,i))||void 0===a?i:rt({},i,a),e.state=i),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Nt.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"===typeof s?s.call(e,o,n,r):s)&&(i?(i=!1,o=rt({},o,s)):rt(o,s))}e.state=o}else o.queue=null}var Dt={id:1,overflow:""};function Pt(e,t,n){var r=e.id;e=e.overflow;var i=32-Lt(r)-1;r&=~(1<<i),n+=1;var o=32-Lt(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-Lt(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var Lt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Rt(e)/Ot|0)|0},Rt=Math.log,Ot=Math.LN2;var zt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Ft=null,Bt=null,Ut=null,Ht=null,Wt=!1,Vt=!1,Gt=0,qt=null,Kt=0;function Yt(){if(null===Ft)throw Error(i(321));return Ft}function Xt(){if(0<Kt)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Zt(){return null===Ht?null===Ut?(Wt=!1,Ut=Ht=Xt()):(Wt=!0,Ht=Ut):null===Ht.next?(Wt=!1,Ht=Ht.
vendor: 13,077 bytes, line 2
2next=Xt()):(Wt=!0,Ht=Ht.next),Ht}function Qt(){Bt=Ft=null,Vt=!1,Ut=null,Kt=0,Ht=qt=null}function Jt(e,t){return"function"===typeof t?t(e):t}function $t(e,t,n){if(Ft=Yt(),Ht=Zt(),Wt){var r=Ht.queue;if(t=r.dispatch,null!==qt&&void 0!==(n=qt.get(r))){qt.delete(r),r=Ht.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return Ht.memoizedState=r,[r,t]}return[Ht.memoizedState,t]}return e=e===Jt?"function"===typeof t?t():t:void 0!==n?n(t):t,Ht.memoizedState=e,e=(e=Ht.queue={last:null,dispatch:null}).dispatch=tn.bind(null,Ft,e),[Ht.memoizedState,e]}function en(e,t){if(Ft=Yt(),t=void 0===t?null:t,null!==(Ht=Zt())){var n=Ht.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!zt(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),Ht.memoizedState=[e,t],e}function tn(e,t,n){if(25<=Kt)throw Error(i(301));if(e===Ft)if(Vt=!0,e={action:n,next:null},null===qt&&(qt=new Map),void 0===(n=qt.get(t)))qt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(i(394))}function rn(){}var on={readContext:function(e){return e._currentValue},useContext:function(e){return Yt(),e._currentValue},useMemo:en,useReducer:$t,useRef:function(e){Ft=Yt();var t=(Ht=Zt()).memoizedState;return null===t?(e={current:e},Ht.memoizedState=e):t},useState:function(e){return $t(Jt,e)},useInsertionEffect:rn,useLayoutEffect:function(){},useCallback:function(e,t){return en(function(){return e},t)},useImperativeHandle:rn,useEffect:rn,useDebugValue:rn,useDeferredValue:function(e){return Yt(),e},useTransition:function(){return Yt(),[!1,nn]},useId:function(){var e=Bt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Lt(e)-1)).toString(32)+t;var n=an;if(null===n)throw Error(i(404));return t=Gt++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Yt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(i(407));return n()}},an=null,sn=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function cn(){}function un(e,t,n,r,i,o,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Mn(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function dn(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function pn(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function hn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function fn(e,t,n,r,i){for(Ft={},Bt=t,Gt=0,e=n(r,i);Vt;)Vt=!1,Gt=0,Kt+=1,Ht=null,e=n(r,i);return Qt(),e}function mn(e,t,n,r){var o=n.render(),a=r.childContextTypes;if(null!==a&&void 0!==a){var s=t.legacyContext;if("function"!==typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(i(108,St(r)||"Unknown",l));r=rt({},s,n)}t.legacyContext=r,yn(e,t,o),t.legacyContext=s}else yn(e,t,o)}function gn(e,t){if(e&&e.defaultProps){for(var n in t=rt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vn(e,t,n,r,o){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){o=_t(n,t.legacyContext);var a=n.contextType;It(a=new n(r,"object"===typeof a&&null!==a?a._currentValue:o),n,r,o),mn(e,t,a,n)}else{o=fn(e,t,n,r,a=_t(n,t.legacyContext));var s=0!==Gt;if("object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof)It(o,n,r,a),mn(e,t,o,n);else if(s){r=t.treeContext,t.treeContext=Pt(r,1,0);try{yn(e,t,o)}finally{t.treeContext=r}}else yn(e,t,o)}else{if("string"!==typeof n){switch(n){case yt:case vt:case st:case lt:case at:case ht:return void yn(e,t,r.children);case gt:throw Error(i(343));case pt:e:{n=t.blockedBoundary,o=t.blockedSegment,a=r.fallback,r=r.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=dn(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var u=dn(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(xn(e,t,r),u.lastPushedText&&u.textEmbedded&&u.chunks.push(z),u.status=1,_n(l,u),0===l.pendingTasks)break e}catch(p){u.status=4,l.forceClientRender=!0,l.errorDigest=pn(e,p)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=un(e,a,n,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case dt:if(r=fn(e,t,n.render,r,o),0!==Gt){n=t.treeContext,t.treeContext=Pt(n,1,0);try{yn(e,t,r)}finally{t.treeContext=n}}else yn(e,t,r);return;case ft:return void vn(e,t,n=n.type,r=gn(n,r),o);case ct:if(o=r.children,n=n._context,r=r.value,a=n._currentValue,n._currentValue=r,kt=r={parent:s=kt,depth:null===s?0:s.depth+1,context:n,parentValue:a,value:r},t.context=r,yn(e,t,o),null===(e=kt))throw Error(i(403));return r=e.parentValue,e.context._currentValue=r===bt?e.context._defaultValue:r,e=kt=e.parent,void(t.context=e);case ut:return void yn(e,t,r=(r=r.children)(n._currentValue));case mt:return void vn(e,t,n=(o=n._init)(n._payload),r=gn(n,r),void 0)}throw Error(i(130,null==n?n:typeof n,""))}switch(a=ae((o=t.blockedSegment).chunks,n,r,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=function(e,t,n){switch(t){case"select":return O(1,null!=n.value?n.value:n.defaultValue);case"svg":return O(2,null);case"math":return O(3,null);case"foreignObject":return O(1,null);case"table":return O(4,null);case"thead":case"tbody":case"tfoot":return O(5,null);case"colgroup":return O(7,null);case"tr":return O(6,null)}return 4<=e.insertionMode||0===e.insertionMode?O(1,null):e}(s,n,r),xn(e,t,a),o.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(se,d(n),le)}o.lastPushedText=!1}}function yn(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case it:return void vn(e,t,n.type,n.props,n.ref);case ot:throw Error(i(257));case mt:var r=n._init;return void yn(e,t,n=r(n._payload))}if(E(n))return void bn(e,t,n);if(null===n||"object"!==typeof n?r=null:r="function"===typeof(r=xt&&n[xt]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);bn(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(r=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"===typeof n&&((r=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function bn(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=Pt(o,r,i);try{xn(e,t,n[i])}finally{t.treeContext=o}}}function xn(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return yn(e,t,n)}catch(l){if(Qt(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,jt(o),l;n=l;var a=t.blockedSegment,s=dn(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=un(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,jt(o)}}function Sn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,kn(this,t,e)}function wn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(i(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return wn(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function _n(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&_n(e,n)}else e.completedSegments.push(t)}function kn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=cn,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&_n(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Sn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(_n(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Mn(e){if(2!==e.status){var t=kt,n=sn.current;sn.current=on;var r=an;an=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){jt(a.context);try{yn(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(z),a.abortSet.delete(a),l.status=1,kn(s,a.blockedBoundary,l)}catch(h){if(Qt(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var c=a.ping;h.then(c,c)}else{a.abortSet.delete(a),l.status=4;var u=a.blockedBoundary,d=h,p=pn(s,d);if(null===u?hn(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&Nn(e,e.destination)}catch(h){pn(e,h),hn(e,h)}finally{an=r,sn.current=n,n===on&&jt(t)}}}function Cn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,ce),s(t,e.placeholderPrefix),s(t,e=d(r.toString(16))),l(t,ue);case 1:n.status=2;var o=!0;r=n.chunks;var a=0;n=n.children;for(var c=0;c<n.length;c++){for(o=n[c];a<o.index;a++)s(t,r[a]);o=Tn(e,t,o)}for(;a<r.length-1;a++)s(t,r[a]);return a<r.length&&(o=l(t,r[a])),o;default:throw Error(i(390))}}function Tn(e,t,n){var r=n.boundary;if(null===r)return Cn(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,l(t,fe),s(t,ge),r&&(s(t,ye),s(t,d(C(r))),s(t,ve)),l(t,be),Cn(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,a=o.nextSuspenseID++;o=p(o.boundaryPrefix+a.toString(16)),r=r.id=o,xe(t,e.responseState,r),Cn(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),xe(t,e.responseState,r.id),Cn(e,t,n);else{if(l(t,de),1!==(n=r.completedSegments).length)throw Error(i(391));Tn(e,t,n[0])}return l(t,me)}function An(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return s(e,Se),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,we);case 2:return s(e,ke),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Me);case 3:return s(e,Te),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ae);case 4:return s(e,je),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Ne);case 5:return s(e,De),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Pe);case 6:return s(e,Re),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Oe);case 7:return s(e,Fe),s(e,t.segmentPrefix),s(e,d(r.toString(16))),l(e,Be);default:throw Error(i(397))}}(t,e.responseState,n.formatContext,n.id),Tn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,_e);case 2:return l(e,Ce);case 3:return l(e,Ee);case 4:return l(e,Ie);case 5:return l(e,Le);case 6:return l(e,ze);case 7:return l(e,Ue);default:throw Error(i(397))}}(t,n.formatContext)}function En(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)jn(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,Ke):(e.sentCompleteBoundaryFunction=!0,s(t,qe)),null===r)throw Error(i(395));return n=d(n.toString(16)),s(t,r),s(t,Ye),s(t,e.segmentPrefix),s(t,n),l(t,Xe)}function jn(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(i(392));return An(e,t,r)}return An(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,We):(e.sentCompleteSegmentFunction=!0,s(t,He)),s(t,e.segmentPrefix),s(t,o=d(o.toString(16))),s(t,Ve),s(t,e.placeholderPrefix),s(t,o),l(t,Ge)}function Nn(e,t){o=new Uint8Array(512),a=0;try{var n=e.completedRootSegment;
2if(null!==n&&0===e.pendingRootTasks){Tn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(t,r[n]);n<r.length&&l(t,r[n])}var u,p=e.clientRenderedBoundaries;for(u=0;u<p.length;u++){var h=p[u];r=t;var f=e.responseState,m=h.id,g=h.errorDigest,v=h.errorMessage,y=h.errorComponentStack;if(s(r,f.startInlineScript),f.sentClientRenderFunction?s(r,Qe):(f.sentClientRenderFunction=!0,s(r,Ze)),null===m)throw Error(i(395));if(s(r,m),s(r,Je),(g||v||y)&&(s(r,et),s(r,d(nt(g||"")))),(v||y)&&(s(r,et),s(r,d(nt(v||"")))),y&&(s(r,et),s(r,d(nt(y)))),!l(r,$e))return e.destination=null,u++,void p.splice(0,u)}p.splice(0,u);var b=e.completedBoundaries;for(u=0;u<b.length;u++)if(!En(e,t,b[u]))return e.destination=null,u++,void b.splice(0,u);b.splice(0,u),c(t),o=new Uint8Array(512),a=0;var x=e.partialBoundaries;for(u=0;u<x.length;u++){var S=x[u];e:{p=e,h=t;var w=S.completedSegments;for(f=0;f<w.length;f++)if(!jn(p,h,S,w[f])){f++,w.splice(0,f);var _=!1;break e}w.splice(0,f),_=!0}if(!_)return e.destination=null,u++,void x.splice(0,u)}x.splice(0,u);var k=e.completedBoundaries;for(u=0;u<k.length;u++)if(!En(e,t,k[u]))return e.destination=null,u++,void k.splice(0,u);k.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function In(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return wn(n,e,t)}),n.clear(),null!==e.destination&&Nn(e,e.destination)}catch(r){pn(e,r),hn(e,r)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,o,a=new Promise(function(e,t){o=e,i=t}),s=function(e,t,n,r,i,o,a,s,l){var c=[],u=new Set;return(n=dn(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?ln:i,onAllReady:void 0===o?cn:o,onShellReady:void 0===a?cn:a,onShellError:void 0===s?cn:s,onFatalError:void 0===l?cn:l},0,null,n,!1,!1)).parentFlushed=!0,e=un(t,e,null,n,u,wt,null,Dt),c.push(e),t}(e,function(e,t,n,r,i){e=void 0===e?"":e,t=void 0===t?j:p('<script nonce="'+C(t)+'">');var o=[];if(void 0!==n&&o.push(t,d((""+n).replace(L,R)),N),void 0!==r)for(n=0;n<r.length;n++)o.push(I,d(C(r[n])),P);if(void 0!==i)for(r=0;r<i.length;r++)o.push(D,d(C(i[r])),P);return{bootstrapChunks:o,startInlineScript:t,placeholderPrefix:p(e+"P:"),segmentPrefix:p(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return O("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===s.status)s.status=2,h(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{Nn(s,e)}catch(t){pn(s,t),hn(s,t)}}},cancel:function(){In(s)}},{highWaterMark:0});e.allReady=a,n(e)},function(e){a.catch(function(){}),r(e)},i);if(t&&t.signal){var l=t.signal,c=function(){In(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}Mn(s)})},t.version="18.3.1"},68746:(e,t,n)=>{"use strict";var r=n(37385);e.exports=function e(t){if(r(t)){var n=t,i=n.getAttribute("data-offset-key");if(i)return i;for(var o=0;o<n.childNodes.length;o++){var a=e(n.childNodes[o]);if(a)return a}}return null}},68953:(e,t,n)=>{var r=n(67060);r(r.S,"Number",{isInteger:n(64353)})},68990:(e,t,n)=>{"use strict";var r=n(83881),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},69358:(e,t,n)=>{"use strict";var r=n(19523),i=n(93586),o=n(4414),a=n(31320),s=n(65043),l=n(67904),c=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,c=e.customStyleMap,u=e.decorator,d=e.direction,p=e.forceSelection,h=e.hasSelection,f=e.selection,m=e.tree,g
2=t.getKey(),v=t.getText(),y=m.size-1,b=this.props.children||m.map(function(e,l){var m=e.get("decoratorKey"),b=e.get("leaves"),x=b.size-1,S=b.map(function(e,n){var r=o.encode(g,l,n),u=e.get("start"),d=e.get("end");return s.createElement(i,{key:r,offsetKey:r,block:t,start:u,selection:h?f:null,forceSelection:p,text:v.slice(u,d),styleSet:t.getInlineStyleAt(u),customStyleMap:c,customStyleFn:a,isLast:m===y&&n===x})}).toArray();return m&&u?s.createElement(r,{block:t,children:S,contentState:n,decorator:u,decoratorKey:m,direction:d,leafSet:e,text:v,key:l}):S}).toArray();return s.createElement("div",{"data-offset-key":o.encode(g,0,0),className:l({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},b)},a}(s.Component));e.exports=c},69369:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,E:()=>v,T:()=>p,_:()=>u,c:()=>m,h:()=>h,w:()=>d});var r=n(65043),i=n(93803),o=n(81722),a=n(66598),s=n(69436),l=r.createContext("undefined"!==typeof HTMLElement?(0,i.A)({key:"css"}):null),c=l.Provider,u=function(){return(0,r.useContext)(l)},d=function(e){return(0,r.forwardRef)(function(t,n){var i=(0,r.useContext)(l);return e(t,i,n)})},p=r.createContext({});var h={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var n={};for(var r in t)h.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,o.SF)(t,n,r),(0,s.s)(function(){return(0,o.sk)(t,n,r)}),null},v=d(function(e,t,n){var i=e.css;"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var s=e[f],l=[i],c="";"string"===typeof e.className?c=(0,o.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var u=(0,a.J)(l,void 0,r.useContext(p));c+=t.key+"-"+u.name;var d={};for(var m in e)h.call(e,m)&&"css"!==m&&m!==f&&(d[m]=e[m]);return d.className=c,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(g,{cache:t,serialized:u,isStringTag:"string"===typeof s}),r.createElement(s,d))})},69436:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var i=n(65043),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},69526:(e,t,n)=>{var r=n(67060),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},69856:(e,t,n)=>{var r=n(67060),i=n(37652),o=n(30853),a=(n(76101).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(83881)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=i(e),l=o(n);return a?a(r,t,l):s.call(r,t,l)}})},69910:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},70078:(e,t,n)=>{"use strict";var r=n(25763),i=n(4414),o=n(56283),a=n(36143),s=n(22934).notEmptyKey,l=n(65037),c=n(62002),u=n(88691),d=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,p=n.isCollapsed,h=(null===a||void 0===a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null===a||void 0===a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!h){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var f=a.parentNode;if(null==f)return;a.nodeValue=f.textContent;for(var m=f.firstChild;null!=m;m=m.nextSibling)m!==a&&f.removeChild(m)}var g=a.textContent,v=e._latestEditorState,y=u(l(a)),b=i.decode(y),x=b.blockKey,S=b.decoratorKey,w=b.leafKey,_=v.getBlockTree(x).getIn([S,"leaves",w]),k=_.start,M=_.end,C=v.getCurrentContent(),T=C.getBlockForKey(x),A=T.getText().slice(k,M);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==A){var E,j,N,I,D=v.getSelection(),P=D.merge({anchorOffset:k,focusOffset:M,isBackward:!1}),L=T.getEntityAt(k),R=s(L)?C.getEntity(L):null,O="MUTABLE"===(null!=R?R.getMutability():null),z=O?"spellcheck-change":"apply-entity",F=r.replaceText(C,P,g,T.getInlineStyleAt(k),O?T.getEntityAt(k):null);if(d)E=n.anchorOffset,j=n.focusOffset,I=(N=k+Math.min(E,j))+Math.abs(E-j),E=N,j=I;else{var B=g.length-A.length;N=D.getStartOffset(),I=D.getEndOffset(),E=p?I+B:N,j=I+B}
2var U=F.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:D.merge({anchorOffset:E,focusOffset:j})});e.update(o.push(v,U,z))}else{var H=t.nativeEvent.inputType;if(H){var W=function(e,t){return"deleteContentBackward"===e?c(t):t}(H,v);if(W!==v)return e.restoreEditorDOM(),void e.update(W)}}}}},70306:e=>{"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},70579:(e,t,n)=>{"use strict";e.exports=n(51153)},70636:(e,t,n)=>{"use strict";var r=n(77709);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},70869:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(65043);var r=n(83290),i=n(70579);function o(e){const{styles:t,defaultTheme:n={}}=e,o="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:o})}},70899:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},71043:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension")},71337:(e,t,n)=>{"use strict";var r=n(67060),i=n(40123),o=n(23237),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},71362:(e,t,n)=>{n(58452)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},71375:(e,t,n)=>{"use strict";var r=n(24939),i=n(78678),o=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return function(e,t,n){var s=[],l=t.map(function(e){return e.has(n)}).toList();return i(l,o,a,function(t,i){var o=e.getText();s.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,i)),style:n})}),s}(e,t,n)});return Array.prototype.concat.apply(s,n.toJS())}},71682:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(1);r(r.P+r.F*!n(65417)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},71709:(e,t,n)=>{var r=n(2008),i=n(67060),o=n(30853);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},71967:(e,t,n)=>{"use strict";var r=n(37385);e.exports=function(e){return!(!e||!e.ownerDocument)&&(r(e)&&"IMG"===e.nodeName)}},72063:(e,t,n)=>{"use strict";var r=n(68027),i=n(28704),o=n(58116);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)t[s++]=e;return t}},72369:(e,t,n)=>{"use strict";var r=n(40671),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(a=function(e){var t,n,a,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),l&&(t=d[s]),a=i.call(d,e),l&&a&&(d[s]=d.global?a.index+a[0].length:t),c&&a&&a.length>1&&o.call(a[0],n,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)}),a}),e.exports=a},72372:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(79386);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o=i[t];return o?"".concat(n,"-").concat(o):"".concat(r.A.generate(e),"-").concat(t)}},72506:(e,t,n)=>{var r=n(30853),i=n(49349),o=n(67573),a=n(42993)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(81101)("iframe"),r=o.length;for(t.style.display="none",n(31371).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[l][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},72630:(e,t,n)=>{var r=n(40964),i=n(25586),o=n(63435)(!1),a=n(42993)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;
vendor: 4,565 bytes, line 2
2)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},73108:e=>{e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},73229:(e,t,n)=>{"use strict";var r=n(67060),i=n(25586),o=n(79500),a=n(58116),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(65417)(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},73234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>o.A});var r=n(58812),i=n(18698),o=n(37758)},73358:(e,t,n)=>{e.exports=!n(83881)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},73487:(e,t,n)=>{"use strict";n(27713)("small",function(e){return function(){return e(this,"small","","")}})},73751:(e,t,n)=>{"use strict";var r=n(76101),i=n(40964),o=n(73358),a=n(67060),s=n(88972),l=n(30387).KEY,c=n(83881),u=n(13767),d=n(35973),p=n(49338),h=n(63759),f=n(13813),m=n(80835),g=n(44208),v=n(27154),y=n(30853),b=n(36040),x=n(68027),S=n(25586),w=n(56547),_=n(61529),k=n(72506),M=n(53572),C=n(2008),T=n(35421),A=n(12718),E=n(92426),j=C.f,N=A.f,I=M.f,D=r.Symbol,P=r.JSON,L=P&&P.stringify,R="prototype",O=h("_hidden"),z=h("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),U=u("symbols"),H=u("op-symbols"),W=Object[R],V="function"==typeof D&&!!T.f,G=r.QObject,q=!G||!G[R]||!G[R].findChild,K=o&&c(function(){return 7!=k(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=j(W,t);r&&delete W[t],N(e,t,n),r&&e!==W&&N(W,t,r)}:N,Y=function(e){var t=U[e]=k(D[R]);return t._k=e,t},X=V&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},Z=function(e,t,n){return e===W&&Z(H,t,n),y(e),t=w(t,!0),y(n),i(U,t)?(n.enumerable?(i(e,O)&&e[O][t]&&(e[O][t]=!1),n=k(n,{enumerable:_(0,!1)})):(i(e,O)||N(e,O,_(1,{})),e[O][t]=!0),K(e,t,n)):N(e,t,n)},Q=function(e,t){y(e);for(var n,r=g(t=S(t)),i=0,o=r.length;o>i;)Z(e,n=r[i++],t[n]);return e},J=function(e){var t=F.call(this,e=w(e,!0));return!(this===W&&i(U,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(U,e)||i(this,O)&&this[O][e])||t)},$=function(e,t){if(e=S(e),t=w(t,!0),e!==W||!i(U,t)||i(H,t)){var n=j(e,t);return!n||!i(U,t)||i(e,O)&&e[O][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=I(S(e)),r=[],o=0;n.length>o;)i(U,t=n[o++])||t==O||t==l||r.push(t);return r},te=function(e){for(var t,n=e===W,r=I(n?H:S(e)),o=[],a=0;r.length>a;)!i(U,t=r[a++])||n&&!i(W,t)||o.push(U[t]);return o};V||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(H,n),i(this,O)&&i(this[O],e)&&(this[O][e]=!1),K(this,e,_(1,n))};return o&&q&&K(W,e,{configurable:!0,set:t}),Y(e)})[R],"toString",function(){return this._k}),C.f=$,A.f=Z,n(45658).f=M.f=ee,n(44786).f=J,T.f=te,o&&!n(47755)&&s(W,"propertyIsEnumerable",J,!0),f.f=function(e){return Y(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:D});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var ie=E(h.store),oe=0;ie.length>oe;)m(ie[oe++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=D(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?k(e):Q(k(e),t)},defineProperty:Z,defineProperties:Q,getOwnPropertyDescriptor:$,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=c(function(){T.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return T.f(x(e))}}),P&&a(a.S+a.F*(!V||c(function(){var e=D();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,L.apply(P,r)}}),D[R][z]||n(12730)(D[R],z,D[R].valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},73767:(e,t,n)=>{"use strict";var r=n(25763),i=n(78819)("draft_tree_data_support");e.exports=function(e,t,n){var o=e.getSelection(),a=e.getCurrentContent(),s=o,l=o.getAnchorKey(),c=o.getFocusKey(),u=a.getBlockForKey(l);if(i&&"forward"===n&&l!==c)return a;
2if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(i)if(o.getAnchorOffset()===a.getBlockForKey(l).getLength()){var d=a.getBlockForKey(u.nextSibling);if(!d||0===d.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===o)return a}return r.removeRange(a,s,n)}},74206:(e,t,n)=>{"use strict";n(27713)("blink",function(e){return function(){return e(this,"blink","","")}})},74241:(e,t,n)=>{var r=n(3444);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},74274:(e,t,n)=>{"use strict";var r=n(67060),i=n(37652),o=n(68027),a=n(83881),s=[].sort,l=[1,2,3];r(r.P+r.F*(a(function(){l.sort(void 0)})||!a(function(){l.sort(null)})||!n(65417)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},74587:(e,t,n)=>{"use strict";var r=n(59193);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),i=r(n),o=i.top,a=i.right,s=i.bottom,l=i.left;return 0===o&&0===a&&0===s&&0===l?null:i}},74695:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|(i^~o)&i-o>>>0)>>>31)|0}})},75321:(e,t,n)=>{"use strict";n(27713)("italics",function(e){return function(){return e(this,"i","","")}})},75621:(e,t,n)=>{"use strict";var r=n(37652);function i(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},75638:(e,t,n)=>{"use strict";var r=n(66559),i=n(45791),o=n(31320),a=(o.List,o.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var i=r.getParentKey();i&&n.push(i),r=i?t.get(i):null}return n},c=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},d=function(e,t,n,r){return e.withMutations(function(o){if(s(t.getKey(),o,function(e){return e.merge({nextSibling:c(e,o,r),prevSibling:u(e,o,r)})}),s(n.getKey(),o,function(e){return e.merge({nextSibling:c(e,o,r),prevSibling:u(e,o,r)})}),l(t.getKey(),r).forEach(function(e){return s(e,o,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return o.get(e)}),nextSibling:c(e,o,r),prevSibling:u(e,o,r)})})}),s(t.getNextSiblingKey(),o,function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})}),s(t.getPrevSiblingKey(),o,function(e){return e.merge({nextSibling:c(e,o,r)})}),s(n.getNextSiblingKey(),o,function(e){return e.merge({prevSibling:u(e,o,r)})}),s(n.getPrevSiblingKey(),o,function(e){return e.merge({nextSibling:n.getNextSiblingKey()})}),l(n.getKey(),r).forEach(function(e){s(e,o,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return o.get(e)}),nextSibling:c(e,o,r),prevSibling:u(e,o,r)})})}),function(e,t){var n=[];if(!e)return n;for(var r=i(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?i(o,t):null}return n}(n,r).forEach(function(e){return s(e,o,function(e){return e.merge({nextSibling:c(e,o,r),prevSibling:u(e,o,r)})})}),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(n.getKey(),o,function(e){return e.merge({prevSibling:a})}),s(a,o,function(e){return e.merge({nextSibling:n.getKey()})});var d=a?e.get(a):null,p=d?d.getParentKey():null;if(t.getChildKeys().forEach(function(e){s(e,o,function(e){return e.merge({parent:p})})}),null!=p){var h=e.get(p);s(p,o,function(e){return e.merge({children:h.getChildKeys().concat(t.getChildKeys())})})}s(t.getChildKeys().find(function(t){return null===e.get(t).getNextSiblingKey()}),o,function(e){return e.merge({nextSibling:t.getNextSiblingKey()})})}})},p=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n,o=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),h=t.getEndOffset(),f=o.get(s),m=o.get(u),g=f instanceof r,v=[];if(g){var y=m.getChildKeys(),b=l(u,o);m.getNextSiblingKey()&&(v=v.concat(b)),y.isEmpty()||(v=v.concat(b.concat([u]))),v=v.concat(l(i(m,o),o))}n=f===m?p(f.getCharacterList(),c,h):f.getCharacterList().slice(0,c).concat(m.getCharacterList().slice(h));var x=f.merge({text:f.getText().slice(0,c)+m.getText().slice(h),characterList:n}),S=g&&0===c&&0===h&&m.getParentKey()===s&&null==m.getPrevSiblingKey()?a([[s,null]]):o.toSeq().skipUntil(function(e,t){return t===s}).takeUntil(function(e,t){return t===u}).filter(function(e,t){return-1===v.indexOf(t)}).concat(a([[u,null]])).map(function(e,t){return t===s?x:null}),w=o.merge(S).filter(function(e){return!!e});return g&&f!==m&&(w=d(w,f,m,o)),e.merge({blockMap:w,selectionBefore:t,selectionAfter:t.merge({anchorKey:s,anchorOffset:c,focusKey:s,focusOffset:c,isBackward:!1})})}}
2,75714:(e,t,n)=>{"use strict";var r=n(42123);function i(){return i=r||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},i.apply(this,arguments)}var o=n(45103),a=n(4414),s=n(65043),l=n(88691),c=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=r.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),o=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||i&&o)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),c=n.getDecorator();return i!==o||a!==s||l!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,c=e.customStyleMap,u=e.customStyleFn,d=e.editorState,p=e.editorKey,h=e.textDirectionality,f=d.getCurrentContent(),m=d.getSelection(),g=d.mustForceSelection(),v=d.getDecorator(),y=l(d.getDirectionMap()),b=[],x=f.getBlocksAsArray()[0];x;){var S=x.getKey(),w={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:f,customStyleFn:u,customStyleMap:c,decorator:v,editorKey:p,editorState:d,forceSelection:g,selection:m,block:x,direction:h||y.get(S),tree:d.getBlockTree(S)},_=(t.get(x.getType())||t.get("unstyled")).wrapper;b.push({block:s.createElement(o,i({key:S},w)),wrapperTemplate:_,key:S,offsetKey:a.encode(S,0,0)});var k=x.getNextSiblingKey();x=k?f.getBlockForKey(k):null}for(var M=[],C=0;C<b.length;){var T=b[C];if(T.wrapperTemplate){var A=[];do{A.push(b[C].block),C++}while(C<b.length&&b[C].wrapperTemplate===T.wrapperTemplate);var E=s.cloneElement(T.wrapperTemplate,{key:T.key+"-wrap","data-offset-key":T.offsetKey},A);M.push(E)}else M.push(T.block),C++}return s.createElement("div",{"data-contents":"true"},M)},r}(s.Component);e.exports=c},76101:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},76246:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}},76636:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},76861:(e,t,n)=>{"use strict";var r=n(67060),i=n(42545),o=n(68027),a=n(58116),s=n(79500),l=n(9911);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=a(t.length),r=l(t,0);return i(r,t,t,n,0,void 0===e?1:s(e)),r}}),n(60599)("flatten")},76958:(e,t,n)=>{e.exports=function(e){var t={},r=n(65043),i=n(78853),o=Object.assign;function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var x=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var S=Symbol.iterator;function w(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=S&&e[S]||e["@@iterator"])?e:null}function _(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case u:return"Fragment";case c:return"Portal";case p:return"Profiler";case d:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case f:return(e.displayName||"Context")+".Consumer";case h:return(e._context.displayName||"Context")+".Provider";case m:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case y:return null!==(t=e.displayName||null)?t:_(e.type)||"Memo";case b:t=e._payload,e=e._init;try{return _(e(t))}catch(n){}}return null}function k(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _(t);case 8:return t===d?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function M(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function C(e){if(M(e)!==e)throw Error(a(188))}function T(e){var t=e.alternate;if(!t){if(null===(t=M(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return C(i),e;if(o===r)return C(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function A(e){return null!==(e=T(e))?E(e):null}function E(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=E(e);if(null!==t)return t;e=e.sibling}return null}function j(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){if(4!==e.tag){var t=j(e);if(null!==t)return t}e=e.sibling}return null}var N,I=Array.isArray,D=e.getPublicInstance,P=e.getRootHostContext,L=e.getChildHostContext,R=e.prepareForCommit,O=e.resetAfterCommit,z=e.createInstance,F=e.appendInitialChild,B=e.finalizeInitialChildren,U=e.prepareUpdate,H=e.shouldSetTextContent,W=e.createTextInstance,V=e.sc
vendor: 27,284 bytes, line 2
2heduleTimeout,G=e.cancelTimeout,q=e.noTimeout,K=e.isPrimaryRenderer,Y=e.supportsMutation,X=e.supportsPersistence,Z=e.supportsHydration,Q=e.getInstanceFromNode,J=e.preparePortalMount,$=e.getCurrentEventPriority,ee=e.detachDeletedInstance,te=e.supportsMicrotasks,ne=e.scheduleMicrotask,re=e.supportsTestSelectors,ie=e.findFiberRoot,oe=e.getBoundingRect,ae=e.getTextContent,se=e.isHiddenSubtree,le=e.matchAccessibilityRole,ce=e.setFocusIfFocusable,ue=e.setupIntersectionObserver,de=e.appendChild,pe=e.appendChildToContainer,he=e.commitTextUpdate,fe=e.commitMount,me=e.commitUpdate,ge=e.insertBefore,ve=e.insertInContainerBefore,ye=e.removeChild,be=e.removeChildFromContainer,xe=e.resetTextContent,Se=e.hideInstance,we=e.hideTextInstance,_e=e.unhideInstance,ke=e.unhideTextInstance,Me=e.clearContainer,Ce=e.cloneInstance,Te=e.createContainerChildSet,Ae=e.appendChildToContainerChildSet,Ee=e.finalizeContainerChildren,je=e.replaceContainerChildren,Ne=e.cloneHiddenInstance,Ie=e.cloneHiddenTextInstance,De=e.canHydrateInstance,Pe=e.canHydrateTextInstance,Le=e.canHydrateSuspenseInstance,Re=e.isSuspenseInstancePending,Oe=e.isSuspenseInstanceFallback,ze=e.registerSuspenseInstanceRetry,Fe=e.getNextHydratableSibling,Be=e.getFirstHydratableChild,Ue=e.getFirstHydratableChildWithinContainer,He=e.getFirstHydratableChildWithinSuspenseInstance,We=e.hydrateInstance,Ve=e.hydrateTextInstance,Ge=e.hydrateSuspenseInstance,qe=e.getNextHydratableInstanceAfterSuspenseInstance,Ke=e.commitHydratedContainer,Ye=e.commitHydratedSuspenseInstance,Xe=e.clearSuspenseBoundary,Ze=e.clearSuspenseBoundaryFromContainer,Qe=e.shouldDeleteUnhydratedTailInstances,Je=e.didNotMatchHydratedContainerTextInstance,$e=e.didNotMatchHydratedTextInstance;function et(e){if(void 0===N)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var tt=!1;function nt(e,t){if(!e||tt)return"";tt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{tt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?et(e):""}var rt=Object.prototype.hasOwnProperty,it=[],ot=-1;function at(e){return{current:e}}function st(e){0>ot||(e.current=it[ot],it[ot]=null,ot--)}function lt(e,t){ot++,it[ot]=e.current,e.current=t}var ct={},ut=at(ct),dt=at(!1),pt=ct;function ht(e,t){var n=e.type.contextTypes;if(!n)return ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mt(){st(dt),st(ut)}function gt(e,t,n){if(ut.current!==ct)throw Error(a(168));lt(ut,t),lt(dt,n)}function vt(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,k(e)||"Unknown",i));return o({},n,r)}function yt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ct,pt=ut.current,lt(ut,e),lt(dt,dt.current),!0}function bt(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=vt(e,t,pt),r.__reactInternalMemoizedMergedChildContext=e,st(dt),st(ut),lt(ut,e)):st(dt),lt(dt,n)}var xt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(St(e)/wt|0)|0},St=Math.log,wt=Math.LN2;var _t=64,kt=4194304;function Mt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ct(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=Mt(s):0!==(o&=a)&&(r=Mt(o))}else 0!==(a=n&~i)?r=Mt(a):0!==o&&(r=Mt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-xt(t)),r|=e[n],t&=~i;return r}function Tt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function At(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-xt(t)]=n}function Nt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var It=0;function Dt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var Pt=i.unstable_scheduleCallback,Lt=i.unstable_cancelCallback,Rt=i.unstable_shouldYield,Ot=i.unstable_requestPaint,zt=i.unstable_now,Ft=i.unstable_ImmediatePriority,Bt=i.unstable_UserBlockingPriority,Ut=i.unstable_NormalPriority,Ht=i.unstable_IdlePriority,Wt=null,Vt=null;var Gt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},qt=null,Kt=!1,Yt=!1;function Xt(e){null===qt?qt=[e]:qt.push(e)}function Zt(){if(!Yt&&null!==qt){Yt=!0;var e=0,t=It;try{var n=qt;for(It=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}qt=null,Kt=!1}catch(i){throw null!==qt&&(qt=qt.slice(e+1)),Pt(Ft,Zt),i}finally{It=t,Yt=!1}}return null}var Qt=s.ReactCurrentBatchConfig;function Jt(e,t){if(Gt(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!rt.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function $t(e){switch(e.tag){case 5:return et(e.type);case 16:return et("Lazy");case 13:return et("Suspense");case 19:return et("SuspenseList");case 0:case 2:case 15:return e=nt(e.type,!1);case 11:return e=nt(e.type.render,!1);case 1:return e=nt(e.type,!0);default:return""}}function en(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var tn=at(null),nn=null,rn=null,on=null;function an(){on=rn=nn=null}function sn(e,t,n){K?(lt(tn,t._currentValue),t._currentValue=n):(lt(tn,t._currentValue2),t._currentValue2=n)}function ln(e){var t=tn.current;st(tn),K?e._currentValue=t:e._currentValue2=t}function cn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function un(e,t){nn=e,on=rn=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ri=!0),e.firstContext=null)}function dn(e){var t=K?e._currentValue:e._currentValue2;if(on!==e)if(e={context:e,memoizedValue:t,next:null},null===rn){if(null===nn)throw Error(a(308));rn=e,nn.dependencies={lanes:0,firstContext:e}}else rn=rn.next=e;return t}var pn=null,hn=!1;function fn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vn(e,t){var n=e.updateQueue;null!==n&&(n=n.shared,null!==Xo&&0!==(1&e.mode)&&0===(2&Yo)?(null===(e=n.interleaved)?(t.next=t,null===pn?pn=[n]:pn.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function yn(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nt(e,n)}}function bn(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xn(e,t,n,r){var i=e.updateQueue;hn=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;null!==d&&((l=(d=d.updateQueue).lastBaseUpdate)!==s&&(null===l?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(null!==a){var p=i.baseState;for(s=0,d=u=c=null,l=a;;){var h=l.lane,f=l.eventTime;if((r&h)===h){null!==d&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(h=t,f=n,g.tag){case 1:if("function"===typeof(m=g.payload)){p=m.call(f,p,h);break e}p=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(h="function"===typeof(m=g.payload)?m.call(f,p,h):m)||void 0===h)break e;p=o({},p,h);break e;case 2:hn=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[l]:h.push(l))}else f={eventTime:f,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(u=d=f,c=p):d=d.next=f,s|=h;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(h=l).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===d&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);na|=s,e.lanes=s,e.memoizedState=p}}function Sn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var wn=(new r.Component).refs;function _n(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var kn={isMounted:function(e){return!!(e=e._reactInternals)&&M(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Sa(),i=wa(e),o=gn(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),vn(e,o),null!==(t=_a(e,i,r))&&yn(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Sa(),i=wa(e),o=gn(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),vn(e,o),null!==(t=_a(e,i,r))&&yn(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Sa(),r=wa(e),i=gn(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),vn(e,i),null!==(t=_a(e,r,n))&&yn(t,e,r)}};function Mn(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Jt(n,r)||!Jt(i,o))}function Cn(e,t,n){var r=!1,i=ct,o=t.contextType;return"object"===typeof o&&null!==o?o=dn(o):(i=ft(t)?pt:ut.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?ht(e,i):ct),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=kn,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Tn(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&kn.enqueueReplaceState(t,t.state,null)}function An(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=wn,fn(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=dn(o):(o=ft(t)?pt:ut.current,i.context=ht(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(_n(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&kn.enqueueReplaceState(i,i.state,null),xn(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}var En=[],jn=0,Nn=null,In=0,Dn=[],Pn=0,Ln=null,Rn=1,On="";function zn(e,t){En[jn++]=In,En[jn++]=Nn,Nn=e,In=t}function Fn(e,t,n){Dn[Pn++]=Rn,Dn[Pn++]=On,Dn[Pn++]=Ln,Ln=e;var r=Rn;e=On;var i=32-xt(r)-1;r&=~(1<<i),n+=1;var o=32-xt(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Rn=1<<32-xt(t)+i|n<<i|r,On=o+e}else Rn=1<<o|n<<i|r,On=e}function Bn(e){null!==e.return&&(zn(e,1),Fn(e,1,0))}function Un(e){for(;e===Nn;)Nn=En[--jn],En[jn]=null,In=En[--jn],En[jn]=null;for(;e===Ln;)Ln=Dn[--Pn],Dn[Pn]=null,On=Dn[--Pn],Dn[Pn]=null,Rn=Dn[--Pn],Dn[Pn]=null}var Hn=null,Wn=null,Vn=!1,Gn=!1,qn=null;function Kn(e,t){var n=Ja(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Yn(e,t){switch(e.tag){case 5:return null!==(t=De(t,e.type,e.pendingProps))&&(e.stateNode=t,Hn=e,Wn=Be(t),!0);case 6:return null!==(t=Pe(t,e.pendingProps))&&(e.stateNode=t,Hn=e,Wn=null,!0);case 13:if(null!==(t=Le(t))){var n=null!==Ln?{id:Rn,overflow:On}:null;return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ja(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Hn=e,Wn=null,!0}return!1;default:return!1}}function Xn(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function Zn(e){if(Vn){var t=Wn;if(t){var n=t;if(!Yn(e,t)){if(Xn(e))throw Error(a(418));t=Fe(n);var r=Hn;t&&Yn(e,t)?Kn(r,n):(e.flags=-4097&e.flags|2,Vn=!1,Hn=e)}}else{if(Xn(e))throw Error(a(418));e.flags=-4097&e.flags|2,Vn=!1,Hn=e}}}function Qn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Hn=e}function Jn(e){if(!Z||e!==Hn)return!1;if(!Vn)return Qn(e),Vn=!0,!1;if(3!==e.tag&&(5!==e.tag||Qe(e.type)&&!H(e.type,e.memoizedProps))){var t=Wn;if(t){if(Xn(e)){for(e=Wn;e;)e=Fe(e);throw Error(a(418))}for(;t;)Kn(e,t),t=Fe(t)}}if(Qn(e),13===e.tag){if(!Z)throw Error(a(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));Wn=qe(e)}else Wn=Hn?Fe(e.stateNode):null;return!0}function $n(){Z&&(Wn=Hn=null,Gn=Vn=!1)}function er(e){null===qn?qn=[e]:qn.push(e)}function tr(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===wn&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function nr(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rr(e){return(0,e._init)(e._payload)}function ir(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=es(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function d(e,t,n,r){return null===t||6!==t.tag?((t=is(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n,r){var o=n.type;return o===u?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===b&&rr(o)===t.type)?((r=i(t,n.props)).ref=tr(e,t,n),r.return=e,r):((r=ts(n.type,n.key,n.props,null,e.mode,r)).ref=tr(e,t,n),r.return=e,r)}function h(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=os(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=ns(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function m(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=is(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case l:return(n=ts(t.type,t.key,t.props,null,e.mode,n)).ref=tr(e,null,t),n.return=e,n;case c:return(t=os(t,e.mode,n)).return=e,t;case b:return m(e,(0,t._init)(t._payload),n)}if(I(t)||w(t))return(t=ns(t,e.mode,n,null)).return=e,t;nr(e,t)}return null}function g(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:d(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case l:return n.key===i?p(e,t,n,r):null;case c:return n.key===i?h(e,t,n,r):null;case b:return g(e,t,(i=n._init)(n._payload),r)}if(I(n)||w(n))return null!==i?null:f(e,t,n,r,null);nr(e,n)}return null}function v(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return d(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case l:return p(t,e=e.get(null===r.key?n:r.key)||null,r,i);case c:return h(t,e=e.get(null===r.key?n:r.key)||null,r,i);case b:return v(e,t,n,(0,r._init)(r._payload),i)}if(I(r)||w(r))return f(t,e=e.get(n)||null,r,i,null);nr(t,r)}return null}function y(i,a,s,l){for(var c=null,u=null,d=a,p=a=0,h=null;null!==d&&p<s.length;p++){d.index>p?(h=d,d=null):h=d.sibling;var f=g(i,d,s[p],l);if(null===f){null===d&&(d=h);break}e&&d&&null===f.alternate&&t(i,d),a=o(f,a,p),null===u?c=f:u.sibling=f,u=f,d=h}if(p===s.length)return n(i,d),Vn&&zn(i,p),c;if(null===d){for(;p<s.length;p++)null!==(d=m(i,s[p],l))&&(a=o(d,a,p),null===u?c=d:u.sibling=d,u=d);return Vn&&zn(i,p),c}for(d=r(i,d);p<s.length;p++)null!==(h=v(d,i,p,s[p],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?p:h.key),a=o(h,a,p),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Vn&&zn(i,p),c}function x(i,s,l,c){var u=w(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,p=s,h=s=0,f=null,y=l.next();null!==p&&!y.done;h++,y=l.next()){p.index>h?(f=p,p=null):f=p.sibling;var b=g(i,p,y.value,c);if(null===b){null===p&&(p=f);break}e&&p&&null===b.alternate&&t(i,p),s=o(b,s,h),null===d?u=b:d.sibling=b,d=b,p=f}if(y.done)return n(i,p),Vn&&zn(i,h),u;if(null===p){for(;!y.done;h++,y=l.next())null!==(y=m(i,y.value,c))&&(s=o(y,s,h),null===d?u=y:d.sibling=y,d=y);return Vn&&zn(i,h),u}for(p=r(i,p);!y.done;h++,y=l.next())null!==(y=v(p,i,h,y.value,c))&&(e&&null!==y.alternate&&p.delete(null===y.key?h:y.key),s=o(y,s,h),null===d?u=y:d.sibling=y,d=y);return e&&p.forEach(function(e){return t(i,e)}),Vn&&zn(i,h),u}return function e(r,o,a,d){if("object"===typeof a&&null!==a&&a.type===u&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case l:e:{for(var p=a.key,h=o;null!==h;){if(h.key===p){if((p=a.type)===u){if(7===h.tag){n(r,h.sibling),(o=i(h,a.props.children)).return=r,r=o;break e}}else if(h.elementType===p||"object"===typeof p&&null!==p&&p.$$typeof===b&&rr(p)===h.type){n(r,h.sibling),(o=i(h,a.props)).ref=tr(r,h,a),o.return=r,r=o;break e}n(r,h);break}t(r,h),h=h.sibling}a.type===u?((o=ns(a.props.children,r.mode,d,a.key)).return=r,r=o):((d=ts(a.type,a.key,a.props,null,r.mode,d)).ref=tr(r,o,a),d.return=r,r=d)}return s(r);case c:e:{for(h=a.key;null!==o;){if(o.key===h){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=os(a,r.mode,d)).return=r,r=o}return s(r);case b:return e(r,o,(h=a._init)(a._payload),d)}if(I(a))return y(r,o,a,d);if(w(a))return x(r,o,a,d);nr(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=is(a,r.mode,d)).return=r,r=o),s(r)):n(r,o)}}var or=ir(!0),ar=ir(!1),sr={},lr=at(sr),cr=at(sr),ur=at(sr);function dr(e){if(e===sr)throw Error(a(174));return e}function pr(e,t){lt(ur,t),lt(cr,e),lt(lr,sr),e=P(t),st(lr),lt(lr,e)}function hr(){st(lr),st(cr),st(ur)}function fr(e){var t=dr(ur.current),n=dr(lr.current);n!==(t=L(n,e.type,t))&&(lt(cr,e),lt(lr,t))}function mr(e){cr.current===e&&(st(lr),st(cr))}var gr=at(0);function vr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Re(n)||Oe(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yr=[];function br(){for(var e=0;e<yr.length;e++){var t=yr[e];K?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}yr.length=0}var xr=s.ReactCurrentDispatcher,Sr=s.ReactCurrentBatchConfig,wr=0,_r=null,kr=null,Mr=null,Cr=!1,Tr=!1,Ar=0,Er=0;function jr(){throw Error(a(321))}function Nr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function Ir(e,t,n,r,i,o){if(wr=o,_r=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xr.current=null===e||null===e.memoizedState?fi:mi,e=n(r,i),Tr){o=0;do{if(Tr=!1,Ar=0,25<=o)throw Error(a(301));o+=1,Mr=kr=null,t.updateQueue=null,xr.current=gi,e=n(r,i)}while(Tr)}if(xr.current=hi,t=null!==kr&&null!==kr.next,wr=0,Mr=kr=_r=null,Cr=!1,t)throw Error(a(300));return e}function Dr(){var e=0!==Ar;return Ar=0,e}function Pr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Mr?_r.memoizedState=Mr=e:Mr=Mr.next=e,Mr}function Lr(){if(null===kr){var e=_r.alternate;e=null!==e?e.memoizedState:null}else e=kr.next;var t=null===Mr?_r.memoizedState:Mr.next;if(null!==t)Mr=t,kr=e;else{if(null===e)throw Error(a(310));e={memoizedState:(kr=e).memoizedState,baseState:kr.baseState,baseQueue:kr.baseQueue,queue:kr.queue,next:null},null===Mr?_r.memoizedState=Mr=e:Mr=Mr.next=e}return Mr}function Rr(e,t){return"function"===typeof t?t(e):t}function Or(e){var t=Lr(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=kr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var l=s=null,c=null,u=o;do{var d=u.lane;if((wr&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,_r.lanes|=d,na|=d}u=u.next}while(null!==u&&u!==o);null===c?s=r:c.next=l,Gt(r,t.memoizedState)||(Ri=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,_r.lanes|=o,na|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zr(e){var t=Lr(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Gt(o,t.memoizedState)||(Ri=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Fr(){}function Br(e,t){var n=_r,r=Lr(),i=t(),o=!Gt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ri=!0),r=r.queue,Qr(Wr.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==Mr&&1&Mr.memoizedState.tag){if(n.flags|=2048,qr(9,Hr.bind(null,n,r,i,t),void 0,null),null===Xo)throw Error(a(349));0!==(30&wr)||Ur(n,t,i)}return i}function Ur(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=_r.updateQueue)?(t={lastEffect:null,stores:null},_r.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Hr(e,t,n,r){t.value=n,t.getSnapshot=r,Vr(t)&&_a(e,1,-1)}function Wr(e,t,n){return n(function(){Vr(t)&&_a(e,1,-1)})}function Vr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch(r){return!0}}function Gr(e){var t=Pr();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rr,lastRenderedState:e},t.queue=e,e=e.dispatch=li.bind(null,_r,e),[t.memoizedState,e]}function qr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=_r.updateQueue)?(t={lastEffect:null,stores:null},_r.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Kr(){return Lr().memoizedState}function Yr(e,t,n,r){var i=Pr();_r.flags|=e,i.memoizedState=qr(1|t,n,void 0,void 0===r?null:r)}function Xr(e,t,n,r){var i=Lr();r=void 0===r?null:r;var o=void 0;if(null!==kr){var a=kr.memoizedState;if(o=a.destroy,null!==r&&Nr(r,a.deps))return void(i.memoizedState=qr(t,n,o,r))}_r.flags|=e,i.memoizedState=qr(1|t,n,o,r)}function Zr(e,t){return Yr(8390656,8,e,t)}function Qr(e,t){return Xr(2048,8,e,t)}function Jr(e,t){return Xr(4,2,e,t)}function $r(e,t){return Xr(4,4,e,t)}function ei(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ti(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Xr(4,4,ei.bind(null,t,e),n)}function ni(){}function ri(e,t){var n=Lr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Nr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ii(e,t){var n=Lr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Nr(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oi(e,t){var n=It;It=0!==n&&4>n?n:4,e(!0);var r=Sr.transition;Sr.transition={};try{e(!1),t()}finally{It=n,Sr.transition=r}}function ai(){return Lr().memoizedState}function si(e,t,n){var r=wa(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ci(e)?ui(t,n):(di(e,t,n),null!==(e=_a(e,r,n=Sa()))&&pi(e,t,r))}
2function li(e,t,n){var r=wa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ci(e))ui(t,i);else{di(e,t,i);var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Gt(s,a))return}catch(l){}null!==(e=_a(e,r,n=Sa()))&&pi(e,t,r)}}function ci(e){var t=e.alternate;return e===_r||null!==t&&t===_r}function ui(e,t){Tr=Cr=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function di(e,t,n){null!==Xo&&0!==(1&e.mode)&&0===(2&Yo)?(null===(e=t.interleaved)?(n.next=n,null===pn?pn=[t]:pn.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function pi(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nt(e,n)}}var hi={readContext:dn,useCallback:jr,useContext:jr,useEffect:jr,useImperativeHandle:jr,useInsertionEffect:jr,useLayoutEffect:jr,useMemo:jr,useReducer:jr,useRef:jr,useState:jr,useDebugValue:jr,useDeferredValue:jr,useTransition:jr,useMutableSource:jr,useSyncExternalStore:jr,useId:jr,unstable_isNewReconciler:!1},fi={readContext:dn,useCallback:function(e,t){return Pr().memoizedState=[e,void 0===t?null:t],e},useContext:dn,useEffect:Zr,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Yr(4194308,4,ei.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yr(4,2,e,t)},useMemo:function(e,t){var n=Pr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pr();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=si.bind(null,_r,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Pr().memoizedState=e},useState:Gr,useDebugValue:ni,useDeferredValue:function(e){var t=Gr(e),n=t[0],r=t[1];return Zr(function(){var t=Sr.transition;Sr.transition={};try{r(e)}finally{Sr.transition=t}},[e]),n},useTransition:function(){var e=Gr(!1),t=e[0];return e=oi.bind(null,e[1]),Pr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_r,i=Pr();if(Vn){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Xo)throw Error(a(349));0!==(30&wr)||Ur(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Zr(Wr.bind(null,r,o,e),[e]),r.flags|=2048,qr(9,Hr.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Pr(),t=Xo.identifierPrefix;if(Vn){var n=On;t=":"+t+"R"+(n=(Rn&~(1<<32-xt(Rn)-1)).toString(32)+n),0<(n=Ar++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Er++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mi={readContext:dn,useCallback:ri,useContext:dn,useEffect:Qr,useImperativeHandle:ti,useInsertionEffect:Jr,useLayoutEffect:$r,useMemo:ii,useReducer:Or,useRef:Kr,useState:function(){return Or(Rr)},useDebugValue:ni,useDeferredValue:function(e){var t=Or(Rr),n=t[0],r=t[1];return Qr(function(){var t=Sr.transition;Sr.transition={};try{r(e)}finally{Sr.transition=t}},[e]),n},useTransition:function(){return[Or(Rr)[0],Lr().memoizedState]},useMutableSource:Fr,useSyncExternalStore:Br,useId:ai,unstable_isNewReconciler:!1},gi={readContext:dn,useCallback:ri,useContext:dn,useEffect:Qr,useImperativeHandle:ti,useInsertionEffect:Jr,useLayoutEffect:$r,useMemo:ii,useReducer:zr,useRef:Kr,useState:function(){return zr(Rr)},useDebugValue:ni,useDeferredValue:function(e){var t=zr(Rr),n=t[0],r=t[1];return Qr(function(){var t=Sr.transition;Sr.transition={};try{r(e)}finally{Sr.transition=t}},[e]),n},useTransition:function(){return[zr(Rr)[0],Lr().memoizedState]},useMutableSource:Fr,useSyncExternalStore:Br,useId:ai,unstable_isNewReconciler:!1};function vi(e,t){try{var n="",r=t;do{n+=$t(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function yi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bi,xi,Si,wi,_i="function"===typeof WeakMap?WeakMap:Map;function ki(e,t,n){(n=gn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){da||(da=!0,pa=r),yi(0,t)},n}function Mi(e,t,n){(n=gn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){yi(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){yi(0,t),"function"!==typeof r&&(null===ha?ha=new Set([this]):ha.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Ci(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new _i;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=qa.bind(null,e,t,n),t.then(e,e))}function Ti(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ai(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=gn(-1,1)).tag=2,vn(n,t))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}function Ei(e){e.flags|=4}function ji(e,t){if(null!==e&&e.child===t.child)return!0;
2if(0!==(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!==(12854&e.flags)||0!==(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(Y)bi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)F(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},xi=function(){},Si=function(e,t,n,r,i){if((e=e.memoizedProps)!==r){var o=t.stateNode,a=dr(lr.current);n=U(o,n,e,r,i,a),(t.updateQueue=n)&&Ei(t)}},wi=function(e,t,n,r){n!==r&&Ei(t)};else if(X){bi=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var o=i.stateNode;n&&r&&(o=Ne(o,i.type,i.memoizedProps,i)),F(e,o)}else if(6===i.tag)o=i.stateNode,n&&r&&(o=Ie(o,i.memoizedProps,i)),F(e,o);else if(4!==i.tag)if(22===i.tag&&null!==i.memoizedState)null!==(o=i.child)&&(o.return=i),bi(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var Ni=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var o=i.stateNode;n&&r&&(o=Ne(o,i.type,i.memoizedProps,i)),Ae(e,o)}else if(6===i.tag)o=i.stateNode,n&&r&&(o=Ie(o,i.memoizedProps,i)),Ae(e,o);else if(4!==i.tag)if(22===i.tag&&null!==i.memoizedState)null!==(o=i.child)&&(o.return=i),Ni(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};xi=function(e,t){var n=t.stateNode;if(!ji(e,t)){e=n.containerInfo;var r=Te(e);Ni(r,t,!1,!1),n.pendingChildren=r,Ei(t),Ee(e,r)}},Si=function(e,t,n,r,i){var o=e.stateNode,a=e.memoizedProps;if((e=ji(e,t))&&a===r)t.stateNode=o;else{var s=t.stateNode,l=dr(lr.current),c=null;a!==r&&(c=U(s,n,a,r,i,l)),e&&null===c?t.stateNode=o:(o=Ce(o,c,n,a,r,t,e,s),B(o,n,r,i,l)&&Ei(t),t.stateNode=o,e?Ei(t):bi(o,t,!1,!1))}},wi=function(e,t,n,r){n!==r?(e=dr(ur.current),n=dr(lr.current),t.stateNode=W(r,e,n,t),Ei(t)):t.stateNode=e.stateNode}}else xi=function(){},Si=function(){},wi=function(){};function Ii(e,t){if(!Vn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Di(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Pi(e,t,n){var r=t.pendingProps;switch(Un(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Di(t),null;case 1:case 17:return ft(t.type)&&mt(),Di(t),null;case 3:return r=t.stateNode,hr(),st(dt),st(ut),br(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Jn(t)?Ei(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==qn&&(Aa(qn),qn=null))),xi(e,t),Di(t),null;case 5:mr(t),n=dr(ur.current);var i=t.type;if(null!==e&&null!=t.stateNode)Si(e,t,i,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Di(t),null}if(e=dr(lr.current),Jn(t)){if(!Z)throw Error(a(175));e=We(t.stateNode,t.type,t.memoizedProps,n,e,t,!Gn),t.updateQueue=e,null!==e&&Ei(t)}else{var o=z(i,r,n,e,t);bi(o,t,!1,!1),t.stateNode=o,B(o,i,r,n,e)&&Ei(t)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Di(t),null;case 6:if(e&&null!=t.stateNode)wi(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(e=dr(ur.current),n=dr(lr.current),Jn(t)){if(!Z)throw Error(a(176));if(e=t.stateNode,r=t.memoizedProps,(n=Ve(e,r,t,!Gn))&&null!==(i=Hn))switch(o=0!==(1&i.mode),i.tag){case 3:Je(i.stateNode.containerInfo,e,r,o);break;case 5:$e(i.type,i.memoizedProps,i.stateNode,e,r,o)}n&&Ei(t)}else t.stateNode=W(r,e,n,t)}return Di(t),null;case 13:if(st(gr),r=t.memoizedState,Vn&&null!==Wn&&0!==(1&t.mode)&&0===(128&t.flags)){for(e=Wn;e;)e=Fe(e);return $n(),t.flags|=98560,t}if(null!==r&&null!==r.dehydrated){if(r=Jn(t),null===e){if(!r)throw Error(a(318));if(!Z)throw Error(a(344));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(a(317));Ge(e,t)}else $n(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;return Di(t),null}return null!==qn&&(Aa(qn),qn=null),0!==(128&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?Jn(t):n=null!==e.memoizedState,r&&!n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&gr.current)?0===ea&&(ea=3):Ra())),null!==t.updateQueue&&(t.flags|=4),Di(t),null);case 4:return hr(),xi(e,t),null===e&&J(t.stateNode.containerInfo),Di(t),null;case 10:return ln(t.type._context),Di(t),null;case 19:if(st(gr),null===(i=t.memoizedState))return Di(t),null;if(r=0!==(128&t.flags),null===(o=i.rendering))if(r)Ii(i,!1);else{if(0!==ea||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=vr(e))){for(t.flags|=128,Ii(i,!1),null!==(e=o.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,r=t.child;null!==r;)i=e,(n=r).flags&=14680066,null===(o=n.alternate)?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deleti
vendor: 11,941 bytes, line 2
2ons=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,i=o.dependencies,n.dependencies=null===i?null:{lanes:i.lanes,firstContext:i.firstContext}),r=r.sibling;return lt(gr,1&gr.current|2),t.child}e=e.sibling}null!==i.tail&&zt()>la&&(t.flags|=128,r=!0,Ii(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=vr(o))){if(t.flags|=128,r=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Ii(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!Vn)return Di(t),null}else 2*zt()-i.renderingStartTime>la&&1073741824!==n&&(t.flags|=128,r=!0,Ii(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=zt(),t.sibling=null,e=gr.current,lt(gr,r?1&e|2:1&e),t):(Di(t),null);case 22:case 23:return Ia(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Jo)&&(Di(t),Y&&6&t.subtreeFlags&&(t.flags|=8192)):Di(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}var Li=s.ReactCurrentOwner,Ri=!1;function Oi(e,t,n,r){t.child=null===e?ar(t,null,n,r):or(t,e.child,n,r)}function zi(e,t,n,r,i){n=n.render;var o=t.ref;return un(t,i),r=Ir(e,t,n,r,o,i),n=Dr(),null===e||Ri?(Vn&&n&&Bn(t),t.flags|=1,Oi(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,io(e,t,i))}function Fi(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||$a(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ts(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Bi(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Jt)(a,r)&&e.ref===t.ref)return io(e,t,i)}return t.flags|=1,(e=es(o,r)).ref=t.ref,e.return=t,t.child=e}function Bi(e,t,n,r,i){if(null!==e&&Jt(e.memoizedProps,r)&&e.ref===t.ref){if(Ri=!1,0===(e.lanes&i))return t.lanes=e.lanes,io(e,t,i);0!==(131072&e.flags)&&(Ri=!0)}return Wi(e,t,n,r,i)}function Ui(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},lt($o,Jo),Jo|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,lt($o,Jo),Jo|=e,null;t.memoizedState={baseLanes:0,cachePool:null},r=null!==o?o.baseLanes:n,lt($o,Jo),Jo|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,lt($o,Jo),Jo|=r;return Oi(e,t,i,n),t.child}function Hi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wi(e,t,n,r,i){var o=ft(n)?pt:ut.current;return o=ht(t,o),un(t,i),n=Ir(e,t,n,r,o,i),r=Dr(),null===e||Ri?(Vn&&r&&Bn(t),t.flags|=1,Oi(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,io(e,t,i))}function Vi(e,t,n,r,i){if(ft(n)){var o=!0;yt(t)}else o=!1;if(un(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Cn(t,n,r),An(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=dn(c):c=ht(t,c=ft(n)?pt:ut.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&Tn(t,a,r,c),hn=!1;var p=t.memoizedState;a.state=p,xn(t,r,a,i),l=t.memoizedState,s!==r||p!==l||dt.current||hn?("function"===typeof u&&(_n(t,n,u,r),l=t.memoizedState),(s=hn||Mn(t,n,s,r,p,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,mn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:en(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=dn(l):l=ht(t,l=ft(n)?pt:ut.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||p!==l)&&Tn(t,a,r,l),hn=!1,p=t.memoizedState,a.state=p,xn(t,r,a,i);var f=t.memoizedState;s!==d||p!==f||dt.current||hn?("function"===typeof h&&(_n(t,n,h,r),f=t.memoizedState),(c=hn||Mn(t,n,c,r,p,f,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Gi(e,t,n,r,o,i)}function Gi(e,t,n,r,i,o){Hi(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&bt(t,n,!1),io(e,t,o);r=t.stateNode,Li.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=or(t,e.child,null,o),t.child=or(t,null,s,o)):Oi(e,t,s,o),t.memoizedState=r.state,i&&bt(t,n,!0),t.child}function qi(e){var t=e.stateNode;t.pendingContext?gt(0,t.pendingContext,t.pendingContext!==t.context):t.context&>(0,t.context,!1),pr(e,t.containerInfo)}function Ki(e,t,n,r,i){return $n(),er(i),t.flags|=256,Oi(e,t,n,r),t.child}var Yi={dehydrated:null,treeContext:null,retryLane:0};function Xi(e){return{baseLanes:e,cachePool:null}}function Zi(e,t,n){var r,i=t.pendingProps,o=gr.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),lt(gr,1&o),null===e)return Zn(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:Oe(e)?t.lanes=8:t.lanes=1073741824,null):(o=i.children,e=i.fallback,s?(i=t.mode,s=t.child,o={mode:"hidden",children:o},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=o):s=rs(o,i,0,null),e=ns(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Xi(n),t.memoizedState=Yi,e):Qi(t,o));if(null!==(o=e.memoizedState)){if(null!==(r=o.dehydrated)){if(l)return 256&t.flags?(t.flags&=-257,eo(e,t,n,Error(a(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,o=t.mode,i=rs({mode:"visible",children:i.children},o,0,null),(s=ns(s,o,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,0!==(1&t.mode)&&or(t,e.child,null,n),t.child.memoizedState=Xi(n),t.memoizedState=Yi,s);if(0===(1&t.mode))t=eo(e,t,n,null);else if(Oe(r))t=eo(e,t,n,Error(a(419)));else if(i=0!==(n&e.childLanes),Ri||i){if(null!==(i=Xo)){switch(n&-n){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(i=0!==(s&(i.suspendedLanes|n))?0:s)&&i!==o.retryLane&&(o.retryLane=i,_a(e,i,-1))}Ra(),t=eo(e,t,n,Error(a(421)))}else Re(r)?(t.flags|=128,t.child=e.child,t=Ya.bind(null,e),ze(r,t),t=null):(n=o.treeContext,Z&&(Wn=He(r),Hn=t,Vn=!0,qn=null,Gn=!1,null!==n&&(Dn[Pn++]=Rn,Dn[Pn++]=On,Dn[Pn++]=Ln,Rn=n.id,On=n.overflow,Ln=t)),(t=Qi(t,t.pendingProps.children)).flags|=4096);return t}return s?(i=$i(e,t,i.children,i.fallback,n),s=t.child,o=e.child.memoizedState,s.memoizedState=null===o?Xi(n):{baseLanes:o.baseLanes|n,cachePool:null},s.childLanes=e.childLanes&~n,t.memoizedState=Yi,i):(n=Ji(e,t,i.children,n),t.memoizedState=null,n)}return s?(i=$i(e,t,i.children,i.fallback,n),s=t.child,o=e.child.memoizedState,s.memoizedState=null===o?Xi(n):{baseLanes:o.baseLanes|n,cachePool:null},s.childLanes=e.childLanes&~n,t.memoizedState=Yi,i):(n=Ji(e,t,i.children,n),t.memoizedState=null,n)}function Qi(e,t){return(t=rs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ji(e,t,n,r){var i=e.child;return e=i.sibling,n=es(i,{mode:"visible",children:n}),0===(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function $i(e,t,n,r,i){var o=t.mode,a=(e=e.child).sibling,s={mode:"hidden",children:n};return 0===(1&o)&&t.child!==e?((n=t.child).childLanes=0,n.pendingProps=s,t.deletions=null):(n=es(e,s)).subtreeFlags=14680064&e.subtreeFlags,null!==a?r=es(a,r):(r=ns(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function eo(e,t,n,r){return null!==r&&er(r),or(t,e.child,null,n),(e=Qi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function to(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),cn(e.return,t,n)}function no(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function ro(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Oi(e,t,r.children,n),0!==(2&(r=gr.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&to(e,n,t);else if(19===e.tag)to(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(lt(gr,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===vr(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),no(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===vr(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}no(t,!0,n,null,o);break;case"together":no(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function io(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),na|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=es(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=es(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function oo(e,t){switch(Un(t),t.tag){case 1:return ft(t.type)&&mt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return hr(),st(dt),st(ut),br(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return mr(t),null;case 13:if(st(gr),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));$n()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return st(gr),null;case 4:return hr(),null;case 10:return ln(t.type._context),null;case 22:case 23:return Ia(),null;default:return null}}var ao=!1,so=!1,lo="function"===typeof WeakSet?WeakSet:Set,co=null;function uo(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ga(e,t,r)}else n.current=null}
2function po(e,t,n){try{n()}catch(r){Ga(e,t,r)}}var ho=!1;function fo(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&po(t,n,o)}i=i.next}while(i!==r)}}function mo(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function go(e){var t=e.ref;if(null!==t){var n=e.stateNode;if(5===e.tag)e=D(n);else e=n;"function"===typeof t?t(e):t.current=e}}function vo(e,t,n){if(Vt&&"function"===typeof Vt.onCommitFiberUnmount)try{Vt.onCommitFiberUnmount(Wt,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var i=r,o=i.destroy;i=i.tag,void 0!==o&&(0!==(2&i)||0!==(4&i))&&po(t,n,o),r=r.next}while(r!==e)}break;case 1:if(uo(t,n),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Ga(t,n,a)}break;case 5:uo(t,n);break;
2case 4:Y?Mo(e,t,n):X&&X&&(t=t.stateNode.containerInfo,n=Te(t),je(t,n))}}function yo(e,t,n){for(var r=t;;)if(vo(e,r,n),null===r.child||Y&&4===r.tag){if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}else r.child.return=r,r=r.child}function bo(e){var t=e.alternate;null!==t&&(e.alternate=null,bo(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&ee(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xo(e){return 5===e.tag||3===e.tag||4===e.tag}function So(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||xo(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function wo(e){if(Y){e:{for(var t=e.return;null!==t;){if(xo(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,32&n.flags&&(xe(t),n.flags&=-33),ko(e,n=So(e),t);break;case 3:case 4:t=n.stateNode.containerInfo,_o(e,n=So(e),t);break;default:throw Error(a(161))}}}function _o(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?ve(n,e,t):pe(n,e);else if(4!==r&&null!==(e=e.child))for(_o(e,t,n),e=e.sibling;null!==e;)_o(e,t,n),e=e.sibling}function ko(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?ge(n,e,t):de(n,e);else if(4!==r&&null!==(e=e.child))for(ko(e,t,n),e=e.sibling;null!==e;
2)ko(e,t,n),e=e.sibling}function Mo(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag)yo(e,o,n),i?be(r,o.stateNode):ye(r,o.stateNode);else if(18===o.tag)i?Ze(r,o.stateNode):Xe(r,o.stateNode);else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(vo(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function Co(e,t){if(Y){switch(t.tag){case 0:case 11:case 14:case 15:return fo(3,t,t.return),mo(3,t),void fo(5,t,t.return);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&me(n,o,i,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(a(162));return n=t.memoizedProps,void he(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(Z&&null!==e&&e.memoizedState.isDehydrated&&Ke(t.stateNode.containerInfo));case 13:case 19:return void To(t)}throw Error(a(163))}switch(t.tag){case 0:case 11:case 14:case 15:return fo(3,t,t.return),mo(3,t),void fo(5,t,t.return);case 12:case 22:case 23:return;case 13:case 19:return void To(t);case 3:Z&&null!==e&&e.memoizedState.isDehydrated&&Ke(t.stateNode.containerInfo)}e:if(X){switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:t=t.stateNode,je(t.containerInfo,t.pendingChildren);break e}throw Error(a(163))}}function To(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new lo),t.forEach(function(t){var r=Xa.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ao(e,t,n){co=e,Eo(e,t,n)}function Eo(e,t,n){for(var r=0!==(1&e.mode);null!==co;){var i=co,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||ao;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||so;s=ao;var c=so;if(ao=a,(so=l)&&!c)for(co=i;null!==co;)l=(a=co).child,22===a.tag&&null!==a.memoizedState?Io(i):null!==l?(l.return=a,co=l):Io(i);for(;null!==o;)co=o,Eo(o,t,n),o=o.sibling;co=i,ao=s,so=c}jo(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,co=o):jo(e)}}function jo(e){for(;null!==co;){var t=co;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:so||mo(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!so)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Sn(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=D(t.child.stateNode);break;case 1:n=t.child.stateNode}Sn(t,s,n)}break;case 5:var l=t.stateNode;null===n&&4&t.flags&&fe(l,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(Z&&null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&Ye(d)}}}break;default:throw Error(a(163))}so||512&t.flags&&go(t)}catch(p){Ga(t,t.return,p)}}if(t===e){co=null;break}if(null!==(n=t.sibling)){n.return=t.return,co=n;break}co=t.return}}function No(e){for(;null!==co;){var t=co;if(t===e){co=null;break}var n=t.sibling;if(null!==n){n.return=t.return,co=n;break}co=t.return}}function Io(e){for(;null!==co;){var t=co;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mo(4,t)}catch(l){Ga(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Ga(t,i,l)}}var o=t.return;try{go(t)}catch(l){Ga(t,o,l)}break;case 5:var a=t.return;try{go(t)}catch(l){Ga(t,a,l)}}}catch(l){Ga(t,t.return,l)}if(t===e){co=null;break}var s=t.sibling;if(null!==s){s.return=t.return,co=s;break}co=t.return}}var Do=0,Po=1,Lo=2,Ro=3,Oo=4;if("function"===typeof Symbol&&Symbol.for){var zo=Symbol.for;Do=zo("selector.component"),Po=zo("selector.has_pseudo_class"),Lo=zo("selector.role"),Ro=zo("selector.test_id"),Oo=zo("selector.text")}function Fo(e){var t=Q(e);if(null!=t){if("string"!==typeof t.memoizedProps["data-testname"])throw Error(a(364));return t}if(null===(e=ie(e)))throw Error(a(362));return e.stateNode.current}function Bo(e,t){switch(t.$$typeof){case Do:if(e.type===t.value)return!0;break;case Po:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],i=e[n++],o=t[i];if(5!==r.tag||!se(r)){for(;null!=o&&Bo(r,o);)o=t[++i];if(i===t.length){t=!0;break e}for(r=r.child;null!==r;)e.push(r,i),r=r.sibling}}t=!1}return t;case Lo:if(5===e.tag&&le(e.stateNode,t.value))return!0;break;case Oo:if((5===e.tag||6===e.tag)&&(null!==(e=ae(e))&&0<=e.indexOf(t.value)))return!0;break;case Ro:if(5===e.tag&&("string"===typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function Uo(e){switch(e.$$typeof){case Do:return"<"+(_(e.value)||"Unknown")+">";case Po:return":has("+(Uo(e)||"")+")";case Lo:return'[role="'+e.value+'"]';
2case Oo:return'"'+e.value+'"';case Ro:return'[data-testname="'+e.value+'"]';default:throw Error(a(365))}}function Ho(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],o=e[r++],a=t[o];if(5!==i.tag||!se(i)){for(;null!=a&&Bo(i,a);)a=t[++o];if(o===t.length)n.push(i);else for(i=i.child;null!==i;)e.push(i,o),i=i.sibling}}return n}function Wo(e,t){if(!re)throw Error(a(363));e=Ho(e=Fo(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(5===r.tag)se(r)||t.push(r.stateNode);else for(r=r.child;null!==r;)e.push(r),r=r.sibling}return t}var Vo=Math.ceil,Go=s.ReactCurrentDispatcher,qo=s.ReactCurrentOwner,Ko=s.ReactCurrentBatchConfig,Yo=0,Xo=null,Zo=null,Qo=0,Jo=0,$o=at(0),ea=0,ta=null,na=0,ra=0,ia=0,oa=null,aa=null,sa=0,la=1/0;function ca(){la=zt()+500}var ua,da=!1,pa=null,ha=null,fa=!1,ma=null,ga=0,va=0,ya=null,ba=-1,xa=0;function Sa(){return 0!==(6&Yo)?zt():-1!==ba?ba:ba=zt()}function wa(e){return 0===(1&e.mode)?1:0!==(2&Yo)&&0!==Qo?Qo&-Qo:null!==Qt.transition?(0===xa&&(e=_t,0===(4194240&(_t<<=1))&&(_t=64),xa=e),xa):0!==(e=It)?e:$()}function _a(e,t,n){if(50<va)throw va=0,ya=null,Error(a(185));var r=ka(e,t);return null===r?null:(jt(r,t,n),0!==(2&Yo)&&r===Xo||(r===Xo&&(0===(2&Yo)&&(ra|=t),4===ea&&Ea(r,Qo)),Ma(r,n),1===t&&0===Yo&&0===(1&e.mode)&&(ca(),Kt&&Zt())),r)}function ka(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function Ma(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-xt(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=Tt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=Ct(e,e===Xo?Qo:0);if(0===r)null!==n&&Lt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Lt(n),1===t)0===e.tag?function(e){Kt=!0,Xt(e)}(ja.bind(null,e)):Xt(ja.bind(null,e)),te?ne(function(){0===Yo&&Zt()}):Pt(Ft,Zt),n=null;else{switch(Dt(r)){case 1:n=Ft;break;case 4:n=Bt;break;case 16:default:n=Ut;break;case 536870912:n=Ht}n=Za(n,Ca.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ca(e,t){if(ba=-1,xa=0,0!==(6&Yo))throw Error(a(327));var n=e.callbackNode;if(Wa()&&e.callbackNode!==n)return null;var r=Ct(e,e===Xo?Qo:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=Oa(e,r);else{t=r;var i=Yo;Yo|=2;var o=La();for(Xo===e&&Qo===t||(ca(),Da(e,t));;)try{Fa();break}catch(l){Pa(e,l)}an(),Go.current=o,Yo=i,null!==Zo?t=0:(Xo=null,Qo=0,t=ea)}if(0!==t){if(2===t&&(0!==(i=At(e))&&(r=i,t=Ta(e,i))),1===t)throw n=ta,Da(e,0),Ea(e,r),Ma(e,zt()),n;if(6===t)Ea(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Gt(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=Oa(e,r))&&(0!==(o=At(e))&&(r=o,t=Ta(e,o))),1===t))throw n=ta,Da(e,0),Ea(e,r),Ma(e,zt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Ha(e,aa);break;case 3:if(Ea(e,r),(130023424&r)===r&&10<(t=sa+500-zt())){if(0!==Ct(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Sa(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=V(Ha.bind(null,e,aa),t);break}Ha(e,aa);break;case 4:if(Ea(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-xt(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=zt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vo(r/1960))-r)){e.timeoutHandle=V(Ha.bind(null,e,aa),r);break}Ha(e,aa);break;default:throw Error(a(329))}}}return Ma(e,zt()),e.callbackNode===n?Ca.bind(null,e):null}function Ta(e,t){var n=oa;return e.current.memoizedState.isDehydrated&&(Da(e,t).flags|=256),2!==(e=Oa(e,t))&&(t=aa,aa=n,null!==t&&Aa(t)),e}function Aa(e){null===aa?aa=e:aa.push.apply(aa,e)}function Ea(e,t){for(t&=~ia,t&=~ra,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xt(t),r=1<<n;e[n]=-1,t&=~r}}function ja(e){if(0!==(6&Yo))throw Error(a(327));Wa();var t=Ct(e,0);if(0===(1&t))return Ma(e,zt()),null;var n=Oa(e,t);if(0!==e.tag&&2===n){var r=At(e);0!==r&&(t=r,n=Ta(e,r))}if(1===n)throw n=ta,Da(e,0),Ea(e,t),Ma(e,zt()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ha(e,aa),Ma(e,zt()),null}function Na(e){null!==ma&&0===ma.tag&&0===(6&Yo)&&Wa();var t=Yo;Yo|=1;var n=Ko.transition,r=It;try{if(Ko.transition=null,It=1,e)return e()}
vendor: 4,178 bytes, line 2
2finally{It=r,Ko.transition=n,0===(6&(Yo=t))&&Zt()}}function Ia(){Jo=$o.current,st($o)}function Da(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==q&&(e.timeoutHandle=q,G(n)),null!==Zo)for(n=Zo.return;null!==n;){var r=n;switch(Un(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mt();break;case 3:hr(),st(dt),st(ut),br();break;case 5:mr(r);break;case 4:hr();break;case 13:case 19:st(gr);break;case 10:ln(r.type._context);break;case 22:case 23:Ia()}n=n.return}if(Xo=e,Zo=e=es(e.current,null),Qo=Jo=t,ea=0,ta=null,ia=ra=na=0,aa=oa=null,null!==pn){for(t=0;t<pn.length;t++)if(null!==(r=(n=pn[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}pn=null}return e}function Pa(e,t){for(;;){var n=Zo;try{if(an(),xr.current=hi,Cr){for(var r=_r.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Cr=!1}if(wr=0,Mr=kr=_r=null,Tr=!1,Ar=0,qo.current=null,null===n||null===n.return){ea=1,ta=t,Zo=null;break}e:{var o=e,s=n.return,l=n,c=t;if(t=Qo,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Ti(s);if(null!==f){f.flags&=-257,Ai(f,s,l,0,t),1&f.mode&&Ci(o,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){Ci(o,u,t),Ra();break e}c=Error(a(426))}else if(Vn&&1&l.mode){var v=Ti(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),Ai(v,s,l,0,t),er(c);break e}}o=c,4!==ea&&(ea=2),null===oa?oa=[o]:oa.push(o),c=vi(c,l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,bn(l,ki(0,c,t));break e;case 1:o=c;var y=l.type,b=l.stateNode;if(0===(128&l.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===ha||!ha.has(b)))){l.flags|=65536,t&=-t,l.lanes|=t,bn(l,Mi(l,o,t));break e}}l=l.return}while(null!==l)}Ua(n)}catch(x){t=x,Zo===n&&null!==n&&(Zo=n=n.return);continue}break}}function La(){var e=Go.current;return Go.current=hi,null===e?hi:e}function Ra(){0!==ea&&3!==ea&&2!==ea||(ea=4),null===Xo||0===(268435455&na)&&0===(268435455&ra)||Ea(Xo,Qo)}function Oa(e,t){var n=Yo;Yo|=2;var r=La();for(Xo===e&&Qo===t||Da(e,t);;)try{za();break}catch(i){Pa(e,i)}if(an(),Yo=n,Go.current=r,null!==Zo)throw Error(a(261));return Xo=null,Qo=0,ea}function za(){for(;null!==Zo;)Ba(Zo)}function Fa(){for(;null!==Zo&&!Rt();)Ba(Zo)}function Ba(e){var t=ua(e.alternate,e,Jo);e.memoizedProps=e.pendingProps,null===t?Ua(e):Zo=t,qo.current=null}function Ua(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Pi(n,t,Jo)))return void(Zo=n)}else{if(null!==(n=oo(n,t)))return n.flags&=32767,void(Zo=n);if(null===e)return ea=6,void(Zo=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Zo=t);Zo=t=e}while(null!==t);0===ea&&(ea=5)}function Ha(e,t){var n=It,r=Ko.transition;try{Ko.transition=null,It=1,function(e,t,n){do{Wa()}while(null!==ma);if(0!==(6&Yo))throw Error(a(327));var r=e.finishedWork,i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-xt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===Xo&&(Zo=Xo=null,Qo=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||fa||(fa=!0,Za(Ut,function(){return Wa(),null})),o=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||o){o=Ko.transition,Ko.transition=null;var s=It;It=1;var l=Yo;Yo|=4,qo.current=null,function(e,t){for(R(e.containerInfo),co=t;null!==co;)if(t=(e=co).child,0!==(1028&e.subtreeFlags)&&null!==t)t.return=e,co=t;else for(;null!==co;){e=co;try{var n=e.alternate;if(0!==(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case
26:case 4:case 17:break;case 1:if(null!==n){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode,s=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:en(e.type,r),i);o.__reactInternalSnapshotBeforeUpdate=s}break;case 3:Y&&Me(e.stateNode.containerInfo);break;default:throw Error(a(163))}}catch(l){Ga(e,e.return,l)}if(null!==(t=e.sibling)){t.return=e.return,co=t;break}co=e.return}n=ho,ho=!1}(e,r),function(e,t){for(co=t;null!==co;){var n=(t=co).deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e;Y?Mo(o,i,t):yo(o,i,t);var a=i.alternate;null!==a&&(a.return=null),i.return=null}catch(S){Ga(i,t,S)}}if(n=t.child,0!==(12854&t.subtreeFlags)&&null!==n)n.return=t,co=n;else for(;null!==co;){t=co;try{var s=t.flags;if(32&s&&Y&&xe(t.stateNode),512&s){var l=t.alternate;if(null!==l){var c=l.ref;null!==c&&("function"===typeof c?c(null):c.current=null)}}if(8192&s)switch(t.tag){case 13:if(null!==t.memoizedState){var u=t.alternate;null!==u&&null!==u.memoizedState||(sa=zt())}break;case 22:var d=null!==t.memoizedState,p=t.alternate,h=null!==p&&null!==p.memoizedState;if(n=t,Y)e:if(r=n,i=d,o=null,Y)for(var f=r;;){if(5===f.tag){if(null===o){o=f;var m=f.stateNode;i?Se(m):_e(f.stateNode,f.memoizedProps)}}else if(6===f.tag){if(null===o){var g=f.stateNode;i?we(g):ke(g,f.memoizedProps)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===r)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===r)break;for(;null===f.sibling;){if(null===f.return||f.return===r)break e;o===f&&(o=null),f=f.return}o===f&&(o=null),f.sibling.return=f.return,f=f.sibling}if(d&&!h&&0!==(1&n.mode)){co=n;for(var v=n.child;null!==v;){for(n=co=v;null!==co;){var y=(r=co).child;switch(r.tag){case 0:case 11:case 14:case 15:fo(4,r,r.return);break;case 1:uo(r,r.return);var b=r.stateNode;if("function"===typeof b.componentWillUnmount){var x=r.return;try{b.props=r.memoizedProps,b.state=r.memoizedState,b.componentWillUnmount()}catch(S){Ga(r,x,S)}}break;case 5:uo(r,r.return);break;case 22:if(null!==r.memoizedState){No(n);continue}}null!==y?(y.return=r,co=y):No(n)}v=v.sibling}}}switch(4102&s){case 2:wo(t),t.flags&=-3;break;case 6:wo(t),t.flags&=-3,Co(t.alternate,t);break;case 4096:t.flags&=-4097;break;case 4100:t.flags&=-4097,Co(t.alternate,t);break;case 4:Co(t.alternate,t)}}catch(S){Ga(t,t.return,S)}if(null!==(n=t.sibling)){n.return=t.return,co=n;break}co=t.return}}}(e,r),O(e.containerInfo),e.current=r,Ao(r,e,i),Ot(),Yo=l,It=s,Ko.transition=o}else e.current=r;if(fa&&(fa=!1,ma=e,ga=i),o=e.pendingLanes,0===o&&(ha=null),function(e){if(Vt&&"function"===typeof Vt.onCommitFiberRoot)try{Vt.onCommitFiberRoot(Wt,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),Ma(e,zt()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n(t[r]);if(da)throw da=!1,e=pa,pa=null,e;0!==(1&ga)&&0!==e.tag&&Wa(),o=e.pendingLanes,0!==(1&o)?e===ya?va++:(va=0,ya=e):va=0,Zt()}(e,t,n)}finally{Ko.transition=r,It=n}return null}function Wa(){if(null!==ma){var e=Dt(ga),t=Ko.transition,n=It;try{if(Ko.transition=null,It=16>e?16:e,null===ma)var r=!1;else{if(e=ma,ma=null,ga=0,0!==(6&Yo))throw Error(a(331));var i=Yo;for(Yo|=4,co=e.current;null!==co;){var o=co,s=o.child;if(0!==(16&co.flags)){var l=o.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(co=u;null!==co;){var d=co;switch(d.tag){case 0:case 11:case 15:fo(8,d,o)}var p=d.child;if(null!==p)p.return=d,co=p;else for(;null!==co;){var h=(d=co).sibling,f=d.return;if(bo(d),d===u){co=null;break}if(null!==h){h.return=f,co=h;break}co=f}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}co=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,co=s;else e:for(;null!==co;){if(0!==(2048&(o=co).flags))switch(o.tag){case 0:case 11:case 15:fo(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,co=y;break e}co=o.return}}var b=e.current;for(co=b;null!==co;){var x=(s=co).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,co=x;else e:for(s=b;null!==co;){if(0!==(2048&(l=co).flags))try{switch(l.tag){case 0:case 11:case 15:mo(9,l)}}catch(w){Ga(l,l.return,w)}if(l===s){co=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,co=S;break e}co=l.return}}if(Yo=i,Zt(),Vt&&"function"===typeof Vt.onPostCommitFiberRoot)try{Vt.onPostCommitFiberRoot(Wt,e)}catch(w){}r=!0}return r}finally{It=n,Ko.transition=t}}return!1}function Va(e,t,n){vn(e,t=ki(0,t=vi(n,t),1)),t=Sa(),null!==(e=ka(e,1))&&(jt(e,1,t),Ma(e,t))}function Ga(e,t,n){if(3===e.tag)Va(e,e,n);else for(;null!==t;){if(3===t.tag){Va(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ha||!ha.has(r))){vn(t,e=Mi(t,e=vi(n,e),1)),e=Sa(),null!==(t=ka(t,1))&&(jt(t,1,e),Ma(t,e));break}}t=t.return}}function qa(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Sa(),e.pingedLanes|=e.suspendedLanes&n,Xo===e&&(Qo&n)===n&&(4===ea||3===ea&&(130023424&Qo)===Qo&&500>zt()-sa?Da(e,0):ia|=n),Ma(e,t)}function Ka(e,t){0===t&&(0===(1&e.mode)?t=1:(t=kt,0===(130023424&(kt<<=1))&&(kt=4194304)));var n=Sa();null!==(e=ka(e,t))&&(jt(e,t,n),Ma(e,n))}function Ya(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ka(e,n)}function Xa(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Ka(e,n)}function Za(e,t){return Pt(e,t)}function Qa(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 4,350 bytes, line 2
2ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ja(e,t,n,r){return new Qa(e,t,n,r)}function $a(e){return!(!(e=e.prototype)||!e.isReactComponent)}function es(e,t){var n=e.alternate;return null===n?((n=Ja(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ts(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)$a(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case u:return ns(n.children,i,o,t);case d:s=8,i|=8;break;case p:return(e=Ja(12,n,t,2|i)).elementType=p,e.lanes=o,e;case g:return(e=Ja(13,n,t,i)).elementType=g,e.lanes=o,e;case v:return(e=Ja(19,n,t,i)).elementType=v,e.lanes=o,e;case x:return rs(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case h:s=10;break e;case f:s=9;break e;case m:s=11;break e;case y:s=14;break e;case b:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ja(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function ns(e,t,n,r){return(e=Ja(7,e,r,t)).lanes=n,e}function rs(e,t,n,r){return(e=Ja(22,e,r,t)).elementType=x,e.lanes=n,e.stateNode={},e}function is(e,t,n){return(e=Ja(6,e,null,t)).lanes=n,e}function os(e,t,n){return(t=Ja(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function as(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=q,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Et(0),this.expirationTimes=Et(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Et(0),this.identifierPrefix=r,this.onRecoverableError=i,Z&&(this.mutableSourceEagerHydrationData=null)}function ss(e,t,n,r,i,o,a,s,l){return e=new as(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ja(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},fn(o),e}function ls(e){if(!e)return ct;e:{if(M(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(ft(n))return vt(e,n,t)}return t}function cs(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=A(t))?null:e.stateNode}function us(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ds(e,t){us(e,t),(e=e.alternate)&&us(e,t)}function ps(e){return null===(e=A(e))?null:e.stateNode}function hs(){return null}return ua=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||dt.current)Ri=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return Ri=!1,function(e,t,n){switch(t.tag){case 3:qi(t),$n();break;case 5:fr(t);break;case 1:ft(t.type)&&yt(t);break;case 4:pr(t,t.stateNode.containerInfo);break;case 10:sn(0,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(lt(gr,1&gr.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Zi(e,t,n):(lt(gr,1&gr.current),null!==(e=io(e,t,n))?e.sibling:null);lt(gr,1&gr.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return ro(e,t,n);t.flags|=128}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),lt(gr,gr.current),r)break;return null;case 22:case 23:return t.lanes=0,Ui(e,t,n)}return io(e,t,n)}
2(e,t,n);Ri=0!==(131072&e.flags)}else Ri=!1,Vn&&0!==(1048576&t.flags)&&Fn(t,In,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=ht(t,ut.current);un(t,n),i=Ir(null,t,r,e,i,n);var o=Dr();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(o=!0,yt(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,fn(t),i.updater=kn,t.stateNode=i,i._reactInternals=t,An(t,r,e,n),t=Gi(null,t,r,!0,o,n)):(t.tag=0,Vn&&o&&Bn(t),Oi(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return $a(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===m)return 11;if(e===y)return 14}return 2}(r),e=en(r,e),i){case 0:t=Wi(null,t,r,e,n);break e;case 1:t=Vi(null,t,r,e,n);break e;case 11:t=zi(null,t,r,e,n);break e;case 14:t=Fi(null,t,r,en(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Wi(e,t,r,i=t.elementType===r?i:en(r,i),n);case 1:return r=t.type,i=t.pendingProps,Vi(e,t,r,i=t.elementType===r?i:en(r,i),n);case 3:e:{if(qi(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,mn(e,t),xn(t,r,null,n);var s=t.memoizedState;if(r=s.element,Z&&o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ki(e,t,r,n,i=Error(a(423)));break e}if(r!==i){t=Ki(e,t,r,n,i=Error(a(424)));break e}for(Z&&(Wn=Ue(t.stateNode.containerInfo),Hn=t,Vn=!0,qn=null,Gn=!1),n=ar(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if($n(),r===i){t=io(e,t,n);break e}Oi(e,t,r,n)}t=t.child}return t;case 5:return fr(t),null===e&&Zn(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,H(r,i)?s=null:null!==o&&H(r,o)&&(t.flags|=32),Hi(e,t),Oi(e,t,s,n),t.child;case 6:return null===e&&Zn(t),null;case 13:return Zi(e,t,n);case 4:return pr(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=or(t,null,r,n):Oi(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,zi(e,t,r,i=t.elementType===r?i:en(r,i),n);case 7:return Oi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Oi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,sn(0,r,s=i.value),null!==o)if(Gt(o.value,s)){if(o.children===i.children&&!dt.current){t=io(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===o.tag){(c=gn(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),cn(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),cn(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}Oi(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,un(t,n),r=r(i=dn(i)),t.flags|=1,Oi(e,t,r,n),t.child;case 14:return i=en(r=t.type,t.pendingProps),Fi(e,t,r,i=en(r.type,i),n);case 15:return Bi(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:en(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ft(r)?(e=!0,yt(t)):e=!1,un(t,n),Cn(t,r,i),An(t,r,i,n),Gi(null,t,r,!0,e,n);case 19:return ro(e,t,n);case 22:return Ui(e,t,n)}throw Error(a(156,t.tag))},t.attemptContinuousHydration=function(e){13===e.tag&&(_a(e,134217728,Sa()),ds(e,134217728))},t.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=Sa(),n=wa(e);_a(e,n,t),ds(e,n)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mt(t.pendingLanes);0!==n&&(Nt(t,1|n),Ma(t,zt()),0===(6&Yo)&&(ca(),Zt()))}break;case 13:var r=Sa();Na(function(){return _a(e,1,r)}),ds(e,1)}},t.batchedUpdates=function(e,t){var n=Yo;Yo|=1;try{return e(t)}finally{0===(Yo=n)&&(ca(),Kt&&Zt())}},t.createComponentSelector=function(e){return{$$typeof:Do,value:e}},t.createContainer=function(e,t,n,r,i,o,a){return ss(e,t,!1,null,0,r,0,o,a)},t.createHasPseudoClassSelector=function(e){return{$$typeof:Po,value:e}},t.createHydrationContainer=function(e,t,n,r,i,o,a,s,l){return(e=ss(n,r,!0,e,0,o,0,s,l)).context=ls(null),n=e.current,(o=gn(r=Sa(),i=wa(n))).callback=void 0!==t&&null!==t?t:null,vn(n,o),e.current.lanes=i,jt(e,i,r),Ma(e,r),e},t.createPortal=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:c,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:Lo,value:e}},t.createTestNameSelector=function(e){return{$$typeof:Ro,value:e}},t.createTextSelector=function(e){return{$$typeof:Oo,value:e}},t.deferredUpdates=function(e){var t=It,n=Ko.transition;try{return Ko.transition=null,It=16,e()}finally{It=t,Ko.transition=n}},t.discreteUpdates=function(e,t,n,r,i){var o=It,a=Ko.transition;try{return Ko.transition=null,It=1,e(t,n,r,i)}finally{It=o,Ko.transition=a,0===Yo&&ca()}},t.findAllNodes=Wo,t.findBoundingRects=function(e,t){if(!re)throw Error(a(363));t=Wo(e,t),e=[];for(var n=0;n<t.length;n++)e.push(oe(t[n]));for(t=e.length-1;0<t;t--)for(var r=(n=e[t]).x,i=r+n.width,o=n.y,s=o+n.height,l=t-1;0<=l;l--)if(t!==l){var c=e[l],u=c.x,d=u+c.width,p=c.y,h=p+c.height;if(r>=u&&o>=p&&i<=d&&s<=h){e.splice(t,1);break}if(!(r!==u||n.width!==c.width||h<o||p>s)){p>o&&(c.height+=p-o,c.y=o),h<s&&(c.height=s-p),e.splice(t,1);break}if(!(o!==p||n.height!==c.height||d<r||u>i)){u>r&&(c.width+=u-r,c.x=r),d<i&&(c.width=i-u),e.splice(t,1);break}}return e},t.findHostInstance=cs,t.findHostInstanceWithNoPortals=function(e){return null===(e=null!==(e=T(e))?j(e):null)?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return cs(e)},t.flushControlled=function(e){var t=Yo;Yo|=1;var n=Ko.transition,r=It;try{Ko.transition=null,It=1,e()}
2finally{It=r,Ko.transition=n,0===(Yo=t)&&(ca(),Zt())}},t.flushPassiveEffects=Wa,t.flushSync=Na,t.focusWithin=function(e,t){if(!re)throw Error(a(363));for(t=Ho(e=Fo(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!se(n)){if(5===n.tag&&ce(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return It},t.getFindAllNodesFailureDescription=function(e,t){if(!re)throw Error(a(363));var n=0,r=[];e=[Fo(e),0];for(var i=0;i<e.length;){var o=e[i++],s=e[i++],l=t[s];if((5!==o.tag||!se(o))&&(Bo(o,l)&&(r.push(Uo(l)),++s>n&&(n=s)),s<t.length))for(o=o.child;null!==o;)e.push(o,s),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Uo(t[n]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},t.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?D(e.child.stateNode):e.child.stateNode:null},t.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:ps,findFiberByHostInstance:e.findFiberByHostInstance||hs,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"},"undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Wt=t.inject(e),Vt=t}catch(n){}e=!!t.checkDCE}}return e},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(e,t,n,r){if(!re)throw Error(a(363));e=Wo(e,t);var i=ue(e,n,r).disconnect;return{disconnect:function(){i()}}},t.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=It;try{return It=e,t()}finally{It=n}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(e,t,n,r){var i=t.current,o=Sa(),a=wa(i);return n=ls(n),null===t.context?t.context=n:t.pendingContext=n,(t=gn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),vn(i,t),null!==(e=_a(i,a,o))&&yn(e,i,a),a},t}},77067:(e,t,n)=>{"use strict";e.exports=n(34612)},77198:(e,t,n)=>{"use strict";n(27713)("big",function(e){return function(){return e(this,"big","","")}})},77275:(e,t,n)=>{window,e.exports=function(e,t,n){return o={},r.m=i=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"==o||"number"==o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"==o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var i,o,a,s;window,e.exports=(i=n(3),o=n(5),s={},r.m=a=[function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1);function o(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),i=t.getEndKey(),o=n.getBlockMap();return o.toSeq().skipUntil(function(e,t){return t===r}).takeUntil(function(e,t){return t===i}).concat([[i,o.get(i)]])}function a(e){return o(e).toList()}function s(e){if(e)return a(e).get(0)}function l(e){if(e){var t=s(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach(function(e,n){e.get("key")===t.get("key")&&(r=n-1)}),-1<r)return n.get(r)}}function c(e){return e?e.getCurrentContent().getBlockMap().toList():new i.List}function u(e){var t=a(e);if(!t.some(function(e){return e.type!==t.get(0).type}))return t.get(0).type}function d(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function p(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),i=n.getFocusOffset(),o=a(e);if(0<o.size){if(n.getIsBackward()){var s=r;r=i,i=s}for(var l=0;l<o.size;l+=1){var c=0===l?r:0,u=l===o.size-1?i:o.get(l).getText().length;t+=o.get(l).getText().slice(c,u)}}return t}function h(e){var t=e.getCurrentContent(),n=e.getSelection(),i=r.Modifier.removeRange(t,n,"forward"),o=i.getSelectionAfter(),a=i.getBlockForKey(o.getStartKey());return i=r.Modifier.insertText(i,o,"\n",a.getInlineStyleAt(o.getStartOffset()),null),r.EditorState.push(e,i,"insert-fragment")}function f(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return d(r.EditorState.push(e,t,"split-block"))}function m(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),i=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,i,"remove-range")}function g(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function v(e){var t=new i.Map({}),n=a(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach(function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))}),0===t.size)return t=t.clear(),"break"},o=0;o<n.size&&"break"!==r(o);o+=1);return t}var y=Object(i.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(y);function x(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function S(e,t,n){var i,a=e.getSelection();i=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var s=e.getCurrentContent(),l=s.getBlockForKey(i),c=l.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;var u=s.getBlockBefore(i);if(!u)return e;if(u.getType()!==c)return e;var d=l.getDepth();if(1===t&&d===n)return e;var p,h,f,m,g,v,y,b=Math.min(u.getDepth()+1,n),x=(h=t,f=b,m=(p=e).getSelection(),v=(g=p.getCurrentContent()).getBlockMap(),y=o(p).map(function(e){var t=e.getDepth()+h;return t=Math.max(0,Math.min(t,f)),e.set("depth",t)}),v=v.merge(y),g.merge({blockMap:v,selectionBefore:m,selectionAfter:m}));return r.EditorState.push(e,x,"adjust-depth")}function w(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):h(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockForKey(r);if(!x(i)&&"unstyled"!==i.getType()&&i.getLength()===t.getStartOffset())return f(e);if(x(i)&&0===i.getLength()){var o=i.getDepth();if(0===o)return d(e);if(0<o)return S(e,-1,o)}}}(e)}function _(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}
vendor: 39,852 bytes, line 2
2function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){return(M="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){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(e){n[e]=0<=r.indexOf(e)}),n}var i=t.getStartOffset(),o=t.getEndOffset(),s=a(e);if(0<s.size){var l=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<s.size;t+=1){var n=0===t?i:0,r=t===s.size-1?o:s.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=s.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(t){e[t]=e[t]&&r.get(t)===t})},l=n;l<r;l+=1)a(l)}return{v:e}}();if("object"===M(l))return l.v}return{}}function T(e){var t,n=e.getSelection(),r=n.getStartOffset(),i=n.getEndOffset();r===i&&0===r?i=1:r===i&&--r;for(var o=s(e),a=r;a<i;a+=1){var l=o.getEntityAt(a);if(!l){t=void 0;break}if(a===r)t=l;else if(t!==l){t=void 0;break}}return t}function A(e,t){var n,r=s(e);return r.findEntityRanges(function(e){return e.get("entity")===t},function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}}),n}function E(e,t,n){N[e]["".concat(e.toLowerCase(),"-").concat(n)]=k({},"".concat(t),n)}function j(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},N.color,{},N.bgcolor,{},N.fontSize,{},N.fontFamily,{CODE:N.CODE,SUPERSCRIPT:N.SUPERSCRIPT,SUBSCRIPT:N.SUBSCRIPT})}var N={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function I(e,t,n){var i=e.getSelection(),o=Object.keys(N[t]).reduce(function(e,t){return r.Modifier.removeInlineStyle(e,i,t)},e.getCurrentContent()),a=r.EditorState.push(e,o,"changeinline-style"),s=e.getCurrentInlineStyle();if(i.isCollapsed()&&(a=s.reduce(function(e,t){return r.RichUtils.toggleInlineStyle(e,t)},a)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)s.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var l="bgcolor"===t?"backgroundColor":t;s.has("".concat(l,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(t.toLowerCase(),"-").concat(n)),E(t,l,n))}return a}function D(e){e&&e.getCurrentContent().getBlockMap().map(function(e){return e.get("characterList")}).toList().flatten().forEach(function(e){e&&0===e.indexOf("color-")?E("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?E("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?E("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&E("fontFamily","fontFamily",e.substr(11))})}function P(e,t,n){var r=e.getInlineStyleAt(n).toList().filter(function(e){return e.startsWith(t.toLowerCase())});if(r&&0<r.size)return r.get(0)}function L(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach(function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter(function(e){return e.startsWith(t.toLowerCase())});if(n&&0<n.size)return n.get(0)}(e,t)}),{v:r};var i=n.getStartOffset(),o=n.getEndOffset(),s=a(e);if(0<s.size){for(var l=function(e){var n=0===e?i:0,a=e===s.size-1?o:s.get(e).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var l=function(i){i===n?t.forEach(function(t){r[t]=P(s.get(e),t,i)}):t.forEach(function(t){r[t]&&r[t]!==P(s.get(e),t,i)&&(r[t]=void 0)})},c=n;c<a;c+=1)l(c)},c=0;c<s.size;c+=1)l(c);return{v:r}}}();if("object"===M(n))return n.v}return{}}function R(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach(function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)}),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",function(){return x}),n.d(t,"changeDepth",function(){return S}),n.d(t,"handleNewLine",function(){return w}),n.d(t,"getEntityRange",function(){return A}),n.d(t,"getCustomStyleMap",function(){return j}),n.d(t,"toggleCustomInlineStyle",function(){return I}),n.d(t,"getSelectionEntity",function(){return T}),n.d(t,"extractInlineStyle",function(){return D}),n.d(t,"removeAllInlineStyles",function(){return R}),n.d(t,"getSelectionInlineStyle",function(){return C}),n.d(t,"getSelectionCustomInlineStyle",function(){return L}),n.d(t,"getSelectedBlocksMap",function(){return o}),n.d(t,"getSelectedBlocksList",function(){return a}),n.d(t,"getSelectedBlock",function(){return s}),n.d(t,"getBlockBeforeSelectedBlock",function(){return l}),n.d(t,"getAllBlocks",function(){return c}),n.d(t,"getSelectedBlocksType",function(){return u}),n.d(t,"removeSelectedBlocksStyle",function(){return d}),n.d(t,"getSelectionText",function(){return p}),n.d(t,"addLineBreakRemovingSelection",function(){return h}),n.d(t,"insertNewUnstyledBlock",function(){return f}),n.d(t,"clearEditorContent",function(){return m}),n.d(t,"setBlockData",function(){return g}),n.d(t,"getSelectedBlocksMetadata",function(){return v}),n.d(t,"blockRenderMap",function(){return b})}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var i,o,a,s;window,e.exports=(i=n(5),o=n(3),s={},r.m=a=[function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(0),o=function(e,t,n){var r,o=e.textContent;return""===o.trim()?{chunk:(r=n,{text:" ",inlines:[new i.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:o,inlines:Array(o.length).fill(t),entities:Array(o.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new i.OrderedSet],entities:new Array(1),blocks:[]}},s=function(){return{text:"",inlines:[],entities:[],blocks:[]}},l=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new i.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new i.Map({})}]}},u=function(e){return{text:"\r ",inlines:[new i.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new i.Map({})}]}},d=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},p=new i.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),h={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function f(e){return e.style.textAlign?new i.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new i.Map({"margin-left":e.style.marginLeft}):void 0}var m=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",function(){return b});var g=" ",v=new RegExp(" ","g"),y=!0;function b(e,t){var n,b,x=(n=t,(b=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(v,g)))?(y=!0,{chunk:function e(t,n,i,g,v,b){var x=t.nodeName.toLowerCase();if(b){var S=b(x,t);if(S){var w=r.Entity.__create(S.type,S.mutability,S.data||{});return{chunk:u(w)}}}if("#text"===x&&"\n"!==t.textContent)return o(t,n,v);if("br"===x)return{chunk:a()};if("img"===x&&t instanceof HTMLImageElement){var _={};_.src=t.getAttribute&&t.getAttribute("src")||t.src,_.alt=t.alt,_.height=t.style.height,_.width=t.style.width,t.style.float&&(_.alignment=t.style.float);var k=r.Entity.__create("IMAGE","MUTABLE",_);return{chunk:u(k)}}if("video"===x&&t instanceof HTMLVideoElement){var M={};M.src=t.getAttribute&&t.getAttribute("src")||t.src,M.alt=t.alt,M.height=t.style.height,M.width=t.style.width,t.style.float&&(M.alignment=t.style.float);var C=r.Entity.__create("VIDEO","MUTABLE",M);return{chunk:u(C)}}if("iframe"===x&&t instanceof HTMLIFrameElement){var T={};T.src=t.getAttribute&&t.getAttribute("src")||t.src,T.height=t.height,T.width=t.width;var A=r.Entity.__create("EMBEDDED_LINK","MUTABLE",T);return{chunk:u(A)}}var E,j=function(e,t){var n=p.filter(function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)}).keySeq().toSet().toArray();if(1===n.length)return n[0]}(x,g);j&&("ul"===x||"ol"===x?(g=x,i+=1):("unordered-list-item"!==j&&"ordered-list-item"!==j&&(g="",i=-1),y?(E=l(j,f(t)),y=!1):E=c(j,i,f(t)))),E=E||s(),n=function(e,t,n){var r,i=h[e];if(i)r=n.add(i).toOrderedSet();else if(t instanceof HTMLElement){var o=t;r=(r=n).withMutations(function(e){var t=o.style.color,n=o.style.backgroundColor,r=o.style.fontSize,i=o.style.fontFamily.replace(/^"|"$/g,""),a=o.style.fontWeight,s=o.style.textDecoration,l=o.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),i&&e.add("fontfamily-".concat(i)),"bold"===a&&e.add(h.strong),"underline"===s&&e.add(h.ins),"italic"===l&&e.add(h.em)}).toOrderedSet()}return r}(x,t,n);for(var N=t.firstChild;N;){var I=e(N,n,i,g,m(N)||v,b).chunk;E=d(E,I),N=N.nextSibling}return{chunk:E}}(b,new i.OrderedSet,-1,"",void 0,n).chunk}):null);if(x){var S=x.chunk,w=new i.OrderedMap({});S.entities&&S.entities.forEach(function(e){e&&(w=w.set(e,r.Entity.__get(e)))});var _=0;return{contentBlocks:S.text.split("\r").map(function(e,t){var n=_+e.length,o=S&&S.inlines.slice(_,n),a=S&&S.entities.slice(_,n),s=new i.List(o.map(function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)}));return _=n,new r.ContentBlock({key:Object(r.genKey)(),type:S&&S.blocks[t]&&S.blocks[t].type||"unstyled",depth:S&&S.blocks[t]&&S.blocks[t].depth,data:S&&S.blocks[t]&&S.blocks[t].data||new i.Map({}),text:e,characterList:s})}),entityMap:w}}return null}}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function d(){return function(e,t){t.normalize(e)}}function p(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===i(n))return"[object RegExp]"===i(n.validate)?a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):o(n.validate)?a.validate=n.validate:u(t,n),void(o(n.normalize)?a.normalize=n.normalize:n.normalize?u(t,n):a.normalize=d());"[object String]"!==i(n)?u(t,n):l.push(t)}}),l.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:d()};var p,h=Object.keys(e.__compiled__).filter(function(t){return 0<t.length&&e.__compiled__[t]}).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+h+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+h+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(p=e).__index__=-1,p.__text_cache__=""}function h(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new h(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function m(e,t){if(!(this instanceof m))return new m(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}m.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},m.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},m.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),0<=this.__index__},m.prototype.pretest=function(e){return this.re.pretest.test(e)},m.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},m.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},m.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),p(this),this},m.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},m.prototype.onCompile=function(){},e.exports=m},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){"use strict";var r=n(11);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",function(){return ai});var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(3),l=n(4),c=n(2),u=n.n(c);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 p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var h=p(function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach(function(t){t(e)})},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",function(){t.editorFlag=!0}),document&&(document.addEventListener("click",function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())}),document.addEventListener("keydown",function(e){"Escape"===e.key&&t.closeAllModals()}))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter(function(t){return t!==e})},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}});function f(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 m(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var g,v=m(function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused)&&!(t.editorFocused=!1):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}}),y=[],b={onKeyDown:function(e){y.forEach(function(t){t(e)})},registerCallBack:function(e){y.push(e)},deregisterCallBack:function(e){y=y.filter(function(t){return t!==e})}},x=function(){g=!0},S=function(){g=!1},w=function(){return g};function _(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function k(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function M(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function C(e){e.stopPropagation()}function T(e){return e[e.options[0]].icon}function A(e,t){if(e&&void 0===t)return e;var n={};return k(e,function(e,r){var i;i=r,"[object Object]"===Object.prototype.toString.call(i)?n[e]=A(r,t[e]):n[e]=void 0!==t[e]?t[e]:r}),n}var E=n(6),j=n.n(E),N=n(5);function I(e){return(I="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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(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 L(e,t){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function R(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=O(t);if(n){var i=O(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var z=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(a,r.Component);var e,t,n,o=R(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,i=t.value;n||r(i)},e}return e=a,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,o=t.activeClassName,a=t.active,s=t.disabled,l=t.title;return i.a.createElement("div",{className:u()("rdw-option-wrapper",r,(D(e={},"rdw-option-active ".concat(o),a),D(e,"rdw-option-disabled",s),e)),onClick:this.onClick,"aria-selected":a,title:l},n)}}])&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function F(e){return(F="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 B(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 U(e,t){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function H(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=W(t);if(n){var i=W(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}z.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},z.defaultProps={activeClassName:""},n(12);var V=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(a,r.Component);var e,t,n,o=H(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,o=t.className,a=t.optionWrapperClassName,s=t.ariaLabel,l=t.onExpandEvent,c=t.title,d=this.state.highlighted,p=r.slice(1,r.length);return i.a.createElement("div",{className:u()("rdw-dropdown-wrapper",o),"aria-expanded":n,"aria-label":s||"rdw-dropdown"},i.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:l,title:c},r[0],i.a.createElement("div",{className:u()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?i.a.createElement("ul",{className:u()("rdw-dropdown-optionwrapper",a),onClick:C},i.a.Children.map(p,function(t,n){return t&&i.a.cloneElement(t,{onSelect:e.onChange,highlighted:d===n,setHighlighted:e.setHighlighted,index:n})})):void 0)}}])&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function G(e){return(G="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 q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(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 Y(e,t){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function X(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Z(t);if(n){var i=Z(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}V.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var Q=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(a,r.Component);var e,t,n,o=X(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).onClick=function(t){var n=e.props,r=n.onSelect,i=n.onClick,o=n.value;n.disabled||(r&&r(o),i&&(t.stopPropagation(),i(o)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=a,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,o=t.disabled,a=t.highlighted,s=t.className,l=t.activeClassName,c=t.disabledClassName,d=t.highlightedClassName,p=t.title;return i.a.createElement("li",{className:u()("rdw-dropdownoption-default",s,(q(e={},"rdw-dropdownoption-active ".concat(l),r),q(e,"rdw-dropdownoption-highlighted ".concat(d),a),q(e,"rdw-dropdownoption-disabled ".concat(c),o),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:p},n)}}])&&K(e.prototype,t),n&&K(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function J(e){return(J="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 $(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 ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=ne(t);if(n){var i=ne(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Q.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},Q.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var re=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(a,r.Component);var e,t,n,o=te(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return e=a,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,o=e.translations;return i.a.createElement("div",{className:u()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map(function(e,a){return i.a.createElement(z,{key:a,value:e,onClick:r,className:u()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||o["components.c
2ontrols.inline.".concat(e)]},i.a.createElement("img",{alt:"",src:t[e].icon}))}))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,o=e.onExpandEvent,a=e.doCollapse,s=e.currentState,l=e.onChange,c=e.translations,d=t.className,p=t.dropdownClassName,h=t.title;return i.a.createElement(V,{className:u()("rdw-inline-dropdown",d),optionWrapperClassName:u()(p),onChange:l,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:o,"aria-label":"rdw-inline-control",title:h},i.a.createElement("img",{src:T(t),alt:""}),t.options.map(function(e,n){return i.a.createElement(Q,{key:n,value:e,className:u()("rdw-inline-dropdownoption",t[e].className),active:!0===s[e]||"MONOSPACE"===e&&s.CODE,title:t[e].title||c["components.controls.inline.".concat(e)]},i.a.createElement("img",{src:t[e].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function ie(e){return(ie="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 oe(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 ae(e,t){return(ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=le(t);if(n){var i=le(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}re.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ce=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ae(e,t)}(a,r.Component);var e,t,n,o=se(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,i=r.editorState,o=r.onChange,a=s.RichUtils.toggleInlineStyle(i,n);if("subscript"===e||"superscript"===e){var l="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",c=s.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),l);a=s.EditorState.push(a,c,"change-inline-style")}a&&o(a)},t.changeKeys=function(e){if(e){var t={};return k(e,function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n}),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var n=t.props,r=n.editorState,i=n.modalHandler;return t.state={currentStyles:r?t.changeKeys(Object(l.getSelectionInlineStyle)(r)):{}},i.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(l.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,o=r.expanded,a=r.currentStyles,s=t.component||re;return i.a.createElement(s,{config:t,translations:n,currentState:a,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&oe(e.prototype,t),n&&oe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function ue(e){return(ue="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 de(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 pe(e,t){return(pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function he(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=fe(t);if(n){var i=fe(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ce.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var me=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pe(e,t)}(a,r.Component);var e,t,n,o=he(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.c
2ontrols.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,o=t.currentState.blockType;return i.a.createElement("div",{className:u()("rdw-inline-wrapper",n)},e.map(function(e,t){return i.a.createElement(z,{key:t,value:e.label,active:o===e.label,onClick:r},e.displayName)}))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,o=n.dropdownClassName,a=n.title,s=t.currentState.blockType,l=t.expanded,c=t.doExpand,d=t.onExpandEvent,p=t.doCollapse,h=t.onChange,f=t.translations,m=this.state.blockTypes.filter(function(e){return e.label===s}),g=m&&m[0]&&m[0].displayName;return i.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},i.a.createElement(V,{className:u()("rdw-block-dropdown",r),optionWrapperClassName:u()(o),onChange:h,expanded:l,doExpand:c,doCollapse:p,onExpandEvent:d,title:a||f["components.controls.blocktype.blocktype"]},i.a.createElement("span",null,g||f["components.controls.blocktype.blocktype"]),e.map(function(e,t){return i.a.createElement(Q,{active:s===e.label,value:e.label,key:t},e.displayName)})))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter(function(t){var n=t.label;return-1<e.options.indexOf(n)});return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&de(e.prototype,t),n&&de(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();me.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var ge=me;function ve(e){return(ve="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 ye(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 be(e,t){return(be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xe(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Se(t);if(n){var i=Se(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var we=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}(a,r.Component);var e,t,n,o=xe(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find(function(t){return t.label===e}).style,r=t.props,i=r.editorState,o=r.onChange,a=s.RichUtils.toggleBlockType(i,n);a&&o(a)};var n=e.editorState,r=e.modalHandler;return t.state={expanded:!1,currentBlockType:n?Object(l.getSelectedBlocksType)(n):"unstyled"},r.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(l.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,o=r.expanded,a=r.currentBlockType,s=t.component||ge,l=this.blocksTypes.find(function(e){return e.style===a});return i.a.createElement(s,{config:t,translations:n,currentState:{blockType:l&&l.label},onChange:this.toggleBlockType,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ye(e.prototype,t),n&&ye(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();
vendor: 34,424 bytes, line 2
2we.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var _e=we;function ke(e){return(ke="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 Me(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 Ce(e,t){return(Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Te(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Ae(t);if(n){var i=Ae(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var Ee=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}(a,r.Component);var e,t,n,o=Te(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={defaultFontSize:void 0},e}return e=a,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,o=t.dropdownClassName,a=t.options,s=t.title,l=e.onChange,c=e.expanded,d=e.doCollapse,p=e.onExpandEvent,h=e.doExpand,f=e.translations,m=this.props.currentState.fontSize,g=this.state.defaultFontSize;return g=Number(g),m=m||a&&0<=a.indexOf(g)&&g,i.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},i.a.createElement(V,{className:u()("rdw-fontsize-dropdown",r),optionWrapperClassName:u()(o),onChange:l,expanded:c,doExpand:h,doCollapse:d,onExpandEvent:p,title:s||f["components.controls.fontsize.fontsize"]},m?i.a.createElement("span",null,m):i.a.createElement("img",{src:n,alt:""}),a.map(function(e,t){return i.a.createElement(Q,{className:"rdw-fontsize-option",active:m===e,value:e,key:t},e)})))}}])&&Me(e.prototype,t),n&&Me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function je(e){return(je="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 Ne(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 Ie(e,t){return(Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function De(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Pe(t);if(n){var i=Pe(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ee.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Le=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ie(e,t)}(a,r.Component);var e,t,n,o=De(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontSize=function(e){var n=t.props,r=n.editorState,i=n.onChange,o=Object(l.toggleCustomInlineStyle)(r,"fontSize",e);o&&i(o)};var n=e.editorState,r=e.modalHandler;return t.state={expanded:void 0,currentFontSize:n?Object(l.getSelectionCustomInlineStyle)(n,["FONTSIZE"]).FONTSIZE:void 0},r.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(l.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,o=r.expanded,a=r.currentFontSize,s=t.component||Ee,l=a&&Number(a.substring(9));return i.a.createElement(s,{config:t,translations:n,currentState:{fontSize:l},onChange:this.toggleFontSize,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ne(e.prototype,t),n&&Ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Re(e){return(Re="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 Oe(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 ze(e,t){return(ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fe(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Be(t);if(n){var i=Be(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Le.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var Ue=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ze(e,t)}(a,r.Component);var e,t,n,o=Fe(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={defaultFontFamily:void 0},e}return e=a,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,o=n.dropdownClassName,a=n.options,s=n.title,l=t.translations,c=t.onChange,d=t.expanded,p=t.doCollapse,h=t.onExpandEvent,f=t.doExpand,m=this.props.currentState.fontFamily;return m=m||a&&e&&a.some(function(t){return t.toLowerCase()===e.toLowerCase()})&&e,i.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},i.a.createElement(V,{className:u()("rdw-fontfamily-dropdown",r),optionWrapperClassName:u()("rdw-fontfamily-optionwrapper",o),onChange:c,expanded:d,doExpand:f,doCollapse:p,onExpandEvent:h,title:s||l["components.controls.fontfamily.fontfamily"]},i.a.createElement("span",{className:"rdw-fontfamily-placeholder"},m||l["components.controls.fontfamily.fontfamily"]),a.map(function(e,t){return i.a.createElement(Q,{active:m===e,value:e,key:t},e)})))}}])&&Oe(e.prototype,t),n&&Oe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();Ue.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var He=Ue;function We(e){return(We="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 Ve(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 Ge(e,t){return(Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qe(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Ke(t);if(n){var i=Ke(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Ke(e){return(Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ge(e,t)}(a,r.Component);var e,t,n,o=qe(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontFamily=function(e){var n=t.props,r=n.editorState,i=n.onChange,o=Object(l.toggleCustomInlineStyle)(r,"fontFamily",e);o&&i(o)};var n=e.editorState,r=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:n?Object(l.getSelectionCustomInlineStyle)(n,["FONTFAMILY"]).FONTFAMILY:void 0},r.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(l.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,o=r.expanded,a=r.currentFontFamily,s=t.component||He,l=a&&a.substring(11);return i.a.createElement(s,{translations:n,config:t,currentState:{fontFamily:l},onChange:this.toggleFontFamily,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ve(e.prototype,t),n&&Ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Xe(e){return(Xe="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 Ze(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 Qe(e,t){return(Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Je(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=$e(t);if(n){var i=$e(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function $e(e){return($e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ye.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var et=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qe(e,t)}(a,r.Component);var e,t,n,o=Je(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=a,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,o=e.indentDisabled,a=e.outdentDisabled,s=t.options,l=t.unordered,c=t.ordered,d=t.indent,p=t.outdent,h=t.className;return i.a.createElement("div",{className:u()("rdw-list-wrapper",h),"aria-label":"rdw-list-control"},0<=s.indexOf("unordered")&&i.a.createElement(z,{value:"unordered",onClick:this.toggleBlockType,className:u()(l.className),active:"unordered"===n,title:l.title||r["components.controls.list.unordered"]},i.a.createElement("img",{src:l.icon,alt:""})),0<=s.indexOf("ordered")&&i.a.createElement(z,{value:"ordered",onClick:this.toggleBlockType,className:u()(c.className),active:"ordered"===n,title:c.title||r["components.controls.list.ordered"]},i.a.createElement("img",{src:c.icon,alt:""})),0<=s.indexOf("indent")&&i.a.createElement(z,{onClick:this.indent,disabled:o,className:u()(d.className),title:d.title||r["components.controls.list.indent"]},i.a.createElement("img",{src:d.icon,alt:""})),0<=s.indexOf("outdent")&&i.a.createElement(z,{onClick:this.outdent,disabled:a,className:u()(p.className),title:p.title||r["components.controls.list.outdent"]},i.a.createElement("img",{src:p.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,o=t.doCollapse,a=t.doExpand,s=t.onExpandEvent,l=t.onChange,c=t.currentState.listType,d=t.translations,p=n.options,h=n.className,f=n.dropdownClassName,m=n.title;return i.a.createElement(V,{className:u()("rdw-list-dropdown",h),optionWrapperClassName:u()(f),onChange:l,expanded:r,doExpand:a,doCollapse:o,onExpandEvent:s,"aria-label":"rdw-list-control",title:m||d["components.controls.list.list"]},i.a.createElement("img",{src:T(n),alt:""}),this.options.filter(function(e){return 0<=p.indexOf(e)}).map(function(t,r){return i.a.createElement(Q,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:u()("rdw-list-dropdownOption",n[t].className),active:c===t,title:n[t].title||d["components.controls.list.".concat(t)]},i.a.createElement("img",{src:n[t].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Ze(e.prototype,t),n&&Ze(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function tt(e){return(tt="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 nt(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 rt(e,t){return(rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function it(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=ot(t);if(n){var i=ot(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}et.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var at=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}(a,r.Component);var e,t,n,o=it(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.props,r=n.onChange,i=n.editorState,o=s.RichUtils.toggleBlockType(i,e);o&&r(o)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,i=n.editorState,o=Object(l.changeDepth)(i,e,4);o&&r(o)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(l.getBlockBeforeSelectedBlock)(e);return!r||!Object(l.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(l.isListBlock)(e)||e.get("depth")<=0};var n=t.props,r=n.editorState,i=n.modalHandler;return t.state={expanded:!1,currentBlock:r?Object(l.getSelectedBlock)(r):void 0},i.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(l.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,o=this.state,a=o.expanded,s=o.currentBlock,l=n.component||et;"unordered-list-item"===s.get("type")?e="unordered":"ordered-list-item"===s.get("type")&&(e="ordered");var c=this.isIndentDisabled(),u=this.isOutdentDisabled();return i.a.createElement(l,{config:n,translations:r,currentState:{listType:e},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:c,outdentDisabled:u})}}])&&nt(e.prototype,t),n&&nt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function st(e){return(st="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 lt(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 ct(e,t){return(ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ut(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=dt(t);if(n){var i=dt(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===st(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}at.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var pt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(a,r.Component);var e,t,n,o=ut(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return e=a,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,o=t.center,a=t.right,s=t.justify,l=t.className,c=e.onChange,d=e.currentState.textAlignment,p=e.translations;return i.a.createElement("div",{className:u()("rdw-text-align-wrapper",l),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&i.a.createElement(z,{value:"left",className:u()(r.className),active:"left"===d,onClick:c,title:r.title||p["components.controls.textalign.left"]},i.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&i.a.createElement(z,{value:"center",className:u()(o.className),active:"center"===d,onClick:c,title:o.title||p["components.controls.textalign.center"]},i.a.createElement("img",{src:o.icon,alt:""})),0<=n.indexOf("right")&&i.a.createElement(z,{value:"right",className:u()(a.className),active:"right"===d,onClick:c,title:a.title||p["components.controls.textalign.right"]},i.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&i.a.createElement(z,{value:"justify",className:u()(s.className),active:"justify"===d,onClick:c,title:s.title||p["components.controls.textalign.justify"]},i.a.createElement("img",{src:s.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,o=e.onExpandEvent,a=e.doCollapse,s=e.currentState.textAlignment,l=e.onChange,c=e.translations,d=t.options,p=t.left,h=t.center,f=t.right,m=t.justify,g=t.className,v=t.dropdownClassName,y=t.title;return i.a.createElement(V,{className:u()("rdw-text-align-dropdown",g),optionWrapperClassName:u()(v),onChange:l,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:o,"aria-label":"rdw-textalign-control",title:y||c["components.controls.textalign.textalign"]},i.a.createElement("img",{src:s&&t[s]&&t[s].icon||T(t),alt:""}),0<=d.indexOf("left")&&i.a.createElement(Q,{value:"left",active:"left"===s,className:u()("rdw-text-align-dropdownOption",p.className),title:p.title||c["components.controls.textalign.left"]},i.a.createElement("img",{src:p.icon,alt:""})),0<=d.indexOf("center")&&i.a.createElement(Q,{value:"center",active:"center"===s,className:u()("rdw-text-align-dropdownOption",h.className),title:h.title||c["components.controls.textalign.center"]},i.a.createElement("img",{src:h.icon,alt:""})),0<=d.indexOf("right")&&i.a.createElement(Q,{value:"right",active:"right"===s,className:u()("rdw-text-align-dropdownOption",f.className),title:f.title||c["components.controls.textalign.right"]},i.a.createElement("img",{src:f.icon,alt:""})),0<=d.indexOf("justify")&&i.a.createElement(Q,{value:"justify",active:"justify"===s,className:u()("rdw-text-align-dropdownOption",m.className),title:m.title||c["components.controls.textalign.justify"]},i.a.createElement("img",{src:m.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&<(e.prototype,t),n&<(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function ht(e){return(ht="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 ft(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 mt(e,t){return(mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gt(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=vt(t);if(n){var i=vt(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ht(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function vt(e){return(vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}pt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var yt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mt(e,t)}(a,r.Component);var e,t,n,o=gt(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(l.setBlockData)(r,{"text-align":e}):Object(l.setBlockData)(r,{"text-align":void 0}))};var n=t.props.modalHandler;return t.state={currentTextAlignment:void 0},n.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(l.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,o=r.expanded,a=r.currentTextAlignment,s=t.component||pt;return i.a.createElement(s,{config:t,translations:n,expanded:o,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&ft(e.prototype,t),n&&ft(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function bt(e){return(bt="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 xt(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 St(e,t){return(St=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wt(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=_t(t);if(n){var i=_t(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}yt.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var kt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&St(e,t)}(a,r.Component);var e,t,n,o=wt(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,o=n.colors,a=t.currentState,s=a.color,l=a.bgColor,c=t.translations,d=e.state.currentStyle,p="color"===d?s:l;return i.a.createElement("div",{className:u()("rdw-colorpicker-modal",r),onClick:C},i.a.createElement("span",{className:"rdw-colorpicker-modal-header"},i.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===d}),onClick:e.setCurrentStyleColor},c["components.controls.colorpicker.text"]),i.a.createElement("span",{className:u()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===d}),onClick:e.setCurrentStyleBgcolor},c["components.controls.colorpicker.background"])),i.a.createElement("span",{className:"rdw-colorpicker-modal-options"},o.map(function(t,n){return i.a.createElement(z,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:p===t,onClick:e.onChange},i.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))})))},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,o=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return i.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:o||l["components.c
2ontrols.colorpicker.colorpicker"]},i.a.createElement(z,{onClick:s,className:u()(r)},i.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&xt(e.prototype,t),n&&xt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();kt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Mt=kt;function Ct(e){return(Ct="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 Tt(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 At(e,t){return(At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Et(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=jt(t);if(n){var i=jt(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&At(e,t)}(a,r.Component);var e,t,n,o=Et(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleColor=function(e,n){var r=t.props,i=r.editorState,o=r.onChange,a=Object(l.toggleCustomInlineStyle)(i,e,n);a&&o(a),t.doCollapse()};var n=e.editorState,r=e.modalHandler,i={expanded:!1,currentColor:void 0,currentBgColor:void 0};return n&&(i.currentColor=Object(l.getSelectionCustomInlineStyle)(n,["COLOR"]).COLOR,i.currentBgColor=Object(l.getSelectionCustomInlineStyle)(n,["BGCOLOR"]).BGCOLOR),t.state=i,r.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(l.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(l.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,o=r.currentColor,a=r.currentBgColor,s=r.expanded,l=t.component||Mt,c=o&&o.substring(6),u=a&&a.substring(8);return i.a.createElement(l,{config:t,translations:n,onChange:this.toggleColor,expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:c,bgColor:u}})}}])&&Tt(e.prototype,t),n&&Tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();Nt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var It=Nt,Dt=n(7),Pt=n.n(Dt);function Lt(e){return(Lt="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 Rt(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 Ot(e,t){return(Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zt(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Ft(t);if(n){var i=Ft(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Ft(e){return(Ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var Bt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)}(a,r.Component);var e,t,n,o=zt(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
vendor: 4,401 bytes, line 2
2return(e=o.call.apply(o,[this].concat(n))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,i;e.setState((n={},r="".concat(t.target.name),i=t.target.value,r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,i=r.link,o=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:i&&i.target||"",linkTargetOption:i&&i.targetOption||a,linkTitle:i&&i.title||o})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,i=r.link,o=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:i&&i.target,linkTargetOption:i&&i.targetOption||a,linkTitle:i&&i.title||o})},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,o=this.state,a=o.linkTitle,s=o.linkTarget,l=o.linkTargetOption;return i.a.createElement("div",{className:u()("rdw-link-modal",t),onClick:C},i.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),i.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),i.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),i.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:s}),i.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},i.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===l,value:"_blank",onChange:this.updateTargetOption}),i.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),i.a.createElement("span",{className:"rdw-link-modal-buttonsection"},i.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!s||!a},r["generic.add"]),i.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,o=t.unlink,a=t.className,s=e.currentState,l=e.expanded,c=e.translations,d=this.state.showModal;return i.a.createElement("div",{className:u()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&i.a.createElement(z,{value:"unordered-list-item",className:u()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":d,title:r.title||c["components.controls.link.link"]},i.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&i.a.createElement(z,{disabled:!s.link,value:"ordered-list-item",className:u()(o.className),onClick:this.removeLink,title:o.title||c["components.controls.link.unlink"]},i.a.createElement("img",{src:o.icon,alt:""})),l&&d?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,o=e.doExpand,a=e.onChange,s=e.config,l=e.currentState,c=e.translations,d=s.options,p=s.link,h=s.unlink,f=s.className,m=s.dropdownClassName,g=s.title,v=this.state.showModal;return i.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:g},i.a.createElement(V,{className:u()("rdw-link-dropdown",f),optionWrapperClassName:u()(m),onChange:a,expanded:t&&!v,doExpand:o,doCollapse:r,onExpandEvent:n},i.a.createElement("img",{src:T(s),alt:""}),0<=d.indexOf("link")&&i.a.createElement(Q,{onClick:this.forceExpandAndShowModal,className:u()("rdw-link-dropdownoption",p.className),title:p.title||c["components.c
2ontrols.link.link"]},i.a.createElement("img",{src:p.icon,alt:""})),0<=d.indexOf("unlink")&&i.a.createElement(Q,{onClick:this.removeLink,disabled:!l.link,className:u()("rdw-link-dropdownoption",h.className),title:h.title||c["components.controls.link.unlink"]},i.a.createElement("img",{src:h.icon,alt:""}))),t&&v?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Rt(e.prototype,t),n&&Rt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();Bt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var Ut=Bt;function Ht(e){return(Ht="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 Wt(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 Vt(e,t){return(Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gt(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=qt(t);if(n){var i=qt(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ht(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function qt(e){return(qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kt(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 Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach(function(t){Xt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zt(e){var t=Qt.match(e.target);return Yt(Yt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Qt=Pt()(),Jt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vt(e,t)}(a,r.Component);var e,t,n,o=Gt(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,i){var o=t.props.config.linkCallback;if("link"===e){var a=(o||Zt)({title:n,target:r,targetOption:i});t.addLink(a.title,a.target,a.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),i={};if(n&&"LINK"===r.getEntity(n).get("type")){i.link={};var o=n&&Object(l.getEntityRange)(e,n);i.link.target=n&&r.getEntity(n).get("data").url,i.link.targetOption=n&&r.getEntity(n).get("data").targetOption,i.link.title=o&&o.text}return i.selectionText=Object(l.getSelectionText)(e),i},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,i=t.state.currentEntity,o=n.get
vendor: 13,972 bytes, line 2
2Selection();if(i){var a=Object(l.getEntityRange)(n,i);o=o.getIsBackward()?o.merge({anchorOffset:a.end,focusOffset:a.start}):o.merge({anchorOffset:a.start,focusOffset:a.end}),r(s.RichUtils.toggleLink(n,o,null))}},t.addLink=function(e,n,r){var i=t.props,o=i.editorState,a=i.onChange,c=t.state.currentEntity,u=o.getSelection();if(c){var d=Object(l.getEntityRange)(o,c);u=u.getIsBackward()?u.merge({anchorOffset:d.end,focusOffset:d.start}):u.merge({anchorOffset:d.start,focusOffset:d.end})}var p=o.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),h=s.Modifier.replaceText(o.getCurrentContent(),u,"".concat(e),o.getCurrentInlineStyle(),p),f=s.EditorState.push(o,h,"insert-characters");u=f.getSelection().merge({anchorOffset:u.get("anchorOffset")+e.length,focusOffset:u.get("anchorOffset")+e.length}),f=s.EditorState.acceptSelection(f,u),h=s.Modifier.insertText(f.getCurrentContent(),u," ",f.getCurrentInlineStyle(),void 0),a(s.EditorState.push(f,h,"insert-characters")),t.doCollapse()};var n=t.props,r=n.editorState,i=n.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:r?Object(l.getSelectionEntity)(r):void 0},i.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(l.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,o=this.getCurrentValues(),a=o.link,s=o.selectionText,l=t.component||Ut;return i.a.createElement(l,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:s},onChange:this.onChange})}}])&&Wt(e.prototype,t),n&&Wt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();Jt.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var $t=Jt;function en(e){return(en="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 tn(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 nn(e,t){return(nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=on(t);if(n){var i=on(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===en(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var an=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nn(e,t)}(a,r.Component);var e,t,n,o=rn(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,i;e.setState((n={},r="".concat(t.target.name),i=t.target.value,r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var i=r.defaultSize,o=i.height,a=i.width;this.setState({embeddedLink:"",height:o,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,o=this.props,a=o.config.popupClassName,s=o.doCollapse,l=o.translations;return i.a.createElement("div",{className:u()("rdw-embedded-modal",a),onClick:C},i.a.createElement("div",{className:"rdw-embedded-modal-header"},i.a.createElement("span",{className:"rdw-embedded-modal-header-option"},l["components.controls.embedded.embeddedlink"],i.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),i.a.createElement("div",{className:"rdw-embedded-modal-link-section"},i.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},i.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:l["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),i.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),i.a.createElement("div",{className:"rdw-embedded-modal-size"},i.a.createElement("span",null,i.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),i.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),i.a.createElement("span",null,i.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),i.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),i.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},i.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},l["generic.add"]),i.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:s},l["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,o=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return i.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},i.a.createElement(z,{className:u()(r),value:"unordered-list-item",onClick:s,title:o||l["components.controls.embedded.embedded"]},i.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&tn(e.prototype,t),n&&tn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();an.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var sn=an;function ln(e){return(ln="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 cn(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 un(e,t){return(un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=pn(t);if(n){var i=pn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ln(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&un(e,t)}(a,r.Component);var e,t,n,o=dn(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmbeddedLink=function(t,n,r){var i=e.props,o=i.editorState,a=i.onChange,l=i.config.embedCallback,c=l?l(t):t,u=o.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:c,height:n,width:r}).getLastCreatedEntityKey();a(s.AtomicBlockUtils.insertAtomicBlock(o,u," ")),e.doCollapse()},e}return e=a,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,o=t.component||sn;return i.a.createElement(o,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&cn(e.prototype,t),n&&cn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();hn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var fn=hn;function mn(e){return(mn="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 gn(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 vn(e,t){return(vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=bn(t);if(n){var i=bn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function bn(e){return(bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var xn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}(a,r.Component);var e,t,n,o=yn(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=a,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return i.a.createElement("div",{className:u()("rdw-emoji-modal",n),onClick:C},r.map(function(t,n){return i.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)}))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,o=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return i.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:o||l["components.controls.emoji.emoji"]},i.a.createElement(z,{className:u()(r),value:"unordered-list-item",onClick:s},i.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&gn(e.prototype,t),n&&gn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();xn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Sn=xn;function wn(e){return(wn="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 _n(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)}}
2function kn(e,t){return(kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Cn(t);if(n){var i=Cn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===wn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kn(e,t)}(a,r.Component);var e,t,n,o=Mn(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmoji=function(t){var n=e.props,r=n.editorState,i=n.onChange,o=s.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());i(s.EditorState.push(r,o,"insert-characters")),e.doCollapse()},e}return e=a,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,o=t.component||Sn;return i.a.createElement(o,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&_n(e.prototype,t),n&&_n(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function An(){return i.a.createElement("div",{className:"rdw-spinner"},i.a.createElement("div",{className:"rdw-bounce1"}),i.a.createElement("div",{className:"rdw-bounce2"}),i.a.createElement("div",{className:"rdw-bounce3"}))}function En(e){return(En="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 jn(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 Nn(e,t){return(Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function In(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Dn(t);if(n){var i=Dn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===En(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}
vendor: 14,441 bytes, line 2
2function Dn(e){return(Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Tn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var Pn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}(a,r.Component);var e,t,n,o=In(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var i=0;i<n.length;i+=1)if((!r||"file"===n[i].kind)&&n[i].type.match("^image/")){var o=r?n[i].getAsFile():n[i];e.uploadImage(o)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,i=e.state,o=i.height,a=i.width,s=e.props.onChange;isNaN(o)||(o+="px"),isNaN(a)||(a+="px"),s(n,o,a,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,i;e.setState((n={},r="".concat(t.target.name),i=t.target.value,r in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then(function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1}).catch(function(){e.setState({showImageLoading:!1,dragEnter:!1})})},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,o=e.dragEnter,a=e.height,s=e.width,l=e.alt,c=this.props,d=c.config,p=d.popupClassName,h=d.uploadCallback,f=d.uploadEnabled,m=d.urlEnabled,g=d.previewImage,v=d.inputAccept,y=d.alt,b=c.doCollapse,x=c.translations;return i.a.createElement("div",{className:u()("rdw-image-modal",p),onClick:this.stopPropagation},i.a.createElement("div",{className:"rdw-image-modal-header"},f&&h&&i.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},x["components.controls.image.fileUpload"],i.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),m&&i.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},x["components.controls.image.byURL"],i.a.createElement("span",{className:u()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?i.a.createElement("div",{onClick:this.fileUploadClick},i.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:u()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":o})},i.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},g&&t?i.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||x["components.controls.image.dropFileText"])),i.a.createElement("input",{type:"file",id:"file",accept:v,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):i.a.createElement("div",{className:"rdw-image-modal-url-section"},i.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:x["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),i.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),y.present&&i.a.createElement("div",{className:"rdw-image-modal-size"},i.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),i.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:l,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),i.a.createElement("span",{className:"rdw-image-mandatory-sign"},y.mandatory&&"*")),i.a.createElement("div",{className:"rdw-image-modal-size"},"\u2195\xa0",i.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),i.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*"),"\xa0\u2194\xa0",i.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),i.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),i.a.createElement("span",{className:"rdw-image-modal-btn-section"},i.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!a||!s||y.mandatory&&!l},x["generic.add"]),i.a.createElement("button",{className:"rdw-image-modal-btn",onClick:b},x["generic.cancel"])),r?i.a.createElement("div",{className:"rdw-image-modal-spinner"},i.a.createElement(An,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,o=t.title,a=e.expanded,s=e.onExpandEvent,l=e.translations;return i.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},i.a.createElement(z,{className:u()(r),value:"unordered-list-item",onClick:s,title:o||l["components.controls.image.image"]},i.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&jn(e.prototype,t),n&&jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();Pn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Ln=Pn;function Rn(e){return(Rn="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 On(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 zn(e,t){return(zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Bn(t);if(n){var i=Bn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Un=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zn(e,t)}(a,r.Component);var e,t,n,o=Fn(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,i){var o=t.props,a=o.editorState,l=o.onChange,c={src:e,height:n,width:r};o.config.alt.present&&(c.alt=i);var u=a.getCurrentContent().createEntity("IMAGE","MUTABLE",c).getLastCreatedEntityKey();l(s.AtomicBlockUtils.insertAtomicBlock(a,u," ")),t.doCollapse()};var n=t.props.modalHandler;return t.state={expanded:!1},n.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,o=t.component||Ln;return i.a.createElement(o,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&On(e.prototype,t),n&&On(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Hn(e){var t=e.config,n=e.onChange,r=e.translations,o=t.icon,a=t.className,s=t.title;return i.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},i.a.createElement(z,{className:u()(a),onClick:n,title:s||r["components.controls.remove.remove"]},i.a.createElement("img",{src:o,alt:""})))}Un.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Wn=Un;n(31),Hn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var Vn=Hn;function Gn(e){return(Gn="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 qn(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 Kn(e,t){return(Kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yn(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Xn(t);if(n){var i=Xn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Gn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kn(e,t)}(a,r.Component);var e,t,n,o=Yn(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(n){t=s.Modifier.removeInlineStyle(t,e.getSelection(),n)}),k(Object(l.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(n,r){r&&(t=s.Modifier.removeInlineStyle(t,e.getSelection(),r))}),s.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=a,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,o=t.component||Vn;return i.a.createElement(o,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&qn(e.prototype,t),n&&qn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Qn(e){return(Qn="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 Jn(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)}}
2function $n(e,t){return($n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function er(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=tr(t);if(n){var i=tr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Qn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function tr(e){return(tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Zn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var nr=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$n(e,t)}(a,r.Component);var e,t,n,o=er(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=a,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,o=e.onExpandEvent,a=e.doCollapse,s=e.currentState,l=s.undoDisabled,c=s.redoDisabled,d=e.translations,p=t.options,h=t.undo,f=t.redo,m=t.className,g=t.dropdownClassName,v=t.title;return i.a.createElement(V,{className:u()("rdw-history-dropdown",m),optionWrapperClassName:u()(g),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:o,"aria-label":"rdw-history-control",title:v||d["components.controls.history.history"]},i.a.createElement("img",{src:T(t),alt:""}),0<=p.indexOf("undo")&&i.a.createElement(Q,{value:"undo",onClick:this.onChange,disabled:l,className:u()("rdw-history-dropdownoption",h.className),title:h.title||d["components.controls.history.undo"]},i.a.createElement("img",{src:h.icon,alt:""}
vendor: 5,042 bytes, line 2
2)),0<=p.indexOf("redo")&&i.a.createElement(Q,{value:"redo",onClick:this.onChange,disabled:c,className:u()("rdw-history-dropdownoption",f.className),title:f.title||d["components.controls.history.redo"]},i.a.createElement("img",{src:f.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,o=t.redo,a=t.className,s=e.currentState,l=s.undoDisabled,c=s.redoDisabled,d=e.translations;return i.a.createElement("div",{className:u()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&i.a.createElement(z,{value:"undo",onClick:this.onChange,className:u()(r.className),disabled:l,title:r.title||d["components.controls.history.undo"]},i.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&i.a.createElement(z,{value:"redo",onClick:this.onChange,className:u()(o.className),disabled:c,title:o.title||d["components.controls.history.redo"]},i.a.createElement("img",{src:o.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Jn(e.prototype,t),n&&Jn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();function rr(e){return(rr="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 ir(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 or(e,t){return(or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ar(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=sr(t);if(n){var i=sr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}nr.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var lr=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&or(e,t)}(a,r.Component);var e,t,n,o=ar(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,i=n.onChange,o=s.EditorState[e](r);o&&i(o)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var n={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},r=e.editorState,i=e.modalHandler;return r&&(n.undoDisabled=0===r.getUndoStack().size,n.redoDisabled=0===r.getRedoStack().size),t.state=n,i.registerCallBack(t.expandCollapse),t}return e=a,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,o=r.undoDisabled,a=r.redoDisabled,s=r.expanded,l=t.component||nr;return i.a.createElement(l,{config:t,translations:n,currentState:{undoDisabled:o,redoDisabled:a},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&ir(e.prototype,t),n&&ir(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();lr.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var cr={inline:ce,blockType:_e,fontSize:Le,fontFamily:Ye,list:at,textAlign:yt,colorPicker:It,link:$t,embedded:fn,emoji:Tn,image:Wn,remove:Zn,history:lr},ur=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,dr=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function pr(e){return String(e).replace(ur,"").match(dr)?e:"#"}
2function hr(e){return(hr="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 fr(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 mr(e,t){return(mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gr(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=vr(t);if(n){var i=vr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===hr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function vr(e){return(vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yr(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()},t)}function br(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mr(e,t)}(s,r.Component);var e,t,o,a=gr(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,i=window.open(pr(r),"blank");i&&i.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=s,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,o=e.contentState.getEntity(r).getData(),a=o.url,s=o.targetOption,l=this.state.showPopOver;return i.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},i.a.createElement("a",{href:pr(a),target:s},t),l&&n?i.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&fr(e.prototype,t),o&&fr(e,o),Object.defineProperty(e,"prototype",{writable:!1}),s}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},t}function xr(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 Sr(e,t,n){return t&&xr(e.prototype,t),n&&xr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n(33),n(34);var wr=Sr(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getMentionComponent=function(){function e(e){var n=e.entityKey,r
vendor: 17,018 bytes, line 2
2=e.children,o=e.contentState.getEntity(n).getData(),a=o.url,s=o.value;return i.a.createElement("a",{href:a||s,className:u()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t});wr.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges(function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()},t)};var _r=wr;function kr(e){return(kr="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 Mr(e,t){return(Mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Cr(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Tr(t);if(n){var i=Tr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===kr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Tr(e){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ar(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 Er(e,t,n){return t&&Ar(e.prototype,t),n&&Ar(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var Nr=Er(function e(t){var n=this;jr(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,i=r.separator,o=r.trigger,a=r.getSuggestions,s=(0,r.getEditorState)().getSelection();if(s.get("anchorKey")===e.get("key")&&s.get("anchorKey")===s.get("focusKey")){var l=e.getText(),c=(l=l.substr(0,s.get("focusOffset")===l.length-1?l.length:s.get("focusOffset")+1)).lastIndexOf(i+o),u=i+o;if((void 0===c||c<0)&&l[0]===o&&(c=0,u=o),0<=c){var d=l.substr(c+u.length,l.length);a().some(function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(d):0<=e.value.toLowerCase().indexOf(d&&d.toLowerCase()))})&&t(0===c?0:c+1,l.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mr(e,t)}(n,r.Component);var e=Cr(n);function n(){var r;jr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=e.call.apply(e,[this].concat(o))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,S()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),i=t.getSuggestions();r.filteredSuggestions=i&&i.filter(function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))})},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),i=t.onChange,o=t.separator,a=t.trigger,c=r.filteredSuggestions[e];c&&function(e,t,n,r,i){var o=i.value,a=i.url,c=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(o),value:o,url:a}).getLastCreatedEntityKey(),u=Object(l.getSelectedBlock)(e).getText(),d=e.getSelection().focusOffset,p=(u.lastIndexOf(n+r,d)||0)+1,h=!1;u.length===p+1&&(d=u.length)," "===u[d]&&(h=!0);var f=e.getSelection().merge({anchorOffset:p,focusOffset:d}),m=s.EditorState.acceptSelection(e,f),g=s.Modifier.replaceText(m.getCurrentContent(),f,"".concat(r).concat(o),m.getCurrentInlineStyle(),c);m=s.EditorState.push(m,g,"insert-characters"),h||(f=m.getSelection().merge({anchorOffset:p+o.length+r.length,focusOffset:p+o.length+r.length}),m=s.EditorState.acceptSelection(m,f),g=s.Modifier.insertText(m.getCurrentContent(),f," ",m.getCurrentInlineStyle(),void 0)),t(s.EditorState.push(m,g,"insert-characters"))}(n,i,o,a,c)},r}return Er(n,[{key:"componentDidMount",value:function(){var e,n,r,i=t.getWrapperRef().getBoundingClientRect(),o=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();i.width<o.left-i.left+a.width?n=15:e=15,i.bottom<a.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),b.registerCallBack(this.onEditorKeyDown),x(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){b.deregisterCallBack(this.onEditorKeyDown),S(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,o=r.activeOption,a=r.showSuggestions,s=t.dropdownClassName,l=t.optionClassName;return i.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},i.a.createElement("span",null,n),a&&i.a.createElement("span",{className:u()("rdw-suggestion-dropdown",s),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map(function(t,n){return i.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:u()("rdw-suggestion-option",l,{"rdw-suggestion-option-active":n===o})},t.text)})))}}]),n}()).propTypes={children:a.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var o=t.separator,c=t.trigger,d=t.getSuggestions,p=t.onChange,h=t.getEditorState,f=t.getWrapperRef,m=t.caseSensitive,g=t.dropdownClassName,v=t.optionClassName,y=t.modalHandler;this.config={separator:o,trigger:c,getSuggestions:d,onChange:p,getEditorState:h,getWrapperRef:f,caseSensitive:m,dropdownClassName:g,optionClassName:v,modalHandler:y}}),Ir=function(e){return[new _r(e.mentionClassName).getMentionDecorator(),new Nr(e).getSuggestionDecorator()]};function Dr(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 Pr(e,t,n){return t&&Dr(e.prototype,t),n&&Dr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,o=n.height,a=n.width;return i.a.createElement("iframe",{height:o,width:a,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var Rr=Pr(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return i.a.createElement("a",{href:r,className:u()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:a.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),i=0,o=0;0<r.length&&0<=i;)if(r[0]===n.hashCharacter?(o=i=0,r=r.substr(n.hashCharacter.length)):0<=(i=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(i+(n.separator+n.hashCharacter).length),o+=i+n.separator.length),0<=i){var a=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,s=r.substr(0,a);s&&0<s.length&&(t(o,o+s.length+n.hashCharacter.length),o+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "}),Or=function(e){return new Rr(e).getHashtagDecorator()};Lr.propTypes={block:a.a.object,contentState:a.a.object};var zr=Lr;function Fr(e){return(Fr="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 Br(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 Ur(e,t){return(Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hr(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=Wr(t);if(n){var i=Wr(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Fr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}function Wr(e){return(Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var Vr=function(e){var t;return(t=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ur(e,t)}(l,r.Component);var t,n,o,a=Hr(l);function l(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=a.call.apply(a,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,i=r.block,o=r.contentState,a=i.getEntityAt(0);o.mergeEntityData(a,{alignment:n}),e.onChange(s.EditorState.push(e.getEditorState(),o,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=l,(n=[{key:"renderAlignmentOptions",value:function(e){return i.a.createElement("div",{className:u()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},i.a.createElement(z,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),i.a.createElement(z,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),i.a.createElement(z,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,o=this.state.hovered,a=e.isReadOnly,s=e.isImageAlignmentEnabled,l=r.getEntity(n.getEntityAt(0)).getData(),c=l.src,d=l.alignment,p=l.height,h=l.width,f=l.alt;return i.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:u()("rdw-image-alignment",{"rdw-image-left":"left"===d,"rdw-image-right":"right"===d,"rdw-image-center":!d||"none"===d})},i.a.createElement("span",{className:"rdw-image-imagewrapper"},i.a.createElement("img",{src:c,alt:f,style:{height:p,width:h}}),!a()&&o&&s()?this.renderAlignmentOptions(d):void 0))}}])&&Br(t.prototype,n),o&&Br(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}()).propTypes={block:a.a.object,contentState:a.a.object},t},Gr=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var i=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(i&&"IMAGE"===i.type)return{component:Vr(e),editable:!1};if(i&&"EMBEDDED_LINK"===i.type)return{component:zr,editable:!1}}}},qr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0I
2DEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEye
2iIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFI
2MTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDh
2MNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["\ud83d\ude00","\ud83d\ude01","\ud83d\ude02","\ud83d\ude03","\ud83d\ude09","\ud83d\ude0b","\ud83d\ude0e","\ud83d\ude0d","\ud83d\ude17","\ud83e\udd17","\ud83e\udd14","\ud83d\ude23","\ud83d\ude2b","\ud83d\ude34","\ud83d\ude0c","\ud83e\udd13","\ud83d\ude1b","\ud83d\ude1c","\ud83d\ude20","\ud83d\ude07","\ud83d\ude37","\ud83d\ude08","\ud83d\udc7b","\ud83d\ude3a","\ud83d\ude38","\ud83d\ude39","\ud83d\ude3b","\ud83d\ude3c","\ud83d\ude3d","\ud83d\ude40","\ud83d\ude48","\ud83d\ude49","\ud83d\ude4a","\ud83d\udc7c","\ud83d\udc6e","\ud83d\udd75","\ud83d\udc82","\ud83d\udc73","\ud83c\udf85","\ud83d\udc78","\ud83d\udc70","\ud83d\udc72","\ud83d\ude4d","\ud83d\ude47","\ud83d\udeb6","\ud83c\udfc3","\ud83d\udc83","\u26f7","\ud83c\udfc2","\ud83c\udfcc","\ud83c\udfc4","\ud83d\udea3","\ud83c\udfca","\u26f9","\ud83c\udfcb","\ud83d\udeb4","\ud83d\udc6b","\ud83d\udcaa","\ud83d\udc48","\ud83d\udc49","\ud83d\udc46","\ud83d\udd95","\ud83d\udc47","\ud83d\udd96","\ud83e\udd18","\ud83d\udd90","\ud83d\udc4c","\ud83d\udc4d","\ud83d\udc4e","\u270a","\ud83d\udc4a","\ud83d\udc4f","\ud83d\ude4c","\ud83d\ude4f","\ud83d\udc35","\ud83d\udc36","\ud83d\udc07","\ud83d\udc25","\ud83d\udc38","\ud83d\udc0c","\ud83d\udc1b","\ud83d\udc1c","\ud83d\udc1d","\ud83c\udf49","\ud83c\udf44","\ud83c\udf54","\ud83c\udf64","\ud83c\udf68","\ud83c\udf6a","\ud83c\udf82","\ud83c\udf70","\ud83c\udf7e","\ud83c\udf77","\ud83c\udf78","\ud83c\udf7a","\ud83c\udf0d","\ud83d\ude91","\u23f0","\ud83c\udf19","\ud83c\udf1d","\ud83c\udf1e","\u2b50","\ud83c\udf1f","\ud83c\udf20","\ud83c\udf28","\ud83c\udf29","\u26c4","\ud83d\udd25","\ud83c\udf84","\ud83c\udf88","\ud83c\udf89","\ud83c\udf8a","\ud83c\udf81","\ud83c\udf97","\ud83c\udfc0","\ud83c\udfc8","\ud83c\udfb2","\ud83d\udd07","\ud83d\udd08","\ud83d\udce3","\ud83d\udd14","\ud83c\udfb5","\ud83c\udfb7","\ud83d\udcb0","\ud83d\udd8a","\ud83d\udcc5","\u2705","\u274e","\ud83d\udcaf"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0I
2DAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},Kr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.c
2ontrols.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Pr\xe9c\xe9dent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"T\xe9l\xe9chargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour t\xe9l\xe9charger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.c
2ontrols.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fen\xeatre","components.controls.link.link":"Lier","components.controls.link.unlink":"D\xe9lier","components.controls.list.list":"Liste","components.controls.list.unordered":"D\xe9sordonn\xe9e","components.controls.list.ordered":"Ordonn\xe9e","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"\u6dfb\u52a0","generic.cancel":"\u53d6\u6d88","components.controls.blocktype.h1":"\u6807\u98981","components.controls.blocktype.h2":"\u6807\u98982","components.controls.blocktype.h3":"\u6807\u98983","components.controls.blocktype.h4":"\u6807\u98984","components.controls.blocktype.h5":"\u6807\u98985","components.controls.blocktype.h6":"\u6807\u98986","components.controls.blocktype.blockquote":"\u5f15\u7528","components.controls.blocktype.code":"\u6e90\u7801","components.controls.blocktype.blocktype":"\u6837\u5f0f","components.controls.blocktype.normal":"\u6b63\u6587","components.controls.colorpicker.colorpicker":"\u9009\u8272\u5668","components.controls.colorpicker.text":"\u6587\u5b57","components.controls.colorpicker.background":"\u80cc\u666f","components.controls.embedded.embedded":"\u5185\u5d4c","components.controls.embedded.embeddedlink":"\u5185\u5d4c\u7f51\u9875","components.controls.embedded.enterlink":"\u8f93\u5165\u7f51\u9875\u5730\u5740","components.controls.emoji.emoji":"\u8868\u60c5\u7b26\u53f7","components.controls.fontfamily.fontfamily":"\u5b57\u4f53","components.controls.fontsize.fontsize":"\u5b57\u53f7","components.controls.history.history":"\u5386\u53f2","components.controls.history.undo":"\u64a4\u9500","components.controls.history.redo":"\u6062\u590d","components.controls.image.image":"\u56fe\u7247","components.controls.image.fileUpload":"\u6765\u81ea\u6587\u4ef6","components.controls.image.byURL":"\u5728\u7ebf\u56fe\u7247","components.controls.image.dropFileText":"\u70b9\u51fb\u6216\u8005\u62d6\u62fd\u6587\u4ef6\u4e0a\u4f20","components.controls.inline.bold":"\u7c97\u4f53","components.controls.inline.italic":"\u659c\u4f53","components.controls.inline.underline":"\u4e0b\u5212\u7ebf","components.controls.inline.strikethrough":"\u5220\u9664\u7ebf","components.controls.inline.monospace":"\u7b49\u5bbd\u5b57\u4f53","components.controls.inline.superscript":"\u4e0a\u6807","components.controls.inline.subscript":"\u4e0b\u6807","components.controls.link.linkTitle":"\u8d85\u94fe\u63a5","components.controls.link.linkTarget":"\u8f93\u5165\u94fe\u63a5\u5730\u5740","components.controls.link.linkTargetOption":"\u5728\u65b0\u7a97\u53e3\u4e2d\u6253\u5f00\u94fe\u63a5","components.controls.link.link":"\u94fe\u63a5","components.controls.link.unlink":"\u5220\u9664\u94fe\u63a5","components.controls.list.list":"\u5217\u8868","components.controls.list.unordered":"\u9879\u76ee\u7b26\u53f7","components.controls.list.ordered":"\u7f16\u53f7","components.controls.list.indent":"\u589e\u52a0\u7f29\u8fdb\u91cf","components.controls.list.outdent":"\u51cf\u5c11\u7f29\u8fdb\u91cf","components.controls.remove.remove":"\u6e05\u9664\u683c\u5f0f","components.controls.textalign.textalign":"\u6587\u672c\u5bf9\u9f50","components.controls.textalign.left":"\u6587\u672c\u5de6\u5bf9\u9f50","components.controls.textalign.center":"\u5c45\u4e2d","components.controls.textalign.right":"\u6587\u672c\u53f3\u5bf9\u9f50","components.controls.textalign.justify":"\u4e24\u7aef\u5bf9\u9f50"},ru:{"generic.add":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c","generic.cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","components.controls.blocktype.h1":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 1","components.c
2ontrols.blocktype.h2":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2","components.controls.blocktype.h3":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 3","components.controls.blocktype.h4":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 4","components.controls.blocktype.h5":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 5","components.controls.blocktype.h6":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 6","components.controls.blocktype.blockquote":"\u0426\u0438\u0442\u0430\u0442\u0430","components.controls.blocktype.code":"\u041a\u043e\u0434","components.controls.blocktype.blocktype":"\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","components.controls.blocktype.normal":"\u041e\u0431\u044b\u0447\u043d\u044b\u0439","components.controls.colorpicker.colorpicker":"\u0412\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430","components.controls.colorpicker.text":"\u0422\u0435\u043a\u0441\u0442","components.controls.colorpicker.background":"\u0424\u043e\u043d","components.controls.embedded.embedded":"\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u0435","components.controls.embedded.embeddedlink":"\u0421\u0441\u044b\u043b\u043a\u0430 \u0432 iFrame","components.controls.embedded.enterlink":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443","components.controls.emoji.emoji":"\u042d\u043c\u043e\u0434\u0437\u0438","components.controls.fontfamily.fontfamily":"\u0428\u0440\u0438\u0444\u0442","components.controls.fontsize.fontsize":"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430","components.controls.history.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u044f","components.controls.history.undo":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","components.controls.history.redo":"\u0412\u0435\u0440\u043d\u0443\u0442\u044c","components.controls.image.image":"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435","components.controls.image.fileUpload":"\u0424\u0430\u0439\u043b\u044b","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0432 \u044d\u0442\u0443 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438\u043b\u0438 \u043a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438","components.controls.inline.bold":"\u0416\u0438\u0440\u043d\u044b\u0439","components.controls.inline.italic":"\u041a\u0443\u0440\u0441\u0438\u0432","components.controls.inline.underline":"\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435","components.controls.inline.strikethrough":"\u0417\u0430\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"\u0412\u0435\u0440\u0445\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441","components.controls.inline.subscript":"\u041d\u0438\u0436\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441","components.controls.link.linkTitle":"\u0422\u0435\u043a\u0441\u0442","components.controls.link.linkTarget":"\u0410\u0434\u0440\u0435\u0441 \u0441\u0441\u044b\u043b\u043a\u0438","components.controls.link.linkTargetOption":"\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432 \u043d\u043e\u0432\u043e\u043c \u043e\u043a\u043d\u0435","components.controls.link.link":"\u0421\u0441\u044b\u043b\u043a\u0430","components.controls.link.unlink":"\u0423\u0431\u0440\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443","components.controls.list.list":"\u0421\u043f\u0438\u0441\u043e\u043a","components.controls.list.unordered":"\u041d\u0435\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0439","components.controls.list.ordered":"\u0423\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0439","components.controls.list.indent":"\u041e\u0442\u0441\u0442\u0443\u043f","components.controls.list.outdent":"\u0412\u044b\u0441\u0442\u0443\u043f","components.c
2ontrols.remove.remove":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","components.controls.textalign.textalign":"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u0430","components.controls.textalign.left":"\u0421\u043b\u0435\u0432\u0430","components.controls.textalign.center":"\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443","components.controls.textalign.right":"\u0421\u043f\u0440\u0430\u0432\u0430","components.controls.textalign.justify":"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0442\u044c"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"T\xedtulo 1","components.controls.blocktype.h2":"T\xedtulo 2","components.controls.blocktype.h3":"T\xedtulo 3","components.controls.blocktype.h4":"T\xedtulo 4","components.controls.blocktype.h5":"T\xedtulo 5","components.controls.blocktype.h6":"T\xedtulo 6","components.controls.blocktype.blockquote":"Cita\xe7\xe3o","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Hist\xf3rico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"It\xe1lico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"T\xedtulo do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem orden\xe7\xe3o","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"\xc0 Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"\xc0 Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"\uc785\ub825","generic.cancel":"\ucde8\uc18c","components.controls.blocktype.h1":"\uc81c\ubaa91","components.controls.blocktype.h2":"\uc81c\ubaa92","components.controls.blocktype.h3":"\uc81c\ubaa93","components.controls.blocktype.h4":"\uc81c\ubaa94","components.controls.blocktype.h5":"\uc81c\ubaa95","components.controls.blocktype.h6":"\uc81c\ubaa96","components.controls.blocktype.blockquote":"\uc778\uc6a9","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"\ube14\ub85d","components.controls.blocktype.normal":"\ud45c\uc900","components.controls.colorpicker.colorpicker":"\uc0c9\uc0c1 \uc120\ud0dd","components.controls.colorpicker.text":"\uae00\uaf34\uc0c9","components.controls.colorpicker.background":"\ubc30\uacbd\uc0c9","components.controls.embedded.embedded":"\uc784\ubca0\ub4dc","components.controls.embedded.embeddedlink":"\uc784\ubca0\ub4dc \ub9c1\ud06c","components.c
2ontrols.embedded.enterlink":"\uc8fc\uc18c\ub97c \uc785\ub825\ud558\uc138\uc694","components.controls.emoji.emoji":"\uc774\ubaa8\uc9c0","components.controls.fontfamily.fontfamily":"\uae00\uaf34","components.controls.fontsize.fontsize":"\uae00\uaf34 \ud06c\uae30","components.controls.history.history":"\ud788\uc2a4\ud1a0\ub9ac","components.controls.history.undo":"\uc2e4\ud589 \ucde8\uc18c","components.controls.history.redo":"\ub2e4\uc2dc \uc2e4\ud589","components.controls.image.image":"\uc774\ubbf8\uc9c0","components.controls.image.fileUpload":"\ud30c\uc77c \uc5c5\ub85c\ub4dc","components.controls.image.byURL":"\uc8fc\uc18c","components.controls.image.dropFileText":"\ud074\ub9ad\ud558\uac70\ub098 \ud30c\uc77c\uc744 \ub4dc\ub86d\ud558\uc5ec \uc5c5\ub85c\ub4dc\ud558\uc138\uc694","components.controls.inline.bold":"\uad75\uac8c","components.controls.inline.italic":"\uae30\uc6b8\uc784\uaf34","components.controls.inline.underline":"\ubc11\uc904","components.controls.inline.strikethrough":"\ucde8\uc18c\uc120","components.controls.inline.monospace":"\uace0\uc815 \ub108\ube44","components.controls.inline.superscript":"\uc704 \ucca8\uc790","components.controls.inline.subscript":"\uc544\ub798 \ucca8\uc790","components.controls.link.linkTitle":"\ub9c1\ud06c \uc81c\ubaa9","components.controls.link.linkTarget":"\ub9c1\ud06c \ud0c0\uac9f","components.controls.link.linkTargetOption":"\uc0c8\ucc3d\uc73c\ub85c \uc5f4\uae30","components.controls.link.link":"\ub9c1\ud06c","components.controls.link.unlink":"\ub9c1\ud06c \uc81c\uac70","components.controls.list.list":"\ub9ac\uc2a4\ud2b8","components.controls.list.unordered":"\uc77c\ubc18 \ub9ac\uc2a4\ud2b8","components.controls.list.ordered":"\uc21c\uc11c \ub9ac\uc2a4\ud2b8","components.controls.list.indent":"\ub4e4\uc5ec\uc4f0\uae30","components.controls.list.outdent":"\ub0b4\uc5b4\uc4f0\uae30","components.controls.remove.remove":"\uc0ad\uc81c","components.controls.textalign.textalign":"\ud14d\uc2a4\ud2b8 \uc815\ub82c","components.controls.textalign.left":"\uc67c\ucabd","components.controls.textalign.center":"\uc911\uc559","components.controls.textalign.right":"\uc624\ub978\ucabd","components.controls.textalign.justify":"\uc591\ucabd"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.c
2ontrols.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"On
2derstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzuf\xfcgen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"\xdcberschrift 1","components.controls.blocktype.h2":"\xdcberschrift 2","components.controls.blocktype.h3":"\xdcberschrift 3","components.controls.blocktype.h4":"\xdcberschrift 4","components.controls.blocktype.h5":"\xdcberschrift 5","components.controls.blocktype.h6":"\xdcberschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgr\xf6\xdfe","components.controls.history.history":"Historie","components.controls.history.undo":"Zur\xfccknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster \xf6ffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufz\xe4hlung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergr\xf6\xdfern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksb\xfcndig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsb\xfcndig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilf\xf8j","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.c
2ontrols.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontst\xf8rrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverf\xf8rsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"H\xe6vet","components.controls.inline.subscript":"S\xe6nket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link M\xe5l","components.controls.link.linkTargetOption":"\xc5bn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"H\xf8jre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"\u65b0\u589e","generic.cancel":"\u53d6\u6d88","components.controls.blocktype.h1":"\u6a19\u984c1","components.controls.blocktype.h2":"\u6a19\u984c2","components.controls.blocktype.h3":"\u6a19\u984c3","components.controls.blocktype.h4":"\u6a19\u984c4","components.controls.blocktype.h5":"\u6a19\u984c5","components.controls.blocktype.h6":"\u6a19\u984c6","components.controls.blocktype.blockquote":"\u5f15\u7528","components.controls.blocktype.code":"\u7a0b\u5f0f\u78bc","components.controls.blocktype.blocktype":"\u6a23\u5f0f","components.controls.blocktype.normal":"\u6b63\u6587","components.controls.colorpicker.colorpicker":"\u9078\u8272\u5668","components.controls.colorpicker.text":"\u6587\u5b57","components.controls.colorpicker.background":"\u80cc\u666f","components.controls.embedded.embedded":"\u5167\u5d4c","components.controls.embedded.embeddedlink":"\u5167\u5d4c\u7db2\u9801","components.controls.embedded.enterlink":"\u8f38\u5165\u7db2\u9801\u5730\u5740","components.controls.emoji.emoji":"\u8868\u60c5\u7b26\u865f","components.controls.fontfamily.fontfamily":"\u5b57\u9ad4","components.controls.fontsize.fontsize":"\u5b57\u9ad4\u5927\u5c0f","components.controls.history.history":"\u6b77\u53f2\u7d00\u9304","components.controls.history.undo":"\u5fa9\u539f","components.controls.history.redo":"\u91cd\u505a","components.controls.image.image":"\u5716\u7247","components.controls.image.fileUpload":"\u6a94\u6848\u4e0a\u50b3","components.controls.image.byURL":"\u7db2\u5740","components.controls.image.dropFileText":"\u9ede\u64ca\u6216\u62d6\u66f3\u6a94\u6848\u4e0a\u50b3","components.controls.inline.bold":"\u7c97\u9ad4","components.controls.inline.italic":"\u659c\u9ad4","components.controls.inline.underline":"\u5e95\u7dda","components.controls.inline.strikethrough":"\u522a\u9664\u7dda","components.controls.inline.monospace":"\u7b49\u5bec\u5b57\u9ad4","components.controls.inline.superscript":"\u4e0a\u6a19","components.c
2ontrols.inline.subscript":"\u4e0b\u6a19","components.controls.link.linkTitle":"\u8d85\u9023\u7d50","components.controls.link.linkTarget":"\u8f38\u5165\u9023\u7d50\u4f4d\u5740","components.controls.link.linkTargetOption":"\u5728\u65b0\u8996\u7a97\u6253\u958b\u9023\u7d50","components.controls.link.link":"\u9023\u7d50","components.controls.link.unlink":"\u522a\u9664\u9023\u7d50","components.controls.list.list":"\u5217\u8868","components.controls.list.unordered":"\u9805\u76ee\u7b26\u865f","components.controls.list.ordered":"\u7de8\u865f","components.controls.list.indent":"\u589e\u52a0\u7e2e\u6392","components.controls.list.outdent":"\u6e1b\u5c11\u7e2e\u6392","components.controls.remove.remove":"\u6e05\u9664\u683c\u5f0f","components.controls.textalign.textalign":"\u6587\u5b57\u5c0d\u9f4a","components.controls.textalign.left":"\u6587\u5b57\u5411\u5de6\u5c0d\u9f4a","components.controls.textalign.center":"\u6587\u5b57\u7f6e\u4e2d","components.controls.textalign.right":"\u6587\u5b57\u5411\u53f3\u5c0d\u9f4a","components.controls.textalign.justify":"\u5169\u7aef\u5c0d\u9f4a"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nag\u0142\xf3wek 1","components.controls.blocktype.h2":"Nag\u0142\xf3wek 2","components.controls.blocktype.h3":"Nag\u0142\xf3wek 3","components.controls.blocktype.h4":"Nag\u0142\xf3wek 4","components.controls.blocktype.h5":"Nag\u0142\xf3wek 5","components.controls.blocktype.h6":"Nag\u0142\xf3wek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"T\u0142o","components.controls.embedded.embedded":"Osad\u017a","components.controls.embedded.embeddedlink":"Osad\u017a odno\u015bnik","components.controls.embedded.enterlink":"Wprowad\u017a odno\u015bnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Kr\xf3j czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Pon\xf3w","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prze\u015blij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upu\u015b\u0107 plik lub kliknij, aby przes\u0142a\u0107","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkre\u015blenie","components.controls.inline.strikethrough":"Przekre\u015blenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks g\xf3rny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytu\u0142 odno\u015bnika","components.controls.link.linkTarget":"Adres odno\u015bnika","components.controls.link.linkTargetOption":"Otw\xf3rz odno\u015bnik w nowej karcie","components.controls.link.link":"Wstaw odno\u015bnik","components.controls.link.unlink":"Usu\u0144 odno\u015bnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporz\u0105dkowana","components.controls.list.ordered":"Lista uporz\u0105dkowana","components.controls.list.indent":"Zwi\u0119ksz wci\u0119cie","components.controls.list.outdent":"Zmniejsz wci\u0119cie","components.controls.remove.remove":"Usu\u0144","components.controls.textalign.textalign":"Wyr\xf3wnaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do \u015brodka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"A\xf1adir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.c
2ontrols.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"C\xf3digo","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tama\xf1o de fuente","components.controls.history.history":"Hist\xf3rico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobre\xedndice","components.controls.inline.subscript":"Sub\xedndice","components.controls.link.linkTitle":"T\xedtulo del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineaci\xf3n del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"\u8ffd\u52a0","generic.cancel":"\u30ad\u30e3\u30f3\u30bb\u30eb","components.controls.blocktype.h1":"\u898b\u51fa\u30571","components.controls.blocktype.h2":"\u898b\u51fa\u30572","components.controls.blocktype.h3":"\u898b\u51fa\u30573","components.controls.blocktype.h4":"\u898b\u51fa\u30574","components.controls.blocktype.h5":"\u898b\u51fa\u30575","components.controls.blocktype.h6":"\u898b\u51fa\u30576","components.controls.blocktype.blockquote":"\u5f15\u7528","components.controls.blocktype.code":"\u30b3\u30fc\u30c9","components.controls.blocktype.blocktype":"\u30b9\u30bf\u30a4\u30eb","components.controls.blocktype.normal":"\u6a19\u6e96\u30c6\u30ad\u30b9\u30c8","components.controls.colorpicker.colorpicker":"\u30c6\u30ad\u30b9\u30c8\u306e\u8272","components.controls.colorpicker.text":"\u30c6\u30ad\u30b9\u30c8","components.controls.colorpicker.background":"\u30cf\u30a4\u30e9\u30a4\u30c8","components.controls.embedded.embedded":"\u57cb\u3081\u8fbc\u307f","components.controls.embedded.embeddedlink":"\u57cb\u3081\u8fbc\u307f\u30ea\u30f3\u30af","components.controls.embedded.enterlink":"\u30ea\u30f3\u30af\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044","components.controls.emoji.emoji":"\u7d75\u6587\u5b57","components.controls.fontfamily.fontfamily":"\u30d5\u30a9\u30f3\u30c8","components.controls.fontsize.fontsize":"\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba","components.controls.history.history":"\u5c65\u6b74","components.controls.history.undo":"\u5143\u306b\u623b\u3059","components.controls.history.redo":"\u3084\u308a\u76f4\u3057","components.controls.image.image":"\u753b\u50cf","components.controls.image.fileUpload":"\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9","components.controls.image.byURL":"URL","components.c
2ontrols.image.dropFileText":"\u3053\u3053\u306b\u753b\u50cf\u3092\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u304b\u3001\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044","components.controls.inline.bold":"\u592a\u5b57","components.controls.inline.italic":"\u659c\u4f53","components.controls.inline.underline":"\u4e0b\u7dda","components.controls.inline.strikethrough":"\u53d6\u308a\u6d88\u3057\u7dda","components.controls.inline.monospace":"\u7b49\u5e45\u30d5\u30a9\u30f3\u30c8","components.controls.inline.superscript":"\u4e0a\u4ed8\u304d\u6587\u5b57","components.controls.inline.subscript":"\u4e0b\u4ed8\u304d\u6587\u5b57","components.controls.link.linkTitle":"\u30ea\u30f3\u30af\u30bf\u30a4\u30c8\u30eb","components.controls.link.linkTarget":"\u30ea\u30f3\u30af\u5bfe\u8c61","components.controls.link.linkTargetOption":"\u65b0\u3057\u3044\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u958b\u304f","components.controls.link.link":"\u30ea\u30f3\u30af","components.controls.link.unlink":"\u30ea\u30f3\u30af\u3092\u89e3\u9664","components.controls.list.list":"\u30ea\u30b9\u30c8","components.controls.list.unordered":"\u7b87\u6761\u66f8\u304d","components.controls.list.ordered":"\u756a\u53f7\u4ed8\u304d","components.controls.list.indent":"\u30a4\u30f3\u30c7\u30f3\u30c8\u5897","components.controls.list.outdent":"\u30a4\u30f3\u30c7\u30f3\u30c8\u6e1b","components.controls.remove.remove":"\u66f8\u5f0f\u3092\u30af\u30ea\u30a2","components.controls.textalign.textalign":"\u6574\u5217","components.controls.textalign.left":"\u5de6\u63c3\u3048","components.controls.textalign.center":"\u4e2d\u592e\u63c3\u3048","components.controls.textalign.right":"\u53f3\u63c3\u3048","components.controls.textalign.justify":"\u4e21\u7aef\u63c3\u3048"}};function Yr(e){return(Yr="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 Xr(){return(Xr=Object.assign?Object.assign.bind():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 Zr(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 Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach(function(t){Jr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $r(e){return function(e){if(Array.isArray(e))return ei(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ei(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)?ei(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ei(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}function ti(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 ni(e,t){return(ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ri(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,r=ii(t);if(n){var i=ii(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===Yr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,e)}}
vendor: 10,468 bytes, line 2
2function ii(e){return(ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var oi=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ni(e,t)}(a,r.Component);var e,t,n,o=ri(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||w()&&e.preventDefault(),Object(s.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(l.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,i=n.onEditorStateChange;r||"atomic"===Object(l.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(i&&i(e,t.props.wrapperId),M(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat($r(t.props.customDecorators),[{strategy:yr,component:br({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,$r(Ir(Qr(Qr({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(Or(t.props.hashtag)),new s.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout(function(){var n=t.props,r=n.onChange,i=n.onContentStateChange;r&&r(Object(s.convertToRaw)(e.getCurrentContent())),i&&i(Object(s.convertToRaw)(e.getCurrentContent()))})},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(M(t.props,"editorState"))t.props.editorState&&(n=s.EditorState.set(t.props.editorState,{decorator:e}));else if(M(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=s.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(M(t.props,"contentState")){if(t.props.contentState){var r=Object(s.convertFromRaw)(t.props.contentState);n=s.EditorState.createWithContent(r,e),n=s.EditorState.moveSelectionToEnd(n)}}else if(M(t.props,"defaultContentState")||M(t.props,"initialContentState")){var i=t.props.defaultContentState||t.props.initialContentState;i&&(i=Object(s.convertFromRaw)(i),n=s.EditorState.createWithContent(i,e),n=s.EditorState.moveSelectionToEnd(n))}return n||s.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(t).filter(function(e){return n.indexOf(e)<0}),i={},r&&0<r.length&&r.forEach(function(e){i[e]=t[e]}),i;var t,n,r,i},t.getStyleMap=function(e){return Qr(Qr({},Object(l.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(s.convertFromRaw)(e),r=t.state.editorState;return r=s.EditorState.push(r,n,"insert-characters"),s.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout(function(){t.editor.focus()})},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,i=n.toolbar.inline;if(i&&0<=i.options.indexOf(e)){var o=s.RichUtils.handleKeyCommand(r,e);if(o)return t.onChange(o),!0}return!1},t.handleReturn=function(e){if(w())return!0;var n=t.state.editorState,r=Object(l.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,i=t.props,o=i.handlePastedText,a=i.stripPastedStyles;return o?o(e,n,r,t.onChange):!a&&function(e,t,n,r){var i=Object(l.getSelectedBlock)(n);if(i&&"code"===i.type){var o=s.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(s.EditorState.push(n,o,"insert-characters")),!0}if(t){var a=j()(t),c=n.getCurrentContent();return a.entityMap.forEach(function(e,t){c=c.mergeEntityData(t,e)}),c=s.Modifier.replaceWithFragment(c,n.getSelection(),new N.List(a.contentBlocks)),r(s.EditorState.push(n,c,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var n=A(qr,e.toolbar),r=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(r),t.modalHandler=new h,t.focusHandler=new v,t.blockRendererFn=Gr({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(n);var i=t.createEditorState(t.compositeDecorator);return Object(l.extractInlineStyle)(i),t.state={editorState:i,editorFocused:!1,toolbar:n},t}return e=a,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,i=n.contentState;if(!this.state.toolbar){var o=A(qr,o);t.toolbar=o}if(M(this.props,"editorState")&&r!==e.editorState)t.editorState=r?s.EditorState.set(r,{decorator:this.compositeDecorator}):s.EditorState.createEmpty(this.compositeDecorator);else if(M(this.props,"contentState")&&i!==e.contentState)if(i){var a=this.changeEditorState(i);a&&(t.editorState=a)}else t.editorState=s.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===i||Object(l.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,o=this.props,a=o.locale,c=o.localization,d=c.locale,p=c.translations,h=o.toolbarCustomButtons,f=o.toolbarOnFocus,m=o.toolbarClassName,g=o.toolbarHidden,v=o.editorClassName,y=o.wrapperClassName,x=o.toolbarStyle,S=o.editorStyle,w=o.wrapperStyle,k=o.uploadCallback,M=o.ariaLabel,C={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:Qr(Qr({},Kr[a||d]),p)},T=n||this.focusHandler.isInputFocused()||!f;return i.a.createElement("div",{id:this.wrapperId,className:u()(y,"rdw-editor-wrapper"),style:w,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!g&&i.a.createElement("div",{className:u()("rdw-editor-toolbar",m),style:Qr({visibility:T?"visible":"hidden"},x),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&f).toString(),onFocus:this.onToolbarFocus},r.options.map(function(e,t){var n=cr[e],o=r[e];return"image"===e&&k&&(o.uploadCallback=k),i.a.createElement(n,Xr({key:t},C,{config:o}))}),h&&h.map(function(e,t){return i.a.cloneElement(e,Qr({key:t},C))})),i.a.createElement("div",{ref:this.setWrapperReference,className:u()(v,"rdw-editor-main"),style:S,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:b.onKeyDown,onMouseDown:this.onEditorMouseDown},i.a.createElement(s.Editor,Xr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:_,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:M||"rdw-editor",blockRenderMap:l.blockRenderMap},this.editorProps))))}}])&&ti(e.prototype,t),n&&ti(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}();oi.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},oi.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var ai=oi}],r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var i,o}(n(65043),n(54410),n(92119))},77404:(e,t,n)=>{"use strict";var r=n(65037),i=n(68746),o=n(94733),a=n(36415),s=n(37385),l=n(88691);function c(e,t,n){var o=t,c=r(o);(null!=c||e&&(e===o||e.firstChild===o)||a(!1),e===o)&&(o=o.firstChild,s(o)||a(!1),"true"!==(o=o).getAttribute("data-contents")&&a(!1),n>0&&(n=o.childNodes.length));if(0===n){var d=null;if(null!=c)d=c;else{var p=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||i(e.firstChild));)e=e.firstChild;return e}(o);d=l(i(p))}return{key:d,offset:0}}var h=o.childNodes[n-1],f=null,m=null;if(i(h)){var g=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||i(e.lastChild));)e=e.lastChild;return e}(h);f=l(i(g)),m=u(g)}else f=l(c),m=u(h);return{key:f,offset:m}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,i,a,s){var u=n.nodeType===Node.TEXT_NODE,d=a.nodeType===Node.TEXT_NODE;if(u&&d)return{selectionState:o(e,l(r(n)),i,l(r(a)),s),needsRecovery:!1};var p=null,h=null,f=!0;return u?(p={key:l(r(n)),offset:i},h=c(t,a,s)):d?(h={key:l(r(a)),offset:s},p=c(t,n,i)):(p=c(t,n,i),h=c(t,a,s),n===a&&i===s&&(f=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:o(e,p.key,p.offset,h.key,h.offset),needsRecovery:f}}},77548:(e,t,n)=>{for(var r,i=n(76101),o=n(12730),a=n(49338),s=a("typed_array"),l=a("view"),c=!(!i.ArrayBuffer||!i.DataView),u=c,d=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=i[p[d++]])?(o(r.prototype,s,!0),o(r.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},77579:(e,t,n)=>{"use strict";var r=n(72369);n(67060)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},77603:(e,t,n)=>{"use strict";var r=n(56283);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0}
2)}},77660:e=>{"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},77709:(e,t,n)=>{"use strict";var r=n(13922);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},77747:(e,t,n)=>{var r=n(36040),i=n(30387).onFreeze;n(80156)("preventExtensions",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},77778:(e,t,n)=>{var r=n(67060);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},77807:(e,t,n)=>{"use strict";var r=n(73358),i=n(92426),o=n(35421),a=n(44786),s=n(68027),l=n(12372),c=Object.assign;e.exports=!c||n(83881)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=o.f,p=a.f;c>u;)for(var h,f=l(arguments[u++]),m=d?i(f).concat(d(f)):i(f),g=m.length,v=0;g>v;)h=m[v++],r&&!p.call(f,h)||(n[h]=f[h]);return n}:c},78502:(e,t,n)=>{"use strict";var r=n(24801),i=n(56283),o=n(31873),a=n(73767);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(0,n),s=r.getBackward(a);return o(e,s.length||1)},"backward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},78678:e=>{"use strict";e.exports=function(e,t,n,r){if(e.size){var i=0;e.reduce(function(e,o,a){return t(e,o)||(n(e)&&r(i,a),i=a),o}),n(e.last())&&r(i,e.count())}}},78819:e=>{"use strict";e.exports=function(e){return!("undefined"===typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]}},78853:(e,t,n)=>{"use strict";e.exports=n(27234)},78929:(e,t,n)=>{var r=n(67060),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,l=0;a<s;)l<(n=i(arguments[a++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(o)}})},79102:(e,t,n)=>{"use strict";n(4132),e.exports=n.g.setImmediate},79386:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},79500:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},79529:(e,t,n)=>{"use strict";var r=n(52367),i=n(78678),o=n(36415);function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,l=n<a.count()?a.get(n):void 0,c=s?s.getEntity():void 0,u=l?l.getEntity():void 0;if(u&&u===c&&"MUTABLE"!==e.__get(u).getMutability()){for(var d,p=function(e,t,n){var r;return i(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===t},function(e,t){e<=n&&t>=n&&(r={start:e,end:t})}),"object"!==typeof r&&o(!1),r}(a,u,n),h=p.start,f=p.end;h<f;)d=a.get(h),a=a.set(h,r.applyEntity(d,null)),h++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),i={},o=t.getStartKey(),s=t.getStartOffset(),l=n.get(o),c=a(r,l,s);c!==l&&(i[o]=c);var u=t.getEndKey(),d=t.getEndOffset(),p=n.get(u);o===u&&(p=c);var h=a(r,p,d);return h!==p&&(i[u]=h),Object.keys(i).length?e.merge({blockMap:n.merge(i),selectionAfter:t}):e.set("selectionAfter",t)}},79639:(e,t,n)=>{"use strict";var r=n(47003),i=n(11306),o=n(36415);function a(e,t,n,a,s,l,c){var u=n.getStartOffset(),d=n.getEndOffset(),p=e.__get(s).getMutability(),h=c?u:d;if("MUTABLE"===p)return n;var f=i(t,s).filter(function(e){return h<=e.end&&h>=e.start});1!=f.length&&o(!1);var m=f[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});l||(c?d=m.end:u=m.start);var g=r.getRemovalRange(u,d,t.getText().slice(m.start,m.end),m.start,a);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}
2e.exports=function(e,t,n,r,i){var o=r.getStartOffset(),s=r.getEndOffset(),l=t.getEntityAt(o),c=n.getEntityAt(s-1);if(!l&&!c)return r;var u=r;if(l&&l===c)u=a(e,t,u,i,l,!0,!0);else if(l&&c){var d=a(e,t,u,i,l,!1,!0),p=a(e,n,u,i,c,!1,!1);u=u.merge({anchorOffset:d.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(l){var h=a(e,t,u,i,l,!1,!0);u=u.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var f=a(e,n,u,i,c,!1,!1);u=u.merge({focusOffset:f.getEndOffset(),isBackward:!1})}return u}},79690:(e,t,n)=>{"use strict";var r=n(25763),i=n(56283),o=n(36935);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,l=t.getAnchorKey(),c=e.getCurrentContent(),u=c.getBlockForKey(l).getLength();if(u<=1)return e;n===u?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var d=o(c,a),p=r.removeRange(c,a,"backward"),h=p.getSelectionAfter(),f=h.getAnchorOffset()-1,m=h.merge({anchorOffset:f,focusOffset:f}),g=r.replaceWithFragment(p,m,d),v=i.push(e,g,"insert-fragment");return i.acceptSelection(v,s)}},79806:(e,t,n)=>{"use strict";n(61504)("trim",function(e){return function(){return e(this,3)}})},80013:(e,t,n)=>{var r=n(76101),i=n(67060),o=n(23237),a=[].slice,s=/MSIE .\./.test(o),l=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},80050:(e,t,n)=>{"use strict";var r=n(67060),i=n(37652),o=n(57621),a=n(15785);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,l=arguments[1];return i(this),(t=void 0!==l)&&i(l),void 0==e?new this:(n=[],t?(r=0,s=o(l,arguments[2],2),a(e,!1,function(e){n.push(s(e,r++))})):a(e,!1,n.push,n),new this(n))}})}},80093:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},80156:(e,t,n)=>{var r=n(67060),i=n(89173),o=n(83881);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},80219:(e,t,n)=>{"use strict";var r=n(53763),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=p(n,v);try{c(t,v,y)}catch(b){}}}}return t}},80371:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(4);r(r.P+r.F*!n(65417)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},80528:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case u:case d:case f:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}t.vM=c,t.lD=p},80555:(e,t,n)=>{"use strict";var r;function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(52367),s=n(87707),l=n(66559),c=n(81144),u=n(92593),d=n(99493),p=n(67904),h=n(70306),f=n(36357),m=n(78819),g=n(31320),v=g.List,y=g.Map,b=g.OrderedSet,x=n(5941),S=n(55030),w=n(9990),_=n(71967),k=m("draft_tree_data_support"),M=new RegExp("\r","g"),C=new RegExp("\n","g"),T=new RegExp("^\n","g"),A=new RegExp(" ","g"),E=new RegExp(" ?","g"),j=new RegExp("​?","g"),N=["bold","bolder","500","600","700","800","900"],I=["light","lighter","normal","100","200","300","400"],D=["className","href","rel","target","title"],P=["alt","className","height","src","width"],L=(o(r={},p("public/DraftStyleDefault/depth0"),0),o(r,p("public/DraftStyleDefault/depth1"),1),o(r,p("public/DraftStyleDefault/depth2"),2),o(r,p("public/DraftStyleDefault/depth3"),3),o(r,p("public/DraftStyleDefault/depth4"),4),r),R=y({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),O=function(e){if(w(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some(function(n){e.classList.contains(n)&&(t=L[n])}),t},F=function(e){if(!x(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new d(t.href);return!0}catch(n){return!1}},B=function(e){if(!_(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!w(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,o=n.style.textDecoration;return t.withMutations(function(e){N.indexOf(r)>=0?e.add("BOLD"):I.indexOf(r)>=0&&e.remove("BOLD"),"italic"===i?e.add("ITALIC"):"normal"===i&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})},H=function(e){return"ul"===e||"ol"===e},W=function(){function e(e,t){o(this,"characterList",v()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",u),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=u,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(k?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i({key:e.key||h(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=i.nodeName.toLowerCase();if("body"===o||H(o)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;H(o)&&(this.wrapper=o,H(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var l=this.blockTypeMap.get(o);if(void 0===l)if("#text"!==o)if("br"!==o)if(B(i))this._addImgNode(i,t);else if(F(i))this._addAnchorNode(i,n,t);else{var c=t;R.has(o)&&(c=c.add(R.get(o))),c=U(i,c);var u=O(i);null!=u&&(c=c.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),c))}else this._addBreakNode(i,t);else this._addTextNode(i,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var d=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!==typeof l&&(l=this.disambiguate(o,this.wrapper)||l[0]||"unstyled"),!k&&w(i)&&("unordered-list-item"===l||"ordered-list-item"===l)){var f=i;this.currentDepth=z(f,this.currentDepth)}var m=h(),g=this._toBlockConfigs(Array.from(i.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:m,childConfigs:g,type:l})),this.currentDepth=d,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=a.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(e){return null!==e.getEntity()});(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry(function(e){return null!==e.getEntity()}))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(T,"")).replace(C," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){S(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(_(e)){var n=e,r={};P.forEach(function(e){var t=n.getAttribute(e);t&&(r[e]=t)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),m("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("\ud83d\udcf7",t):this._appendText("\ud83d\udcf7",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(x(e)){var r=e,i={};D.forEach(function(e){var t=r.getAttribute(e);t&&(i[e]=t)}),i.url=new d(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",i||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=v(o.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new l(i({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return v(e).flatMap(function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new s(i({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))})},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=v(),i=0;i<=t;i++){var o=e[i];n+=o.text,r=r.concat(o.characterList),""!==n&&"unstyled"!==o.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(o.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:f)(e=e.trim().replace(M,"").replace(A," ").replace(E,"").replace(j,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys(function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach(function(n){void 0===t[n]?t[n]=e:"string"===typeof t[n]?t[n]=[t[n],e]:t[n].push(e)})}),y(t)}(t);return new W(r,function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()}},80811:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},80835:(e,t,n)=>{var r=n(76101),i=n(89173),o=n(47755),a=n(13813),s=n(12718).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},80950:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(83468).A},81021:(e,t,n)=>{var r=n(67060),i=n(53536),o=Math.exp;r(r.S+r.F*n(83881)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},81075:(e,t,n)=>{"use strict";var r=n(18167),i=n(70899);function o(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return o(n.getPropertyValue(i(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return o(n.getPropertyValue(i(t)));if("display"===t)return"none"}return e.currentStyle?o("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):o(e.style&&e.style[r(t)])}},81101:(e,t,n)=>{var r=n(36040),i=n(76101).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},81115:(e,t,n)=>{"use strict";var r=n(14556),i=n(30289);e.exports=n(13750)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},81144:(e,t,n)=>{"use strict";var r=n(65043),i=n(67904),o=(0,n(31320).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=o},81287:(e,t,n)=>{"use strict";var r=n(66559),i=n(70306),o=n(31320).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return o(e.withMutations(function(e){e.forEach(function(r,o){var a=r.getKey(),s=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),d=i();if(n[a]=d,s&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([a,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"
2nextSibling"],d):e.setIn([a,"prevSibling"],null)),u&&e.get(u)){var p=e.get(u).getChildKeys();e.setIn([u,"children"],p.set(p.indexOf(r.getKey()),d))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],d),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);c.forEach(function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([a,"children"],r.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]}))}(e):function(e){return o(e.toArray().map(function(e){var t=i();return[t,e.set("key",t)]}))}(e)}},81589:(e,t,n)=>{"use strict";var r=n(52367),i=n(31320).Map,o={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,o){var a=e.getBlockMap(),s=t.getStartKey(),l=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),d=a.skipUntil(function(e,t){return t===s}).takeUntil(function(e,t){return t===c}).concat(i([[c,a.get(c)]])).map(function(e,t){var i,a;s===c?(i=l,a=u):(i=t===s?l:0,a=t===c?u:e.getLength());for(var d,p=e.getCharacterList();i<a;)d=p.get(i),p=p.set(i,o?r.applyStyle(d,n):r.removeStyle(d,n)),i++;return e.set("characterList",p)});return e.merge({blockMap:a.merge(d),selectionBefore:t,selectionAfter:t})}e.exports=o},81702:(e,t,n)=>{var r=n(33435),i=n(30853),o=n(37652),a=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:o)(n),a(r))}}})},81722:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},82160:(e,t,n)=>{"use strict";var r=n(65043);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=Object.prototype.hasOwnProperty,a=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s={},l={};function c(e){return!!o.call(l,e)||!o.call(s,e)&&(a.test(e)?l[e]=!0:(s[e]=!0,!1))}function u(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){d[e]=new u(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){d[e]=new u(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){d[e]=new u(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){d[e]=new u(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){d[e]=new u(e,6,!1,e,null,!1,!1)}
vendor: 5,769 bytes, line 2
2),["rowSpan","start"].forEach(function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(p,h);d[t]=new u(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(p,h);d[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(p,h);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)}),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)});var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(f).forEach(function(e){m.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]})});var g=/["'&<>]/;function v(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,r="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}i!==n&&(r+=e.substring(i,n)),i=n+1,r+=t}e=i!==n?r+e.substring(i,n):r}return e}var y=/([A-Z])/g,b=/^ms-/,x=Array.isArray;function S(e,t){return{insertionMode:e,selectedValue:t}}var w=new Map;function _(e,t,n){if("object"!==typeof n)throw Error(i(62));for(var r in t=!0,n)if(o.call(n,r)){var a=n[r];if(null!=a&&"boolean"!==typeof a&&""!==a){if(0===r.indexOf("--")){var s=v(r);a=v((""+a).trim())}else{s=r;var l=w.get(s);void 0!==l||(l=v(s.replace(y,"-$1").toLowerCase().replace(b,"-ms-")),w.set(s,l)),s=l,a="number"===typeof a?0===a||o.call(f,r)?""+a:a+"px":v((""+a).trim())}t?(t=!1,e.push(' style="',s,":",a)):e.push(";",s,":",a)}}t||e.push('"')}function k(e,t,n,r){switch(n){case"style":return void _(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',v(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',v(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',v(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',v(r),'"')}}else if(c(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(r),'"')}}function M(e,t,n){if(null!=t){if(null!=n)throw Error(i(60));if("object"!==typeof t||!("__html"in t))throw Error(i(61));null!==(t=t.__html)&&void 0!==t&&e.push(""+t)}}function C(e,t,n,r){e.push(E(n));var i,a=n=null;for(i in t)if(o.call(t,i)){var s=t[i];if(null!=s)switch(i){case"children":n=s;break;case"dangerouslySetInnerHTML":a=s;break;default:k(e,r,i,s)}}return e.push(">"),M(e,a,n),"string"===typeof n?(e.push(v(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,A=new Map;function E(e){var t=A.get(e);if(void 0===t){if(!T.test(e))throw Error(i(65,e));t="<"+e,A.set(e,t)}return t}function j(e,t,n,a,s){switch(t){case"select":e.push(E("select"));var l=null,u=null;for(f in n)if(o.call(n,f)){var d=n[f];if(null!=d)switch(f){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:k(e,a,f,d)}}return e.push(">"),M(e,u,l),l;case"option":u=s.selectedValue,e.push(E("option"));var p=d=null,h=null,f=null;for(l in n)if(o.call(n,l)){var m=n[l];if(null!=m)switch(l){case"children":d=m;break;case"selected":h=m;break;case"dangerouslySetInnerHTML":f=m;break;case"value":p=m;default:k(e,a,l,m)}}if(null!=u)if(n=null!==p?""+p:function(e){var t="";
2return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(d),x(u)){for(a=0;a<u.length;a++)if(""+u[a]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),M(e,f,d),d;case"textarea":for(d in e.push(E("textarea")),f=u=l=null,n)if(o.call(n,d)&&null!=(p=n[d]))switch(d){case"children":f=p;break;case"value":l=p;break;case"defaultValue":u=p;break;case"dangerouslySetInnerHTML":throw Error(i(91));default:k(e,a,d,p)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=f){if(null!=l)throw Error(i(92));if(x(f)&&1<f.length)throw Error(i(93));l=""+f}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(u in e.push(E("input")),p=f=d=l=null,n)if(o.call(n,u)&&null!=(h=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,"input"));case"defaultChecked":p=h;break;case"defaultValue":d=h;break;case"checked":f=h;break;case"value":l=h;break;default:k(e,a,u,h)}return null!==f?k(e,a,"checked",f):null!==p&&k(e,a,"checked",p),null!==l?k(e,a,"value",l):null!==d&&k(e,a,"value",d),e.push("/>"),null;case"menuitem":for(var g in e.push(E("menuitem")),n)if(o.call(n,g)&&null!=(l=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(i(400));default:k(e,a,g,l)}return e.push(">"),null;case"title":for(m in e.push(E("title")),l=null,n)if(o.call(n,m)&&null!=(u=n[m]))switch(m){case"children":l=u;break;case"dangerouslySetInnerHTML":throw Error(i(434));default:k(e,a,m,u)}return e.push(">"),l;case"listing":case"pre":for(p in e.push(E(t)),u=l=null,n)if(o.call(n,p)&&null!=(d=n[p]))switch(p){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;default:k(e,a,p,d)}if(e.push(">"),null!=u){if(null!=l)throw Error(i(60));if("object"!==typeof u||!("__html"in u))throw Error(i(61));null!==(n=u.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(E(t)),n)if(o.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,t));default:k(e,a,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return C(e,n,t,a);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),C(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return C(e,n,t,a);for(h in e.push(E(t)),u=l=null,n)if(o.call(n,h)&&null!=(d=n[h]))switch(h){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":_(e,a,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(h)&&"function"!==typeof d&&"symbol"!==typeof d&&e.push(" ",h,'="',v(d),'"')}return e.push(">"),M(e,u,l),l}}function N(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(i(395));return e.push(n),e.push('"></template>')}var I=/[<\u2028\u2029]/g;function D(e){return JSON.stringify(e).replace(I,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function P(e,t,n,r){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var L=Object.assign,R=Symbol.for("react.element"),O=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),H=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),Y=Symbol.for("react.scope"),X=Symbol.for("react.debug_trace_mode"),Z=Symbol.for("react.legacy_hidden"),Q=Symbol.for("react.default_value"),J=Symbol.iterator;function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case z:return"Fragment";case O:return"Portal";case B:return"Profiler";case F:return"StrictMode";case V:return"Suspense";case G:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case H:return(e.displayName||"Context")+".Consumer";case U:return(e._context.displayName||"Context")+".Provider";case W:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case q:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,r={};for(n in e)r[n]=t[n];return r}var ne=null;function re(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(i(401))}else{if(null===n)throw Error(i(401));re(e,n)}t.context._currentValue2=t.value}}function ie(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&ie(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function ae(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?re(e,t):ae(e,t)}function se(e,t){var n=t.parent;if(null===n)throw Error(i(402));e.depth===n.depth?re(e,n):se(e,n),t.context._currentValue2=t.value}function le(e){var t=ne;t!==e&&(null===t?oe(e):null===e?ie(t):t.depth===e.depth?re(t,e):t.depth>e.depth?ae(t,e):se(t,e),ne=e)}var ce={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,n,r){var i=void 0!==e.state?e.state:null;e.updater=ce,e.props=n,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"===typeof a&&null!==a?a._currentValue2:r,"function"===typeof(a=t.getDerivedStateFromProps)&&(i=null===(a=a(n,i))||void 0===a?i:L({},i,a),e.state=i),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ce.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&
vendor: 17,270 bytes, line 2
21===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"===typeof s?s.call(e,o,n,r):s)&&(i?(i=!1,o=L({},o,s)):L(o,s))}e.state=o}else o.queue=null}var de={id:1,overflow:""};function pe(e,t,n){var r=e.id;e=e.overflow;var i=32-he(r)-1;r&=~(1<<i),n+=1;var o=32-he(t)+i;if(30<o){var a=i-i%5;return o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,{id:1<<32-he(t)+i|n<<i|r,overflow:o+e}}return{id:1<<o|n<<i|r,overflow:e}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/me|0)|0},fe=Math.log,me=Math.LN2;var ge="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ve=null,ye=null,be=null,xe=null,Se=!1,we=!1,_e=0,ke=null,Me=0;function Ce(){if(null===ve)throw Error(i(321));return ve}function Te(){if(0<Me)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Ae(){return null===xe?null===be?(Se=!1,be=xe=Te()):(Se=!0,xe=be):null===xe.next?(Se=!1,xe=xe.next=Te()):(Se=!0,xe=xe.next),xe}function Ee(){ye=ve=null,we=!1,be=null,Me=0,xe=ke=null}function je(e,t){return"function"===typeof t?t(e):t}function Ne(e,t,n){if(ve=Ce(),xe=Ae(),Se){var r=xe.queue;if(t=r.dispatch,null!==ke&&void 0!==(n=ke.get(r))){ke.delete(r),r=xe.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return xe.memoizedState=r,[r,t]}return[xe.memoizedState,t]}return e=e===je?"function"===typeof t?t():t:void 0!==n?n(t):t,xe.memoizedState=e,e=(e=xe.queue={last:null,dispatch:null}).dispatch=De.bind(null,ve,e),[xe.memoizedState,e]}function Ie(e,t){if(ve=Ce(),t=void 0===t?null:t,null!==(xe=Ae())){var n=xe.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!ge(t[i],r[i])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),xe.memoizedState=[e,t],e}function De(e,t,n){if(25<=Me)throw Error(i(301));if(e===ve)if(we=!0,e={action:n,next:null},null===ke&&(ke=new Map),void 0===(n=ke.get(t)))ke.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Pe(){throw Error(i(394))}function Le(){}var Re={readContext:function(e){return e._currentValue2},useContext:function(e){return Ce(),e._currentValue2},useMemo:Ie,useReducer:Ne,useRef:function(e){ve=Ce();var t=(xe=Ae()).memoizedState;return null===t?(e={current:e},xe.memoizedState=e):t},useState:function(e){return Ne(je,e)},useInsertionEffect:Le,useLayoutEffect:function(){},useCallback:function(e,t){return Ie(function(){return e},t)},useImperativeHandle:Le,useEffect:Le,useDebugValue:Le,useDeferredValue:function(e){return Ce(),e},useTransition:function(){return Ce(),[!1,Pe]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-he(e)-1)).toString(32)+t;var n=Oe;if(null===n)throw Error(i(404));return t=_e++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ce(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(i(407));return n()}},Oe=null,ze=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fe(e){return console.error(e),null}function Be(){}function Ue(e,t,n,r,i,o,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:r,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function He(e,t,n,r,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:i,textEmbedded:o}}function We(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ve(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ge(e,t,n,r,i){for(ve={},ye=t,_e=0,e=n(r,i);we;)we=!1,_e=0,Me+=1,xe=null,e=n(r,i);return Ee(),e}function qe(e,t,n,r){var o=n.render(),a=r.childContextTypes;if(null!==a&&void 0!==a){var s=t.legacyContext;if("function"!==typeof n.getChildContext)r=s;else{for(var l in n=n.getChildContext())if(!(l in a))throw Error(i(108,$(r)||"Unknown",l));r=L({},s,n)}t.legacyContext=r,Xe(e,t,o),t.legacyContext=s}else Xe(e,t,o)}function Ke(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ye(e,t,n,r,o){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){o=te(n,t.legacyContext);var a=n.contextType;ue(a=new n(r,"object"===typeof a&&null!==a?a._currentValue2:o),n,r,o),qe(e,t,a,n)}else{o=Ge(e,t,n,r,a=te(n,t.legacyContext));var s=0!==_e;if("object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof)ue(o,n,r,a),qe(e,t,o,n);else if(s){r=t.treeContext,t.treeContext=pe(r,1,0);try{Xe(e,t,o)}finally{t.treeContext=r}}else Xe(e,t,o)}else{if("string"!==typeof n){switch(n){case Z:case X:case F:case B:case z:case G:return void Xe(e,t,r.children);case Y:throw Error(i(343));case V:e:{n=t.blockedBoundary,o=t.blockedSegment,a=r.fallback,r=r.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=He(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var u=He(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Qe(e,t,r),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,et(l,u),0===l.pendingTasks)break e}catch(d){u.status=4,l.forceClientRender=!0,l.errorDigest=We(e,d)}finally{t.blockedBoundary=n,t.blockedSegment=o}t=Ue(e,a,n,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case W:if(r=Ge(e,t,n.render,r,o),0!==_e){n=t.treeContext,t.treeContext=pe(n,1,0);try{Xe(e,t,r)}finally{t.treeContext=n}}else Xe(e,t,r);return;case q:return void Ye(e,t,n=n.type,r=Ke(n,r),o);case U:if(o=r.children,n=n._context,r=r.value,a=n._currentValue2,n._currentValue2=r,ne=r={parent:s=ne,depth:null===s?0:s.depth+1,context:n,parentValue:a,value:r},t.context=r,Xe(e,t,o),null===(e=ne))throw Error(i(403));return r=e.parentValue,e.context._currentValue2=r===Q?e.context._defaultValue:r,e=ne=e.parent,void(t.context=e);case H:return void Xe(e,t,r=(r=r.children)(n._currentValue2));case K:return void Ye(e,t,n=(o=n._init)(n._payload),r=Ke(n,r),void 0)}throw Error(i(130,null==n?n:typeof n,""))}switch(a=j((o=t.blockedSegment).chunks,n,r,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=function(e,t,n){switch(t){case"select":return S(1,null!=n.value?n.value:n.defaultValue);case"svg":return S(2,null);case"math":return S(3,null);case"foreignObject":return S(1,null);case"table":return S(4,null);case"thead":case"tbody":case"tfoot":return S(5,null);case"colgroup":return S(7,null);case"tr":return S(6,null)}return 4<=e.insertionMode||0===e.insertionMode?S(1,null):e}(s,n,r),Qe(e,t,a),o.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",n,">")}o.lastPushedText=!1}}function Xe(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case R:return void Ye(e,t,n.type,n.props,n.ref);case O:throw Error(i(257));case K:var r=n._init;return void Xe(e,t,n=r(n._payload))}if(x(n))return void Ze(e,t,n);if(null===n||"object"!==typeof n?r=null:r="function"===typeof(r=J&&n[J]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var o=[];do{o.push(n.value),n=r.next()}while(!n.done);Ze(e,t,o)}return}throw e=Object.prototype.toString.call(n),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(r=t.blockedSegment).lastPushedText=P(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"===typeof n&&((r=t.blockedSegment).lastPushedText=P(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ze(e,t,n){for(var r=n.length,i=0;i<r;i++){var o=t.treeContext;t.treeContext=pe(o,r,i);try{Qe(e,t,n[i])}finally{t.treeContext=o}}}function Qe(e,t,n){var r=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return Xe(e,t,n)}catch(l){if(Ee(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,le(o),l;n=l;var a=t.blockedSegment,s=He(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Ue(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=i,t.context=o,le(o)}}function Je(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function $e(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(i(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return $e(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Be,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Je,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=ze.current;ze.current=Re;var r=Oe;Oe=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){le(a.context);try{Xe(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),a.abortSet.delete(a),l.status=1,tt(s,a.blockedBoundary,l)}catch(h){if(Ee(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var c=a.ping;h.then(c,c)}else{a.abortSet.delete(a),l.status=4;var u=a.blockedBoundary,d=h,p=We(s,d);if(null===u?Ve(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&<(e,e.destination)}catch(h){We(e,h),Ve(e,h)}finally{Oe=r,ze.current=n,n===Re&&le(t)}}}function rt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var o=!0;r=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(o=n[s];a<o.index;a++)t.push(r[a]);o=it(e,t,o)}for(;a<r.length-1;a++)t.push(r[a]);return a<r.length&&(o=t.push(r[a])),o;default:throw Error(i(390))}}function it(e,t,n){var r=n.boundary;if(null===r)return rt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=v(r),t.push(r),t.push('"')),t.push("></template>")),rt(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,a=o.nextSuspenseID++;return o=o.boundaryPrefix+a.toString(16),r=r.id=o,N(t,e.responseState,r),rt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),N(t,e.responseState,r.id),rt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(i(391));return it(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ot(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(i(397))}}(t,e.responseState,n.formatContext,n.id),it(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(i(397))}}(t,n.formatContext)}function at(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)st(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(i(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function st(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(i(392));return ot(e,t,r)}return ot(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function lt(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){it(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var s=a[o];r=t;var l=e.responseState,c=s.id,u=s.errorDigest,d=s.errorMessage,p=s.errorComponentStack;if(r.push(l.startInlineScript),l.sentClientRenderFunction?r.push('$RX("'):(l.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(i(395));if(r.push(c),r.push('"'),u||d||p){r.push(",");var h=D(u||"");r.push(h)}if(d||p){r.push(",");var f=D(d||"");r.push(f)}if(p){r.push(",");var m=D(p);r.push(m)}if(!r.push(")<\/script>"))return e.destination=null,o++,void a.splice(0,o)}a.splice(0,o);var g=e.completedBoundaries;for(o=0;o<g.length;o++)if(!at(e,t,g[o]))return e.destination=null,o++,void g.splice(0,o);g.splice(0,o);var v=e.partialBoundaries;for(o=0;o<v.length;o++){var y=v[o];e:{a=e,s=t;var b=y.completedSegments;for(l=0;l<b.length;l++)if(!st(a,s,y,b[l])){l++,b.splice(0,l);var x=!1;break e}b.splice(0,l),x=!0}if(!x)return e.destination=null,o++,void v.splice(0,o)}v.splice(0,o);var S=e.completedBoundaries;for(o=0;o<S.length;o++)if(!at(e,t,S[o]))return e.destination=null,o++,void S.splice(0,o);S.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ct(e,t){try{var n=e.abortableTasks;
2n.forEach(function(n){return $e(n,e,t)}),n.clear(),null!==e.destination&<(e,e.destination)}catch(r){We(e,r),Ve(e,r)}}function ut(){}function dt(e,t,n,r){var o=!1,a=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){o=!0,a=e}},c=!1;if(e=function(e,t,n,r,i,o,a,s,l){var c=[],u=new Set;return(n=He(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?Fe:i,onAllReady:void 0===o?Be:o,onShellReady:void 0===a?Be:a,onShellError:void 0===s?Be:s,onFatalError:void 0===l?Be:l},0,null,n,!1,!1)).parentFlushed=!0,e=Ue(t,e,null,n,u,ee,null,de),c.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ut,void 0,function(){c=!0},void 0,void 0),nt(e),ct(e,r),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{lt(e,l)}catch(u){We(e,u),Ve(e,u)}}if(o)throw a;if(!c)throw Error(i(426));return s}t.renderToNodeStream=function(){throw Error(i(207))},t.renderToStaticMarkup=function(e,t){return dt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(i(208))},t.renderToString=function(e,t){return dt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.3.1"},82443:(e,t,n)=>{"use strict";var r=n(67060),i=n(93252);r(r.P+r.F*!n(65417)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},82730:(e,t,n)=>{"use strict";var r=n(65043),i=n(77067);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}
vendor: 19,832 bytes, line 2
2),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(f,e)||!d.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),w=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),T=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=P&&e[P]||e["@@iterator"])?e:null}var R,O=Object.assign;function z(e){if(void 0===R)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case w:return"Portal";case M:return"Profiler";case k:return"StrictMode";case E:return"Suspense";case j:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function oe(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach(function(e){fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]})});var ve=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,_e=null,ke=null;function Me(e){if(e=bi(e)){if("function"!==typeof we)throw Error(o(280));var t=e.stateNode;t&&(t=Si(t),we(e.stateNode,e.type,t))}}function Ce(e){_e?ke?ke.push(e):ke=[e]:_e=e}function Te(){if(_e){var e=_e,t=ke;if(ke=_e=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Ae(e,t){return e(t)}function Ee(){}var je=!1;function Ne(e,t,n){if(je)return e(t,n);je=!0;try{return Ae(e,t,n)}finally{je=!1,(null!==_e||null!==ke)&&(Ee(),Te())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=Si(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var De=!1;if(u)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){De=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(ue){De=!1}function Le(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Re=!1,Oe=null,ze=!1,Fe=null,Be={onError:function(e){Re=!0,Oe=e}};function Ue(e,t,n,r,i,o,a,s,l){Re=!1,Oe=null,Le.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(o(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ve(i),e;if(a===r)return Ve(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Xe=i.unstable_shouldYield,Ze=i.unstable_requestPaint,Qe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,$e=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var St,wt,_t,kt,Mt,Ct=!1,Tt=[],At=null,Et=null,jt=null,Nt=new Map,It=new Map,Dt=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Rt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ot(e){var t=yi(e.target);if(null!==t){var n=He(t);
vendor: 5,370 bytes, line 2
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Mt(e.priority,function(){_t(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){Ct=!1,null!==At&&zt(At)&&(At=null),null!==Et&&zt(Et)&&(Et=null),null!==jt&&zt(jt)&&(jt=null),Nt.forEach(Ft),It.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return Ut(t,e)}if(0<Tt.length){Ut(Tt[0],e);for(var n=1;n<Tt.length;n++){var r=Tt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ut(At,e),null!==Et&&Ut(Et,e),null!==jt&&Ut(jt,e),Nt.forEach(t),It.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Ot(n),null===n.blockedOn&&Dt.shift()}var Wt=x.ReactCurrentBatchConfig,Vt=!0;function Gt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function qt(e,t,n,r){var i=bt,o=Wt.transition;Wt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,Wt.transition=o}}function Kt(e,t,n,r){if(Vt){var i=Xt(e,t,n,r);if(null===i)Vr(e,t,r,Yt,n),Lt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return At=Rt(At,e,t,n,r,i),!0;case"dragenter":return Et=Rt(Et,e,t,n,r,i),!0;case"mouseover":return jt=Rt(jt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Nt.set(o,Rt(Nt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,It.set(o,Rt(It.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&St(o),null===(o=Xt(e,t,n,r))&&Vr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Yt=null;function Xt(e,t,n,r){if(Yt=null,null!==(e=yi(e=Se(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,$t=null;function en(){if($t)return $t;var e,t,n=Jt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=O({},cn,{view:0,detail:0}),pn=on(dn),hn=O({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 101,624 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(hn),mn=on(O({},hn,{dataTransfer:0})),gn=on(O({},dn,{relatedTarget:0})),vn=on(O({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=O({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(O({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Mn(){return kn}var Cn=O({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=on(Cn),An=on(O({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=on(O({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),jn=on(O({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=O({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Nn),Dn=[9,13,27,32],Pn=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Rn=u&&"TextEvent"in window&&!Ln,On=u&&(!Pn||Ln&&8<Ln&&11>=Ln),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Gn(e,t,n,r){Ce(r),0<(t=qr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Yn(e){zr(e,0)}function Xn(e){if(K(xi(e)))return e}function Zn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var $n="oninput"in document;if(!$n){var er=document.createElement("div");er.setAttribute("oninput","return;"),$n="function"===typeof er.oninput}Jn=$n}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Xn(Kn)){var t=[];Gn(t,Kn,e,Se(e)),Ne(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Kn)}function or(e,t){if("click"===e)return Xn(t)}function ar(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=qr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},_r={},kr={};function Mr(e){if(_r[e])return _r[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return _r[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Cr=Mr("animationend"),Tr=Mr("animationiteration"),Ar=Mr("animationstart"),Er=Mr("transitionend"),jr=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){jr.set(e,t),l(t,[e])}for(var Dr=0;Dr<Nr.length;Dr++){var Pr=Nr[Dr];Ir(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Ir(Cr,"onAnimationEnd"),Ir(Tr,"onAnimationIteration"),Ir(Ar,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Er,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Or(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if(Ue.apply(this,arguments),Re){if(!Re)throw Error(o(198));var u=Oe;Re=!1,Oe=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Or(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Or(i,s,c),o=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Ur]){e[Ur]=!0,a.forEach(function(t){"selectionchange"!==t&&(Rr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Zt(t)){case 1:var i=Gt;break;case 4:i=qt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ne(function(){var r=o,i=Se(n),a=[];e:{var s=jr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case Cr:case Tr:case Ar:l=vn;break;case Er:l=jn;break;case"scroll":l=pn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Ie(f,p))&&u.push(Gr(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:xi(l),h=null==c?s:xi(c),(s=new u(m,f+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,yi(i)===r&&((u=new u(p,f+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=Kr(h))f++;for(h=0,m=p;m;m=Kr(m))h++;for(;0<f-h;)u=Kr(u),f--;for(;0<h-f;)p=Kr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=Kr(u),p=Kr(p)}u=null}else u=null;null!==l&&Yr(a,s,l,u,!1),null!==c&&null!==d&&Yr(a,d,c,u,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Zn;else if(Vn(s))if(Qn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Gn(a,g,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xi(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,i)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Jt="value"in(Qt=i)?Qt.value:Qt.textContent,Hn=!0)),0<(v=qr(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),$t=Jt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}zr(a,t)})}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ie(e,n))&&r.unshift(Gr(e,o,i)),null!=(o=Ie(e,t))&&r.push(Gr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ie(n,o))&&a.unshift(Gr(n,l,s)):i||null!=(l=Ie(n,o))&&a.push(Gr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Xr,"\n").replace(Zr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function $r(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout(function(){throw e})}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),pi="__reactFiber$"+di,hi="__reactProps$"+di,fi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[pi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[pi]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Si(e){return e[hi]||null}var wi=[],_i=-1;function ki(e){return{current:e}}function Mi(e){0>_i||(e.current=wi[_i],wi[_i]=null,_i--)}function Ci(e,t){_i++,wi[_i]=e.current,e.current=t}var Ti={},Ai=ki(Ti),Ei=ki(!1),ji=Ti;function Ni(e,t){var n=e.type.contextTypes;if(!n)return Ti;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Di(){Mi(Ei),Mi(Ai)}function Pi(e,t,n){if(Ai.current!==Ti)throw Error(o(168));Ci(Ai,t),Ci(Ei,n)}function Li(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,W(e)||"Unknown",i));return O({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ti,ji=Ai.current,Ci(Ai,e),Ci(Ei,Ei.current),!0}function Oi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Li(e,t,ji),r.__reactInternalMemoizedMergedChildContext=e,Mi(Ei),Mi(Ai),Ci(Ai,e)):Mi(Ei),Ci(Ei,n)}var zi=null,Fi=!1,Bi=!1;function Ui(e){null===zi?zi=[e]:zi.push(e)}function Hi(){if(!Bi&&null!==zi){Bi=!0;var e=0,t=bt;try{var n=zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zi=null,Fi=!1}catch(i){throw null!==zi&&(zi=zi.slice(e+1)),Ke($e,Hi),i}finally{bt=t,Bi=!1}}return null}var Wi=[],Vi=0,Gi=null,qi=0,Ki=[],Yi=0,Xi=null,Zi=1,Qi="";function Ji(e,t){Wi[Vi++]=qi,Wi[Vi++]=Gi,Gi=e,qi=t}function $i(e,t,n){Ki[Yi++]=Zi,Ki[Yi++]=Qi,Ki[Yi++]=Xi,Xi=e;var r=Zi;e=Qi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Zi=1<<32-at(t)+i|n<<i|r,Qi=o+e}else Zi=1<<o|n<<i|r,Qi=e}function eo(e){null!==e.return&&(Ji(e,1),$i(e,1,0))}function to(e){for(;e===Gi;)Gi=Wi[--Vi],Wi[Vi]=null,qi=Wi[--Vi],Wi[Vi]=null;for(;e===Xi;)Xi=Ki[--Yi],Ki[Yi]=null,Qi=Ki[--Yi],Ki[Yi]=null,Zi=Ki[--Yi],Ki[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Nc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xi?{id:Zi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ci(e.nextSibling)}function fo(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=x.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Oc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===I&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Pc(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Oc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Pc(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case w:return(t=zc(t,e.mode,n)).return=e,t;case I:return p(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lc(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?c(e,t,n,r):null;case w:return n.key===i?u(e,t,n,r):null;case I:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||L(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function f(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return f(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),io&&Ji(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,m),c}for(d=r(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),io&&Ji(i,m),c}function g(i,s,l,c){var u=L(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=f(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),io&&Ji(i,g),u}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case S:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===_){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===I&&bo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=vo(r,u,a),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===_?((o=Lc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Pc(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case w:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zc(a,r.mode,l)).return=r,r=o}return s(r);case I:return e(r,o,(u=a._init)(a._payload),l)}if(te(a))return m(r,o,a,l);if(L(a))return g(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Oc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var So=xo(!0),wo=xo(!1),_o=ki(null),ko=null,Mo=null,Co=null;function To(){Co=Mo=ko=null}function Ao(e){var t=_o.current;Mi(_o),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jo(e,t){ko=e,Co=Mo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function No(e){var t=e._currentValue;if(Co!==e)if(e={context:e,memoizedValue:t,next:null},null===Mo){if(null===ko)throw Error(o(308));Mo=e,ko.dependencies={lanes:0,firstContext:e}}else Mo=Mo.next=e;return t}var Io=null;function Do(e){null===Io?Io=[e]:Io.push(e)}function Po(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Do(t)):(n.next=i.next,i.next=n),t.interleaved=n,Lo(e,r)}function Lo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Al)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Lo(e,n)}return null===(i=r.interleaved)?(t.next=t,Do(r)):(t.next=i.next,i.next=t),r.interleaved=t,Lo(e,n)}function Uo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wo(e,t,n,r){var i=e.updateQueue;Ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(p=t,h=n,m.tag){case 1:if("function"===typeof(f=m.payload)){d=f.call(h,d,p);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(p="function"===typeof(f=m.payload)?f.call(h,d,p):f)||void 0===p)break e;d=O({},d,p);break e;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Rl|=a,e.lanes=a,e.memoizedState=d}}function Vo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Go={},qo=ki(Go),Ko=ki(Go),Yo=ki(Go);function Xo(e){if(e===Go)throw Error(o(174));return e}function Zo(e,t){switch(Ci(Yo,t),Ci(Ko,e),Ci(qo,Go),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Mi(qo),Ci(qo,t)}function Qo(){Mi(qo),Mi(Ko),Mi(Yo)}function Jo(e){Xo(Yo.current);var t=Xo(qo.current),n=le(t,e.type);t!==n&&(Ci(Ko,e),Ci(qo,n))}function $o(e){Ko.current===e&&(Mi(qo),Mi(Ko))}var ea=ki(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=x.ReactCurrentDispatcher,oa=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,pa=0,ha=0;function fa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?$a:es,e=n(r,i),da){a=0;do{if(da=!1,pa=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function va(){var e=0!==pa;return pa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function xa(e,t){return"function"===typeof t?t(e):t}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,sa.lanes|=d,Rl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Rl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _a(){}function ka(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ra(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Na(9,Ca.bind(null,n,r,i,t),void 0,null),null===El)throw Error(o(349));0!==(30&aa)||Ma(n,t,i)}return i}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ca(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Ea(e)}function Ta(e,t,n){return n(function(){Aa(t)&&Ea(e)})}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ea(e){var t=Lo(e,1);null!==t&&nc(t,e,1,-1)}function ja(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Na(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ba().memoizedState}function Da(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Na(1|t,n,void 0,void 0===r?null:r)}function Pa(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Na(t,n,o,r))}sa.flags|=e,i.memoizedState=Na(1|t,n,o,r)}function La(e,t){return Da(8390656,8,e,t)}function Ra(e,t){return Pa(2048,8,e,t)}function Oa(e,t){return Pa(4,2,e,t)}function za(e,t){return Pa(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Pa(4,4,Fa.bind(null,t,e),n)}function Ua(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Va(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Rl|=n,e.baseState=!0),t)}function Ga(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function qa(){return ba().memoizedState}function Ka(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Za(t,n);else if(null!==(n=Po(e,t,n,r))){nc(n,e,r,ec()),Qa(n,t,r)}}function Ya(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Za(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Do(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Po(e,t,i,r))&&(nc(n,e,r,i=ec()),Qa(n,t,r))}}function Xa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:No,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},$a={readContext:No,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:No,useEffect:La,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:ja,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=ja(!1),t=e[0];return e=Ga.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===El)throw Error(o(349));0!==(30&aa)||Ma(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,La(Ta.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,Ca.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=El.identifierPrefix;if(io){var n=Qi;t=":"+t+"R"+(n=(Zi&~(1<<32-at(Zi)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:No,useCallback:Ha,useContext:No,useEffect:Ra,useImperativeHandle:Ba,useInsertionEffect:Oa,useLayoutEffect:za,useMemo:Wa,useReducer:Sa,useRef:Ia,useState:function(){return Sa(xa)},useDebugValue:Ua,useDeferredValue:function(e){return Va(ba(),la.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ba().memoizedState]},useMutableSource:_a,useSyncExternalStore:ka,useId:qa,unstable_isNewReconciler:!1},ts={readContext:No,useCallback:Ha,useContext:No,useEffect:Ra,useImperativeHandle:Ba,useInsertionEffect:Oa,useLayoutEffect:za,useMemo:Wa,useReducer:wa,useRef:Ia,useState:function(){return wa(xa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Va(t,la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:_a,useSyncExternalStore:ka,useId:qa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Fo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Bo(e,i,r))&&(nc(t,e,r,n),Uo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Ti,o=t.contextType;return"object"===typeof o&&null!==o?o=No(o):(i=Ii(t)?ji:Ai.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ni(e,i):Ti),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Oo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=No(o):(o=Ii(t)?ji:Ai.current,i.context=Ni(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Wo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Gl=r),ds(0,t)},n}function fs(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Mc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Bo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=x.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?wo(t,null,n,r):So(t,e.child,n,r)}function Ss(e,t,n,r,i){n=n.render;var o=t.ref;return jo(t,i),r=ga(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function ws(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Ic(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,_s(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Vs(e,t,i)}return t.flags|=1,(e=Dc(o,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Vs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Cs(e,t,n,r,i)}function ks(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Dl,Il),Il|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Dl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ci(Dl,Il),Il|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ci(Dl,Il),Il|=r;return xs(e,t,i,n),t.child}function Ms(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,i){var o=Ii(n)?ji:Ai.current;return o=Ni(t,o),jo(t,i),n=ga(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function Ts(e,t,n,r,i){if(Ii(n)){var o=!0;Ri(t)}else o=!1;if(jo(t,i),null===t.stateNode)Ws(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=No(c):c=Ni(t,c=Ii(n)?ji:Ai.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Ro=!1;var p=t.memoizedState;a.state=p,Wo(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Ei.current||Ro?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Ro||os(t,n,s,r,p,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=No(l):l=Ni(t,l=Ii(n)?ji:Ai.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,a,r,l),Ro=!1,p=t.memoizedState,a.state=p,Wo(t,r,a,i);var f=t.memoizedState;s!==d||p!==f||Ei.current||Ro?("function"===typeof h&&(rs(t,n,h,r),f=t.memoizedState),(c=Ro||os(t,n,c,r,p,f,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,o,i)}function As(e,t,n,r,i,o){Ms(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Oi(t,n,!1),Vs(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=So(t,e.child,null,o),t.child=So(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&Oi(t,n,!0),t.child}function Es(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),Zo(e,t.containerInfo)}function js(e,t,n,r,i){return fo(),mo(i),t.flags|=256,xs(e,t,n,r),t.child}var Ns,Is,Ds,Ps,Ls={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Os(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ci(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Rc(l,i,0,null),e=Lc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Ls,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Rc({mode:"visible",children:r.children},i,0,null),(a=Lc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&So(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Ls,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=El)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Lo(e,i),nc(r,e,i,-1))}return mc(),Fs(e,t,s,r=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[Yi++]=Zi,Ki[Yi++]=Qi,Ki[Yi++]=Xi,Zi=e.id,Qi=e.overflow,Xi=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dc(r,s):(s=Lc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ls,i}return e=(s=e.child).sibling,i=Dc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mo(r),So(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Us(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ci(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Us(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Ii(t.type)&&Di(),qs(t),null;case 3:return r=t.stateNode,Qo(),Mi(Ei),Mi(Ai),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Is(e,t),qs(t),null;case 5:$o(t);var i=Xo(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return qs(t),null}if(e=Xo(qo.current),po(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[pi]=t,r[hi]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<Lr.length;i++)Fr(Lr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Z(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":ie(r,a),Fr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":q(r),$(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=$r)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pi]=t,e[hi]=r,Ns(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Lr.length;i++)Fr(Lr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":Z(e,r),i=X(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=O({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(a in ye(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":q(e),$(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=$r)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Ps(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Xo(Yo.current),Xo(qo.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pi]=t,t.stateNode=r}return qs(t),null;case 13:if(Mi(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),fo(),t.flags|=98560,a=!1;else if(a=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[pi]=t}else fo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Pl&&(Pl=3):mc())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return Qo(),Is(e,t),null===e&&Hr(t.stateNode.containerInfo),qs(t),null;case 10:return Ao(t.type._context),qs(t),null;case 19:if(Mi(ea),null===(a=t.memoizedState))return qs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Gs(a,!1);else{if(0!==Pl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Gs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Hl&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return qs(t),null}else 2*Qe()-a.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Ci(ea,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Il)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&Di(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qo(),Mi(Ei),Mi(Ai),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return $o(t),null;case 13:if(Mi(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Mi(ea),null;case 4:return Qo(),null;case 10:return Ao(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ns=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(){},Ds=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Xo(qo.current);var o,a=null;switch(n){case"input":i=X(e,i),r=X(e,r),a=[];break;case"select":i=O({},i,{value:void 0}),r=O({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=$r)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ps=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Zs=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Js=null;function $s(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){kc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){kc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pi],delete t[hi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=$r));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Zs||$s(n,t);case 6:var r=ul,i=dl;ul=null,pl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ht(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}pl(e,t,n);break;case 1:if(!Zs&&($s(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){kc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,pl(e,t,n),Zs=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach(function(t){var r=Ac.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));hl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){kc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){kc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){kc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&$s(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&$s(n,n.return),32&e.flags){var i=e.stateNode;try{pe(i,"")}catch(g){kc(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(i,p):"dangerouslySetInnerHTML"===d?de(i,p):"children"===d?pe(i,p):b(i,d,p,u)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(i,!!a.multiple,f,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(g){kc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){kc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){kc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Qe())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,ml(t,e),Zs=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(f=(h=Js).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:$s(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){kc(r,n,g)}}break;case 5:$s(h,h.return);break;case 22:if(null!==h.memoizedState){Sl(p);continue}}null!==f?(f.return=h,Js=f):Sl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){kc(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){kc(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),vl(e),4&r&&fl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(pe(i,""),r.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){kc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Xs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Xs;var c=Zs;if(Xs=a,(Zs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?wl(i):null!==l?(l.return=a,Js=l):wl(i);for(;null!==o;)Js=o,bl(o,t,n),o=o.sibling;Js=i,Xs=s,Zs=c}xl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Js=o):xl(e)}}function xl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Vo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(o(163))}Zs||512&t.flags&&il(t)}catch(h){kc(t,t.return,h)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){kc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){kc(t,i,l)}}var o=t.return;try{il(t)}catch(l){kc(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){kc(t,a,l)}}}catch(l){kc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var _l,kl=Math.ceil,Ml=x.ReactCurrentDispatcher,Cl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Al=0,El=null,jl=null,Nl=0,Il=0,Dl=ki(0),Pl=0,Ll=null,Rl=0,Ol=0,zl=0,Fl=null,Bl=null,Ul=0,Hl=1/0,Wl=null,Vl=!1,Gl=null,ql=null,Kl=!1,Yl=null,Xl=0,Zl=0,Ql=null,Jl=-1,$l=0;function ec(){return 0!==(6&Al)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Al)&&0!==Nl?Nl&-Nl:null!==go.transition?(0===$l&&($l=mt()),$l):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nc(e,t,n,r){if(50<Zl)throw Zl=0,Ql=null,Error(o(185));vt(e,n,r),0!==(2&Al)&&e===El||(e===El&&(0===(2&Al)&&(Ol|=n),4===Pl&&sc(e,Nl)),rc(e,r),1===n&&0===Al&&0===(1&t.mode)&&(Hl=Qe()+500,Fi&&Hi()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===El?Nl:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Fi=!0,Ui(e)}(lc.bind(null,e)):Ui(lc.bind(null,e)),ai(function(){0===(6&Al)&&Hi()}),n=null;else{switch(xt(r)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ec(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,$l=0,0!==(6&Al))throw Error(o(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=pt(e,e===El?Nl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Al;Al|=2;var a=fc();for(El===e&&Nl===t||(Wl=null,Hl=Qe()+500,pc(e,t));;)try{yc();break}catch(l){hc(e,l)}To(),Ml.current=a,Al=i,null!==jl?t=0:(El=null,Nl=0,t=Pl)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(r=i,t=oc(e,i))),1===t)throw n=Ll,pc(e,0),sc(e,r),rc(e,Qe()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=ft(e))&&(r=a,t=oc(e,a))),1===t))throw n=Ll,pc(e,0),sc(e,r),rc(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Sc(e,Bl,Wl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Qe())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(Sc.bind(null,e,Bl,Wl),t);break}Sc(e,Bl,Wl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kl(r/1960))-r)){e.timeoutHandle=ri(Sc.bind(null,e,Bl,Wl),r);break}Sc(e,Bl,Wl);break;default:throw Error(o(329))}}}return rc(e,Qe()),e.callbackNode===n?ic.bind(null,e):null}function oc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Al))throw Error(o(327));wc();var t=pt(e,0);if(0===(1&t))return rc(e,Qe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=Ll,pc(e,0),sc(e,t),rc(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Bl,Wl),rc(e,Qe()),null}function cc(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Hl=Qe()+500,Fi&&Hi())}}function uc(e){null!==Yl&&0===Yl.tag&&0===(6&Al)&&wc();var t=Al;Al|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,0===(6&(Al=t))&&Hi()}}function dc(){Il=Dl.current,Mi(Dl)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==jl)for(n=jl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Di();break;case 3:Qo(),Mi(Ei),Mi(Ai),ra();break;case 5:$o(r);break;case 4:Qo();break;case 13:case 19:Mi(ea);break;case 10:Ao(r.type._context);break;case 22:case 23:dc()}n=n.return}if(El=e,jl=e=Dc(e.current,null),Nl=Il=t,Pl=0,Ll=null,zl=Ol=Rl=0,Bl=Fl=null,null!==Io){for(t=0;t<Io.length;t++)if(null!==(r=(n=Io[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Io=null}return e}function hc(e,t){for(;;){var n=jl;try{if(To(),ia.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,pa=0,Cl.current=null,null===n||null===n.return){Pl=1,Ll=t,jl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Nl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,vs(f,s,l,0,t),1&f.mode&&ms(a,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Pl&&(Pl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===ql||!ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,fs(a,l,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(x){t=x,jl===n&&null!==n&&(jl=n=n.return);continue}break}}function fc(){var e=Ml.current;return Ml.current=Ja,null===e?Ja:e}function mc(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===El||0===(268435455&Rl)&&0===(268435455&Ol)||sc(El,Nl)}function gc(e,t){var n=Al;Al|=2;var r=fc();for(El===e&&Nl===t||(Wl=null,pc(e,t));;)try{vc();break}catch(i){hc(e,i)}if(To(),Al=n,Ml.current=r,null!==jl)throw Error(o(261));return El=null,Nl=0,Pl}function vc(){for(;null!==jl;)bc(jl)}function yc(){for(;null!==jl&&!Xe();)bc(jl)}function bc(e){var t=_l(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?xc(e):jl=t,Cl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Il)))return void(jl=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(jl=n);if(null===e)return Pl=6,void(jl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(jl=t);jl=t=e}while(null!==t);0===Pl&&(Pl=5)}function Sc(e,t,n){var r=bt,i=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{wc()}while(null!==Yl);if(0!==(6&Al))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===El&&(jl=El=null,Nl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Ec(tt,function(){return wc(),null})),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,Cl.current=null,function(e,t){if(ei=Vt,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(S){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var f;p!==n||0!==i&&3!==p.nodeType||(l=s+i),p!==a||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++u===i&&(l=s),h===a&&++d===r&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Vt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(S){kc(t,t.return,S)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(ti),Vt=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Ze(),Al=l,bt=s,Tl.transition=a}else e.current=n;if(Kl&&(Kl=!1,Yl=e,Xl=i),a=e.pendingLanes,0===a&&(ql=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vl)throw Vl=!1,e=Gl,Gl=null,e;0!==(1&Xl)&&0!==e.tag&&wc(),a=e.pendingLanes,0!==(1&a)?e===Ql?Zl++:(Zl=0,Ql=e):Zl=0,Hi()}(e,t,n,r)}finally{Tl.transition=i,bt=r}return null}function wc(){if(null!==Yl){var e=xt(Xl),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Yl)var r=!1;else{if(e=Yl,Yl=null,Xl=0,0!==(6&Al))throw Error(o(331));var i=Al;for(Al|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var h=(d=Js).sibling,f=d.return;if(ol(d),d===u){Js=null;break}if(null!==h){h.return=f,Js=h;break}Js=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var x=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Js=x;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(w){kc(l,l.return,w)}if(l===s){Js=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,Js=S;break e}Js=l.return}}if(Al=i,Hi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(w){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function _c(e,t,n){e=Bo(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function kc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Bo(t,e=fs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Mc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,El===e&&(Nl&n)===n&&(4===Pl||3===Pl&&(130023424&Nl)===Nl&&500>Qe()-Ul?pc(e,0):zl|=n),rc(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Lo(e,t))&&(vt(e,t,n),rc(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Ac(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Cc(e,n)}function Ec(e,t){return Ke(e,t)}function jc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nc(e,t,n,r){return new jc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Nc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Ic(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case _:return Lc(n.children,i,a,t);case k:s=8,i|=8;break;case M:return(e=Nc(12,n,t,2|i)).elementType=M,e.lanes=a,e;case E:return(e=Nc(13,n,t,i)).elementType=E,e.lanes=a,e;case j:return(e=Nc(19,n,t,i)).elementType=j,e.lanes=a,e;case D:return Rc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case A:s=11;break e;case N:s=14;break e;case I:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Nc(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Lc(e,t,n,r){return(e=Nc(7,e,r,t)).lanes=n,e}function Rc(e,t,n,r){return(e=Nc(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Oc(e,t,n){return(e=Nc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,i,o,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Nc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function Uc(e){if(!e)return Ti;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ii(n))return Li(e,n,t)}return t}function Hc(e,t,n,r,i,o,a,s,l){return(e=Bc(n,r,!0,e,0,o,0,s,l)).context=Uc(null),n=e.current,(o=Fo(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Bo(n,o,i),e.current.lanes=i,vt(e,i,r),rc(e,r),e}function Wc(e,t,n,r){var i=t.current,o=ec(),a=tc(i);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bo(i,t,a))&&(nc(e,i,a,o),Uo(e,i,a)),a}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ei.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Es(t),fo();break;case 5:Jo(t);break;case 1:Ii(t.type)&&Ri(t);break;case 4:Zo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(_o,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Os(e,t,n):(Ci(ea,1&ea.current),null!==(e=Vs(e,t,n))?e.sibling:null);Ci(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Vs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&$i(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var i=Ni(t,Ai.current);jo(t,n),i=ga(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(a=!0,Ri(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Oo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=As(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Ic(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===N)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=Ss(null,t,r,e,n);break e;case 14:t=ws(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ts(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Es(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,zo(e,t),Wo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=js(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=js(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=wo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),r===i){t=Vs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ms(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Os(e,t,n);case 4:return Zo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=So(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ss(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ci(_o,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ei.current){t=Vs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Eo(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Eo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,jo(t,n),r=r(i=No(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),ws(e,t,r,i=ns(r.type,i),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Ws(e,t),t.tag=1,Ii(r)?(e=!0,Ri(t)):e=!1,jo(t,n),as(t,r,i),ls(t,r,i,n),As(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return ks(e,t,n)}throw Error(o(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function $c(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Vc(a);s.call(e)}}Wc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Vc(a);o.call(e)}}var a=Hc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[fi]=a.current,Hr(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Vc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[fi]=l.current,Hr(8===e.nodeType?e.parentNode:e),uc(function(){Wc(t,l,n,r)}),l}(n,t,e,i,r);return Vc(a)}Xc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Wc(e,t,null,null)},Xc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc(function(){Wc(null,e,null,null)}),t[fi]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Ot(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Qe()),0===(6&Al)&&(Hl=Qe()+500,Hi()))}break;case 13:uc(function(){var t=Lo(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}}),qc(e,1)}},wt=function(e){if(13===e.tag){var t=Lo(e,134217728);if(null!==t)nc(t,e,134217728,ec());qc(e,134217728)}},_t=function(e){if(13===e.tag){var t=tc(e),n=Lo(e,t);if(null!==n)nc(n,e,t,ec());qc(e,t)}},kt=function(){return bt},Mt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Si(r);if(!i)throw Error(o(90));K(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=cc,Ee=uc;var eu={usingClientEntryPoint:!1,Events:[bi,xi,Si,Ce,Te,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zc(e))throw Error(o(299));var n=!1,r="",i=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(o(200));return $c(null,e,t,!0,n)}
2,t.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,i,0,a,s),e[fi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(o(200));return $c(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc(function(){$c(null,null,e,!1,function(){e._reactRootContainer=null,e[fi]=null})}),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return $c(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},82962:(e,t,n)=>{"use strict";var r=n(36415),i=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,s=[];e.forEach(function(l){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in o))return void t("");if(""===e.type){var a="";return i.test(e.name)&&(a=e.name.replace(i,"")),void t(a)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!==typeof e&&r(!1),t(e)},s.onerror=function(){t("")},s.readAsText(e)}(l,function(n){a++,n&&s.push(n.slice(0,5e3)),a==e.length&&t(s.join("\r"))})})}},82984:(e,t,n)=>{"use strict";n(27713)("strike",function(e){return function(){return e(this,"strike","","")}})},83272:e=>{"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},83290:(e,t,n)=>{"use strict";n.d(t,{AH:()=>u,i7:()=>d,mL:()=>c});var r=n(69369),i=n(65043),o=n(81722),a=n(69436),s=n(66598),l=(n(93803),n(80219),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return i.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return i.createElement.apply(null,a)});!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var c=(0,r.w)(function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T)),c=i.useRef();return(0,a.i)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,r],function(){n.flush()}},[t]),(0,a.i)(function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}},[t,l.name]),null});function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}function d(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},83382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(80528);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t="".concat(e).match(i);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||o(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.vM:return s(e,e.render,"ForwardRef");case r.lD:return s(e,e.type,"memo");default:return}}}},83468:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>{e.apply(this,i)},n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{A:()=>r})},83494:(e,t,n)=>{"use strict";var r=n(67060),i=n(30853),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(48265)(o,"Object",function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},83881:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},83978:(e,t,n)=>{"use strict";var r=n(67060),i=n(31371),o=n(3444),a=n(28704),s=n(58116),l=[].slice;r(r.P+r.F*n(83881)(function(){i&&l.call(i)}),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return l.call(this,e,t);for(var i=a(e,n),c=a(t,n),u=s(c-i),d=new Array(u),p=0;p<u;p++)d[p]="String"==r?this.charAt(i+p):this[i+p];return d}})},84391:(e,t,n)=>{"use strict";var r=n(97950);t.H=r.createRoot,r.hydrateRoot},84440:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65043);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect}
2,84454:(e,t,n)=>{"use strict";var r=n(25763),i=n(56283);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return i.push(e,t,"split-block")}},84701:(e,t,n)=>{"use strict";var r=n(52367);e.exports=function(e,t,n,i){for(var o=t,a=e.getCharacterList();o<n;)a=a.set(o,r.applyEntity(a.get(o),i)),o++;return e.set("characterList",a)}},84909:(e,t,n)=>{"use strict";var r=n(36415),i=n(9990);e.exports=function(e){var t=e.editorContainer;return t||r(!1),i(t.firstChild)||r(!1),t.firstChild}},85125:(e,t,n)=>{var r=n(67060);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},85214:(e,t,n)=>{var r=n(63759)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},85263:(e,t,n)=>{var r=n(36040),i=n(30387).onFreeze;n(80156)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},85265:(e,t,n)=>{"use strict";var r=n(36040),i=n(26928),o=n(63759)("hasInstance"),a=Function.prototype;o in a||n(12718).f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},85290:(e,t,n)=>{"use strict";var r=n(67060),i=n(25586),o=[].join;r(r.P+r.F*(n(12372)!=Object||!n(65417)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},85401:(e,t,n)=>{"use strict";var r=n(33935),i=n(25763),o=n(4414),a=n(56283),s=n(4923),l=n(36143),c=n(2124),u=n(84909),d=n(87809),p=n(15036),h=n(88691),f=l.isBrowser("IE"),m=!1,g=!1,v=null;var y={onCompositionStart:function(e){g=!0,function(e){v||(v=new r(u(e))).start()}(e)},onCompositionEnd:function(e){m=!1,g=!1,setTimeout(function(){m||y.resolveComposition(e)},20)},onSelect:c,onKeyDown:function(e,t){if(!g)return y.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!g){var t=h(v).stopAndFlushMutations();v=null,m=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach(function(e,t){var s=o.decode(t),l=s.blockKey,c=s.decoratorKey,u=s.leafKey,d=n.getBlockTree(l).getIn([c,"leaves",u]),h=d.start,f=d.end,m=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:h,focusOffset:f,isBackward:!1}),g=p(r,m),v=r.getBlockForKey(l).getInlineStyleAt(h);r=i.replaceText(r,m,e,v,g),n=a.set(n,{currentContent:r})});var s=d(n,u(e)).selectionState;e.restoreEditorDOM();var l=f?a.forceSelection(n,s):a.acceptSelection(n,s);e.update(a.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=y},85523:(e,t,n)=>{var r=n(73108),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),l=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),c=r(e);return i<l?c*(i/l/a+1/o-1/o)*l*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?c*(1/0):c*n}},85628:e=>{"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},85994:(e,t,n)=>{"use strict";var r=n(67060),i=n(68027),o=n(37652),a=n(12718);n(73358)&&r(r.P+n(2052),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},87555:(e,t,n)=>{"use strict";var r=n(79500),i=n(49649);e.exports=function(e){var t=String(i(this)),n="",o=r(e);
2if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},87677:(e,t,n)=>{"use strict";var r=n(13305),i=n(52367),o=n(36968),a=n(25763),s=n(46959),l=n(56283),c=n(20169),u=n(15036),d=n(82962),p=n(29303),h=n(28009);function f(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new o(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(m)))return;return void d(m,function(t){if(t=t||g){var n=e._latestEditorState,o=h(t),d=i.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),p=c.getCurrentBlockType(n),f=s.processText(o,d,p),m=r.createFromArray(f),v=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(l.push(n,v,"insert-fragment"))}})}}var v=[],y=n.getText(),b=n.getHTML(),x=e._latestEditorState;if(e.props.formatPastedText){var S=e.props.formatPastedText(y,b);y=S.text,b=S.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(y,b,x))){if(y&&(v=h(y)),!e.props.stripPastedStyles){var w,_=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&_){if(-1!==(null===(w=b)||void 0===w?void 0:w.indexOf(e.getEditorKey()))||1===v.length&&1===_.size&&_.first().getText()===y)return void e.update(f(e._latestEditorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}(v,_))return void e.update(f(e._latestEditorState,_));if(b){var k=s.processHTML(b,e.props.blockRenderMap);if(k){var M=k.contentBlocks,C=k.entityMap;if(M){var T=r.createFromArray(M);return void e.update(f(e._latestEditorState,T,C))}}}e.setClipboard(null)}if(v.length){var A=i.create({style:x.getCurrentInlineStyle(),entity:u(x.getCurrentContent(),x.getSelection())}),E=c.getCurrentBlockType(x),j=s.processText(v,A,E),N=r.createFromArray(j);e.update(f(e._latestEditorState,N))}}}},87707:(e,t,n)=>{"use strict";var r=n(52367),i=n(78678),o=n(31320),a=o.List,s=o.Map,l=o.OrderedSet,c=o.Record,u=o.Repeat,d=l(),p=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}),h=function(e){var t,n;function o(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){i(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){i(this.getCharacterList(),m,e,t)},o}(p);function f(e,t){return e.getStyle()===t.getStyle()}function m(e,t){return e.getEntity()===t.getEntity()}e.exports=h},87809:(e,t,n)=>{"use strict";var r=n(77404);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),i=n.anchorNode,o=n.anchorOffset,a=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==i||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,i,o,a,s)}},87844:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(49640).A},87884:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever")},87918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(67598)},88175:(e,t,n)=>{var r=n(67060),i=n(3040);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},88221:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight")},88247:(e,t,n)=>{var r=n(67060);r(r.G+r.W+r.F*!n(77548).ABV,{DataView:n(22351).DataView})},88250:e=>{"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},88516:(e,t,n)=>{"use strict";var r=n(56283);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0}
2)}},88691:e=>{"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},88847:(e,t,n)=>{"use strict";var r=n(97950).unstable_flushControlled;e.exports=r},88861:(e,t,n)=>{"use strict";var r=n(67060),i=n(68027),o=n(56547),a=n(26928),s=n(2008).f;n(73358)&&r(r.P+n(2052),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},88972:(e,t,n)=>{var r=n(76101),i=n(12730),o=n(40964),a=n(49338)("src"),s=n(43878),l="toString",c=(""+s).split(l);n(89173).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[a]||s.call(this)})},89094:e=>{e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},89104:(e,t,n)=>{var r=n(67060),i=n(73108);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},89173:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},89703:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},89712:(e,t,n)=>{"use strict";var r=n(76101),i=n(40964),o=n(3444),a=n(14589),s=n(56547),l=n(83881),c=n(45658).f,u=n(2008).f,d=n(12718).f,p=n(61504).trim,h="Number",f=r[h],m=f,g=f.prototype,v=o(n(72506)(g))==h,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,o=(t=y?t.trim():p(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,l=t.slice(2),c=0,u=l.length;c<u;c++)if((a=l.charCodeAt(c))<48||a>i)return NaN;return parseInt(l,r)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(v?l(function(){g.valueOf.call(n)}):o(n)!=h)?a(new m(b(t)),n,f):b(t)};for(var x,S=n(73358)?c(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;S.length>w;w++)i(m,x=S[w])&&!i(f,x)&&d(f,x,u(m,x));f.prototype=g,g.constructor=f,n(88972)(r,h,f)}},89751:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>i});var r=n(19172);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(i[e],"px)")};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"===typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function l(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function c(e){const t=s(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const a=[t,...i].reduce((e,t)=>(0,r.A)(e,t),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(t,n),o=Object.keys(i);if(0===o.length)return t;let a;return o.reduce((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e),{})}}
2,89952:(e,t,n)=>{"use strict";n(27713)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},90186:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getType=function(){return this.get("type")},i.getMutability=function(){return this.get("mutability")},i.getData=function(){return this.get("data")},r}((0,n(31320).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},90546:(e,t,n)=>{"use strict";n(61504)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},90806:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{sign:n(73108)})},90978:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},91115:(e,t,n)=>{var r=n(73358),i=n(92426),o=n(25586),a=n(44786).f;e.exports=function(e){return function(t){for(var n,s=o(t),l=i(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},91222:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},91271:e=>{e.exports={}},91477:(e,t,n)=>{"use strict";var r=n(31320).Map;e.exports=function(e,t,n){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===o}).concat(r([[o,a.get(o)]])).map(n);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},91609:(e,t,n)=>{"use strict";var r=n(36968),i=n(25763),o=n(56283),a=n(65037),s=n(38358),l=n(82962),c=n(94733),u=n(90978),d=n(29303),p=n(88691);var h={onDragEnd:function(e){e.exitCurrentMode(),f(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),u=e._latestEditorState,h=function(e,t){var n=null,r=null,i=s(e.currentTarget);if("function"===typeof i.caretRangeFromPoint){var o=i.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=p(n),r=p(r);var l=p(a(n));return c(t,l,r,l,r)}(t.nativeEvent,u);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=h){var g=n.getFiles();if(g.length>0){if(e.props.handleDroppedFiles&&d(e.props.handleDroppedFiles(h,g)))return;l(g,function(t){t&&e.update(m(u,h,t))})}else{var v=e._internalDrag?"internal":"external";e.props.handleDrop&&d(e.props.handleDrop(h,n,v))||(e._internalDrag?e.update(function(e,t){var n=i.moveText(e.getCurrentContent(),e.getSelection(),t);return o.push(e,n,"insert-fragment")}(u,h)):e.update(m(u,h,n.getText()))),f(e)}}}};function f(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:u(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m(e,t,n){var r=i.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return o.push(e,r,"insert-fragment")}e.exports=h},91685:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},91707:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},91933:(e,t,n)=>{"use strict";var r=n(56283),i=n(13922),o=n(5089);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&o(n)===n.body){var a=n.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&i(s,a.anchorNode)&&i(s,a.focusNode)&&a.removeAllRanges()}var l=e._latestEditorState,c=l.getSelection();if(c.getHasFocus()){var u=c.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(l,u))}}},92016:(e,t,n)=>{"use strict";e.exports=n(76958)},92119:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Collection:()=>k,Iterable:()=>kr,List:()=>on,Map:()=>Pt,OrderedMap:()=>bn,OrderedSet:()=>ar,PairSorting:()=>dr,Range:()=>Wn,Record:()=>pr,Repeat:()=>br,Seq:()=>K,Set:()=>Rn,Stack:()=>Mn,default:()=>Mr,fromJS:()=>xr,get:()=>it,getIn:()=>Vn,has:()=>rt,hasIn:()=>qn,hash:()=>he,is:()=>ce,isAssociative:()=>_,isCollection:()=>y,isImmutable:()=>I,isIndexed:()=>w,isKeyed:()=>x,isList:()=>rn,isMap:()=>ae,isOrdered:()=>P,isOrderedMap:()=>se,isOrderedSet:()=>In,isPlainObject:()=>et,isRecord:()=>N,isSeq:()=>E,isSet:()=>Nn,isStack:()=>kn,isValueObject:()=>le,merge:()=>xt,mergeDeep:()=>wt,mergeDeepWith:()=>_t,mergeWith:()=>St,remove:()=>at,removeIn:()=>pt,set:()=>st,setIn:()=>ut,update:()=>ft,updateIn:()=>lt,version:()=>_r});var r="delete",i=32,o=31,a={};function s(e){e&&(e.value=!0)}function l(){}function c(e){return void 0===e.size&&(e.size=e.__iterate(d)),e.size}function u(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function d(){return!0}function p(e,t,n){return(0===e&&!g(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function h(e,t){return m(e,t,0)}function f(e,t){return m(e,t,t)}function m(e,t,n){return void 0===e?n:g(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function g(e){return e<0||0===e&&1/e===-1/0}
2var v="@@__IMMUTABLE_ITERABLE__@@";function y(e){return Boolean(e&&e[v])}var b="@@__IMMUTABLE_KEYED__@@";function x(e){return Boolean(e&&e[b])}var S="@@__IMMUTABLE_INDEXED__@@";function w(e){return Boolean(e&&e[S])}function _(e){return x(e)||w(e)}var k=function(e){return y(e)?e:K(e)},M=function(e){function t(e){return x(e)?e:Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k),C=function(e){function t(e){return w(e)?e:X(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k),T=function(e){function t(e){return y(e)&&!_(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k);k.Keyed=M,k.Indexed=C,k.Set=T;var A="@@__IMMUTABLE_SEQ__@@";function E(e){return Boolean(e&&e[A])}var j="@@__IMMUTABLE_RECORD__@@";function N(e){return Boolean(e&&e[j])}function I(e){return y(e)||N(e)}var D="@@__IMMUTABLE_ORDERED__@@";function P(e){return Boolean(e&&e[D])}var L="function"===typeof Symbol&&Symbol.iterator,R="@@iterator",O=L||R,z=function(e){this.next=e};function F(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function B(){return{value:void 0,done:!0}}function U(e){return!!Array.isArray(e)||!!V(e)}function H(e){return e&&"function"===typeof e.next}function W(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(L&&e[L]||e[R]);if("function"===typeof t)return t}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=0,z.VALUES=1,z.ENTRIES=2,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[O]=function(){return this};var G=Object.prototype.hasOwnProperty;function q(e){return!(!Array.isArray(e)&&"string"!==typeof e)||e&&"object"===typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var K=function(e){function t(e){return void 0===e||null===e?te():I(e)?e.toSeq():function(e){var t=ie(e);if(t)return function(e){var t=V(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=V(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"===typeof e)return new J(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new z(function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return F(e,o[0],o[1])})}return this.__iteratorUncached(e,t)},t}(k),Y=function(e){function t(e){return void 0===e||null===e?te().toKeyedSeq():y(e)?x(e)?e.toSeq():e.fromEntrySeq():N(e)?e.toSeq():ne(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(K),X=function(e){function t(e){return void 0===e||null===e?te():y(e)?x(e)?e.entrySeq():e.toIndexedSeq():N(e)?e.toSeq().entrySeq():re(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(K),Z=function(e){function t(e){return(y(e)&&!_(e)?e:X(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(K);K.isSeq=E,K.Keyed=Y,K.Set=Z,K.Indexed=X,K.prototype[A]=!0;var Q=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[u(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new z(function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return F(e,o,n[o])})},t}(X),J=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return G.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new z(function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return F(e,a,n[a])})},t}(Y);J.prototype[D]=!0;var $,ee=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=W(this._collection),r=0;if(H(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=W(this._collection);if(!H(n))return new z(B);var r=0;return new z(function(){var t=n.next();return t.done?t:F(e,r++,t.value)})},t}(X);function te(){return $||($=new Q([]))}function ne(e){var t=ie(e);if(t)return t.fromEntrySeq();
2if("object"===typeof e)return new J(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function re(e){var t=ie(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ie(e){return q(e)?new Q(e):U(e)?new ee(e):void 0}var oe="@@__IMMUTABLE_MAP__@@";function ae(e){return Boolean(e&&e[oe])}function se(e){return ae(e)&&P(e)}function le(e){return Boolean(e&&"function"===typeof e.equals&&"function"===typeof e.hashCode)}function ce(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(le(e)&&le(t)&&e.equals(t))}var ue="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function de(e){return e>>>1&1073741824|3221225471&e}var pe=Object.prototype.valueOf;function he(e){if(null==e)return fe(e);
2if("function"===typeof e.hashCode)return de(e.hashCode(e));var t,n=(t=e).valueOf!==pe&&"function"===typeof t.valueOf?t.valueOf(t):t;if(null==n)return fe(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!==e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return de(t)}(n);case"string":return n.length>ke?function(e){var t=Te[e];void 0===t&&(t=me(e),Ce===Me&&(Ce=0,Te={}),Ce++,Te[e]=t);return t}(n):me(n);case"object":case"function":return function(e){var t;if(xe&&void 0!==(t=be.get(e)))return t;if(t=e[_e],void 0!==t)return t;if(!ve){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[_e]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ye(),xe)be.set(e,t);else{if(void 0!==ge&&!1===ge(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ve)Object.defineProperty(e,_e,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[_e]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[_e]=t}}return t}(n);case"symbol":return function(e){var t=Se[e];if(void 0!==t)return t;return t=ye(),Se[e]=t,t}(n);default:if("function"===typeof n.toString)return me(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function fe(e){return null===e?1108378658:1108378659}function me(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return de(t)}var ge=Object.isExtensible,ve=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ye(){var e=++we;return 1073741824&we&&(we=0),e}var be,xe="function"===typeof WeakMap;xe&&(be=new WeakMap);var Se=Object.create(null),we=0,_e="__immutablehash__";"function"===typeof Symbol&&(_e=Symbol(_e));var ke=16,Me=255,Ce=0,Te={},Ae=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Pe(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=De(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Y);Ae.prototype[D]=!0;var Ee=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&c(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),i=0;return t&&c(this),new z(function(){var o=r.next();return o.done?o:F(e,t?n.size-++i:i++,o.value,o)})},t}(X),je=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new z(function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)})},t}(Z),Ne=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Ve(t);var r=y(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new z(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ve(r);var i=y(r);return F(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(Y);function Ie(e){var t=qe(e);
2return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Ke,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new z(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(1===t?0:1,n)},t}function De(e,t,n){var r=qe(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,a);return o===a?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new z(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return F(r,s,t.call(n,a[1],s,e),i)})},r}function Pe(e,t){var n=this,r=qe(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Ie(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Ke,r.__iterate=function(n,r){var i=this,o=0;return r&&c(e),e.__iterate(function(e,a){return n(e,t?a:r?i.size-++o:o++,i)},!r)},r.__iterator=function(r,i){var o=0;i&&c(e);var a=e.__iterator(2,!i);return new z(function(){var e=a.next();if(e.done)return e;var s=e.value;return F(r,t?s[0]:i?n.size-++o:o++,s[1],e)})},r}function Le(e,t,n,r){var i=qe(e);return r&&(i.has=function(r){var i=e.get(r,a);return i!==a&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,a);return o!==a&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate(function(e,o,l){if(t.call(n,e,o,l))return s++,i(e,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(2,o),s=0;return new z(function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return F(i,r?c:s++,u,o)}})},i}function Re(e,t,n,r){var i=e.size;if(p(t,n,i))return e;if("undefined"===typeof i&&(t<0||n<0))return Re(e.toSeq().cacheResult(),t,n,r);var o,a=h(t,i),s=f(n,i)-a;s===s&&(o=s<0?0:s);var l=qe(e);return l.size=0===o?o:e.size&&o||void 0,!r&&E(e)&&o>=0&&(l.get=function(t,n){return(t=u(this,t))>=0&&t<o?e.get(t+a,n):n}),l.__iterateUncached=function(t,n){var i=this;if(0===o)return 0;if(n)return this.cacheResult().__iterate(t,n);var s=0,l=!0,c=0;return e.__iterate(function(e,n){if(!l||!(l=s++<a))return c++,!1!==t(e,r?n:c-1,i)&&c!==o}),c},l.__iteratorUncached=function(t,n){if(0!==o&&n)return this.cacheResult().__iterator(t,n);if(0===o)return new z(B);var i=e.__iterator(t,n),s=0,l=0;return new z(function(){for(;s++<a;)i.next();if(++l>o)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:F(t,l-1,0===t?void 0:e.value[1],e)})},l}function Oe(e,t,n,r){var i=qe(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,l=0;return e.__iterate(function(e,o,c){if(!s||!(s=t.call(n,e,o,c)))return l++,i(e,r?o:l-1,a)}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),l=!0,c=0;return new z(function(){var e,o,u;do{if((e=s.next()).done)return r||1===i?e:F(i,c++,0===i?void 0:e.value[1],e);var d=e.value;o=d[0],u=d[1],l&&(l=t.call(n,u,o,a))}while(l);return 2===i?e:F(i,o,u,e)})},i}function ze(e,t,n){var r=qe(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(l,c){l.__iterate(function(o,l){return(!t||c<t)&&y(o)?e(o,c+1):(a++,!1===i(o,n?l:a-1,r)&&(s=!0)),!s},o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],s=0;return new z(function(){for(;o;){var e=o.next();if(!1===e.done){var l=e.value;if(2===r&&(l=l[1]),t&&!(a.length<t)||!y(l))return n?e:F(r,s++,l,e);a.push(o),o=l.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}})},r}function Fe(e,t,n){t||(t=Ye);var r=x(e),i=0,o=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return o.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}
2).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?Y(o):w(e)?X(o):Z(o)}function Be(e,t,n){if(t||(t=Ye),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return Ue(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return Ue(t,e,n)?n:e})}function Ue(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function He(e,t,n,r){var i=qe(e),o=new Q(n).map(function(e){return e.size});return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map(function(e){return e=k(e),W(i?e.reverse():e)}),a=0,s=!1;return new z(function(){var n;return s||(n=o.map(function(e){return e.next()}),s=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?{value:void 0,done:!0}:F(e,a++,t.apply(null,n.map(function(e){return e.value})))})},i}function We(e,t){return e===t?e:E(e)?t:e.constructor(t)}function Ve(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ge(e){return x(e)?M:w(e)?C:T}function qe(e){return Object.create((x(e)?Y:w(e)?X:Z).prototype)}function Ke(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function Ye(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Xe(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function Ze(e,t){if(!e)throw new Error(t)}function Qe(e){Ze(e!==1/0,"Cannot perform this action with an infinite size.")}function Je(e){if(q(e)&&"string"!==typeof e)return e;if(P(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Ee.prototype.cacheResult=Ae.prototype.cacheResult=je.prototype.cacheResult=Ne.prototype.cacheResult=Ke;var $e=Object.prototype.toString;function et(e){if(!e||"object"!==typeof e||"[object Object]"!==$e.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function tt(e){return"object"===typeof e&&(I(e)||Array.isArray(e)||et(e))}function nt(e){try{return"string"===typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function rt(e,t){return I(e)?e.has(t):tt(e)&&G.call(e,t)}function it(e,t,n){return I(e)?e.get(t,n):rt(e,t)?"function"===typeof e.get?e.get(t):e[t]:n}function ot(e){if(Array.isArray(e))return Xe(e);var t={};for(var n in e)G.call(e,n)&&(t[n]=e[n]);return t}function at(e,t){if(!tt(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!G.call(e,t))return e;var n=ot(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function st(e,t,n){if(!tt(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(G.call(e,t)&&n===e[t])return e;var r=ot(e);return r[t]=n,r}function lt(e,t,n,r){r||(r=n,n=void 0);var i=ct(I(e),e,Je(t),0,n,r);return i===a?n:i}function ct(e,t,n,r,i,o){var s=t===a;if(r===n.length){var l=s?i:t,c=o(l);return c===l?t:c}if(!s&&!tt(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(nt)+"]: "+t);var u=n[r],d=s?a:it(t,u,a),p=ct(d===a?e:I(d),d,n,r+1,i,o);return p===d?t:p===a?at(t,u):st(s?e?qt():{}:t,u,p)}function ut(e,t,n){return lt(e,t,a,function(){return n})}function dt(e,t){return ut(this,e,t)}function pt(e,t){return lt(e,t,function(){return a})}function ht(e){return pt(this,e)}function ft(e,t,n,r){return lt(e,[t],n,r)}function mt(e,t,n){return 1===arguments.length?e(this):ft(this,e,t,n)}function gt(e,t,n){return lt(this,e,t,n)}function vt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return bt(this,e)}function yt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!==typeof e)throw new TypeError("Invalid merger function: "+e);return bt(this,t,e)}function bt(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=M(t[i]);0!==o.size&&r.push(o)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var t=n?function(t,r){ft(e,r,a,function(e){return e===a?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;
vendor: 6,942 bytes, line 2
2i++)r[i].forEach(t)}):e.constructor(r[0])}function xt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Mt(e,t)}function St(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Mt(t,n,e)}function wt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kt(e,t)}function _t(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return kt(t,n,e)}function kt(e,t,n){return Mt(e,t,function(e){function t(n,r,i){return tt(n)&&tt(r)&&function(e,t){var n=K(e),r=K(t);return w(n)===w(r)&&x(n)===x(r)}(n,r)?Mt(n,[r],t):e?e(n,r,i):r}return t}(n))}function Mt(e,t,n){if(!tt(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(I(e))return"function"===typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?C:M,a=r?function(t){i===e&&(i=ot(i)),i.push(t)}:function(t,r){var o=G.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=ot(i)),i[r]=a)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function Ct(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return kt(this,e)}function Tt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kt(this,t,e)}function At(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,e,qt(),function(e){return Mt(e,t)})}function Et(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,e,qt(),function(e){return kt(e,t)})}function jt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Nt(){return this.__ownerID?this:this.__ensureOwner(new l)}function It(){return this.__ensureOwner()}function Dt(){return this.__altered}var Pt=function(e){function t(t){return void 0===t||null===t?qt():ae(t)&&!P(t)?t:qt().withMutations(function(n){var r=e(t);Qe(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return qt().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Kt(this,e,t)},t.prototype.remove=function(e){return Kt(this,e,a)},t.prototype.deleteAll=function(e){var t=k(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):qt()},t.prototype.sort=function(e){return bn(Fe(this,e))},t.prototype.sortBy=function(e,t){return bn(Fe(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,o){r.set(o,e.call(t,i,o,n))})})},t.prototype.__iterator=function(e,t){return new Ht(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gt(this.size,this._root,e,this.__hash):0===this.size?qt():(this.__ownerID=e,this.__altered=!1,this)},t}(M);Pt.isMap=ae;var Lt=Pt.prototype;Lt[oe]=!0,Lt[r]=Lt.remove,Lt.removeAll=Lt.deleteAll,Lt.setIn=dt,Lt.removeIn=Lt.deleteIn=ht,Lt.update=mt,Lt.updateIn=gt,Lt.merge=Lt.concat=vt,Lt.mergeWith=yt,Lt.mergeDeep=Ct,Lt.mergeDeepWith=Tt,Lt.mergeIn=At,Lt.mergeDeepIn=Et,Lt.withMutations=jt,Lt.wasAltered=Dt,Lt.asImmutable=It,Lt["@@transducer/init"]=Lt.asMutable=Nt,Lt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Lt["@@transducer/result"]=function(e){return e.asImmutable()};var Rt=function(e,t){this.ownerID=e,this.entries=t};Rt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ce(n,i[o][0]))return i[o][1];return r},Rt.prototype.update=function(e,t,n,r,i,o,c){for(var u=i===a,d=this.entries,p=0,h=d.length;p<h&&!ce(r,d[p][0]);p++);var f=p<h;if(f?d[p][1]===i:u)return this;if(s(c),(u||!f)&&s(o),!u||1!==d.length){if(!f&&!u&&d.length>=$t)return function(e,t,n,r){e||(e=new l);for(var i=new Bt(e,he(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,d,r,i);var m=e&&e===this.ownerID,g=m?d:Xe(d);return f?u?p===h-1?g.pop():g[p]=g.pop():g[p]=[r,i]:g.push([r,i]),m?(this.entries=g,this):new Rt(e,g)}};var Ot=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Ot.prototype.get=function(e,t,n,r){void 0===t&&(t=he(n));var i=1<<((0===e?t:t>>>e)&o),a=this.bitmap;return 0===(a&i)?r:this.nodes[Qt(a&i-1)].get(e+5,t,n,r)},Ot.prototype.update=function(e,t,n,r,s,l,c){void 0===n&&(n=he(r));var u=(0===t?n:n>>>t)&o,d=1<<u,p=this.bitmap,h=0!==(p&d);if(!h&&s===a)return this;var f=Qt(p&d-1),m=this.nodes,g=h?m[f]:void 0,v=Yt(g,e,t+5,n,r,s,l,c);if(v===g)return this;if(!h&&v&&m.length>=en)return function(e,t,n,r,o){for(var a=0,s=new Array(i),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[a++]:void 0;return s[r]=o,new zt(e,a+1,s)}(e,m,p,u,v);if(h&&!v&&2===m.length&&Xt(m[1^f]))return m[1^f];if(h&&v&&1===m.length&&Xt(v))return v;var y=e&&e===this.ownerID,b=h?v?p:p^d:p|d,x=h?v?Jt(m,f,v,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(m,f,y):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(m,f,v,y);return y?(this.bitmap=b,this.nodes=x,this):new Ot(e,b,x)};var zt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};zt.prototype.get=function(e,t,n,r){void 0===t&&(t=he(n));var i=(0===e?t:t>>>e)&o,a=this.nodes[i];return a?a.get(e+5,t,n,r):r},zt.prototype.update=function(e,t,n,r,i,s,l){void 0===n&&(n=he(r));var c=(0===t?n:n>>>t)&o,u=i===a,d=this.nodes,p=d[c];if(u&&!p)return this;var h=Yt(p,e,t+5,n,r,i,s,l);if(h===p)return this;var f=this.count;if(p){if(!h&&--f<tn)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(i|=l,a[o++]=u)}return new Ot(e,i,a)}(e,d,f,c)}else f++;var m=e&&e===this.ownerID,g=Jt(d,c,h,m);return m?(this.count=f,this.nodes=g,this):new zt(e,f,g)};var Ft=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Ft.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(ce(n,i[o][0]))return i[o][1];return r},Ft.prototype.update=function(e,t,n,r,i,o,l){void 0===n&&(n=he(r));var c=i===a;if(n!==this.keyHash)return c?this:(s(l),s(o),Zt(this,e,t,n,[r,i]));for(var u=this.entries,d=0,p=u.length;d<p&&!ce(r,u[d][0]);d++);var h=d<p;if(h?u[d][1]===i:c)return this;if(s(l),(c||!h)&&s(o),c&&2===p)return new Bt(e,this.keyHash,u[1^d]);var f=e&&e===this.ownerID,m=f?u:Xe(u);
vendor: 2,590 bytes, line 2
2return h?c?d===p-1?m.pop():m[d]=m.pop():m[d]=[r,i]:m.push([r,i]),f?(this.entries=m,this):new Ft(e,this.keyHash,m)};var Bt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Bt.prototype.get=function(e,t,n,r){return ce(n,this.entry[0])?this.entry[1]:r},Bt.prototype.update=function(e,t,n,r,i,o,l){var c=i===a,u=ce(r,this.entry[0]);return(u?i===this.entry[1]:c)?this:(s(l),c?void s(o):u?e&&e===this.ownerID?(this.entry[1]=i,this):new Bt(e,this.keyHash,[r,i]):(s(o),Zt(this,e,t,he(r),[r,i])))},Rt.prototype.iterate=Ft.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ot.prototype.iterate=zt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Bt.prototype.iterate=function(e,t){return e(this.entry)};var Ut,Ht=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Vt(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return Wt(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return Wt(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return Wt(e,o.entry);t=this._stack=Vt(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(z);function Wt(e,t){return F(e,t[0],t[1])}function Vt(e,t){return{node:e,index:0,__prev:t}}function Gt(e,t,n,r){var i=Object.create(Lt);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function qt(){return Ut||(Ut=Gt(0))}function Kt(e,t,n){var r,i;if(e._root){var o={value:!1},s={value:!1};if(r=Yt(e._root,e.__ownerID,0,void 0,t,n,o,s),!s.value)return e;i=e.size+(o.value?n===a?-1:1:0)}else{if(n===a)return e;i=1,r=new Rt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Gt(i,r):qt()}function Yt(e,t,n,r,i,o,l,c){return e?e.update(t,n,r,i,o,l,c):o===a?e:(s(c),s(l),new Bt(t,r,[i,o]))}function Xt(e){return e.constructor===Bt||e.constructor===Ft}function Zt(e,t,n,r,i){if(e.keyHash===r)return new Ft(t,r,[e.entry,i]);var a,s=(0===n?e.keyHash:e.keyHash>>>n)&o,l=(0===n?r:r>>>n)&o,c=s===l?[Zt(e,t,n+5,r,i)]:(a=new Bt(t,r,i),s<l?[e,a]:[a,e]);return new Ot(t,1<<s|1<<l,c)}function Qt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Jt(e,t,n,r){var i=r?e:Xe(e);return i[t]=n,i}
vendor: 5,714 bytes, line 2
2var $t=8,en=16,tn=8,nn="@@__IMMUTABLE_LIST__@@";function rn(e){return Boolean(e&&e[nn])}var on=function(e){function t(t){var n=pn();if(void 0===t||null===t)return n;if(rn(t))return t;var r=e(t),o=r.size;return 0===o?n:(Qe(o),o>0&&o<i?dn(0,o,5,null,new sn(r.toArray())):n.withMutations(function(e){e.setSize(o),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=u(this,e))>=0&&e<this.size){var n=mn(this,e+=this._origin);return n&&n.array[e&o]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=u(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?gn(e,t).set(0,n):gn(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=vn(e._capacity)?r=hn(r,e.__ownerID,0,t,n,o):i=hn(i,e.__ownerID,e._level,t,n,o);if(!o.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return dn(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):pn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){gn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return gn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){gn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return gn(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!==typeof i&&U(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})}):this.constructor(n[0])},t.prototype.setSize=function(e){return gn(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return p(e,t,n)?this:gn(this,h(e,n),f(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=un(this,t);return new z(function(){var i=r();return i===cn?{value:void 0,done:!0}:F(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=un(this,t);(n=i())!==cn&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?dn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?pn():(this.__ownerID=e,this.__altered=!1,this)},t}(C);on.isList=rn;var an=on.prototype;an[nn]=!0,an[r]=an.remove,an.merge=an.concat,an.setIn=dt,an.deleteIn=an.removeIn=ht,an.update=mt,an.updateIn=gt,an.mergeIn=At,an.mergeDeepIn=Et,an.withMutations=jt,an.wasAltered=Dt,an.asImmutable=It,an["@@transducer/init"]=an.asMutable=Nt,an["@@transducer/step"]=function(e,t){return e.push(t)},an["@@transducer/result"]=function(e){return e.asImmutable()};var sn=function(e,t){this.array=e,this.ownerID=t};sn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&o;if(r>=this.array.length)return new sn([],e);var i,a=0===r;if(t>0){var s=this.array[r];if((i=s&&s.removeBefore(e,t-5,n))===s&&a)return this}if(a&&!i)return this;var l=fn(this,e);if(!a)for(var c=0;c<r;c++)l.array[c]=void 0;return i&&(l.array[r]=i),l},sn.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&o;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-5,n))===a&&i===this.array.length-1)return this}var s=fn(this,e);return s.array.splice(i+1),r&&(s.array[i]=r),s};var ln,cn={};function un(e,t){var n=e._origin,r=e._capacity,o=vn(r),a=e._tail;return s(e._root,e._level,0);function s(e,l,c){return 0===l?function(e,s){var l=s===o?a&&a.array:e&&e.array,c=s>n?0:n-s,u=r-s;u>i&&(u=i);return function(){if(c===u)return cn;var e=t?--u:c++;return l&&l[e]}}(e,c):function(e,o,a){var l,c=e&&e.array,u=a>n?0:n-a>>o,d=1+(r-a>>o);d>i&&(d=i);return function(){for(;;){if(l){var e=l();if(e!==cn)return e;l=null}if(u===d)return cn;var n=t?--d:u++;l=s(c&&c[n],o-5,a+(n<<o))}}}(e,l,c)}}function dn(e,t,n,r,i,o,a){var s=Object.create(an);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function pn(){return ln||(ln=dn(0,0,5))}function hn(e,t,n,r,i,a){var l,c=r>>>n&o,u=e&&c<e.array.length;if(!u&&void 0===i)return e;if(n>0){var d=e&&e.array[c],p=hn(d,t,n-5,r,i,a);return p===d?e:((l=fn(e,t)).array[c]=p,l)}return u&&e.array[c]===i?e:(a&&s(a),l=fn(e,t),void 0===i&&c===l.array.length-1?l.array.pop():l.array[c]=i,l)}function fn(e,t){return t&&e&&t===e.ownerID?e:new sn(e?e.array.slice():[],t)}function mn(e,t){if(t>=vn(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&o],r-=5;return n}}function gn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new l,i=e._origin,a=e._capacity,s=i+t,c=void 0===n?a:n<0?a+n:i+n;if(s===i&&c===a)return e;if(s>=c)return e.clear();for(var u=e._level,d=e._root,p=0;s+p<0;)d=new sn(d&&d.array.length?[void 0,d]:[],r),p+=1<<(u+=5);p&&(s+=p,i+=p,c+=p,a+=p);
vendor: 4,307 bytes, line 2
2for(var h=vn(a),f=vn(c);f>=1<<u+5;)d=new sn(d&&d.array.length?[d]:[],r),u+=5;var m=e._tail,g=f<h?mn(e,c-1):f>h?new sn([],r):m;if(m&&f>h&&s<a&&m.array.length){for(var v=d=fn(d,r),y=u;y>5;y-=5){var b=h>>>y&o;v=v.array[b]=fn(v.array[b],r)}v.array[h>>>5&o]=m}if(c<a&&(g=g&&g.removeAfter(r,0,c)),s>=f)s-=f,c-=f,u=5,d=null,g=g&&g.removeBefore(r,0,s);else if(s>i||f<h){for(p=0;d;){var x=s>>>u&o;if(x!==f>>>u&o)break;x&&(p+=(1<<u)*x),u-=5,d=d.array[x]}d&&s>i&&(d=d.removeBefore(r,u,s-p)),d&&f<h&&(d=d.removeAfter(r,u,f-p)),p&&(s-=p,c-=p)}return e.__ownerID?(e.size=c-s,e._origin=s,e._capacity=c,e._level=u,e._root=d,e._tail=g,e.__hash=void 0,e.__altered=!0,e):dn(s,c,u,d,g)}function vn(e){return e<i?0:e-1>>>5<<5}var yn,bn=function(e){function t(e){return void 0===e||null===e?Sn():se(e)?e:Sn().withMutations(function(t){var n=M(e);Qe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Sn()},t.prototype.set=function(e,t){return wn(this,e,t)},t.prototype.remove=function(e){return wn(this,e,a)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?xn(t,n,e,this.__hash):0===this.size?Sn():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Pt);function xn(e,t,n,r){var i=Object.create(bn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Sn(){return yn||(yn=xn(qt(),pn()))}function wn(e,t,n){var r,o,s=e._map,l=e._list,c=s.get(t),u=void 0!==c;if(n===a){if(!u)return e;l.size>=i&&l.size>=2*s.size?(r=(o=l.filter(function(e,t){return void 0!==e&&c!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=s.remove(t),o=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;r=s,o=l.set(c,[t,n])}else r=s.set(t,l.size),o=l.set(l.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e.__altered=!0,e):xn(r,o)}bn.isOrderedMap=se,bn.prototype[D]=!0,bn.prototype[r]=bn.prototype.remove;var _n="@@__IMMUTABLE_STACK__@@";function kn(e){return Boolean(e&&e[_n])}var Mn=function(e){function t(e){return void 0===e||null===e?En():kn(e)?e:En().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=u(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):An(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&kn(t))return t;Qe(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):An(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):En()},t.prototype.slice=function(t,n){if(p(t,n,this.size))return this;var r=h(t,this.size);if(f(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):A
vendor: 16,296 bytes, line 2
2n(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?An(this.size,this._head,e,this.__hash):0===this.size?En():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Q(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Q(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new z(function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return{value:void 0,done:!0}})},t}(C);Mn.isStack=kn;var Cn,Tn=Mn.prototype;function An(e,t,n,r){var i=Object.create(Tn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function En(){return Cn||(Cn=An(0))}Tn[_n]=!0,Tn.shift=Tn.pop,Tn.unshift=Tn.push,Tn.unshiftAll=Tn.pushAll,Tn.withMutations=jt,Tn.wasAltered=Dt,Tn.asImmutable=It,Tn["@@transducer/init"]=Tn.asMutable=Nt,Tn["@@transducer/step"]=function(e,t){return e.unshift(t)},Tn["@@transducer/result"]=function(e){return e.asImmutable()};var jn="@@__IMMUTABLE_SET__@@";function Nn(e){return Boolean(e&&e[jn])}function In(e){return Nn(e)&&P(e)}function Dn(e,t){if(e===t)return!0;if(!y(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||x(e)!==x(t)||w(e)!==w(t)||P(e)!==P(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!_(e);if(P(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&ce(i[1],e)&&(n||ce(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var s=!0,l=t.__iterate(function(t,r){if(n?!e.has(t):i?!ce(t,e.get(r,a)):!ce(e.get(r,a),t))return s=!1,!1});return s&&e.size===l}function Pn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Ln(e){if(!e||"object"!==typeof e)return e;if(!y(e)){if(!tt(e))return e;e=K(e)}if(x(e)){var t={};return e.__iterate(function(e,n){t[n]=Ln(e)}),t}var n=[];return e.__iterate(function(e){n.push(Ln(e))}),n}var Rn=function(e){function t(t){return void 0===t||null===t?Un():Nn(t)&&!P(t)?t:Un().withMutations(function(n){var r=e(t);Qe(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(M(e).keySeq())},t.intersect=function(e){return(e=k(e).toArray()).length?zn.intersect.apply(t(e.pop()),e):Un()},t.union=function(e){return(e=k(e).toArray()).length?zn.union.apply(t(e.pop()),e):Un()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Fn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Fn(this,this._map.remove(e))},t.prototype.clear=function(){return Fn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=Fn(this,this._map.mapEntries(function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r<t.length;r++)"string"===typeof t[r]?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})}):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return ar(Fe(this,e))},t.prototype.sortBy=function(e,t){return ar(Fe(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(T);Rn.isSet=Nn;var On,zn=Rn.prototype;function Fn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Bn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Un(){return On||(On=Bn(qt()))}zn[jn]=!0,zn[r]=zn.remove,zn.merge=zn.concat=zn.union,zn.withMutations=jt,zn.asImmutable=It,zn["@@transducer/init"]=zn.asMutable=Nt,zn["@@transducer/step"]=function(e,t){return e.add(t)},zn["@@transducer/result"]=function(e){return e.asImmutable()},zn.__empty=Un,zn.__make=Bn;var Hn,Wn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Ze(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Hn)return Hn;Hn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+u(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return p(e,n,this.size)?this:(e=h(e,this.size),(n=f(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new z(function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,F(e,t?n-++o:o++,a)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Dn(this,e)},t}(X);function Vn(e,t,n){for(var r=Je(t),i=0;i!==r.length;)if((e=it(e,r[i++],a))===a)return n;return e}function Gn(e,t){return Vn(this,e,t)}function qn(e,t){return Vn(e,t,a)!==a}function Kn(){Qe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}k.isIterable=y,k.isKeyed=x,k.isIndexed=w,k.isAssociative=_,k.isOrdered=P,k.Iterator=z,Pn(k,{toArray:function(){Qe(this.size);var e=new Array(this.size||0),t=x(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new Ee(this)},toJS:function(){return Ln(this)},toKeyedSeq:function(){return new Ae(this,!0)},toMap:function(){return Pt(this.toKeyedSeq())},toObject:Kn,toOrderedMap:function(){return bn(this.toKeyedSeq())},toOrderedSet:function(){return ar(x(this)?this.valueSeq():this)},toSet:function(){return Rn(x(this)?this.valueSeq():this)},toSetSeq:function(){return new je(this)},toSeq:function(){return w(this)?this.toIndexedSeq():x(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Mn(x(this)?this.valueSeq():this)},toList:function(){return on(x(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return We(this,function(e,t){var n=x(e),r=[e].concat(t).map(function(e){return y(e)?n&&(e=M(e)):e=n?ne(e):re(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&x(i)||w(e)&&w(i))return i}var o=new Q(r);return n?o=o.toKeyedSeq():w(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),o}(this,e))},includes:function(e){return this.some(function(t){return ce(t,e)})},entries:function(){return this.__iterator(2)},every:function(e,t){Qe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return We(this,Le(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=x(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)});var o=Ge(e);return i.map(function(t){return We(e,o(t))})}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Qe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Qe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(0)},map:function(e,t){return We(this,De(this,e,t))},reduce:function(e,t,n){return Jn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Jn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return We(this,Pe(this,!0))},slice:function(e,t){return We(this,Re(this,e,t,!0))},some:function(e,t){Qe(this.size);var n=!1;return this.__iterate(function(r,i,o){if(e.call(t,r,i,o))return n=!0,!1}),n},sort:function(e){return We(this,Fe(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return c(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Pt().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Dn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Q(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(d,null,e)},flatMap:function(e,t){return We(this,function(e,t,n){var r=Ge(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return We(this,ze(this,e,!0))},fromEntrySeq:function(){return new Ne(this)},get:function(e,t){return this.find(function(t,n){return ce(n,e)},void 0,t)},getIn:Gn,groupBy:function(e,t){return function(e,t,n){var r=x(e),i=(P(e)?bn():Pt()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return(e=e||[]).push(r?[a,o]:o),e})});var o=Ge(e);return i.map(function(t){return We(e,o(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,a)!==a},hasIn:function(e){return qn(this,e)},isSubset:function(e){return e="function"===typeof e.includes?e:k(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:k(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return ce(t,e)})},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Be(this,e)},maxBy:function(e,t){return Be(this,t,e)},min:function(e){return Be(this,e?nr(e):ir)},minBy:function(e,t){return Be(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return We(this,Oe(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return We(this,Fe(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return We(this,function(e,t,n){var r=qe(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(2,i),s=!0;return new z(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,l=i[0],c=i[1];return t.call(n,c,l,o)?2===r?e:F(r,l,c,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=P(e),n=x(e),r=t?1:0;return function(e,t){return t=ue(t,3432918353),t=ue(t<<15|t>>>-15,461845907),t=ue(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=ue(t^t>>>16,2246822507),t=ue(t^t>>>13,3266489909),t=de(t^t>>>16),t}(e.__iterate(n?t?function(e,t){r=31*r+or(he(e),he(t))|0}:function(e,t){r=r+or(he(e),he(t))|0}:t?function(e){r=31*r+he(e)|0}:function(e){r=r+he(e)|0}),r)}(this))}});var Yn=k.prototype;Yn[v]=!0,Yn[O]=Yn.values,Yn.toJSON=Yn.toArray,Yn.__toStringMapper=nt,Yn.inspect=Yn.toSource=function(){return this.toString()},Yn.chain=Yn.flatMap,Yn.contains=Yn.includes,Pn(M,{flip:function(){return We(this,Ie(this))},mapEntries:function(e,t){var n=this,r=0;return We(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return We(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var Xn=M.prototype;Xn[b]=!0,Xn[O]=Yn.entries,Xn.toJSON=Kn,Xn.__toStringMapper=function(e,t){return nt(t)+": "+nt(e)},Pn(C,{toKeyedSeq:function(){return new Ae(this,!1)},filter:function(e,t){return We(this,Le(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return We(this,Pe(this,!1))},slice:function(e,t){return We(this,Re(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=h(e,e<0?this.count():this.size);var r=this.slice(0,e);return We(this,1===n?r:r.concat(Xe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return We(this,ze(this,e,!1))},get:function(e,t){return(e=u(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return We(this,function(e,t){var n=qe(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate(function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)},r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(1,r),a=0;return new z(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?F(n,a++,t):F(n,a++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(Xe(arguments)),t=He(this.toSeq(),X.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),We(this,n)}
2,keySeq:function(){return Wn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return We(this,Oe(this,e,t,!1))},zip:function(){return We(this,He(this,rr,[this].concat(Xe(arguments))))},zipAll:function(){return We(this,He(this,rr,[this].concat(Xe(arguments)),!0))},zipWith:function(e){var t=Xe(arguments);return t[0]=this,We(this,He(this,e,t))}});var Zn=C.prototype;Zn[S]=!0,Zn[D]=!0,Pn(T,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Qn=T.prototype;function Jn(e,t,n,r,i,o){return Qe(e.size),e.__iterate(function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)},o),n}function $n(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(){return Xe(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function or(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Qn.has=Yn.includes,Qn.contains=Qn.includes,Qn.keys=Qn.values,Pn(Y,Xn),Pn(X,Zn),Pn(Z,Qn);var ar=function(e){function t(e){return void 0===e||null===e?ur():In(e)?e:ur().withMutations(function(t){var n=T(e);Qe(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(M(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Rn);ar.isOrderedSet=In;var sr,lr=ar.prototype;function cr(e,t){var n=Object.create(lr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ur(){return sr||(sr=cr(Sn()))}lr[D]=!0,lr.zip=Zn.zip,lr.zipWith=Zn.zipWith,lr.zipAll=Zn.zipAll,lr.__empty=ur,lr.__make=cr;var dr={LeftThenRight:-1,RightThenLeft:1};var pr=function(e,t){var n;!function(e){if(N(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!==typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),l=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var c=0;c<s.length;c++){var u=s[c];l[u]=c,i[u]?"object"===typeof console&&console.warn&&console.warn("Cannot define "+mr(this)+' with property "'+u+'" since that property name is part of the Record API.'):vr(i,u)}}return this.__ownerID=void 0,this._values=on().withMutations(function(e){e.setSize(a._keys.length),M(o).forEach(function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(hr);return i.constructor=r,t&&(r.displayName=t),r};pr.prototype.toString=function(){for(var e,t=mr(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+nt(this.get(e));return t+" }"},pr.prototype.equals=function(e){return this===e||N(e)&&gr(this).equals(gr(e))},pr.prototype.hashCode=function(){return gr(this).hashCode()},pr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},pr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},pr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return fr(this,n)}return this},pr.prototype.remove=function(e){return this.set(e)},pr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:fr(this,e)},pr.prototype.wasAltered=function(){return this._values.wasAltered()},pr.prototype.toSeq=function(){return gr(this)},pr.prototype.toJS=function(){return Ln(this)},pr.prototype.entries=function(){return this.__iterator(2)},pr.prototype.__iterator=function(e,t){return gr(this).__iterator(e,t)},pr.prototype.__iterate=function(e,t){return gr(this).__iterate(e,t)},pr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?fr(this,t,e):(this.__ownerID=e,this._values=t,this)},pr.isRecord=N,pr.getDescriptiveName=mr;var hr=pr.prototype;function fr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function mr(e){return e.constructor.displayName||e.constructor.name||"Record"}function gr(e){return ne(e._keys.map(function(t){return[t,e.get(t)]}))}function vr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Ze(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(n){}}hr[j]=!0,hr[r]=hr.remove,hr.deleteIn=hr.removeIn=ht,hr.getIn=Gn,hr.hasIn=Yn.hasIn,hr.merge=vt,hr.mergeWith=yt,hr.mergeIn=At,hr.mergeDeep=Ct,hr.mergeDeepWith=Tt,hr.mergeDeepIn=Et,hr.setIn=dt,hr.update=mt,hr.updateIn=gt,hr.withMutations=jt,hr.asMutable=Nt,hr.asImmutable=It,hr[O]=hr.entries,hr.toJSON=hr.toObject=Yn.toObject,hr.inspect=hr.toSource=function(){return this.toString()};var yr,br=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(yr)return yr;yr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return ce(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return p(e,n,r)?this:new t(this._value,f(n,r)-h(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return ce(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return ce(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new z(function(){return i===r?{value:void 0,done:!0}:F(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?ce(this._value,e._value):Dn(this,e)},t}(X);function xr(e,t){return Sr([],t||wr,e,"",t&&t.length>2?[]:void 0,{"":e})}function Sr(e,t,n,r,i,o){if("string"!==typeof n&&!I(n)&&(q(n)||U(n)||et(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,K(n).map(function(r,o){return Sr(e,t,r,o,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function wr(e,t){return w(t)?t.toList():x(t)?t.toMap():t.toSet()}var _r="4.3.7",kr=k;const Mr={version:_r,Collection:k,Iterable:k,Seq:K,Map:Pt,OrderedMap:bn,List:on,Stack:Mn,Set:Rn,OrderedSet:ar,PairSorting:dr,Record:pr,Range:Wn,Repeat:br,is:ce,fromJS:xr,hash:he,isImmutable:I,isCollection:y,isKeyed:x,isIndexed:w,isAssociative:_,isOrdered:P,isValueObject:le,isPlainObject:et,isSeq:E,isList:rn,isMap:ae,isOrderedMap:se,isStack:kn,isSet:Nn,isOrderedSet:In,isRecord:N,get:it,getIn:Vn,has:rt,hasIn:qn,merge:xt,mergeDeep:wt,mergeWith:St,mergeDeepWith:_t,remove:at,removeIn:pt,set:st,setIn:ut,update:ft,updateIn:lt}}
2,92338:(e,t,n)=>{n(80050)("Map")},92374:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(65043)),i=n(13174);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(i.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},92426:(e,t,n)=>{var r=n(72630),i=n(67573);e.exports=Object.keys||function(e){return r(e,i)}},92429:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment")},92448:(e,t,n)=>{var r=n(67060);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},92532:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(72372);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i={};return t.forEach(t=>{i[t]=(0,r.Ay)(e,t,n)}),i}},92593:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(90186),o=n(31320),a=n(36415),s=n(76246),l=(0,o.Map)(),c=s();function u(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var d={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),d.__getLastCreatedEntityKey()},create:function(e,t,n){return u("DraftEntity.create","contentState.createEntity"),d.__create(e,t,n)},add:function(e){return u("DraftEntity.add","contentState.addEntity"),d.__add(e)},get:function(e){return u("DraftEntity.get","contentState.getEntity"),d.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,c=s()},mergeData:function(e,t){return u("DraftEntity.mergeData","contentState.mergeEntityData"),d.__mergeData(e,t)},replaceData:function(e,t){return u("DraftEntity.replaceData","contentState.replaceEntityData"),d.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return c},__create:function(e,t,n){return d.__add(new i({type:e,mutability:t,data:n||{}}))},__add:function(e){return c=s(),l=l.set(c,e),c},__get:function(e){var t=l.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=d.__get(e),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}({},n.getData(),t),o=n.set("data",i);return l=l.set(e,o),o},__replaceData:function(e,t){var n=d.__get(e).set("data",t);return l=l.set(e,n),n}};e.exports=d},92719:(e,t,n)=>{var r=n(67060),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},93252:(e,t,n)=>{var r=n(37652),i=n(68027),o=n(12372),a=n(58116);e.exports=function(e,t,n,s,l){r(t);var c=i(e),u=o(c),d=a(c.length),p=l?d-1:0,h=l?-1:1;if(n<2)for(;;){if(p in u){s=u[p],p+=h;break}if(p+=h,l?p<0:d<=p)throw TypeError("Reduce of empty array with no initial value")}for(;l?p>=0:d>p;p+=h)p in u&&(s=t(s,u[p],p,c));return s}},93319:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(31782).A},93586:(e,t,n)=>{"use strict";var r=n(42123);var i=n(50317),o=n(65043),a=n(36415),s=n(55030),l=n(41981).setDraftEditorSelection,c=function(e){var t,n;function c(){for(var t,n,r,i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),i=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=c.prototype;return u._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,i=t.text,o=n.getKey(),c=r+i.length;if(e.hasEdgeWithin(o,r,c)){var u=this.leaf;u||a(!1);var d,p=u.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?d=p:s(p)?d=u:(d=p.firstChild)||a(!1),l(e,d,o,r,c)}}},u.shouldComponentUpdate=function(e){var t=this.leaf;return t||a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},u.componentDidUpdate=function(){this._setSelection()},u.componentDidMount=function(){this._setSelection()},u.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,s=a.customStyleMap,l=a.customStyleFn,c=a.offsetKey,u=a.styleSet,d=u.reduce(function(e,t){var n={},i=s[t];return void 0!==i&&e.textDecoration!==i.textDecoration&&(n.textDecoration=[e.textDecoration,i.textDecoration].join(" ").trim()),r(e,i,n)},{});if(l){var p=l(u,t);d=r(d,p)}return o.createElement("span",{"data-offset-key":c,ref:function(t){return e.leaf=t},style:d}
2,o.createElement(i,null,n))},c}(o.Component);e.exports=c},93730:(e,t,n)=>{"use strict";var r=n(67060),i=n(83881),o=n(74241),a=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==a.call(1,void 0)})||!i(function(){a.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},93803:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,081 bytes, line 2
2,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,x="";function S(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m,column:g,length:a,return:""}}function w(e,t){return a(S("",null,null,"",null,null,0),e,{length:-e.length},t)}function _(){return b=y>0?u(x,--y):0,g--,10===b&&(g=1,m--),b}function k(){return b=y<v?u(x,y++):0,g++,10===b&&(g=1,m++),b}function M(){return u(x,y)}function C(){return y}function T(e,t){return d(x,e,t)}function A(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function E(e){return m=g=1,v=p(x=e),y=0,[]}function j(e){return x="",e}function N(e){return s(T(y-1,P(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(b=M())&&b<33;)k();return A(e)>2||A(b)>3?"":" "}function D(e,t){for(;--t&&k()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,C()+(t<6&&32==M()&&32==k()))}function P(e){for(;k();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&P(b);break;case 40:41===e&&P(e);break;case 92:k()}return y}function L(e,t){for(;k()&&e+b!==57&&(e+b!==84||47!==M()););return"/*"+T(t,y-1)+"*"+o(47===e?e:k())}function R(e){for(;!A(M());)k();return T(e,y)}var O="-ms-",z="-moz-",F="-webkit-",B="comm",U="rule",H="decl",W="@keyframes";function V(e,t){for(var n="",r=h(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function G(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case B:return"";case W:return e.return=e.value+"{"+V(e.children,r)+"}";case U:e.value=e.props.join(",")}return p(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return j(K("",null,null,null,[""],e=E(e),0,[0],e))}function K(e,t,n,r,i,a,s,d,h){for(var m=0,g=0,v=s,y=0,b=0,x=0,S=1,w=1,T=1,A=0,E="",j=i,P=a,O=r,z=E;w;)switch(x=A,A=k()){case 40:if(108!=x&&58==u(z,v-1)){-1!=c(z+=l(N(A),"&","&\f"),"&\f")&&(T=-1);break}case 34:case 39:case 91:z+=N(A);break;case 9:case 10:case 13:case 32:z+=I(x);break;case 92:z+=D(C()-1,7);continue;case 47:switch(M()){case 42:case 47:f(X(L(k(),C()),t,n),h);break;default:z+="/"}break;case 123*S:d[m++]=p(z)*T;case 125*S:case 59:case 0:switch(A){case 0:case 125:w=0;case 59+g:-1==T&&(z=l(z,/\f/g,"")),b>0&&p(z)-v&&f(b>32?Z(z+";",r,n,v-1):Z(l(z," ","")+";",r,n,v-2),h);break;case 59:z+=";";default:if(f(O=Y(z,t,n,m,g,i,d,E,j=[],P=[],v),a),123===A)if(0===g)K(z,t,O,O,j,a,v,d,P);else switch(99===y&&110===u(z,3)?100:y){case 100:case 108:case 109:case 115:K(e,O,O,r&&f(Y(e,O,O,0,0,i,d,E,i,j=[],v),P),i,P,v,d,r?j:P);break;default:K(z,O,O,O,[""],P,0,d,P)}}m=g=b=0,S=T=1,E=z="",v=s;break;case 58:v=1+p(z),b=x;default:if(S<1)if(123==A)--S;else if(125==A&&0==S++&&125==_())continue;switch(z+=o(A),A*S){case 38:T=g>0?1:(z+="\f",-1);break;case 44:d[m++]=(p(z)-1)*T,T=1;break;case 64:45===M()&&(z+=N(k())),y=M(),g=v=p(E=z+=R(C())),A++;break;case 45:45===x&&2==p(z)&&(S=0)}}return a}function Y(e,t,n,r,o,a,c,u,p,f,m){for(var g=o-1,v=0===o?a:[""],y=h(v),b=0,x=0,w=0;b<r;++b)for(var _=0,k=d(e,g+1,g=i(x=c[b])),M=e;_<y;++_)(M=s(x>0?v[_]+" "+k:l(k,/&\f/g,v[_])))&&(p[w++]=M);return S(e,t,n,0===o?U:u,p,f,m)}function X(e,t,n){return S(e,t,n,B,o(b),d(e,2,-2),0)}function Z(e,t,n,r){return S(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,i=0;r=i,i=M(),38===r&&12===i&&(t[n]=1),!A(i);)k();return T(e,y)},J=function(e,t){return j(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===M()&&(t[n]=1),e[n]+=Q(y-1,t,n);break;case 2:e[n]+=N(r);break;case 4:if(44===r){e[++n]=58===M()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=k());return e}(E(e),t))},$=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$.get(n))&&!r){$.set(e,!0);for(var i=[],o=J(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;
2case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+z+e+O+e+e;case 6828:case 4268:return F+e+O+e+e;case 6165:return F+e+O+"flex-"+e+e;case 5187:return F+e+l(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return F+e+O+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return F+e+O+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+O+l(e,"shrink","negative")+e;case 5292:return F+e+O+l(e,"basis","preferred-size")+e;case 6060:return F+"box-"+l(e,"-grow","")+F+e+O+l(e,"grow","positive")+e;case 4554:return F+l(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+z+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+O+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+O+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+O+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+O+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+O+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=ne(e.value,e.length);break;case W:return V([w(e,{value:l(e.value,"@","@"+F)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([w(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([w(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,O+"input-$1")]})],r)}return""})}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var i,o,a=e.stylisPlugins||re,s={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)});var c,u,d=[G,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=h(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([ee,te].concat(a,d));o=function(e,t,n,r){c=n,V(q(e?e+"{"+t.styles+"}":t.styles),p),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return f.sheet.hydrate(l),f}},93828:(e,t,n)=>{n(80156)("getOwnPropertyNames",function(){return n(53572).f})},93834:(e,t,n)=>{n(58452)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},94094:(e,t,n)=>{var r=n(33435),i=n(30853),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},94098:(e,t,n)=>{"use strict";var r=n(31679),i=n(30289),o="WeakSet";n(13750)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},94099:e=>{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"===typeof t.Node?e instanceof t.Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName))}},94634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}
2e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},94645:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m1 14h-2v-2h2zm0-3h-2c0-3.25 3-3 3-5 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 2.5-3 2.75-3 5",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M11 16h2v2h-2zm1-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"},"1")],"HelpTwoTone")},94666:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},i.getAnchorKey=function(){return this.get("anchorKey")},i.getAnchorOffset=function(){return this.get("anchorOffset")},i.getFocusKey=function(){return this.get("focusKey")},i.getFocusOffset=function(){return this.get("focusOffset")},i.getIsBackward=function(){return this.get("isBackward")},i.getHasFocus=function(){return this.get("hasFocus")},i.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var o=this.getStartOffset(),a=this.getEndOffset();return t<=o&&o<=n||t<=a&&a<=n}if(e!==r&&e!==i)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},i.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},i.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},i.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},i.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},i.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(31320).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r}
2,94733:(e,t,n)=>{"use strict";var r=n(4414),i=n(88691);e.exports=function(e,t,n,o,a){var s=i(e.getSelection());if(!t||!o)return s;var l=r.decode(t),c=l.blockKey,u=e.getBlockTree(c),d=u&&u.getIn([l.decoratorKey,"leaves",l.leafKey]),p=r.decode(o),h=p.blockKey,f=e.getBlockTree(h),m=f&&f.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!d||!m)return s;var g=d.get("start"),v=m.get("start"),y=d?g+n:null,b=m?v+a:null;if(s.getAnchorKey()===c&&s.getAnchorOffset()===y&&s.getFocusKey()===h&&s.getFocusOffset()===b)return s;var x=!1;if(c===h){var S=d.get("end"),w=m.get("end");x=v===g&&w===S?a<n:v<g}else{x=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===c||e===h}).first()===h}return s.merge({anchorKey:c,anchorOffset:y,focusKey:h,focusOffset:b,isBackward:x})}},94953:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMException:()=>w,Headers:()=>u,Request:()=>v,Response:()=>x,fetch:()=>_});var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!==typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function p(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function h(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i.arrayBuffer&&i.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(h);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=p(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=s(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[s(e)]},u.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},u.prototype.set=function(e,t){this.map[s(e)]=l(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),c(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),c(e)},i.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object c
2onstructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=function(e){var t=e.toUpperCase();return g.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function b(e){var t=new u;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(o){console.warn("Response "+o.message)}}}),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var S=[301,302,303,307,308];x.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})};var w=r.DOMException;try{new w}catch(k){(w=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function _(e,t){return new Promise(function(n,o){var a=new v(e,t);if(a.signal&&a.signal.aborted)return o(new w("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var e={statusText:c.statusText,headers:b(c.getAllResponseHeaders()||"")};0===a.url.indexOf("file://")&&(c.status<200||c.status>599)?e.status=200:e.status=c.status,e.url="responseURL"in c?c.responseURL:e.headers.get("X-Request-URL");var t="response"in c?c.response:c.responseText;setTimeout(function(){n(new x(t,e))},0)},c.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){o(new w("Aborted","AbortError"))},0)},c.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(i.blob?c.responseType="blob":i.arrayBuffer&&(c.responseType="arraybuffer")),t&&"object"===typeof t.headers&&!(t.headers instanceof u||r.Headers&&t.headers instanceof r.Headers)){var p=[];
2Object.getOwnPropertyNames(t.headers).forEach(function(e){p.push(s(e)),c.setRequestHeader(e,l(t.headers[e]))}),a.headers.forEach(function(e,t){-1===p.indexOf(t)&&c.setRequestHeader(t,e)})}else a.headers.forEach(function(e,t){c.setRequestHeader(t,e)});a.signal&&(a.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",d)}),c.send("undefined"===typeof a._bodyInit?null:a._bodyInit)})}_.polyfill=!0,r.fetch||(r.fetch=_,r.Headers=u,r.Request=v,r.Response=x)},95314:(e,t,n)=>{var r=n(63759)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},95849:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(63462).A},95857:(e,t,n)=>{n(80050)("WeakSet")},95867:(e,t,n)=>{var r=n(36040),i=n(30853),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(57621)(Function.call,n(2008).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},95971:(e,t,n)=>{"use strict";var r=n(76101),i=n(12718),o=n(73358),a=n(63759)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},96033:(e,t,n)=>{var r=n(67060);r(r.S+r.F,"Object",{assign:n(77807)})},96643:(e,t,n)=>{"use strict";var r=n(36935);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},96832:(e,t,n)=>{var r=n(63759)("toPrimitive"),i=Date.prototype;r in i||n(12730)(i,r,n(22526))},96882:(e,t,n)=>{"use strict";var r=n(24801),i=n(56283),o=n(18799),a=n(73767);e.exports=function(e){var t=a(e,function(e){var t=e.getSelection(),n=t.getStartOffset(),i=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(i).getText().slice(n),s=r.getForward(a);return o(e,s.length||1)},"forward");return t===e.getCurrentContent()?e:i.push(e,t,"remove-range")}},96966:()=>{},97277:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(60599)(o)},97387:(e,t,n)=>{"use strict";var r=n(67060),i=n(76101),o=n(89173),a=n(31129)(),s=n(63759)("observable"),l=n(37652),c=n(30853),u=n(45797),d=n(66254),p=n(12730),h=n(15785),f=h.RETURN,m=function(e){return null==e?void 0:l(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},y=function(e){v(e)||(e._o=void 0,g(e))},b=function(e,t){c(e),this._c=void 0,this._o=e,e=new x(this);try{var n=t(e),r=n;null!=n&&("function"===typeof n.unsubscribe?n=function(){r.unsubscribe()}:l(n),this._c=n)}catch(i){return void e.error(i)}v(this)&&g(this)};b.prototype=d({},{unsubscribe:function(){y(this)}});var x=function(e){this._s=e};x.prototype=d({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var r=m(n.next);if(r)return r.call(n,e)}catch(i){try{y(t)}finally{throw i}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var r=m(n.error);if(!r)throw e;e=r.call(n,e)}catch(i){try{g(t)}finally{throw i}}return g(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var r=m(n.complete);e=r?r.call(n,e):void 0}catch(i){try{g(t)}finally{throw i}}return g(t),e}}});var S=function(e){u(this,S,"Observable","_f")._f=l(e)};d(S.prototype,{subscribe:function(e){return new b(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(n,r){l(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n})})}}),d(S,{from:function(e){var t="function"===typeof this?this:S,n=m(c(e)[s]);if(n){var r=c(n.call(e));return r.constructor===t?r:new t(function(e){return r.subscribe(e)})}return new t(function(t){var n=!1;return a(function(){if(!n){try{if(h(e,!1,function(e){if(t.next(e),n)return f})===f)return}catch(r){if(n)throw r;return void t.error(r)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"===typeof this?this:S)(function(e){var t=!1;return a(function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}}),function(){t=!0}})}}),p(S.prototype,s,function(){return this}),r(r.G,{Observable:S}),n(95971)("Observable")},97561:(e,t,n)=>{var r=n(36040),i=n(30387).onFreeze;n(80156)("seal",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},97950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(82730)},98084:(e,t,n)=>{var r=Date.prototype,i="Invalid Date",o="toString",a=r[o],s=r.getTime;new Date(NaN)+""!=i&&n(88972)(r,o,function(){var e=s.call(this);return e===e?a.call(this):i})},98139:(e,t)=>
2{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},98206:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});n(65043);var r=n(13654);n(70579);function i(e){return(0,r.b)(e)}},98348:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var i=r(n(40039)),o=n(70579);t.A=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info")},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},98610:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}n.d(t,{A:()=>r})},99303:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(65043);const i={};const o=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function s(){const e=function(e,t){const n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,o),e}},99468:(e,t,n)=>{var r=n(30853),i=n(36040),o=n(75621);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},99493:e=>{"use strict";var t=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},99880:(e,t,n)=>{"use strict";var r,i=n(76101),o=n(9874)(0),a=n(88972),s=n(30387),l=n(77807),c=n(31679),u=n(36040),d=n(30289),p=n(30289),h=!i.ActiveXObject&&"ActiveXObject"in i,f="WeakMap",m=s.getWeak,g=Object.isExtensible,v=c.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(u(e)){var t=m(e);return!0===t?v(d(this,f)).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,f),e,t)}},x=e.exports=n(13750)(f,y,b,c,!0,!0);p&&h&&(l((r=c.getConstructor(y,f)).prototype,b),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=x.prototype,n=t[e];a(t,e,function(t,i){if(u(t)&&!g(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}
2}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{ACESFilmicToneMapping:()=>Ch,AddEquation:()=>Xp,AddOperation:()=>Sh,AdditiveAnimationBlendMode:()=>nm,AdditiveBlending:()=>Gp,AlphaFormat:()=>of,AlwaysDepth:()=>ph,AlwaysStencilFunc:()=>Nm,AmbientLight:()=>LM,AmbientLightProbe:()=>JM,AnimationAction:()=>CC,AnimationClip:()=>oM,AnimationLoader:()=>fM,AnimationMixer:()=>AC,AnimationObjectGroup:()=>MC,AnimationUtils:()=>qk,ArcCurve:()=>c_,ArrayCamera:()=>LS,ArrowHelper:()=>bT,Audio:()=>uC,AudioAnalyser:()=>gC,AudioContext:()=>XM,AudioListener:()=>cC,AudioLoader:()=>ZM,AxesHelper:()=>xT,BackSide:()=>Bp,BasicDepthPacking:()=>lm,BasicShadowMap:()=>Lp,Bone:()=>kw,BooleanKeyframeTrack:()=>Jk,Box2:()=>BC,Box3:()=>Rg,Box3Helper:()=>fT,BoxBufferGeometry:()=>wT,BoxGeometry:()=>Ky,BoxHelper:()=>hT,BufferAttribute:()=>cy,BufferGeometry:()=>Ty,BufferGeometryLoader:()=>HM,ByteType:()=>Yh,Cache:()=>sM,Camera:()=>$y,CameraHelper:()=>uT,CanvasTexture:()=>a_,CapsuleBufferGeometry:()=>_T,CapsuleGeometry:()=>j_,CatmullRomCurve3:()=>m_,CineonToneMapping:()=>Mh,CircleBufferGeometry:()=>kT,CircleGeometry:()=>N_,ClampToEdgeWrapping:()=>Lh,Clock:()=>rC,Color:()=>$v,ColorKeyframeTrack:()=>$k,ColorManagement:()=>yg,CompressedArrayTexture:()=>o_,CompressedTexture:()=>i_,CompressedTextureLoader:()=>mM,ConeBufferGeometry:()=>MT,ConeGeometry:()=>D_,CubeCamera:()=>nb,CubeReflectionMapping:()=>Eh,CubeRefractionMapping:()=>jh,CubeTexture:()=>rb,CubeTextureLoader:()=>vM,CubeUVReflectionMapping:()=>Dh,CubicBezierCurve:()=>b_,CubicBezierCurve3:()=>x_,CubicInterpolant:()=>Yk,CullFaceBack:()=>Ip,CullFaceFront:()=>Dp,CullFaceFrontBack:()=>Pp,CullFaceNone:()=>Np,Curve:()=>s_,CurvePath:()=>T_,CustomBlending:()=>Yp,CustomToneMapping:()=>Th,CylinderBufferGeometry:()=>CT,CylinderGeometry:()=>I_,Cylindrical:()=>zC,Data3DTexture:()=>Eg,DataArrayTexture:()=>Tg,DataTexture:()=>Mw,DataTextureLoader:()=>yM,DataUtils:()=>ay,DecrementStencilOp:()=>xm,DecrementWrapStencilOp:()=>wm,DefaultLoadingManager:()=>cM,DepthFormat:()=>cf,DepthStencilFormat:()=>uf,DepthTexture:()=>FS,DirectionalLight:()=>PM,DirectionalLightHelper:()=>sT,DiscreteInterpolant:()=>Zk,DisplayP3ColorSpace:()=>mm,DodecahedronBufferGeometry:()=>TT,DodecahedronGeometry:()=>L_,DoubleSide:()=>Up,DstAlphaFactor:()=>ah,DstColorFactor:()=>lh,DynamicCopyUsage:()=>Fm,DynamicDrawUsage:()=>Dm,DynamicReadUsage:()=>Rm,EdgesGeometry:()=>B_,EllipseCurve:()=>l_,EqualDepth:()=>mh,EqualStencilFunc:()=>Cm,EquirectangularReflectionMapping:()=>Nh,EquirectangularRefractionMapping:()=>Ih,Euler:()=>bv,EventDispatcher:()=>Vm,ExtrudeBufferGeometry:()=>AT,ExtrudeGeometry:()=>gk,FileLoader:()=>hM,Float16BufferAttribute:()=>vy,Float32BufferAttribute:()=>yy,Float64BufferAttribute:()=>by,FloatType:()=>$h,Fog:()=>KS,FogExp2:()=>qS,FramebufferTexture:()=>r_,FrontSide:()=>Fp,Frustum:()=>db,GLBufferAttribute:()=>DC,GLSL1:()=>Um,GLSL3:()=>Hm,GreaterDepth:()=>vh,GreaterEqualDepth:()=>gh,GreaterEqualStencilFunc:()=>jm,GreaterStencilFunc:()=>Am,GridHelper:()=>nT,Group:()=>RS,HalfFloatType:()=>ef,HemisphereLight:()=>SM,HemisphereLightHelper:()=>tT,HemisphereLightProbe:()=>QM,IcosahedronBufferGeometry:()=>ET,IcosahedronGeometry:()=>yk,ImageBitmapLoader:()=>KM,ImageLoader:()=>gM,ImageUtils:()=>xg,IncrementStencilOp:()=>bm,IncrementWrapStencilOp:()=>Sm,InstancedBufferAttribute:()=>Ew,InstancedBufferGeometry:()=>UM,InstancedInterleavedBuffer:()=>IC,InstancedMesh:()=>Ow,Int16BufferAttribute:()=>hy,Int32BufferAttribute:()=>my,Int8BufferAttribute:()=>uy,IntType:()=>Qh,InterleavedBuffer:()=>XS,InterleavedBufferAttribute:()=>QS,Interpolant:()=>Kk,InterpolateDiscrete:()=>Xf,InterpolateLinear:()=>Zf,InterpolateSmooth:()=>Qf,InvertStencilOp:()=>_m,KeepStencilOp:()=>vm,KeyframeTrack:()=>Qk,LOD:()=>gw,LatheBufferGeometry:()=>jT,LatheGeometry:()=>E_,Layers:()=>xv,LessDepth:()=>hh,LessEqualDepth:()=>fh,LessEqualStencilFunc:()=>Tm,LessStencilFunc:()=>Mm,Light:()=>xM,LightProbe:()=>zM,Line:()=>Vw,Line3:()=>WC,LineBasicMaterial:()=>zw,LineCurve:()=>S_,LineCurve3:()=>w_,LineDashedMaterial:()=>Fk,LineLoop:()=>Yw,LineSegments:()=>Kw,LinearEncoding:()=>am,LinearFilter:()=>Hh,LinearInterpolant:()=>Xk,LinearMipMapLinearFilter:()=>qh,LinearMipMapNearestFilter:()=>Vh,LinearMipmapLinearFilter:()=>Gh,LinearMipmapNearestFilter:()=>Wh,LinearSRGBColorSpace:()=>fm,LinearToneMapping:()=>_h,Loader:()=>uM,LoaderUtils:()=>
2BM,LoadingManager:()=>lM,LoopOnce:()=>qf,LoopPingPong:()=>Yf,LoopRepeat:()=>Kf,LuminanceAlphaFormat:()=>lf,LuminanceFormat:()=>sf,MOUSE:()=>Ep,Material:()=>Yv,MaterialLoader:()=>FM,MathUtils:()=>ig,Matrix3:()=>ag,Matrix4:()=>cv,MaxEquation:()=>$p,Mesh:()=>Gy,MeshBasicMaterial:()=>ty,MeshDepthMaterial:()=>ES,MeshDistanceMaterial:()=>jS,MeshLambertMaterial:()=>Ok,MeshMatcapMaterial:()=>zk,MeshNormalMaterial:()=>Rk,MeshPhongMaterial:()=>Pk,MeshPhysicalMaterial:()=>Dk,MeshStandardMaterial:()=>Ik,MeshToonMaterial:()=>Lk,MinEquation:()=>Jp,MirroredRepeatWrapping:()=>Rh,MixOperation:()=>xh,MultiplyBlending:()=>Kp,MultiplyOperation:()=>bh,NearestFilter:()=>Oh,NearestMipMapLinearFilter:()=>Uh,NearestMipMapNearestFilter:()=>Fh,NearestMipmapLinearFilter:()=>Bh,NearestMipmapNearestFilter:()=>zh,NeverDepth:()=>dh,NeverStencilFunc:()=>km,NoBlending:()=>Wp,NoColorSpace:()=>pm,NoToneMapping:()=>wh,NormalAnimationBlendMode:()=>tm,NormalBlending:()=>Vp,NotEqualDepth:()=>yh,NotEqualStencilFunc:()=>Em,NumberKeyframeTrack:()=>eM,Object3D:()=>Pv,ObjectLoader:()=>WM,ObjectSpaceNormalMap:()=>dm,OctahedronBufferGeometry:()=>NT,OctahedronGeometry:()=>bk,OneFactor:()=>th,OneMinusDstAlphaFactor:()=>sh,OneMinusDstColorFactor:()=>ch,OneMinusSrcAlphaFactor:()=>oh,OneMinusSrcColorFactor:()=>rh,OrthographicCamera:()=>Mb,PCFShadowMap:()=>Rp,PCFSoftShadowMap:()=>Op,PMREMGenerator:()=>Pb,Path:()=>A_,PerspectiveCamera:()=>eb,Plane:()=>lb,PlaneBufferGeometry:()=>IT,PlaneGeometry:()=>fb,PlaneHelper:()=>mT,PointLight:()=>IM,PointLightHelper:()=>QC,Points:()=>e_,PointsMaterial:()=>Xw,PolarGridHelper:()=>rT,PolyhedronBufferGeometry:()=>DT,PolyhedronGeometry:()=>P_,PositionalAudio:()=>mC,PropertyBinding:()=>kC,PropertyMixer:()=>vC,QuadraticBezierCurve:()=>__,QuadraticBezierCurve3:()=>k_,Quaternion:()=>Ig,QuaternionKeyframeTrack:()=>nM,QuaternionLinearInterpolant:()=>tM,RED_GREEN_RGTC2_Format:()=>Vf,RED_RGTC1_Format:()=>Hf,REVISION:()=>Ap,RGBADepthPacking:()=>cm,RGBAFormat:()=>af,RGBAIntegerFormat:()=>mf,RGBA_ASTC_10x10_Format:()=>zf,RGBA_ASTC_10x5_Format:()=>Lf,RGBA_ASTC_10x6_Format:()=>Rf,RGBA_ASTC_10x8_Format:()=>Of,RGBA_ASTC_12x10_Format:()=>Ff,RGBA_ASTC_12x12_Format:()=>Bf,RGBA_ASTC_4x4_Format:()=>Tf,RGBA_ASTC_5x4_Format:()=>Af,RGBA_ASTC_5x5_Format:()=>Ef,RGBA_ASTC_6x5_Format:()=>jf,RGBA_ASTC_6x6_Format:()=>Nf,RGBA_ASTC_8x5_Format:()=>If,RGBA_ASTC_8x6_Format:()=>Df,RGBA_ASTC_8x8_Format:()=>Pf,RGBA_BPTC_Format:()=>Uf,RGBA_ETC2_EAC_Format:()=>Cf,RGBA_PVRTC_2BPPV1_Format:()=>_f,RGBA_PVRTC_4BPPV1_Format:()=>wf,RGBA_S3TC_DXT1_Format:()=>vf,RGBA_S3TC_DXT3_Format:()=>yf,RGBA_S3TC_DXT5_Format:()=>bf,RGB_ETC1_Format:()=>kf,RGB_ETC2_Format:()=>Mf,RGB_PVRTC_2BPPV1_Format:()=>Sf,RGB_PVRTC_4BPPV1_Format:()=>xf,RGB_S3TC_DXT1_Format:()=>gf,RGFormat:()=>hf,RGIntegerFormat:()=>ff,RawShaderMaterial:()=>Nk,Ray:()=>lv,Raycaster:()=>PC,RectAreaLight:()=>RM,RedFormat:()=>df,RedIntegerFormat:()=>pf,ReinhardToneMapping:()=>kh,RepeatWrapping:()=>Ph,ReplaceStencilOp:()=>ym,ReverseSubtractEquation:()=>Qp,RingBufferGeometry:()=>PT,RingGeometry:()=>xk,SIGNED_RED_GREEN_RGTC2_Format:()=>Gf,SIGNED_RED_RGTC1_Format:()=>Wf,SRGBColorSpace:()=>hm,Scene:()=>YS,ShaderChunk:()=>mb,ShaderLib:()=>vb,ShaderMaterial:()=>Jy,ShadowMaterial:()=>jk,Shape:()=>U_,ShapeBufferGeometry:()=>LT,ShapeGeometry:()=>Sk,ShapePath:()=>ST,ShapeUtils:()=>hk,ShortType:()=>Xh,Skeleton:()=>Aw,SkeletonHelper:()=>XC,SkinnedMesh:()=>_w,Source:()=>Sg,Sphere:()=>ev,SphereBufferGeometry:()=>RT,SphereGeometry:()=>wk,Spherical:()=>OC,SphericalHarmonics3:()=>OM,SplineCurve:()=>M_,SpotLight:()=>TM,SpotLightHelper:()=>GC,Sprite:()=>pw,SpriteMaterial:()=>JS,SrcAlphaFactor:()=>ih,SrcAlphaSaturateFactor:()=>uh,SrcColorFactor:()=>nh,StaticCopyUsage:()=>zm,StaticDrawUsage:()=>Im,StaticReadUsage:()=>Lm,StereoCamera:()=>nC,StreamCopyUsage:()=>Bm,StreamDrawUsage:()=>Pm,StreamReadUsage:()=>Om,StringKeyframeTrack:()=>rM,SubtractEquation:()=>Zp,SubtractiveBlending:()=>qp,TOUCH:()=>jp,TangentSpaceNormalMap:()=>um,TetrahedronBufferGeometry:()=>OT,TetrahedronGeometry:()=>_k,Texture:()=>kg,TextureLoader:()=>bM,TorusBufferGeometry:()=>zT,TorusGeometry:()=>kk,TorusKnotBufferGeometry:()=>FT,TorusKnotGeometry:()=>Mk,Triangle:()=>qv,TriangleFanDrawMode:()=>om,TriangleStripDrawMode:()=>im,TrianglesDrawMode:()=>rm,TubeBufferGeometry:()=>BT,TubeGeometry:()=>Ck,TwoPassDoubleSide:()=>Hp,UVMapping:()=>Ah,Uint16BufferAttribute:()=>fy,Uint32BufferAttribute:()=>gy,Uint8BufferAttribute:()=>dy,Uint8ClampedBufferAttribute:()=>py,Uniform:()=>EC,UniformsGroup:()=>NC,UniformsLib:()=>gb,UniformsUtils:()=>Qy,UnsignedByteType:()=>Kh,UnsignedInt248Type:()=>rf,UnsignedIntType:()=>Jh,UnsignedShort4444Type:()=>tf,UnsignedShort5551Type:()=>nf,UnsignedShortType:()=>Zh,VSMShadowMap:()=>zp,Vector2:()=>og,Vector3:()=>Dg,Vector4:()=>Mg,VectorKeyframeTrack:()=>iM,VideoTexture:()=>n_,WebGL1Renderer:()=>GS,WebGL3DRenderTarget:()=>jg,WebGLArrayRenderTarget:()=>
2Ag,WebGLCubeRenderTarget:()=>ib,WebGLMultipleRenderTargets:()=>Ng,WebGLRenderTarget:()=>Cg,WebGLRenderer:()=>VS,WebGLUtils:()=>PS,WireframeGeometry:()=>Tk,WrapAroundEnding:()=>em,ZeroCurvatureEnding:()=>Jf,ZeroFactor:()=>eh,ZeroSlopeEnding:()=>$f,ZeroStencilOp:()=>gm,_SRGBAFormat:()=>Wm,sRGBEncoding:()=>sm});var t,r=n(65043),i=n.t(r,2),o=n(84391),a=n(97950),s=n.t(a,2);function l(){return l=Object.assign?Object.assign.bind():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},l.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(t||(t={}));const c="popstate";function u(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function d(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?m(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function g(e,n,r,i){void 0===i&&(i={});let{window:o=document.defaultView,v5Compat:a=!1}=i,s=o.history,d=t.Pop,m=null,g=v();function v(){return(s.state||{idx:null}).idx}function y(){d=t.Pop;let e=v(),n=null==e?null:e-g;g=e,m&&m({action:d,location:x.location,delta:n})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"===typeof e?e:f(e);return n=n.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,s.replaceState(l({},s.state,{idx:g}),""));let x={get action(){return d},get location(){return e(o,s)},listen(e){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(c,y),m=e,()=>{o.removeEventListener(c,y),m=null}},createHref:e=>n(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,n){d=t.Push;let i=h(x.location,e,n);r&&r(i,e),g=v()+1;let l=p(i,g),c=x.createHref(i);try{s.pushState(l,"",c)}catch(ME){if(ME instanceof DOMException&&"DataCloneError"===ME.name)throw ME;o.location.assign(c)}a&&m&&m({action:d,location:x.location,delta:1})},replace:function(e,n){d=t.Replace;let i=h(x.location,e,n);r&&r(i,e),g=v();let o=p(i,g),l=x.createHref(i);s.replaceState(o,"",l),a&&m&&m({action:d,location:x.location,delta:0})},go:e=>s.go(e)};return x}var v;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function y(e,t,n){return void 0===n&&(n="/"),b(e,t,n,!1)}function b(e,t,n,r){let i=D(("string"===typeof t?m(t):t).pathname||"/",n);if(null==i)return null;let o=x(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let a=null;for(let s=0;null==a&&s<o.length;++s){let e=I(i);a=j(o[s],e,r)}return a}function x(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(u(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=z([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),x(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:E(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of S(e.path))i(e,t,r);else i(e,t)}),t}function S(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=S(r.join("/")),s=[];return s.push(...a.map(e=>""===e?o:[o,e].join("/"))),i&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}const w=/^:[\w-]+$/,_=3,k=2,M=1,C=10,T=-2,A=e=>"*"===e;function E(e,t){let n=e.split("/"),r=n.length;return n.some(A)&&(r+=T),t&&(r+=k),n.filter(e=>!A(e)).reduce((e,t)=>
2e+(w.test(t)?_:""===t?M:C),r)}function j(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=N({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=N({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:z([o,u.pathname]),pathnameBase:F(z([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=z([o,u.pathnameBase]))}return a}function N(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);d("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:a,pattern:e}}function I(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(ME){return d(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+ME+")."),e}}function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function P(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function L(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function R(e,t){let n=L(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function O(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=m(e):(i=l({},e),u(!i.pathname||!i.pathname.includes("?"),P("?","pathname","search",i)),u(!i.pathname||!i.pathname.includes("#"),P("#","pathname","hash",i)),u(!i.search||!i.search.includes("#"),P("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?m(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:B(r),hash:U(i)}}(i,o),d=s&&"/"!==s&&s.endsWith("/"),p=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!p||(c.pathname+="/"),c}const z=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function H(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],V=(new Set(W),["get",...W]);new Set(V),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function G(){return G=Object.assign?Object.assign.bind():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},G.apply(this,arguments)}const q=r.createContext(null);const K=r.createContext(null);const Y=r.createContext(null);const X=r.createContext(null);const Z=r.createContext({outlet:null,matches:[],isDataRoute:!1});const Q=r.createContext(null);function J(){return null!=r.useContext(X)}function $(){return J()||u(!1),r.useContext(X).location}function ee(e){r.useContext(Y).static||r.useLayoutEffect(e)}function te(){let{isDataRoute:e}=r.useContext(Z);return e?function(){let{router:e}=de(ce.UseNavigateStable),t=he(ue.UseNavigateStable),n=r.useRef(!1);ee(()=>{n.current=!0});let i=r.useCallback(function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,G({fromRouteId:t},i)))},[e,t]);return i}():function(){J()||u(!1);let e=r.useContext(q),{basename:t,future:n,navigator:i}=r.useContext(Y),{matches:o}=r.useContext(Z),{pathname:a}=$(),s=JSON.stringify(R(o,n.v7_relativeSplatPath)),l=r.useRef(!1);return ee(()=>{l.current=!0}),r.useCallback(function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"===typeof n)return void i.go(n);let o=O(n,JSON.parse(s),a,"path"===r.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:z([t,o.pathname])),(r.replace?i.replace:i.push)(o,r.state,r)},[t,i,s,a,e])}()}function ne(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=r.useContext(Y),{matches:o}=r.useContext(Z),{pathname:a}=$(),s=JSON.stringify(R(o,i.v7_relativeSplatPath));return r.useMemo(()=>O(e,JSON.parse(s),a,"path"===n),[e,s,a,n])}function re(e,n,i,o){J()||u(!1);let{navigator:a}=r.useContext(Y),{matches:s}=r.useContext(Z),l=s[s.length-1],c=l?l.params:{},d=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let p,h=$();if(n){var f;let e="string"===typeof n?m(n):n;"/"===d||(null==(f=e.pathname)?void 0:f.startsWith(d))||u(!1),p=e}else p=h;let g=p.pathname||"/",v=g;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=y(e,{pathname:v});let x=le(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:z([d,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:z([d,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,i,o);return n&&x?r.createElement(X.Provider,{value:{location:G({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:t.Pop}},x):x}function ie(){let e=function(){var e;let t=r.useContext(Q),n=pe(ue.UseRouteError),i=he(ue.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[i]}(),t=H(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application
2Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:o},n):null,null)}const oe=r.createElement(ie,null);class ae extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(Z.Provider,{value:this.props.routeContext},r.createElement(Q.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function se(e){let{routeContext:t,match:n,children:i}=e,o=r.useContext(q);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(Z.Provider,{value:t},i)}function le(e,t,n,i){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var a;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(a=i)&&a.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,l=null==(o=n)?void 0:o.errors;if(null!=l){let e=s.findIndex(e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id]));e>=0||u(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(n&&i&&i.v7_partialHydration)for(let r=0;r<s.length;r++){let e=s[r];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=r),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((e,i,o)=>{let a,u=!1,p=null,h=null;var f;n&&(a=l&&i.route.id?l[i.route.id]:void 0,p=i.route.errorElement||oe,c&&(d<0&&0===o?(f="route-fallback",!1||fe[f]||(fe[f]=!0),u=!0,h=null):d===o&&(u=!0,h=i.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,o+1)),g=()=>{let t;return t=a?p:u?h:i.route.Component?r.createElement(i.route.Component,null):i.route.element?i.route.element:e,r.createElement(se,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?r.createElement(ae,{location:n.location,revalidation:n.revalidation,component:p,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var ce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ce||{}),ue=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ue||{});function de(e){let t=r.useContext(q);return t||u(!1),t}function pe(e){let t=r.useContext(K);return t||u(!1),t}function he(e){let t=function(){let e=r.useContext(Z);return e||u(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||u(!1),n.route.id}const fe={};function me(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}i.startTransition;function ge(e){let{to:t,replace:n,state:i,relative:o}=e;J()||u(!1);let{future:a,static:s}=r.useContext(Y),{matches:l}=r.useContext(Z),{pathname:c}=$(),d=te(),p=O(t,R(l,a.v7_relativeSplatPath),c,"path"===o),h=JSON.stringify(p);return r.useEffect(()=>d(JSON.parse(h),{replace:n,state:i,relative:o}),[d,h,o,n,i]),null}function ve(e){u(!1)}function ye(e){let{basename:n="/",children:i=null,location:o,navigationType:a=t.Pop,navigator:s,static:l=!1,future:c}=e;J()&&u(!1);let d=n.replace(/^\/*/,"/"),p=r.useMemo(()=>({basename:d,navigator:s,static:l,future:G({v7_relativeSplatPath:!1},c)}),[d,c,s,l]);"string"===typeof o&&(o=m(o));let{pathname:h="/",search:f="",hash:g="",state:v=null,key:y="default"}=o,b=r.useMemo(()=>{let e=D(h,d);return null==e?null:{location:{pathname:e,search:f,hash:g,state:v,key:y},navigationType:a}},[d,h,f,g,v,y,a]);return null==b?null:r.createElement(Y.Provider,{value:p},r.createElement(X.Provider,{children:i,value:b}))}function be(e){let{children:t,location:n}=e;return re(xe(t),n)}new Promise(()=>{});r.Component;function xe(e,t){void 0===t&&(t=[]);let n=[];
2return r.Children.forEach(e,(e,i)=>{if(!r.isValidElement(e))return;let o=[...t,i];if(e.type===r.Fragment)return void n.push.apply(n,xe(e.props.children,o));e.type!==ve&&u(!1),e.props.index&&e.props.children&&u(!1);let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=xe(e.props.children,o)),n.push(a)}),n}function Se(){return Se=Object.assign?Object.assign.bind():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},Se.apply(this,arguments)}function we(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const _e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ke=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(dO){}const Me=r.createContext({isTransitioning:!1});new Map;const Ce=i.startTransition;s.flushSync,i.useId;function Te(e){let{basename:t,children:n,future:i,window:o}=e,a=r.useRef();var s;null==a.current&&(a.current=(void 0===(s={window:o,v5Compat:!0})&&(s={}),g(function(e,t){let{pathname:n,search:r,hash:i}=e.location;return h("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"===typeof t?t:f(t)},null,s)));let l=a.current,[c,u]=r.useState({action:l.action,location:l.location}),{v7_startTransition:d}=i||{},p=r.useCallback(e=>{d&&Ce?Ce(()=>u(e)):u(e)},[u,d]);return r.useLayoutEffect(()=>l.listen(p),[l,p]),r.useEffect(()=>me(i),[i]),r.createElement(ye,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:i})}const Ae="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Ee=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=r.forwardRef(function(e,t){let n,{onClick:i,relative:o,reloadDocument:a,replace:s,state:l,target:c,to:d,preventScrollReset:p,viewTransition:h}=e,m=we(e,_e),{basename:g}=r.useContext(Y),v=!1;if("string"===typeof d&&Ee.test(d)&&(n=d,Ae))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=D(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:v=!0}catch(dO){}let y=function(e,t){let{relative:n}=void 0===t?{}:t;J()||u(!1);let{basename:i,navigator:o}=r.useContext(Y),{hash:a,pathname:s,search:l}=ne(e,{relative:n}),c=s;return"/"!==i&&(c="/"===s?i:z([i,s])),o.createHref({pathname:c,search:l,hash:a})}(d,{relative:o}),b=function(e,t){let{target:n,replace:i,state:o,preventScrollReset:a,relative:s,viewTransition:l}=void 0===t?{}:t,c=te(),u=$(),d=ne(e,{relative:s});return r.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==i?i:f(u)===f(d);c(e,{replace:n,state:o,preventScrollReset:a,relative:s,viewTransition:l})}},[u,c,d,i,o,n,e,a,s,l])}(d,{replace:s,state:l,target:c,preventScrollReset:p,relative:o,viewTransition:h});return r.createElement("a",Se({},m,{href:n||y,onClick:v||a?i:function(e){i&&i(e),e.defaultPrevented||b(e)},ref:t,target:c}))});const Ne=r.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,viewTransition:c,children:d}=e,p=we(e,ke),h=ne(l,{relative:p.relative}),f=$(),m=r.useContext(K),{navigator:g,basename:v}=r.useContext(Y),y=null!=m&&function(e,t){void 0===t&&(t={});let n=r.useContext(Me);null==n&&u(!1);let{basename:i}=Pe(Ie.useViewTransitionState),o=ne(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=D(n.currentLocation.pathname,i)||n.currentLocation.pathname,s=D(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=N(o.pathname,s)||null!=N(o.pathname,a)}(h)&&!0===c,b=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,x=f.pathname,S=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(x=x.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&v&&(S=D(S,v)||S);const w="/"!==b&&b.endsWith("/")?b.length-1:b.length;let _,k=x===b||!a&&x.startsWith(b)&&"/"===x.charAt(w),M=null!=S&&(S===b||!a&&S.startsWith(b)&&"/"===S.charAt(b.length)),C={isActive:k,isPending:M,isTransitioning:y},T=k?n:void 0;_="function"===typeof o?o(C):[o,k?"active":null,M?"pending":null,y?"transitioning":null].filter(
2Boolean).join(" ");let A="function"===typeof s?s(C):s;return r.createElement(je,Se({},p,{"aria-current":T,className:_,ref:t,style:A,to:l,viewTransition:c}),"function"===typeof d?d(C):d)});var Ie,De;function Pe(e){let t=r.useContext(q);return t||u(!1),t}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ie||(Ie={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(De||(De={}));function Le(e){return Le="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},Le(e)}function Re(e){var t=function(e,t){if("object"!=Le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Le(t)?t:t+""}function Oe(e,t,n){return(t=Re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach(function(t){Oe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Be=n(58168),Ue=n(98206),He=n(70869),We=n(18280),Ve=n(69369);const Ge=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(Ve.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},qe=(0,We.A)();const Ke=function(){return Ge(arguments.length>0&&void 0!==arguments[0]?arguments[0]:qe)};var Ye=n(70579);const Xe=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const i=Ke(r),o="function"===typeof t?t(n&&i[n]||i):t;return(0,Ye.jsx)(He.A,{styles:o})};var Ze=n(15170),Qe=n(13375);const Je=function(e){return(0,Ye.jsx)(Xe,(0,Be.A)({},e,{defaultTheme:Ze.A,themeId:Qe.A}))},$e=(e,t)=>(0,Be.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),et=e=>(0,Be.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const tt=function(e){const t=(0,Ue.b)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:i=!1}=t;return(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(Je,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(t=>{let[n,i]=t;var o;r[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(o=i.palette)?void 0:o.mode}});let i=(0,Be.A)({html:$e(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,Be.A)({margin:0},et(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return o&&(i=[i,o]),i}(e,i)}),n]})};function nt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var rt=n(98587),it=n(58387),ot=n(98610),at=n(83290),st=n(6803),lt=n(34535),ct=n(92532),ut=n(72372);function dt(e){return(0,ut.Ay)("MuiCircularProgress",e)}(0,ct.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var pt,ht,ft,mt;const gt=["className","color","disableShrink","size","style","thickness","value","variant"];let vt,yt,bt,xt;const St=44,wt=(0,at.i7)(vt||(vt=pt||(pt=nt(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }
2\n"])))),_t=(0,at.i7)(yt||(yt=ht||(ht=nt(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),kt=(0,lt.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,st.A)(n.color))]]}})(e=>{let{ownerState:t,theme:n}=e;return(0,Be.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})},e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,at.AH)(bt||(bt=ft||(ft=nt(["\n animation: "," 1.4s linear infinite;\n "]))),wt)}),Mt=(0,lt.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ct=(0,lt.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,st.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})(e=>{let{ownerState:t,theme:n}=e;return(0,Be.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,at.AH)(xt||(xt=mt||(mt=nt(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),_t)}),Tt=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=n,d=(0,rt.A)(n,gt),p=(0,Be.A)({},n,{color:i,disableShrink:o,size:a,thickness:l,value:c,variant:u}),h=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,"color".concat((0,st.A)(r))],svg:["svg"],circle:["circle","circle".concat((0,st.A)(n)),i&&"circleDisableShrink"]};return(0,ot.A)(o,dt,t)})(p),f={},m={},g={};if("determinate"===u){const e=2*Math.PI*((St-l)/2);f.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),f.strokeDashoffset="".concat(((100-c)/100*e).toFixed(3),"px"),m.transform="rotate(-90deg)"}return(0,Ye.jsx)(kt,(0,Be.A)({className:(0,it.A)(h.root,r),style:(0,Be.A)({width:a,height:a},m,s),ownerState:p,ref:t,role:"progressbar"},g,d,{children:(0,Ye.jsx)(Mt,{className:h.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat(St," ").concat(St),children:(0,Ye.jsx)(Ct,{className:h.circle,style:f,ownerState:p,cx:St,cy:St,r:(St-l)/2,fill:"none",strokeWidth:l})})}))}),At=Tt;function Et(){const e=Ke(Ze.A);return e[Qe.A]||e}const jt=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(n=>{const[r,i]=e[n];t[r]=i}),t};function Nt(e){return Object.keys(e)}function It(e,t){if(!e)throw new Error(t)}function Dt(e,t){return t}const Pt=e=>{const t=e.length;let n=0,r="";for(;n<t;n++){const t=e[n];if(null==t)continue;let i;switch(typeof t){case"boolean":break;case"object":if(Array.isArray(t))i=Pt(t);else{It(!Dt(0,!1)),i="";for(const e in t)t[e]&&e&&(i&&(i+=" "),i+=e)}break;default:i=t}i&&(r&&(r+=" "),r+=i)}return r};var Lt=n(66598),Rt=n(81722);const{createCssAndCx:Ot}={createCssAndCx:function(e){const{cache:t}=e,n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=(0,Lt.J)(n,t.registered);(0,Rt.sk)(t,i,!1);const o="".concat(t.key,"-").concat(i.name);{const e=n[0];(function(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)})(e)&&Ft.saveClassNameCSSObjectMapping(t,o,e)}return o};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];const o=Pt(r),a=Ft.fixClassName(t,o,n);return function(e,t,n){const r=[],i=(0,Rt.Rk)(e,r,n);return r.length<2?n:i+t(r)}(t.registered,n,a)}}}};function zt(e){const{useCache:t}=e;return{useCssAndCx:function(){const e=t(),{css:n,cx:i}=function(e,t){var n;const i=(0,r.useRef)();return(!i.current||t.length!==(null===(n=i.current.prevDeps)||void 0===n?void 0:n.length)||i.current.prevDeps.map((e,n)=>e===t[n]).indexOf(!1)>=0)&&(i.current={v:e(),prevDeps:[...t]}),i.current.v}(()=>Ot({cache:e}),[e]);return{css:n,cx:i}}}}const Ft=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let i=e.get(t);void 0===i&&(i=new Map,e.set(t,i)),i.set(n,r)},fixClassName:(t,n,r)=>{const i=e.get(t);return Pt(function(e){let t=!1;return e.map(e=>{let n,[r,i]=e;if(void 0===i)return r;if(t)n={"&&":i};else{n=r;for(const e in i)if(e.startsWith("@media")){t=!0;break}}return n})}(n.split(" ").map(e=>[e,null===i||void 0===i?void 0:i.get(e)])).map(e=>"string"===typeof e?e:r(e)))}}})();function Bt(e){if(!(e instanceof Object)||"function"===typeof e)return e;const t=[];for(const n in e){const r=e[n],i=typeof r;if("string"!==i&&("number"!==i||isNaN(r))&&"boolean"!==i&&void 0!==r&&null!==r)return e;t.push("".concat(n,":").concat(i,"_").concat(r))}return"xSqLiJdLMd9s"+t.join("|")}function Ut(e,t,n){if(!(t instanceof Object))return e;const r={};return Nt(e).forEach(i=>
2r[i]=n(e[i],t[i])),Nt(t).forEach(n=>{if(n in e)return;const i=t[n];"string"===typeof i&&(r[n]=i)}),r}const Ht=e=>{let{classes:t,theme:n,muiStyleOverridesParams:i,css:o,cx:a,name:s}=e;var l,c;if("makeStyle no name"!==s){if(void 0!==i&&void 0===s)throw new Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}else s=void 0;let u;try{u=void 0===s?void 0:(null===(c=null===(l=n.components)||void 0===l?void 0:l[s])||void 0===c?void 0:c.styleOverrides)||void 0}catch(p){}const d=(0,r.useMemo)(()=>{if(void 0===u)return;const e={};for(const t in u){const r=u[t];r instanceof Object&&(e[t]=o("function"===typeof r?r(Fe({theme:n,ownerState:null===i||void 0===i?void 0:i.ownerState},null===i||void 0===i?void 0:i.props)):r))}return e},[u,Bt(null===i||void 0===i?void 0:i.props),Bt(null===i||void 0===i?void 0:i.ownerState),o]);return t=(0,r.useMemo)(()=>Ut(t,d,a),[t,d,a]),{classes:t}},Wt=Ve._;let Vt=0;function Gt(e){const{useTheme:t,cache:n}=e,{useCache:i}=Kt({cacheProvidedAtInception:n}),{useCssAndCx:o}=zt({useCache:i});return{makeStyles:function(e){const{name:n,uniqId:a="".concat(Vt++)}=null!==e&&void 0!==e?e:{},s="object"!==typeof n?n:Object.keys(n)[0];return function(e){const n="function"===typeof e?e:()=>e;return function(e,l){const c=t();let{css:u,cx:d}=o();const p=i();let h=(0,r.useMemo)(()=>{const t={},r="undefined"!==typeof Proxy&&new Proxy({},{get:(e,n)=>("symbol"===typeof n&&It(!1),t[n]="".concat(p.key,"-").concat(a).concat(void 0!==s?"-".concat(s):"","-").concat(n,"-ref"))}),i=n(c,e,r||{}),o=jt(Nt(i).map(e=>{const n=i[e];return n.label||(n.label="".concat(void 0!==s?"".concat(s,"-"):"").concat(e)),[e,"".concat(u(n)).concat(Dt(0,e in t)?" ".concat(t[e]):"")]}));return Nt(t).forEach(e=>{e in o||(o[e]=t[e])}),o},[p,u,d,c,Bt(e)]);{const e=null===l||void 0===l?void 0:l.props.classes;h=(0,r.useMemo)(()=>Ut(h,e,d),[h,Bt(e),d])}{const e=Ht({classes:h,css:u,cx:d,name:null!==s&&void 0!==s?s:"makeStyle no name",idOfUseStyles:a,muiStyleOverridesParams:l,theme:c});void 0!==e.classes&&(h=e.classes),void 0!==e.css&&(u=e.css),void 0!==e.cx&&(d=e.cx)}return{classes:h,theme:c,css:u,cx:d}}}},useStyles:function(){const e=t(),{css:n,cx:r}=o();return{theme:e,css:n,cx:r}}}}const qt=(0,r.createContext)(void 0);const{createUseCache:Kt}={createUseCache:function(e){const{cacheProvidedAtInception:t}=e;return{useCache:function(){var e;const n=Wt(),i=(0,r.useContext)(qt),o=null!==(e=null!==t&&void 0!==t?t:i)&&void 0!==e?e:n;if(null===o)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join("\n"));return o}}}};function Yt(e,t){if(null==e)return{};var n,r,i=(0,rt.A)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xt(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Zt=["children"],Qt=["className","classes"];const Jt=new WeakMap,$t="getClasses should only be used in conjunction with withStyles";function en(e){const t=e.classes;if(void 0===t)throw new Error($t);const n=Jt.get(t);if(void 0===n)throw new Error($t);return n}function tn(e){const t={},n={};return Object.keys(e).forEach(r=>(r.startsWith("@media")?n:t)[r]=e[r]),Object.keys(n).forEach(e=>{const r=n[e];Object.keys(r).forEach(n=>{var i;return t[n]=Fe(Fe({},null!==(i=t[n])&&void 0!==i?i:{}),{},{[e]:r[n]})})}),t}const nn=(()=>{const e="object"===typeof document&&"function"===typeof(null===document||void 0===document?void 0:document.getElementById),t="undefined"!==typeof jest,n="undefined"!==typeof mocha,r="undefined"!==typeof __vitest_worker__;return!e&&!t&&!n&&!r})(),rn=["classesOverrides"];function on(e){an=0,sn.splice(0,sn.length);const{useContext:t,usePlugin:n,cache:r}=e,{useCache:i}=Kt({cacheProvidedAtInception:r}),{useCssAndCx:o}=zt({useCache:i});return{tss:ln({useContext:t,useCache:i,useCssAndCx:o,usePlugin:null!==n&&void 0!==n?n:e=>{let{classes:t,cx:n,css:r}=e;return{classes:t,cx:n,css:r}},name:void 0,doesUseNestedSelectors:!1})}}let an=0;const sn=[];function ln(e){const{useContext:t,useCache:n,useCssAndCx:r,usePlugin:i,name:o,doesUseNestedSelectors:a}=e;return{withParams:()=>ln(Fe({},e)),withName:t=>ln(Fe(Fe({},e),{},{name:"object"!==typeof t?t:Object.keys(t)[0]})),withNestedSelectors:()=>ln(Fe(Fe({},e),{},{doesUseNestedSelectors:!0})),create:e=>{const s="x".concat(an++);if(void 0!==o)for(;;){const e=sn.find(e=>e.name===o);if(void 0===e)break;sn.splice(sn.indexOf(e),1)}const l="function"===typeof e?e:()=>e;return function(c){var u,d,p;const h=null!==c&&void 0!==c?c:{},{classesOverrides:f}=h,m=Yt(h,rn),g=t(),{css:v,cx:y}=r(),b=n(),x=function(e){const{cache:t,cssObjectByRuleNameOrGetCssObjectByRuleName:n,classesOverridesRef:r,paramsAndPluginParamsRef:i,idOfUseStyles:o,context:a,getClasses:s}=e;e:{const e=cn.get(t);if(void 0===e)break e;const s=e.get(n);if(void 0===s)break e;const l=s.get(r);if(void 0===l)break e;const c=l.get(i);if(void 0===c)break e;const u=c.find(e=>{let{context:t}=e;if(t===a)return!0;
2if(Nt(t).length!==Nt(a).length)return!1;for(const n in t)if(Bt(t[n])!==Bt(a[n]))return!1;return!0});if(void 0!==u){if((null===u||void 0===u?void 0:u.idOfUseStyles)===o)return u.result;c.splice(c.indexOf(u),1)}}const l=s();{cn.has(t)||cn.set(t,new WeakMap);const e=cn.get(t);It(void 0!==e),e.has(n)||e.set(n,new Map);const s=e.get(n);It(void 0!==s),s.has(r)||(s.size>200&&s.clear(),s.set(r,new Map));const c=s.get(r);if(It(void 0!==c),!c.has(i)){{const e="string"===typeof i?257:5;c.size<e||c.clear()}c.set(i,[])}let u=c.get(i);It(void 0!==u),u.length>5&&(u=[]),u.push({idOfUseStyles:o,context:a,result:l})}return l}({cache:b,cssObjectByRuleNameOrGetCssObjectByRuleName:e,classesOverridesRef:Bt(f),paramsAndPluginParamsRef:Bt(m),idOfUseStyles:s,context:g,getClasses:()=>{const e={},t=l(Fe(Fe(Fe({},c),g),a?{classes:"undefined"===typeof Proxy?{}:new Proxy({},{get:(t,n)=>{if("symbol"===typeof n&&It(!1),nn&&void 0===o)throw new Error(["tss-react: In SSR setups, in order to use nested selectors, you must also give a unique name to the useStyle function.",'Solution: Use tss.withName("ComponentName").withNestedSelectors<...>()... to set a name.'].join("\n"));e:{if(void 0===o)break e;let e=sn.find(e=>e.name===o&&e.idOfUseStyles===s);void 0===e&&(e={name:o,idOfUseStyles:s,nestedSelectorRuleNames:new Set},sn.push(e)),e.nestedSelectorRuleNames.add(n)}e:{if(void 0===o)break e;if(void 0!==sn.find(e=>e.name===o&&e.idOfUseStyles!==s&&e.nestedSelectorRuleNames.has(n)))throw new Error(['tss-react: There are in your codebase two different useStyles named "'.concat(o,'" that'),"both use use the nested selector ".concat(n,".\n"),"This may lead to CSS class name collisions, causing nested selectors to target elements outside of the intended scope.\n","Solution: Ensure each useStyles using nested selectors has a unique name.\n",'Use: tss.withName("UniqueName").withNestedSelectors<...>()...'].join(" "))}return e[n]="".concat(b.key,"-").concat(void 0!==o?o:s,"-").concat(n,"-ref")}})}:{}));let n=jt(Nt(t).map(n=>{const r=t[n];return r.label||(r.label="".concat(void 0!==o?"".concat(o,"-"):"").concat(n)),[n,"".concat(v(r)).concat(Dt(0,n in e)?" ".concat(e[n]):"")]}));return Nt(e).forEach(t=>{t in n||(n[t]=e[t])}),n=Ut(n,f,y),n}}),S=i(Fe(Fe({classes:x,css:v,cx:y,idOfUseStyles:s,name:o},g),m));return Fe({classes:null!==(u=S.classes)&&void 0!==u?u:x,css:null!==(d=S.css)&&void 0!==d?d:v,cx:null!==(p=S.cx)&&void 0!==p?p:y},g)}}}}const cn=new WeakMap;const{tss:un}=on({useContext:()=>({})}),{makeStyles:dn,withStyles:pn}=(un.create({}),Fe(Fe({},Gt(hn={useTheme:Et})),function(e){const{useTheme:t,cache:n}=e,{makeStyles:i}=Gt({useTheme:t,cache:n});function o(e,t,n){const o="string"===typeof e?(()=>{const t=e,n=function(e){let{children:n}=e,i=Yt(e,Zt);return(0,r.createElement)(t,i,n)};return Object.defineProperty(n,"name",{value:Xt(t)}),n})():e,a=(()=>{{const{name:e}=null!==n&&void 0!==n?n:{};if(void 0!==e)return"object"!==typeof e?e:Object.keys(e)[0]}let e;{const t=o.displayName;"string"===typeof t&&""!==t&&(e=t)}e:{if(void 0!==e)break e;const t=o.name;"string"===typeof t&&""!==t&&(e=t)}if(void 0!==e)return e=e.replace(/\$/g,"usd"),e=e.replace(/\(/g,"_").replace(/\)/g,"_"),e=e.replace(/[^a-zA-Z0-9-_]/g,"_"),e})(),s=i(Fe(Fe({},n),{},{name:a}))("function"===typeof t?(e,n,r)=>tn(t(e,n,r)):tn(t));function l(e){for(const t in e)if("root"!==t)return!0;return!1}const c=(0,r.forwardRef)(function(t,n){const{className:i,classes:a}=t,c=Yt(t,Qt),{classes:u,cx:d}=s(t,{props:t}),p=d(u.root,i);return Jt.set(u,Fe(Fe({},u),{},{root:p})),r.createElement(o,Fe(Fe({ref:n,className:l(u)?i:p},"string"===typeof e?{}:{classes:u}),c))});return void 0!==a&&(c.displayName="".concat(Xt(a),"WithStyles"),Object.defineProperty(c,"name",{value:c.displayName})),c}return o.getClasses=en,{withStyles:o}}(hn)));var hn;const{tss:fn}=on({useContext:function(){return{theme:Et()}},usePlugin:Ht});fn.create({});var mn=n(67266);const gn=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vn(e){return(0,ut.Ay)("MuiPaper",e)}(0,ct.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const yn=["className","component","elevation","square","variant"],bn=(0,lt.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;
2return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})(e=>{let{theme:t,ownerState:n}=e;var r;return(0,Be.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.divider)},"elevation"===n.variant&&(0,Be.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,mn.X4)("#fff",gn(n.elevation)),", ").concat((0,mn.X4)("#fff",gn(n.elevation)),")")},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))}),xn=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=n,l=(0,rt.A)(n,yn),c=(0,Be.A)({},n,{component:i,elevation:o,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,ot.A)(o,vn,i)})(c);return(0,Ye.jsx)(bn,(0,Be.A)({as:i,ownerState:c,className:(0,it.A)(u.root,r),ref:t},l))});var Sn=n(18698);function wn(e){return(0,ut.Ay)("MuiTypography",e)}(0,ct.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _n=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],kn=(0,lt.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,st.A)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})}),Mn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Cn={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Tn=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTypography"}),r=(e=>Cn[e]||e)(n.color),i=(0,Sn.A)((0,Be.A)({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Mn}=i,h=(0,rt.A)(i,_n),f=(0,Be.A)({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Mn[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&"align".concat((0,st.A)(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,ot.A)(s,wn,a)})(f);return(0,Ye.jsx)(kn,(0,Be.A)({as:m,ref:t,ownerState:f,className:(0,it.A)(g.root,a)},h))});var An={};function En(e){var t=An[e];return t||e}function jn(e){var t=En(e);for(let n=1;n<arguments.length;n++)t=t.replace("{"+(n-1).toString()+"}",arguments[n]);return t}var Nn=n(13030),In=n(61475),Dn=n(95849),Pn=n(93319),Ln=n(87844);function Rn(e,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rn(e,t)}function On(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rn(e,t)}const zn=r.createContext(null);function Fn(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function Bn(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Un(e,t,n){var i=Fn(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,i);
vendor: 1,083 bytes, line 2
2return Object.keys(o).forEach(function(a){var s=o[a];if((0,r.isValidElement)(s)){var l=a in t,c=a in i,u=t[a],d=(0,r.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,r.isValidElement)(u)&&(o[a]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:Bn(s,"exit",e),enter:Bn(s,"enter",e)})):o[a]=(0,r.cloneElement)(s,{in:!1}):o[a]=(0,r.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:Bn(s,"exit",e),enter:Bn(s,"enter",e)})}}),o}var Hn=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Wn=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}On(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,i,o=t.children,a=t.handleExited;
2return{children:t.firstRender?(n=e,i=a,Fn(n.children,function(e){return(0,r.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:Bn(e,"appear",n),enter:Bn(e,"enter",n),exit:Bn(e,"exit",n)})})):Un(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Fn(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,Be.A)({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=(0,rt.A)(e,["component","childFactory"]),o=this.state.contextValue,a=Hn(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?r.createElement(zn.Provider,{value:o},a):r.createElement(zn.Provider,{value:o},r.createElement(t,i,a))},t}(r.Component);Wn.propTypes={},Wn.defaultProps={component:"div",childFactory:function(e){return e}};const Vn=Wn;var Gn=n(99303);const qn=function(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=r.useState(!1),h=(0,it.A)(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),f={width:s,height:s,top:-s/2+a,left:-s/2+o},m=(0,it.A)(n.child,d&&n.childLeaving,i&&n.childPulsate);return l||d||p(!0),r.useEffect(()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}},[c,l,u]),(0,Ye.jsx)("span",{className:h,style:f,children:(0,Ye.jsx)("span",{className:m})})};const Kn=(0,ct.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var Yn,Xn,Zn,Qn;const Jn=["center","classes","className"];let $n,er,tr,nr;const rr=(0,at.i7)($n||($n=Yn||(Yn=nt(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),ir=(0,at.i7)(er||(er=Xn||(Xn=nt(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),or=(0,at.i7)(tr||(tr=Zn||(Zn=nt(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),ar=(0,lt.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sr=(0,lt.Ay)(qn,{name:"MuiTouchRipple",slot:"Ripple"})(nr||(nr=Qn||(Qn=nt(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),Kn.rippleVisible,rr,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},Kn.ripplePulsate,e=>{let{theme:t}=e;return t.transitions.duration.shorter},Kn.child,Kn.childLeaving,ir,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},Kn.childPulsate,or,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),lr=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=n,s=(0,rt.A)(n,Jn),[l,c]=r.useState([]),u=r.useRef(0),d=r.useRef(null);r.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=r.useRef(!1),h=(0,Gn.A)(),f=r.useRef(null),m=r.useRef(null),g=r.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;c(e=>[...e,(0,Ye.jsx)(sr,{classes:{ripple:(0,it.A)(o.ripple,Kn.ripple),rippleVisible:(0,it.A)(o.rippleVisible,Kn.rippleVisible),ripplePulsate:(0,it.A)(o.ripplePulsate,Kn.ripplePulsate),child:(0,it.A)(o.child,Kn.child),childLeaving:(0,it.A)(o.childLeaving,Kn.childLeaving),childPulsate:(0,it.A)(o.childPulsate,Kn.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)]),u.current+=1,d.current=a},[o]),v=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:o=i||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);
2else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},h.start(80,()=>{f.current&&(f.current(),f.current=null)})):g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[i,g,h]),y=r.useCallback(()=>{v({},{pulsate:!0})},[v]),b=r.useCallback((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void h.start(0,()=>{b(e,t)});f.current=null,c(e=>e.length>0?e.slice(1):e),d.current=t},[h]);return r.useImperativeHandle(t,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),(0,Ye.jsx)(ar,(0,Be.A)({className:(0,it.A)(Kn.root,o.root,a),ref:m},s,{children:(0,Ye.jsx)(Vn,{component:null,exit:!0,children:l})}))}),cr=lr;function ur(e){return(0,ut.Ay)("MuiButtonBase",e)}const dr=(0,ct.A)("MuiButtonBase",["root","disabled","focusVisible"]),pr=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],hr=(0,lt.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(dr.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fr=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:_,onMouseUp:k,onTouchEnd:M,onTouchMove:C,onTouchStart:T,tabIndex:A=0,TouchRippleProps:E,touchRippleRef:j,type:N}=n,I=(0,rt.A)(n,pr),D=r.useRef(null),P=r.useRef(null),L=(0,Dn.A)(P,j),{isFocusVisibleRef:R,onFocus:O,onBlur:z,ref:F}=(0,Ln.A)(),[B,U]=r.useState(!1);c&&B&&U(!1),r.useImperativeHandle(i,()=>({focusVisible:()=>{U(!0),D.current.focus()}}),[]);const[H,W]=r.useState(!1);r.useEffect(()=>{W(!0)},[]);const V=H&&!u&&!c;function G(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return(0,Pn.A)(r=>{t&&t(r);return!n&&P.current&&P.current[e](r),!0})}r.useEffect(()=>{B&&p&&!u&&H&&P.current.pulsate()},[u,p,B,H]);const q=G("start",w),K=G("stop",g),Y=G("stop",v),X=G("stop",k),Z=G("stop",e=>{B&&e.preventDefault(),_&&_(e)}
2),Q=G("start",T),J=G("stop",M),$=G("stop",C),ee=G("stop",e=>{z(e),!1===R.current&&U(!1),f&&f(e)},!1),te=(0,Pn.A)(e=>{D.current||(D.current=e.currentTarget),O(e),!0===R.current&&(U(!0),b&&b(e)),y&&y(e)}),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=r.useRef(!1),ie=(0,Pn.A)(e=>{p&&!re.current&&B&&P.current&&" "===e.key&&(re.current=!0,P.current.stop(e,()=>{P.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))}),oe=(0,Pn.A)(e=>{p&&" "===e.key&&P.current&&B&&!e.defaultPrevented&&(re.current=!1,P.current.stop(e,()=>{P.current.pulsate(e)})),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ae=l;"button"===ae&&(I.href||I.to)&&(ae=h);const se={};"button"===ae?(se.type=void 0===N?"button":N,se.disabled=c):(I.href||I.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=(0,Dn.A)(t,F,D);const ce=(0,Be.A)({},n,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:A,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,ot.A)(o,ur,i);return n&&r&&(a.root+=" ".concat(r)),a})(ce);return(0,Ye.jsxs)(hr,(0,Be.A)({as:ae,className:(0,it.A)(ue.root,s),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:q,onMouseLeave:Z,onMouseUp:X,onDragLeave:Y,onTouchEnd:J,onTouchMove:$,onTouchStart:Q,ref:le,tabIndex:c?-1:A,type:N},se,I,{children:[a,V?(0,Ye.jsx)(cr,(0,Be.A)({ref:L,center:o},E)):null]}))});function mr(e){return(0,ut.Ay)("MuiButton",e)}const gr=(0,ct.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const vr=r.createContext({});const yr=r.createContext(void 0),br=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xr=e=>(0,Be.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Sr=(0,lt.Ay)(fr,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,st.A)(n.color))],t["size".concat((0,st.A)(n.size))],t["".concat(n.variant,"Size").concat((0,st.A)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(e=>{let{theme:t,ownerState:n}=e;var r,i;const o="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],a="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,Be.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,Be.A)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,mn.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainCh
2annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,mn.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:"1px solid ".concat((t.vars||t).palette[n.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,mn.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,Be.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(gr.focusVisible)]:(0,Be.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(gr.disabled)]:(0,Be.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):"1px solid ".concat((0,mn.X4)(t.palette[n.color].main,.5))},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:o,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})},e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(gr.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(gr.disabled)]:{boxShadow:"none"}}}),wr=(0,lt.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize".concat((0,st.A)(n.size))]]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},xr(t))}),_r=(0,lt.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize".concat((0,st.A)(n.size))]]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},xr(t))}),kr=r.forwardRef(function(e,t){const n=r.useContext(vr),i=r.useContext(yr),o=(0,Nn.A)(n,e),a=(0,Ue.b)({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:f,focusVisibleClassName:m,fullWidth:g=!1,size:v="medium",startIcon:y,type:b,variant:x="text"}=a,S=(0,rt.A)(a,br),w=(0,Be.A)({},a,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:g,size:v,type:b,variant:x}),_=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,"".concat(o).concat((0,st.A)(t)),"size".concat((0,st.A)(i)),"".concat(o,"Size").concat((0,st.A)(i)),"color".concat((0,st.A)(t)),n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,st.A)(i))],endIcon:["icon","endIcon","iconSize".concat((0,st.A)(i))]},l=(0,ot.A)(s,mr,a);return(0,Be.A)({},a,l)})(w),k=y&&(0,Ye.jsx)(wr,{className:_.startIcon,ownerState:w,children:y}),M=f&&(0,Ye.jsx)(_r,{className:_.endIcon,ownerState:w,children:f}),C=i||"";return(0,Ye.jsxs)(Sr,(0,Be.A)({ownerState:w,className:(0,it.A)(n.className,_.root,u,C),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:(0,it.A)(_.focusVisible,m),ref:t,type:b},S,{classes:_,children:[k,s,M]}))});const Mr=pn(function(e){const{classes:t}=e;return(0,Ye.jsx)("main",{className:t.layout,children:(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(xn,{className:t.root,elevation:1,children:[(0,Ye.jsx)(Tn,{align:"center",variant:"h5",component:"h3",children:En("404")}),(0,Ye.jsx)(Tn,{align:"center",component:"p",children:En("notFoundDesc")}),(0,Ye.jsx)("div",{className:t.center,children:(0,Ye.jsx)(kr,{color:"primary",variant:"contained",component:je,to:"/",children:En("home")})})]})})})},e=>({layout:{width:"auto",display:"block",marginLeft:e.spacing(3),marginRight:e.spacing(3),marginTop:e.spacing(3),[e.breakpoints.up(400+e.spacing(6))]:{width:400,marginLeft:"auto",marginRight:"auto"}},root:{paddingTop:e.spacing(2),paddingBottom:e.spacing(2)},center:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:e.spacing(1)}}));function Cr(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Tr(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Cr(e.value)&&""!==e.value||t&&Cr(e.defaultValue)&&""!==e.defaultValue)}var Ar=n(27328);const Er=r.createContext(void 0);function jr(e){return(0,ut.Ay)("MuiFormControl",e)}(0,ct.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Nr=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ir=(0,lt.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,Be.A)({},t.root,t["margin".concat((0,st.A)(n.margin))],n.fullWidth&&t.fullWidth)}})(e=>{let{ownerState:t}=e;return(0,Be.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})}),Dr=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:f=!1,size:m="medium",variant:g="outlined"}=n,v=(0,rt.A)(n,Nr),y=(0,Be.A)({},n,{color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:h,required:f,size:m,variant:g}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&"margin".concat((0,st.A)(n)),r&&"fullWidth"]};return(0,ot.A)(i,jr,t)})(y),[x,S]=r.useState(()=>{let e=!1;
2return i&&r.Children.forEach(i,t=>{if(!(0,Ar.A)(t,["Input","Select"]))return;const n=(0,Ar.A)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[w,_]=r.useState(()=>{let e=!1;return i&&r.Children.forEach(i,t=>{(0,Ar.A)(t,["Input","Select"])&&(Tr(t.props,!0)||Tr(t.props.inputProps,!0))&&(e=!0)}),e}),[k,M]=r.useState(!1);l&&k&&M(!1);const C=void 0===u||l?k:u;let T;const A=r.useMemo(()=>({adornedStart:x,setAdornedStart:S,color:a,disabled:l,error:c,filled:w,focused:C,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{M(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{M(!0)},registerEffect:T,required:f,variant:g}),[x,a,l,c,w,C,d,p,T,f,m,g]);return(0,Ye.jsx)(Er.Provider,{value:A,children:(0,Ye.jsx)(Ir,(0,Be.A)({as:s,ownerState:y,className:(0,it.A)(b.root,o),ref:t},v,{children:i}))})}),Pr=Dr;function Lr(){return r.useContext(Er)}var Rr=n(19172),Or=n(13174),zr=n(58812);const Fr=["ownerState"],Br=["variants"],Ur=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Hr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Wr=(0,We.A)(),Vr=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Gr(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function qr(e){return e?(t,n)=>n[e]:null}function Kr(e,t){let{ownerState:n}=t,r=(0,rt.A)(t,Fr);const i="function"===typeof e?e((0,Be.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(e=>Kr(e,(0,Be.A)({ownerState:n},r)));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,rt.A)(i,Br);return e.forEach(e=>{let i=!0;"function"===typeof e.props?i=e.props((0,Be.A)({ownerState:n},r,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,Be.A)({ownerState:n},r,n)):e.style))}),t}return i}const Yr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=Wr,rootShouldForwardProp:r=Hr,slotShouldForwardProp:i=Hr}=e,o=e=>(0,zr.A)((0,Be.A)({},e,{theme:Gr((0,Be.A)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Or.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=qr(Vr(l))}=a,p=(0,rt.A)(a,Ur),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let m=Hr;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Or.default)(e,(0,Be.A)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"===typeof e&&e.__emotion_real!==e||(0,Rr.Q)(e)?r=>Kr(e,(0,Be.A)({},r,{theme:Gr({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=function(r){let i=v(r);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];const u=l?l.map(v):[];s&&d&&u.push(e=>{const r=Gr((0,Be.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach(t=>{let[n,i]=t;o[n]=Kr(i,(0,Be.A)({},e,{theme:r}))}),d(e,o)}),s&&!h&&u.push(e=>{var r;const i=Gr((0,Be.A)({},e,{defaultTheme:n,themeId:t}));return Kr({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,Be.A)({},e,{theme:i}))}),f||u.push(o);const p=u.length-l.length;if(Array.isArray(r)&&p>0){const e=new Array(p).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const m=g(i,...u);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(y.withConfig=g.withConfig),y}}(),Xr=Yr;function Zr(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,o=Ke(r);i&&(o=o[i]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,Nn.A)(t.components[n].defaultProps,r):r}({theme:o,name:n,props:t});return a}var Qr=n(89751),Jr=n(28604);const $r=["component","direction","spacing","divider","children","className","useFlexGap"],ei=(0,We.A)(),ti=Xr("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ni(e){return Zr({props:e,name:"MuiStack",defaultTheme:ei})}
2function ri(e,t){const n=r.Children.toArray(e).filter(Boolean);return n.reduce((e,i,o)=>(e.push(i),o<n.length-1&&e.push(r.cloneElement(t,{key:"separator-".concat(o)})),e),[])}const ii=e=>{let{ownerState:t,theme:n}=e,r=(0,Be.A)({display:"flex",flexDirection:"column"},(0,Qr.NI)({theme:n},(0,Qr.kW)({values:t.direction,breakpoints:n.breakpoints.values}),e=>({flexDirection:e})));if(t.spacing){const e=(0,Jr.LX)(n),i=Object.keys(n.breakpoints.values).reduce((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e),{}),o=(0,Qr.kW)({values:t.direction,base:i}),a=(0,Qr.kW)({values:t.spacing,base:i});"object"===typeof o&&Object.keys(o).forEach((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}});const s=(n,r)=>{return t.useFlexGap?{gap:(0,Jr._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((i=r?o[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]))]:(0,Jr._W)(e,n)}};var i};r=(0,Rr.A)(r,(0,Qr.NI)({theme:n},a,s))}return r=(0,Qr.iZ)(n.breakpoints,r),r};const oi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=ti,useThemeProps:n=ni,componentName:i="MuiStack"}=e,o=t(ii),a=r.forwardRef(function(e,t){const r=n(e),a=(0,Sn.A)(r),{component:s="div",direction:l="column",spacing:c=0,divider:u,children:d,className:p,useFlexGap:h=!1}=a,f=(0,rt.A)(a,$r),m={direction:l,spacing:c,useFlexGap:h},g=(0,ot.A)({root:["root"]},e=>(0,ut.Ay)(i,e),{});return(0,Ye.jsx)(o,(0,Be.A)({as:s,ownerState:m,ref:t,className:(0,it.A)(g.root,p)},f,{children:u?ri(d,u):d}))});return a}({createStyledComponent:(0,lt.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Ue.b)({props:e,name:"MuiStack"})}),ai=oi;function si(e){return(0,ut.Ay)("MuiFormControlLabel",e)}const li=(0,ct.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function ci(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e),{})}const ui=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],di=(0,lt.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(li.label)]:t.label},t.root,t["labelPlacement".concat((0,st.A)(n.labelPlacement))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(li.disabled)]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(li.label)]:{["&.".concat(li.disabled)]:{color:(t.vars||t).palette.text.disabled}}})}),pi=(0,lt.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(e=>{let{theme:t}=e;return{["&.".concat(li.error)]:{color:(t.vars||t).palette.error.main}}}),hi=r.forwardRef(function(e,t){var n,i;const o=(0,Ue.b)({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:h,slotProps:f={}}=o,m=(0,rt.A)(o,ui),g=Lr(),v=null!=(n=null!=c?c:l.props.disabled)?n:null==g?void 0:g.disabled,y=null!=h?h:l.props.required,b={disabled:v,required:y};["checked","name","onChange","value","inputRef"].forEach(e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof o[e]&&(b[e]=o[e])});const x=ci({props:o,muiFormControl:g,states:["error"]}),S=(0,Be.A)({},o,{disabled:v,labelPlacement:p,required:y,error:x.error}),w=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled","labelPlacement".concat((0,st.A)(r)),i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,ot.A)(a,si,t)})(S),_=null!=(i=f.typography)?i:s.typography;let k=d;return null==k||k.type===Tn||u||(k=(0,Ye.jsx)(Tn,(0,Be.A)({component:"span"},_,{className:(0,it.A)(w.label,null==_?void 0:_.className),children:k}))),(0,Ye.jsxs)(di,(0,Be.A)({className:(0,it.A)(w.root,a),ownerState:S,ref:t},m,{children:[r.cloneElement(l,b),y?(0,Ye.jsxs)(ai,{display:"block",children:[k,(0,Ye.jsxs)(pi,{ownerState:S,"aria-hidden":!0,
2className:w.asterisk,children:["\u2009","*"]})]}):k]}))}),fi=hi;var mi=n(54516);function gi(e){return(0,ut.Ay)("PrivateSwitchBase",e)}(0,ct.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vi=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],yi=(0,lt.Ay)(fr)(e=>{let{ownerState:t}=e;return(0,Be.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})}),bi=(0,lt.Ay)("input",{shouldForwardProp:In.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),xi=r.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:h,name:f,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:x,type:S,value:w}=e,_=(0,rt.A)(e,vi),[k,M]=(0,mi.A)({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),C=Lr();let T=s;C&&"undefined"===typeof T&&(T=C.disabled);const A="checkbox"===S||"radio"===S,E=(0,Be.A)({},e,{checked:k,disabled:T,disableFocusRipple:l,edge:c}),j=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&"edge".concat((0,st.A)(i))],input:["input"]};return(0,ot.A)(o,gi,t)})(E);return(0,Ye.jsxs)(yi,(0,Be.A)({component:"span",className:(0,it.A)(j.root,o),centerRipple:!0,focusRipple:!l,disabled:T,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),C&&C.onFocus&&C.onFocus(e)},onBlur:e=>{m&&m(e),C&&C.onBlur&&C.onBlur(e)},ownerState:E,ref:t},_,{children:[(0,Ye.jsx)(bi,(0,Be.A)({autoFocus:n,checked:r,defaultChecked:a,className:j.input,disabled:T,id:A?d:void 0,name:f,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;M(t),g&&g(e,t)},readOnly:y,ref:h,required:b,ownerState:E,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),k?i:u]}))}),Si=xi;var wi=n(59662);const _i=(0,wi.A)((0,Ye.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ki=(0,wi.A)((0,Ye.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Mi=(0,wi.A)((0,Ye.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Ci(e){return(0,ut.Ay)("MuiCheckbox",e)}const Ti=(0,ct.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ai=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ei=(0,lt.Ay)(Si,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size".concat((0,st.A)(n.size))],"default"!==n.color&&t["color".concat((0,st.A)(n.color))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,mn.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(Ti.checked,", &.").concat(Ti.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(Ti.disabled)]:{color:(t.vars||t).palette.action.disabled}})}),ji=(0,Ye.jsx)(ki,{}),Ni=(0,Ye.jsx)(_i,{}),Ii=(0,Ye.jsx)(Mi,{}),Di=r.forwardRef(function(e,t){var n,i;const o=(0,Ue.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=ji,color:s="primary",icon:l=Ni,indeterminate:c=!1,indeterminateIcon:u=Ii,inputProps:d,size:p="medium",className:h}=o,f=(0,rt.A)(o,Ai),m=c?u:l,g=c?u:a,v=(0,Be.A)({},o,{color:s,indeterminate:c,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate","color".concat((0,st.A)(r)),"size".concat((0,st.A)(i))]},a=(0,ot.A)(o,Ci,t);return(0,Be.A)({},t,a)})(v);return(0,Ye.jsx)(Ei,(0,Be.A)({type:"checkbox",inputProps:(0,Be.A)({"data-indeterminate":c},d),icon:r.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:r.cloneElement(g,{fontSize:null!=(i=g.props.fontSize)?i:p}),ownerState:v,ref:t,className:(0,it.A)(y.root,h)},f,{classes:y}))});var Pi=n(17868);const Li=function(e){return"string"===typeof e};var Ri=n(63462),Oi=n(63940),zi=n(31782),Fi=n(84440),Bi=n(83468);
2const Ui=["onChange","maxRows","minRows","style","value"];function Hi(e){return parseInt(e,10)||0}const Wi={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Vi(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Gi=r.forwardRef(function(e,t){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:s}=e,l=(0,rt.A)(e,Ui),{current:c}=r.useRef(null!=s),u=r.useRef(null),d=(0,Ri.A)(t,u),p=r.useRef(null),h=r.useRef(null),f=r.useCallback(()=>{const t=u.current,n=h.current;if(!t||!n)return;const r=(0,Oi.A)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,s=Hi(r.paddingBottom)+Hi(r.paddingTop),l=Hi(r.borderBottomWidth)+Hi(r.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),i&&(p=Math.min(Number(i)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-c)<=1}},[i,o,e.placeholder]),m=(0,zi.A)(()=>{const e=u.current,t=f();if(!e||!t||Vi(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=r.useCallback(()=>{const e=u.current,t=f();if(!e||!t||Vi(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height="".concat(n,"px")),e.style.overflow=t.overflowing?"hidden":""},[f]),v=r.useRef(-1);(0,Fi.A)(()=>{const e=(0,Bi.A)(g),t=null==u?void 0:u.current;if(!t)return;const n=(0,Oi.A)(t);let r;return n.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[f,g,m]),(0,Fi.A)(()=>{g()});return(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("textarea",(0,Be.A)({value:s,onChange:e=>{c||g(),n&&n(e)},ref:d,rows:o,style:a},l)),(0,Ye.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,Be.A)({},Wi,a,{paddingTop:0,paddingBottom:0})})]})}),qi=Gi;var Ki=n(55013);function Yi(e){return(0,ut.Ay)("MuiInputBase",e)}const Xi=(0,ct.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Zi=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Qi=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,st.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ji=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},$i=(0,lt.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qi})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(Xi.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,Be.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})}),eo=(0,lt.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ji})(e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,i=(0,Be.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),o={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,Be.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(Xi.formControl," &")]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},["&.".concat(Xi.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})}),to=(0,Ye.jsx)(Je,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),no=r.forwardRef(function(e,t){var n;const i=(0,Ue.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:f,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:_,onBlur:k,onChange:M,onClick:C,onFocus:T,onKeyDown:A,onKeyUp:E,placeholder:j,readOnly:N,renderSuffix:I,rows:D,slotProps:P={},slots:L={},startAdornment:R,type:O="text",value:z}=i,F=(0,rt.A)(i,Zi),B=null!=y.value?y.value:z,{current:U}=r.useRef(null!=B),H=r.useRef(),W=r.useCallback(e=>{0},[]),V=(0,Dn.A)(H,b,y.ref,W),[G,q]=r.useState(!1),K=Lr();const Y=ci({props:i,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=K?K.focused:G,r.useEffect(()=>{!K&&p&&G&&(q(!1),k&&k())},[K,p,G,k]);const X=K&&K.onFilled,Z=K&&K.onEmpty,Q=r.useCallback(e=>{Tr(e)?X&&X():Z&&Z()},[X,Z]);(0,Ki.A)(()=>{U&&Q({value:B})},[B,Q,U]);r.useEffect(()=>{Q(H.current)},[]);let J=v,$=y;w&&"input"===J&&($=D?(0,Be.A)({type:void 0,minRows:D,maxRows:D},$):(0,Be.A)({type:void 0,maxRows:x,minRows:S},$),J=qi);r.useEffect(()=>{K&&K.setAdornedStart(Boolean(R))},[K,R]);const ee=(0,Be.A)({},i,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:K,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:R,type:O}),te=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:h,type:f}=e,m={root:["root","color".concat((0,st.A)(n)),r&&"disabled",i&&"error",l&&"fullWidth",a&&"focu
2sed",s&&"formControl",p&&"medium"!==p&&"size".concat((0,st.A)(p)),u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,ot.A)(m,Yi,t)})(ee),ne=L.root||c.Root||$i,re=P.root||u.root||{},ie=L.input||c.Input||eo;return $=(0,Be.A)({},$,null!=(n=P.input)?n:u.input),(0,Ye.jsxs)(r.Fragment,{children:[!h&&to,(0,Ye.jsxs)(ne,(0,Be.A)({},re,!Li(ne)&&{ownerState:(0,Be.A)({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),C&&C(e)}},F,{className:(0,it.A)(te.root,re.className,l,N&&"MuiInputBase-readOnly"),children:[R,(0,Ye.jsx)(Er.Provider,{value:null,children:(0,Ye.jsx)(ie,(0,Be.A)({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:_,placeholder:j,readOnly:N,required:Y.required,rows:D,value:B,onKeyDown:A,onKeyUp:E,type:O},$,!Li(ie)&&{as:J,ownerState:(0,Be.A)({},ee,$.ownerState)},{ref:V,className:(0,it.A)(te.input,$.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),y.onBlur&&y.onBlur(e),K&&K.onBlur?K.onBlur(e):q(!1)},onChange:function(e){if(!U){const t=e.target||H.current;if(null==t)throw new Error((0,Pi.A)(1));Q({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];y.onChange&&y.onChange(e,...n),M&&M(e,...n)},onFocus:e=>{Y.disabled?e.stopPropagation():(T&&T(e),y.onFocus&&y.onFocus(e),K&&K.onFocus?K.onFocus(e):q(!0))}}))}),f,I?I((0,Be.A)({},Y,{startAdornment:R})):null]}))]})}),ro=no;function io(e){return(0,ut.Ay)("MuiInput",e)}const oo=(0,Be.A)({},Xi,(0,ct.A)("MuiInput",["root","underline","input"])),ao=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],so=(0,lt.Ay)($i,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qi(e,t),!n.disableUnderline&&t.underline]}})(e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,Be.A)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(oo.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(oo.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(oo.disabled,", .").concat(oo.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},["&.".concat(oo.disabled,":before")]:{borderBottomStyle:"dotted"}})}),lo=(0,lt.Ay)(eo,{name:"MuiInput",slot:"Input",overridesResolver:Ji})({}),co=r.forwardRef(function(e,t){var n,r,i,o;const a=(0,Ue.b)({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:f={},type:m="text"}=a,g=(0,rt.A)(a,ao),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,ot.A)(r,io,t);return(0,Be.A)({},t,i)})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=h?h:c)?(0,Rr.A)(null!=h?h:c,y):y,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:so,S=null!=(i=null!=(o=f.input)?o:l.Input)?i:lo;
2return(0,Ye.jsx)(ro,(0,Be.A)({slots:{root:x,input:S},slotProps:b,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});co.muiName="Input";const uo=co;function po(e){return(0,ut.Ay)("MuiFormLabel",e)}const ho=(0,ct.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),fo=["children","className","color","component","disabled","error","filled","focused","required"],mo=(0,lt.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,Be.A)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(ho.focused)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(ho.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(ho.error)]:{color:(t.vars||t).palette.error.main}})}),go=(0,lt.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(e=>{let{theme:t}=e;return{["&.".concat(ho.error)]:{color:(t.vars||t).palette.error.main}}}),vo=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiFormLabel"}),{children:r,className:i,component:o="label"}=n,a=(0,rt.A)(n,fo),s=ci({props:n,muiFormControl:Lr(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Be.A)({},n,{color:s.color||"primary",component:o,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root","color".concat((0,st.A)(n)),i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return(0,ot.A)(l,po,t)})(l);return(0,Ye.jsxs)(mo,(0,Be.A)({as:o,ownerState:l,className:(0,it.A)(c.root,i),ref:t},a,{children:[r,s.required&&(0,Ye.jsxs)(go,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))}),yo=vo;function bo(e){return(0,ut.Ay)("MuiInputLabel",e)}(0,ct.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const xo=["disableAnimation","margin","shrink","variant","className"],So=(0,lt.Ay)(yo,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(ho.asterisk)]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focu
2sed,t[n.variant]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,Be.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,Be.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,Be.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))}),wo=r.forwardRef(function(e,t){const n=(0,Ue.b)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:i,className:o}=n,a=(0,rt.A)(n,xo),s=Lr();let l=i;"undefined"===typeof l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=ci({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),u=(0,Be.A)({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&"normal"!==r&&"size".concat((0,st.A)(r)),a],asterisk:[s&&"asterisk"]},c=(0,ot.A)(l,bo,t);return(0,Be.A)({},t,c)})(u);return(0,Ye.jsx)(So,(0,Be.A)({"data-shrink":l,ownerState:u,ref:t,className:(0,it.A)(d.root,o)},a,{classes:d}))});var _o=n(50147),ko=n(5844);const Mo=function(e,t,n){return void 0===e||Li(e)?t:(0,Be.A)({},t,{ownerState:(0,Be.A)({},t.ownerState,n)})};const Co=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n};const To=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])).forEach(n=>{t[n]=e[n]}),t};const Ao=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=(0,it.A)(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=(0,Be.A)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=(0,Be.A)({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Co((0,Be.A)({},i,r)),s=To(r),l=To(i),c=t(a),u=(0,it.A)(null==c?void 0:c.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=(0,Be.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),p=(0,Be.A)({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}};const Eo=function(e,t,n){return"function"===typeof e?e(t,n):e},jo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];const No=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=(0,rt.A)(e,jo),s=o?{}:Eo(r,i),{props:l,internalRef:c}=Ao((0,Be.A)({},a,{externalSlotProps:s})),u=(0,Ri.A)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return Mo(n,(0,Be.A)({},l,{ref:u}),i)};function Io(e){var t;return parseInt(r.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}var Do=n(31668);const Po=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Lo(e){const t=[],n=[];
2return Array.from(e.querySelectorAll(Po)).forEach((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Ro(){return!0}const Oo=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:a=Lo,isEnabled:s=Ro,open:l}=e,c=r.useRef(!1),u=r.useRef(null),d=r.useRef(null),p=r.useRef(null),h=r.useRef(null),f=r.useRef(!1),m=r.useRef(null),g=(0,Ri.A)(Io(t),m),v=r.useRef(null);r.useEffect(()=>{l&&m.current&&(f.current=!n)},[n,l]),r.useEffect(()=>{if(!l||!m.current)return;const e=(0,Do.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),r.useEffect(()=>{if(!l||!m.current)return;const e=(0,Do.A)(m.current),t=t=>{v.current=t,!i&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(i&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var r,o;const e=Boolean((null==(r=v.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=v.current)?void 0:o.key)),t=n[0],i=n[n.length-1];"string"!==typeof t&&"string"!==typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,i,o,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Ye.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})};var zo=n(26564);const Fo=r.forwardRef(function(e,t){const{children:n,container:i,disablePortal:o=!1}=e,[s,l]=r.useState(null),c=(0,Ri.A)(r.isValidElement(n)?Io(n):null,t);if((0,Fi.A)(()=>{o||l(function(e){return"function"===typeof e?e():e}(i)||document.body)},[i,o]),(0,Fi.A)(()=>{if(s&&!o)return(0,zo.A)(t,s),()=>{(0,zo.A)(t,null)}},[t,s,o]),o){if(r.isValidElement(n)){const e={ref:c};return r.cloneElement(n,e)}return(0,Ye.jsx)(r.Fragment,{children:n})}return(0,Ye.jsx)(r.Fragment,{children:s?a.createPortal(n,s):s})}),Bo=!1;var Uo="unmounted",Ho="exited",Wo="entering",Vo="entered",Go="exiting",qo=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Ho,r.appearStatus=Wo):i=Vo:i=t.unmountOnExit||t.mountOnEnter?Uo:Ho,r.state={status:i},r.nextCallback=null,r}On(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Uo?{status:Ho}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Wo&&n!==Vo&&(t=Wo):n!==Wo&&n!==Vo||(t=Go)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,a
2ppear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Wo){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ho&&this.setState({status:Uo})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],o=i[0],s=i[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||Bo?this.safeSetState({status:Vo},function(){t.props.onEntered(o)}):(this.props.onEnter(o,s),this.safeSetState({status:Wo},function(){t.props.onEntering(o,s),t.onTransitionEnd(c,function(){t.safeSetState({status:Vo},function(){t.props.onEntered(o,s)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!Bo?(this.props.onExit(r),this.safeSetState({status:Go},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Ho},function(){e.props.onExited(r)})})})):this.safeSetState({status:Ho},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Uo)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,rt.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(zn.Provider,{value:null},"function"===typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function Ko(){}qo.contextType=zn,qo.propTypes={},qo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ko,onEntering:Ko,onEntered:Ko,onExit:Ko,onExiting:Ko,onExited:Ko},qo.UNMOUNTED=Uo,qo.EXITED=Ho,qo.ENTERING=Wo,qo.ENTERED=Vo,qo.EXITING=Go;const Yo=qo,Xo=e=>e.scrollTop;function Zo(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:a.transitionDelay}}const Qo=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Jo={entering:{opacity:1},entered:{opacity:1}},$o=r.forwardRef(function(e,t){const n=Et(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:h,onExited:f,onExiting:m,style:g,timeout:v=i,TransitionComponent:y=Yo}=e,b=(0,rt.A)(e,Qo),x=r.useRef(null),S=(0,Dn.A)(x,Io(s),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},_=w(p),k=w((e,t)=>{Xo(e);const r=Zo({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),M=w(d),C=w(m),T=w(e=>{const t=Zo({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)}),A=w(f);return(0,Ye.jsx)(y,(0,Be.A)({appear:a,in:c,nodeRef:x,onEnter:k,onEntered:M,onEntering:_,onExit:T,onExited:A,onExiting:C,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>r.cloneElement(s,(0,Be.A)({style:(0,Be.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Jo[e],g,s.props.style),ref:S},t))}))}),ea=$o;function ta(e){return(0,ut.Ay)("MuiBackdrop",e)}(0,ct.A)("MuiBackdrop",["root","invisible"]);const na=["children","className","component","components","componentsProps","invisible","open","slotProps","
2slots","TransitionComponent","transitionDuration"],ra=(0,lt.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})}),ia=r.forwardRef(function(e,t){var n,r,i;const o=(0,Ue.b)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=ea,transitionDuration:g}=o,v=(0,rt.A)(o,na),y=(0,Be.A)({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,ot.A)(r,ta,t)})(y),x=null!=(n=h.root)?n:u.root;return(0,Ye.jsx)(m,(0,Be.A)({in:p,timeout:g},v,{children:(0,Ye.jsx)(ra,(0,Be.A)({"aria-hidden":!0},x,{as:null!=(r=null!=(i=f.root)?i:c.Root)?r:l,className:(0,it.A)(b.root,s,null==x?void 0:x.className),ownerState:(0,Be.A)({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))});var oa=n(42456);function aa(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function sa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function la(e){return parseInt((0,Oi.A)(e).getComputedStyle(e).paddingRight,10)||0}function ca(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&sa(e,i)})}function ua(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function da(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Do.A)(e);return t.body===e?(0,Oi.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=aa((0,Do.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(la(r)+e,"px");const t=(0,Do.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(la(t)+e,"px")})}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Do.A)(r).body;else{const t=r.parentElement,n=(0,Oi.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)})}}const pa=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&sa(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);ca(t,e.mount,e.modalRef,r,!0);const i=ua(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ua(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=da(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=ua(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&sa(e.modalRef,t),ca(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&sa(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const ha=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:o=pa,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,h=r.useRef({}),f=r.useRef(null),m=r.useRef(null),g=(0,Ri.A)(m,p),[v,y]=r.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(h.current.modalRef=m.current,h.current.mount=f.current,h.current),w=()=>{o.mount(S(),{disableScrollLock:i}),m.current&&(m.current.scrollTop=0)},_=(0,zi.A)(()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,Do.A)(f.current).body;o.add(S(),e),m.current&&w()}),k=r.useCallback(()=>o.isTopModal(S()),[o]),M=(0,zi.A)(e=>{f.current=e,e&&(d&&k()?w():m.current&&sa(m.current,x))}),C=r.useCallback(()=>{o.remove(S(),x)},[x,o]);r.useEffect(()=>()=>{C()},[C]),r.useEffect(()=>
2{d?_():b&&a||C()},[d,C,b,a,_]);const T=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Co(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,Be.A)({},n,t);return(0,Be.A)({role:"presentation"},r,{onKeyDown:T(r),ref:g})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Be.A)({"aria-hidden":!0},e,{onClick:A(e),open:d})},getTransitionProps:()=>({onEnter:(0,oa.A)(()=>{y(!1),s&&s()},null==c?void 0:c.props.onEnter),onExited:(0,oa.A)(()=>{y(!0),l&&l(),a&&C()},null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:M,isTopModal:k,exited:v,hasTransition:b}};function fa(e){return(0,ut.Ay)("MuiModal",e)}(0,ct.A)("MuiModal",["root","hidden","backdrop"]);const ma=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ga=(0,lt.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})}),va=(0,lt.Ay)(ia,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ya=r.forwardRef(function(e,t){var n,i,o,a,s,l;const c=(0,Ue.b)({name:"MuiModal",props:e}),{BackdropComponent:u=va,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:f,container:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:_=!1,disableScrollLock:k=!1,hideBackdrop:M=!1,keepMounted:C=!1,onBackdropClick:T,open:A,slotProps:E,slots:j}=c,N=(0,rt.A)(c,ma),I=(0,Be.A)({},c,{closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:_,disableScrollLock:k,hideBackdrop:M,keepMounted:C}),{getRootProps:D,getBackdropProps:P,getTransitionProps:L,portalRef:R,isTopModal:O,exited:z,hasTransition:F}=ha((0,Be.A)({},I,{rootRef:t})),B=(0,Be.A)({},I,{exited:z}),U=(e=>{const{open:t,exited:n,classes:r}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,ot.A)(i,fa,r)})(B),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),F){const{onEnter:e,onExited:t}=L();H.onEnter=e,H.onExited=t}const W=null!=(n=null!=(i=null==j?void 0:j.root)?i:v.Root)?n:ga,V=null!=(o=null!=(a=null==j?void 0:j.backdrop)?a:v.Backdrop)?o:u,G=null!=(s=null==E?void 0:E.root)?s:y.root,q=null!=(l=null==E?void 0:E.backdrop)?l:y.backdrop,K=No({elementType:W,externalSlotProps:G,externalForwardedProps:N,getSlotProps:D,additionalProps:{ref:t,as:g},ownerState:B,className:(0,it.A)(p,null==G?void 0:G.className,null==U?void 0:U.root,!B.open&&B.exited&&(null==U?void 0:U.hidden))}),Y=No({elementType:V,externalSlotProps:q,additionalProps:d,getSlotProps:e=>P((0,Be.A)({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,it.A)(null==q?void 0:q.className,null==d?void 0:d.className,null==U?void 0:U.backdrop),ownerState:B});return C||A||F&&!z?(0,Ye.jsx)(Fo,{ref:R,container:m,disablePortal:w,children:(0,Ye.jsxs)(W,(0,Be.A)({},K,{children:[!M&&u?(0,Ye.jsx)(V,(0,Be.A)({},Y)):null,(0,Ye.jsx)(Oo,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:_,isEnabled:O,open:A,children:r.cloneElement(f,H)})]}))}):null}),ba=ya;function xa(e){return(0,ut.Ay)("MuiDialog",e)}const Sa=(0,ct.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const wa=r.createContext({}),_a=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","Pa
2perProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ka=(0,lt.Ay)(ia,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ma=(0,lt.Ay)(ba,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Ca=(0,lt.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll".concat((0,st.A)(n.scroll))]]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})}),Ta=(0,lt.Ay)(xn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper".concat((0,st.A)(n.scroll))],t["paperWidth".concat((0,st.A)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(Sa.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit),["&.".concat(Sa.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(Sa.paperScrollBody)]:{margin:0,maxWidth:"100%"}})}),Aa=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiDialog"}),i=Et(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:g,onClick:v,onClose:y,open:b,PaperComponent:x=xn,PaperProps:S={},scroll:w="paper",TransitionComponent:_=ea,transitionDuration:k=o,TransitionProps:M}=n,C=(0,rt.A)(n,_a),T=(0,Be.A)({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:f,maxWidth:m,scroll:w}),A=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container","scroll".concat((0,st.A)(n))],paper:["paper","paperScroll".concat((0,st.A)(n)),"paperWidth".concat((0,st.A)(String(r))),i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,ot.A)(a,xa,t)})(T),E=r.useRef(),j=(0,ko.A)(s),N=r.useMemo(()=>({titleId:j}),[j]);return(0,Ye.jsx)(Ma,(0,Be.A)({className:(0,it.A)(A.root,d),closeAfterTransition:!0,components:{Backdrop:ka},componentsProps:{backdrop:(0,Be.A)({transitionDuration:k,as:l},c)},disableEscapeKeyDown:p,onClose:y,open:b,ref:t,onClick:e=>{v&&v(e),E.current&&(E.current=null,g&&g(e),y&&y(e,"backdropClick"))},ownerState:T},C,{children:(0,Ye.jsx)(_,(0,Be.A)({appear:!0,in:b,timeout:k,role:"presentation"},M,{children:(0,Ye.jsx)(Ca,{className:(0,it.A)(A.container),onMouseDown:e=>{E.current=e.target===e.currentTarget},ownerState:T,children:(0,Ye.jsx)(Ta,(0,Be.A)({as:x,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":j},S,{className:(0,it.A)(A.paper,S.className),ownerState:T,children:(0,Ye.jsx)(wa.Provider,{value:N,children:u})}))})}))}))});function Ea(e){return(0,ut.Ay)("MuiDialogActions",e)}(0,ct.A)("MuiDialogActions",["root","spacing"]);const ja=["className","disableSpacing"],Na=(0,lt.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})}),Ia=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1}=n,o=(0,rt.A)(n,ja),a=(0,Be.A)({},n,{disableSpacing:i}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,ot.A)(r,Ea,t)}
2)(a);return(0,Ye.jsx)(Na,(0,Be.A)({className:(0,it.A)(s.root,r),ownerState:a,ref:t},o))});function Da(e){return(0,ut.Ay)("MuiDialogContent",e)}(0,ct.A)("MuiDialogContent",["root","dividers"]);function Pa(e){return(0,ut.Ay)("MuiDialogTitle",e)}const La=(0,ct.A)("MuiDialogTitle",["root"]),Ra=["className","dividers"],Oa=(0,lt.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(La.root," + &")]:{paddingTop:0}})}),za=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiDialogContent"}),{className:r,dividers:i=!1}=n,o=(0,rt.A)(n,Ra),a=(0,Be.A)({},n,{dividers:i}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,ot.A)(r,Da,t)})(a);return(0,Ye.jsx)(Oa,(0,Be.A)({className:(0,it.A)(s.root,r),ownerState:a,ref:t},o))});function Fa(e){return(0,ut.Ay)("MuiDialogContentText",e)}(0,ct.A)("MuiDialogContentText",["root"]);const Ba=["children","className"],Ua=(0,lt.Ay)(Tn,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ha=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiDialogContentText"}),{className:r}=n,i=(0,rt.A)(n,Ba),o=(e=>{const{classes:t}=e,n=(0,ot.A)({root:["root"]},Fa,t);return(0,Be.A)({},t,n)})(i);return(0,Ye.jsx)(Ua,(0,Be.A)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:i,className:(0,it.A)(o.root,r)},n,{classes:o}))});var Wa=n(48625),Va=n(47367),Ga=n(22427);const qa=["value"],Ka=r.createContext();const Ya=()=>{const e=r.useContext(Ka);return null!=e&&e},Xa=function(e){let{value:t}=e,n=(0,rt.A)(e,qa);return(0,Ye.jsx)(Ka.Provider,(0,Be.A)({value:null==t||t},n))};const Za=r.createContext({});function Qa(e){return(0,ut.Ay)("MuiList",e)}(0,ct.A)("MuiList",["root","padding","dense","subheader"]);const Ja=["children","className","component","dense","disablePadding","subheader"],$a=(0,lt.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})}),es=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=(0,rt.A)(n,Ja),d=r.useMemo(()=>({dense:s}),[s]),p=(0,Be.A)({},n,{component:a,dense:s,disablePadding:l}),h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,ot.A)(o,Qa,t)})(p);return(0,Ye.jsx)(Za.Provider,{value:d,children:(0,Ye.jsxs)($a,(0,Be.A)({as:a,className:(0,it.A)(h.root,o),ref:t,ownerState:p},u,{children:[c,i]}))})}),ts=es,ns=aa,rs=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function is(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function os(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function as(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ss(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&as(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const ls=r.forwardRef(function(e,t){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=(0,rt.A)(e,rs),h=r.useRef(null),f=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Ki.A)(()=>{i&&h.current.focus()},[i]),r.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,t)=>
2{let{direction:n}=t;const r=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&r){const t="".concat(ns((0,Ga.A)(e)),"px");h.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,h.current.style.width="calc(100% + ".concat(t,")")}return h.current}}),[]);const m=(0,Dn.A)(h,t);let g=-1;r.Children.forEach(a,(e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))});const v=r.Children.map(a,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e});return(0,Ye.jsx)(ts,(0,Be.A)({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=h.current,n=e.key,r=(0,Ga.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ss(t,r,c,l,is);else if("ArrowUp"===n)e.preventDefault(),ss(t,r,c,l,os);else if("Home"===n)e.preventDefault(),ss(t,null,c,l,is);else if("End"===n)e.preventDefault(),ss(t,null,c,l,os);else if(1===n.length){const i=f.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&as(r,i);i.previousKeyMatched&&(s||ss(t,r,!1,l,is,i))?e.preventDefault():i.previousKeyMatched=!1}u&&u(e)},tabIndex:i?0:-1},p,{children:v}))});var cs=n(80950),us=n(36078);const ds=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ps(e){return"scale(".concat(e,", ").concat(e**2,")")}const hs={entering:{opacity:1,transform:ps(1)},entered:{opacity:1,transform:"none"}},fs="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ms=r.forwardRef(function(e,t){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:h,style:f,timeout:m="auto",TransitionComponent:g=Yo}=e,v=(0,rt.A)(e,ds),y=(0,Gn.A)(),b=r.useRef(),x=Et(),S=r.useRef(null),w=(0,Dn.A)(S,Io(o),t),_=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},k=_(u),M=_((e,t)=>{Xo(e);const{duration:n,delay:r,easing:i}=Zo({style:f,timeout:m,easing:a},{mode:"enter"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:fs?o:.666*o,delay:r,easing:i})].join(","),l&&l(e,t)}),C=_(c),T=_(h),A=_(e=>{const{duration:t,delay:n,easing:r}=Zo({style:f,timeout:m,easing:a},{mode:"exit"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:fs?i:.666*i,delay:fs?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=ps(.75),d&&d(e)}),E=_(p);return(0,Ye.jsx)(g,(0,Be.A)({appear:i,in:s,nodeRef:S,onEnter:M,onEntered:C,onEntering:k,onExit:A,onExited:E,onExiting:T,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>r.cloneElement(o,(0,Be.A)({style:(0,Be.A)({opacity:0,transform:ps(.75),visibility:"exited"!==e||s?void 0:"hidden"},hs[e],f,o.props.style),ref:w},t))}))});ms.muiSupportAuto=!0;const gs=ms;function vs(e){return(0,ut.Ay)("MuiPopover",e)}(0,ct.A)("MuiPopover",["root","paper"]);const ys=["onEntering"],bs=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],xs=["slotProps"];function Ss(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ws(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function _s(e){return[e.horizontal,e.vertical].map(e=>"number"===typeof e?"".concat(e,"px"):e).join(" ")}function ks(e){return"function"===typeof e?e():e}const Ms=(0,lt.Ay)(ba,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cs=(0,lt.Ay)(xn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ts=r.forwardRef(function(e,t){var n,i,o;const a=(0,Ue.b)({props:e,name:"MuiPopover"}
2),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:h,container:f,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=gs,transitionDuration:_="auto",TransitionProps:{onEntering:k}={},disableScrollLock:M=!1}=a,C=(0,rt.A)(a.TransitionProps,ys),T=(0,rt.A)(a,bs),A=null!=(n=null==x?void 0:x.paper)?n:y,E=r.useRef(),j=(0,Dn.A)(E,A.ref),N=(0,Be.A)({},a,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:A,transformOrigin:S,TransitionComponent:w,transitionDuration:_,TransitionProps:C}),I=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"],paper:["paper"]},vs,t)})(N),D=r.useCallback(()=>{if("anchorPosition"===d)return u;const e=ks(l),t=(e&&1===e.nodeType?e:(0,Ga.A)(E.current).body).getBoundingClientRect();return{top:t.top+Ss(t,c.vertical),left:t.left+ws(t,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),P=r.useCallback(e=>({vertical:Ss(e,S.vertical),horizontal:ws(e,S.horizontal)}),[S.horizontal,S.vertical]),L=r.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===d)return{top:null,left:null,transformOrigin:_s(n)};const r=D();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,c=(0,us.A)(ks(l)),u=c.innerHeight-g,p=c.innerWidth-g;if(null!==g&&i<g){const e=i-g;i-=e,n.vertical+=e}else if(null!==g&&a>u){const e=a-u;i-=e,n.vertical+=e}if(null!==g&&o<g){const e=o-g;o-=e,n.horizontal+=e}else if(s>p){const e=s-p;o-=e,n.horizontal+=e}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:_s(n)}},[l,d,D,P,g]),[R,O]=r.useState(v),z=r.useCallback(()=>{const e=E.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,O(!0)},[L]);r.useEffect(()=>(M&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z)),[l,M,z]);r.useEffect(()=>{v&&z()}),r.useImperativeHandle(s,()=>v?{updatePosition:()=>{z()}}:null,[v,z]),r.useEffect(()=>{if(!v)return;const e=(0,cs.A)(()=>{z()}),t=(0,us.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,v,z]);let F=_;"auto"!==_||w.muiSupportAuto||(F=void 0);const B=f||(l?(0,Ga.A)(ks(l)).body:void 0),U=null!=(i=null==b?void 0:b.root)?i:Ms,H=null!=(o=null==b?void 0:b.paper)?o:Cs,W=No({elementType:H,externalSlotProps:(0,Be.A)({},A,{style:R?A.style:(0,Be.A)({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:j},ownerState:N,className:(0,it.A)(I.paper,null==A?void 0:A.className)}),V=No({elementType:U,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:v},ownerState:N,className:(0,it.A)(I.root,h)}),{slotProps:G}=V,q=(0,rt.A)(V,xs);return(0,Ye.jsx)(U,(0,Be.A)({},q,!Li(U)&&{slotProps:G,disableScrollLock:M},{children:(0,Ye.jsx)(w,(0,Be.A)({appear:!0,in:v,onEntering:(e,t)=>{k&&k(e,t),z()},onExited:()=>{O(!1)},timeout:F},C,{children:(0,Ye.jsx)(H,(0,Be.A)({},W,{children:p}))}))}))}),As=Ts;function Es(e){return(0,ut.Ay)("MuiMenu",e)}(0,ct.A)("MuiMenu",["root","paper","list"]);const js=["onEntering"],Ns=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Is={vertical:"top",horizontal:"right"},Ds={vertical:"top",horizontal:"left"},Ps=(0,lt.Ay)(As,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ls=(0,lt.Ay)(Cs,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Rs=(0,lt.Ay)(ls,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Os=r.forwardRef(function(e,t){var n,i;const o=(0,Ue.b)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:h={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=o,x=(0,rt.A)(o.TransitionProps,js),S=(0,rt.A)(o,Ns),w=Ya(),_=(0,Be.A)({},o,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:g,PaperProps:h,transitionDuration:m,TransitionProps:x,variant:v}),k=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"],paper:["paper"],list:["list"]},Es,t)})(_),M=a&&!c&&p,C=r.useRef(null);let T=-1;r.Children.map(s,(e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===T)&&(T=t))});const A=null!=(n=y.paper)?n:Ls,E=null!=(i=b.paper)?i:h,j=No({elementType:y.root,externalSlotProps:b.root,ownerState:_,className:[k.root,l]}),N=No({elementType:A,externalSlotProps:E,ownerState:_,className:k.paper});return(0,Ye.jsx)(Ps,(0,Be.A)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Is:Ds,slots:{paper:A,root:y.root},slotProps:{root:j,paper:N},open:p,ref:t,transitionDuration:m,TransitionProps:(0,Be.A)({onEntering:(e,t)=>
2{C.current&&C.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:_},S,{classes:f,children:(0,Ye.jsx)(Rs,(0,Be.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:C,autoFocus:a&&(-1===T||c),autoFocusItem:M,variant:v},u,{className:(0,it.A)(k.list,u.className),children:s}))}))});function zs(e){return(0,ut.Ay)("MuiNativeSelect",e)}const Fs=(0,ct.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Bs=["className","disabled","error","IconComponent","inputRef","variant"],Us=e=>{let{ownerState:t,theme:n}=e;return(0,Be.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Be.A)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(Fs.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},Hs=(0,lt.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:In.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&.".concat(Fs.multiple)]:t.multiple}]}})(Us),Ws=e=>{let{ownerState:t,theme:n}=e;return(0,Be.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,["&.".concat(Fs.disabled)]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Vs=(0,lt.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,st.A)(n.variant))],n.open&&t.iconOpen]}})(Ws),Gs=r.forwardRef(function(e,t){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,c=(0,rt.A)(e,Bs),u=(0,Be.A)({},e,{disabled:i,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon","icon".concat((0,st.A)(n)),o&&"iconOpen",r&&"disabled"]};return(0,ot.A)(s,zs,t)})(u);return(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(Hs,(0,Be.A)({ownerState:u,className:(0,it.A)(d.select,n),disabled:i,ref:s||t},c)),e.multiple?null:(0,Ye.jsx)(Vs,{as:a,ownerState:u,className:d.icon})]})}),qs=Gs;var Ks=n(47123);function Ys(e){return(0,ut.Ay)("MuiSelect",e)}const Xs=(0,ct.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Zs;const Qs=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Js=(0,lt.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&.".concat(Xs.select)]:t.select},{["&.".concat(Xs.select)]:t[n.variant]},{["&.".concat(Xs.error)]:t.error},{["&.".concat(Xs.multiple)]:t.multiple}]}})(Us,{["&.".concat(Xs.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$s=(0,lt.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,st.A)(n.variant))],n.open&&t.iconOpen]}})(Ws),el=(0,lt.Ay)("input",{shouldForwardProp:e=>(0,Ks.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function tl(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function nl(e){return null==e||"string"===typeof e&&!e.trim()}const rl=r.forwardRef(function(e,t){var n;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:f=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:x,onBlur:S,onChange:w,onClose:_,onFocus:k,onOpen:M,open:C,readOnly:T,renderValue:A,SelectDisplayProps:E={},tabIndex:j,value:N,variant:I="standard"}=e,D=(0,rt.A)(e,Qs),[P,L]=(0,mi.A)({controlled:N,default:d,name:"Select"}),[R,O]=(0,mi.A)({controlled:C,default:u,name:"Select"}),z=r.useRef(null),F=r.useRef(null),[B,U]=r.useState(null),{current:H}=r.useRef(null!=C),[W,V]=r.useState(),G=(0,Dn.A)(t,g),q=r.useCallback(e=>{F.current=e,e&&U(e)},[]),K=null==B?void 0:B.parentNode;r.useImperativeHandle(G,()=>({focus:()=>{F.current.focus()},node:z.current,value:P}),[P]),r.useEffect(()=>{u&&R&&B&&!H&&(V(s?null:K.clientWidth),F.current.focus())},[B,s]),r.useEffect(()=>{a&&F.current.focus()},[a]),r.useEffect(()=>{if(!v)return;const e=(0,Ga.A)(F.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[v]);const Y=(e,t)=>
2{e?M&&M(t):_&&_(t),H||(V(s?null:K.clientWidth),O(e))},X=r.Children.toArray(l),Z=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(P)?P.slice():[];const t=P.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),P!==n&&(L(n),w)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:x}}),w(i,e)}b||Y(!1,t)}},Q=null!==B&&R;let J,$;delete D["aria-invalid"];const ee=[];let te=!1,ne=!1;(Tr({value:P})||h)&&(A?J=A(P):te=!0);const re=X.map(e=>{if(!r.isValidElement(e))return null;let t;if(b){if(!Array.isArray(P))throw new Error((0,Pi.A)(2));t=P.some(t=>tl(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=tl(P,e.props.value),t&&te&&($=e.props.children);return t&&(ne=!0),r.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Z(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(J=b?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):$);let ie,oe=W;!s&&H&&B&&(oe=K.clientWidth),ie="undefined"!==typeof j?j:p?null:0;const ae=E.id||(x?"mui-component-select-".concat(x):void 0),se=(0,Be.A)({},e,{variant:I,value:P,open:Q,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon","icon".concat((0,st.A)(n)),o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,ot.A)(s,Ys,t)})(se),ce=(0,Be.A)({},y.PaperProps,null==(n=y.slotProps)?void 0:n.paper),ue=(0,ko.A)();return(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(Js,(0,Be.A)({ref:q,tabIndex:ie,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:e=>{if(!T){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||T?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!Q&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:P,name:x}}),S(e))},onFocus:k},E,{ownerState:se,className:(0,it.A)(E.className,le.select,c),id:ae,children:nl(J)?Zs||(Zs=(0,Ye.jsx)("span",{className:"notranslate",children:"\u200b"})):J})),(0,Ye.jsx)(el,(0,Be.A)({"aria-invalid":f,value:Array.isArray(P)?P.join(","):P,name:x,ref:z,"aria-hidden":!0,onChange:e=>{const t=X.find(t=>t.props.value===e.target.value);void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:se},D)),(0,Ye.jsx)($s,{as:m,className:le.icon,ownerState:se}),(0,Ye.jsx)(Os,(0,Be.A)({id:"menu-".concat(x||""),anchorEl:K,open:Q,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:(0,Be.A)({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:(0,Be.A)({},y.slotProps,{paper:(0,Be.A)({},ce,{style:(0,Be.A)({minWidth:oe},null!=ce?ce.style:null)})}),children:re}))]})}),il=rl,ol=(0,wi.A)((0,Ye.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function al(e){return(0,ut.Ay)("MuiFilledInput",e)}const sl=(0,Be.A)({},Xi,(0,ct.A)("MuiFilledInput",["root","underline","input"])),ll=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],cl=(0,lt.Ay)($i,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qi(e,t),!n.disableUnderline&&t.underline]}})(e=>{let{theme:t,ownerState:n}=e;var r;const i="light"===t.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Be.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},["&.".concat(sl.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},["&.".concat(sl.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}}
2,!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(sl.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(sl.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(sl.disabled,", .").concat(sl.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(sl.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,Be.A)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))}),ul=(0,lt.Ay)(eo,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ji})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})}),dl=r.forwardRef(function(e,t){var n,r,i,o;const a=(0,Ue.b)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:f="text"}=a,m=(0,rt.A)(a,ll),g=(0,Be.A)({},a,{fullWidth:c,inputComponent:u,multiline:d,type:f}),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,ot.A)(r,al,t);return(0,Be.A)({},t,i)})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?(0,Rr.A)(y,null!=p?p:l):y,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:cl,S=null!=(i=null!=(o=h.input)?o:s.Input)?i:ul;return(0,Ye.jsx)(ro,(0,Be.A)({slots:{root:x,input:S},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:f},m,{classes:v}))});dl.muiName="Input";const pl=dl;var hl;const fl=["children","classes","className","label","notched"],ml=(0,lt.Ay)("fieldset",{shouldForwardProp:In.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),gl=(0,lt.Ay)("legend",{shouldForwardProp:In.A})(e=>{let{ownerState:t,theme:n}=e;return(0,Be.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,Be.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))});function vl(e){return(0,ut.Ay)("MuiOutlinedInput",e)}const yl=(0,Be.A)({},Xi,(0,ct.A)("MuiOutlinedInput",["root","notchedOutline","input"])),bl=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],xl=(0,lt.Ay)($i,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qi})(e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Be.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(yl.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(yl.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroun
2dChannel," / 0.23)"):r}},["&.".concat(yl.focused," .").concat(yl.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(yl.error," .").concat(yl.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(yl.disabled," .").concat(yl.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,Be.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))}),Sl=(0,lt.Ay)(function(e){const{className:t,label:n,notched:r}=e,i=(0,rt.A)(e,fl),o=null!=n&&""!==n,a=(0,Be.A)({},e,{notched:r,withLabel:o});return(0,Ye.jsx)(ml,(0,Be.A)({"aria-hidden":!0,className:t,ownerState:a},i,{children:(0,Ye.jsx)(gl,{ownerState:a,children:o?(0,Ye.jsx)("span",{children:n}):hl||(hl=(0,Ye.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}}),wl=(0,lt.Ay)(eo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ji})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})}),_l=r.forwardRef(function(e,t){var n,i,o,a,s;const l=(0,Ue.b)({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:f,slots:m={},type:g="text"}=l,v=(0,rt.A)(l,bl),y=(e=>{const{classes:t}=e,n=(0,ot.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vl,t);return(0,Be.A)({},t,n)})(l),b=Lr(),x=ci({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=(0,Be.A)({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:h,size:x.size,type:g}),w=null!=(n=null!=(i=m.root)?i:c.Root)?n:xl,_=null!=(o=null!=(a=m.input)?a:c.Input)?o:wl;return(0,Ye.jsx)(ro,(0,Be.A)({slots:{root:w,input:_},renderSuffix:e=>(0,Ye.jsx)(Sl,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=(0,Ye.jsxs)(r.Fragment,{children:[p,"\u2009","*"]})):p,notched:"undefined"!==typeof f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:h,ref:t,type:g},v,{classes:(0,Be.A)({},y,{notchedOutline:null})}))});_l.muiName="Input";const kl=_l,Ml=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Cl=["root"],Tl={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,In.A)(e)&&"variant"!==e,slot:"Root"},Al=(0,lt.Ay)(uo,Tl)(""),El=(0,lt.Ay)(kl,Tl)(""),jl=(0,lt.Ay)(pl,Tl)(""),Nl=r.forwardRef(function(e,t){const n=(0,Ue.b)({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=ol,id:d,input:p,inputProps:h,label:f,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:_,variant:k="outlined"}=n,M=(0,rt.A)(n,Ml),C=y?qs:il,T=ci({props:n,muiFormControl:Lr(),states:["variant","error"]}),A=T.variant||k,E=(0,Be.A)({},n,{variant:A,classes:a}),j=(e=>{const{classes:t}=e;return t})(E),N=(0,rt.A)(j,Cl),I=p||{standard:(0,Ye.jsx)(Al,{ownerState:E}),outlined:(0,Ye.jsx)(El,{label:f,ownerState:E}),filled:(0,Ye.jsx)(jl,{ownerState:E})}[A],D=(0,Dn.A)(t,Io(I));return(0,Ye.jsx)(r.Fragment,{children:r.cloneElement(I,(0,Be.A)({inputComponent:C,inputProps:(0,Be.A)({children:o,error:T.error,IconComponent:u,variant:A,type:void 0,multiple:v},y?{id:d}
2:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:(0,Be.A)({id:d},_)},h,{classes:h?(0,Rr.A)(N,h.classes):N},p?p.props.inputProps:{})},(v&&y||c)&&"outlined"===A?{notched:!0}:{},{ref:D,className:(0,it.A)(I.props.className,s,j.root)},!p&&{variant:A},M))})});Nl.muiName="Select";const Il=Nl;const Dl=r.createContext();function Pl(e){return(0,ut.Ay)("MuiGrid",e)}const Ll=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Rl=(0,ct.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>"spacing-xs-".concat(e)),...["column-reverse","column","row-reverse","row"].map(e=>"direction-xs-".concat(e)),...["nowrap","wrap-reverse","wrap"].map(e=>"wrap-xs-".concat(e)),...Ll.map(e=>"grid-xs-".concat(e)),...Ll.map(e=>"grid-sm-".concat(e)),...Ll.map(e=>"grid-md-".concat(e)),...Ll.map(e=>"grid-lg-".concat(e)),...Ll.map(e=>"grid-xl-".concat(e))]),Ol=Rl,zl=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Fl(e){const t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function Bl(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach(e=>{""===r&&0!==n[e]&&(r=e)});const i=Object.keys(t).sort((e,n)=>t[e]-t[n]);return i.slice(0,i.indexOf(r))}const Ul=(0,lt.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];const r=[];return t.forEach(t=>{const i=e[t];Number(i)>0&&r.push(n["spacing-".concat(t,"-").concat(String(i))])}),r}(a,c,t));const d=[];return c.forEach(e=>{const r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})},function(e){let{theme:t,ownerState:n}=e;const r=(0,Qr.kW)({values:n.direction,breakpoints:t.breakpoints.values});return(0,Qr.NI)({theme:t},r,e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(Ol.item)]={maxWidth:"none"}),t})},function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:i}=n;let o={};if(r&&0!==i){const e=(0,Qr.kW)({values:i,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=Bl({breakpoints:t.breakpoints.values,values:e})),o=(0,Qr.NI)({theme:t},e,(e,r)=>{var i;const o=t.spacing(e);return"0px"!==o?{marginTop:"-".concat(Fl(o)),["& > .".concat(Ol.item)]:{paddingTop:Fl(o)}}:null!=(i=n)&&i.includes(r)?{}:{marginTop:0,["& > .".concat(Ol.item)]:{paddingTop:0}}})}return o},function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:i}=n;let o={};if(r&&0!==i){const e=(0,Qr.kW)({values:i,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=Bl({breakpoints:t.breakpoints.values,values:e})),o=(0,Qr.NI)({theme:t},e,(e,r)=>{var i;const o=t.spacing(e);return"0px"!==o?{width:"calc(100% + ".concat(Fl(o),")"),marginLeft:"-".concat(Fl(o)),["& > .".concat(Ol.item)]:{paddingLeft:Fl(o)}}:null!=(i=n)&&i.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(Ol.item)]:{paddingLeft:0}}})}return o},function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce((e,i)=>{let o={};if(r[i]&&(t=r[i]),!t)return e;if(!0===t)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,Qr.kW)({values:r.columns,breakpoints:n.breakpoints.values}),s="object"===typeof a?a[i]:a;if(void 0===s||null===s)return e;const l="".concat(Math.round(t/s*1e8)/1e6,"%");let c={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t="calc(".concat(l," + ").concat(Fl(e),")");c={flexBasis:t,maxWidth:t}}}o=(0,Be.A)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===n.breakpoints.values[i]?Object.assign(e,o):e[n.breakpoints.up(i)]=o,e},{})});const Hl=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];const n=[];return t.forEach(t=>{const r=e[t];if(Number(r)>0){const e="spacing-".concat(t,"-").concat(String(r));n.push(e)}}),n}(o,l));const u=[];l.forEach(t=>{const n=e[t];n&&u.push("grid-".concat(t,"-").concat(String(n)))});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,"row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a)),...u]};return(0,ot.A)(d,Pl,t)},Wl=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiGrid"}),{breakpoints:i}
2=Et(),o=(0,Sn.A)(n),{className:a,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:f=0,wrap:m="wrap",zeroMinWidth:g=!1}=o,v=(0,rt.A)(o,zl),y=h||f,b=l||f,x=r.useContext(Dl),S=u?s||12:x,w={},_=(0,Be.A)({},v);i.keys.forEach(e=>{null!=v[e]&&(w[e]=v[e],delete _[e])});const k=(0,Be.A)({},o,{columns:S,container:u,direction:d,item:p,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:g,spacing:f},w,{breakpoints:i.keys}),M=Hl(k);return(0,Ye.jsx)(Dl.Provider,{value:S,children:(0,Ye.jsx)(Ul,(0,Be.A)({ownerState:k,className:(0,it.A)(M.root,a),as:c,ref:t},_))})});const Vl=Wl,Gl=["className","id"],ql=(0,lt.Ay)(Tn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Kl=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiDialogTitle"}),{className:i,id:o}=n,a=(0,rt.A)(n,Gl),s=n,l=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"]},Pa,t)})(s),{titleId:c=o}=r.useContext(wa);return(0,Ye.jsx)(ql,(0,Be.A)({component:"h2",className:(0,it.A)(l.root,i),ownerState:s,ref:t,variant:"h6",id:null!=o?o:c},a))});function Yl(e,t){if(e.indexOf(t)<0)return"";{var n=e.indexOf(t);n+=t.length;let r=e.indexOf("&",n);return-1===r&&(r=e.length),e.substring(n+1,r)}}function Xl(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),e.indexOf(t,e.length-t.length)>=0}function Zl(e,t){if("string"===typeof t){if(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(?:Z|(\+|-)([\d|:]*))?$/.exec(t))return new Date(t)}return t}function Ql(e){var t="";const n=new RegExp("(?=.*[^A-Za-z0-9])"),r=new RegExp("(?=.*[0-9])"),i=new RegExp("(?=.*[A-Z])"),o=new RegExp("(?=.*[a-z])");return n.test(e.value)||(t=En("passwordSpecialChar")+"\n"),r.test(e.value)||(t=t+En("passwordDigit")+"\n"),i.test(e.value)||(t=t+En("passwordUpperLetter")+"\n"),o.test(e.value)||(t=t+En("passwordSmallLetter")+"\n"),e.value.length>0&&e.value.length<12&&(t+=En("passwordMustBeLength")),""===t||(e.setCustomValidity(t),!1)}class Jl extends r.Component{constructor(e){super(e),this.displayName=Jl.name,this.handleSubmit=e=>{if(!this.state.submitting){var t=document.getElementById("newAccountForm"),r=document.getElementById("password1"),i=document.getElementById("password2"),o=document.getElementById("agreePrivacy"),a=document.getElementById("agreeTerms");if(""===r.value||""===i.value)return;if(!Ql(r))return;if(r.value!==i.value?i.setCustomValidity(En("passwordMismatch")+"\n"):i.setCustomValidity(""),o.checked?o.setCustomValidity(""):o.setCustomValidity(En("pleaseAgreePrivacy")),a.checked?a.setCustomValidity(""):a.setCustomValidity(En("pleaseAgreeTerms")),!t.checkValidity())return;e.preventDefault(),this.setState({submitting:!0},()=>{n(5609),fetch("SvrUser/CreateUser",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(this.state.profile.user)}).then(e=>e.json()).then(e=>{if(!0===e.success)this.setState({submitting:!1,accountCreated:!0});else if("quizFailed"===e.error){var t=this.state.profile;t.quizType=e.quizType,t.quizPrompt=e.quizPrompt,t.user.quiz="";let n=(new Date).getTime().toString();this.setState({submitting:!1,lastMessage:En(e.error),showingMessage:!0,profile:t,lastQuizCache:n,quiz1:"",quiz2:"",quizLoading:!0})}else this.setState({submitting:!1,lastMessage:En(e.error),showingMessage:!0})})})}return!1},this.handleChange=e=>{var t=this.state.profile,{quiz1:n,quiz2:r}=this.state;if("checkbox"===e.target.type)t.user[e.target.value]=e.target.checked;else if("quiz1"===e.target.name||"quiz2"===e.target.name){"quiz1"===e.target.name?(n=e.target.value.trim(),e.target.selectionStart==e.target.selectionEnd&&e.target.selectionStart>0&&" "===e.target.value[e.target.selectionStart-1]&&document.getElementById("quiz2").focus()):r=e.target.value.trim();let i=n+" "+r,o=(i+" ").split(" ");t.user.quiz=i,n=o[0],r=o[1]}else t.user[e.target.name]=e.target.value;this.setState({profile:t,quiz1:n,quiz2:r})},this.handlePasswordChange=e=>{this.handleChange(e),this.validatePassword(e)},this.closeMessage=()=>{this.setState({showingMessage:!1})},this.onCreationCompleted=()=>{this.props.closeDialog()},this.onQuizLoaded=()=>{this.setState({quizLoading:!1})},this.refreshQuiz=()=>{this.setState({submitting:!0},()=>{fetch("SvrUser/NewQuiz",{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{var t=this.state.profile;t.quizType=e.quizType,t.quizPrompt=e.quizPrompt,t.user.quiz="";let n=(new Date).getTime().toString();this.setState({submitting:!1,profile:t,lastQuizCache:n,quiz1:"",quiz2:"",quizLoading:!0})})})},this.renderQuiz=()=>{const{classes:e}=this.props,{profile:t,lastQuizCache:n,quiz1:r,quiz2:i,submitting:o,quizLoading:a}=this.state;let s=(0,Ye.jsx)(kr,{onClick:this.refreshQuiz,size:"small",color:"secondary",variant:"contained",disabled:o,startIcon:(0,Ye.jsx)(Wa.A,{}),children:En("refresh")});return 1==t.quizType?(0,Ye.jsx)(xn,{children:(0,Ye.jsxs)(Vl,{container:!0,spacing:1,className:e.denseGridParent,alignItems:"center",justifyContent:"center",children:[(0,Ye.jsxs)(Vl,{item:!0,xs:6,children:[(0,Ye.jsx)(Tn,{variant:"caption",children:t.quizPrompt}),(0,Ye.jsx)(Pr,{required:!0,margin:"none",fullWidth:!0,children:(0,Ye.jsx)(uo,{id:"quiz",name:"quiz",value:t.user.quiz,onChange:this.handleChange,inputProps:{maxLength:"6"}})})]}),(0,Ye.jsxs)(Vl,{item:!0,xs:"auto",children:[a&&(0,Ye.jsx)("div",{style:{width:70,height:62},children:(0,Ye.jsx)(Va.A,{fontSize:"large",style:{display:"block",margin:"auto"}})}),(0,Ye.jsx)("img",{src:"SvrUser/ForHumans?refresh="+n,style:{width:70,height:62,display:a?"none":"block"},onLoad:this.onQuizLoaded},"quiz"+n)]}),(0,Ye.jsx)(Vl,{item:!0,xs:"auto",children:s})]})}):2==t.quizType?(0,Ye.jsx)(xn,{children:(0,Ye.jsxs)(Vl,{container:!0,spacing:1,className:e.denseGridParent,alignItems:"center",justifyContent:"center",children:[(0,Ye.jsxs)(Vl,{item:!0,xs:6,children:[(0,Ye.jsx)(Tn,{variant:"caption",children:t.quizPrompt}),(0,Ye.jsxs)(Vl,{container:!0,spacing:1,className:e.denseGridParent,alignItems:"center",justifyContent:"center",children:[(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsx)(Pr,{required:!0,margin:"none",fullWidth:!0,children:(0,Ye.jsx)(uo,{id:"quiz1",name:"quiz1",value:r,onChange:this.handleChange,inputProps:{maxLength:"20"}})})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsx)(Pr,{required:!0,margin:"none",fullWidth:!0,children:(0,Ye.jsx)(uo,{id:"quiz2",name:"quiz2",value:i,onChange:this.handleChange,inputProps:{maxLength:"20"}})})})]})]}),(0,Ye.jsxs)(Vl,{item:!0,style:{textAlign:"right"},children:[a&&(0,Ye.jsx)("div",{style:{width:250,height:62},children:(0,Ye.jsx)(Va.A,{fontSize:"large",style:{display:"block",margin:"auto"}})}),(0,Ye.jsx)("img",{src:"SvrUser/ForHumans?refresh="+n,style:{width:250,display:a?"none":"block"},onLoad:this.onQuizLoaded},"quiz"+n),(0,Ye.jsx)("br",{}),s]})]})}):(0,Ye.jsx)(xn,{children:(0,Ye.jsx)(Tn,{children:En("quizFailed")})})},this.renderProfileGrid=()=>{const{classes:e}=this.props,{submitting:t}=this.state,{profile:n}=this.state;let r=(0,Ye.jsxs)("span",{children:[En("iAgreeTo")," ",(0,Ye.jsx)(je,{to:"/privacy",target:"_blank",children:En("privacyStatement")})]}),i=(0,Ye.jsxs)("span",{children:[En("iAgreeTo")," ",(0,Ye.jsx)(je,{to:"/terms",target:"_blank",children:En("termsAndConditions")})]}),o=this.renderQuiz();return(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Aa,{open:!0,scroll:"paper","aria-labelledby":"new-user-title",children:[(0,Ye.jsxs)(Kl,{id:"new-u
2ser-title",className:e.title,children:[" ",En("newUser")]}),(0,Ye.jsx)(za,{children:(0,Ye.jsxs)("form",{id:"newAccountForm",className:e.formFix,children:[(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"email",children:En("emailAddress")}),(0,Ye.jsx)(uo,{id:"email",name:"email",type:"email",autoComplete:"email",value:n.user.email,onChange:this.handleChange,inputProps:{maxLength:"100"}})]}),(0,Ye.jsxs)(Vl,{container:!0,spacing:1,children:[(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"firstName",children:En("firstName")}),(0,Ye.jsx)(uo,{id:"firstName",name:"firstName",autoComplete:"firstName",value:n.user.firstName,onChange:this.handleChange,inputProps:{maxLength:"30"}})]})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"lastName",children:En("lastName")}),(0,Ye.jsx)(uo,{id:"lastName",name:"lastName",autoComplete:"lastName",value:n.user.lastName,onChange:this.handleChange,inputProps:{maxLength:"30"}})]})})]}),(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"companyName",children:En("company")}),(0,Ye.jsx)(uo,{id:"companyName",name:"companyName",autoComplete:"companyName",value:n.user.companyName,onChange:this.handleChange,inputProps:{maxLength:"30"}})]}),(0,Ye.jsxs)(Pr,{margin:"none",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"phone",children:En("phone")}),(0,Ye.jsx)(uo,{id:"phone",name:"phone",autoComplete:"phone",value:n.user.phone,onChange:this.handleChange,inputProps:{maxLength:"15"}})]}),(0,Ye.jsxs)(Pr,{margin:"none",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"address1",children:En("address1")}),(0,Ye.jsx)(uo,{id:"address1",name:"address1",autoComplete:"address1",value:n.user.address1,onChange:this.handleChange,inputProps:{maxLength:"40"}})]}),(0,Ye.jsxs)(Pr,{margin:"none",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"address2",children:En("address2")}),(0,Ye.jsx)(uo,{id:"address2",name:"address2",autoComplete:"address2",value:n.user.address2,onChange:this.handleChange,inputProps:{maxLength:"40"}})]}),(0,Ye.jsxs)(Vl,{container:!0,spacing:1,className:e.denseGridParent,children:[(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.denseGridItem,children:(0,Ye.jsxs)(Pr,{margin:"none",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"city",children:En("city")}),(0,Ye.jsx)(uo,{id:"city",name:"city",autoComplete:"city",value:n.user.city,onChange:this.handleChange,inputProps:{maxLength:"30"}})]})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.denseGridItem,children:(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"state",children:En("state")}),(0,Ye.jsxs)(Il,{id:"state",name:"state",native:!0,value:n.user.state,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:""}),n.states.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.value},e.value))]})]})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.denseGridItem,children:(0,Ye.jsxs)(Pr,{margin:"none",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"postalCode",children:En("postalCode")}),(0,Ye.jsx)(uo,{id:"postalCode",name:"postalCode",autoComplete:"postalCode",value:n.user.postalCode,onChange:this.handleChange,inputProps:{maxLength:"10"}})]})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.denseGridItem,children:(0,Ye.jsxs)(Pr,{margin:"none",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"country",children:En("country")}),(0,Ye.jsx)(uo,{id:"country",name:"country",autoComplete:"country",value:n.user.country,onChange:this.handleChange,inputProps:{maxLength:"30"}})]})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.denseGridItem,children:(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"password1",children:En("Password")}),(0,Ye.jsx)(uo,{id:"password1",name:"password1",type:"password",onChange:this.handlePasswordChange})]})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.denseGridItem,children:(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"password2",children:En("confirmPassword")}),(0,Ye.jsx)(uo,{id:"password2",name:"password2",type:"password",onChange:this.handlePasswordChange})]})})]}),(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"units",children:En("unitPreference")}),(0,Ye.jsxs)(Il,{id:"units",name:"units",native:!0,value:n.user.units,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:""}),n.unitsOfMeasure.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.value},e.value))]})]}),o,(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(fi,{margin:"none",control:(0,Ye.jsx)(Di,{id:"agreePrivacy",value:"agreePrivacy",color:"primary",className:e.denseCheckbox,onChange:this.handleChange}),label:r})}),(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(fi,{margin:"none",control:(0,Ye.jsx)(Di,{id:"agreeTerms",value:"agreeTerms",color:"primary",className:e.denseCheckbox,onChange:this.handleChange}),label:i})}),(0,Ye.jsx)("div",{className:e.forIE11,children:(0,Ye.jsx)("button",{id:"btnCreateAccount",type:"submit",onClick:this.handleSubmit})})]})}
2),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{color:"primary",variant:"contained",onClick:()=>this.props.closeDialog(),children:En("cancel")}),(0,Ye.jsx)(kr,{color:"secondary",variant:"contained",disabled:t,onClick:()=>document.getElementById("btnCreateAccount").click(),children:En("createAccount")}),t&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Aa,{open:this.state.showingMessage,onClose:this.closeMessage,"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:this.state.lastMessage})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeMessage,color:"secondary",variant:"contained",autoFocus:!0,children:En("ok")})})]}),(0,Ye.jsxs)(Aa,{open:this.state.accountCreated,onClose:this.onCreationCompleted,"aria-labelledby":"created-dialog-title","aria-describedby":"created-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"created-dialog-description",children:(0,Ye.jsx)("span",{children:En("activateThroughEmail")})})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.onCreationCompleted,color:"secondary",variant:"contained",autoFocus:!0,children:En("ok")})})]})]})]})},this.validatePassword=e=>{e.target.setCustomValidity("text"),e.target!=document.getElementById("password2")?Ql(e.target)&&e.target.setCustomValidity(""):this.validatePasswordMatch(e)},this.validatePasswordMatch=e=>{document.getElementById("password1").value!==e.target.value?e.target.setCustomValidity(En("passwordMismatch")+"\n"):e.target.setCustomValidity("")},this.state={profile:[],loading:!0,stillLoading:!1,submitting:!1,showingMessage:!1,accountCreated:!1,lastMessage:"",lastQuizCache:"",quiz1:"",quiz2:"",quizLoading:!0}}componentDidMount(){setTimeout(()=>{this.state.loading&&this.setState({stillLoading:!0})},1e3),fetch("SvrUser/NewUser",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let t=(new Date).getTime().toString();this.setState({profile:e,loading:!1,stillLoading:!1,lastQuizCache:t,quiz1:"",quiz2:"",quizLoading:!0})})}render(){let e="";return e=this.state.stillLoading?(0,Ye.jsx)(Aa,{transitionDuration:0,open:this.state.loading,children:(0,Ye.jsx)(za,{children:(0,Ye.jsx)(At,{})})}):this.state.loading?"":this.renderProfileGrid(),(0,Ye.jsx)(r.Fragment,{children:e})}}const $l=pn(Jl,e=>({title:{padding:"12px 24px 8px"},centerText:{textAlign:"center"},formFix:{width:"100%"},denseGridParent:{marginTop:"0px",marginBottom:"0px"},denseGridItem:{paddingTop:"2px !important",paddingBottom:"0px !important"},denseCheckbox:{paddingTop:"6px",paddingBottom:"6px"},forIE11:{display:"none"},wrapper:{textAlign:"center",position:"relative"},buttonProgress:{color:_o.A[500],position:"absolute",top:"calc(100% - 40px)",left:"calc(100% - 90px)",overflow:"hidden"}}));class ec extends r.Component{constructor(e){super(e),this.displayName=ec.name,this.handleSubmit=e=>{if(!this.state.submitting){var t=document.getElementById("forgotPasswordForm");if(!t.checkValidity())return;e.preventDefault(),this.setState({submitting:!0},()=>{n(5609);var e=new FormData(t);fetch("SvrUser/ForgotPassword",{method:"POST",credentials:"same-origin",body:e}).then(e=>e.json()).then(e=>{!0===e.success?this.setState({submitting:!1,showingMessage:!0,lastMessage:En("passwordEmailSent")}):this.setState({submitting:!1,lastMessage:En(e.error),showingMessage:!0})})})}return!1},this.closeMessage=()=>{this.props.closeDialog()},this.state={submitting:!1,showingMessage:!1,lastMessage:""}}render(){const{classes:e}=this.props,{submitting:t}=this.state,n=this.props.defaultEmail?this.props.defaultEmail.value:"";return(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Aa,{open:!0,"aria-labelledby":"forgot-password-title",children:[(0,Ye.jsx)(Kl,{id:"forgot-password-title",children:En("forgotPassword")}),(0,Ye.jsxs)(za,{children:[(0,Ye.jsx)(Tn,{variant:"body2",children:En("forgotPasswordEnterEmail")}),(0,Ye.jsxs)("form",{id:"forgotPasswordForm",className:e.formFix,children:[(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"email",children:En("emailAddress")}),(0,Ye.jsx)(uo,{autoFocus:!0,name:"email",type:"email",autoComplete:"email",inputProps:{maxLength:"100"},defaultValue:n})]}),(0,Ye.jsx)("div",{className:e.forIE11,children:(0,Ye.jsx)("button",{id:"btnForgotOk",type:"submit",onClick:this.handleSubmit})})]})]}
2),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{color:"primary",variant:"contained",onClick:()=>this.props.closeDialog(),children:En("cancel")}),(0,Ye.jsx)(kr,{color:"secondary",variant:"contained",disabled:t,onClick:()=>document.getElementById("btnForgotOk").click(),children:En("ok")}),t&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Aa,{open:this.state.showingMessage,onClose:this.closeMessage,"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:this.state.lastMessage})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeMessage,color:"primary",variant:"contained",autoFocus:!0,children:En("ok")})})]})})]})}}const tc=pn(ec,e=>({formFix:{width:"100%"},forIE11:{display:"none"},buttonProgress:{color:_o.A[500],position:"absolute",top:"calc(100% - 40px)",left:"calc(100% - 55px)",overflow:"hidden"}}));var nc=n(94645);function rc(e,t,n){var r=e.adShuttle.filter(e=>e.componentName===n);if(r&&r.length>0){r=r[0];for(var i=0;i<r.classes.length;i++){var o=r.classes[i];t[o.className]||(t[o.className]={});for(var a=0;a<o.properties.length;a++){var s=o.properties[a];""===s.propertyValue?delete t[o.className][s.property]:t[o.className][s.property]=s.propertyValue}if(o.hover.properties.length>0){t[o.className]["&:hover"]={};for(var l=0;l<o.hover.properties.length;l++){var c=o.hover.properties[l];""===c.propertyValue?delete t[o.className]["&:hover"][c.property]:t[o.className]["&:hover"][c.property]=c.propertyValue}}}}return t}function ic(e,t){var n;const r=window.AdShuttleGlobal.getTheme();var i=null===r||void 0===r||null===(n=r.adShuttle)||void 0===n?void 0:n.filter(t=>t.componentName.toUpperCase()===e.toUpperCase());if(i&&i.length>0){var o=i[0].properties.filter(e=>e.property===t);if(o&&o.length>0)return o[0].propertyValue}return""}class oc extends r.Component{constructor(e){super(e),this.displayName=oc.name,this.showRequestDialog=()=>{this.setState({loading:!0}),fetch("SvrHelp/BeginSupportRequest?ticketId=".concat(this.props.ticketId,"&requestType=").concat(this.props.requestType),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({loading:!1,showDialog:!0,requestInfo:e})})},this.closeRequestDialog=()=>{this.setState({showDialog:!1})},this.closeMessage=()=>{this.setState({showingMessage:!1})},this.handleChange=e=>{var t=this.state.requestInfo;t.request[e.target.name]=e.target.value,this.setState({requestInfo:t})},this.handleSubmit=e=>{if(!this.state.submitting){if(!document.getElementById("supportRequestForm").checkValidity())return;e.preventDefault(),this.setState({submitting:!0},()=>{n(5609),fetch("SvrHelp/SendSupportRequest",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(this.state.requestInfo.request)}).then(e=>e.json()).then(e=>{!0===e.success?this.setState({showDialog:!1,submitting:!1,showingMessage:!0,lastMessage:En("supportRequestSent")}):this.setState({submitting:!1,lastMessage:En(e.error),showingMessage:!0})})})}return!1},this.state={loading:!1,showDialog:!1,submitting:!1,showingMessage:!1,lastMessage:"",requestInfo:null},e.showDialog&&this.showRequestDialog()}render(){const{classes:e}=this.props,{submitting:t}=this.state,{requestInfo:n}=this.state;let r="",i="";if(this.props.showButton?i=(0,Ye.jsxs)(kr,{variant:"contained",color:"primary","data-component":"supportRequest","data-classname":"helpButton",disabled:this.state.loading,onClick:this.showRequestDialog,children:[(0,Ye.jsx)(nc.A,{}),"\xa0",En("needHelp")]}):this.props.showLink&&(i=(0,Ye.jsx)(je,{to:"#",onClick:this.showRequestDialog,children:En("haveSpecialistContactMe")})),n){let t="";n.request.ticketId&&(t=(0,Ye.jsxs)(Tn,{variant:"body2",className:e.fakeLabel,children:[En("ticketId"),": ",n.request.ticketId]})),r=(0,Ye.jsxs)("form",{id:"supportRequestForm",className:e.formFix,children:[(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"email",children:En("contactEmail")}),(0,Ye.jsx)(uo,{name:"email",type:"email",value:n.request.email,onChange:this.handleChange,inputProps:{maxLength:"100"}})]}),(0,Ye.jsxs)(Pr,{margin:"none",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"phone",children:En("contactPhone")}),(0,Ye.jsx)(uo,{name:"phone",value:n.request.phone,onChange:this.handleChange,inputProps:{maxLength:"15"}})]}),(0,Ye.jsxs)(Pr,{margin:"none",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"requestType",children:En("type")}),(0,Ye.jsxs)(Il,{id:"requestType",name:"requestType",native:!0,value:n.request.requestType,onCh
2ange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectType")}),n.requestTypes.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.value},e.value))]})]}),t,(0,Ye.jsxs)(Pr,{required:!0,fullWidth:!0,variant:"filled",children:[(0,Ye.jsx)(wo,{htmlFor:"description",children:En("description")}),(0,Ye.jsx)(pl,{name:"description",multiline:!0,rows:4,value:n.request.description,onChange:this.handleChange})]}),(0,Ye.jsx)("div",{className:e.forIE11,children:(0,Ye.jsx)("button",{id:"btnSubmitSupport",type:"submit",onClick:this.handleSubmit})})]})}return(0,Ye.jsxs)("div",{children:[i,(0,Ye.jsxs)(Aa,{open:this.state.showDialog,"aria-labelledby":"support-request-title",children:[(0,Ye.jsx)(Kl,{id:"support-request-title",children:En("supportRequest")}),(0,Ye.jsxs)(za,{children:[(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("forUrgentRequests")," ",En("supportPhoneUsa"),(0,Ye.jsx)("br",{}),En("outsideUScall")," ",En("supportPhoneOutsideUs")]}),r]}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{color:"primary",variant:"contained",onClick:this.closeRequestDialog,children:En("cancel")}),(0,Ye.jsx)(kr,{color:"secondary",variant:"contained",disabled:t,onClick:()=>document.getElementById("btnSubmitSupport").click(),children:En("send")}),t&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Aa,{open:this.state.showingMessage,onClose:this.closeMessage,"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:this.state.lastMessage})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeMessage,color:"secondary",variant:"contained",autoFocus:!0,children:En("ok")})})]})})]})}}const ac=pn(oc,e=>{var t={formFix:{width:"100%"},forIE11:{display:"none"},fakeLabel:{paddingTop:e.spacing(1),paddingBottom:e.spacing(1),color:"rgb(0,0,0,0.54)"},buttonProgress:{color:_o.A[500],position:"absolute",top:"calc(100% - 40px)",left:"calc(100% - 55px)",overflow:"hidden"}};return t=rc(e,t,"supportRequest")});function sc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var lc=function e(t,n){function r(e,r,i){if("undefined"!==typeof document){"number"===typeof(i=sc({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(dO){}}return e?r[e]:r}},remove:function(e,t){r(e,"",sc({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,sc({},this.attributes,t))},withConverter:function(t){return e(sc({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const cc=Object.freeze({NONE:0,FORGOTPASSWORD:1,CREATEACCOUNT:2,DOWNLOADPRESETS:3}),uc="rememberMe";class dc extends r.Component{constructor(e){var t,r,i,o;super(e),this.handleSubmit=e=>{if(!this.state.loading){var t=document.getElementById("username"),r=document.getElementById("password");if(""===t.value||""===r.value)return;e.preventDefault(),document.getElementById("chkRememberMe").checked?lc.set(uc,t.value,{expires:365}):lc.get(uc)&&lc.remove(uc),this.setState({loading:!0},()=>{n(5609);var e=new FormData(document.getElementById("loginForm"));fetch("SvrUser/SubmitLogin",{method:"POST",body:e,credentials:"same-origin"}).then(e=>e.json()).then(e=>{!0===e.success?this.props.onLoginCompleted(!0,e.userInfo):this.setState({loading:!1,lastError:e.error,showingError:!0})})})}return!1},this.closeError=()=>{this.setState({showingError:!1})},this.showDialog=e=>{this.setState({showDialog:e})},this.closeDialog=()=>{this.setState({showDialog:cc.NONE})},this.buildLoginBox=()=>{const{classes:e}=this.props,{loading:t,initialUser:n}=this.state;return(0,Ye.jsxs)(xn,{className:e.paper,children:[(0,Ye.jsx)(Tn,{variant:"subtitle2",children:(0,Ye.jsx)("strong",{children:En("signInWithAdShuttle")})}),(0,Ye.jsxs)("form",{id:"loginForm",className:e.form,children:[(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"username",children:En("emailAddress")}),(0,Ye.jsx)(uo,{id:"username",name:"username",autoComplete:"email",defaultValue:n,autoFocus:void 0===n})]}),(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"password",children:En("password")}),(0,Ye.jsx)(uo,{name:"password",type:"password",id:"password",autoFocus:void 0!==n,autoComplete:"current-password"})]}),(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{id:"chkRememberMe",value:"remember",color:"primary",className:e.checkboxPadding,defaultChecked:void 0!==n}),label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("rememberMe")})}),(0,Ye.jsx)(Tn,{variant:"body2",component:"span",className:e.forgotPassword,children:(0,Ye.jsx)(je,{to:"#",onClick:()=>this.showDialog(cc.FORGOTPASSWORD),children:En("forgotPassword")})}),(0,Ye.jsxs)("span",{className:e.submitWrapper,children:[t&&(0,Ye.jsx)(At,{size:24,style:{visibility:"hidden"}}),(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"secondary",disabled:t,"data-component":"login","data-classname":"submit",className:e.submit,onClick:this.handleSubmit,children:En("signIn")}),t&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]}),(0,Ye.jsx)("p",{}),(0,Ye.jsx)(Tn,{variant:"subtitle2",children:(0,Ye.jsx)("strong",{children:En("notRegistered")})}),(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>this.showDialog(cc.CREATEACCOUNT),children:En("createFreeAccount")}
2)})]})};let a=lc.get(uc),s=null!==(t=this.props)&&void 0!==t&&null!==(r=t.location)&&void 0!==r&&r.state?this.props.location.state.lastError:"",l=!(null===(i=this.props)||void 0===i||null===(o=i.location)||void 0===o||!o.state)&&this.props.location.state.showError;e.autoLogoutFrom&&(s="sessionTimeout",l=!0),void 0===l&&(l=!1),this.state={loading:!1,showingError:l,lastError:s,showDialog:cc.NONE,initialUser:a}}render(){var e,t;const{cannotSubmit:n,isSales:i}=this.props,{destination:o}=(null===(e=this.props)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.state)||this.state.autoLogoutFrom||this.props.needsToChangePassword&&{destination:{pathname:"/passreset",state:{message:En("passwordExpired")}}}||(n?i?{destination:{pathname:"/sales"}}:{destination:{pathname:"/help"}}:{destination:{pathname:"/ticket"}}),a=document.getElementById("username"),{classes:s}=this.props;let l="";this.state.showDialog===cc.CREATEACCOUNT?l=(0,Ye.jsx)($l,{closeDialog:this.closeDialog}):this.state.showDialog===cc.FORGOTPASSWORD&&(l=(0,Ye.jsx)(tc,{closeDialog:this.closeDialog,defaultEmail:a}));let c="",u="",d="";"True"===ic("login","hasHeader")?c=(0,Ye.jsx)("div",{className:s.header,children:(0,Ye.jsx)("img",{className:s.headerLogo,"data-component":"login","data-classname":"headerLogo",src:"branding/GetImage?fileType=loginLogo",alt:"AdShuttle"})}):u=(0,Ye.jsx)("div",{className:s.logo,"data-component":"login","data-classname":"logo",children:(0,Ye.jsx)("img",{"data-component":"login","data-classname":"logo",src:"branding/GetImage?fileType=loginLogo",alt:"AdShuttle"})});let p=ic("login","showCovers"),h=(0,Ye.jsx)("div",{className:s.covers,children:(0,Ye.jsx)("img",{src:"branding/GetImage?fileType=covers",alt:"Previous Issue Covers"})});return d="Right"===p?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{className:s.layout,children:[this.buildLoginBox()," ",h]}),(0,Ye.jsx)("div",{className:s.helpBelowLogin,children:(0,Ye.jsx)(ac,{showButton:!0,showDialog:this.props.showSupport})})]}):"Left"===p?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{className:s.layout,children:[h," ",this.buildLoginBox()]}),(0,Ye.jsx)("div",{className:s.helpBelowLogin,children:(0,Ye.jsx)(ac,{showButton:!0,showDialog:this.props.showSupport})})]}):"Top"===p?(0,Ye.jsxs)(r.Fragment,{children:[h,(0,Ye.jsx)("div",{className:s.layout,children:this.buildLoginBox()}),(0,Ye.jsx)("div",{className:s.helpBelowLogin,children:(0,Ye.jsx)(ac,{showButton:!0,showDialog:this.props.showSupport})})]}):"Bottom"===p?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:s.layout,children:this.buildLoginBox()}),h,(0,Ye.jsx)("div",{className:s.helpBelowLogin,children:(0,Ye.jsx)(ac,{showButton:!0,showDialog:this.props.showSupport})})]}):"BelowHelp"===p?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:s.layout,children:this.buildLoginBox()}),(0,Ye.jsx)("div",{className:s.helpBelowLogin,children:(0,Ye.jsx)(ac,{showButton:!0,showDialog:this.props.showSupport})}),h]}):(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:s.layout,children:this.buildLoginBox()}),(0,Ye.jsx)("div",{className:s.helpBelowLogin,children:(0,Ye.jsx)(ac,{showButton:!0,showDialog:this.props.showSupport})})]}),o&&"/help/support"===o.pathname&&(o.pathname="/"),this.props.isAuthenticated?(0,Ye.jsx)(ge,{to:o,replace:!0}):(0,Ye.jsxs)("div",{className:s.contentWrapper,children:[c,(0,Ye.jsxs)("div",{className:s.loginBody,children:[(0,Ye.jsx)("div",{className:s.spaceAboveLogo}),u,(0,Ye.jsx)("div",{className:s.textAboveLogin,children:r.createElement("span",{dangerouslySetInnerHTML:{__html:En("textAboveLogin")}})}),d]}),(0,Ye.jsxs)(Aa,{open:this.state.showingError,onClose:this.closeError,"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:En(this.state.lastError)})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeError,color:"secondary",variant:"contained",autoFocus:!0,children:En("ok")})})]}),(0,Ye.jsx)("div",{className:s.bottomBar,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsxs)("span",{className:s.bottomSegment,children:[En("copyright")," ",En("workflowSolutions")]}),(0,Ye.jsx)("span",{className:s.bottomSegment,children:(0,Ye.jsx)(je,{to:"/terms",target:"_blank",children:En("terms")})}),(0,Ye.jsx)("span",{className:s.bottomSegment,children:(0,Ye.jsx)(je,{to:"/privacy",target:"_blank",children:En("privacyPolicy")})})]})}),l]})}}const pc=pn(dc,e=>{var t={contentWrapper:{minHeight:"100vh",display:"flex",flexDirection:"column"},header:{background:"#FFF"},textAboveLogin:{textAlign:"center"},loginBody:{flex:"1 0 auto",background:"#ABC"},logo:{textAlign:"center",marginTop:e.spacing(3),"& img":{height:"inherit"}},covers:{textAlign:"center","& img":{width:"inherit",height:"inherit"}},layout:{display:"flex",justifyContent:"center",alignItems:"flex-start"},paper:{minWidth:"350px",maxWidth:"400px",marginTop:e.spacing(4),marginLeft:e.spacing(3),marginRight:e.spacing(3),display:"flex",flexDirection:"column",alignItems:"center",padding:"".concat(e.spacing(2)," ").concat(e.spacing(3)," ").concat(e.spacing(1))},form:{width:"100%",paddingTop:"6px"},forgotPassword:{display:"inline",float:"right",padding:"4px",marginTop:"2px"},checkboxPadding:{padding:"4px",marginLeft:"8px"},loginBoxBottomContent:{alignSelf:"center"},submitWrapper:{margin:e.spacing(1),textAlign:"center",display:"block"},submit:{paddingLeft:"64px",paddingRight:"64px"},buttonProgress:{color:_o.A[500],position:"relative",top:"8px",left:"-95px",marginTop:0,marginRight:0},helpBelowLogin:{textAlign:"center",paddingTop:e.spacing(6)},bottomBar:{flexShrink:"0",textAlign:"center",padding:"1em","& p":{color:ic("login","footerForegroundColor")},"& p a":{color:ic("login","footerLinkColor")},"& p a:visited":{color:ic("login","footerLinkColor")}},bottomSegment:{paddingLeft:"0.5em",paddingRight:"0.5em"},bottomIcon:{verticalAlign:"middle",marginRight:"4px"}};t=rc(e,t,"login");let n=ic("login","background");return n&&n.length>0?document.body.style.background=n:document.body.style.background=t.loginBody.background,t},{withTheme:!0});class hc extends r.Component{constructor(e){super(e),this.displayName=hc.name,this.state={loading:!0}}componentDidMount(){fetch("SvrUser/LogOut",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.props.onLogoutCompleted(e.loggedIn,null),this.setState({loading:!1})})}render(){const{classes:e}=this.props;return this.state.loading?(0,Ye.jsx)("div",{className:e.centeredSpinner,children:(0,Ye.jsx)(At,{size:50})}):(0,Ye.jsx)(ge,{to:"/",replace:!0})}}const fc=pn(hc,e=>({centeredSpinner:{marginLeft:"auto",marginRight:"auto",width:"50px"}}));class mc extends r.Component{constructor(){super(...arguments),this.displayName=mc.name,this.printMe=()=>{window.print()}}render(){let{classes:e}=this.props;return(0,Ye.jsxs)("div",{className:e.layout,children:[(0,Ye.jsxs)(Vl,{container:!0,children:[(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.logo,
2children:(0,Ye.jsx)("img",{src:"/AdShuttleLogo.png",alt:"AdShuttle"})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.printPage,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{href:"/terms#",onClick:()=>this.printMe(),children:En("printThisPage")})})})]}),(0,Ye.jsx)(Tn,{variant:"h6",align:"center",children:(0,Ye.jsx)("u",{children:En("termsOfUse")})}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("termsP1")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("termsP2")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("termsP3")}),(0,Ye.jsxs)("ol",{children:[(0,Ye.jsxs)("li",{children:[(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms10")}),(0,Ye.jsxs)("ol",{children:[(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms11")})}),(0,Ye.jsxs)("li",{children:[(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms12P1")}),(0,Ye.jsxs)("ul",{children:[(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms12a")})}),(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms12b")})}),(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms12c")})}),(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms12d")})}),(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms12e")})})]}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms12P2")})]}),(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms13")})}),(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms14")}
2)}),(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms15")})})]})]}),(0,Ye.jsxs)("li",{children:[(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms20")}),(0,Ye.jsx)("ol",{children:(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms21")})})})]}),(0,Ye.jsxs)("li",{children:[(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms30")}),(0,Ye.jsx)("ol",{children:(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms31")})})})]}),(0,Ye.jsxs)("li",{children:[(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms40")}),(0,Ye.jsxs)("ol",{children:[(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms41")})}),(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms42")})})]})]}),(0,Ye.jsxs)("li",{children:[(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms50")}),(0,Ye.jsx)("ol",{children:(0,Ye.jsx)("li",{children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("terms51")})})})]})]})]})}}const gc=pn(mc,e=>({layout:{width:"88%",display:"block",marginTop:e.spacing(3),marginBottom:e.spacing(5),marginLeft:"auto",marginRight:"auto","& ol":{listStyleType:"none",counterReset:"item",padding:"0"},"& ol > li":{display:"table",counterIncrement:"item"},"& ol > li:before":{content:'counters(item, ".") ". "',display:"table-cell",paddingRight:"1.0em"},"& li ol > li":{margin:"0"},"& li ol > li:before":{content:'counters(item, ".") " "'},"& p":{marginTop:"0.5em",marginBottom:"0.5em"}},logo:{textAlign:"left"},printPage:{textAlign:"right",paddingTop:"1em"},denseText:{lineHeight:"1.2"}}));class vc extends r.Component{constructor(){super(...arguments),this.displayName=vc.name,this.printMe=()=>{window.print()}}render(){let{classes:e}=this.props;return(0,Ye.jsxs)("div",{className:e.layout,children:[(0,Ye.jsxs)(Vl,{container:!0,children:[(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.logo,children:(0,Ye.jsx)("img",{src:"/AdShuttleLogo.png",alt:"AdShuttle"})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,className:e.printPage,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{href:"/privacy#",onClick:()=>this.printMe(),children:En("printThisPage")})})})]}),(0,Ye.jsx)(Tn,{variant:"h6",align:"center",children:(0,Ye.jsx)("u",{children:En("asPrivacyPolicy")})}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("privacyP1")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:(0,Ye.jsx)("u",{children:En("privacyS1H")})}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("privacyS1P1")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("privacyS1P2")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("privacyS1P3")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:(0,Ye.jsx)("u",{children:En("privacyS2H")})}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("privacyS2P1")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("privacyS2P2")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:(0,Ye.jsx)("u",{children:En("privacyS3H")})}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:En("privacyS3P1")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.denseText,children:(0,Ye.jsx)("u",{children:En("privacyS4H")})}),(0,Ye.jsxs)(Tn,{variant:"body2",className:e.denseText,children:[En("privacyS4P1")," ",(0,Ye.jsx)("a",{href:"mailto:"+En("supportEmail"),children:En("supportEmail")})]})]})}}const yc=pn(vc,e=>({layout:{width:"88%",display:"block",marginTop:e.spacing(3),marginBottom:e.spacing(5),marginLeft:"auto",marginRight:"auto","& p":{marginTop:"1.0em",marginBottom:"1.0em"}},logo:{textAlign:"left"},printPage:{textAlign:"right",paddingTop:"0.5em"},denseText:{lineHeight:"1.2"}}));function bc(e){return function(t){let n=$();return(0,Ye.jsx)(e,Fe(Fe({},t),{},{location:n}))}}class xc extends r.Component{constructor(e){super(e),this.displayName=xc.name,this.state={loading:!0,lastMessage:"activatingAccount",redirectToLogin:!1}}componentDidMount(){fetch("SvrUser/ActivateUser"+this.props.location.search,{credentials:"same-origin"}).then(e=>e.json()).then(e=>{!0===e.success?e.alreadyActive?this.setState({loading:!1,redirectToLogin:!0}):this.setState({loading:!1,lastMessage:"activationComplete"}):this.setState({loading:!1,lastMessage:e.error})})}render(){const{classes:e}=this.props,{loading:t}=this.state;let n="",r="";return t?n=(0,Ye.jsx)(At,{size:60}):r=(0,Ye.jsx)("div",{className:e.topSpace,children:(0,Ye.jsx)(je,{to:"/",replace:!0,children:(0,Ye.jsx)(kr,{color:"primary",variant:"contained",children:En("ok")})})}),(0,Ye.jsxs)("div",{className:e.layout,children:[this.state.redirectToLogin?(0,Ye.jsx)(ge,{to:{pathname:"/",state:{showError:!0,lastError:"accountAlreadyActivated"}},replace:!0}):"",(0,Ye.jsxs)(xn,{className:e.paper,children:[n,(0,Ye.jsx)("div",{className:e.topSpace,children:(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.lastMessage)})}),r]})]})}}const Sc=bc(pn(xc,e=>({layout:{width:"auto",display:"block",marginLeft:e.spacing(3),marginRight:e.spacing(3),[e.breakpoints.up(400+e.spacing(6))]:{width:400,marginLeft:"auto",marginRight:"auto"}},paper:{marginTop:e.spacing(4),display:"flex",flexDirection:"column",alignItems:"center",padding:"".concat(e.spacing(2)," ").concat(e.spacing(3)," ").concat(e.spacing(1))},topSpace:{marginTop:e.spacing(4)}}
vendor: 4,290 bytes, line 2
2)));var wc=n(98139),_c=n.n(wc),kc=n(98348),Mc=n(92374);function Cc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tc(e){return e instanceof Cc(e).Element||e instanceof Element}function Ac(e){return e instanceof Cc(e).HTMLElement||e instanceof HTMLElement}function Ec(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Cc(e).ShadowRoot||e instanceof ShadowRoot)}var jc=Math.max,Nc=Math.min,Ic=Math.round;function Dc(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Pc(){return!/^((?!chrome|android).)*safari/i.test(Dc())}function Lc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ac(e)&&(i=e.offsetWidth>0&&Ic(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ic(r.height)/e.offsetHeight||1);var a=(Tc(e)?Cc(e):window).visualViewport,s=!Pc()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Rc(e){var t=Cc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Oc(e){return e?(e.nodeName||"").toLowerCase():null}function zc(e){return((Tc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fc(e){return Lc(zc(e)).left+Rc(e).scrollLeft}function Bc(e){return Cc(e).getComputedStyle(e)}function Uc(e){var t=Bc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Hc(e,t,n){void 0===n&&(n=!1);var r=Ac(t),i=Ac(t)&&function(e){var t=e.getBoundingClientRect(),n=Ic(t.width)/e.offsetWidth||1,r=Ic(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=zc(t),a=Lc(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Oc(t)||Uc(o))&&(s=function(e){return e!==Cc(e)&&Ac(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Rc(e);var t}(t)),Ac(t)?((l=Lc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Fc(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Wc(e){var t=Lc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Vc(e){return"html"===Oc(e)?e:e.assignedSlot||e.parentNode||(Ec(e)?e.host:null)||zc(e)}function Gc(e){return["html","body","#document"].indexOf(Oc(e))>=0?e.ownerDocument.body:Ac(e)&&Uc(e)?e:Gc(Vc(e))}function qc(e,t){var n;void 0===t&&(t=[]);var r=Gc(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Cc(r),a=i?[o].concat(o.visualViewport||[],Uc(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(qc(Vc(a)))}function Kc(e){return["table","td","th"].indexOf(Oc(e))>=0}function Yc(e){return Ac(e)&&"fixed"!==Bc(e).position?e.offsetParent:null}function Xc(e){for(var t=Cc(e),n=Yc(e);n&&Kc(n)&&"static"===Bc(n).position;)n=Yc(n);return n&&("html"===Oc(n)||"body"===Oc(n)&&"static"===Bc(n).position)?t:n||function(e){var t=/firefox/i.test(Dc());if(/Trident/i.test(Dc())&&Ac(e)&&"fixed"===Bc(e).position)return null;var n=Vc(e);for(Ec(n)&&(n=n.host);Ac(n)&&["html","body"].indexOf(Oc(n))<0;){var r=Bc(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Zc="top",Qc="bottom",Jc="right",$c="left",eu="auto",tu=[Zc,Qc,Jc,$c],nu="start",ru="end",iu="viewport",ou="popper",au=tu.reduce(function(e,t){return e.concat([t+"-"+nu,t+"-"+ru])},[]),su=[].concat(tu,[eu]).reduce(function(e,t){return e.concat([t,t+"-"+nu,t+"-"+ru])},[]),lu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function cu(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function uu(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}
2var du={placement:"bottom",modifiers:[],strategy:"absolute"};function pu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"===typeof e.getBoundingClientRect)})}function hu(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?du:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},du,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:Tc(e)?qc(e):e.contextElement?qc(e.contextElement):[],popper:qc(t)};var u=function(e){var t=cu(e);return lu.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}}),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(pu(t,n)){i.rects={reference:Hc(t,Xc(n),"fixed"===i.options.strategy),popper:Wc(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:uu(function(){return new Promise(function(e){l.forceUpdate(),e(i)})}),destroy:function(){c(),s=!0}};if(!pu(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var fu={passive:!0};function mu(e){return e.split("-")[0]}function gu(e){return e.split("-")[1]}function vu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yu(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?mu(i):null,a=i?gu(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case Zc:t={x:s,y:n.y-r.height};break;case Qc:t={x:s,y:n.y+n.height};break;case Jc:t={x:n.x+n.width,y:l};break;case $c:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?vu(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case nu:t[c]=t[c]-(n[u]/2-r[u]/2);break;case ru:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var bu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xu(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,f=a.y,m=void 0===f?0:f,g="function"===typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=$c,x=Zc,S=window;if(c){var w=Xc(n),_="clientHeight",k="clientWidth";if(w===Cc(n)&&"static"!==Bc(w=zc(n)).position&&"absolute"===s&&(_="scrollHeight",k="scrollWidth"),i===Zc||(i===$c||i===Jc)&&o===ru)x=Qc,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[_])-r.height,m*=l?1:-1;if(i===$c||(i===Zc||i===Qc)&&o===ru)b=Jc,h-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[k])-r.width,h*=l?1:-1}var M,C=Object.assign({position:s},c&&bu),T=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ic(n*i)/i||0,y:Ic(r*i)/i||0}}({x:h,y:m},Cc(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},C,((M={})[x]=y?"0":"",M[b]=v?"0":"",M.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",M)):Object.assign({},C,((t={})[x]=y?m+"px":"",t[b]=v?h+"px":"",t.transform="",t))}const Su={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;
vendor: 4,245 bytes, line 2
2Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Ac(i)&&Oc(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ac(r)&&Oc(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};const wu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=su.reduce(function(e,n){return e[n]=function(e,t,n){var r=mu(e),i=[$c,Zc].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[$c,Jc].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var _u={left:"right",right:"left",bottom:"top",top:"bottom"};function ku(e){return e.replace(/left|right|bottom|top/g,function(e){return _u[e]})}var Mu={start:"end",end:"start"};function Cu(e){return e.replace(/start|end/g,function(e){return Mu[e]})}function Tu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ec(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Au(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Eu(e,t,n){return t===iu?Au(function(e,t){var n=Cc(e),r=zc(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Pc();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Fc(e),y:l}}(e,n)):Tc(t)?function(e,t){var n=Lc(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Au(function(e){var t,n=zc(e),r=Rc(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=jc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=jc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Fc(e),l=-r.scrollTop;return"rtl"===Bc(i||n).direction&&(s+=jc(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(zc(e)))}function ju(e,t,n,r){var i="clippingParents"===t?function(e){var t=qc(Vc(e)),n=["absolute","fixed"].indexOf(Bc(e).position)>=0&&Ac(e)?Xc(e):e;return Tc(n)?t.filter(function(e){return Tc(e)&&Tu(e,n)&&"body"!==Oc(e)}):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(t,n){var i=Eu(e,n,r);return t.top=jc(i.top,t.top),t.right=Nc(i.right,t.right),t.bottom=Nc(i.bottom,t.bottom),t.left=jc(i.left,t.left),t},Eu(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Nu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Iu(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Du(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?iu:c,d=n.elementContext,p=void 0===d?ou:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,v=Nu("number"!==typeof g?g:Iu(g,tu)),y=p===ou?"reference":ou,b=e.rects.popper,x=e.elements[f?y:p],S=ju(Tc(x)?x:x.contextElement||zc(e.elements.popper),l,u,a),w=Lc(e.elements.reference),_=yu({reference:w,element:b,strategy:"absolute",placement:i}),k=Au(Object.assign({},b,_)),M=p===ou?k:w,C={top:S.top-M.top+v.top,bottom:M.bottom-S.bottom+v.bottom,left:S.left-M.left+v.left,right:M.right-S.right+v.right},T=e.modifiersData.offset;if(p===ou&&T){var A=T[i];
vendor: 5,185 bytes, line 2
2Object.keys(C).forEach(function(e){var t=[Jc,Qc].indexOf(e)>=0?1:-1,n=[Zc,Qc].indexOf(e)>=0?"y":"x";C[e]+=A[n]*t})}return C}const Pu={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=mu(g),y=l||(v===g||!f?[ku(g)]:function(e){if(mu(e)===eu)return[];var t=ku(e);return[Cu(e),t,Cu(t)]}(g)),b=[g].concat(y).reduce(function(e,n){return e.concat(mu(n)===eu?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?su:l,u=gu(r),d=u?s?au:au.filter(function(e){return gu(e)===u}):tu,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var h=p.reduce(function(t,n){return t[n]=Du(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[mu(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),x=t.rects.reference,S=t.rects.popper,w=new Map,_=!0,k=b[0],M=0;M<b.length;M++){var C=b[M],T=mu(C),A=gu(C)===nu,E=[Zc,Qc].indexOf(T)>=0,j=E?"width":"height",N=Du(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),I=E?A?Jc:$c:A?Qc:Zc;x[j]>S[j]&&(I=ku(I));var D=ku(I),P=[];if(o&&P.push(N[T]<=0),s&&P.push(N[I]<=0,N[D]<=0),P.every(function(e){return e})){k=C,_=!1;break}w.set(C,P)}if(_)for(var L=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Lu(e,t,n){return jc(e,Nc(t,n))}const Ru={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=Du(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=mu(t.placement),y=gu(t.placement),b=!y,x=vu(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,M="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"===typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(w){if(o){var E,j="y"===x?Zc:$c,N="y"===x?Qc:Jc,I="y"===x?"height":"width",D=w[x],P=D+g[j],L=D-g[N],R=h?-k[I]/2:0,O=y===nu?_[I]:k[I],z=y===nu?-k[I]:-_[I],F=t.elements.arrow,B=h&&F?Wc(F):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=U[j],W=U[N],V=Lu(0,_[I],B[I]),G=b?_[I]/2-R-V-H-C.mainAxis:O-V-H-C.mainAxis,q=b?-_[I]/2+R+V+W+C.mainAxis:z+V+W+C.mainAxis,K=t.elements.arrow&&Xc(t.elements.arrow),Y=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,X=null!=(E=null==T?void 0:T[x])?E:0,Z=D+q-X,Q=Lu(h?Nc(P,D+G-X-Y):P,D,h?jc(L,Z):L);w[x]=Q,A[x]=Q-D}if(s){var J,$="x"===x?Zc:$c,ee="x"===x?Qc:Jc,te=w[S],ne="y"===S?"height":"width",re=te+g[$],ie=te-g[ee],oe=-1!==[Zc,$c].indexOf(v),ae=null!=(J=null==T?void 0:T[S])?J:0,se=oe?re:te-_[ne]-k[ne]-ae+C.altAxis,le=oe?te+_[ne]+k[ne]-ae-C.altAxis:ie,ce=h&&oe?function(e,t,n){var r=Lu(e,t,n);return r>n?n:r}(se,te,le):Lu(h?se:re,te,h?le:ie);w[S]=ce,A[S]=ce-te}t.modifiersData[r]=A}},requiresIfExists:["offset"]};const Ou={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mu(n.placement),l=vu(s),c=[$c,Jc].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return Nu("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Iu(e,tu))}(i.padding,n),d=Wc(o),p="y"===l?Zc:$c,h="y"===l?Qc:Jc,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=Xc(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[p],x=v-d[c]-u[h],S=v/2-d[c]/2+y,w=Lu(b,S,x),_=l;n.modifiersData[r]=((t={})[_]=w,t.centerOffset=w-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Tu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zu(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fu(e){return[Zc,Jc,Qc,$c].some(function(t){return e[t]>=0})}var Bu=hu({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=Cc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);
2return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,fu)}),s&&l.addEventListener("resize",n.update,fu),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,fu)}),s&&l.removeEventListener("resize",n.update,fu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=yu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:mu(t.placement),variation:gu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xu(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xu(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Su,wu,Pu,Ru,Ou,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Du(t,{elementContext:"reference"}),s=Du(t,{altBoundary:!0}),l=zu(a,r),c=zu(s,i,o),u=Fu(l),d=Fu(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Uu(e){return(0,ut.Ay)("MuiPopper",e)}(0,ct.A)("MuiPopper",["root"]);const Hu=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Wu=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Vu(e){return"function"===typeof e?e():e}function Gu(e){return void 0!==e.nodeType}const qu={},Ku=r.forwardRef(function(e,t){var n;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:f={},TransitionProps:m}=e,g=(0,rt.A)(e,Hu),v=r.useRef(null),y=(0,Ri.A)(v,t),b=r.useRef(null),x=(0,Ri.A)(b,p),S=r.useRef(x);(0,Fi.A)(()=>{S.current=x},[x]),r.useImperativeHandle(p,()=>b.current,[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,a),[_,k]=r.useState(w),[M,C]=r.useState(Vu(i));r.useEffect(()=>{b.current&&b.current.forceUpdate()}),r.useEffect(()=>{i&&C(Vu(i))},[i]),(0,Fi.A)(()=>{if(!M||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;(e=>{k(e.placement)})(t)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Bu(M,v.current,(0,Be.A)({placement:w},d,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}},[M,s,l,c,d,w]);const T={placement:_};null!==m&&(T.TransitionProps=m);const A=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"]},Uu,t)})(e),E=null!=(n=f.root)?n:"div",j=No({elementType:E,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:A.root});return(0,Ye.jsx)(E,(0,Be.A)({},j,{children:"function"===typeof o?o(T):o}))}),Yu=r.forwardRef(function(e,t){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=qu,popperRef:h,style:f,transition:m=!1,slotProps:g={},slots:v={}}=e,y=(0,rt.A)(e,Wu),[b,x]=r.useState(!0);if(!l&&!u&&(!m||b))return null;let S;if(o)S=o;else if(n){const e=Vu(n);S=e&&Gu(e)?(0,Do.A)(e).body:(0,Do.A)(null).body}
2const w=u||!l||m&&!b?void 0:"none",_=m?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,Ye.jsx)(Fo,{disablePortal:s,container:S,children:(0,Ye.jsx)(Ku,(0,Be.A)({anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:t,open:m?!b:u,placement:d,popperOptions:p,popperRef:h,slotProps:g,slots:v},y,{style:(0,Be.A)({position:"fixed",top:0,left:0,display:w},f),TransitionProps:_,children:i}))})}),Xu=Yu,Zu=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Qu=(0,lt.Ay)(Xu,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ju=r.forwardRef(function(e,t){var n;const r=(0,Mc.A)(),i=(0,Ue.b)({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:v,slots:y,slotProps:b}=i,x=(0,rt.A)(i,Zu),S=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,w=(0,Be.A)({anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:m,popperRef:g,transition:v},x);return(0,Ye.jsx)(Qu,(0,Be.A)({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=b?b:l},w,{ref:t}))});var $u=n(45879);function ed(e){return(0,ut.Ay)("MuiTooltip",e)}const td=(0,ct.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nd=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const rd=(0,lt.Ay)(Ju,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(e=>{let{theme:t,ownerState:n,open:r}=e;return(0,Be.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(td.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(td.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(td.arrow)]:(0,Be.A)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(td.arrow)]:(0,Be.A)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})}),id=(0,lt.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,st.A)(n.placement.split("-")[0]))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,mn.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat((r=16/14,Math.round(1e5*r)/1e5),"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(td.popper,'[data-popper-placement*="left"] &')]:(0,Be.A)({transformOrigin:"right center"},n.isRtl?(0,Be.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,Be.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[".".concat(td.popper,'[data-popper-placement*="right"] &')]:(0,Be.A)({transformOrigin:"left center"},n.isRtl?(0,Be.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,Be.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[".".concat(td.popper,'[data-popper-placement*="top"] &')]:(0,Be.A)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[".".concat(td.popper,'[data-popper-placement*="bottom"] &')]:(0,Be.A)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})});var r}),od=(0,lt.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,mn.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}});let ad=!1;const sd=new Gn.E;let ld={x:0,y:0};function cd(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t&&t(n,...i),e(n,...i)}}const ud=r.forwardRef(function(e,t){var n,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,x,S;const w=(0,Ue.b)({props:e,name:"MuiTooltip"}
2),{arrow:_=!1,children:k,components:M={},componentsProps:C={},describeChild:T=!1,disableFocusListener:A=!1,disableHoverListener:E=!1,disableInteractive:j=!1,disableTouchListener:N=!1,enterDelay:I=100,enterNextDelay:D=0,enterTouchDelay:P=700,followCursor:L=!1,id:R,leaveDelay:O=0,leaveTouchDelay:z=1500,onClose:F,onOpen:B,open:U,placement:H="bottom",PopperComponent:W,PopperProps:V={},slotProps:G={},slots:q={},title:K,TransitionComponent:Y=gs,TransitionProps:X}=w,Z=(0,rt.A)(w,nd),Q=r.isValidElement(k)?k:(0,Ye.jsx)("span",{children:k}),J=Et(),$=Ya(),[ee,te]=r.useState(),[ne,re]=r.useState(null),ie=r.useRef(!1),oe=j||L,ae=(0,Gn.A)(),se=(0,Gn.A)(),le=(0,Gn.A)(),ce=(0,Gn.A)(),[ue,de]=(0,mi.A)({controlled:U,default:!1,name:"Tooltip",state:"open"});let pe=ue;const he=(0,$u.A)(R),fe=r.useRef(),me=(0,Pn.A)(()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),ce.clear()});r.useEffect(()=>me,[me]);const ge=e=>{sd.clear(),ad=!0,de(!0),B&&!pe&&B(e)},ve=(0,Pn.A)(e=>{sd.start(800+O,()=>{ad=!1}),de(!1),F&&pe&&F(e),ae.start(J.transitions.duration.shortest,()=>{ie.current=!1})}),ye=e=>{ie.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),I||ad&&D?se.start(ad?D:I,()=>{ge(e)}):ge(e))},be=e=>{se.clear(),le.start(O,()=>{ve(e)})},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:_e}=(0,Ln.A)(),[,ke]=r.useState(!1),Me=e=>{Se(e),!1===xe.current&&(ke(!1),be(e))},Ce=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(ke(!0),ye(e))},Te=e=>{ie.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Ae=e=>{Te(e),le.clear(),ae.clear(),me(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(P,()=>{document.body.style.WebkitUserSelect=fe.current,ye(e)})},Ee=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),le.start(z,()=>{ve(e)})};r.useEffect(()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}},[ve,pe]);const je=(0,Dn.A)(Io(Q),_e,te,t);K||0===K||(pe=!1);const Ne=r.useRef(),Ie={},De="string"===typeof K;T?(Ie.title=pe||!De||E?null:K,Ie["aria-describedby"]=pe?he:null):(Ie["aria-label"]=De?K:null,Ie["aria-labelledby"]=pe&&!De?he:null);const Pe=(0,Be.A)({},Ie,Z,Q.props,{className:(0,it.A)(Z.className,Q.props.className),onTouchStart:Te,ref:je},L?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),ld={x:e.clientX,y:e.clientY},Ne.current&&Ne.current.update()}}:{});const Le={};N||(Pe.onTouchStart=Ae,Pe.onTouchEnd=Ee),E||(Pe.onMouseOver=cd(ye,Pe.onMouseOver),Pe.onMouseLeave=cd(be,Pe.onMouseLeave),oe||(Le.onMouseOver=ye,Le.onMouseLeave=be)),A||(Pe.onFocus=cd(Ce,Pe.onFocus),Pe.onBlur=cd(Me,Pe.onBlur),oe||(Le.onFocus=Ce,Le.onBlur=Me));const Re=r.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=V.popperOptions)&&e.modifiers&&(t=t.concat(V.popperOptions.modifiers)),(0,Be.A)({},V.popperOptions,{modifiers:t})},[ne,V]),Oe=(0,Be.A)({},w,{isRtl:$,arrow:_,disableInteractive:oe,placement:H,PopperComponentProp:W,touch:ie.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch","tooltipPlacement".concat((0,st.A)(o.split("-")[0]))],arrow:["arrow"]};return(0,ot.A)(a,ed,t)})(Oe),Fe=null!=(n=null!=(i=q.popper)?i:M.Popper)?n:rd,He=null!=(o=null!=(a=null!=(s=q.transition)?s:M.Transition)?a:Y)?o:gs,We=null!=(l=null!=(c=q.tooltip)?c:M.Tooltip)?l:id,Ve=null!=(u=null!=(d=q.arrow)?d:M.Arrow)?u:od,Ge=Mo(Fe,(0,Be.A)({},V,null!=(p=G.popper)?p:C.popper,{className:(0,it.A)(ze.popper,null==V?void 0:V.className,null==(h=null!=(f=G.popper)?f:C.popper)?void 0:h.className)}),Oe),qe=Mo(He,(0,Be.A)({},X,null!=(m=G.transition)?m:C.transition),Oe),Ke=Mo(We,(0,Be.A)({},null!=(g=G.tooltip)?g:C.tooltip,{className:(0,it.A)(ze.tooltip,null==(v=null!=(y=G.tooltip)?y:C.tooltip)?void 0:v.className)}),Oe),Xe=Mo(Ve,(0,Be.A)({},null!=(b=G.arrow)?b:C.arrow,{className:(0,it.A)(ze.arrow,null==(x=null!=(S=G.arrow)?S:C.arrow)?void 0:x.className)}),Oe);return(0,Ye.jsxs)(r.Fragment,{children:[r.cloneElement(Q,Pe),(0,Ye.jsx)(Fe,(0,Be.A)({as:null!=W?W:Ju,placement:H,anchorEl:L?{getBoundingClientRect:()=>({top:ld.y,left:ld.x,right:ld.x,bottom:ld.y,width:0,height:0})}:ee,popperRef:Ne,open:!!ee&&pe,id:he,transition:!0},Le,Ge,{popperOptions:Re,children:e=>{let{TransitionProps:t}=e;return(0,Ye.jsx)(He,(0,Be.A)({timeout:J.transitions.duration.shorter},t,qe,{children:(0,Ye.jsxs)(We,(0,Be.A)({},Ke,{children:[K,_?(0,Ye.jsx)(Ve,(0,Be.A)({},Xe,{ref:re})):null]}))}))}}))]})}),dd=pn(ud,e=>({tooltip:{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:320,fontSize:e.typography.pxToRem(12),border:"1px solid #929292",marginBottom:-5,marginLeft:5}}));class pd extends r.Component{constructor(){super(...arguments),this.displayName=pd.name,this.unimpersonate=()=>{const{userInfo:e}=this.props;e.isImpersonating&&fetch("SvrISR/EndImpersonation",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.updateUserInfo(e.userInfo),this.props.updateSubmission({redirectLocation:"/isr"}
2)):this.props.showBackgroundDialog(En(e.error))})}}render(){const{classes:e,userInfo:t}=this.props;var n=(0,Ye.jsx)("span",{className:e.separated,children:t.fullName}),i=(0,Ye.jsx)("span",{className:_c()(e.separated,e.password),children:jn("passwordExpiredSoon",t.passwordExpirationDays)});let o=(0,Ye.jsxs)("ul",{children:[(0,Ye.jsx)("div",{children:En("passwordPolicyChanged")}),(0,Ye.jsxs)("li",{children:[En("passwordMustBeLength")," "]}),(0,Ye.jsxs)("li",{children:[En("passwordDigit")," "]}),(0,Ye.jsx)("li",{children:En("passwordSpecialChar")}),(0,Ye.jsx)("li",{children:En("passwordUpperLetter")}),(0,Ye.jsx)("li",{children:En("passwordExpiration")})]});return t.isImpersonating&&(n=(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("span",{className:e.separated,children:[t.fullName," ",En("isImpersonating")]})," |",(0,Ye.jsx)(kr,{id:"btnUnimpersonate",className:e.linkButton,variant:"text",size:"small",onClick:()=>this.unimpersonate(),children:jn("stopImpersonating",t.impersonator)})]})),(0,Ye.jsxs)("div",{className:e.header,children:[(0,Ye.jsx)("img",{src:"Branding/GetImage?fileType=logo",alt:"AdShuttle",className:e.logo}),(0,Ye.jsx)("div",{className:e.userActions,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[t.passwordExpirationDays>0&&(0,Ye.jsxs)(r.Fragment,{children:[i,(0,Ye.jsx)(dd,{placement:"top-start",title:(0,Ye.jsx)(r.Fragment,{children:(0,Ye.jsx)(Tn,{color:"inherit",children:o})}),children:(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(kc.A,{value:"passwordInfo",style:{marginRight:"-15px",marginLeft:"10px",fill:"#315778"}}),label:(0,Ye.jsx)(Tn,{style:{fontWeight:"bold"}})})})]}),n," |",(0,Ye.jsx)("span",{className:e.separated,children:(0,Ye.jsx)(je,{to:"/logout",children:En("logout")})})]})})]})}}const hd=pn(pd,e=>{var t={header:{flex:"1 100%"},logo:{float:"left"},password:{color:"red",fontWeight:"bold"},separated:{paddingLeft:"8px",paddingRight:"8px"},linkButton:{verticalAlign:"baseline",marginLeft:"3px",padding:"1px 8px",textDecoration:"underline",color:ic("mainLayout","headerLinkColor")},userActions:{float:"right",padding:"5px","& p":{color:ic("mainLayout","headerForegroundColor")},"& p a":{color:ic("mainLayout","headerLinkColor")},"& p a:visited":{color:ic("mainLayout","headerLinkColor")}}};return t=rc(e,t,"header")},{withTheme:!0});class fd extends r.Component{constructor(){super(...arguments),this.displayName=fd.name}render(){const{classes:e}=this.props;return(0,Ye.jsx)("div",{className:e.footer,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsxs)("span",{className:e.spaced,children:[En("copyright")," ",En("workflowSolutions")]}),(0,Ye.jsx)("span",{className:e.spaced,children:(0,Ye.jsx)(je,{to:"/terms",target:"_blank",children:En("terms")})}),(0,Ye.jsx)("span",{className:e.spaced,children:(0,Ye.jsx)(je,{to:"/privacy",target:"_blank",children:En("privacyPolicy")})})]})})}}const md=pn(fd,e=>({footer:{flex:"1 100%",textAlign:"center"},spaced:{paddingLeft:"0.5em",paddingRight:"0.5em"}})),gd=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vd(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=(0,us.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?"translateX(".concat(i?i.right+s-r.left:o.innerWidth+s-r.left,"px)"):"right"===e?"translateX(-".concat(i?r.right-i.left-s:r.left+r.width-s,"px)"):"up"===e?"translateY(".concat(i?i.bottom+l-r.top:o.innerHeight+l-r.top,"px)"):"translateY(-".concat(i?r.top-i.top+r.height-l:r.top+r.height-l,"px)")}(e,t,"function"===typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const yd=r.forwardRef(function(e,t){const n=Et(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=i,in:p,onEnter:h,onEntered:f,onEntering:m,onExit:g,onExited:v,onExiting:y,style:b,timeout:x=o,TransitionComponent:S=Yo}=e,w=(0,rt.A)(e,gd),_=r.useRef(null),k=(0,Dn.A)(Io(l),_,t),M=e=>t=>{e&&(void 0===t?e(_.current):e(_.current,t))},C=M((e,t)=>{vd(u,e,c),Xo(e),h&&h(e,t)}),T=M((e,t)=>{const r=Zo({timeout:x,style:b,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,Be.A)({},r)),e.style.transition=n.transitions.create("transform",(0,Be.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)}),A=M(f),E=M(y),j=M(e=>{const t=Zo({timeout:x,style:b,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),vd(u,e,c),g&&g(e)}),N=M(e=>{e.style.webkitTransition="",e.style.transition="",v&&v(e)}
2),I=r.useCallback(()=>{_.current&&vd(u,_.current,c)},[u,c]);return r.useEffect(()=>{if(p||"down"===u||"right"===u)return;const e=(0,cs.A)(()=>{_.current&&vd(u,_.current,c)}),t=(0,us.A)(_.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[u,p,c]),r.useEffect(()=>{p||I()},[p,I]),(0,Ye.jsx)(S,(0,Be.A)({nodeRef:_,onEnter:C,onEntered:A,onEntering:T,onExit:j,onExited:N,onExiting:E,addEndListener:e=>{a&&a(_.current,e)},appear:s,in:p,timeout:x},w,{children:(e,t)=>r.cloneElement(l,(0,Be.A)({ref:k,style:(0,Be.A)({visibility:"exited"!==e||p?void 0:"hidden"},b,l.props.style)},t))}))}),bd=yd;function xd(e){return(0,ut.Ay)("MuiDrawer",e)}(0,ct.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Sd=["BackdropProps"],wd=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],_d=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},kd=(0,lt.Ay)(ba,{name:"MuiDrawer",slot:"Root",overridesResolver:_d})(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}}),Md=(0,lt.Ay)("div",{shouldForwardProp:In.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:_d})({flex:"0 0 auto"}),Cd=(0,lt.Ay)(xn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["paperAnchor".concat((0,st.A)(n.anchor))],"temporary"!==n.variant&&t["paperAnchorDocked".concat((0,st.A)(n.anchor))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})}),Td={left:"right",right:"left",top:"down",bottom:"up"};const Ad=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiDrawer"}),i=Et(),o=Ya(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h}={},onClose:f,open:m=!1,PaperProps:g={},SlideProps:v,TransitionComponent:y=bd,transitionDuration:b=a,variant:x="temporary"}=n,S=(0,rt.A)(n.ModalProps,Sd),w=(0,rt.A)(n,wd),_=r.useRef(!1);r.useEffect(()=>{_.current=!0},[]);const k=function(e,t){let{direction:n}=e;return"rtl"===n&&function(e){return-1!==["left","right"].indexOf(e)}(t)?Td[t]:t}({direction:o?"rtl":"ltr"},s),M=s,C=(0,Be.A)({},n,{anchor:M,elevation:d,open:m,variant:x},w),T=(e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,st.A)(n)),"temporary"!==r&&"paperAnchorDocked".concat((0,st.A)(n))]};return(0,ot.A)(i,xd,t)})(C),A=(0,Ye.jsx)(Cd,(0,Be.A)({elevation:"temporary"===x?d:0,square:!0},g,{className:(0,it.A)(T.paper,g.className),ownerState:C,children:c}));if("permanent"===x)return(0,Ye.jsx)(Md,(0,Be.A)({className:(0,it.A)(T.root,T.docked,u),ownerState:C,ref:t},w,{children:A}));const E=(0,Ye.jsx)(y,(0,Be.A)({in:m,direction:Td[k],timeout:b,appear:_.current},v,{children:A}));return"persistent"===x?(0,Ye.jsx)(Md,(0,Be.A)({className:(0,it.A)(T.root,T.docked,u),ownerState:C,ref:t},w,{children:E})):(0,Ye.jsx)(kd,(0,Be.A)({BackdropProps:(0,Be.A)({},l,h,{transitionDuration:b}),className:(0,it.A)(T.root,T.modal,u),open:m,ownerState:C,onClose:f,hideBackdrop:p,ref:t},w,S,{children:E}))});function Ed(e){return(0,ut.Ay)("MuiDivider",e)}const jd=(0,ct.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Nd=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Id=(0,lt.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,mn.X4)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})},e=>{let{ownerState:t}=e;return(0,Be.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})},e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}})},e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}})},e=>{let{ownerState:t}=e;return(0,Be.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})}),Dd=(0,lt.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})}),Pd=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiDivider"}
2),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,h=(0,rt.A)(n,Nd),f=(0,Be.A)({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,ot.A)(c,Ed,r)})(f);return(0,Ye.jsx)(Id,(0,Be.A)({as:a,className:(0,it.A)(m.root,o),role:u,ref:t,ownerState:f},h,{children:i?(0,Ye.jsx)(Dd,{className:m.wrapper,ownerState:f,children:i}):null}))});Pd.muiSkipListHighlight=!0;const Ld=Pd;function Rd(e){return(0,ut.Ay)("MuiIcon",e)}(0,ct.A)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Od=["baseClassName","className","color","component","fontSize"],zd=(0,lt.Ay)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,st.A)(n.color))],t["fontSize".concat((0,st.A)(n.fontSize))]]}})(e=>{let{theme:t,ownerState:n}=e;return{userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)}[n.fontSize],color:{primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0}[n.color]}}),Fd=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:i,color:o="inherit",component:a="span",fontSize:s="medium"}=n,l=(0,rt.A)(n,Od),c=(0,Be.A)({},n,{baseClassName:r,color:o,component:a,fontSize:s}),u=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&"color".concat((0,st.A)(t)),"fontSize".concat((0,st.A)(n))]};return(0,ot.A)(i,Rd,r)})(c);return(0,Ye.jsx)(zd,(0,Be.A)({as:a,className:(0,it.A)(r,"notranslate",u.root,i),ownerState:c,"aria-hidden":!0,ref:t},l))});Fd.muiName="Icon";const Bd=Fd;var Ud=n(52991),Hd=n(55896),Wd=n(91707),Vd=n(62954),Gd=n(42402),qd=n(5983),Kd=n(92429),Yd=n(71043);function Xd(e){return(0,ut.Ay)("MuiListItem",e)}const Zd=(0,ct.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const Qd=(0,ct.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Jd(e){return(0,ut.Ay)("MuiListItemSecondaryAction",e)}(0,ct.A)("MuiListItemSecondaryAction",["root","disableGutters"]);const $d=["className"],ep=(0,lt.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})}),tp=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=n,o=(0,rt.A)(n,$d),a=r.useContext(Za),s=(0,Be.A)({},n,{disableGutters:a.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,ot.A)(r,Jd,n)})(s);return(0,Ye.jsx)(ep,(0,Be.A)({className:(0,it.A)(l.root,i),ownerState:s,ref:t},o))});tp.muiName="ListItemSecondaryAction";const np=tp,rp=["className"],ip=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","
2slots"],op=(0,lt.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,Be.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(Qd.root)]:{paddingRight:48}},{["&.".concat(Zd.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Zd.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Zd.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Zd.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Zd.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})}),ap=(0,lt.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),sp=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:f=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:_={}}=n,k=(0,rt.A)(n.ContainerProps,rp),M=(0,rt.A)(n,ip),C=r.useContext(Za),T=r.useMemo(()=>({dense:f||C.dense||!1,alignItems:i,disableGutters:g}),[i,C.dense,f,g]),A=r.useRef(null);(0,Ki.A)(()=>{o&&A.current&&A.current.focus()},[o]);const E=r.Children.toArray(s),j=E.length&&(0,Ar.A)(E[E.length-1],["ListItemSecondaryAction"]),N=(0,Be.A)({},n,{alignItems:i,autoFocus:o,button:a,dense:T.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:j,selected:S}),I=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,ot.A)(d,Xd,r)})(N),D=(0,Dn.A)(A,t),P=_.root||u.Root||op,L=w.root||d.root||{},R=(0,Be.A)({className:(0,it.A)(I.root,L.className,l),disabled:m},M);let O=c||"li";return a&&(R.component=c||"div",R.focusVisibleClassName=(0,it.A)(Zd.focusVisible,b),O=fr),j?(O=R.component||c?O:"div","li"===p&&
2("li"===O?O="div":"li"===R.component&&(R.component="div")),(0,Ye.jsx)(Za.Provider,{value:T,children:(0,Ye.jsxs)(ap,(0,Be.A)({as:p,className:(0,it.A)(I.container,h),ref:D,ownerState:N},k,{children:[(0,Ye.jsx)(P,(0,Be.A)({},L,!Li(P)&&{as:O,ownerState:(0,Be.A)({},N,L.ownerState)},R,{children:E})),E.pop()]}))})):(0,Ye.jsx)(Za.Provider,{value:T,children:(0,Ye.jsxs)(P,(0,Be.A)({},L,{as:O,ref:D},!Li(P)&&{ownerState:(0,Be.A)({},N,L.ownerState)},R,{children:[E,x&&(0,Ye.jsx)(np,{children:x})]}))})}),lp=sp;function cp(e){return(0,ut.Ay)("MuiListItemIcon",e)}const up=(0,ct.A)("MuiListItemIcon",["root","alignItemsFlexStart"]),dp=["className"],pp=(0,lt.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})}),hp=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiListItemIcon"}),{className:i}=n,o=(0,rt.A)(n,dp),a=r.useContext(Za),s=(0,Be.A)({},n,{alignItems:a.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,ot.A)(r,cp,n)})(s);return(0,Ye.jsx)(pp,(0,Be.A)({className:(0,it.A)(l.root,i),ownerState:s,ref:t},o))}),fp=hp;function mp(e){return(0,ut.Ay)("MuiListItemText",e)}const gp=(0,ct.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),vp=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],yp=(0,lt.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(gp.primary)]:t.primary},{["& .".concat(gp.secondary)]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})}),bp=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=n,p=(0,rt.A)(n,vp),{dense:h}=r.useContext(Za);let f=null!=l?l:i,m=u;const g=(0,Be.A)({},n,{disableTypography:a,inset:s,primary:!!f,secondary:!!m,dense:h}),v=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e,a={root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,ot.A)(a,mp,t)})(g);return null==f||f.type===Tn||a||(f=(0,Ye.jsx)(Tn,(0,Be.A)({variant:h?"body2":"body1",className:v.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:f}))),null==m||m.type===Tn||a||(m=(0,Ye.jsx)(Tn,(0,Be.A)({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,Ye.jsxs)(yp,(0,Be.A)({className:(0,it.A)(v.root,o),ownerState:g,ref:t},p,{children:[f,m]}))});var xp=n(26951);class Sp extends r.Component{constructor(){super(...arguments),this.displayName=Sp.name,this.state={open:!0},this.toggleDrawerClose=()=>{this.setState({open:!this.state.open})}}render(){const{classes:e}=this.props,t=r.forwardRef((e,t)=>(0,Ye.jsx)("div",{ref:t,children:(0,Ye.jsx)(Ne,Fe({},e))}));return(0,Ye.jsxs)(Ad,{variant:"permanent",classes:{paper:_c()(e.drawerPaper,!this.state.open&&e.drawerPaperClose)},open:this.state.open,children:[(0,Ye.jsx)("div",{className:e.toolbar,onClick:this.toggleDrawerClose,children:(0,Ye.jsx)(Bd,{style:{display:"inherit"},children:this.state.open?(0,Ye.jsx)(Hd.A,{}):(0,Ye.jsx)(Wd.A,{})})}),(0,Ye.jsx)(Ld,{}),(0,Ye.jsxs)(ts,{children:[!this.props.userInfo.cannotSubmit&&(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsxs)(lp,{button:!0,component:t,to:"/ticket",className:e.regularNav,children:[(0,Ye.jsx)(fp,{className:e.regularNav,children:(0,Ye.jsx)(Vd.A,{className:e.navIcon})}),(0,Ye.jsx)(bp,{primary:En("newContinue"),className:e.regularNav,classes:{primary:e.regularNav}})]}),(0,Ye.jsxs)(lp,{button:!0,component:t,to:"/track",className:e.regularNav,children:[(0,Ye.jsx)(fp,{className:e.regularNav,children:(0,Ye.jsx)(Ud.A,{className:e.n
2avIcon})}),(0,Ye.jsx)(bp,{primary:En("trackDeliveries"),className:e.regularNav,classes:{primary:e.regularNav}})]})]}),this.props.userInfo.cannotSubmit&&this.props.userInfo.isSales&&(0,Ye.jsxs)(lp,{button:!0,component:t,to:"/sales",className:e.regularNav,children:[(0,Ye.jsx)(fp,{className:e.regularNav,children:(0,Ye.jsx)(xp.A,{className:e.navIcon})}),(0,Ye.jsx)(bp,{primary:En("sales"),className:e.regularNav,classes:{primary:e.regularNav}})]}),(0,Ye.jsxs)(lp,{button:!0,component:t,to:"/profile",className:e.regularNav,children:[(0,Ye.jsx)(fp,{className:e.regularNav,children:(0,Ye.jsx)(Gd.A,{className:e.navIcon})}),(0,Ye.jsx)(bp,{primary:En("editProfile"),className:e.regularNav,classes:{primary:e.regularNav}})]}),(0,Ye.jsxs)(lp,{button:!0,component:t,to:"/help",className:e.regularNav,children:[(0,Ye.jsx)(fp,{className:e.regularNav,children:(0,Ye.jsx)(qd.A,{className:e.navIcon})}),(0,Ye.jsx)(bp,{primary:En("help"),className:e.regularNav,classes:{primary:e.regularNav}})]}),!this.props.userInfo.cannotSubmit&&this.props.userInfo.isSales&&(0,Ye.jsxs)(lp,{button:!0,component:t,to:"/sales",className:e.regularNav,children:[(0,Ye.jsx)(fp,{className:e.regularNav,children:(0,Ye.jsx)(xp.A,{className:e.navIcon})}),(0,Ye.jsx)(bp,{primary:En("sales"),className:e.regularNav,classes:{primary:e.regularNav}})]}),(this.props.userInfo.isIsr||this.props.userInfo.isClientAdminAndHasPublishersAssigned)&&(0,Ye.jsxs)(lp,{button:!0,component:t,to:"/isr",className:e.regularNav,children:[(0,Ye.jsx)(fp,{className:e.regularNav,children:(0,Ye.jsx)(Kd.A,{className:e.navIcon})}),(0,Ye.jsx)(bp,{primary:En("isr"),className:e.regularNav,classes:{primary:e.regularNav}})]}),this.props.userInfo.isAdmin&&(0,Ye.jsxs)(lp,{button:!0,component:t,to:"/admin",className:e.regularNav,children:[(0,Ye.jsx)(fp,{className:e.regularNav,children:(0,Ye.jsx)(Yd.A,{className:e.navIcon})}),(0,Ye.jsx)(bp,{primary:En("admin"),className:e.regularNav,classes:{primary:e.regularNav}})]})]})]})}}const wp=pn(Sp,e=>{var t={hide:{display:"none"},drawerPaper:{boxShadow:"rgba(0, 0, 0, 0.2) 0px 1px 5px 0px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px",clear:"left",position:"relative",whiteSpace:"nowrap",width:200,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerPaperClose:{boxShadow:"rgba(0, 0, 0, 0.2) 0px 1px 5px 0px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px",clear:"left",overflowX:"hidden",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),width:e.spacing(6)},toolbar:{display:"flex",userSelect:"none",cursor:"pointer",alignItems:"center",justifyContent:"flex-end",padding:"0",paddingRight:"5px",height:"35px","&:hover":{background:"rgba(0, 0, 0, 0.08)"},transition:"background-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"},regularNav:{paddingLeft:"3px",paddingRight:"3px",marginRight:"0px",color:"inherit",minWidth:"42px","&.active":{backgroundColor:e.palette.primary.main,"&:focus":{backgroundColor:e.palette.primary.main},"&:hover":{backgroundColor:e.palette.primary.dark},color:e.palette.primary.contrastText,"& $regularNav":{color:e.palette.primary.contrastText}}},navIcon:{width:"1.5em"},content:{flexGrow:1,padding:e.spacing(3)}};return rc(e,t,"navMenu")});class _p extends r.Component{constructor(){super(...arguments),this.displayName=_p.name,this.onImageError=(e,t)=>{e.target.style.display="none",this.removeCircularProgressAndShowLabel(t)},this.onImageLoaded=e=>{this.removeCircularProgressAndShowLabel(e)},this.removeCircularProgressAndShowLabel=e=>{var t=document.getElementById("component-progress-"+e);t&&(t.style.display="none");let n=0,r=document.getElementById("Component-Label-".concat(e,"-").concat(n));for(;void 0!==r&&null!==r;)r.style.display="initial",n+=1,r=document.getElementById("Component-Label-".concat(e,"-").concat(n))},this.getTextWidth=(e,t)=>{var n=(this.getTextWidth.canvas||(this.getTextWidth.canvas=document.createElement("canvas"))).getContext("2d");return n.font=t,n.measureText(e).width},this.addPanelLabels=(e,t,n,r,i)=>{let o=0,a=0,s=r?"initial":"none";return e&&e.map((r,l)=>
2(o+=a,a=1===e.length&&i?i:parseFloat(r.width),a<50?void 0!==n&&n.id>0&&null!==n.filename?(0,Ye.jsx)("div",{id:"Component-Label-".concat(n.id,"-").concat(l),style:{textShadow:"0 0 2px #FFF",left:o,width:a,overflow:"hidden",textAlign:"center",fontSize:"7pt",top:5,display:s},className:t.panelLabel,children:r.name},l):(0,Ye.jsx)("div",{style:{textShadow:"0 0 2px #FFF",left:o,width:a,overflow:"hidden",textAlign:"center",fontSize:"7pt",top:5},className:t.panelLabel,children:r.name},l):void 0!==n&&n.id>0&&null!==n.filename?(0,Ye.jsx)("div",{id:"Component-Label-".concat(n.id,"-").concat(l),style:{textShadow:"0 0 2px #FFF",left:o,width:a,overflow:"hidden",textAlign:"center",display:s},className:t.panelLabel,children:(0,Ye.jsx)(Tn,{variant:"body2",children:r.name})},l):(0,Ye.jsx)("div",{style:{textShadow:"0 0 2px #FFF",left:o,width:a,overflow:"hidden",textAlign:"center"},className:t.panelLabel,children:(0,Ye.jsx)(Tn,{variant:"body2",children:r.name})},l)))},this.addPanelLines=e=>{let t=0,n=1;return e&&e.map(r=>{let i=e.length;return n<i?(t=parseFloat(r.width)+t,n+=1,(0,Ye.jsx)("div",{style:{position:"absolute",height:"100%",left:t,borderLeftWidth:1,borderLeftStyle:"dashed",zIndex:"1"}},r.index)):""})},this.displayImage=(e,t,n)=>t&&""!==t?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{id:"component-progress-"+n.id,className:e.progress,children:(0,Ye.jsx)(At,{})}),(0,Ye.jsx)("img",{src:t,onError:e=>this.onImageError(e,n.id),onLoad:()=>this.onImageLoaded(n.id),alt:n.fileName,style:{position:"absolute",height:parseFloat(n.imageHeight),width:"100%"}})]}):"",this.displayPanelSize=(e,t,n,r)=>n?(0,Ye.jsx)("div",{style:{position:"relative",width:parseFloat(t.width),textAlign:"center",display:"block",marginLeft:r},children:(0,Ye.jsx)(Tn,{variant:"body2",children:e.sizeComponent.width})}):"",this.renderImage=(e,t,n,r,i,o)=>t?(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("div",{className:e.panelContainer,style:{marginLeft:o,width:parseFloat(t.imageWidth),height:parseFloat(t.imageHeight)},children:[this.addPanelLabels(t.panelPositions,e,t,!1,parseFloat(t.imageWidth)),this.addPanelLines(t.panelPositions),this.displayImage(e,n,t)]}),this.displayPanelSize(t,r,this.props.showPanelWidths,o)]}):(0,Ye.jsx)("div",{children:(0,Ye.jsxs)("div",{className:e.panelContainer,style:{marginLeft:o,width:parseFloat(r.width),height:parseFloat(r.height)},children:[this.addPanelLabels(i,e,void 0,!0,parseFloat(r.width)),this.addPanelLines(i)]})})}render(){const{classes:e,component:t,filePath:n,componentSize:i,sizePanels:o,marginLeft:a}=this.props;return(0,Ye.jsx)(r.Fragment,{children:this.renderImage(e,t,n,i,o,a)})}}const kp=pn(_p,e=>({component:{paddingTop:5,paddingBottom:5},panelContainer:{position:"relative",backgroundColor:"#888",height:100},panelLabel:{fontWeight:"bold",position:"absolute",top:3,zIndex:1},progress:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})),Mp=Object.freeze({None:0,Deleted:1,Submitted:2});class Cp extends r.Component{constructor(e){super(e),this.returnToTrackDeliveries=()=>{const{currentSubmission:e,updateSubmission:t}=this.props;e&&t?(e.ticket=null,e.redirectLocation="/track",t(e)):this.setState({redirect:(0,Ye.jsx)(ge,{to:{pathname:"/track"},replace:!0})})},this.startNewSubmission=()=>{const{currentSubmission:e,updateSubmission:t}=this.props;e&&t?(e.ticket=null,e.redirectLocation="/ticket/new",t(e)):this.setState({redirect:(0,Ye.jsx)(ge,{to:{pathname:"/ticket/new"},replace:!0})})},this.state={redirect:""}}render(){const{isDeleted:e,open:t}=this.props;let n=En("ticketSubmitted"),i=En("ticketSubmittedText");return e&&(n=En("ticketDeleted"),i=En("ticketDeletedText")),(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)(Aa,{open:t,children:[(0,Ye.jsx)(Kl,{children:n}),(0,Ye.jsx)(za,{children:i}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{onClick:this.returnToTrackDeliveries,variant:"contained",color:"primary",children:En("trackDeliveries")}),(0,Ye.jsx)(kr,{onClick:this.startNewSubmission,variant:"contained",color:"primary",children:En("startNewTicket")})]})]}),this.state.redirect]})}}const Tp=Cp,Ap="151",Ep={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},jp={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Np=0,Ip=1,Dp=2,Pp=3,Lp=0,Rp=1,Op=2,zp=3,Fp=0,Bp=1,Up=2,Hp=2,Wp=0,Vp=1,Gp=2,qp=3,Kp=4,Yp=5,Xp=100,Zp=101,Qp=102,Jp=103,$p=104,eh=200,th=201,nh=202,rh=203,ih=204,oh=205,ah=206,sh=207,lh=208,ch=209,uh=210,dh=0,ph=1,hh=2,fh=3,mh=4,gh=5,vh=6,yh=7,bh=0,xh=1,Sh=2,wh=0,_h=1,kh=2,Mh=3,Ch=4,Th=5,Ah=300,Eh=301,jh=302,Nh=303,Ih=304,Dh=306,Ph=1e3,Lh=1001,Rh=1002,Oh=1003,zh=1004,Fh=1004,Bh=1005,Uh=1005,H
vendor: 13,134 bytes, line 2
2h=1006,Wh=1007,Vh=1007,Gh=1008,qh=1008,Kh=1009,Yh=1010,Xh=1011,Zh=1012,Qh=1013,Jh=1014,$h=1015,ef=1016,tf=1017,nf=1018,rf=1020,of=1021,af=1023,sf=1024,lf=1025,cf=1026,uf=1027,df=1028,pf=1029,hf=1030,ff=1031,mf=1033,gf=33776,vf=33777,yf=33778,bf=33779,xf=35840,Sf=35841,wf=35842,_f=35843,kf=36196,Mf=37492,Cf=37496,Tf=37808,Af=37809,Ef=37810,jf=37811,Nf=37812,If=37813,Df=37814,Pf=37815,Lf=37816,Rf=37817,Of=37818,zf=37819,Ff=37820,Bf=37821,Uf=36492,Hf=36283,Wf=36284,Vf=36285,Gf=36286,qf=2200,Kf=2201,Yf=2202,Xf=2300,Zf=2301,Qf=2302,Jf=2400,$f=2401,em=2402,tm=2500,nm=2501,rm=0,im=1,om=2,am=3e3,sm=3001,lm=3200,cm=3201,um=0,dm=1,pm="",hm="srgb",fm="srgb-linear",mm="display-p3",gm=0,vm=7680,ym=7681,bm=7682,xm=7683,Sm=34055,wm=34056,_m=5386,km=512,Mm=513,Cm=514,Tm=515,Am=516,Em=517,jm=518,Nm=519,Im=35044,Dm=35048,Pm=35040,Lm=35045,Rm=35049,Om=35041,zm=35046,Fm=35050,Bm=35042,Um="100",Hm="300 es",Wm=1035;class Vm{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,r=n.length;t<r;t++)n[t].call(this,e);e.target=null}}}const Gm=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let qm=1234567;const Km=Math.PI/180,Ym=180/Math.PI;function Xm(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(Gm[255&e]+Gm[e>>8&255]+Gm[e>>16&255]+Gm[e>>24&255]+"-"+Gm[255&t]+Gm[t>>8&255]+"-"+Gm[t>>16&15|64]+Gm[t>>24&255]+"-"+Gm[63&n|128]+Gm[n>>8&255]+"-"+Gm[n>>16&255]+Gm[n>>24&255]+Gm[255&r]+Gm[r>>8&255]+Gm[r>>16&255]+Gm[r>>24&255]).toLowerCase()}function Zm(e,t,n){return Math.max(t,Math.min(n,e))}function Qm(e,t){return(e%t+t)%t}function Jm(e,t,n){return(1-n)*e+n*t}function $m(e){return 0===(e&e-1)&&0!==e}function eg(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function tg(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function ng(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function rg(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const ig={DEG2RAD:Km,RAD2DEG:Ym,generateUUID:Xm,clamp:Zm,euclideanModulo:Qm,mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:Jm,damp:function(e,t,n,r){return Jm(e,t,1-Math.exp(-n*r))},pingpong:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t-Math.abs(Qm(e,2*t)-t)},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(e){void 0!==e&&(qm=e);let t=qm+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*Km},radToDeg:function(e){return e*Ym},isPowerOfTwo:$m,ceilPowerOfTwo:eg,floorPowerOfTwo:tg,setQuaternionFromProperEuler:function(e,t,n,r,i){const o=Math.cos,a=Math.sin,s=o(n/2),l=a(n/2),c=o((t+r)/2),u=a((t+r)/2),d=o((t-r)/2),p=a((t-r)/2),h=o((r-t)/2),f=a((r-t)/2);switch(i){case"XYX":e.set(s*u,l*d,l*p,s*c);break;case"YZY":e.set(l*p,s*u,l*d,s*c);break;case"ZXZ":e.set(l*d,l*p,s*u,s*c);break;case"XZX":e.set(s*u,l*f,l*h,s*c);break;case"YXY":e.set(l*h,s*u,l*f,s*c);break;case"ZYZ":e.set(l*f,l*h,s*u,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}},normalize:rg,denormalize:ng};class og{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;og.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(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}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const 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}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(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}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){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}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Zm(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=e[t],this.y=e[t+1],this}toArray(){let 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}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,o=this.y-e.y;return this.x=i*n-o*r+e.x,this.y=i*r+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class ag{constructor(){ag.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1]}set(e,t,n,r,i,o,a,s,l){const c=this.elements;return c[0]=e,c[1]=r,c[2]=a,c[3]=t,c[4]=i,c[5]=s,c[6]=n,c[7]=o,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const 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}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const 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}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[3],s=n[6],l=n[1],c=n[4],u=n[7],d=n[2],p=n[5],h=n[8],f=r[0],m=r[3],g=r[6],v=r[1],y=r[4],b=r[7],x=r[2],S=r[5],w=r[8];return i[0]=o*f+a*v+s*x,i[3]=o*m+a*y+s*S,i[6]=o*g+a*b+s*w,i[1]=l*f+c*v+u*x,i[4]=l*m+c*y+u*S,i[7]=l*g+c*b+u*w,i[2]=d*f+p*v+h*x,i[5]=d*m+p*y+h*S,i[8]=d*g+p*b+h*w,this}multiplyScalar(e){const 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}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8];return t*o*c-t*a*l-n*i*c+n*a*s+r*i*l-r*o*s}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=c*o-a*l,d=a*s-c*i,p=l*i-o*s,h=t*u+n*d+r*p;if(0===h)return this.set(0,0,0,0,0,0,0,0,0);const f=1/h;return e[0]=u*f,e[1]=(r*l-c*n)*f,e[2]=(a*n-r*o)*f,e[3]=d*f,e[4]=(c*t-r*s)*f,e[5]=(r*i-a*t)*f,e[6]=p*f,e[7]=(n*s-l*t)*f,e[8]=(o*t-n*i)*f,this}transpose(){let e;const 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}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const 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}setUvTransform(e,t,n,r,i,o,a){const s=Math.cos(i),l=Math.sin(i);return this.set(n*s,n*l,-n*(s*o+l*a)+o+e,-r*l,r*s,-r*(-l*o+s*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(sg.makeScale(e,t)),this}rotate(e){return this.premultiply(sg.makeRotation(-e)),this}translate(e,t){return this.premultiply(sg.makeTranslation(e,t)),this}makeTranslation(e,t){return this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const 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}clone(){return(new this.constructor).fromArray(this.elements)}}const sg=new ag;function lg(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}const cg={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function ug(e,t){return new cg[e](t)}function dg(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function pg(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}
2function hg(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}const fg=(new ag).fromArray([.8224621,.0331941,.0170827,.177538,.9668058,.0723974,-1e-7,1e-7,.9105199]),mg=(new ag).fromArray([1.2249401,-.0420569,-.0196376,-.2249404,1.0420571,-.0786361,1e-7,0,1.0982735]);const gg={[fm]:e=>e,[hm]:e=>e.convertSRGBToLinear(),[mm]:function(e){return e.convertSRGBToLinear().applyMatrix3(mg)}},vg={[fm]:e=>e,[hm]:e=>e.convertLinearToSRGB(),[mm]:function(e){return e.applyMatrix3(fg).convertLinearToSRGB()}},yg={enabled:!1,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(e){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!e},get workingColorSpace(){return fm},set workingColorSpace(e){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const r=gg[t],i=vg[n];if(void 0===r||void 0===i)throw new Error('Unsupported color space conversion, "'.concat(t,'" to "').concat(n,'".'));return i(r(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this.workingColorSpace)}};let bg;class xg{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"===typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===bg&&(bg=dg("canvas")),bg.width=e.width,bg.height=e.height;const n=bg.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=bg}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")}static sRGBToLinear(e){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){const t=dg("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=255*pg(i[e]/255);return n.putImageData(r,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*pg(t[e]/255)):t[e]=pg(t[e]);return{data:t,width:e.width,height:e.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}class Sg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isSource=!0,this.uuid=Xm(),this.data=e,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"===typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},r=this.data;if(null!==r){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(wg(r[t].image)):e.push(wg(r[t]))}else e=wg(r);n.url=e}return t||(e.images[this.uuid]=n),n}}function wg(e){return"undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap?xg.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let _g=0;class kg extends Vm{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kg.DEFAULT_IMAGE,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kg.DEFAULT_MAPPING,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lh,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Lh,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Hh,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Gh,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:af,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:Kh,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:kg.DEFAULT_ANISOTROPY,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:am;super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:_g++}),this.uuid=Xm(),this.name="",this.source=new Sg(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=n,this.wrapT=r,this.magFilter=i,this.minFilter=o,this.anisotropy=l,this.format=a,this.internalFormat=null,this.type=s,this.offset=new og(0,0),this.repeat=new og(1,1),this.center=new og(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new ag,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e){void 0===e&&(e=null),this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,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.needsUpdate=!0,this}toJSON(e){const t=void 0===e||"string"===typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,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,internalFormat:this.internalFormat,type:this.t
vendor: 5,041 bytes, line 2
2ype,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==Ah)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Ph:e.x=e.x-Math.floor(e.x);break;case Lh:e.x=e.x<0?0:1;break;case Rh: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 Ph:e.y=e.y-Math.floor(e.y);break;case Lh:e.y=e.y<0?0:1;break;case Rh: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}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}}kg.DEFAULT_IMAGE=null,kg.DEFAULT_MAPPING=Ah,kg.DEFAULT_ANISOTROPY=1;class Mg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Mg.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(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}getComponent(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)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(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}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(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}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*t+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*t+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*t+o[7]*n+o[11]*r+o[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const 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}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const o=.01,a=.1,s=e.elements,l=s[0],c=s[4],u=s[8],d=s[1],p=s[5],h=s[9],f=s[2],m=s[6],g=s[10];if(Math.abs(c-d)<o&&Math.abs(u-f)<o&&Math.abs(h-m)<o){if(Math.abs(c+d)<a&&Math.abs(u+f)<a&&Math.abs(h+m)<a&&Math.abs(l+p+g-3)<a)return this.set(1,0,0,0),this;t=Math.PI;const e=(l+1)/2,s=(p+1)/2,v=(g+1)/2,y=(c+d)/4,b=(u+f)/4,x=(h+m)/4;return e>s&&e>v?e<o?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=y/n,i=b/n):s>v?s<o?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(s),n=y/r,i=x/r):v<o?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(v),n=b/i,r=x/i),this.set(n,r,i,t),this}let v=Math.sqrt((m-h)*(m-h)+(u-f)*(u-f)+(d-c)*(d-c));return Math.abs(v)<.001&&(v=1),this.x=(m-h)/v,this.y=(u-f)/v,this.z=(d-c)/v,this.w=Math.acos((l+p+g-1)/2),this}min(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}max(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}clamp(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}clampScalar(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}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){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}ceil(){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}
2round(){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}roundToZero(){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}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(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}lerpVectors(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}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e){let 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}toArray(){let 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}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Cg extends Vm{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(),this.isWebGLRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Mg(0,0,e,t),this.scissorTest=!1,this.viewport=new Mg(0,0,e,t);const r={width:e,height:t,depth:1};this.texture=new kg(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.internalFormat=void 0!==n.internalFormat?n.internalFormat:null,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:Hh,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null,this.samples=void 0!==n.samples?n.samples:0}setSize(e,t){let 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)}clone(){return(new this.constructor).copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new Sg(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Tg extends kg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=Oh,this.minFilter=Oh,this.wrapR=Lh,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ag extends Cg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;
vendor: 18,359 bytes, line 2
2super(e,t),this.isWebGLArrayRenderTarget=!0,this.depth=n,this.texture=new Tg(null,e,t,n),this.texture.isRenderTargetTexture=!0}}class Eg extends kg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:r},this.magFilter=Oh,this.minFilter=Oh,this.wrapR=Lh,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class jg extends Cg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;super(e,t),this.isWebGL3DRenderTarget=!0,this.depth=n,this.texture=new Eg(null,e,t,n),this.texture.isRenderTargetTexture=!0}}class Ng extends Cg{constructor(){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),this.isWebGLMultipleRenderTargets=!0;const t=this.texture;this.texture=[];for(let n=0;n<e;n++)this.texture[n]=t.clone(),this.texture[n].isRenderTargetTexture=!0}setSize(e,t){let 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(let 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}copy(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,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.texture.length=0;for(let t=0,n=e.texture.length;t<n;t++)this.texture[t]=e.texture[t].clone(),this.texture[t].isRenderTargetTexture=!0;return this}}class Ig{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,o,a){let s=n[r+0],l=n[r+1],c=n[r+2],u=n[r+3];const d=i[o+0],p=i[o+1],h=i[o+2],f=i[o+3];if(0===a)return e[t+0]=s,e[t+1]=l,e[t+2]=c,void(e[t+3]=u);if(1===a)return e[t+0]=d,e[t+1]=p,e[t+2]=h,void(e[t+3]=f);if(u!==f||s!==d||l!==p||c!==h){let e=1-a;const t=s*d+l*p+c*h+u*f,n=t>=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),o=Math.atan2(i,t*n);e=Math.sin(e*o)/i,a=Math.sin(a*o)/i}const i=a*n;if(s=s*e+d*i,l=l*e+p*i,c=c*e+h*i,u=u*e+f*i,e===1-a){const e=1/Math.sqrt(s*s+l*l+c*c+u*u);s*=e,l*=e,c*=e,u*=e}}e[t]=s,e[t+1]=l,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,o){const a=n[r],s=n[r+1],l=n[r+2],c=n[r+3],u=i[o],d=i[o+1],p=i[o+2],h=i[o+3];return e[t]=a*h+c*u+s*p-l*d,e[t+1]=s*h+c*d+l*u-a*p,e[t+2]=l*h+c*p+a*d-s*u,e[t+3]=c*h-a*u-s*d-l*p,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const n=e._x,r=e._y,i=e._z,o=e._order,a=Math.cos,s=Math.sin,l=a(n/2),c=a(r/2),u=a(i/2),d=s(n/2),p=s(r/2),h=s(i/2);switch(o){case"XYZ":this._x=d*c*u+l*p*h,this._y=l*p*u-d*c*h,this._z=l*c*h+d*p*u,this._w=l*c*u-d*p*h;break;case"YXZ":this._x=d*c*u+l*p*h,this._y=l*p*u-d*c*h,this._z=l*c*h-d*p*u,this._w=l*c*u+d*p*h;break;case"ZXY":this._x=d*c*u-l*p*h,this._y=l*p*u+d*c*h,this._z=l*c*h+d*p*u,this._w=l*c*u-d*p*h;break;case"ZYX":this._x=d*c*u-l*p*h,this._y=l*p*u+d*c*h,this._z=l*c*h-d*p*u,this._w=l*c*u+d*p*h;break;case"YZX":this._x=d*c*u+l*p*h,this._y=l*p*u+d*c*h,this._z=l*c*h-d*p*u,this._w=l*c*u-d*p*h;break;case"XZY":this._x=d*c*u-l*p*h,this._y=l*p*u-d*c*h,this._z=l*c*h+d*p*u,this._w=l*c*u+d*p*h;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const 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}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],o=t[1],a=t[5],s=t[9],l=t[2],c=t[6],u=t[10],d=n+a+u;if(d>0){const e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(c-s)*e,this._y=(i-l)*e,this._z=(o-r)*e}else if(n>a&&n>u){const e=2*Math.sqrt(1+n-a-u);this._w=(c-s)/e,this._x=.25*e,this._y=(r+o)/e,this._z=(i+l)/e}else if(a>u){const e=2*Math.sqrt(1+a-n-u);this._w=(i-l)/e,this._x=(r+o)/e,this._y=.25*e,this._z=(s+c)/e}else{const e=2*Math.sqrt(1+u-n-a);this._w=(o-r)/e,this._x=(i+l)/e,this._y=(s+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let 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()}angleTo(e){return 2*Math.acos(Math.abs(Zm(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let 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}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,i=e._z,o=e._w,a=t._x,s=t._y,l=t._z,c=t._w;return this._x=n*c+o*a+r*l-i*s,this._y=r*c+o*s+i*a-n*l,this._z=i*c+o*l+n*s-r*a,this._w=o*c-n*a-r*s-i*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,o=this._w;let a=o*e._w+n*e._x+r*e._y+i*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;const s=1-a*a;if(s<=Number.EPSILON){const e=1-t;return this._w=e*o+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(s),c=Math.atan2(l,a),u=Math.sin((1-t)*c)/l,d=Math.sin(t*c)/l;return this._w=o*u+this._w*d,this._x=n*u+this._x*d,this._y=r*u+this._y*d,this._z=i*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const 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))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e){let 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}toArray(){let 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}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Dg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Dg.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(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}getComponent(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)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Lg.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Lg.setFromAxisAngle(e,t))}applyMatrix3(e){const 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}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,o=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])*o,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*o,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,o=e.y,a=e.z,s=e.w,l=s*t+o*r-a*n,c=s*n+a*t-i*r,u=s*r+i*n-o*t,d=-i*t-o*n-a*r;return this.x=l*s+d*-i+c*-a-u*-o,this.y=c*s+d*-o+u*-i-l*-a,this.z=u*s+d*-a+l*-o-c*-i,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const 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()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(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}max(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}clamp(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}clampScalar(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}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){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}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(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}lerpVectors(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}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,o=t.x,a=t.y,s=t.z;return this.x=r*s-i*a,this.y=i*o-n*s,this.z=n*a-r*o,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Pg.copy(this).projectOnVector(e),this.sub(Pg)}reflect(e){return this.sub(Pg.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Zm(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const 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}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const 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}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e){let 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}toArray(){let 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}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-e**2);return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Pg=new Dg,Lg=new Ig;class Rg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg(1/0,1/0,1/0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg(-1/0,-1/0,-1/0);this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(zg.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(zg.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=zg.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.updateWorldMatrix(!1,!1),void 0!==e.boundingBox)null===e.boundingBox&&e.computeBoundingBox(),Fg.copy(e.boundingBox),Fg.applyMatrix4(e.matrixWorld),this.union(Fg);else{const n=e.geometry;if(void 0!==n)if(t&&void 0!==n.attributes&&void 0!==n.attributes.position){const t=n.attributes.position;for(let n=0,r=t.count;n<r;n++)zg.fromBufferAttribute(t,n).applyMatrix4(e.matrixWorld),this.expandByPoint(zg)}else null===n.boundingBox&&n.computeBoundingBox(),Fg.copy(n.boundingBox),Fg.applyMatrix4(e.matrixWorld),this.union(Fg)}const n=e.children;for(let r=0,i=n.length;r<i;r++)this.expandByObject(n[r],t);return this}containsPoint(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)}containsBox(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}getParameter(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))}intersectsBox(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)}intersectsSphere(e){return this.clampPoint(e.center,zg),zg.distanceToSquared(e.center)<=e.radius*e.radiu
vendor: 6,589 bytes, line 2
2s}intersectsPlane(e){let 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}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(qg),Kg.subVectors(this.max,qg),Bg.subVectors(e.a,qg),Ug.subVectors(e.b,qg),Hg.subVectors(e.c,qg),Wg.subVectors(Ug,Bg),Vg.subVectors(Hg,Ug),Gg.subVectors(Bg,Hg);let t=[0,-Wg.z,Wg.y,0,-Vg.z,Vg.y,0,-Gg.z,Gg.y,Wg.z,0,-Wg.x,Vg.z,0,-Vg.x,Gg.z,0,-Gg.x,-Wg.y,Wg.x,0,-Vg.y,Vg.x,0,-Gg.y,Gg.x,0];return!!Zg(t,Bg,Ug,Hg,Kg)&&(t=[1,0,0,0,1,0,0,0,1],!!Zg(t,Bg,Ug,Hg,Kg)&&(Yg.crossVectors(Wg,Vg),t=[Yg.x,Yg.y,Yg.z],Zg(t,Bg,Ug,Hg,Kg)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,zg).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(zg).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Og[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Og[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Og[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Og[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Og[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Og[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Og[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Og[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Og)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Og=[new Dg,new Dg,new Dg,new Dg,new Dg,new Dg,new Dg,new Dg],zg=new Dg,Fg=new Rg,Bg=new Dg,Ug=new Dg,Hg=new Dg,Wg=new Dg,Vg=new Dg,Gg=new Dg,qg=new Dg,Kg=new Dg,Yg=new Dg,Xg=new Dg;function Zg(e,t,n,r,i){for(let o=0,a=e.length-3;o<=a;o+=3){Xg.fromArray(e,o);const a=i.x*Math.abs(Xg.x)+i.y*Math.abs(Xg.y)+i.z*Math.abs(Xg.z),s=t.dot(Xg),l=n.dot(Xg),c=r.dot(Xg);if(Math.max(-Math.max(s,l,c),Math.min(s,l,c))>a)return!1}return!0}const Qg=new Rg,Jg=new Dg,$g=new Dg;class ev{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):Qg.setFromPoints(e).getCenter(n);let r=0;for(let i=0,o=e.length;i<o;i++)r=Math.max(r,n.distanceToSquared(e[i]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const 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}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Jg.subVectors(e,this.center);const t=Jg.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Jg,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):($g.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Jg.copy(e.center).add($g)),this.expandByPoint(Jg.copy(e.center).sub($g))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const tv=new Dg,nv=new Dg,rv=new Dg,iv=new Dg,ov=new Dg,av=new Dg,sv=new Dg;class lv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg(0,0,-1);this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,tv)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=tv.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(tv.copy(this.origin).addScaledVector(this.direction,t),tv.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){nv.copy(e).add(t).multiplyScalar(.5),rv.copy(t).sub(e).normalize(),iv.copy(this.origin).sub(nv);const i=.5*e.distanceTo(t),o=-this.direction.dot(rv),a=iv.dot(this.direction),s=-iv.dot(rv),l=iv.lengthSq(),c=Math.abs(1-o*o);let u,d,p,h;if(c>0)if(u=o*s-a,d=o*a-s,h=i*c,u>=0)if(d>=-h)if(d<=h){const e=1/c;u*=e,d*=e,p=u*(u+o*d+2*a)+d*(o*u+d+2*s)+l}else d=i,u=Math.max(0,-(o*d+a)),p=-u*u+d*(d+2*s)+l;else d=-i,u=Math.max(0,-(o*d+a)),p=-u*u+d*(d+2*s)+l;else d<=-h?(u=Math.max(0,-(-o*i+a)),d=u>0?-i:Math.min(Math.max(-i,-s),i),p=-u*u+d*(d+2*s)+l):d<=h?(u=0,d=Math.min(Math.max(-i,-s),i),p=d*(d+2*s)+l):(u=Math.max(0,-(o*i+a)),d=u>0?i:Math.min(Math.max(-i,-s),i),p=-u*u+d*(d+2*s)+l);else d=o>0?-i:i,u=Math.max(0,-(o*d+a)),p=-u*u+d*(d+2*s)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(nv).addScaledVector(rv,d),p}intersectSphere(e,t){tv.subVectors(e.center,this.origin);const n=tv.dot(this.direction),r=tv.dot(tv)-n*n,i=e.radius*e.radiu
vendor: 6,934 bytes, line 2
2s;if(r>i)return null;const o=Math.sqrt(i-r),a=n-o,s=n+o;return s<0?null:a<0?this.at(s,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;return e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,o,a,s;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,r=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,r=(e.min.x-d.x)*l),c>=0?(i=(e.min.y-d.y)*c,o=(e.max.y-d.y)*c):(i=(e.max.y-d.y)*c,o=(e.min.y-d.y)*c),n>o||i>r?null:((i>n||isNaN(n))&&(n=i),(o<r||isNaN(r))&&(r=o),u>=0?(a=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(a=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||a>r?null:((a>n||n!==n)&&(n=a),(s<r||r!==r)&&(r=s),r<0?null:this.at(n>=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,tv)}intersectTriangle(e,t,n,r,i){ov.subVectors(t,e),av.subVectors(n,e),sv.crossVectors(ov,av);let o,a=this.direction.dot(sv);if(a>0){if(r)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}iv.subVectors(this.origin,e);const s=o*this.direction.dot(av.crossVectors(iv,av));if(s<0)return null;const l=o*this.direction.dot(ov.cross(iv));if(l<0)return null;if(s+l>a)return null;const c=-o*iv.dot(sv);return c<0?null:this.at(c/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class cv{constructor(){cv.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}set(e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=o,g[9]=a,g[13]=s,g[2]=l,g[6]=c,g[10]=u,g[14]=d,g[3]=p,g[7]=h,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new cv).fromArray(this.elements)}copy(e){const 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}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const 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}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(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}extractRotation(e){const t=this.elements,n=e.elements,r=1/uv.setFromMatrixColumn(e,0).length(),i=1/uv.setFromMatrixColumn(e,1).length(),o=1/uv.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]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,i=e.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(r),l=Math.sin(r),c=Math.cos(i),u=Math.sin(i);if("XYZ"===e.order){const e=o*c,n=o*u,r=a*c,i=a*u;t[0]=s*c,t[4]=-s*u,t[8]=l,t[1]=n+r*l,t[5]=e-i*l,t[9]=-a*s,t[2]=i-e*l,t[6]=r+n*l,t[10]=o*s}else if("YXZ"===e.order){const e=s*c,n=s*u,r=l*c,i=l*u;t[0]=e+i*a,t[4]=r*a-n,t[8]=o*l,t[1]=o*u,t[5]=o*c,t[9]=-a,t[2]=n*a-r,t[6]=i+e*a,t[10]=o*s}else if("ZXY"===e.order){const e=s*c,n=s*u,r=l*c,i=l*u;t[0]=e-i*a,t[4]=-o*u,t[8]=r+n*a,t[1]=n+r*a,t[5]=o*c,t[9]=i-e*a,t[2]=-o*l,t[6]=a,t[10]=o*s}else if("ZYX"===e.order){const e=o*c,n=o*u,r=a*c,i=a*u;t[0]=s*c,t[4]=r*l-n,t[8]=e*l+i,t[1]=s*u,t[5]=i*l+e,t[9]=n*l-r,t[2]=-l,t[6]=a*s,t[10]=o*s}else if("YZX"===e.order){const e=o*s,n=o*l,r=a*s,i=a*l;t[0]=s*c,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=o*c,t[9]=-a*c,t[2]=-l*c,t[6]=n*u+r,t[10]=e-i*u}else if("XZY"===e.order){const e=o*s,n=o*l,r=a*s,i=a*l;t[0]=s*c,t[4]=-u,t[8]=l*c,t[1]=e*u+i,t[5]=o*c,t[9]=n*u-r,t[2]=r*u-n,t[6]=a*c,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(pv,e,hv)}lookAt(e,t,n){const r=this.elements;return gv.subVectors(e,t),0===gv.lengthSq()&&(gv.z=1),gv.normalize(),fv.crossVectors(n,gv),0===fv.lengthSq()&&(1===Math.abs(n.z)?gv.x+=1e-4:gv.z+=1e-4,gv.normalize(),fv.crossVectors(n,gv)),fv.normalize(),mv.crossVectors(gv,fv),r[0]=fv.x,r[4]=mv.x,r[8]=gv.x,r[1]=fv.y,r[5]=mv.y,r[9]=gv.y,r[2]=fv.z,r[6]=mv.z,r[10]=gv.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],c=n[1],u=n[5],d=n[9],p=n[13],h=n[2],f=n[6],m=n[10],g=n[14],v=n[3],y=n[7],b=n[11],x=n[15],S=r[0],w=r[4],_=r[8],k=r[12],M=r[1],C=r[5],T=r[9],A=r[13],E=r[2],j=r[6],N=r[10],I=r[14],D=r[3],P=r[7],L=r[11],R=r[15];return i[0]=o*S+a*M+s*E+l*D,i[4]=o*w+a*C+s*j+l*P,i[8]=o*_+a*T+s*N+l*L,i[12]=o*k+a*A+s*I+l*R,i[1]=c*S+u*M+d*E+p*D,i[5]=c*w+u*C+d*j+p*P,i[9]=c*_+u*T+d*N+p*L,i[13]=c*k+u*A+d*I+p*R,i[2]=h*S+f*M+m*E+g*D,i[6]=h*w+f*C+m*j+g*P,i[10]=h*_+f*T+m*N+g*L,i[14]=h*k+f*A+m*I+g*R,i[3]=v*S+y*M+b*E+x*D,i[7]=v*w+y*C+b*j+x*P,i[11]=v*_+y*T+b*N+x*L,i[15]=v*k+y*A+b*I+x*R,this}multiplyScalar(e){const 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}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],o=e[1],a=e[5],s=e[9],l=e[13],c=e[2],u=e[6],d=e[10],p=e[14];return e[3]*(+i*s*u-r*l*u-i*a*d+n*l*d+r*a*p-n*s*p)+e[7]*(+t*s*p-t*l*d+i*o*d-r*o*p+r*l*c-i*s*c)+e[11]*(+t*l*u-t*a*p-i*o*u+n*o*p+i*a*c-n*l*c)+e[15]*(-r*a*c-t*s*u+t*a*d+r*o*u-n*o*d+n*s*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const 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}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],p=e[11],h=e[12],f=e[13],m=e[14],g=e[15],v=u*m*l-f*d*l+f*s*p-a*m*p-u*s*g+a*d*g,y=h*d*l-c*m*l-h*s*p+o*m*p+c*s*g-o*d*g,b=c*f*l-h*u*l+h*a*p-o*f*p-c*a*g+o*u*g,x=h*u*s-c*f*s-h*a*d+o*f*d+c*a*m-o*u*m,S=t*v+n*y+r*b+i*x;if(0===S)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/S;return e[0]=v*w,e[1]=(f*d*i-u*m*i-f*r*p+n*m*p+u*r*g-n*d*g)*w,e[2]=(a*m*i-f*s*i+f*r*l-n*m*l-a*r*g+n*s*g)*w,e[3]=(u*s*i-a*d*i-u*r*l+n*d*l+a*r*p-n*s*p)*w,e[4]=y*w,e[5]=(c*m*i-h*d*i+h*r*p-t*m*p-c*r*g+t*d*g)*w,e[6]=(h*s*i-o*m*i-h*r*l+t*m*l+o*r*g-t*s*g)*w,e[7]=(o*d*i-c*s*i+c*r*l-t*d
vendor: 8,446 bytes, line 2
2*l-o*r*p+t*s*p)*w,e[8]=b*w,e[9]=(h*u*i-c*f*i-h*n*p+t*f*p+c*n*g-t*u*g)*w,e[10]=(o*f*i-h*a*i+h*n*l-t*f*l-o*n*g+t*a*g)*w,e[11]=(c*a*i-o*u*i-c*n*l+t*u*l+o*n*p-t*a*p)*w,e[12]=x*w,e[13]=(c*f*r-h*u*r+h*n*d-t*f*d-c*n*m+t*u*m)*w,e[14]=(h*a*r-o*f*r-h*n*s+t*f*s+o*n*m-t*a*m)*w,e[15]=(o*u*r-c*a*r+c*n*s-t*u*s-o*n*d+t*a*d)*w,this}scale(e){const 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}getMaxScaleOnAxis(){const 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))}makeTranslation(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const 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}makeRotationY(e){const 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}makeRotationZ(e){const 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}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,o=e.x,a=e.y,s=e.z,l=i*o,c=i*a;return this.set(l*o+n,l*a-r*s,l*s+r*a,0,l*a+r*s,c*a+n,c*s-r*o,0,l*s-r*a,c*s+r*o,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,o){return this.set(1,n,i,0,e,1,o,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,o=t._y,a=t._z,s=t._w,l=i+i,c=o+o,u=a+a,d=i*l,p=i*c,h=i*u,f=o*c,m=o*u,g=a*u,v=s*l,y=s*c,b=s*u,x=n.x,S=n.y,w=n.z;return r[0]=(1-(f+g))*x,r[1]=(p+b)*x,r[2]=(h-y)*x,r[3]=0,r[4]=(p-b)*S,r[5]=(1-(d+g))*S,r[6]=(m+v)*S,r[7]=0,r[8]=(h+y)*w,r[9]=(m-v)*w,r[10]=(1-(d+f))*w,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=uv.set(r[0],r[1],r[2]).length();const o=uv.set(r[4],r[5],r[6]).length(),a=uv.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],dv.copy(this);const s=1/i,l=1/o,c=1/a;return dv.elements[0]*=s,dv.elements[1]*=s,dv.elements[2]*=s,dv.elements[4]*=l,dv.elements[5]*=l,dv.elements[6]*=l,dv.elements[8]*=c,dv.elements[9]*=c,dv.elements[10]*=c,t.setFromRotationMatrix(dv),n.x=i,n.y=o,n.z=a,this}makePerspective(e,t,n,r,i,o){const a=this.elements,s=2*i/(t-e),l=2*i/(n-r),c=(t+e)/(t-e),u=(n+r)/(n-r),d=-(o+i)/(o-i),p=-2*o*i/(o-i);return a[0]=s,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=l,a[9]=u,a[13]=0,a[2]=0,a[6]=0,a[10]=d,a[14]=p,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(e,t,n,r,i,o){const a=this.elements,s=1/(t-e),l=1/(n-r),c=1/(o-i),u=(t+e)*s,d=(n+r)*l,p=(o+i)*c;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-u,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-d,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-p,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const 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}}const uv=new Dg,dv=new cv,pv=new Dg(0,0,0),hv=new Dg(1,1,1),fv=new Dg,mv=new Dg,gv=new Dg,vv=new cv,yv=new Ig;class bv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bv.DEFAULT_ORDER;this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n){let 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}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=e.elements,i=r[0],o=r[4],a=r[8],s=r[1],l=r[5],c=r[9],u=r[2],d=r[6],p=r[10];switch(t){case"XYZ":this._y=Math.asin(Zm(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,p),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Zm(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,p),this._z=Math.atan2(s,l)):(this._y=Math.atan2(-u,i),this._z=0);break;case"ZXY":this._x=Math.asin(Zm(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,p),this._z=Math.atan2(-o,l)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-Zm(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,p),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-o,l));break;case"YZX":this._z=Math.asin(Zm(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(a,p));break;case"XZY":this._z=Math.asin(-Zm(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-c,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return vv.makeRotationFromQuaternion(e),this.setFromRotationMatrix(vv,t,n)}setFromVector3(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(e.x,e.y,e.z,t)}reorder(e){return yv.setFromEuler(this),this.setFromQuaternion(yv,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(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}toArray(){let 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}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}bv.DEFAULT_ORDER="XYZ";class xv{constructor(){this.mask=1}set(e){this.mask=1<<e>>>0}enable(e){this.mask|=1<<e}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e}disable(e){this.mask&=~(1<<e)}disableAll(){this.mask=0}test(e){return 0!==(this.mask&e.mask)}isEnabled(e){return 0!==(this.mask&1<<e)}}let Sv=0;const wv=new Dg,_v=new Ig,kv=new cv,Mv=new Dg,Cv=new Dg,Tv=new Dg,Av=new Ig,Ev=new Dg(1,0,0),jv=new Dg(0,1,0),Nv=new Dg(0,0,1),Iv={type:"added"},Dv={type:"removed"};class Pv extends Vm{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:Sv++}),this.uuid=Xm(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Pv.DEFAULT_UP.clone();const e=new Dg,t=new bv,n=new Ig,r=new Dg(1,1,1);t._onChange(function(){n.setFromEuler(t,!1)}),n._onChange(function(){t.setFromQuaternion(n,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new cv},normalMatrix:{value:new ag}}),this.matrix=new cv,this.matrixWorld=new cv,this.matrixAutoUpdate=Pv.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.matrixWorldAutoUpdate=Pv.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.layers=new xv,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}
vendor: 10,940 bytes, line 2
2setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return _v.setFromAxisAngle(e,t),this.quaternion.multiply(_v),this}rotateOnWorldAxis(e,t){return _v.setFromAxisAngle(e,t),this.quaternion.premultiply(_v),this}rotateX(e){return this.rotateOnAxis(Ev,e)}rotateY(e){return this.rotateOnAxis(jv,e)}rotateZ(e){return this.rotateOnAxis(Nv,e)}translateOnAxis(e,t){return wv.copy(e).applyQuaternion(this.quaternion),this.position.add(wv.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(Ev,e)}translateY(e){return this.translateOnAxis(jv,e)}translateZ(e){return this.translateOnAxis(Nv,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(kv.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?Mv.copy(e):Mv.set(e,t,n);const r=this.parent;this.updateWorldMatrix(!0,!1),Cv.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?kv.lookAt(Cv,Mv,this.up):kv.lookAt(Mv,Cv,this.up),this.quaternion.setFromRotationMatrix(kv),r&&(kv.extractRotation(r.matrixWorld),_v.setFromRotationMatrix(kv),this.quaternion.premultiply(_v.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);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(Iv)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(Dv)),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){for(let e=0;e<this.children.length;e++){const t=this.children[e];t.parent=null,t.dispatchEvent(Dv)}return this.children.length=0,this}attach(e){return this.updateWorldMatrix(!0,!1),kv.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),kv.multiply(e.parent.matrixWorld)),e.applyMatrix4(kv),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){const r=this.children[n].getObjectByProperty(e,t);if(void 0!==r)return r}}getObjectsByProperty(e,t){let n=[];this[e]===t&&n.push(this);for(let r=0,i=this.children.length;r<i;r++){const i=this.children[r].getObjectsByProperty(e,t);i.length>0&&(n=n.concat(i))}return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Cv,e,Tv),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Cv,Av,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let n=0,r=t.length;n<r;n++){const r=t[n];!0!==r.matrixWorldAutoUpdate&&!0!==e||r.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&!0===n.matrixWorldAutoUpdate&&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){const e=this.children;for(let t=0,n=e.length;t<n;t++){const n=e[t];!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!1,!0)}}}toJSON(e){const t=void 0===e||"string"===typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const 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),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.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&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){const r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}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)){const t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){const t=o(e.geometries),r=o(e.materials),i=o(e.textures),a=o(e.images),s=o(e.shapes),l=o(e.skeletons),c=o(e.animations),u=o(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),a.length>0&&(n.images=a),s.length>0&&(n.shapes=s),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=r,n;function o(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e){let 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.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,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(let n=0;n<e.children.length;n++){const t=e.children[n];this.add(t.clone())}return this}}Pv.DEFAULT_UP=new Dg(0,1,0),Pv.DEFAULT_MATRIX_AUTO_UPDATE=!0,Pv.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Lv=new Dg,Rv=new Dg,Ov=new Dg,zv=new Dg,Fv=new Dg,Bv=new Dg,Uv=new Dg,Hv=new Dg,Wv=new Dg,Vv=new Dg;let Gv=!1;class qv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Dg;this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),Lv.subVectors(e,t),r.cross(Lv);const i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Lv.subVectors(r,t),Rv.subVectors(n,t),Ov.subVectors(e,t);const o=Lv.dot(Lv),a=Lv.dot(Rv),s=Lv.dot(Ov),l=Rv.dot(Rv),c=Rv.dot(Ov),u=o*l-a*a;if(0===u)return i.set(-2,-1,-1);const d=1/u,p=(l*s-a*c)*d,h=(o*c-a*s)*d;return i.set(1-p-h,h,p)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,zv),zv.x>=0&&zv.y>=0&&zv.x+zv.y<=1}static getUV(e,t,n,r,i,o,a,s){return!1===Gv&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Gv=!0),this.getInterpolation(e,t,n,r,i,o,a,s)}static getInterpolation(e,t,n,r,i,o,a,s){return this.getBarycoord(e,t,n,r,zv),s.setScalar(0),s.addScaledVector(i,zv.x),s.addScaledVector(o,zv.y),s.addScaledVector(a,zv.z),s}static isFrontFacing(e,t,n,r){return Lv.subVectors(n,t),Rv.subVectors(e,t),Lv.cross(Rv).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Lv.subVectors(this.c,this.b),Rv.subVectors(this.a,this.b),.5*Lv.cross(Rv).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return qv.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return qv.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,r,i){return!1===Gv&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Gv=!0),qv.getInterpolation(e,this.a,this.b,this.c,t,n,r,i)}getInterpolation(e,t,n,r,i){return qv.getInterpolation(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return qv.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return qv.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let o,a;Fv.subVectors(r,n),Bv.subVectors(i,n),Hv.subVectors(e,n);const s=Fv.dot(Hv),l=Bv.dot(Hv);if(s<=0&&l<=0)return t.copy(n);Wv.subVectors(e,r);const c=Fv.dot(Wv),u=Bv.dot(Wv);if(c>=0&&u<=c)return t.copy(r);
2const d=s*u-c*l;if(d<=0&&s>=0&&c<=0)return o=s/(s-c),t.copy(n).addScaledVector(Fv,o);Vv.subVectors(e,i);const p=Fv.dot(Vv),h=Bv.dot(Vv);if(h>=0&&p<=h)return t.copy(i);const f=p*l-s*h;if(f<=0&&l>=0&&h<=0)return a=l/(l-h),t.copy(n).addScaledVector(Bv,a);const m=c*h-p*u;if(m<=0&&u-c>=0&&p-h>=0)return Uv.subVectors(i,r),a=(u-c)/(u-c+(p-h)),t.copy(r).addScaledVector(Uv,a);const g=1/(m+f+d);return o=f*g,a=d*g,t.copy(n).addScaledVector(Fv,o).addScaledVector(Bv,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let Kv=0;class Yv extends Vm{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Kv++}),this.uuid=Xm(),this.name="",this.type="Material",this.blending=Vp,this.side=Fp,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=ih,this.blendDst=oh,this.blendEquation=Xp,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=fh,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Nm,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=vm,this.stencilZFail=vm,this.stencilZPass=vm,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!==e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn("THREE.Material: parameter '".concat(t,"' has value of undefined."));continue}const 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.Material: '".concat(t,"' is not a property of THREE.").concat(this.type,"."))}}toJSON(e){const t=void 0===e||"string"===typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}
vendor: 7,540 bytes, line 2
2if(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()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),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&&this.attenuationDistance!==1/0&&(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!==Vp&&(n.blending=this.blending),this.side!==Fp&&(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.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,void 0!==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),void 0!==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.forceSinglePass&&(n.forceSinglePass=this.forceSinglePass),!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),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,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;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipSh
2adows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,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.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}const Xv={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},Zv={h:0,s:0,l:0},Qv={h:0,s:0,l:0};function Jv(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}class $v{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,void 0===t&&void 0===n?this.set(e):this.setRGB(e,t,n)}set(e){return e&&e.isColor?this.copy(e):"number"===typeof e?this.setHex(e):"string"===typeof e&&this.setStyle(e),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hm;return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,yg.toWorkingColorSpace(this,t),this}setRGB(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:yg.workingColorSpace;return this.r=e,this.g=t,this.b=n,yg.toWorkingColorSpace(this,r),this}setHSL(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:yg.workingColorSpace;if(e=Qm(e,1),t=Zm(t,0,1),n=Zm(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Jv(i,r,e+1/3),this.g=Jv(i,r,e),this.b=Jv(i,r,e-1/3)}return yg.toWorkingColorSpace(this,r),this}setStyle(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hm;function r(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}if(t=/^(\w+)\(([^\)]*)\)/.exec(e)){let i;const o=t[1],a=t[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,yg.toWorkingColorSpace(this,n),r(i[4]),this;if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,yg.toWorkingColorSpace(this,n),r(i[4]),this;break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){const e=parseFloat(i[1])/360,t=parseFloat(i[2])/100,o=parseFloat(i[3])/100;return r(i[4]),this.setHSL(e,t,o,n)}break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(t=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=t[1],i=r.length;if(3===i)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,n);if(6===i)return this.setHex(parseInt(r,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hm;const n=Xv[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=pg(e.r),this.g=pg(e.g),this.b=pg(e.b),this}copyLinearToSRGB(e){return this.r=hg(e.r),this.g=hg(e.g),this.b=hg(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hm;return yg.fromWorkingColorSpace(ey.copy(this),e),Zm(255*ey.r,0,255)<<16^Zm(255*ey.g,0,255)<<8^Zm(255*ey.b,0,255)}getHexString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hm;return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yg.workingColorSpace;yg.fromWorkingColorSpace(ey.copy(this),t);const n=ey.r,r=ey.g,i=ey.b,o=Math.max(n,r,i),a=Math.min(n,r,i);let s,l;const c=(a+o)/2;if(a===o)s=0,l=0;else{const e=o-a;switch(l=c<=.5?e/(o+a):e/(2-o-a),o){case n:s=(r-i)/e+(r<i?6:0);break;case r:s=(i-n)/e+2;break;case i:s=(n-r)/e+4}s/=6}return e.h=s,e.s=l,e.l=c,e}getRGB(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yg.workingColorSpace;return yg.fromWorkingColorSpace(ey.copy(this),t),e.r=ey.r,e.g=ey.g,e.b=ey.b,e}getStyle(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hm;yg.fromWorkingColorSpace(ey.copy(this),e);const t=ey.r,n=ey.g,r=ey.b;return e!==hm?"color(".concat(e," ").concat(t.toFixed(3)," ").concat(n.toFixed(3)," ").concat(r.toFixed(3),")"):"rgb(".concat(255*t|0,",").concat(255*n|0,",").concat(255*r|0,")")}offsetHSL(e,t,n){return this.getHSL(Zv),Zv.h+=e,Zv.s+=t,Zv.l+=n,this.setHSL(Zv.h,Zv.s,Zv.l),this}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(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}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(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}
2lerpColors(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}lerpHSL(e,t){this.getHSL(Zv),e.getHSL(Qv);const n=Jm(Zv.h,Qv.h,t),r=Jm(Zv.s,Qv.s,t),i=Jm(Zv.l,Qv.l,t);return this.setHSL(n,r,i),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,n=this.g,r=this.b,i=e.elements;return this.r=i[0]*t+i[3]*n+i[6]*r,this.g=i[1]*t+i[4]*n+i[7]*r,this.b=i[2]*t+i[5]*n+i[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e){let 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}toArray(){let 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}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const ey=new $v;$v.NAMES=Xv;class ty extends Yv{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new $v(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=bh,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.fog=e.fog,this}}const ny=ry();function ry(){const e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const e=l-127;e<-27?(r[l]=0,r[256|l]=32768,i[l]=24,i[256|l]=24):e<-14?(r[l]=1024>>-e-14,r[256|l]=1024>>-e-14|32768,i[l]=-e-1,i[256|l]=-e-1):e<=15?(r[l]=e+15<<10,r[256|l]=e+15<<10|32768,i[l]=13,i[256|l]=13):e<128?(r[l]=31744,r[256|l]=64512,i[l]=24,i[256|l]=24):(r[l]=31744,r[256|l]=64512,i[l]=13,i[256|l]=13)}const o=new Uint32Array(2048),a=new Uint32Array(64),s=new Uint32Array(64);for(let l=1;l<1024;++l){let e=l<<13,t=0;for(;0===(8388608&e);)e<<=1,t-=8388608;e&=-8388609,t+=947912704,o[l]=e|t}for(let l=1024;l<2048;++l)o[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)a[l]=l<<23;a[31]=1199570944,a[32]=2147483648;for(let l=33;l<63;++l)a[l]=2147483648+(l-32<<23);a[63]=3347054592;for(let l=1;l<64;++l)32!==l&&(s[l]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:o,exponentTable:a,offsetTable:s}}function iy(e){Math.abs(e)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),e=Zm(e,-65504,65504),ny.floatView[0]=e;const t=ny.uint32View[0],n=t>>23&511;return ny.baseTable[n]+((8388607&t)>>ny.shiftTable[n])}function oy(e){const t=e>>10;return ny.uint32View[0]=ny.mantissaTable[ny.offsetTable[t]+(1023&e)]+ny.exponentTable[t],ny.floatView[0]}const ay={toHalfFloat:iy,fromHalfFloat:oy},sy=new Dg,ly=new og;class cy{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=Im,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(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}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;
vendor: 7,008 bytes, line 2
2for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)ly.fromBufferAttribute(this,t),ly.applyMatrix3(e),this.setXY(t,ly.x,ly.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)sy.fromBufferAttribute(this,t),sy.applyMatrix3(e),this.setXYZ(t,sy.x,sy.y,sy.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)sy.fromBufferAttribute(this,t),sy.applyMatrix4(e),this.setXYZ(t,sy.x,sy.y,sy.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)sy.fromBufferAttribute(this,t),sy.applyNormalMatrix(e),this.setXYZ(t,sy.x,sy.y,sy.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)sy.fromBufferAttribute(this,t),sy.transformDirection(e),this.setXYZ(t,sy.x,sy.y,sy.z);return this}set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=ng(t,this.array)),t}setX(e,t){return this.normalized&&(t=rg(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=ng(t,this.array)),t}setY(e,t){return this.normalized&&(t=rg(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=ng(t,this.array)),t}setZ(e,t){return this.normalized&&(t=rg(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=ng(t,this.array)),t}setW(e,t){return this.normalized&&(t=rg(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array),r=rg(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array),r=rg(r,this.array),i=rg(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==Im&&(e.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(e.updateRange=this.updateRange),e}copyColorsArray(){console.error("THREE.BufferAttribute: copyColorsArray() was removed in r144.")}copyVector2sArray(){console.error("THREE.BufferAttribute: copyVector2sArray() was removed in r144.")}copyVector3sArray(){console.error("THREE.BufferAttribute: copyVector3sArray() was removed in r144.")}copyVector4sArray(){console.error("THREE.BufferAttribute: copyVector4sArray() was removed in r144.")}}class uy extends cy{constructor(e,t,n){super(new Int8Array(e),t,n)}}class dy extends cy{constructor(e,t,n){super(new Uint8Array(e),t,n)}}class py extends cy{constructor(e,t,n){super(new Uint8ClampedArray(e),t,n)}}class hy extends cy{constructor(e,t,n){super(new Int16Array(e),t,n)}}class fy extends cy{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class my extends cy{constructor(e,t,n){super(new Int32Array(e),t,n)}}class gy extends cy{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class vy extends cy{constructor(e,t,n){super(new Uint16Array(e),t,n),this.isFloat16BufferAttribute=!0}getX(e){let t=oy(this.array[e*this.itemSize]);return this.normalized&&(t=ng(t,this.array)),t}setX(e,t){return this.normalized&&(t=rg(t,this.array)),this.array[e*this.itemSize]=iy(t),this}getY(e){let t=oy(this.array[e*this.itemSize+1]);return this.normalized&&(t=ng(t,this.array)),t}setY(e,t){return this.normalized&&(t=rg(t,this.array)),this.array[e*this.itemSize+1]=iy(t),this}getZ(e){let t=oy(this.array[e*this.itemSize+2]);return this.normalized&&(t=ng(t,this.array)),t}setZ(e,t){return this.normalized&&(t=rg(t,this.array)),this.array[e*this.itemSize+2]=iy(t),this}getW(e){let t=oy(this.array[e*this.itemSize+3]);return this.normalized&&(t=ng(t,this.array)),t}setW(e,t){return this.normalized&&(t=rg(t,this.array)),this.array[e*this.itemSize+3]=iy(t),this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array)),this.array[e+0]=iy(t),this.array[e+1]=iy(n),this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array),r=rg(r,this.array)),this.array[e+0]=iy(t),this.array[e+1]=iy(n),this.array[e+2]=iy(r),this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array),r=rg(r,this.array),i=rg(i,this.array)),this.array[e+0]=iy(t),this.array[e+1]=iy(n),this.array[e+2]=iy(r),this.array[e+3]=iy(i),this}}class yy extends cy{constructor(e,t,n){super(new Float32Array(e),t,n)}}class by extends cy{constructor(e,t,n){super(new Float64Array(e),t,n)}}let xy=0;const Sy=new cv,wy=new Pv,_y=new Dg,ky=new Rg,My=new Rg,Cy=new Dg;class Ty extends Vm{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:xy++}),this.uuid=Xm(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(lg(e)?gy:fy)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new ag).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const r=this.attributes.tangent;return void 0!==r&&(r.transformDirection(e),r.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return Sy.makeRotationFromQuaternion(e),this.applyMatrix4(Sy),this}rotateX(e){return Sy.makeRotationX(e),this.applyMatrix4(Sy),this}rotateY(e){return Sy.makeRotationY(e),this.applyMatrix4(Sy),this}rotateZ(e){return Sy.makeRotationZ(e),this.applyMatrix4(Sy),this}translate(e,t,n){return Sy.makeTranslation(e,t,n),this.applyMatrix4(Sy),this}scale(e,t,n){return Sy.makeScale(e,t,n),this.applyMatrix4(Sy),this}lookAt(e){return wy.lookAt(e),wy.updateMatrix(),this.applyMatrix4(wy.matrix
vendor: 1,709 bytes, line 2
2),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(_y).negate(),this.translate(_y.x,_y.y,_y.z),this}setFromPoints(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];t.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new yy(t,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Rg);const 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 Dg(-1/0,-1/0,-1/0),new Dg(1/0,1/0,1/0));if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let n=0,r=t.length;n<r;n++){const e=t[n];ky.setFromBufferAttribute(e),this.morphTargetsRelative?(Cy.addVectors(this.boundingBox.min,ky.min),this.boundingBox.expandByPoint(Cy),Cy.addVectors(this.boundingBox.max,ky.max),this.boundingBox.expandByPoint(Cy)):(this.boundingBox.expandByPoint(ky.min),this.boundingBox.expandByPoint(ky.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)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new ev);const 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
2se".',this),void this.boundingSphere.set(new Dg,1/0);if(e){const n=this.boundingSphere.center;if(ky.setFromBufferAttribute(e),t)for(let e=0,i=t.length;e<i;e++){const n=t[e];My.setFromBufferAttribute(n),this.morphTargetsRelative?(Cy.addVectors(ky.min,My.min),ky.expandByPoint(Cy),Cy.addVectors(ky.max,My.max),ky.expandByPoint(Cy)):(ky.expandByPoint(My.min),ky.expandByPoint(My.max))}ky.getCenter(n);let r=0;for(let t=0,i=e.count;t<i;t++)Cy.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(Cy));if(t)for(let i=0,o=t.length;i<o;i++){const o=t[i],a=this.morphTargetsRelative;for(let t=0,i=o.count;t<i;t++)Cy.fromBufferAttribute(o,t),a&&(_y.fromBufferAttribute(e,t),Cy.add(_y)),r=Math.max(r,n.distanceToSquared(Cy))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=e.array,r=t.position.array,i=t.normal.array,o=t.uv.array,a=r.length/3;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new cy(new Float32Array(4*a),4));const s=this.getAttribute("tangent").array,l=[],c=[];for(let M=0;M<a;M++)l[M]=new Dg,c[M]=new Dg;const u=new Dg,d=new Dg,p=new Dg,h=new og,f=new og,m=new og,g=new Dg,v=new Dg;function y(e,t,n){u.fromArray(r,3*e),d.fromArray(r,3*t),p.fromArray(r,3*n),h.fromArray(o,2*e),f.fromArray(o,2*t),m.fromArray(o,2*n),d.sub(u),p.sub(u),f.sub(h),m.sub(h);const i=1/(f.x*m.y-m.x*f.y);isFinite(i)&&(g.copy(d).multiplyScalar(m.y).addScaledVector(p,-f.y).multiplyScalar(i),v.copy(p).multiplyScalar(f.x).addScaledVector(d,-m.x).multiplyScalar(i),l[e].add(g),l[t].add(g),l[n].add(g),c[e].add(v),c[t].add(v),c[n].add(v))}let b=this.groups;0===b.length&&(b=[{start:0,count:n.length}]);for(let M=0,C=b.length;M<C;++M){const e=b[M],t=e.start;for(let r=t,i=t+e.count;r<i;r+=3)y(n[r+0],n[r+1],n[r+2])}const x=new Dg,S=new Dg,w=new Dg,_=new Dg;function k(e){w.fromArray(i,3*e),_.copy(w);const t=l[e];x.copy(t),x.sub(w.multiplyScalar(w.dot(t))).normalize(),S.crossVectors(_,t);const n=S.dot(c[e])<0?-1:1;s[4*e]=x.x,s[4*e+1]=x.y,s[4*e+2]=x.z,s[4*e+3]=n}for(let M=0,C=b.length;M<C;++M){const e=b[M],t=e.start;for(let r=t,i=t+e.count;r<i;r+=3)k(n[r+0]),k(n[r+1]),k(n[r+2])}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new cy(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const r=new Dg,i=new Dg,o=new Dg,a=new Dg,s=new Dg,l=new Dg,c=new Dg,u=new Dg;if(e)for(let d=0,p=e.count;d<p;d+=3){const p=e.getX(d+0),h=e.getX(d+1),f=e.getX(d+2);r.fromBufferAttribute(t,p),i.fromBufferAttribute(t,h),o.fromBufferAttribute(t,f),c.subVectors(o,i),u.subVectors(r,i),c.cross(u),a.fromBufferAttribute(n,p),s.fromBufferAttribute(n,h),l.fromBufferAttribute(n,f),a.add(c),s.add(c),l.add(c),n.setXYZ(p,a.x,a.y,a.z),n.setXYZ(h,s.x,s.y,s.z),n.setXYZ(f,l.x,l.y,l.z)}else for(let e=0,d=t.count;e<d;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),o.fromBufferAttribute(t,e+2),c.subVectors(o,i),u.subVectors(r,i),c.cross(u),n.setXYZ(e+0,c.x,c.y,c.z),n.setXYZ(e+1,c.x,c.y,c.z),n.setXYZ(e+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}merge(){return console.error("THREE.BufferGeometry.merge() has been removed. Use THREE.BufferGeometryUtils.mergeGeometries() instead."),this}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)Cy.fromBufferAttribute(e,t),Cy.normalize(),e.setXYZ(t,Cy.x,Cy.y,Cy.z)}toNonIndexed(){function e(e,t){const n=e.array,r=e.itemSize,i=e.normalized,o=new n.constructor(t.length*r);let a=0,s=0;for(let l=0,c=t.length;l<c;l++){a=e.isInterleavedBufferAttribute?t[l]*e.data.stride+e.offset:t[l]*r;for(let e=0;e<r;e++)o[s++]=n[a++]}return new cy(o,r,i)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new Ty,n=this.index.array,r=this.attributes;for(const a in r){const i=e(r[a],n);t.setAttribute(a,i)}const i=this.morphAttributes;for(const a in i){const r=[],o=i[a];for(let t=0,i=o.length;t<i;t++){const i=e(o[t],n);r.push(i)}t.morphAttributes[a]=r}t.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,s=o.length;a<s;a++){const e=o[a];t.addGroup(e.start,e.count,e.materialIndex)}return t}toJSON(){const e={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};
2if(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){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const s in n){const t=n[s];e.data.attributes[s]=t.toJSON(e.data)}const r={};let i=!1;for(const s in this.morphAttributes){const t=this.morphAttributes[s],n=[];for(let r=0,i=t.length;r<i;r++){const i=t[r];n.push(i.toJSON(e.data))}n.length>0&&(r[s]=n,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const l in r){const e=r[l];this.setAttribute(l,e.clone(t))}const i=e.morphAttributes;for(const l in i){const e=[],n=i[l];for(let r=0,i=n.length;r<i;r++)e.push(n[r].clone(t));this.morphAttributes[l]=e}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let l=0,c=o.length;l<c;l++){const e=o[l];this.addGroup(e.start,e.count,e.materialIndex)}const a=e.boundingBox;null!==a&&(this.boundingBox=a.clone());const s=e.boundingSphere;return null!==s&&(this.boundingSphere=s.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Ay=new cv,Ey=new lv,jy=new ev,Ny=new Dg,Iy=new Dg,Dy=new Dg,Py=new Dg,Ly=new Dg,Ry=new Dg,Oy=new og,zy=new og,Fy=new og,By=new Dg,Uy=new Dg,Hy=new Dg,Wy=new Dg,Vy=new Dg;class Gy extends Pv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ty,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ty;super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),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}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){const n=this.geometry,r=n.attributes.position,i=n.morphAttributes.position,o=n.morphTargetsRelative;t.fromBufferAttribute(r,e);const a=this.morphTargetInfluences;if(i&&a){Ry.set(0,0,0);for(let n=0,r=i.length;n<r;n++){const r=a[n],s=i[n];0!==r&&(Ly.fromBufferAttribute(s,e),o?Ry.addScaledVector(Ly,r):Ry.addScaledVector(Ly.sub(t),r))}t.add(Ry)}return this.isSkinnedMesh&&this.applyBoneTransform(e,t),t}raycast(e,t){const n=this.geometry,r=this.material,i=this.matrixWorld;if(void 0===r)return;if(null===n.boundingSphere&&n.computeBoundingSphere(),jy.copy(n.boundingSphere),jy.applyMatrix4(i),Ey.copy(e.ray).recast(e.near),!1===jy.containsPoint(Ey.origin)){if(null===Ey.intersectSphere(jy,Ny))return;if(Ey.origin.distanceToSquared(Ny)>(e.far-e.near)**2)return}if(Ay.copy(i).invert(),Ey.copy(e.ray).applyMatrix4(Ay),null!==n.boundingBox&&!1===Ey.intersectsBox(n.boundingBox))return;let o;const a=n.index,s=n.attributes.position,l=n.attributes.uv,c=n.attributes.uv2,u=n.attributes.normal,d=n.groups,p=n.drawRange;if(null!==a)if(Array.isArray(r))for(let h=0,f=d.length;h<f;h++){const n=d[h],i=r[n.materialIndex];for(let r=Math.max(n.start,p.start),s=Math.min(a.count,Math.min(n.start+n.count,p.start+p.count));r<s;r+=3){const s=a.getX(r),d=a.getX(r+1),p=a.getX(r+2);o=qy(this,i,e,Ey,l,c,u,s,d,p),o&&(o.faceIndex=Math.floor(r/3),o.face.materialIndex=n.materialIndex,t.push(o))}}else{for(let n=Math.max(0,p.start),i=Math.min(a.count,p.start+p.count);n<i;n+=3){const i=a.getX(n),s=a.getX(n+1),d=a.getX(n+2);
vendor: 7,615 bytes, line 2
2o=qy(this,r,e,Ey,l,c,u,i,s,d),o&&(o.faceIndex=Math.floor(n/3),t.push(o))}}else if(void 0!==s)if(Array.isArray(r))for(let h=0,f=d.length;h<f;h++){const n=d[h],i=r[n.materialIndex];for(let r=Math.max(n.start,p.start),a=Math.min(s.count,Math.min(n.start+n.count,p.start+p.count));r<a;r+=3){o=qy(this,i,e,Ey,l,c,u,r,r+1,r+2),o&&(o.faceIndex=Math.floor(r/3),o.face.materialIndex=n.materialIndex,t.push(o))}}else{for(let n=Math.max(0,p.start),i=Math.min(s.count,p.start+p.count);n<i;n+=3){o=qy(this,r,e,Ey,l,c,u,n,n+1,n+2),o&&(o.faceIndex=Math.floor(n/3),t.push(o))}}}}function qy(e,t,n,r,i,o,a,s,l,c){e.getVertexPosition(s,Iy),e.getVertexPosition(l,Dy),e.getVertexPosition(c,Py);const u=function(e,t,n,r,i,o,a,s){let l;if(l=t.side===Bp?r.intersectTriangle(a,o,i,!0,s):r.intersectTriangle(i,o,a,t.side===Fp,s),null===l)return null;Vy.copy(s),Vy.applyMatrix4(e.matrixWorld);const c=n.ray.origin.distanceTo(Vy);return c<n.near||c>n.far?null:{distance:c,point:Vy.clone(),object:e}}(e,t,n,r,Iy,Dy,Py,Wy);if(u){i&&(Oy.fromBufferAttribute(i,s),zy.fromBufferAttribute(i,l),Fy.fromBufferAttribute(i,c),u.uv=qv.getInterpolation(Wy,Iy,Dy,Py,Oy,zy,Fy,new og)),o&&(Oy.fromBufferAttribute(o,s),zy.fromBufferAttribute(o,l),Fy.fromBufferAttribute(o,c),u.uv2=qv.getInterpolation(Wy,Iy,Dy,Py,Oy,zy,Fy,new og)),a&&(By.fromBufferAttribute(a,s),Uy.fromBufferAttribute(a,l),Hy.fromBufferAttribute(a,c),u.normal=qv.getInterpolation(Wy,Iy,Dy,Py,By,Uy,Hy,new Dg),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const e={a:s,b:l,c:c,normal:new Dg,materialIndex:0};qv.getNormal(Iy,Dy,Py,e.normal),u.face=e}return u}class Ky extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const s=[],l=[],c=[],u=[];let d=0,p=0;function h(e,t,n,r,i,o,h,f,m,g,v){const y=o/m,b=h/g,x=o/2,S=h/2,w=f/2,_=m+1,k=g+1;let M=0,C=0;const T=new Dg;for(let a=0;a<k;a++){const o=a*b-S;for(let s=0;s<_;s++){const d=s*y-x;T[e]=d*r,T[t]=o*i,T[n]=w,l.push(T.x,T.y,T.z),T[e]=0,T[t]=0,T[n]=f>0?1:-1,c.push(T.x,T.y,T.z),u.push(s/m),u.push(1-a/g),M+=1}}for(let a=0;a<g;a++)for(let e=0;e<m;e++){const t=d+e+_*a,n=d+e+_*(a+1),r=d+(e+1)+_*(a+1),i=d+(e+1)+_*a;s.push(t,n,i),s.push(n,r,i),C+=6}a.addGroup(p,C,v),p+=C,d+=M}h("z","y","x",-1,-1,n,t,e,o,i,0),h("z","y","x",1,-1,n,t,-e,o,i,1),h("x","z","y",1,1,e,n,t,r,o,2),h("x","z","y",1,-1,e,n,-t,r,o,3),h("x","y","z",1,-1,e,t,n,r,i,4),h("x","y","z",-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute("position",new yy(l,3)),this.setAttribute("normal",new yy(c,3)),this.setAttribute("uv",new yy(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ky(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Yy(e){const t={};for(const n in e){t[n]={};for(const r in e[n]){const i=e[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?i.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[n][r]=null):t[n][r]=i.clone():Array.isArray(i)?t[n][r]=i.slice():t[n][r]=i}}return t}function Xy(e){const t={};for(let n=0;n<e.length;n++){const r=Yy(e[n]);for(const e in r)t[e]=r[e]}return t}function Zy(e){return null===e.getRenderTarget()&&e.outputEncoding===sm?hm:fm}const Qy={clone:Yy,merge:Xy};class Jy extends Yv{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Yy(e.uniforms),this.uniformsGroups=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const r in this.uniforms){const n=this.uniforms[r].value;n&&n.isTexture?t.uniforms[r]={type:"t",value:n.toJSON(e).uuid}:n&&n.isColor?t.uniforms[r]={type:"c",value:n.getHex()}:n&&n.isVector2?t.uniforms[r]={type:"v2",value:n.toArray()}:n&&n.isVector3?t.uniforms[r]={type:"v3",value:n.toArray()}:n&&n.isVector4?t.uniforms[r]={type:"v4",value:n.toArray()}:n&&n.isMatrix3?t.uniforms[r]={type:"m3",value:n.toArray()}:n&&n.isMatrix4?t.uniforms[r]={type:"m4",value:n.toArray()}:t.uniforms[r]={value:n}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;const n={};for(const r in this.extensions)!0===this.extensions[r]&&(n[r]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class $y extends Pv{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new cv,this.projectionMatrix=new cv,this.projectionMatrixInverse=new cv}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class eb extends $y{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2e3;super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),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}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Ym*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*Km*this.fov);return.5*this.getFilmHeight()/e}
2getEffectiveFOV(){return 2*Ym*Math.atan(Math.tan(.5*Km*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,n,r,i,o){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=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*Km*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const o=this.view;if(null!==this.view&&this.view.enabled){const e=o.fullWidth,a=o.fullHeight;i+=o.offsetX*r/e,t-=o.offsetY*n/a,r*=o.width/e,n*=o.height/a}const a=this.filmOffset;0!==a&&(i+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const tb=-90;class nb extends Pv{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n;const r=new eb(tb,1,e,t);r.layers=this.layers,r.up.set(0,1,0),r.lookAt(1,0,0),this.add(r);const i=new eb(tb,1,e,t);i.layers=this.layers,i.up.set(0,1,0),i.lookAt(-1,0,0),this.add(i);const o=new eb(tb,1,e,t);o.layers=this.layers,o.up.set(0,0,-1),o.lookAt(0,1,0),this.add(o);const a=new eb(tb,1,e,t);a.layers=this.layers,a.up.set(0,0,1),a.lookAt(0,-1,0),this.add(a);const s=new eb(tb,1,e,t);s.layers=this.layers,s.up.set(0,1,0),s.lookAt(0,0,1),this.add(s);const l=new eb(tb,1,e,t);l.layers=this.layers,l.up.set(0,1,0),l.lookAt(0,0,-1),this.add(l)}update(e,t){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,o,a,s,l]=this.children,c=e.getRenderTarget(),u=e.toneMapping,d=e.xr.enabled;e.toneMapping=wh,e.xr.enabled=!1;const p=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,r),e.setRenderTarget(n,1),e.render(t,i),e.setRenderTarget(n,2),e.render(t,o),e.setRenderTarget(n,3),e.render(t,a),e.setRenderTarget(n,4),e.render(t,s),n.texture.generateMipmaps=p,e.setRenderTarget(n,5),e.render(t,l),e.setRenderTarget(c),e.toneMapping=u,e.xr.enabled=d,n.texture.needsPMREMUpdate=!0}}class rb extends kg{constructor(e,t,n,r,i,o,a,s,l,c){super(e=void 0!==e?e:[],t=void 0!==t?t:Eh,n,r,i,o,a,s,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class ib extends Cg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new rb(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:Hh}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const 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",o=new Ky(5,5,5),a=new Jy({name:"CubemapFromEquirect",uniforms:Yy(n),vertexShader:r,fragmentShader:i,side:Bp,blending:Wp});a.uniforms.tEquirect.value=t;const s=new Gy(o,a),l=t.minFilter;t.minFilter===Gh&&(t.minFilter=Hh);return new nb(1,10,this).update(e,s),t.minFilter=l,s.geometry.dispose(),s.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,n,r);e.setRenderTarget(i)}}const ob=new Dg,ab=new Dg,sb=new ag;class lb{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg(1,0,0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}
vendor: 4,181 bytes, line 2
2setFromCoplanarPoints(e,t,n){const r=ob.subVectors(n,t).cross(ab.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(ob),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(e.start).addScaledVector(n,i)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||sb.getNormalMatrix(e),r=this.coplanarPoint(ob).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const cb=new ev,ub=new Dg;class db{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new lb,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new lb,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new lb,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new lb,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new lb,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new lb;this.planes=[e,t,n,r,i,o]}set(e,t,n,r,i,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(r),a[4].copy(i),a[5].copy(o),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e){const t=this.planes,n=e.elements,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7],d=n[8],p=n[9],h=n[10],f=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return t[0].setComponents(a-r,u-s,f-d,y-m).normalize(),t[1].setComponents(a+r,u+s,f+d,y+m).normalize(),t[2].setComponents(a+i,u+l,f+p,y+g).normalize(),t[3].setComponents(a-i,u-l,f-p,y-g).normalize(),t[4].setComponents(a-o,u-c,f-h,y-v).normalize(),t[5].setComponents(a+o,u+c,f+h,y+v).normalize(),this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),cb.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),cb.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(cb)}intersectsSprite(e){return cb.center.set(0,0,0),cb.radius=.7071067811865476,cb.applyMatrix4(e.matrixWorld),this.intersectsSphere(cb)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let i=0;i<6;i++){if(t[i].distanceToPoint(n)<r)return!1}return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const r=t[n];if(ub.x=r.normal.x>0?e.max.x:e.min.x,ub.y=r.normal.y>0?e.max.y:e.min.y,ub.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(ub)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function pb(){let e=null,t=!1,n=null,r=null;function i(t,o){n(t,o),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 hb(e,t){const 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);const n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))},update:function(t,i){if(t.isGLBufferAttribute){const e=r.get(t);
vendor: 4,114 bytes, line 2
2return void((!e||e.version<t.version)&&r.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version}))}t.isInterleavedBufferAttribute&&(t=t.data);const o=r.get(t);void 0===o?r.set(t,function(t,r){const i=t.array,o=t.usage,a=e.createBuffer();let s;if(e.bindBuffer(r,a),e.bufferData(r,i,o),t.onUploadCallback(),i instanceof Float32Array)s=5126;else if(i instanceof Uint16Array)if(t.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");s=5131}else s=5123;else if(i instanceof Int16Array)s=5122;else if(i instanceof Uint32Array)s=5125;else if(i instanceof Int32Array)s=5124;else if(i instanceof Int8Array)s=5120;else if(i instanceof Uint8Array)s=5121;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);s=5121}return{buffer:a,type:s,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}(t,i)):o.version<t.version&&(!function(t,r,i){const o=r.array,a=r.updateRange;e.bindBuffer(i,t),-1===a.count?e.bufferSubData(i,0,o):(n?e.bufferSubData(i,a.offset*o.BYTES_PER_ELEMENT,o,a.offset,a.count):e.bufferSubData(i,a.offset*o.BYTES_PER_ELEMENT,o.subarray(a.offset,a.offset+a.count)),a.count=-1),r.onUploadCallback()}(o.buffer,t,i),o.version=t.version)}}}class fb extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:r};const i=e/2,o=t/2,a=Math.floor(n),s=Math.floor(r),l=a+1,c=s+1,u=e/a,d=t/s,p=[],h=[],f=[],m=[];for(let g=0;g<c;g++){const e=g*d-o;for(let t=0;t<l;t++){const n=t*u-i;h.push(n,-e,0),f.push(0,0,1),m.push(t/a),m.push(1-g/s)}}for(let g=0;g<s;g++)for(let e=0;e<a;e++){const t=e+l*g,n=e+l*(g+1),r=e+1+l*(g+1),i=e+1+l*g;p.push(t,n,i),p.push(n,r,i)}this.setIndex(p),this.setAttribute("position",new yy(h,3)),this.setAttribute("normal",new yy(f,3)),this.setAttribute("uv",new yy(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new fb(e.width,e.height,e.widthSegments,e.heightSegments)}}const mb={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).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, vAoMapUv ).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:"float 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}
2 // validated",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660, 0.0556434,\n\t\t-1.5371385, 1.8760108, -0.2040259,\n\t\t-0.4985314, 0.0415560, 1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\t return vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat R21 = R12;\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
2\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\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( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + 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 = dFdx( surf_pos.xyz );\n\t\tvec3 vSigmaY = dFdy( surf_pos.xyz );\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; }\nvec3 pow2( const in vec3 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 v ) { return dot( v, vec3( 0.3333333 ) ); }\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 luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, 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}\nvec3 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 F_Schlick( const in float 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} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.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\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\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\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_v0 0.339\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_v1 0.276\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_v4 0.046\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_v5 0.016\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_v6 0.0038\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_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 ), cubeUV_m0, CUBEUV_MAX_MIP );\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, vDisplacementMapUv ).x * displacementScale + dis
2placementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\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#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 ) || defined( LAMBERT )\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 ) || defined( LAMBERT )\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\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 = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\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}
2 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\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in GeometricContext geometry, const in LambertMaterial 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}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",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 ( LEGACY_LIGHTS )\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#else\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#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}
2\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",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",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\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\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( ( material.ior - 1.0 ) / ( material.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;
2\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, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).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_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).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_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\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}\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );
2\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\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );
vendor: 5,468 bytes, line 2
2\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 > 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}\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\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\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}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\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#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 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
2GeometricContext 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_Clearcoat( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material );\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 );\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 );\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\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\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 c
2omputeSpecularOcclusion( 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\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometry.viewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\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 *= ( 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\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\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 ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ 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 *= ( 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, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\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, vMapUv );\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\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\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_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\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, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\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 ).xyz * 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 ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\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\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\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 = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_NORMALMAP_TANGENTSPACE\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal, vNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).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( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );
2\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 USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.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 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\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, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.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}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\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 depth, const in float near, const in float far ) {\n\treturn depth * ( 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 depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - 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 );
vendor: 14,803 bytes, line 2
2\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, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#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\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\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\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;\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:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#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 ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\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:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\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, vSpotLightCoord[ 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\tuniform highp sampler2D boneTexture;\n\t
2uniform int boneTextureSize;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tfloat j = i * 4.0;\n\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\ty = dy * ( y + 0.5 );\n\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\treturn bone;\n\t}\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, vSpecularMapUv );\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.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\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).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, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmission.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, material.transmission );\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\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, vec2 fullSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\t\n\t\tvec2 lodFudge = pow( 1.95, lod ) / fullSize;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec2 fullSize = vec2( textureSize( sampler, 0 ) );\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), fullSize, floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), fullSize, ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\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 lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\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:"#ifdef USE_UV\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;
2\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_UV2\n\tattribute vec2 uv2;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
2\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\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;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",backgroundCube_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}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\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:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\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 <uv_pars_vertex>\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 <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_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 <uv_pars_fragment>\n#include <map_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 <map_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 <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 <color_vertex>\n\t#include <morphcolor_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 <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 <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, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\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 vViewPosition;\n#include <common>\n#include <uv_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 <color_vertex>\n\t#include <morphcolor_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}",meshlambert_frag:"#define LAMBERT\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 <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 <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_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_lambert_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 <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 <morphcolor_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 <m
2ap_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( USE_NORMALMAP_TANGENTSPACE )\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( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\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\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_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 <color_vertex>\n\t#include <morphcolor_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 <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 <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 <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 <color_vertex>\n\t#include <morphcolor_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 USE_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 USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;
2\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\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 <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 <iridescence_fragment>\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 <iridescence_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;
2\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 <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 <color_vertex>\n\t#include <morphcolor_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 <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>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphcolor_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 <logdepthbuf_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 <logdepthbuf_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 <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\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}"},gb={common:{diffuse:{value:new $v(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new ag},alphaMap:{value:null},alphaMapTransform:{value:new ag},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new ag}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new ag}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new ag}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new ag},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new ag},normalScale:{value:new og(1,1)}}
vendor: 7,315 bytes, line 2
2,displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new ag},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new ag}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new ag}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new ag}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new $v(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:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{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 $v(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new ag}},sprite:{diffuse:{value:new $v(16777215)},opacity:{value:1},center:{value:new og(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new ag},alphaMap:{value:null},alphaTest:{value:0}}},vb={basic:{uniforms:Xy([gb.common,gb.specularmap,gb.envmap,gb.aomap,gb.lightmap,gb.fog]),vertexShader:mb.meshbasic_vert,fragmentShader:mb.meshbasic_frag},lambert:{uniforms:Xy([gb.common,gb.specularmap,gb.envmap,gb.aomap,gb.lightmap,gb.emissivemap,gb.bumpmap,gb.normalmap,gb.displacementmap,gb.fog,gb.lights,{emissive:{value:new $v(0)}}]),vertexShader:mb.meshlambert_vert,fragmentShader:mb.meshlambert_frag},phong:{uniforms:Xy([gb.common,gb.specularmap,gb.envmap,gb.aomap,gb.lightmap,gb.emissivemap,gb.bumpmap,gb.normalmap,gb.displacementmap,gb.fog,gb.lights,{emissive:{value:new $v(0)},specular:{value:new $v(1118481)},shininess:{value:30}}]),vertexShader:mb.meshphong_vert,fragmentShader:mb.meshphong_frag},standard:{uniforms:Xy([gb.common,gb.envmap,gb.aomap,gb.lightmap,gb.emissivemap,gb.bumpmap,gb.normalmap,gb.displacementmap,gb.roughnessmap,gb.metalnessmap,gb.fog,gb.lights,{emissive:{value:new $v(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:mb.meshphysical_vert,fragmentShader:mb.meshphysical_frag},toon:{uniforms:Xy([gb.common,gb.aomap,gb.lightmap,gb.emissivemap,gb.bumpmap,gb.normalmap,gb.displacementmap,gb.gradientmap,gb.fog,gb.lights,{emissive:{value:new $v(0)}}]),vertexShader:mb.meshtoon_vert,fragmentShader:mb.meshtoon_frag},matcap:{uniforms:Xy([gb.common,gb.bumpmap,gb.normalmap,gb.displacementmap,gb.fog,{matcap:{value:null}}]),vertexShader:mb.meshmatcap_vert,fragmentShader:mb.meshmatcap_frag},points:{uniforms:Xy([gb.points,gb.fog]),vertexShader:mb.points_vert,fragmentShader:mb.points_frag},dashed:{uniforms:Xy([gb.common,gb.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:mb.linedashed_vert,fragmentShader:mb.linedashed_frag},depth:{uniforms:Xy([gb.common,gb.displacementmap]),vertexShader:mb.depth_vert,fragmentShader:mb.depth_frag},normal:{uniforms:Xy([gb.common,gb.bumpmap,gb.normalmap,gb.displacementmap,{opacity:{value:1}}]),vertexShader:mb.meshnormal_vert,fragmentShader:mb.meshnormal_frag},sprite:{uniforms:Xy([gb.sprite,gb.fog]),vertexShader:mb.sprite_vert,fragmentShader:mb.sprite_frag},background:{uniforms:{uvTransform:{value:new ag},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:mb.background_vert,fragmentShader:mb.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:mb.backgroundCube_vert,fragmentShader:mb.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:mb.cube_vert,fragmentShader:mb.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:mb.equirect_vert,fragmentShader:mb.equirect_frag},distanceRGBA:{uniforms:Xy([gb.common,gb.displacementmap,{referencePosition:{value:new Dg},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:mb.distanceRGBA_vert,fragmentShader:mb.distanceRGBA_frag},shadow:{uniforms:Xy([gb.lights,gb.fog,{color:{value:new $v(0)},opacity:{value:1}}]),vertexShader:mb.shadow_vert,fragmentShader:mb.shadow_frag}};vb.physical={uniforms:Xy([vb.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new ag},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new ag},clearcoatNormalScale:{value:new og(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new ag},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new ag},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new ag},sheen:{value:0},sheenColor:{value:new $v(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new ag},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new ag},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new ag},transmissionSamplerSize:{value:new og},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new ag},attenuationDistance:{value:0},attenuationColor:{value:new $v(0)},specularColor:{value:new $v(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new ag},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new ag}}]),vertexShader:mb.meshphysical_vert,fragmentShader:mb.meshphysical_frag};const yb={r:0,b:0,g:0};function bb(e,t,n,r,i,o,a){const s=new $v(0);let l,c,u=!0===o?0:1,d=null,p=0,h=null;function f(t,n){t.getRGB(yb,Zy(e)),r.buffers.color.setClear(yb.r,yb.g,yb.b,n,a)}return{getClearColor:function(){return s},setClearColor:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;s.set(e),u=t,f(s,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,f(s,u)},render:function(r,o){let a=!1,m=!0===o.isScene?o.background:null;if(m&&m.isTexture){m=(o.backgroundBlurriness>0?n:t).get(m)}const g=e.xr,v=g.getSession&&g.getSession();v&&"additive"===v.environmentBlendMode&&(m=null),null===m?f(s,u):m&&m.isColor&&(f(m,1),a=!0),(e.autoClear||a)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),m&&(m.isCubeTexture||m.mapping===Dh)?(void 0===c&&(c=new Gy(new Ky(1,1,1),new Jy({name:"Backgroun
2dCubeMaterial",uniforms:Yy(vb.backgroundCube.uniforms),vertexShader:vb.backgroundCube.vertexShader,fragmentShader:vb.backgroundCube.fragmentShader,side:Bp,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(c)),c.material.uniforms.envMap.value=m,c.material.uniforms.flipEnvMap.value=m.isCubeTexture&&!1===m.isRenderTargetTexture?-1:1,c.material.uniforms.backgroundBlurriness.value=o.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=o.backgroundIntensity,c.material.toneMapped=m.encoding!==sm,d===m&&p===m.version&&h===e.toneMapping||(c.material.needsUpdate=!0,d=m,p=m.version,h=e.toneMapping),c.layers.enableAll(),r.unshift(c,c.geometry,c.material,0,0,null)):m&&m.isTexture&&(void 0===l&&(l=new Gy(new fb(2,2),new Jy({name:"BackgroundMaterial",uniforms:Yy(vb.background.uniforms),vertexShader:vb.background.vertexShader,fragmentShader:vb.background.fragmentShader,side:Fp,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=m,l.material.uniforms.backgroundIntensity.value=o.backgroundIntensity,l.material.toneMapped=m.encoding!==sm,!0===m.matrixAutoUpdate&&m.updateMatrix(),l.material.uniforms.uvTransform.value.copy(m.matrix),d===m&&p===m.version&&h===e.toneMapping||(l.material.needsUpdate=!0,d=m,p=m.version,h=e.toneMapping),l.layers.enableAll(),r.unshift(l,l.geometry,l.material,0,0,null))}}}function xb(e,t,n,r){const i=e.getParameter(34921),o=r.isWebGL2?null:t.get("OES_vertex_array_object"),a=r.isWebGL2||null!==o,s={},l=h(null);let c=l,u=!1;function d(t){return r.isWebGL2?e.bindVertexArray(t):o.bindVertexArrayOES(t)}function p(t){return r.isWebGL2?e.deleteVertexArray(t):o.deleteVertexArrayOES(t)}function h(e){const t=[],n=[],r=[];for(let o=0;o<i;o++)t[o]=0,n[o]=0,r[o]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:n,attributeDivisors:r,object:e,attributes:{},index:null}}function f(){const e=c.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function m(e){g(e,0)}function g(n,i){const o=c.newAttributes,a=c.enabledAttributes,s=c.attributeDivisors;if(o[n]=1,0===a[n]&&(e.enableVertexAttribArray(n),a[n]=1),s[n]!==i){(r.isWebGL2?e:t.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,i),s[n]=i}}function v(){const t=c.newAttributes,n=c.enabledAttributes;for(let r=0,i=n.length;r<i;r++)n[r]!==t[r]&&(e.disableVertexAttribArray(r),n[r]=0)}function y(t,n,i,o,a,s){!0!==r.isWebGL2||5124!==i&&5125!==i?e.vertexAttribPointer(t,n,i,o,a,s):e.vertexAttribIPointer(t,n,i,a,s)}function b(){x(),u=!0,c!==l&&(c=l,d(c.object))}function x(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(i,l,p,b,x){let S=!1;if(a){const t=function(t,n,i){const a=!0===i.wireframe;let l=s[t.id];void 0===l&&(l={},s[t.id]=l);let c=l[n.id];void 0===c&&(c={},l[n.id]=c);let u=c[a];void 0===u&&(u=h(r.isWebGL2?e.createVertexArray():o.createVertexArrayOES()),c[a]=u);return u}(b,p,l);c!==t&&(c=t,d(c.object)),S=function(e,t,n,r){const i=c.attributes,o=t.attributes;let a=0;const s=n.getAttributes();for(const l in s){if(s[l].location>=0){const t=i[l];let n=o[l];if(void 0===n&&("instanceMatrix"===l&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===l&&e.instanceColor&&(n=e.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;a++}}return c.attributesNum!==a||c.index!==r}(i,b,p,x),S&&function(e,t,n,r){const i={},o=t.attributes;let a=0;const s=n.getAttributes();for(const l in s){if(s[l].location>=0){let t=o[l];void 0===t&&("instanceMatrix"===l&&e.instanceMatrix&&(t=e.instanceMatrix),"instanceColor"===l&&e.instanceColor&&(t=e.instanceColor));const n={};n.attribute=t,t&&t.data&&(n.data=t.data),i[l]=n,a++}}c.attributes=i,c.attributesNum=a,c.index=r}(i,b,p,x)}else{const e=!0===l.wireframe;c.geometry===b.id&&c.program===p.id&&c.wireframe===e||(c.geometry=b.id,c.program=p.id,c.wireframe=e,S=!0)}
vendor: 19,119 bytes, line 2
2null!==x&&n.update(x,34963),(S||u)&&(u=!1,function(i,o,a,s){if(!1===r.isWebGL2&&(i.isInstancedMesh||s.isInstancedBufferGeometry)&&null===t.get("ANGLE_instanced_arrays"))return;f();const l=s.attributes,c=a.getAttributes(),u=o.defaultAttributeValues;for(const t in c){const r=c[t];if(r.location>=0){let o=l[t];if(void 0===o&&("instanceMatrix"===t&&i.instanceMatrix&&(o=i.instanceMatrix),"instanceColor"===t&&i.instanceColor&&(o=i.instanceColor)),void 0!==o){const t=o.normalized,a=o.itemSize,l=n.get(o);if(void 0===l)continue;const c=l.buffer,u=l.type,d=l.bytesPerElement;if(o.isInterleavedBufferAttribute){const n=o.data,l=n.stride,p=o.offset;if(n.isInstancedInterleavedBuffer){for(let e=0;e<r.locationSize;e++)g(r.location+e,n.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=n.meshPerAttribute*n.count)}else for(let e=0;e<r.locationSize;e++)m(r.location+e);e.bindBuffer(34962,c);for(let e=0;e<r.locationSize;e++)y(r.location+e,a/r.locationSize,u,t,l*d,(p+a/r.locationSize*e)*d)}else{if(o.isInstancedBufferAttribute){for(let e=0;e<r.locationSize;e++)g(r.location+e,o.meshPerAttribute);!0!==i.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=o.meshPerAttribute*o.count)}else for(let e=0;e<r.locationSize;e++)m(r.location+e);e.bindBuffer(34962,c);for(let e=0;e<r.locationSize;e++)y(r.location+e,a/r.locationSize,u,t,a*d,a/r.locationSize*e*d)}}else if(void 0!==u){const n=u[t];if(void 0!==n)switch(n.length){case 2:e.vertexAttrib2fv(r.location,n);break;case 3:e.vertexAttrib3fv(r.location,n);break;case 4:e.vertexAttrib4fv(r.location,n);break;default:e.vertexAttrib1fv(r.location,n)}}}}v()}(i,l,p,b),null!==x&&e.bindBuffer(34963,n.get(x).buffer))},reset:b,resetDefaultState:x,dispose:function(){b();for(const e in s){const t=s[e];for(const e in t){const n=t[e];for(const e in n)p(n[e].object),delete n[e];delete t[e]}delete s[e]}},releaseStatesOfGeometry:function(e){if(void 0===s[e.id])return;const t=s[e.id];for(const n in t){const e=t[n];for(const t in e)p(e[t].object),delete e[t];delete t[n]}delete s[e.id]},releaseStatesOfProgram:function(e){for(const t in s){const n=s[t];if(void 0===n[e.id])continue;const r=n[e.id];for(const e in r)p(r[e].object),delete r[e];delete n[e.id]}},initAttributes:f,enableAttribute:m,disableUnusedAttributes:v}}function Sb(e,t,n,r){const i=r.isWebGL2;let o;this.setMode=function(e){o=e},this.render=function(t,r){e.drawArrays(o,t,r),n.update(r,o,1)},this.renderInstances=function(r,a,s){if(0===s)return;let l,c;if(i)l=e,c="drawArraysInstanced";else if(l=t.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](o,r,a,s),n.update(a,o,s)}}function wb(e,t,n){let 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"}const o="undefined"!==typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===e.constructor.name;let a=void 0!==n.precision?n.precision:"highp";const s=i(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);const l=o||t.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,u=e.getParameter(34930),d=e.getParameter(35660),p=e.getParameter(3379),h=e.getParameter(34076),f=e.getParameter(34921),m=e.getParameter(36347),g=e.getParameter(36348),v=e.getParameter(36349),y=d>0,b=o||t.has("OES_texture_float");return{isWebGL2:o,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:a,logarithmicDepthBuffer:c,maxTextures:u,maxVertexTextures:d,maxTextureSize:p,maxCubemapSize:h,maxAttributes:f,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:b,floatVertexTextures:y&&b,maxSamples:o?e.getParameter(36183):0}}function _b(e){const t=this;let n=null,r=0,i=!1,o=!1;const a=new lb,s=new ag,l={value:null,needsUpdate:!1};function c(e,n,r,i){const o=null!==e?e.length:0;let c=null;if(0!==o){if(c=l.value,!0!==i||null===c){const t=r+4*o,i=n.matrixWorldInverse;s.getNormalMatrix(i),(null===c||c.length<t)&&(c=new Float32Array(t));for(let n=0,l=r;n!==o;++n,l+=4)a.copy(e[n]).applyMatrix4(i,s),a.normal.toArray(c,l),c[l+3]=a.constant}l.value=c,l.needsUpdate=!0}return t.numPlanes=o,t.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||0!==r||i;return i=t,r=e.length,n},this.beginShadows=function(){o=!0,c(null)},this.endShadows=function(){o=!1},this.setGlobalState=function(e,t){n=c(e,t,0)},this.setState=function(a,s,u){const d=a.clippingPlanes,p=a.clipIntersection,h=a.clipShadows,f=e.get(a);if(!i||null===d||0===d.length||o&&!h)o?c(null):function(){l.value!==n&&(l.value=n,l.needsUpdate=r>0);t.numPlanes=r,t.numIntersection=0}();else{const e=o?0:r,t=4*e;let i=f.clippingState||null;l.value=i,i=c(d,s,t,u);for(let r=0;r!==t;++r)i[r]=n[r];f.clippingState=i,this.numIntersection=p?this.numPlanes:0,this.numPlanes+=e}}}function kb(e){let t=new WeakMap;function n(e,t){return t===Nh?e.mapping=Eh:t===Ih&&(e.mapping=jh),e}function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){const o=i.mapping;if(o===Nh||o===Ih){if(t.has(i)){return n(t.get(i).texture,i.mapping)}{const o=i.image;if(o&&o.height>0){const a=new ib(o.height/2);return a.fromEquirectangularTexture(e,i),t.set(i,a),i.addEventListener("dispose",r),n(a.texture,i.mapping)}return null}}}return i},dispose:function(){t=new WeakMap}}}class Mb extends $y{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),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}setViewOffset(e,t,n,r,i,o){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=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const 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;let i=n-e,o=n+e,a=r+t,s=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,o=i+e*this.view.width,a-=t*this.view.offsetY,s=a-t*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const Cb=[.125,.215,.35,.446,.526,.582],Tb=20,Ab=new Mb,Eb=new $v;let jb=null;const Nb=(1+Math.sqrt(5))/2,Ib=1/Nb,Db=[new Dg(1,1,1),new Dg(-1,1,1),new Dg(1,1,-1),new Dg(-1,1,-1),new Dg(0,Nb,Ib),new Dg(0,Nb,-Ib),new Dg(Ib,0,Nb),new Dg(-Ib,0,Nb),new Dg(Nb,Ib,0),new Dg(-Nb,Ib,0)];class Pb{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e){let 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;jb=this._renderer.getRenderTarget(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._fromTexture(e,t)}fromCubemap(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=zb(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=Ob(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(jb),e.scissorTest=!1,Rb(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===Eh||e.mapping===jh?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),jb=this._renderer.getRenderTarget();const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:Hh,minFilter:Hh,generateMipmaps:!1,type:ef,format:af,encoding:am,depthBuffer:!1},r=Lb(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=Lb(e,t,n);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],r=[];let i=e;const o=e-4+1+Cb.length;for(let a=0;a<o;a++){const o=Math.pow(2,i);n.push(o);let s=1/o;a>e-4?s=Cb[a-e+4-1]:0===a&&(s=0),r.push(s);const l=1/(o-2),c=-l,u=1+l,d=[c,c,u,c,u,u,c,c,u,u,c,u],p=6,h=6,f=3,m=2,g=1,v=new Float32Array(f*h*p),y=new Float32Array(m*h*p),b=new Float32Array(g*h*p);for(let e=0;e<p;e++){const t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(r,f*h*e),y.set(d,m*h*e);const i=[e,e,e,e,e,e];b.set(i,g*h*e)}const x=new Ty;x.setAttribute("position",new cy(v,f)),x.setAttribute("uv",new cy(y,m)),x.setAttribute("faceIndex",new cy(b,g)),t.push(x),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(e,t,n){const r=new Float32Array(Tb),i=new Dg(0,1,0),o=new Jy({name:"SphericalGaussianBlur",defines:{n:Tb,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:"".concat(e,".0")},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 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:Wp,depthTest:!1,depthWrite:!1});return o}(r,e,t)}return r}_compileMaterial(e){const t=new Gy(this._lodPlanes[0],e);this._renderer.compile(t,Ab)}_sceneToCubeUV(e,t,n,r){const i=new eb(90,1,t,n),o=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],s=this._renderer,l=s.autoClear,c=s.toneMapping;s.getClearColor(Eb),s.toneMapping=wh,s.autoClear=!1;const u=new ty({name:"PMREM.Background",side:Bp,depthWrite:!1,depthTest:!1}),d=new Gy(new Ky,u);let p=!1;const h=e.background;h?h.isColor&&(u.color.copy(h),e.background=null,p=!0):(u.color.copy(Eb),p=!0);for(let f=0;f<6;f++){const t=f%3;0===t?(i.up.set(0,o[f],0),i.lookAt(a[f],0,0)):1===t?(i.up.set(0,0,o[f]),i.lookAt(0,a[f],0)):(i.up.set(0,o[f],0),i.lookAt(0,0,a[f]));const n=this._cubeSize;Rb(r,t*n,f>2?n:0,n,n),s.setRenderTarget(r),p&&s.render(d,i),s.render(e,i)}d.geometry.dispose(),d.material.dispose(),s.toneMapping=c,s.autoClear=l,e.background=h}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===Eh||e.mapping===jh;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=zb()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=Ob());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new Gy(this._lodPlanes[0],i);i.uniforms.envMap.value=e;const a=this._cubeSize;Rb(t,0,0,3*a,2*a),n.setRenderTarget(t),n.render(o,Ab)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let r=1;r<this._lodPlanes.length;r++){const t=Math.sqrt(this._sigmas[r]*this._sigmas[r]-this._sigmas[r-1]*this._sigmas[r-1]),n=Db[(r-1)%Db.length];this._blur(e,r-1,r,t,n)}t.autoClear=n}_blur(e,t,n,r,i){const o=this._pingPongRenderTarget;this._halfBlur(e,o,t,n,r,"latitudinal",i),this._halfBlur(o,e,n,n,r,"longitudinal",i)}_halfBlur(e,t,n,r,i,o,a){const s=this._renderer,l=this._blurMaterial;"latitudinal"!==o&&"longitudinal"!==o&&console.error("blur direction must be either latitudinal or longitudinal!");const c=new Gy(this._lodPlanes[r],l),u=l.uniforms,d=this._sizeLods[n]-1,p=isFinite(i)?Math.PI/(2*d):2*Math.PI/39,h=i/p,f=isFinite(i)?1+Math.floor(3*h):Tb;f>Tb&&console.warn("sigmaRadians, ".concat(i,", is too large and will clip, as it requested ").concat(f," samples when the maximum is set to ").concat(Tb));const m=[];let g=0;for(let b=0;b<Tb;++b){const e=b/h,t=Math.exp(-e*e/2);m.push(t),0===b?g+=t:b<f&&(g+=2*t)}for(let b=0;b<m.length;b++)m[b]=m[b]/g;u.envMap.value=e.texture,u.samples.value=f,u.weights.value=m,u.latitudinal.value="latitudinal"===o,a&&(u.poleAxis.value=a);const{_lodMax:v}=this;u.dTheta.value=p,u.mipInt.value=v-n;const y=this._sizeLods[r];Rb(t,3*y*(r>v-4?r-v+4:0),4*(this._cubeSize-y),3*y,2*y),s.setRenderTarget(t),s.render(c,Ab)}}function Lb(e,t,n){const r=new Cg(e,t,n);return r.texture.mapping=Dh,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Rb(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Ob(){return new Jy({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\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\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );
2\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:Wp,depthTest:!1,depthWrite:!1})}function zb(){return new Jy({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 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:Wp,depthTest:!1,depthWrite:!1})}function Fb(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping,a=o===Nh||o===Ih,s=o===Eh||o===jh;if(a||s){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=t.get(i);return null===n&&(n=new Pb(e)),r=a?n.fromEquirectangular(i,r):n.fromCubemap(i,r),t.set(i,r),r.texture}if(t.has(i))return t.get(i).texture;{const o=i.image;if(a&&o&&o.height>0||s&&o&&function(e){let t=0;const n=6;for(let r=0;r<n;r++)void 0!==e[r]&&t++;return t===n}(o)){null===n&&(n=new Pb(e));const o=a?n.fromEquirectangular(i):n.fromCubemap(i);return t.set(i,o),i.addEventListener("dispose",r),o.texture}return null}}}return i},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function Bb(e){const t={};
vendor: 20,414 bytes, line 2
2function n(n){if(void 0!==t[n])return t[n];let 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){const t=n(e);return null===t&&console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function Ub(e,t,n,r){const i={},o=new WeakMap;function a(e){const s=e.target;null!==s.index&&t.remove(s.index);for(const n in s.attributes)t.remove(s.attributes[n]);s.removeEventListener("dispose",a),delete i[s.id];const l=o.get(s);l&&(t.remove(l),o.delete(s)),r.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,n.memory.geometries--}function s(e){const n=[],r=e.index,i=e.attributes.position;let a=0;if(null!==r){const e=r.array;a=r.version;for(let t=0,r=e.length;t<r;t+=3){const r=e[t+0],i=e[t+1],o=e[t+2];n.push(r,i,i,o,o,r)}}else{const e=i.array;a=i.version;for(let t=0,r=e.length/3-1;t<r;t+=3){const e=t+0,r=t+1,i=t+2;n.push(e,r,r,i,i,e)}}const s=new(lg(n)?gy:fy)(n,1);s.version=a;const l=o.get(e);l&&t.remove(l),o.set(e,s)}return{get:function(e,t){return!0===i[t.id]||(t.addEventListener("dispose",a),i[t.id]=!0,n.memory.geometries++),t},update:function(e){const n=e.attributes;for(const i in n)t.update(n[i],34962);const r=e.morphAttributes;for(const i in r){const e=r[i];for(let n=0,r=e.length;n<r;n++)t.update(e[n],34962)}},getWireframeAttribute:function(e){const t=o.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&s(e)}else s(e);return o.get(e)}}}function Hb(e,t,n,r){const i=r.isWebGL2;let o,a,s;this.setMode=function(e){o=e},this.setIndex=function(e){a=e.type,s=e.bytesPerElement},this.render=function(t,r){e.drawElements(o,r,a,t*s),n.update(r,o,1)},this.renderInstances=function(r,l,c){if(0===c)return;let u,d;if(i)u=e,d="drawElementsInstanced";else if(u=t.get("ANGLE_instanced_arrays"),d="drawElementsInstancedANGLE",null===u)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[d](o,l,a,r*s,c),n.update(l,o,c)}}function Wb(e){const 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)}}}}function Vb(e,t){return e[0]-t[0]}function Gb(e,t){return Math.abs(t[1])-Math.abs(e[1])}function qb(e,t,n){const r={},i=new Float32Array(8),o=new WeakMap,a=new Mg,s=[];for(let l=0;l<8;l++)s[l]=[l,0];return{update:function(l,c,u){const d=l.morphTargetInfluences;if(!0===t.isWebGL2){const p=c.morphAttributes.position||c.morphAttributes.normal||c.morphAttributes.color,h=void 0!==p?p.length:0;let f=o.get(c);if(void 0===f||f.count!==h){void 0!==f&&f.texture.dispose();const v=void 0!==c.morphAttributes.position,y=void 0!==c.morphAttributes.normal,b=void 0!==c.morphAttributes.color,x=c.morphAttributes.position||[],S=c.morphAttributes.normal||[],w=c.morphAttributes.color||[];let _=0;!0===v&&(_=1),!0===y&&(_=2),!0===b&&(_=3);let k=c.attributes.position.count*_,M=1;k>t.maxTextureSize&&(M=Math.ceil(k/t.maxTextureSize),k=t.maxTextureSize);const C=new Float32Array(k*M*4*h),T=new Tg(C,k,M,h);T.type=$h,T.needsUpdate=!0;const A=4*_;for(let j=0;j<h;j++){const N=x[j],I=S[j],D=w[j],P=k*M*4*j;for(let L=0;L<N.count;L++){const R=L*A;!0===v&&(a.fromBufferAttribute(N,L),C[P+R+0]=a.x,C[P+R+1]=a.y,C[P+R+2]=a.z,C[P+R+3]=0),!0===y&&(a.fromBufferAttribute(I,L),C[P+R+4]=a.x,C[P+R+5]=a.y,C[P+R+6]=a.z,C[P+R+7]=0),!0===b&&(a.fromBufferAttribute(D,L),C[P+R+8]=a.x,C[P+R+9]=a.y,C[P+R+10]=a.z,C[P+R+11]=4===D.itemSize?a.w:1)}}function E(){T.dispose(),o.delete(c),c.removeEventListener("dispose",E)}f={count:h,texture:T,size:new og(k,M)},o.set(c,f),c.addEventListener("dispose",E)}let m=0;for(let O=0;O<d.length;O++)m+=d[O];const g=c.morphTargetsRelative?1:1-m;u.getUniforms().setValue(e,"morphTargetBaseInfluence",g),u.getUniforms().setValue(e,"morphTargetInfluences",d),u.getUniforms().setValue(e,"morphTargetsTexture",f.texture,n),u.getUniforms().setValue(e,"morphTargetsTextureSize",f.size)}else{const z=void 0===d?0:d.length;let F=r[c.id];if(void 0===F||F.length!==z){F=[];for(let V=0;V<z;V++)F[V]=[V,0];r[c.id]=F}for(let G=0;G<z;G++){const q=F[G];q[0]=G,q[1]=d[G]}F.sort(Gb);for(let K=0;K<8;K++)K<z&&F[K][1]?(s[K][0]=F[K][0],s[K][1]=F[K][1]):(s[K][0]=Number.MAX_SAFE_INTEGER,s[K][1]=0);s.sort(Vb);const B=c.morphAttributes.position,U=c.morphAttributes.normal;let H=0;for(let Y=0;Y<8;Y++){const X=s[Y],Z=X[0],Q=X[1];Z!==Number.MAX_SAFE_INTEGER&&Q?(B&&c.getAttribute("morphTarget"+Y)!==B[Z]&&c.setAttribute("morphTarget"+Y,B[Z]),U&&c.getAttribute("morphNormal"+Y)!==U[Z]&&c.setAttribute("morphNormal"+Y,U[Z]),i[Y]=Q,H+=Q):(B&&!0===c.hasAttribute("morphTarget"+Y)&&c.deleteAttribute("morphTarget"+Y),U&&!0===c.hasAttribute("morphNormal"+Y)&&c.deleteAttribute("morphNormal"+Y),i[Y]=0)}const W=c.morphTargetsRelative?1:1-H;u.getUniforms().setValue(e,"morphTargetBaseInfluence",W),u.getUniforms().setValue(e,"morphTargetInfluences",i)}}}}function Kb(e,t,n,r){let i=new WeakMap;function o(e){const t=e.target;t.removeEventListener("dispose",o),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(e){const a=r.render.frame,s=e.geometry,l=t.get(e,s);return i.get(l)!==a&&(t.update(l),i.set(l,a)),e.isInstancedMesh&&(!1===e.hasEventListener("dispose",o)&&e.addEventListener("dispose",o),n.update(e.instanceMatrix,34962),null!==e.instanceColor&&n.update(e.instanceColor,34962)),l},dispose:function(){i=new WeakMap}}}const Yb=new kg,Xb=new Tg,Zb=new Eg,Qb=new rb,Jb=[],$b=[],ex=new Float32Array(16),tx=new Float32Array(9),nx=new Float32Array(4);function rx(e,t,n){const r=e[0];if(r<=0||r>0)return e;const i=t*n;let o=Jb[i];if(void 0===o&&(o=new Float32Array(i),Jb[i]=o),0!==t){r.toArray(o,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(o,i)}return o}function ix(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function ox(e,t){for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}function ax(e,t){let n=$b[t];void 0===n&&(n=new Int32Array(t),$b[t]=n);for(let r=0;r!==t;++r)n[r]=e.allocateTextureUnit();return n}function sx(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function lx(e,t){const 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(ix(n,t))return;e.uniform2fv(this.addr,t),ox(n,t)}}function cx(e,t){const 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(ix(n,t))return;e.uniform3fv(this.addr,t),ox(n,t)}}function ux(e,t){const 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(ix(n,t))return;e.uniform4fv(this.addr,t),ox(n,t)}}function dx(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(ix(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),ox(n,t)}else{if(ix(n,r))return;nx.set(r),e.uniformMatrix2fv(this.addr,!1,nx),ox(n,r)}}function px(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(ix(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),ox(n,t)}else{if(ix(n,r))return;tx.set(r),e.uniformMatrix3fv(this.addr,!1,tx),ox(n,r)}}function hx(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(ix(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),ox(n,t)}else{if(ix(n,r))return;ex.set(r),e.uniformMatrix4fv(this.addr,!1,ex),ox(n,r)}}function fx(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function mx(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(ix(n,t))return;e.uniform2iv(this.addr,t),ox(n,t)}}function gx(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(ix(n,t))return;e.uniform3iv(this.addr,t),ox(n,t)}}function vx(e,t){const 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.uniform4i(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(ix(n,t))return;e.uniform4iv(this.addr,t),ox(n,t)}}function yx(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function bx(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(ix(n,t))return;e.uniform2uiv(this.addr,t),ox(n,t)}}function xx(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(ix(n,t))return;e.uniform3uiv(this.addr,t),ox(n,t)}}function Sx(e,t){const 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.uniform4ui(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(ix(n,t))return;e.uniform4uiv(this.addr,t),ox(n,t)}}function wx(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2D(t||Yb,i)}function _x(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(t||Zb,i)}function kx(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTextureCube(t||Qb,i)}function Mx(e,t,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(e.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(t||Xb,i)}function Cx(e,t){e.uniform1fv(this.addr,t)}function Tx(e,t){const n=rx(t,this.size,2);e.uniform2fv(this.addr,n)}function Ax(e,t){const n=rx(t,this.size,3);e.uniform3fv(this.addr,n)}function Ex(e,t){const n=rx(t,this.size,4);e.uniform4fv(this.addr,n)}function jx(e,t){const n=rx(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function Nx(e,t){const n=rx(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function Ix(e,t){const n=rx(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function Dx(e,t){e.uniform1iv(this.addr,t)}function Px(e,t){e.uniform2iv(this.addr,t)}function Lx(e,t){e.uniform3iv(this.addr,t)}function Rx(e,t){e.uniform4iv(this.addr,t)}function Ox(e,t){e.uniform1uiv(this.addr,t)}function zx(e,t){e.uniform2uiv(this.addr,t)}function Fx(e,t){e.uniform3uiv(this.addr,t)}function Bx(e,t){e.uniform4uiv(this.addr,t)}function Ux(e,t,n){const r=this.cache,i=t.length,o=ax(n,i);ix(r,o)||(e.uniform1iv(this.addr,o),ox(r,o));for(let a=0;a!==i;++a)n.setTexture2D(t[a]||Yb,o[a])}function Hx(e,t,n){const r=this.cache,i=t.length,o=ax(n,i);ix(r,o)||(e.uniform1iv(this.addr,o),ox(r,o));for(let a=0;a!==i;++a)n.setTexture3D(t[a]||Zb,o[a])}function Wx(e,t,n){const r=this.cache,i=t.length,o=ax(n,i);ix(r,o)||(e.uniform1iv(this.addr,o),ox(r,o));for(let a=0;a!==i;++a)n.setTextureCube(t[a]||Qb,o[a])}function Vx(e,t,n){const r=this.cache,i=t.length,o=ax(n,i);ix(r,o)||(e.uniform1iv(this.addr,o),ox(r,o));for(let a=0;a!==i;++a)n.setTexture2DArray(t[a]||Xb,o[a])}class Gx{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.setValue=function(e){switch(e){case 5126:return sx;case 35664:return lx;case 35665:return cx;case 35666:return ux;case 35674:return dx;case 35675:return px;case 35676:return hx;case 5124:case 35670:return fx;case 35667:case 35671:return mx;case 35668:case 35672:return gx;case 35669:case 35673:return vx;case 5125:return yx;case 36294:return bx;case 36295:return xx;case 36296:return Sx;case 35678:case 36198:case 36298:case 36306:case 35682:return wx;case 35679:case 36299:case 36307:return _x;case 35680:case 36300:case 36308:case 36293:return kx;case 36289:case 36303:case 36311:case 36292:return Mx}}(t.type)}}class qx{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.size=t.size,this.setValue=function(e){switch(e){case 5126:return Cx;case 35664:return Tx;case 35665:return Ax;case 35666:return Ex;case 35674:return jx;case 35675:return Nx;case 35676:return Ix;case 5124:case 35670:return Dx;case 35667:case 35671:return Px;case 35668:case 35672:return Lx;case 35669:case 35673:return Rx;case 5125:return Ox;case 36294:return zx;case 36295:return Fx;case 36296:return Bx;case 35678:case 36198:case 36298:case 36306:case 35682:return Ux;case 35679:case 36299:case 36307:return Hx;case 35680:case 36300:case 36308:case 36293:return Wx;case 36289:case 36303:case 36311:case 36292:return Vx}}(t.type)}}class Kx{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const r=this.seq;for(let i=0,o=r.length;i!==o;++i){const o=r[i];o.setValue(e,t[o.id],n)}}}const Yx=/(\w+)(\])?(\[|\.)?/g;function Xx(e,t){e.seq.push(t),e.map[t.id]=t}function Zx(e,t,n){const r=e.name,i=r.length;for(Yx.lastIndex=0;;){const o=Yx.exec(r),a=Yx.lastIndex;let s=o[1];const l="]"===o[2],c=o[3];if(l&&(s|=0),void 0===c||"["===c&&a+2===i){Xx(n,void 0===c?new Gx(s,e,t):new qx(s,e,t));break}{let e=n.map[s];void 0===e&&(e=new Kx(s),Xx(n,e)),n=e}}}class Qx{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,35718);for(let r=0;r<n;++r){const n=e.getActiveUniform(t,r);Zx(n,e.getUniformLocation(t,n.name),this)}}setValue(e,t,n,r){const i=this.map[t];void 0!==i&&i.setValue(e,n,r)}setOptional(e,t,n){const r=t[n];void 0!==r&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,o=t.length;i!==o;++i){const o=t[i],a=n[o.id];!1!==a.needsUpdate&&o.setValue(e,a.value,r)}}static seqWithValue(e,t){const n=[];for(let r=0,i=e.length;r!==i;++r){const i=e[r];i.id in t&&n.push(i)}return n}}function Jx(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}let $x=0;function eS(e,t,n){const r=e.getShaderParameter(t,35713),i=e.getShaderInfoLog(t).trim();if(r&&""===i)return"";const o=/ERROR: 0:(\d+)/.exec(i);if(o){const r=parseInt(o[1]);return n.toUpperCase()+"\n\n"+i+"\n\n"+function(e,t){const n=e.split("\n"),r=[],i=Math.max(t-6,0),o=Math.min(t+6,n.length);for(let a=i;a<o;a++){const e=a+1;r.push("".concat(e===t?">":" "," ").concat(e,": ").concat(n[a]))}return r.join("\n")}(e.getShaderSource(t),r)}return i}function tS(e,t){const n=function(e){switch(e){case am:return["Linear","( value )"];case sm: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 nS(e,t){let n;switch(t){case _h:n="Linear";break;case kh:n="Reinhard";break;case Mh:n="OptimizedCineon";break;case Ch:n="ACESFilmic";break;case Th:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function rS(e){return""!==e}function iS(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).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_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function oS(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const aS=/^[ \t]*#include +<([\w\d./]+)>/gm;function sS(e){return e.replace(aS,lS)}function lS(e,t){const n=mb[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return sS(n)}const cS=/#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 uS(e){return e.replace(cS,dS)}function dS(e,t,n,r){let i="";for(let o=parseInt(t);o<parseInt(n);o++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+o+" ]").replace(/UNROLLED_LOOP_INDEX/g,o);return i}function pS(e){let 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 hS(e,t,n,r){const i=e.getContext(),o=n.defines;let a=n.vertexShader,s=n.fragmentShader;const l=function(e){let t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===Rp?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===Op?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===zp&&(t="SHADOWMAP_TYPE_VSM"),t}(n),c=function(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case Eh:case jh:t="ENVMAP_TYPE_CUBE";break;case Dh:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),u=function(e){let t="ENVMAP_MODE_REFLECTION";e.envMap&&e.envMapMode===jh&&(t="ENVMAP_MODE_REFRACTION");return t}(n),d=function(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case bh:t="ENVMAP_BLENDING_MULTIPLY";break;case xh:t="ENVMAP_BLENDING_MIX";break;case Sh:t="ENVMAP_BLENDING_ADD"}return t}(n),p=function(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,r=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:r,maxMip:n}}(n),h=n.isWebGL2?"":function(e){return[e.extensionDerivatives||e.envMapCubeUVHeight||e.bumpMap||e.normalMapTangentSpace||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(rS).join("\n")}(n),f=function(e){const t=[];for(const n in e){const r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}(o),m=i.createProgram();let g,v,y=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(g=[f].filter(rS).join("\n"),g.length>0&&(g+="\n"),v=[h,f].filter(rS).join("\n"),v.length>0&&(v+="\n")):(g=[pS(n),"#define SHADER_NAME "+n.shaderName,f,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",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 "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IR
2IDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs2?"#define USE_UV2":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&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 "+l:"",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(rS).join("\n"),v=[h,pS(n),"#define SHADER_NAME "+n.shaderName,f,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 "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",p?"#define CUBEUV_TEXEL_WIDTH "+p.texelWidth:"",p?"#define CUBEUV_TEXEL_HEIGHT "+p.texelHeight:"",p?"#define CUBEUV_MAX_MIP "+p.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IR
2IDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",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_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",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.vertexUvs2?"#define USE_UV2":"",n.pointsUvs?"#define USE_POINTS_UV":"",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 "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==wh?"#define TONE_MAPPING":"",n.toneMapping!==wh?mb.tonemapping_pars_fragment:"",n.toneMapping!==wh?nS("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",mb.encodings_pars_fragment,tS("linearToOutputTexel",n.outputEncoding),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(rS).join("\n")),a=sS(a),a=iS(a,n),a=oS(a,n),s=sS(s),s=iS(s,n),s=oS(s,n),a=uS(a),s=uS(s),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(y="#version 300 es\n",g=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+g,v=["#define varying in",n.glslVersion===Hm?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Hm?"":"#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"+v);const b=y+v+s,x=Jx(i,35633,y+g+a),S=Jx(i,35632,b);if(i.attachShader(m,x),i.attachShader(m,S),void 0!==n.index0AttributeName?i.bindAttribLocation(m,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(m,0,"position"),i.linkProgram(m),e.debug.checkShaderErrors){const t=i.getProgramInfoLog(m).trim(),n=i.getShaderInfoLog(x).trim(),r=i.getShaderInfoLog(S).trim();let o=!0,a=!0;if(!1===i.getProgramParameter(m,35714))if(o=!1,"function"===typeof e.debug.onShaderError)e.debug.onShaderError(i,m,x,S);else{const e=eS(i,x,"vertex"),n=eS(i,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(m,35715)+"\n\nProgram Info Log: "+t+"\n"+e+"\n"+n)}else""!==t?console.warn("THREE.WebGLProgram: Program Info Log:",t):""!==n&&""!==r||(a=!1);a&&(this.diagnostics={runnable:o,programLog:t,vertexShader:{log:n,prefix:g},fragmentShader:{log:r,prefix:v}})}let w,_;return i.deleteShader(x),i.deleteShader(S),this.getUniforms=function(){return void 0===w&&(w=new Qx(i,m)),w},this.getAttributes=function(){return void 0===_&&(_=function(e,t){const n={},r=e.getProgramParameter(t,35721);for(let i=0;i<r;i++){const r=e.getActiveAttrib(t,i),o=r.name;let a=1;35674===r.type&&(a=2),35675===r.type&&(a=3),35676===r.type&&(a=4),n[o]={type:r.type,location:e.getAttribLocation(t,o),locationSize:a}}return n}(i,m)),_},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(m),this.program=void 0},this.name=n.shaderName,this.id=$x++,this.cacheKey=t,this.usedTimes=1,this.program=m,this.vertexShader=x,this.fragmentShader=S,this}let fS=0;class mS{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return!1===o.has(r)&&(o.add(r),r.usedTimes++),!1===o.has(i)&&(o.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new gS(e),t.set(e,n)),n}}class gS{constructor(e){this.id=fS++,this.code=e,this.usedTimes=0}}function vS(e,t,n,r,i,o,a){const s=new xv,l=new mS,c=[],u=i.isWebG
2L2,d=i.logarithmicDepthBuffer,p=i.vertexTextures;let h=i.precision;const f={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"};function m(e){return 1===e?"uv2":"uv"}return{getParameters:function(o,s,c,g,v){const y=g.fog,b=v.geometry,x=o.isMeshStandardMaterial?g.environment:null,S=(o.isMeshStandardMaterial?n:t).get(o.envMap||x),w=S&&S.mapping===Dh?S.image.height:null,_=f[o.type];null!==o.precision&&(h=i.getMaxPrecision(o.precision),h!==o.precision&&console.warn("THREE.WebGLProgram.getParameters:",o.precision,"not supported, using",h,"instead."));const k=b.morphAttributes.position||b.morphAttributes.normal||b.morphAttributes.color,M=void 0!==k?k.length:0;let C,T,A,E,j=0;if(void 0!==b.morphAttributes.position&&(j=1),void 0!==b.morphAttributes.normal&&(j=2),void 0!==b.morphAttributes.color&&(j=3),_){const e=vb[_];C=e.vertexShader,T=e.fragmentShader}else C=o.vertexShader,T=o.fragmentShader,l.update(o),A=l.getVertexShaderID(o),E=l.getFragmentShaderID(o);const N=e.getRenderTarget(),I=!0===v.isInstancedMesh,D=!!o.map,P=!!o.matcap,L=!!S,R=!!o.aoMap,O=!!o.lightMap,z=!!o.bumpMap,F=!!o.normalMap,B=!!o.displacementMap,U=!!o.emissiveMap,H=!!o.metalnessMap,W=!!o.roughnessMap,V=o.clearcoat>0,G=o.iridescence>0,q=o.sheen>0,K=o.transmission>0,Y=V&&!!o.clearcoatMap,X=V&&!!o.clearcoatNormalMap,Z=V&&!!o.clearcoatRoughnessMap,Q=G&&!!o.iridescenceMap,J=G&&!!o.iridescenceThicknessMap,$=q&&!!o.sheenColorMap,ee=q&&!!o.sheenRoughnessMap,te=!!o.specularMap,ne=!!o.specularColorMap,re=!!o.specularIntensityMap,ie=K&&!!o.transmissionMap,oe=K&&!!o.thicknessMap,ae=!!o.gradientMap,se=!!o.alphaMap,le=o.alphaTest>0,ce=!!o.extensions,ue=!!b.attributes.uv2;return{isWebGL2:u,shaderID:_,shaderName:o.type,vertexShader:C,fragmentShader:T,defines:o.defines,customVertexShaderID:A,customFragmentShaderID:E,isRawShaderMaterial:!0===o.isRawShaderMaterial,glslVersion:o.glslVersion,precision:h,instancing:I,instancingColor:I&&null!==v.instanceColor,supportsVertexTextures:p,outputEncoding:null===N?e.outputEncoding:!0===N.isXRRenderTarget?N.texture.encoding:am,map:D,matcap:P,envMap:L,envMapMode:L&&S.mapping,envMapCubeUVHeight:w,aoMap:R,lightMap:O,bumpMap:z,normalMap:F,displacementMap:p&&B,emissiveMap:U,normalMapObjectSpace:F&&o.normalMapType===dm,normalMapTangentSpace:F&&o.normalMapType===um,decodeVideoTexture:D&&!0===o.map.isVideoTexture&&o.map.encoding===sm,metalnessMap:H,roughnessMap:W,clearcoat:V,clearcoatMap:Y,clearcoatNormalMap:X,clearcoatRoughnessMap:Z,iridescence:G,iridescenceMap:Q,iridescenceThicknessMap:J,sheen:q,sheenColorMap:$,sheenRoughnessMap:ee,specularMap:te,specularColorMap:ne,specularIntensityMap:re,transmission:K,transmissionMap:ie,thicknessMap:oe,gradientMap:ae,opaque:!1===o.transparent&&o.blending===Vp,alphaMap:se,alphaTest:le,combine:o.combine,mapUv:D&&m(o.map.channel),aoMapUv:R&&m(o.aoMap.channel),lightMapUv:O&&m(o.lightMap.channel),bumpMapUv:z&&m(o.bumpMap.channel),normalMapUv:F&&m(o.normalMap.channel),displacementMapUv:B&&m(o.displacementMap.channel),emissiveMapUv:U&&m(o.emissiveMap.channel),metalnessMapUv:H&&m(o.metalnessMap.channel),roughnessMapUv:W&&m(o.roughnessMap.channel),clearcoatMapUv:Y&&m(o.clearcoatMap.channel),clearcoatNormalMapUv:X&&m(o.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Z&&m(o.clearcoatRoughnessMap.channel),iridescenceMapUv:Q&&m(o.iridescenceMap.channel),iridescenceThicknessMapUv:J&&m(o.iridescenceThicknessMap.channel),sheenColorMapUv:$&&m(o.sheenColorMap.channel),sheenRoughnessMapUv:ee&&m(o.sheenRoughnessMap.channel),specularMapUv:te&&m(o.specularMap.channel),specularColorMapUv:ne&&m(o.specularColorMap.channel),specularIntensityMapUv:re&&m(o.specularIntensityMap.channel),transmissionMapUv:ie&&m(o.transmissionMap.channel),thicknessMapUv:oe&&m(o.thicknessMap.channel),alphaMapUv:se&&m(o.alphaMap.channel),vertexTangents:F&&!!b.attributes.tangent,vertexColors:o.vertexColors,vertexAlphas:!0===o.vertexColors&&!!b.attributes.color&&4===b.attributes.color.itemSize,vertexUvs2:ue,pointsUvs:!0===v.isPoints&&!!b.attributes.uv&&(D||se),fog:!!y,useFog:!0===o.fog,fogExp2:y&&y.isFogExp2,flatShading:!0===o.flatShading,sizeAttenuation:!0===o.sizeAttenuation,logarithmicDepthBuffer:d,skinning:!0===v.isSkinnedMesh,morphTargets:void 0!==b.morphAttributes.position,morphNormals:void 0!==b.morphAttributes.normal,morphColors:void 0!==b.morphAttributes.color,morphTargetsCount:M,morphTextureStride:j,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:o.dithering,shadowMapEnabled:e.shadowMap.enabled&&c.length>0,shadowMapType:e.shadowMap.type,toneMapping:o.toneMapped?e.toneMapping:wh,useLegacyLights:e.useLegacyLights,premultipliedAlpha:o.premultipliedAlpha,doubleSided:o.side===Up,flipSided:o.side===Bp,useDepthPacking:o.depthPacking>=0,depthPacking:o.depthPacking||0,index0AttributeName:o.index0AttributeName,extensionDerivatives:ce&&!0===o.extensions.derivatives,extensionFragDepth:ce&&!0===o.extensions.fragDepth,extensionDrawBuffers:ce&&!0===o.extensions.drawBuffers,extensionShaderTextureLOD:ce&&!0===o.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||r.has("EXT_shader_texture_lod"),customProgramCacheKey:o.customProgramCacheKey()}},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputEncoding),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(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.matcap&&s.enable(4);t.envMap&&s.enable(5);
vendor: 30,311 bytes, line 2
2t.normalMapObjectSpace&&s.enable(6);t.normalMapTangentSpace&&s.enable(7);t.clearcoat&&s.enable(8);t.iridescence&&s.enable(9);t.alphaTest&&s.enable(10);t.vertexColors&&s.enable(11);t.vertexAlphas&&s.enable(12);t.vertexUvs2&&s.enable(13);t.vertexTangents&&s.enable(14);e.push(s.mask),s.disableAll(),t.fog&&s.enable(0);t.useFog&&s.enable(1);t.flatShading&&s.enable(2);t.logarithmicDepthBuffer&&s.enable(3);t.skinning&&s.enable(4);t.morphTargets&&s.enable(5);t.morphNormals&&s.enable(6);t.morphColors&&s.enable(7);t.premultipliedAlpha&&s.enable(8);t.shadowMapEnabled&&s.enable(9);t.useLegacyLights&&s.enable(10);t.doubleSided&&s.enable(11);t.flipSided&&s.enable(12);t.useDepthPacking&&s.enable(13);t.dithering&&s.enable(14);t.transmission&&s.enable(15);t.sheen&&s.enable(16);t.decodeVideoTexture&&s.enable(17);t.opaque&&s.enable(18);t.pointsUvs&&s.enable(19);e.push(s.mask)}(n,t),n.push(e.outputEncoding)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=f[e.type];let n;if(t){const e=vb[t];n=Qy.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let r;for(let e=0,i=c.length;e<i;e++){const t=c[e];if(t.cacheKey===n){r=t,++r.usedTimes;break}}return void 0===r&&(r=new hS(e,n,t,o),c.push(r)),r},releaseProgram:function(e){if(0===--e.usedTimes){const t=c.indexOf(e);c[t]=c[c.length-1],c.pop(),e.destroy()}},releaseShaderCache:function(e){l.remove(e)},programs:c,dispose:function(){l.dispose()}}}function yS(){let e=new WeakMap;return{get:function(t){let 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 bS(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 xS(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 SS(){const e=[];let t=0;const n=[],r=[],i=[];function o(n,r,i,o,a,s){let l=e[t];return void 0===l?(l={id:n.id,object:n,geometry:r,material:i,groupOrder:o,renderOrder:n.renderOrder,z:a,group:s},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.groupOrder=o,l.renderOrder=n.renderOrder,l.z=a,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,a,s,l,c){const u=o(e,t,a,s,l,c);a.transmission>0?r.push(u):!0===a.transparent?i.push(u):n.push(u)},unshift:function(e,t,a,s,l,c){const u=o(e,t,a,s,l,c);a.transmission>0?r.unshift(u):!0===a.transparent?i.unshift(u):n.unshift(u)},finish:function(){for(let n=t,r=e.length;n<r;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||bS),r.length>1&&r.sort(t||xS),i.length>1&&i.sort(t||xS)}}}function wS(){let e=new WeakMap;return{get:function(t,n){const r=e.get(t);let i;return void 0===r?(i=new SS,e.set(t,[i])):n>=r.length?(i=new SS,r.push(i)):i=r[n],i},dispose:function(){e=new WeakMap}}}function _S(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Dg,color:new $v};break;case"SpotLight":n={position:new Dg,direction:new Dg,color:new $v,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Dg,color:new $v,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Dg,skyColor:new $v,groundColor:new $v};break;case"RectAreaLight":n={color:new $v,position:new Dg,halfWidth:new Dg,halfHeight:new Dg}}return e[t.id]=n,n}}}let kS=0;function MS(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function CS(e,t){const n=new _S,r=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new og};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new og,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let l=0;l<9;l++)i.probe.push(new Dg);const o=new Dg,a=new cv,s=new cv;return{setup:function(o,a){let s=0,l=0,c=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let u=0,d=0,p=0,h=0,f=0,m=0,g=0,v=0,y=0,b=0;o.sort(MS);const x=!0===a?Math.PI:1;for(let e=0,t=o.length;e<t;e++){const t=o[e],a=t.color,S=t.intensity,w=t.distance,_=t.shadow&&t.shadow.map?t.shadow.map.texture:null;if(t.isAmbientLight)s+=a.r*S*x,l+=a.g*S*x,c+=a.b*S*x;else if(t.isLightProbe)for(let e=0;e<9;e++)i.probe[e].addScaledVector(t.sh.coefficients[e],S);else if(t.isDirectionalLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*x),t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,i.directionalShadow[u]=n,i.directionalShadowMap[u]=_,i.directionalShadowMatrix[u]=t.shadow.matrix,m++}i.directional[u]=e,u++}else if(t.isSpotLight){const e=n.get(t);e.position.setFromMatrixPosition(t.matrixWorld),e.color.copy(a).multiplyScalar(S*x),e.distance=w,e.coneCos=Math.cos(t.angle),e.penumbraCos=Math.cos(t.angle*(1-t.penumbra)),e.decay=t.decay,i.spot[p]=e;const o=t.shadow;if(t.map&&(i.spotLightMap[y]=t.map,y++,o.updateMatrices(t),t.castShadow&&b++),i.spotLightMatrix[p]=o.matrix,t.castShadow){const e=r.get(t);e.shadowBias=o.bias,e.shadowNormalBias=o.normalBias,e.shadowRadius=o.radius,e.shadowMapSize=o.mapSize,i.spotShadow[p]=e,i.spotShadowMap[p]=_,v++}p++}else if(t.isRectAreaLight){const e=n.get(t);e.color.copy(a).multiplyScalar(S),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),i.rectArea[h]=e,h++}else if(t.isPointLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*x),e.distance=t.distance,e.decay=t.decay,t.castShadow){const e=t.shadow,n=r.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,n.shadowCameraNear=e.camera.near,n.shadowCameraFar=e.camera.far,i.pointShadow[d]=n,i.pointShadowMap[d]=_,i.pointShadowMatrix[d]=t.shadow.matrix,g++}i.point[d]=e,d++}else if(t.isHemisphereLight){const e=n.get(t);e.skyColor.copy(t.color).multiplyScalar(S*x),e.groundColor.copy(t.groundColor).multiplyScalar(S*x),i.hemi[f]=e,f++}}h>0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=gb.LTC_FLOAT_1,i.rectAreaLTC2=gb.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=gb.LTC_HALF_1,i.rectAreaLTC2=gb.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=s,i.ambient[1]=l,i.ambient[2]=c;const S=i.hash;S.directionalLength===u&&S.pointLength===d&&S.spotLength===p&&S.rectAreaLength===h&&S.hemiLength===f&&S.numDirectionalShadows===m&&S.numPointShadows===g&&S.numSpotShadows===v&&S.numSpotMaps===y||(i.directional.length=u,i.spot.length=p,i.rectArea.length=h,i.point.length=d,i.hemi.length=f,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=g,i.pointShadowMap.length=g,i.spotShadow.length=v,i.spotShadowMap.length=v,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=g,i.spotLightMatrix.length=v+y-b,i.spotLightMap.length=y,i.numSpotLightShadowsWithMaps=b,S.directionalLength=u,S.pointLength=d,S.spotLength=p,S.rectAreaLength=h,S.hemiLength=f,S.numDirectionalShadows=m,S.numPointShadows=g,S.numSpotShadows=v,S.numSpotMaps=y,i.version=kS++)},setupView:function(e,t){let n=0,r=0,l=0,c=0,u=0;const d=t.matrixWorldInverse;for(let p=0,h=e.length;p<h;p++){const t=e[p];if(t.isDirectionalLight){const e=i.directional[n];e.direction.setFromMatrixPosition(t.matrixWorld),o.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(o),e.direction.transformDirection(d),n++}else if(t.isSpotLight){const e=i.spot[l];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),e.direction.setFromMatrixPosition(t.matrixWorld),o.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(o),e.direction.transformDirection(d),l++}else if(t.isRectAreaLight){const e=i.rectArea[c];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),s.identity(),a.copy(t.matrixWorld),a.premultiply(d),s.extractRotation(a),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),e.halfWidth.applyMatrix4(s),e.halfHeight.applyMatrix4(s),c++}else if(t.isPointLight){const e=i.point[r];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),r++}else if(t.isHemisphereLight){const e=i.hemi[u];e.direction.setFromMatrixPosition(t.matrixWorld),e.direction.transformDirection(d),u++}}},state:i}}function TS(e,t){const n=new CS(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 AS(e,t){let n=new WeakMap;return{get:function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=n.get(r);let a;return void 0===o?(a=new TS(e,t),n.set(r,[a])):i>=o.length?(a=new TS(e,t),o.push(a)):a=o[i],a},dispose:function(){n=new WeakMap}}}class ES extends Yv{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=lm,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(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}}class jS extends Yv{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function NS(e,t,n){let r=new db;const i=new og,o=new og,a=new Mg,s=new ES({depthPacking:cm}),l=new jS,c={},u=n.maxTextureSize,d={[Fp]:Bp,[Bp]:Fp,[Up]:Up},p=new Jy({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new og},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"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}"}),h=p.clone();h.defines.HORIZONTAL_PASS=1;const f=new Ty;f.setAttribute("position",new cy(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const m=new Gy(f,p),g=this;function v(n,r){const o=t.update(m);p.defines.VSM_SAMPLES!==n.blurSamples&&(p.defines.VSM_SAMPLES=n.blurSamples,h.defines.VSM_SAMPLES=n.blurSamples,p.needsUpdate=!0,h.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new Cg(i.x,i.y)),p.uniforms.shadow_pass.value=n.map.texture,p.uniforms.resolution.value=n.mapSize,p.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,o,p,m,null),h.uniforms.shadow_pass.value=n.mapPass.texture,h.uniforms.resolution.value=n.mapSize,h.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,o,h,m,null)}function y(t,n,r,i){let o=null;const a=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==a)o=a;else if(o=!0===r.isPointLight?l:s,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=o.uuid,t=n.uuid;let r=c[e];void 0===r&&(r={},c[e]=r);let i=r[t];void 0===i&&(i=o.clone(),r[t]=i),o=i}if(o.visible=n.visible,o.wireframe=n.wireframe,o.side=i===zp?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:d[n.side],o.alphaMap=n.alphaMap,o.alphaTest=n.alphaTest,o.map=n.map,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.clipIntersection=n.clipIntersection,o.displacementMap=n.displacementMap,o.displacementScale=n.displacementScale,o.displacementBias=n.displacementBias,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,!0===r.isPointLight&&!0===o.isMeshDistanceMaterial){e.properties.get(o).light=r}return o}function b(n,i,o,a,s){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===zp)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const r=t.update(n),i=n.material;if(Array.isArray(i)){const t=r.groups;for(let l=0,c=t.length;l<c;l++){const c=t[l],u=i[c.materialIndex];if(u&&u.visible){const t=y(n,u,a,s);e.renderBufferDirect(o,null,r,t,n,c)}}}else if(i.visible){const t=y(n,i,a,s);e.renderBufferDirect(o,null,r,t,n,null)}}const l=n.children;for(let e=0,t=l.length;e<t;e++)b(l[e],i,o,a,s)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Rp,this.render=function(t,n,s){if(!1===g.enabled)return;if(!1===g.autoUpdate&&!1===g.needsUpdate)return;if(0===t.length)return;const l=e.getRenderTarget(),c=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),p=e.state;p.setBlending(Wp),p.buffers.color.setClear(1,1,1,1),p.buffers.depth.setTest(!0),p.setScissorTest(!1);for(let h=0,f=t.length;h<f;h++){const l=t[h],c=l.shadow;if(void 0===c){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;i.copy(c.mapSize);const d=c.getFrameExtents();if(i.multiply(d),o.copy(c.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(o.x=Math.floor(u/d.x),i.x=o.x*d.x,c.mapSize.x=o.x),i.y>u&&(o.y=Math.floor(u/d.y),i.y=o.y*d.y,c.mapSize.y=o.y)),null===c.map){const e=this.type!==zp?{minFilter:Oh,magFilter:Oh}:{};c.map=new Cg(i.x,i.y,e),c.map.texture.name=l.name+".shadowMap",c.camera.updateProjectionMatrix()}e.setRenderTarget(c.map),e.clear();const f=c.getViewportCount();for(let e=0;e<f;e++){const t=c.getViewport(e);a.set(o.x*t.x,o.y*t.y,o.x*t.z,o.y*t.w),p.viewport(a),c.updateMatrices(l,e),r=c.getFrustum(),b(n,s,c.camera,l,this.type)}!0!==c.isPointLightShadow&&this.type===zp&&v(c,s),c.needsUpdate=!1}g.needsUpdate=!1,e.setRenderTarget(l,c,d)}}function IS(e,t,n){const r=n.isWebGL2;const i=new function(){let t=!1;const n=new Mg;let r=null;const i=new Mg(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,o,a,s){!0===s&&(t*=a,r*=a,o*=a),n.set(t,r,o,a),!1===i.equals(n)&&(e.clearColor(t,r,o,a),i.copy(n))},reset:function(){t=!1,r=null,i.set(-1,0,0,0)}}},o=new function(){let t=!1,n=null,r=null,i=null;return{setTest:function(e){e?B(2929):U(2929)},setMask:function(r){n===r||t||(e.depthMask(r),n=r)},setFunc:function(t){if(r!==t){switch(t){case dh:e.depthFunc(512);break;case ph:e.depthFunc(519);break;case hh:e.depthFunc(513);break;case fh:e.depthFunc(515);break;case mh:e.depthFunc(514);break;case gh:e.depthFunc(518);break;case vh:e.depthFunc(516);break;case yh:e.depthFunc(517);break;default: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}}},a=new function(){let t=!1,n=null,r=null,i=null,o=null,a=null,s=null,l=null,c=null;return{setTest:function(e){t||(e?B(2960):U(2960))},setMask:function(r){n===r||t||(e.stencilMask(r),n=r)},setFunc:function(t,n,a){r===t&&i===n&&o===a||(e.stencilFunc(t,n,a),r=t,i=n,o=a)},setOp:function(t,n,r){a===t&&s===n&&l===r||(e.stencilOp(t,n,r),a=t,s=n,l=r)},setLocked:function(e){t=e},setClear:function(t){c!==t&&(e.clearStencil(t),c=t)},reset:function(){t=!1,n=null,r=null,i=null,o=null,a=null,s=null,l=null,c=null}}},s=new WeakMap,l=new WeakMap;let c={},u={},d=new WeakMap,p=[],h=null,f=!1,m=null,g=null,v=null,y=null,b=null,x=null,S=null,w=!1,_=null,k=null,M=null,C=null,T=null;const A=e.getParameter(35661);let E=!1,j=0;const N=e.getParameter(7938);-1!==N.indexOf("WebGL")?(j=parseFloat(/^WebGL (\d)/.exec(N)[1]),E=j>=1):-1!==N.indexOf("OpenGL ES")&&(j=parseFloat(/^OpenGL ES (\d)/.exec(N)[1]),E=j>=2);let I=null,D={};const P=e.getParameter(3088),L=e.getParameter(2978),R=(new Mg).fromArray(P),O=(new Mg).fromArray(L);function z(t,n,r){const i=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(let a=0;a<r;a++)e.texImage2D(n+a,0,6408,1,1,0,6408,5121,i);return o}const F={};function B(t){!0!==c[t]&&(e.enable(t),c[t]=!0)}function U(t){!1!==c[t]&&(e.disable(t),c[t]=!1)}F[3553]=z(3553,3553,1),F[34067]=z(34067,34069,6),i.setClear(0,0,0,1),o.setClear(1),a.setClear(0),B(2929),o.setFunc(fh),G(!1),q(Ip),B(2884),V(Wp);const H={[Xp]:32774,[Zp]:32778,[Qp]:32779};if(r)H[Jp]=32775,H[$p]=32776;else{const e=t.get("EXT_blend_minmax");null!==e&&(H[Jp]=e.MIN_EXT,H[$p]=e.MAX_EXT)}const W={[eh]:0,[th]:1,[nh]:768,[ih]:770,[uh]:776,[lh]:774,[ah]:772,[rh]:769,[oh]:771,[ch]:775,[sh]:773};function V(t,n,r,i,o,a,s,l){if(t!==Wp){if(!1===f&&(B(3042),f=!0),t===Yp)o=o||n,a=a||r,s=s||i,n===g&&o===b||(e.blendEquationSeparate(H[n],H[o]),g=n,b=o),r===v&&i===y&&a===x&&s===S||(e.blendFuncSeparate(W[r],W[i],W[a],W[s]),v=r,y=i,x=a,S=s),m=t,w=!1;else if(t!==m||l!==w){if(g===Xp&&b===Xp||(e.blendEquation(32774),g=Xp,b=Xp),l)switch(t){case Vp:e.blendFuncSeparate(1,771,1,771);break;case Gp:e.blendFunc(1,1);break;case qp:e.blendFuncSeparate(0,769,0,1);break;case Kp:e.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case Vp:e.blendFuncSeparate(770,771,1,771);break;case Gp:e.blendFunc(770,1);break;case qp:e.blendFuncSeparate(0,769,0,1);break;case Kp:e.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}v=null,y=null,x=null,S=null,m=t,w=l}}else!0===f&&(U(3042),f=!1)}function G(t){_!==t&&(t?e.frontFace(2304):e.frontFace(2305),_=t)}function q(t){t!==Np?(B(2884),t!==k&&(t===Ip?e.cullFace(1029):t===Dp?e.cullFace(1028):e.cullFace(1032))):U(2884),k=t}function K(t,n,r){t?(B(32823),C===n&&T===r||(e.polygonOffset(n,r),C=n,T=r)):U(32823)}return{buffers:{color:i,depth:o,stencil:a},enable:B,disable:U,bindFramebuffer:function(t,n){return u[t]!==n&&(e.bindFramebuffer(t,n),u[t]=n,r&&(36009===t&&(u[36160]=n),36160===t&&(u[36009]=n)),!0)},drawBuffers:function(r,i){let o=p,a=!1;if(r)if(o=d.get(i),void 0===o&&(o=[],d.set(i,o)),r.isWebGLMultipleRenderTargets){const e=r.texture;if(o.length!==e.length||36064!==o[0]){for(let t=0,n=e.length;t<n;t++)o[t]=36064+t;o.length=e.length,a=!0}}else 36064!==o[0]&&(o[0]=36064,a=!0);else 1029!==o[0]&&(o[0]=1029,a=!0);a&&(n.isWebGL2?e.drawBuffers(o):t.get("WEBGL_draw_buffers").drawBuffersWEBGL(o))},useProgram:function(t){return h!==t&&(e.useProgram(t),h=t,!0)},setBlending:V,setMaterial:function(e,t){e.side===Up?U(2884):B(2884);let n=e.side===Bp;t&&(n=!n),G(n),e.blending===Vp&&!1===e.transparent?V(Wp):V(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),o.setFunc(e.depthFunc),o.setTest(e.depthTest),o.setMask(e.depthWrite),i.setMask(e.colorWrite);const r=e.stencilWrite;a.setTest(r),r&&(a.setMask(e.stencilWriteMask),a.setFunc(e.stencilFunc,e.stencilRef,e.stencilFuncMask),a.setOp(e.stencilFail,e.stencilZFail,e.stencilZPass)),K(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits),!0===e.alphaToCoverage?B(32926):U(32926)},setFlipSided:G,setCullFace:q,setLineWidth:function(t){t!==M&&(E&&e.lineWidth(t),M=t)},setPolygonOffset:K,setScissorTest:function(e){e?B(3089):U(3089)},activeTexture:function(t){void 0===t&&(t=33984+A-1),I!==t&&(e.activeTexture(t),I=t)},bindTexture:function(t,n,r){void 0===r&&(r=null===I?33984+A-1:I);let i=D[r];void 0===i&&(i={type:void 0,texture:void 0},D[r]=i),i.type===t&&i.texture===n||(I!==r&&(e.activeTexture(r),I=r),e.bindTexture(t,n||F[t]),i.type=t,i.texture=n)},unbindTexture:function(){const t=D[I];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(ME){console.error("THREE.WebGLState:",ME)}},compressedTexImage3D:function(){try{e.compressedTexImage3D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},updateUBOMapping:function(t,n){let r=l.get(n);void 0===r&&(r=new WeakMap,l.set(n,r));let i=r.get(t);void 0===i&&(i=e.getUniformBlockIndex(n,t.name),r.set(t,i))},uniformBlockBinding:function(t,n){const r=l.get(n).get(t);s.get(n)!==r&&(e.uniformBlockBinding(n,r,t.__bindingPointIndex),s.set(n,r))},texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D.apply(e,arguments)}catch(ME){console.error("THREE.WebGLState:",ME)}},scissor:function(t){!1===R.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),R.copy(t))},viewport:function(t){!1===O.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),O.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,!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===r&&(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={},I=null,D={},u={},d=new WeakMap,p=[],h=null,f=!1,m=null,g=null,v=null,y=null,b=null,x=null,S=null,w=!1,_=null,k=null,M=null,C=null,T=null,R.set(0,0,e.canvas.width,e.canvas.height),O.set(0,0,e.canvas.width,e.canvas.height),i.reset(),o.reset(),a.reset()}}}function DS(e,t,n,r,i,o,a){const s=i.isWebGL2,l=i.maxTextures,c=i.maxCubemapSize,u=i.maxTextureSize,d=i.maxSamples,p=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,h="undefined"!==typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),f=new WeakMap;let m;const g=new WeakMap;let v=!1;try{v="undefined"!==typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(H){}function y(e,t){return v?new OffscreenCanvas(e,t):dg("canvas")}function b(e,t,n,r){let 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){const r=t?tg:Math.floor,o=r(i*e.width),a=r(i*e.height);void 0===m&&(m=y(o,a));const s=n?y(o,a):m;s.width=o,s.height=a;return s.getContext("2d").drawImage(e,0,0,o,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+o+"x"+a+")."),s}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function x(e){return $m(e.width)&&$m(e.height)}function S(e,t){return e.generateMipmaps&&t&&e.minFilter!==Oh&&e.minFilter!==Hh}function w(t){e.generateMipmap(t)}function _(n,r,i,o){let a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!1===s)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+"'")}let l=r;return 6403===r&&(5126===i&&(l=33326),5131===i&&(l=33325),5121===i&&(l=33321)),33319===r&&(5126===i&&(l=33328),5131===i&&(l=33327),5121===i&&(l=33323)),6408===r&&(5126===i&&(l=34836),5131===i&&(l=34842),5121===i&&(l=o===sm&&!1===a?35907:32856),32819===i&&(l=32854),32820===i&&(l=32855)),33325!==l&&33326!==l&&33327!==l&&33328!==l&&34842!==l&&34836!==l||t.get("EXT_color_buffer_float"),l}function k(e,t,n){return!0===S(e,n)||e.isFramebufferTexture&&e.minFilter!==Oh&&e.minFilter!==Hh?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 M(e){return e===Oh||e===zh||e===Bh?9728:9729}function C(e){const t=e.target;t.removeEventListener("dispose",C),function(e){const t=r.get(e);if(void 0===t.__webglInit)return;const n=e.source,i=g.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&A(e),0===Object.keys(i).length&&g.delete(n)}r.remove(e)}(t),t.isVideoTexture&&f.delete(t)}function T(t){const n=t.target;n.removeEventListener("dispose",T),function(t){const n=t.texture,i=r.get(t),o=r.get(n);void 0!==o.__webglTexture&&(e.deleteTexture(o.__webglTexture),a.memory.textures--);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLCubeRenderTarget)for(let r=0;r<6;r++)e.deleteFramebuffer(i.__webglFramebuffer[r]),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer[r]);else{if(e.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&e.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer)for(let t=0;t<i.__webglColorRenderbuffer.length;t++)i.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(i.__webglColorRenderbuffer[t]);i.__webglDepthRenderbuffer&&e.deleteRenderbuffer(i.__webglDepthRenderbuffer)}if(t.isWebGLMultipleRenderTargets)for(let s=0,l=n.length;s<l;s++){const t=r.get(n[s]);t.__webglTexture&&(e.deleteTexture(t.__webglTexture),a.memory.textures--),r.remove(n[s])}r.remove(n),r.remove(t)}(n)}function A(t){const n=r.get(t);e.deleteTexture(n.__webglTexture);const i=t.source;delete g.get(i)[n.__cacheKey],a.memory.textures--}let E=0;function j(e,t){const i=r.get(e);if(e.isVideoTexture&&function(e){const t=a.render.frame;f.get(e)!==t&&(f.set(e,t),e.update())}(e),!1===e.isRenderTargetTexture&&e.version>0&&i.__version!==e.version){const n=e.image;if(null===n)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==n.complete)return void L(i,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(3553,i.__webglTexture,33984+t)}const N={[Ph]:10497,[Lh]:33071,[Rh]:33648},I={[Oh]:9728,[zh]:9984,[Bh]:9986,[Hh]:9729,[Wh]:9985,[Gh]:9987};function D(n,o,a){if(a?(e.texParameteri(n,10242,N[o.wrapS]),e.texParameteri(n,10243,N[o.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,N[o.wrapR]),e.texParameteri(n,10240,I[o.magFilter]),e.texParameteri(n,10241,I[o.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),o.wrapS===Lh&&o.wrapT===Lh||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,M(o.magFilter)),e.texParameteri(n,10241,M(o.minFilter)),o.minFilter!==Oh&&o.minFilter!==Hh&&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")){const a=t.get("EXT_texture_filter_anisotropic");if(o.magFilter===Oh)return;if(o.minFilter!==Bh&&o.minFilter!==Gh)return;if(o.type===$h&&!1===t.has("OES_texture_float_linear"))return;if(!1===s&&o.type===ef&&!1===t.has("OES_texture_half_float_linear"))return;(o.anisotropy>1||r.get(o).__currentAnisotropy)&&(e.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,i.getMaxAnisotropy())),r.get(o).__currentAnisotropy=o.anisotropy)}}function P(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",C));const i=n.source;let o=g.get(i);void 0===o&&(o={},g.set(i,o));const s=function(e){const t=[];
2return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.encoding),t.join()}(n);if(s!==t.__cacheKey){void 0===o[s]&&(o[s]={texture:e.createTexture(),usedTimes:0},a.memory.textures++,r=!0),o[s].usedTimes++;const i=o[t.__cacheKey];void 0!==i&&(o[t.__cacheKey].usedTimes--,0===i.usedTimes&&A(n)),t.__cacheKey=s,t.__webglTexture=o[s].texture}return r}function L(t,i,a){let l=3553;(i.isDataArrayTexture||i.isCompressedArrayTexture)&&(l=35866),i.isData3DTexture&&(l=32879);const c=P(t,i),d=i.source;n.bindTexture(l,t.__webglTexture,33984+a);const p=r.get(d);if(d.version!==p.__version||!0===c){n.activeTexture(33984+a),e.pixelStorei(37440,i.flipY),e.pixelStorei(37441,i.premultiplyAlpha),e.pixelStorei(3317,i.unpackAlignment),e.pixelStorei(37443,0);const t=function(e){return!s&&(e.wrapS!==Lh||e.wrapT!==Lh||e.minFilter!==Oh&&e.minFilter!==Hh)}(i)&&!1===x(i.image);let r=b(i.image,t,!1,u);r=U(i,r);const h=x(r)||s,f=o.convert(i.format,i.encoding);let m,g=o.convert(i.type),v=_(i.internalFormat,f,g,i.encoding,i.isVideoTexture);D(l,i,h);const y=i.mipmaps,M=s&&!0!==i.isVideoTexture,C=void 0===p.__version||!0===c,T=k(i,r,h);if(i.isDepthTexture)v=6402,s?v=i.type===$h?36012:i.type===Jh?33190:i.type===rf?35056:33189:i.type===$h&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),i.format===cf&&6402===v&&i.type!==Zh&&i.type!==Jh&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=Jh,g=o.convert(i.type)),i.format===uf&&6402===v&&(v=34041,i.type!==rf&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=rf,g=o.convert(i.type))),C&&(M?n.texStorage2D(3553,1,v,r.width,r.height):n.texImage2D(3553,0,v,r.width,r.height,0,f,g,null));else if(i.isDataTexture)if(y.length>0&&h){M&&C&&n.texStorage2D(3553,T,v,y[0].width,y[0].height);for(let e=0,t=y.length;e<t;e++)m=y[e],M?n.texSubImage2D(3553,e,0,0,m.width,m.height,f,g,m.data):n.texImage2D(3553,e,v,m.width,m.height,0,f,g,m.data);i.generateMipmaps=!1}else M?(C&&n.texStorage2D(3553,T,v,r.width,r.height),n.texSubImage2D(3553,0,0,0,r.width,r.height,f,g,r.data)):n.texImage2D(3553,0,v,r.width,r.height,0,f,g,r.data);else if(i.isCompressedTexture)if(i.isCompressedArrayTexture){M&&C&&n.texStorage3D(35866,T,v,y[0].width,y[0].height,r.depth);for(let e=0,t=y.length;e<t;e++)m=y[e],i.format!==af?null!==f?M?n.compressedTexSubImage3D(35866,e,0,0,0,m.width,m.height,r.depth,f,m.data,0,0):n.compressedTexImage3D(35866,e,v,m.width,m.height,r.depth,0,m.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):M?n.texSubImage3D(35866,e,0,0,0,m.width,m.height,r.depth,f,g,m.data):n.texImage3D(35866,e,v,m.width,m.height,r.depth,0,f,g,m.data)}else{M&&C&&n.texStorage2D(3553,T,v,y[0].width,y[0].height);for(let e=0,t=y.length;e<t;e++)m=y[e],i.format!==af?null!==f?M?n.compressedTexSubImage2D(3553,e,0,0,m.width,m.height,f,m.data):n.compressedTexImage2D(3553,e,v,m.width,m.height,0,m.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):M?n.texSubImage2D(3553,e,0,0,m.width,m.height,f,g,m.data):n.texImage2D(3553,e,v,m.width,m.height,0,f,g,m.data)}else if(i.isDataArrayTexture)M?(C&&n.texStorage3D(35866,T,v,r.width,r.height,r.depth),n.texSubImage3D(35866,0,0,0,0,r.width,r.height,r.depth,f,g,r.data)):n.texImage3D(35866,0,v,r.width,r.height,r.depth,0,f,g,r.data);else if(i.isData3DTexture)M?(C&&n.texStorage3D(32879,T,v,r.width,r.height,r.depth),n.texSubImage3D(32879,0,0,0,0,r.width,r.height,r.depth,f,g,r.data)):n.texImage3D(32879,0,v,r.width,r.height,r.depth,0,f,g,r.data);else if(i.isFramebufferTexture){if(C)if(M)n.texStorage2D(3553,T,v,r.width,r.height);else{let e=r.width,t=r.height;for(let r=0;r<T;r++)n.texImage2D(3553,r,v,e,t,0,f,g,null),e>>=1,t>>=1}}else if(y.length>0&&h){M&&C&&n.texStorage2D(3553,T,v,y[0].width,y[0].height);for(let e=0,t=y.length;e<t;e++)m=y[e],M?n.texSubImage2D(3553,e,0,0,f,g,m):n.texImage2D(3553,e,v,f,g,m);i.generateMipmaps=!1}else M?(C&&n.texStorage2D(3553,T,v,r.width,r.height),n.texSubImage2D(3553,0,0,0,f,g,r)):n.texImage2D(3553,0,v,f,g,r);
vendor: 14,587 bytes, line 2
2S(i,h)&&w(l),p.__version=d.version,i.onUpdate&&i.onUpdate(i)}t.__version=i.version}function R(t,i,a,s,l){const c=o.convert(a.format,a.encoding),u=o.convert(a.type),d=_(a.internalFormat,c,u,a.encoding);r.get(i).__hasExternalTextures||(32879===l||35866===l?n.texImage3D(l,0,d,i.width,i.height,i.depth,0,c,u,null):n.texImage2D(l,0,d,i.width,i.height,0,c,u,null)),n.bindFramebuffer(36160,t),B(i)?p.framebufferTexture2DMultisampleEXT(36160,s,l,r.get(a).__webglTexture,0,F(i)):(3553===l||l>=34069&&l<=34074)&&e.framebufferTexture2D(36160,s,l,r.get(a).__webglTexture,0),n.bindFramebuffer(36160,null)}function O(t,n,r){if(e.bindRenderbuffer(36161,t),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r||B(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===$h?i=36012:t.type===Jh&&(i=33190));const r=F(n);B(n)?p.renderbufferStorageMultisampleEXT(36161,r,i,n.width,n.height):e.renderbufferStorageMultisample(36161,r,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){const i=F(n);r&&!1===B(n)?e.renderbufferStorageMultisample(36161,i,35056,n.width,n.height):B(n)?p.renderbufferStorageMultisampleEXT(36161,i,35056,n.width,n.height):e.renderbufferStorage(36161,34041,n.width,n.height),e.framebufferRenderbuffer(36160,33306,36161,t)}else{const t=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let i=0;i<t.length;i++){const a=t[i],s=o.convert(a.format,a.encoding),l=o.convert(a.type),c=_(a.internalFormat,s,l,a.encoding),u=F(n);r&&!1===B(n)?e.renderbufferStorageMultisample(36161,u,c,n.width,n.height):B(n)?p.renderbufferStorageMultisampleEXT(36161,u,c,n.width,n.height):e.renderbufferStorage(36161,c,n.width,n.height)}}e.bindRenderbuffer(36161,null)}function z(t){const i=r.get(t),o=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(o)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,i){if(i&&i.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,t),!i.depthTexture||!i.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");r.get(i.depthTexture).__webglTexture&&i.depthTexture.image.width===i.width&&i.depthTexture.image.height===i.height||(i.depthTexture.image.width=i.width,i.depthTexture.image.height=i.height,i.depthTexture.needsUpdate=!0),j(i.depthTexture,0);const o=r.get(i.depthTexture).__webglTexture,a=F(i);if(i.depthTexture.format===cf)B(i)?p.framebufferTexture2DMultisampleEXT(36160,36096,3553,o,0,a):e.framebufferTexture2D(36160,36096,3553,o,0);else{if(i.depthTexture.format!==uf)throw new Error("Unknown depthTexture format");B(i)?p.framebufferTexture2DMultisampleEXT(36160,33306,3553,o,0,a):e.framebufferTexture2D(36160,33306,3553,o,0)}}(i.__webglFramebuffer,t)}else if(o){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)n.bindFramebuffer(36160,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]=e.createRenderbuffer(),O(i.__webglDepthbuffer[r],t,!1)}else n.bindFramebuffer(36160,i.__webglFramebuffer),i.__webglDepthbuffer=e.createRenderbuffer(),O(i.__webglDepthbuffer,t,!1);n.bindFramebuffer(36160,null)}function F(e){return Math.min(d,e.samples)}function B(e){const n=r.get(e);return s&&e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function U(e,n){const r=e.encoding,i=e.format,o=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===Wm||r!==am&&(r===sm?!1===s?!0===t.has("EXT_sRGB")&&i===af?(e.format=Wm,e.minFilter=Hh,e.generateMipmaps=!1):n=xg.sRGBToLinear(n):i===af&&o===Kh||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",r)),n}this.allocateTextureUnit=function(){const e=E;return e>=l&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+l),E+=1,e},this.resetTextureUnits=function(){E=0},this.setTexture2D=j,this.setTexture2DArray=function(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?L(i,e,t):n.bindTexture(35866,i.__webglTexture,33984+t)},this.setTexture3D=function(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?L(i,e,t):n.bindTexture(32879,i.__webglTexture,33984+t)},this.setTextureCube=function(t,i){const a=r.get(t);t.version>0&&a.__version!==t.version?function(t,i,a){if(6!==i.image.length)return;const l=P(t,i),u=i.source;n.bindTexture(34067,t.__webglTexture,33984+a);const d=r.get(u);if(u.version!==d.__version||!0===l){n.activeTexture(33984+a),e.pixelStorei(37440,i.flipY),e.pixelStorei(37441,i.premultiplyAlpha),e.pixelStorei(3317,i.unpackAlignment),e.pixelStorei(37443,0);const t=i.isCompressedTexture||i.image[0].isCompressedTexture,r=i.image[0]&&i.image[0].isDataTexture,p=[];for(let e=0;e<6;e++)p[e]=t||r?r?i.image[e].image:i.image[e]:b(i.image[e],!1,!0,c),p[e]=U(i,p[e]);const h=p[0],f=x(h)||s,m=o.convert(i.format,i.encoding),g=o.convert(i.type),v=_(i.internalFormat,m,g,i.encoding),y=s&&!0!==i.isVideoTexture,M=void 0===d.__version||!0===l;let C,T=k(i,h,f);if(D(34067,i,f),t){y&&M&&n.texStorage2D(34067,T,v,h.width,h.height);for(let e=0;e<6;e++){C=p[e].mipmaps;for(let t=0;t<C.length;t++){const r=C[t];i.format!==af?null!==m?y?n.compressedTexSubImage2D(34069+e,t,0,0,r.width,r.height,m,r.data):n.compressedTexImage2D(34069+e,t,v,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):y?n.texSubImage2D(34069+e,t,0,0,r.width,r.height,m,g,r.data):n.texImage2D(34069+e,t,v,r.width,r.height,0,m,g,r.data)}}}else{C=i.mipmaps,y&&M&&(C.length>0&&T++,n.texStorage2D(34067,T,v,p[0].width,p[0].height));for(let e=0;e<6;e++)if(r){y?n.texSubImage2D(34069+e,0,0,0,p[e].width,p[e].height,m,g,p[e].data):n.texImage2D(34069+e,0,v,p[e].width,p[e].height,0,m,g,p[e].data);for(let t=0;t<C.length;t++){const r=C[t].image[e].image;y?n.texSubImage2D(34069+e,t+1,0,0,r.width,r.height,m,g,r.data):n.texImage2D(34069+e,t+1,v,r.width,r.height,0,m,g,r.data)}}else{y?n.texSubImage2D(34069+e,0,0,0,m,g,p[e]):n.texImage2D(34069+e,0,v,m,g,p[e]);for(let t=0;t<C.length;t++){const r=C[t];y?n.texSubImage2D(34069+e,t+1,0,0,m,g,r.image[e]):n.texImage2D(34069+e,t+1,v,m,g,r.image[e])}}}S(i,f)&&w(34067),d.__version=u.version,i.onUpdate&&i.onUpdate(i)}t.__version=i.version}(a,t,i):n.bindTexture(34067,a.__webglTexture,33984+i)},this.rebindTextures=function(e,t,n){const i=r.get(e);void 0!==t&&R(i.__webglFramebuffer,e,e.texture,36064,3553),void 0!==n&&z(e)},this.setupRenderTarget=function(t){const l=t.texture,c=r.get(t),u=r.get(l);t.addEventListener("dispose",T),!0!==t.isWebGLMultipleRenderTargets&&(void 0===u.__webglTexture&&(u.__webglTexture=e.createTexture()),u.__version=l.version,a.memory.textures++);const d=!0===t.isWebGLCubeRenderTarget,p=!0===t.isWebGLMultipleRenderTargets,h=x(t)||s;if(d){c.__webglFramebuffer=[];for(let t=0;t<6;t++)c.__webglFramebuffer[t]=e.createFramebuffer()}else{if(c.__webglFramebuffer=e.createFramebuffer(),p)if(i.drawBuffers){const n=t.texture;for(let t=0,i=n.length;t<i;t++){const i=r.get(n[t]);void 0===i.__webglTexture&&(i.__webglTexture=e.createTexture(),a.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(s&&t.samples>0&&!1===B(t)){const r=p?l:[l];c.__webglMultisampledFramebuffer=e.createFramebuffer(),c.__webglColorRenderbuffer=[],n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer);for(let n=0;n<r.length;n++){const i=r[n];c.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(36161,c.__webglColorRenderbuffer[n]);const a=o.convert(i.format,i.encoding),s=o.convert(i.type),l=_(i.internalFormat,a,s,i.encoding,!0===t.isXRRenderTarget),u=F(t);e.renderbufferStorageMultisample(36161,u,l,t.width,t.height),e.framebufferRenderbuffer(36160,36064+n,36161,c.__webglColorRenderbuffer[n])}e.bindRenderbuffer(36161,null),t.depthBuffer&&(c.__webglDepthRenderbuffer=e.createRenderbuffer(),O(c.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(36160,null)}}if(d){n.bindTexture(34067,u.__webglTexture),D(34067,l,h);for(let e=0;e<6;e++)R(c.__webglFramebuffer[e],t,l,36064,34069+e);S(l,h)&&w(34067),n.unbindTexture()}else if(p){const e=t.texture;for(let i=0,o=e.length;i<o;i++){const o=e[i],a=r.get(o);n.bindTexture(3553,a.__webglTexture),D(3553,o,h),R(c.__webglFramebuffer,t,o,36064+i,3553),S(o,h)&&w(3553)}n.unbindTexture()}else{let e=3553;(t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(s?e=t.isWebGL3DRenderTarget?32879:35866:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(e,u.__webglTexture),D(e,l,h),R(c.__webglFramebuffer,t,l,36064,e),S(l,h)&&w(e),n.unbindTexture()}t.depthBuffer&&z(t)},this.updateRenderTargetMipmap=function(e){const t=x(e)||s,i=!0===e.isWebGLMultipleRenderTargets?e.texture:[e.texture];for(let o=0,a=i.length;o<a;o++){const a=i[o];if(S(a,t)){const t=e.isWebGLCubeRenderTarget?34067:3553,i=r.get(a).__webglTexture;n.bindTexture(t,i),w(t),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(s&&t.samples>0&&!1===B(t)){const i=t.isWebGLMultipleRenderTargets?t.texture:[t.texture],o=t.width,a=t.height;let s=16384;const l=[],c=t.stencilBuffer?33306:36096,u=r.get(t),d=!0===t.isWebGLMultipleRenderTargets;if(d)for(let t=0;t<i.length;t++)n.bindFramebuffer(36160,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(36160,36064+t,36161,null),n.bindFramebuffer(36160,u.__webglFramebuffer),e.framebufferTexture2D(36009,36064+t,3553,null,0);n.bindFramebuffer(36008,u.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,u.__webglFramebuffer);for(let n=0;n<i.length;n++){l.push(36064+n),t.depthBuffer&&l.push(c);const p=void 0!==u.__ignoreDepthValues&&u.__ignoreDepthValues;if(!1===p&&(t.depthBuffer&&(s|=256),t.stencilBuffer&&(s|=1024)),d&&e.framebufferRenderbuffer(36008,36064,36161,u.__webglColorRenderbuffer[n]),!0===p&&(e.invalidateFramebuffer(36008,[c]),e.invalidateFramebuffer(36009,[c])),d){const t=r.get(i[n]).__webglTexture;e.framebufferTexture2D(36009,36064,3553,t,0)}e.blitFramebuffer(0,0,o,a,0,0,o,a,s,9728),h&&e.invalidateFramebuffer(36008,l)}if(n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,null),d)for(let t=0;t<i.length;t++){n.bindFramebuffer(36160,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(36160,36064+t,36161,u.__webglColorRenderbuffer[t]);const o=r.get(i[t]).__webglTexture;n.bindFramebuffer(36160,u.__webglFramebuffer),e.framebufferTexture2D(36009,36064+t,3553,o,0)}n.bindFramebuffer(36009,u.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=z,this.setupFrameBufferTexture=R,this.useMultisampledRTT=B}function PS(e,t,n){const r=n.isWebGL2;return{convert:function(n){let i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(n===Kh)return 5121;if(n===tf)return 32819;if(n===nf)return 32820;if(n===Yh)return 5120;if(n===Xh)return 5122;if(n===Zh)return 5123;if(n===Qh)return 5124;if(n===Jh)return 5125;if(n===$h)return 5126;if(n===ef)return r?5131:(i=t.get("OES_texture_half_float"),null!==i?i.HALF_FLOAT_OES:null);if(n===of)return 6406;if(n===af)return 6408;if(n===sf)return 6409;if(n===lf)return 6410;if(n===cf)return 6402;if(n===uf)return 34041;if(n===Wm)return i=t.get("EXT_sRGB"),null!==i?i.SRGB_ALPHA_EXT:null;if(n===df)return 6403;if(n===pf)return 36244;if(n===hf)return 33319;if(n===ff)return 33320;if(n===mf)return 36249;if(n===gf||n===vf||n===yf||n===bf)if(o===sm){if(i=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===i)return null;if(n===gf)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===vf)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===yf)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===bf)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(i=t.get("WEBGL_compressed_texture_s3tc"),null===i)return null;if(n===gf)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===vf)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===yf)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===bf)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(n===xf||n===Sf||n===wf||n===_f){if(i=t.get("WEBGL_compressed_texture_pvrtc"),null===i)return null;if(n===xf)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Sf)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===wf)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===_f)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===kf)return i=t.get("WEBGL_compressed_texture_etc1"),null!==i?i.COMPRESSED_RGB_ETC1_WEBGL:null;if(n===Mf||n===Cf){if(i=t.get("WEBGL_compressed_texture_etc"),null===i)return null;if(n===Mf)return o===sm?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===Cf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}if(n===Tf||n===Af||n===Ef||n===jf||n===Nf||n===If||n===Df||n===Pf||n===Lf||n===Rf||n===Of||n===zf||n===Ff||n===Bf){if(i=t.get("WEBGL_compressed_texture_astc"),null===i)return null;if(n===Tf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Af)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Ef)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===jf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===Nf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===If)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Df)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Pf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===Lf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===Rf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===Of)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===zf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===Ff)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===Bf)return o===sm?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===Uf){if(i=t.get("EXT_texture_compression_bptc"),null===i)return null;if(n===Uf)return o===sm?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT}if(n===Hf||n===Wf||n===Vf||n===Gf){if(i=t.get("EXT_texture_compression_rgtc"),null===i)return null;
vendor: 6,486 bytes, line 2
2if(n===Uf)return i.COMPRESSED_RED_RGTC1_EXT;if(n===Wf)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===Vf)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===Gf)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===rf?r?34042:(i=t.get("WEBGL_depth_texture"),null!==i?i.UNSIGNED_INT_24_8_WEBGL:null):void 0!==e[n]?e[n]:null}}}class LS extends eb{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(),this.isArrayCamera=!0,this.cameras=e}}class RS extends Pv{constructor(){super(),this.isGroup=!0,this.type="Group"}}const OS={type:"move"};class zS{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new RS,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new RS,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Dg,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Dg),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new RS,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Dg,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Dg),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(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}update(e,t,n){let r=null,i=null,o=null;const a=this._targetRay,s=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(l&&e.hand){o=!0;for(const o of e.hand.values()){const e=t.getJointPose(o,n),r=this._getHandJoint(l,o);null!==e&&(r.matrix.fromArray(e.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.jointRadius=e.radius),r.visible=null!==e}const r=l.joints["index-finger-tip"],i=l.joints["thumb-tip"],a=r.position.distanceTo(i.position),s=.02,c=.005;l.inputState.pinching&&a>s+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&a<=s-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(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));null!==a&&(r=t.getPose(e.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(OS)))}return null!==a&&(a.visible=null!==r),null!==s&&(s.visible=null!==i),null!==l&&(l.visible=null!==o),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new RS;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class FS extends kg{constructor(e,t,n,r,i,o,a,s,l,c){if((c=void 0!==c?c:cf)!==cf&&c!==uf)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===cf&&(n=Jh),void 0===n&&c===uf&&(n=rf),super(null,r,i,o,a,s,c,n,l),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==a?a:Oh,this.minFilter=void 0!==s?s:Oh,this.flipY=!1,this.generateMipmaps=!1}}class BS extends Vm{constructor(e,t){super();const n=this;let r=null,i=1,o=null,a="local-floor",s=1,l=null,c=null,u=null,d=null,p=null,h=null;const f=t.getContextAttributes();let m=null,g=null;const v=[],y=[],b=new Set,x=new Map,S=new eb;S.layers.enable(1),S.viewport=new Mg;const w=new eb;w.layers.enable(2),w.viewport=new Mg;const _=[S,w],k=new LS;k.layers.enable(1),k.layers.enable(2);let M=null,C=null;function T(e){const t=y.indexOf(e.inputSource);if(-1===t)return;const n=v[t];void 0!==n&&n.dispatchEvent({type:e.type,data:e.inputSource})}function A(){r.removeEventListener("select",T),r.removeEventListener("selectstart",T),r.removeEventListener("selectend",T),r.removeEventListener("squeeze",T),r.removeEventListener("squeezestart",T),r.removeEventListener("squeezeend",T),r.removeEventListener("end",A),r.removeEventListener("inputsourceschange",E);for(let e=0;e<v.length;e++){const t=y[e];null!==t&&(y[e]=null,v[e].disconnect(t))}M=null,C=null,e.setRenderTarget(m),p=null,d=null,u=null,r=null,g=null,P.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function E(e){for(let t=0;t<e.removed.length;t++){const n=e.removed[t],r=y.indexOf(n);r>=0&&(y[r]=null,v[r].disconnect(n))}for(let t=0;t<e.added.length;t++){const n=e.added[t];let r=y.indexOf(n);if(-1===r){for(let e=0;e<v.length;e++){if(e>=y.length){y.push(n),r=e;break}if(null===y[e]){y[e]=n,r=e;break}}if(-1===r)break}const i=v[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=v[e];return void 0===t&&(t=new zS,v[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=v[e];return void 0===t&&(t=new zS,v[e]=t),t.getGripSpace()},this.getHand=function(e){let t=v[e];return void 0===t&&(t=new zS,v[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){i=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){a=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||o},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==d?d:p},this.getBinding=function(){return u},this.getFrame=function(){return h}
2,this.getSession=function(){return r},this.setSession=async function(c){if(r=c,null!==r){if(m=e.getRenderTarget(),r.addEventListener("select",T),r.addEventListener("selectstart",T),r.addEventListener("selectend",T),r.addEventListener("squeeze",T),r.addEventListener("squeezestart",T),r.addEventListener("squeezeend",T),r.addEventListener("end",A),r.addEventListener("inputsourceschange",E),!0!==f.xrCompatible&&await t.makeXRCompatible(),void 0===r.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||f.antialias,alpha:f.alpha,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:i};p=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:p}),g=new Cg(p.framebufferWidth,p.framebufferHeight,{format:af,type:Kh,encoding:e.outputEncoding,stencilBuffer:f.stencil})}else{let n=null,o=null,a=null;f.depth&&(a=f.stencil?35056:33190,n=f.stencil?uf:cf,o=f.stencil?rf:Jh);const s={colorFormat:32856,depthFormat:a,scaleFactor:i};u=new XRWebGLBinding(r,t),d=u.createProjectionLayer(s),r.updateRenderState({layers:[d]}),g=new Cg(d.textureWidth,d.textureHeight,{format:af,type:Kh,depthTexture:new FS(d.textureWidth,d.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,encoding:e.outputEncoding,samples:f.antialias?4:0});e.properties.get(g).__ignoreDepthValues=d.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(s),l=null,o=await r.requestReferenceSpace(a),P.setContext(r),P.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const j=new Dg,N=new Dg;function I(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===r)return;k.near=w.near=S.near=e.near,k.far=w.far=S.far=e.far,M===k.near&&C===k.far||(r.updateRenderState({depthNear:k.near,depthFar:k.far}),M=k.near,C=k.far);const t=e.parent,n=k.cameras;I(k,t);for(let r=0;r<n.length;r++)I(n[r],t);2===n.length?function(e,t,n){j.setFromMatrixPosition(t.matrixWorld),N.setFromMatrixPosition(n.matrixWorld);const r=j.distanceTo(N),i=t.projectionMatrix.elements,o=n.projectionMatrix.elements,a=i[14]/(i[10]-1),s=i[14]/(i[10]+1),l=(i[9]+1)/i[5],c=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(o[8]+1)/o[0],p=a*u,h=a*d,f=r/(-u+d),m=f*-u;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(f),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const g=a+f,v=s+f,y=p-m,b=h+(r-m),x=l*s/v*g,S=c*s/v*g;e.projectionMatrix.makePerspective(y,b,x,S,g,v),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}(k,S,w):k.projectionMatrix.copy(S.projectionMatrix),function(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld));e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0);const r=e.children;for(let i=0,o=r.length;i<o;i++)r[i].updateMatrixWorld(!0);e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*Ym*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}(e,k,t)},this.getCamera=function(){return k},this.getFoveation=function(){if(null!==d||null!==p)return s},this.setFoveation=function(e){s=e,null!==d&&(d.fixedFoveation=e),null!==p&&void 0!==p.fixedFoveation&&(p.fixedFoveation=e)},this.getPlanes=function(){return b};let D=null;const P=new pb;P.setAnimationLoop(function(t,r){if(c=r.getViewerPose(l||o),h=r,null!==c){const t=c.views;null!==p&&(e.setRenderTargetFramebuffer(g,p.framebuffer),e.setRenderTarget(g));let n=!1;t.length!==k.cameras.length&&(k.cameras.length=0,n=!0);for(let r=0;r<t.length;r++){const i=t[r];let o=null;if(null!==p)o=p.getViewport(i);else{const t=u.getViewSubImage(d,i);o=t.viewport,0===r&&(e.setRenderTargetTextures(g,t.colorTexture,d.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(g))}let a=_[r];void 0===a&&(a=new eb,a.layers.enable(r),a.viewport=new Mg,_[r]=a),a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.quaternion,a.scale),a.projectionMatrix.fromArray(i.projectionMatrix),a.projectionMatrixInverse.copy(a.projectionMatrix).invert(),a.viewport.set(o.x,o.y,o.width,o.height),0===r&&(k.matrix.copy(a.matrix),k.matrix.decompose(k.position,k.quaternion,k.scale)),!0===n&&k.cameras.push(a)}}for(let e=0;e<v.length;e++){const t=y[e],n=v[e];null!==t&&void 0!==n&&n.update(t,r,l||o)}if(D&&D(t,r),r.detectedPlanes){n.dispatchEvent({type:"planesdetected",data:r.detectedPlanes});let e=null;for(const t of b)r.detectedPlanes.has(t)||(null===e&&(e=[]),e.push(t));if(null!==e)for(const t of e)b.delete(t),x.delete(t),n.dispatchEvent({type:"planeremoved",data:t});for(const t of r.detectedPlanes)if(b.has(t)){const e=x.get(t);t.lastChangedTime>e&&(x.set(t,t.lastChangedTime),n.dispatchEvent({type:"planechanged",data:t}))}else b.add(t),x.set(t,r.lastChangedTime),n.dispatchEvent({type:"planeadded",data:t})}h=null}),this.setAnimationLoop=function(e){D=e},this.dispose=function(){}}}function US(e,t){function n(e,t){!0===e.matrixAutoUpdate&&e.updateMatrix(),t.value.copy(e.matrix)}function r(r,i){r.opacity.value=i.opacity,i.color&&r.diffuse.value.copy(i.color),i.emissive&&r.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(r.map.value=i.map,n(i.map,r.mapTransform)),i.alphaMap&&(r.alphaMap.value=i.alphaMap,n(i.alphaMap,r.alphaMapTransform)),i.bumpMap&&(r.bumpMap.value=i.bumpMap,n(i.bumpMap,r.bumpMapTransform),r.bumpScale.value=i.bumpScale,i.side===Bp&&(r.bumpScale.value*=-1)),i.normalMap&&(r.normalMap.value=i.normalMap,n(i.normalMap,r.normalMapTransform),r.normalScale.value.copy(i.normalScale),i.side===Bp&&r.normalScale.value.negate()),i.displacementMap&&(r.displacementMap.value=i.displacementMap,n(i.displacementMap,r.displacementMapTransform),r.displacementScale.value=i.displacementScale,r.displacementBias.value=i.displacementBias),i.emissiveMap&&(r.emissiveMap.value=i.emissiveMap,n(i.emissiveMap,r.emissiveMapTransform)),i.specularMap&&(r.specularMap.value=i.specularMap,n(i.specularMap,r.specularMapTransform)),i.alphaTest>0&&(r.alphaTest.value=i.alphaTest);const o=t.get(i).envMap;if(o&&(r.envMap.value=o,r.flipEnvMap.value=o.isCubeTexture&&!1===o.isRenderTargetTexture?-1:1,r.reflectivity.value=i.reflectivity,r.ior.value=i.ior,r.refractionRatio.value=i.refractionRatio),i.lightMap){r.lightMap.value=i.lightMap;const t=!0===e.useLegacyLights?Math.PI:1;r.lightMapIntensity.value=i.lightMapIntensity*t,n(i.lightMap,r.lightMapTransform)}i.aoMap&&(r.aoMap.value=i.aoMap,r.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,r.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,Zy(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,i,o,a,s){i.isMeshBasicMaterial||i.isMeshLambertMaterial?r(e,i
vendor: 4,258 bytes, line 2
2):i.isMeshToonMaterial?(r(e,i),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,i)):i.isMeshPhongMaterial?(r(e,i),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,i)):i.isMeshStandardMaterial?(r(e,i),function(e,r){e.metalness.value=r.metalness,r.metalnessMap&&(e.metalnessMap.value=r.metalnessMap,n(r.metalnessMap,e.metalnessMapTransform));e.roughness.value=r.roughness,r.roughnessMap&&(e.roughnessMap.value=r.roughnessMap,n(r.roughnessMap,e.roughnessMapTransform));const i=t.get(r).envMap;i&&(e.envMapIntensity.value=r.envMapIntensity)}(e,i),i.isMeshPhysicalMaterial&&function(e,t,r){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,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform)));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===Bp&&e.clearcoatNormalScale.value.negate()));t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform)));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,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform));t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}(e,i,s)):i.isMeshMatcapMaterial?(r(e,i),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,i)):i.isMeshDepthMaterial?r(e,i):i.isMeshDistanceMaterial?(r(e,i),function(e,n){const r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}(e,i)):i.isMeshNormalMaterial?r(e,i):i.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,i),i.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,i)):i.isPointsMaterial?function(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=.5*i,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap);t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i,o,a):i.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,n(t.map,e.mapTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap);t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i):i.isShadowMaterial?(e.color.value.copy(i.color),e.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function HS(e,t,n,r){let i={},o={},a=[];
2const s=n.isWebGL2?e.getParameter(35375):0;function l(e,t,n){const r=e.value;if(void 0===n[t]){if("number"===typeof r)n[t]=r;else{const e=Array.isArray(r)?r:[r],i=[];for(let t=0;t<e.length;t++)i.push(e[t].clone());n[t]=i}return!0}if("number"===typeof r){if(n[t]!==r)return n[t]=r,!0}else{const e=Array.isArray(n[t])?n[t]:[n[t]],i=Array.isArray(r)?r:[r];for(let t=0;t<e.length;t++){const n=e[t];if(!1===n.equals(i[t]))return n.copy(i[t]),!0}}return!1}function c(e){const t={boundary:0,storage:0};return"number"===typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const r=a.indexOf(n.__bindingPointIndex);a.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete o[n.id]}return{bind:function(e,t){const n=t.program;r.uniformBlockBinding(e,n)},update:function(n,d){let p=i[n.id];void 0===p&&(!function(e){const t=e.uniforms;let n=0;const r=16;let i=0;for(let o=0,a=t.length;o<a;o++){const e=t[o],a={boundary:0,storage:0},s=Array.isArray(e.value)?e.value:[e.value];for(let t=0,n=s.length;t<n;t++){const e=c(s[t]);a.boundary+=e.boundary,a.storage+=e.storage}if(e.__data=new Float32Array(a.storage/Float32Array.BYTES_PER_ELEMENT),e.__offset=n,o>0){i=n%r;0!==i&&r-i-a.boundary<0&&(n+=r-i,e.__offset=n)}n+=a.storage}i=n%r,i>0&&(n+=r-i);e.__size=n,e.__cache={}}(n),p=function(t){const n=function(){for(let e=0;e<s;e++)if(-1===a.indexOf(e))return a.push(e),e;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}();t.__bindingPointIndex=n;const r=e.createBuffer(),i=t.__size,o=t.usage;return e.bindBuffer(35345,r),e.bufferData(35345,i,o),e.bindBuffer(35345,null),e.bindBufferBase(35345,n,r),r}(n),i[n.id]=p,n.addEventListener("dispose",u));const h=d.program;r.updateUBOMapping(n,h);const f=t.render.frame;o[n.id]!==f&&(!function(t){const n=i[t.id],r=t.uniforms,o=t.__cache;e.bindBuffer(35345,n);for(let i=0,a=r.length;i<a;i++){const t=r[i];if(!0===l(t,i,o)){const n=t.__offset,r=Array.isArray(t.value)?t.value:[t.value];let i=0;for(let o=0;o<r.length;o++){const a=r[o],s=c(a);"number"===typeof a?(t.__data[0]=a,e.bufferSubData(35345,n+i,t.__data)):a.isMatrix3?(t.__data[0]=a.elements[0],t.__data[1]=a.elements[1],t.__data[2]=a.elements[2],t.__data[3]=a.elements[0],t.__data[4]=a.elements[3],t.__data[5]=a.elements[4],t.__data[6]=a.elements[5],t.__data[7]=a.elements[0],t.__data[8]=a.elements[6],t.__data[9]=a.elements[7],t.__data[10]=a.elements[8],t.__data[11]=a.elements[0]):(a.toArray(t.__data,i),i+=s.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(35345,n,t.__data)}}e.bindBuffer(35345,null)}(n),o[n.id]=f)},dispose:function(){for(const t in i)e.deleteBuffer(i[t]);a=[],i={},o={}}}}function WS(){const e=dg("canvas");return e.style.display="block",e}class VS{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{canvas:t=WS(),context:n=null,depth:r=!0,stencil:i=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:l=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:u=!1}=e;let d;this.isWebGLRenderer=!0,d=null!==n?n.getContextAttributes().alpha:o;let p=null,h=null;const f=[],m=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=am,this.useLegacyLights=!0,this.toneMapping=wh,this.toneMappingExposure=1;const g=this;let v=!1,y=0,b=0,x=null,S=-1,w=null;const _=new Mg,k=new Mg;let M=null,C=t.width,T=t.height,A=1,E=null,j=null;const N=new Mg(0,0,C,T),I=new Mg(0,0,C,T);let D=!1;const P=new db;let L=!1,R=!1,O=null;const z=new cv,F=new Dg,B={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function U(){return null===x?A:1}let H,W,V,G,q,K,Y,X,Z,Q,J,$,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,pe=n;function he(e,n){for(let r=0;r<e.length;r++){const i=e[r],o=t.getContext(i,n);if(null!==o)return o}return null}try{const e={alpha:!0,depth:r,stencil:i,antialias:a,premultipliedAlpha:s,preserveDrawingBuffer:l,powerPreference:c,failIfMajorPerformanceCaveat:u};if("setAttribute"in t&&t.setAttribute("data-engine","three.js r".concat(Ap)),t.addEventListener("webglcontextlost",ge,!1),t.addEventListener("webglcontextrestored",ve,!1),t.addEventListener("webglcontextcreationerror",ye,!1),null===pe){const t=["webgl2","webgl","experimental-webgl"];if(!0===g.isWebGL1Renderer&&t.shift(),pe=he(t,e),null===pe)throw he(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===pe.getShaderPrecisionFormat&&(pe.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(ME){throw console.error("THREE.WebGLRenderer: "+ME.message),ME}function fe(){H=new Bb(pe),W=new wb(pe,H,e),H.init(W),ce=new PS(pe,H,W),
vendor: 4,725 bytes, line 2
2V=new IS(pe,H,W),G=new Wb,q=new yS,K=new DS(pe,H,V,q,W,ce,G),Y=new kb(g),X=new Fb(g),Z=new hb(pe,W),ue=new xb(pe,H,Z,W),Q=new Ub(pe,Z,G,ue),J=new Kb(pe,Q,Z,G),ae=new qb(pe,W,K),re=new _b(q),$=new vS(g,Y,X,H,W,ue,re),ee=new US(g,q),te=new wS,ne=new AS(H,W),oe=new bb(g,Y,X,V,J,d,s),ie=new NS(g,J,W),de=new HS(pe,G,W,V),se=new Sb(pe,H,G,W),le=new Hb(pe,H,G,W),G.programs=$.programs,g.capabilities=W,g.extensions=H,g.properties=q,g.renderLists=te,g.shadowMap=ie,g.state=V,g.info=G}fe();const me=new BS(g,pe);function ge(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),v=!0}function ve(){console.log("THREE.WebGLRenderer: Context Restored."),v=!1;const e=G.autoReset,t=ie.enabled,n=ie.autoUpdate,r=ie.needsUpdate,i=ie.type;fe(),G.autoReset=e,ie.enabled=t,ie.autoUpdate=n,ie.needsUpdate=r,ie.type=i}function ye(e){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",e.statusMessage)}function be(e){const t=e.target;t.removeEventListener("dispose",be),function(e){(function(e){const t=q.get(e).programs;void 0!==t&&(t.forEach(function(e){$.releaseProgram(e)}),e.isShaderMaterial&&$.releaseShaderCache(e))})(e),q.remove(e)}(t)}this.xr=me,this.getContext=function(){return pe},this.getContextAttributes=function(){return pe.getContextAttributes()},this.forceContextLoss=function(){const e=H.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=H.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return A},this.setPixelRatio=function(e){void 0!==e&&(A=e,this.setSize(C,T,!1))},this.getSize=function(e){return e.set(C,T)},this.setSize=function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];me.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(C=e,T=n,t.width=Math.floor(e*A),t.height=Math.floor(n*A),!0===r&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(C*A,T*A).floor()},this.setDrawingBufferSize=function(e,n,r){C=e,T=n,A=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(_)},this.getViewport=function(e){return e.copy(N)},this.setViewport=function(e,t,n,r){e.isVector4?N.set(e.x,e.y,e.z,e.w):N.set(e,t,n,r),V.viewport(_.copy(N).multiplyScalar(A).floor())},this.getScissor=function(e){return e.copy(I)},this.setScissor=function(e,t,n,r){e.isVector4?I.set(e.x,e.y,e.z,e.w):I.set(e,t,n,r),V.scissor(k.copy(I).multiplyScalar(A).floor())},this.getScissorTest=function(){return D},this.setScissorTest=function(e){V.setScissorTest(D=e)},this.setOpaqueSort=function(e){E=e},this.setTransparentSort=function(e){j=e},this.getClearColor=function(e){return e.copy(oe.getClearColor())},this.setClearColor=function(){oe.setClearColor.apply(oe,arguments)},this.getClearAlpha=function(){return oe.getClearAlpha()},this.setClearAlpha=function(){oe.setClearAlpha.apply(oe,arguments)},this.clear=function(){let e=0;(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(e|=16384),(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e|=256),(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&(e|=1024),pe.clear(e)},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(){t.removeEventListener("webglcontextlost",ge,!1),t.removeEventListener("webglcontextrestored",ve,!1),t.removeEventListener("webglcontextcreationerror",ye,!1),te.dispose(),ne.dispose(),q.dispose(),Y.dispose(),X.dispose(),J.dispose(),ue.dispose(),de.dispose(),$.dispose(),me.dispose(),me.removeEventListener("sessionstart",Se),me.removeEventListener("sessionend",we),O&&(O.dispose(),O=null),_e.stop()},this.renderBufferDirect=function(e,t,n,r,i,o){null===t&&(t=B);const a=i.isMesh&&i.matrixWorld.determinant()<0,s=function(e,t,n,r,i){!0!==t.isScene&&(t=B);K.resetTextureUnits();const o=t.fog,a=r.isMeshStandardMaterial?t.environment:null,s=null===x?g.outputEncoding:!0===x.isXRRenderTarget?x.texture.encoding:am,l=(r.isMeshStandardMaterial?X:Y).get(r.envMap||a),c=!0===r.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!r.normalMap&&!!n.attributes.tangent,d=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,f=!!n.morphAttributes.color,m=r.toneMapped?g.toneMapping:wh,v=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,y=void 0!==v?v.length:0,b=q.get(r),_=h.state.lights;if(!0===L&&(!0===R||e!==w)){const t=e===w&&r.id===S;re.setState(r,e,t)}let k=!1;r.version===b.__version?b.needsLights&&b.lightsStateVersion!==_.state.ver
2sion||b.outputEncoding!==s||i.isInstancedMesh&&!1===b.instancing?k=!0:i.isInstancedMesh||!0!==b.instancing?i.isSkinnedMesh&&!1===b.skinning?k=!0:i.isSkinnedMesh||!0!==b.skinning?b.envMap!==l||!0===r.fog&&b.fog!==o?k=!0:void 0===b.numClippingPlanes||b.numClippingPlanes===re.numPlanes&&b.numIntersection===re.numIntersection?(b.vertexAlphas!==c||b.vertexTangents!==u||b.morphTargets!==d||b.morphNormals!==p||b.morphColors!==f||b.toneMapping!==m||!0===W.isWebGL2&&b.morphTargetsCount!==y)&&(k=!0):k=!0:k=!0:k=!0:(k=!0,b.__version=r.version);let M=b.currentProgram;!0===k&&(M=Ae(r,t,i));let C=!1,E=!1,j=!1;const N=M.getUniforms(),I=b.uniforms;V.useProgram(M.program)&&(C=!0,E=!0,j=!0);r.id!==S&&(S=r.id,E=!0);if(C||w!==e){if(N.setValue(pe,"projectionMatrix",e.projectionMatrix),W.logarithmicDepthBuffer&&N.setValue(pe,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),w!==e&&(w=e,E=!0,j=!0),r.isShaderMaterial||r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshStandardMaterial||r.envMap){const t=N.map.cameraPosition;void 0!==t&&t.setValue(pe,F.setFromMatrixPosition(e.matrixWorld))}(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&N.setValue(pe,"isOrthographic",!0===e.isOrthographicCamera),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial||r.isShadowMaterial||i.isSkinnedMesh)&&N.setValue(pe,"viewMatrix",e.matrixWorldInverse)}if(i.isSkinnedMesh){N.setOptional(pe,i,"bindMatrix"),N.setOptional(pe,i,"bindMatrixInverse");const e=i.skeleton;e&&(W.floatVertexTextures?(null===e.boneTexture&&e.computeBoneTexture(),N.setValue(pe,"boneTexture",e.boneTexture,K),N.setValue(pe,"boneTextureSize",e.boneTextureSize)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}const D=n.morphAttributes;(void 0!==D.position||void 0!==D.normal||void 0!==D.color&&!0===W.isWebGL2)&&ae.update(i,n,M);(E||b.receiveShadow!==i.receiveShadow)&&(b.receiveShadow=i.receiveShadow,N.setValue(pe,"receiveShadow",i.receiveShadow));r.isMeshGouraudMaterial&&null!==r.envMap&&(I.envMap.value=l,I.flipEnvMap.value=l.isCubeTexture&&!1===l.isRenderTargetTexture?-1:1);E&&(N.setValue(pe,"toneMappingExposure",g.toneMappingExposure),b.needsLights&&(z=j,(P=I).ambientLightColor.needsUpdate=z,P.lightProbe.needsUpdate=z,P.directionalLights.needsUpdate=z,P.directionalLightShadows.needsUpdate=z,P.pointLights.needsUpdate=z,P.pointLightShadows.needsUpdate=z,P.spotLights.needsUpdate=z,P.spotLightShadows.needsUpdate=z,P.rectAreaLights.needsUpdate=z,P.hemisphereLights.needsUpdate=z),o&&!0===r.fog&&ee.refreshFogUniforms(I,o),ee.refreshMaterialUniforms(I,r,A,T,O),Qx.upload(pe,b.uniformsList,I,K));var P,z;r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(Qx.upload(pe,b.uniformsList,I,K),r.uniformsNeedUpdate=!1);r.isSpriteMaterial&&N.setValue(pe,"center",i.center);if(N.setValue(pe,"modelViewMatrix",i.modelViewMatrix),N.setValue(pe,"normalMatrix",i.normalMatrix),N.setValue(pe,"modelMatrix",i.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){const e=r.uniformsGroups;for(let t=0,n=e.length;t<n;t++)if(W.isWebGL2){const n=e[t];de.update(n,M),de.bind(n,M)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return M}(e,t,n,r,i);V.setMaterial(r,a);let l=n.index,c=1;!0===r.wireframe&&(l=Q.getWireframeAttribute(n),c=2);const u=n.drawRange,d=n.attributes.position;let p=u.start*c,f=(u.start+u.count)*c;null!==o&&(p=Math.max(p,o.start*c),f=Math.min(f,(o.start+o.count)*c)),null!==l?(p=Math.max(p,0),f=Math.min(f,l.count)):void 0!==d&&null!==d&&(p=Math.max(p,0),f=Math.min(f,d.count));const m=f-p;if(m<0||m===1/0)return;let v;ue.setup(i,r,s,n,l);let y=se;if(null!==l&&(v=Z.get(l),y=le,y.setIndex(v)),i.isMesh)!0===r.wireframe?(V.setLineWidth(r.wireframeLinewidth*U()),y.setMode(1)):y.setMode(4);else if(i.isLine){let e=r.linewidth;
2void 0===e&&(e=1),V.setLineWidth(e*U()),i.isLineSegments?y.setMode(1):i.isLineLoop?y.setMode(2):y.setMode(3)}else i.isPoints?y.setMode(0):i.isSprite&&y.setMode(4);if(i.isInstancedMesh)y.renderInstances(p,m,i.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);y.renderInstances(p,m,t)}else y.render(p,m)},this.compile=function(e,t){function n(e,t,n){!0===e.transparent&&e.side===Up&&!1===e.forceSinglePass?(e.side=Bp,e.needsUpdate=!0,Ae(e,t,n),e.side=Fp,e.needsUpdate=!0,Ae(e,t,n),e.side=Up):Ae(e,t,n)}h=ne.get(e),h.init(),m.push(h),e.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(h.pushLight(e),e.castShadow&&h.pushShadow(e))}),h.setupLights(g.useLegacyLights),e.traverse(function(t){const r=t.material;if(r)if(Array.isArray(r))for(let i=0;i<r.length;i++){n(r[i],e,t)}else n(r,e,t)}),m.pop(),h=null};let xe=null;function Se(){_e.stop()}function we(){_e.start()}const _e=new pb;function ke(e,t,n,r){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)h.pushLight(e),e.castShadow&&h.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||P.intersectsSprite(e)){r&&F.setFromMatrixPosition(e.matrixWorld).applyMatrix4(z);const t=J.update(e),i=e.material;i.visible&&p.push(e,t,i,n,F.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(e.isSkinnedMesh&&e.skeleton.frame!==G.render.frame&&(e.skeleton.update(),e.skeleton.frame=G.render.frame),!e.frustumCulled||P.intersectsObject(e))){r&&F.setFromMatrixPosition(e.matrixWorld).applyMatrix4(z);const t=J.update(e),i=e.material;if(Array.isArray(i)){const r=t.groups;for(let o=0,a=r.length;o<a;o++){const a=r[o],s=i[a.materialIndex];s&&s.visible&&p.push(e,t,s,n,F.z,a)}}else i.visible&&p.push(e,t,i,n,F.z,null)}const i=e.children;for(let o=0,a=i.length;o<a;o++)ke(i[o],t,n,r)}function Me(e,t,n,r){const i=e.opaque,o=e.transmissive,s=e.transparent;h.setupLightsView(n),!0===L&&re.setGlobalState(g.clippingPlanes,n),o.length>0&&function(e,t,n,r){if(null===O){const e=W.isWebGL2;O=new Cg(1024,1024,{generateMipmaps:!0,type:H.has("EXT_color_buffer_half_float")?ef:Kh,minFilter:Gh,samples:e&&!0===a?4:0})}const i=g.getRenderTarget();g.setRenderTarget(O),g.clear();const o=g.toneMapping;g.toneMapping=wh,Ce(e,n,r),K.updateMultisampleRenderTarget(O),K.updateRenderTargetMipmap(O);let s=!1;for(let a=0,l=t.length;a<l;a++){const e=t[a],i=e.object,o=e.geometry,l=e.material,c=e.group;if(l.side===Up&&i.layers.test(r.layers)){const e=l.side;l.side=Bp,l.needsUpdate=!0,Te(i,n,r,o,l,c),l.side=e,l.needsUpdate=!0,s=!0}}!0===s&&(K.updateMultisampleRenderTarget(O),K.updateRenderTargetMipmap(O));g.setRenderTarget(i),g.toneMapping=o}(i,o,t,n),r&&V.viewport(_.copy(r)),i.length>0&&Ce(i,t,n),o.length>0&&Ce(o,t,n),s.length>0&&Ce(s,t,n),V.buffers.depth.setTest(!0),V.buffers.depth.setMask(!0),V.buffers.color.setMask(!0),V.setPolygonOffset(!1)}function Ce(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,o=e.length;i<o;i++){const o=e[i],a=o.object,s=o.geometry,l=null===r?o.material:r,c=o.group;a.layers.test(n.layers)&&Te(a,t,n,s,l,c)}}function Te(e,t,n,r,i,o){e.onBeforeRender(g,t,n,r,i,o),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),i.onBeforeRender(g,t,n,r,e,o),!0===i.transparent&&i.side===Up&&!1===i.forceSinglePass?(i.side=Bp,i.needsUpdate=!0,g.renderBufferDirect(n,t,r,i,e,o),i.side=Fp,i.needsUpdate=!0,g.renderBufferDirect(n,t,r,i,e,o),i.side=Up):g.renderBufferDirect(n,t,r,i,e,o),e.onAfterRender(g,t,n,r,i,o)}function Ae(e,t,n){!0!==t.isScene&&(t=B);const r=q.get(e),i=h.state.lights,o=h.state.shadowsArray,a=i.state.version,s=$.getParameters(e,i.state,o,t,n),l=$.getProgramCacheKey(s);let c=r.programs;r.environment=e.isMeshStandardMaterial?t.environment:null,r.fog=t.fog,r.envMap=(e.isMeshStandardMaterial?X:Y).get(e.envMap||r.environment),void 0===c&&(e.addEventListener("dispose",be),c=new Map,r.programs=c);let u=c.get(l);if(void 0!==u){if(r.currentProgram===u&&r.lightsStateVersion===a)return Ee(e,s),u}else s.uniforms=$.getUniforms(e),e.onBuild(n,s,g),e.onBeforeCompile(s,g),u=$.acquireProgram(s,l),c.set(l,u),r.uniforms=s.uniforms;const d=r.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(d.clippingPlanes=re.uniform),Ee(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=a,r.needsLights&&(d.ambientLightColor.value=i.state.ambient,d.lightProbe.value=i.state.probe,d.directionalLights.value=i.state.directional,d.directionalLightShadows.value=i.state.directionalShadow,d.spotLights.value=i.state.spot,d.spotLightShadows.value=i.state.spotShadow,d.rectAreaLights.value=i.state.rectArea,d.ltc_1.value=i.state.rectAreaLTC1,d.ltc_2.value=i.state.rectAreaLTC2,d.pointLights.value=i.state.point,d.pointLightShadows.value=i.state.pointShadow,d.hemisphereLights.value=i.state.hemi,d.directionalShadowMap.value=i.state.directionalShadowMap,d.directionalShadowMatrix.value=i.state.directionalShadowMatrix,d.spotShadowMap.value=i.state.spotShadowMap,d.spotLightMatrix.value=i.state.spotLightMatrix,d.spotLightMap.value=i.state.spotLightMap,d.pointShadowMap.value=i.state.pointShadowMap,d.pointShadowMatrix.value=i.state.pointShadowMatrix);const p=u.getUniforms(),f=Qx.seqWithValue(p.seq,d);return r.currentProgram=u,r.uniformsList=f,u}function Ee(e,t){const n=q.get(e);n.outputEncoding=t.outputEncoding,n.instancing=t.instancing,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}_e.setAnimationLoop(function(e){xe&&xe(e)}),"undefined"!==typeof self&&_e.setContext(self),this.setAnimationLoop=function(e){xe=e,me.setAnimationLoop(e),null===e?_e.stop():_e.start()},me.addEventListener("sessionstart",Se),me.addEventListener("sessionend",we),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===v)return;!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&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,x),h=ne.get(e,m.length),h.init(),m.push(h),z.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),P.setFromProjectionMatrix(z),R=this.localClippingEnabled,L=re.init(this.clippingPlanes,R),p=te.get(e,f.length),p.init(),f.pu
vendor: 18,157 bytes, line 2
2sh(p),ke(e,t,0,g.sortObjects),p.finish(),!0===g.sortObjects&&p.sort(E,j),!0===L&&re.beginShadows();const n=h.state.shadowsArray;if(ie.render(n,e,t),!0===L&&re.endShadows(),!0===this.info.autoReset&&this.info.reset(),oe.render(p,e),h.setupLights(g.useLegacyLights),t.isArrayCamera){const n=t.cameras;for(let t=0,r=n.length;t<r;t++){const r=n[t];Me(p,e,r,r.viewport)}}else Me(p,e,t);null!==x&&(K.updateMultisampleRenderTarget(x),K.updateRenderTargetMipmap(x)),!0===e.isScene&&e.onAfterRender(g,e,t),ue.resetDefaultState(),S=-1,w=null,m.pop(),h=m.length>0?m[m.length-1]:null,f.pop(),p=f.length>0?f[f.length-1]:null},this.getActiveCubeFace=function(){return y},this.getActiveMipmapLevel=function(){return b},this.getRenderTarget=function(){return x},this.setRenderTargetTextures=function(e,t,n){q.get(e.texture).__webglTexture=t,q.get(e.depthTexture).__webglTexture=n;const r=q.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===H.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=q.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;x=e,y=t,b=n;let r=!0,i=null,o=!1,a=!1;if(e){const n=q.get(e);void 0!==n.__useDefaultFramebuffer?(V.bindFramebuffer(36160,null),r=!1):void 0===n.__webglFramebuffer?K.setupRenderTarget(e):n.__hasExternalTextures&&K.rebindTextures(e,q.get(e.texture).__webglTexture,q.get(e.depthTexture).__webglTexture);const s=e.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(a=!0);const l=q.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=l[t],o=!0):i=W.isWebGL2&&e.samples>0&&!1===K.useMultisampledRTT(e)?q.get(e).__webglMultisampledFramebuffer:l,_.copy(e.viewport),k.copy(e.scissor),M=e.scissorTest}else _.copy(N).multiplyScalar(A).floor(),k.copy(I).multiplyScalar(A).floor(),M=D;if(V.bindFramebuffer(36160,i)&&W.drawBuffers&&r&&V.drawBuffers(e,i),V.viewport(_),V.scissor(k),V.setScissorTest(M),o){const r=q.get(e.texture);pe.framebufferTexture2D(36160,36064,34069+t,r.__webglTexture,n)}else if(a){const r=q.get(e.texture),i=t||0;pe.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}S=-1},this.readRenderTargetPixels=function(e,t,n,r,i,o,a){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=q.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){V.bindFramebuffer(36160,s);try{const a=e.texture,s=a.format,l=a.type;if(s!==af&&ce.convert(s)!==pe.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===ef&&(H.has("EXT_color_buffer_half_float")||W.isWebGL2&&H.has("EXT_color_buffer_float"));if(l!==Kh&&ce.convert(l)!==pe.getParameter(35738)&&(l!==$h||!(W.isWebGL2||H.has("OES_texture_float")||H.has("WEBGL_color_buffer_float")))&&!c)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&pe.readPixels(t,n,r,i,ce.convert(s),ce.convert(l),o)}finally{const e=null!==x?q.get(x).__webglFramebuffer:null;V.bindFramebuffer(36160,e)}}},this.copyFramebufferToTexture=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.pow(2,-n),i=Math.floor(t.image.width*r),o=Math.floor(t.image.height*r);K.setTexture2D(t,0),pe.copyTexSubImage2D(3553,n,0,0,e.x,e.y,i,o),V.unbindTexture()},this.copyTextureToTexture=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=t.image.width,o=t.image.height,a=ce.convert(n.format),s=ce.convert(n.type);K.setTexture2D(n,0),pe.pixelStorei(37440,n.flipY),pe.pixelStorei(37441,n.premultiplyAlpha),pe.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?pe.texSubImage2D(3553,r,e.x,e.y,i,o,a,s,t.image.data):t.isCompressedTexture?pe.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,a,t.mipmaps[0].data):pe.texSubImage2D(3553,r,e.x,e.y,a,s,t.image),0===r&&n.generateMipmaps&&pe.generateMipmap(3553),V.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(g.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const o=e.max.x-e.min.x+1,a=e.max.y-e.min.y+1,s=e.max.z-e.min.z+1,l=ce.convert(r.format),c=ce.convert(r.type);let u;if(r.isData3DTexture)K.setTexture3D(r,0),u=32879;else{if(!r.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");K.setTexture2DArray(r,0),u=35866}pe.pixelStorei(37440,r.flipY),pe.pixelStorei(37441,r.premultiplyAlpha),pe.pixelStorei(3317,r.unpackAlignment);const d=pe.getParameter(3314),p=pe.getParameter(32878),h=pe.getParameter(3316),f=pe.getParameter(3315),m=pe.getParameter(32877),v=n.isCompressedTexture?n.mipmaps[0]:n.image;pe.pixelStorei(3314,v.width),pe.pixelStorei(32878,v.height),pe.pixelStorei(3316,e.min.x),pe.pixelStorei(3315,e.min.y),pe.pixelStorei(32877,e.min.z),n.isDataTexture||n.isData3DTexture?pe.texSubImage3D(u,i,t.x,t.y,t.z,o,a,s,l,c,v.data):n.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),pe.compressedTexSubImage3D(u,i,t.x,t.y,t.z,o,a,s,l,v.data)):pe.texSubImage3D(u,i,t.x,t.y,t.z,o,a,s,l,c,v),pe.pixelStorei(3314,d),pe.pixelStorei(32878,p),pe.pixelStorei(3316,h),pe.pixelStorei(3315,f),pe.pixelStorei(32877,m),0===i&&r.generateMipmaps&&pe.generateMipmap(u),V.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?K.setTextureCube(e,0):e.isData3DTexture?K.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?K.setTexture2DArray(e,0):K.setTexture2D(e,0),V.unbindTexture()},this.resetState=function(){y=0,b=0,x=null,V.reset(),ue.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}}class GS extends VS{}GS.prototype.isWebGL1Renderer=!0;class qS{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25e-5;this.isFogExp2=!0,this.name="",this.color=new $v(e),this.density=t}clone(){return new qS(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}class KS{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;this.isFog=!0,this.name="",this.color=new $v(e),this.near=t,this.far=n}clone(){return new KS(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}class YS extends Pv{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t}get autoUpdate(){return console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate}set autoUpdate(e){console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate=e}}class XS{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Im,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Xm()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;r<i;r++)this.array[e+r]=t.array[n+r];return this}set(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(e,t),this}clone(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Xm()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Xm()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const ZS=new Dg;class QS{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=n,this.normalized=r}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,n=this.data.count;t<n;t++)ZS.fromBufferAttribute(this,t),ZS.applyMatrix4(e),this.setXYZ(t,ZS.x,ZS.y,ZS.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)ZS.fromBufferAttribute(this,t),ZS.applyNormalMatrix(e),this.setXYZ(t,ZS.x,ZS.y,ZS.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)ZS.fromBufferAttribute(this,t),ZS.transformDirection(e),this.setXYZ(t,ZS.x,ZS.y,ZS.z);return this}setX(e,t){return this.normalized&&(t=rg(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=rg(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=rg(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=rg(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=ng(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=ng(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=ng(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=ng(t,this.array)),t}setXY(e,t,n){return e=e*this.data.stride+this.offset,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this}setXYZ(e,t,n,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array),r=rg(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=rg(t,this.array),n=rg(n,this.array),r=rg(r,this.array),i=rg(i,this.array)),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}clone(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return new cy(new this.array.constructor(e),this.itemSize,this.normalized)}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new QS(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:e,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}}}class JS extends Yv{constructor(e){super(),this.isSpriteMaterial=!0,this.type="SpriteMaterial",this.color=new $v(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}let $S;const ew=new Dg,tw=new Dg,nw=new Dg,rw=new og,iw=new og,ow=new cv,aw=new Dg,sw=new Dg,lw=new Dg,cw=new og,uw=new og,dw=new og;class pw extends Pv{constructor(e){if(super(),this.isSprite=!0,this.type="Sprite",void 0===$S){$S=new Ty;const e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),t=new XS(e,5);$S.setIndex([0,1,2,0,2,3]),$S.setAttribute("position",new QS(t,3,0,!1)),$S.setAttribute("uv",new QS(t,2,3,!1))}this.geometry=$S,this.material=void 0!==e?e:new JS,this.center=new og(.5,.5)}raycast(e,t){null===e.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),tw.setFromMatrixScale(this.matrixWorld),ow.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),nw.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&tw.multiplyScalar(-nw.z);const n=this.material.rotation;let r,i;0!==n&&(i=Math.cos(n),r=Math.sin(n));const o=this.center;hw(aw.set(-.5,-.5,0),nw,o,tw,r,i),hw(sw.set(.5,-.5,0),nw,o,tw,r,i),hw(lw.set(.5,.5,0),nw,o,tw,r,i),cw.set(0,0),uw.set(1,0),dw.set(1,1);let a=e.ray.intersectTriangle(aw,sw,lw,!1,ew);if(null===a&&(hw(sw.set(-.5,.5,0),nw,o,tw,r,i),uw.set(0,1),a=e.ray.intersectTriangle(aw,lw,sw,!1,ew),null===a))return;const s=e.ray.origin.distanceTo(ew);s<e.near||s>e.far||t.push({distance:s,point:ew.clone(),uv:qv.getInterpolation(ew,aw,sw,lw,cw,uw,dw,new og),face:null,object:this})}copy(e,t){return super.copy(e,t),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}function hw(e,t,n,r,i,o){rw.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(iw.x=o*rw.x-i*rw.y,iw.y=i*rw.x+o*rw.y):iw.copy(rw),e.copy(t),e.x+=iw.x,e.y+=iw.y,e.applyMatrix4(ow)}const fw=new Dg,mw=new Dg;class gw extends Pv{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let n=0,r=t.length;n<r;n++){const e=t[n];this.addLevel(e.object.clone(),e.distance,e.hysteresis)}return this.autoUpdate=e.autoUpdate,this}addLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t=Math.abs(t);const r=this.levels;let i;for(i=0;i<r.length&&!(t<r[i].distance);i++);return r.splice(i,0,{distance:t,hysteresis:n,object:e}),this.add(e),this}getCurrentLevel(){return this._currentLevel}getObjectForDistance(e){const t=this.levels;if(t.length>0){let n,r;for(n=1,r=t.length;n<r;n++){let r=t[n].distance;if(t[n].object.visible&&(r-=r*t[n].hysteresis),e<r)break}return t[n-1].object}return null}raycast(e,t){if(this.levels.length>0){fw.setFromMatrixPosition(this.matrixWorld);const n=e.ray.origin.distanceTo(fw);this.getObjectForDistance(n).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){fw.setFromMatrixPosition(e.matrixWorld),mw.setFromMatrixPosition(this.matrixWorld);const n=fw.distanceTo(mw)/e.zoom;let r,i;for(t[0].object.visible=!0,r=1,i=t.length;r<i;r++){let e=t[r].distance;if(t[r].object.visible&&(e-=e*t[r].hysteresis),!(n>=e))break;t[r-1].object.visible=!1,t[r].object.visible=!0}for(this._currentLevel=r-1;r<i;r++)t[r].object.visible=!1}}toJSON(e){const t=super.toJSON(e);!1===this.autoUpdate&&(t.object.autoUpdate=!1),t.object.levels=[];const n=this.levels;for(let r=0,i=n.length;r<i;r++){const e=n[r];t.object.levels.push({object:e.object.uuid,distance:e.distance,hysteresis:e.hysteresis})}return t}}const vw=new Dg,yw=new Mg,bw=new Mg,xw=new Dg,Sw=new cv,ww=new Dg;class _w extends Gy{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new cv,this.bindMatrixInverse=new cv,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;
2null===this.boundingBox&&(this.boundingBox=new Rg),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let n=0;n<t.count;n++)ww.fromBufferAttribute(t,n),this.applyBoneTransform(n,ww),this.boundingBox.expandByPoint(ww)}computeBoundingSphere(){const e=this.geometry;null===this.boundingSphere&&(this.boundingSphere=new ev),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let n=0;n<t.count;n++)ww.fromBufferAttribute(t,n),this.applyBoneTransform(n,ww),this.boundingSphere.expandByPoint(ww)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,this}bind(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()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new Mg,t=this.geometry.attributes.skinWeight;for(let n=0,r=t.count;n<r;n++){e.fromBufferAttribute(t,n);const r=1/e.manhattanLength();r!==1/0?e.multiplyScalar(r):e.set(1,0,0,0),t.setXYZW(n,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(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)}applyBoneTransform(e,t){const n=this.skeleton,r=this.geometry;yw.fromBufferAttribute(r.attributes.skinIndex,e),bw.fromBufferAttribute(r.attributes.skinWeight,e),vw.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let i=0;i<4;i++){const e=bw.getComponent(i);if(0!==e){const r=yw.getComponent(i);Sw.multiplyMatrices(n.bones[r].matrixWorld,n.boneInverses[r]),t.addScaledVector(xw.copy(vw).applyMatrix4(Sw),e)}}return t.applyMatrix4(this.bindMatrixInverse)}boneTransform(e,t){return console.warn("THREE.SkinnedMesh: .boneTransform() was renamed to .applyBoneTransform() in r151."),this.applyBoneTransform(e,t)}}class kw extends Pv{constructor(){super(),this.isBone=!0,this.type="Bone"}}class Mw extends kg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;super(null,arguments.length>5?arguments[5]:void 0,arguments.length>6?arguments[6]:void 0,arguments.length>7?arguments[7]:void 0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:Oh,arguments.length>9&&void 0!==arguments[9]?arguments[9]:Oh,arguments.length>3?arguments[3]:void 0,arguments.length>4?arguments[4]:void 0,arguments.length>10?arguments[10]:void 0,arguments.length>11?arguments[11]:void 0),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const Cw=new cv,Tw=new cv;class Aw{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.uuid=Xm(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(16*e.length),0===t.length)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let e=0,t=this.bones.length;e<t;e++)this.boneInverses.push(new cv)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const t=new cv;this.bones[e]&&t.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(t)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&t.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&(t.parent&&t.parent.isBone?(t.matrix.copy(t.parent.matrixWorld).invert(),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))}}update(){const e=this.bones,t=this.boneInverses,n=this.boneMatrices,r=this.boneTexture;for(let i=0,o=e.length;i<o;i++){const r=e[i]?e[i].matrixWorld:Tw;Cw.multiplyMatrices(r,t[i]),Cw.toArray(n,16*i)}null!==r&&(r.needsUpdate=!0)}clone(){return new Aw(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(4*this.bones.length);e=eg(e),e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const n=new Mw(t,e,e,af,$h);return n.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=n,this.boneTextureSize=e,this}getBoneByName(e){for(let t=0,n=this.bones.length;t<n;t++){const n=this.bones[t];if(n.name===e)return n}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;
vendor: 29,292 bytes, line 2
2for(let n=0,r=e.bones.length;n<r;n++){const r=e.bones[n];let i=t[r];void 0===i&&(console.warn("THREE.Skeleton: No bone found with UUID:",r),i=new kw),this.bones.push(i),this.boneInverses.push((new cv).fromArray(e.boneInverses[n]))}return this.init(),this}toJSON(){const e={metadata:{version:4.5,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,n=this.boneInverses;for(let r=0,i=t.length;r<i;r++){const i=t[r];e.bones.push(i.uuid);const o=n[r];e.boneInverses.push(o.toArray())}return e}}class Ew extends cy{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;super(e,t,n),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const jw=new cv,Nw=new cv,Iw=[],Dw=new Rg,Pw=new cv,Lw=new Gy,Rw=new ev;class Ow extends Gy{constructor(e,t,n){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new Ew(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.boundingBox=null,this.boundingSphere=null;for(let r=0;r<n;r++)this.setMatrixAt(r,Pw)}computeBoundingBox(){const e=this.geometry,t=this.count;null===this.boundingBox&&(this.boundingBox=new Rg),null===e.boundingBox&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,jw),Dw.copy(e.boundingBox).applyMatrix4(jw),this.boundingBox.union(Dw)}computeBoundingSphere(){const e=this.geometry,t=this.count;null===this.boundingSphere&&(this.boundingSphere=new ev),null===e.boundingSphere&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,jw),Rw.copy(e.boundingSphere).applyMatrix4(jw),this.boundingSphere.union(Rw)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,this}getColorAt(e,t){t.fromArray(this.instanceColor.array,3*e)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,16*e)}raycast(e,t){const n=this.matrixWorld,r=this.count;if(Lw.geometry=this.geometry,Lw.material=this.material,void 0!==Lw.material&&(null===this.boundingSphere&&this.computeBoundingSphere(),Rw.copy(this.boundingSphere),Rw.applyMatrix4(n),!1!==e.ray.intersectsSphere(Rw)))for(let i=0;i<r;i++){this.getMatrixAt(i,jw),Nw.multiplyMatrices(n,jw),Lw.matrixWorld=Nw,Lw.raycast(e,Iw);for(let e=0,n=Iw.length;e<n;e++){const n=Iw[e];n.instanceId=i,n.object=this,t.push(n)}Iw.length=0}}setColorAt(e,t){null===this.instanceColor&&(this.instanceColor=new Ew(new Float32Array(3*this.instanceMatrix.count),3)),t.toArray(this.instanceColor.array,3*e)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,16*e)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class zw extends Yv{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new $v(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Fw=new Dg,Bw=new Dg,Uw=new cv,Hw=new lv,Ww=new ev;class Vw extends Pv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ty,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zw;super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[0];for(let e=1,r=t.count;e<r;e++)Fw.fromBufferAttribute(t,e-1),Bw.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Fw.distanceTo(Bw);e.setAttribute("lineDistance",new yy(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Ww.copy(n.boundingSphere),Ww.applyMatrix4(r),Ww.radius+=i,!1===e.ray.intersectsSphere(Ww))return;Uw.copy(r).invert(),Hw.copy(e.ray).applyMatrix4(Uw);const a=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=a*a,l=new Dg,c=new Dg,u=new Dg,d=new Dg,p=this.isLineSegments?2:1,h=n.index,f=n.attributes.position;if(null!==h){for(let n=Math.max(0,o.start),r=Math.min(h.count,o.start+o.count)-1;n<r;n+=p){const r=h.getX(n),i=h.getX(n+1);l.fromBufferAttribute(f,r),c.fromBufferAttribute(f,i);if(Hw.distanceSqToSegment(l,c,d,u)>s)continue;d.applyMatrix4(this.matrixWorld);const o=e.ray.origin.distanceTo(d);o<e.near||o>e.far||t.push({distance:o,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,o.start),r=Math.min(f.count,o.start+o.count)-1;n<r;n+=p){l.fromBufferAttribute(f,n),c.fromBufferAttribute(f,n+1);if(Hw.distanceSqToSegment(l,c,d,u)>s)continue;d.applyMatrix4(this.matrixWorld);const r=e.ray.origin.distanceTo(d);r<e.near||r>e.far||t.push({distance:r,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}const Gw=new Dg,qw=new Dg;class Kw extends Vw{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,r=t.count;e<r;e+=2)Gw.fromBufferAttribute(t,e),qw.fromBufferAttribute(t,e+1),n[e]=0===e?0:n[e-1],n[e+1]=n[e]+Gw.distanceTo(qw);e.setAttribute("lineDistance",new yy(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class Yw extends Vw{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class Xw extends Yv{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new $v(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const Zw=new cv,Qw=new lv,Jw=new ev,$w=new Dg;class e_ extends Pv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ty,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Xw;super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=e.material,this.geometry=e.geometry,this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,i=e.params.Points.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Jw.copy(n.boundingSphere),Jw.applyMatrix4(r),Jw.radius+=i,!1===e.ray.intersectsSphere(Jw))return;Zw.copy(r).invert(),Qw.copy(e.ray).applyMatrix4(Zw);const a=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=a*a,l=n.index,c=n.attributes.position;if(null!==l){for(let n=Math.max(0,o.start),i=Math.min(l.count,o.start+o.count);n<i;n++){const i=l.getX(n);$w.fromBufferAttribute(c,i),t_($w,i,s,r,e,t,this)}}else{for(let n=Math.max(0,o.start),i=Math.min(c.count,o.start+o.count);n<i;n++)$w.fromBufferAttribute(c,n),t_($w,n,s,r,e,t,this)}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}function t_(e,t,n,r,i,o,a){const s=Qw.distanceSqToPoint(e);if(s<n){const n=new Dg;Qw.closestPointToPoint(e,n),n.applyMatrix4(r);const l=i.ray.origin.distanceTo(n);if(l<i.near||l>i.far)return;o.push({distance:l,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,object:a})}}class n_ extends kg{constructor(e,t,n,r,i,o,a,s,l){super(e,t,n,r,i,o,a,s,l),this.isVideoTexture=!0,this.minFilter=void 0!==o?o:Hh,this.magFilter=void 0!==i?i:Hh,this.generateMipmaps=!1;const c=this;"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(function t(){c.needsUpdate=!0,e.requestVideoFrameCallback(t)})}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;!1==="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class r_ extends kg{constructor(e,t,n){super({width:e,height:t}),this.isFramebufferTexture=!0,this.format=n,this.magFilter=Oh,this.minFilter=Oh,this.generateMipmaps=!1,this.needsUpdate=!0}}class i_ extends kg{constructor(e,t,n,r,i,o,a,s,l,c,u,d){super(null,o,a,s,l,c,r,i,u,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class o_ extends i_{constructor(e,t,n,r,i,o){super(e,t,n,i,o),this.isCompressedArrayTexture=!0,this.image.depth=r,this.wrapR=Lh}}class a_ extends kg{constructor(e,t,n,r,i,o,a,s,l){super(e,t,n,r,i,o,a,s,l),this.isCanvasTexture=!0,this.needsUpdate=!0}}class s_{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(){let 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;const t=[];let n,r=this.getPoint(0),i=0;t.push(0);for(let o=1;o<=e;o++)n=this.getPoint(o/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let r=0;const i=n.length;let o;o=t||e*n[i-1];let a,s=0,l=i-1;for(;s<=l;)if(r=Math.floor(s+(l-s)/2),a=n[r]-o,a<0)s=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(r=l,n[r]===o)return r/(i-1);const c=n[r];return(r+(o-c)/(n[r+1]-c))/(i-1)}getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);const o=this.getPoint(r),a=this.getPoint(i),s=t||(o.isVector2?new og:new Dg);return s.copy(a).sub(o).normalize(),s}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new Dg,r=[],i=[],o=[],a=new Dg,s=new cv;for(let p=0;p<=e;p++){const t=p/e;r[p]=this.getTangentAt(t,new Dg)}i[0]=new Dg,o[0]=new Dg;let l=Number.MAX_VALUE;const c=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),d<=l&&n.set(0,0,1),a.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],a),o[0].crossVectors(r[0],i[0]);for(let p=1;p<=e;p++){if(i[p]=i[p-1].clone(),o[p]=o[p-1].clone(),a.crossVectors(r[p-1],r[p]),a.length()>Number.EPSILON){a.normalize();const e=Math.acos(Zm(r[p-1].dot(r[p]),-1,1));i[p].applyMatrix4(s.makeRotationAxis(a,e))}o[p].crossVectors(r[p],i[p])}if(!0===t){let t=Math.acos(Zm(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(a.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),o[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class l_ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,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]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s}getPoint(e,t){const n=t||new og,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const o=Math.abs(i)<Number.EPSILON;for(;i<0;)i+=r;for(;i>r;)i-=r;i<Number.EPSILON&&(i=o?0:r),!0!==this.aClockwise||o||(i===r?i=-r:i-=r);const a=this.aStartAngle+e*i;let s=this.aX+this.xRadius*Math.cos(a),l=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){const e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=l-this.aY;s=n*e-r*t+this.aX,l=n*t+r*e+this.aY}return n.set(s,l)}copy(e){return super.copy(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}toJSON(){const e=super.toJSON();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}fromJSON(e){return super.fromJSON(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}}class c_ extends l_{constructor(e,t,n,r,i,o){super(e,t,n,n,r,i,o),this.isArcCurve=!0,this.type="ArcCurve"}}function u_(){let e=0,t=0,n=0,r=0;function i(i,o,a,s){e=i,t=a,n=-3*i+3*o-2*a-s,r=2*i-2*o+a+s}return{initCatmullRom:function(e,t,n,r,o){i(t,n,o*(n-e),o*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,o,a,s){let l=(t-e)/o-(n-e)/(o+a)+(n-t)/a,c=(n-t)/a-(r-t)/(a+s)+(r-n)/s;l*=a,c*=a,i(t,n,l,c)},calc:function(i){const o=i*i;return e+t*i+n*o+r*(o*i)}}}const d_=new Dg,p_=new u_,h_=new u_,f_=new u_;class m_ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg,n=this.points,r=n.length,i=(r-(this.closed?0:1))*e;let o,a,s=Math.floor(i),l=i-s;this.closed?s+=s>0?0:(Math.floor(Math.abs(s)/r)+1)*r:0===l&&s===r-1&&(s=r-2,l=1),this.closed||s>0?o=n[(s-1)%r]:(d_.subVectors(n[0],n[1]).add(n[0]),o=d_);const c=n[s%r],u=n[(s+1)%r];if(this.closed||s+2<r?a=n[(s+2)%r]:(d_.subVectors(n[r-1],n[r-2]).add(n[r-1]),a=d_),"centripetal"===this.curveType||"chordal"===this.curveType){const e="chordal"===this.curveType?.5:.25;let t=Math.pow(o.distanceToSquared(c),e),n=Math.pow(c.distanceToSquared(u),e),r=Math.pow(u.distanceToSquared(a),e);n<1e-4&&(n=1),t<1e-4&&(t=n),r<1e-4&&(r=n),p_.initNonuniformCatmullRom(o.x,c.x,u.x,a.x,t,n,r),h_.initNonuniformCatmullRom(o.y,c.y,u.y,a.y,t,n,r),f_.initNonuniformCatmullRom(o.z,c.z,u.z,a.z,t,n,r)}else"catmullrom"===this.curveType&&(p_.initCatmullRom(o.x,c.x,u.x,a.x,this.tension),h_.initCatmullRom(o.y,c.y,u.y,a.y,this.tension),f_.initCatmullRom(o.z,c.z,u.z,a.z,this.tension));return t.set(p_.calc(l),h_.calc(l),f_.calc(l)),t}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new Dg).fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}function g_(e,t,n,r,i){const o=.5*(r-t),a=.5*(i-n),s=e*e;return(2*n-2*r+o+a)*(e*s)+(-3*n+3*r-2*o-a)*s+o*e+n}function v_(e,t,n,r){return function(e,t){const 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 y_(e,t,n,r,i){return function(e,t){const n=1-e;return n*n*n*t}(e,t)+function(e,t){const 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)}class b_ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new og,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new og,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new og;super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og,n=this.v0,r=this.v1,i=this.v2,o=this.v3;return t.set(y_(e,n.x,r.x,i.x,o.x),y_(e,n.y,r.y,i.y,o.y)),t}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class x_ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Dg,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Dg;super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg,n=this.v0,r=this.v1,i=this.v2,o=this.v3;return t.set(y_(e,n.x,r.x,i.x,o.x),y_(e,n.y,r.y,i.y,o.y),y_(e,n.z,r.z,i.z,o.z)),t}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class S_ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new og,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og;super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og;return 1===e?t.copy(this.v2):(t.copy(this.v2).sub(this.v1),t.multiplyScalar(e).add(this.v1)),t}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og).subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class w_ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg;super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg;return 1===e?t.copy(this.v2):(t.copy(this.v2).sub(this.v1),t.multiplyScalar(e).add(this.v1)),t}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg).subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class __ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new og,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new og;super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og,n=this.v0,r=this.v1,i=this.v2;return t.set(v_(e,n.x,r.x,i.x),v_(e,n.y,r.y,i.y)),t}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class k_ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Dg;super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg,n=this.v0,r=this.v1,i=this.v2;return t.set(v_(e,n.x,r.x,i.x),v_(e,n.y,r.y,i.y),v_(e,n.z,r.z,i.z)),t}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class M_ extends s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og,n=this.points,r=(n.length-1)*e,i=Math.floor(r),o=r-i,a=n[0===i?i:i-1],s=n[i],l=n[i>n.length-2?n.length-1:i+1],c=n[i>n.length-3?n.length-1:i+2];return t.set(g_(o,a.x,s.x,l.x,c.x),g_(o,a.y,s.y,l.y,c.y)),t}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new og).fromArray(n))}return this}}var C_=Object.freeze({__proto__:null,ArcCurve:c_,CatmullRomCurve3:m_,CubicBezierCurve:b_,CubicBezierCurve3:x_,EllipseCurve:l_,LineCurve:S_,LineCurve3:w_,QuadraticBezierCurve:__,QuadraticBezierCurve3:k_,SplineCurve:M_});class T_ extends s_{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);e.equals(t)||this.curves.push(new S_(t,e))}getPoint(e,t){const n=e*this.getLength(),r=this.getCurveLengths();let i=0;for(;i<r.length;){if(r[i]>=n){const e=r[i]-n,o=this.curves[i],a=o.getLength(),s=0===a?0:1-e/a;return o.getPointAt(s,t)}i++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,r=this.curves.length;n<r;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40;const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12;const t=[];let n;for(let r=0,i=this.curves;r<i.length;r++){const o=i[r],a=o.isEllipseCurve?2*e:o.isLineCurve||o.isLineCurve3?1:o.isSplineCurve?e*o.points.length:e,s=o.getPoints(a);for(let e=0;e<s.length;e++){const r=s[e];n&&n.equals(r)||(t.push(r),n=r)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){const n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push((new C_[n.type]).fromJSON(n))}return this}}class A_ extends T_{constructor(e){super(),this.type="Path",this.currentPoint=new og,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){const n=new S_(this.currentPoint.clone(),new og(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,r){const i=new __(this.currentPoint.clone(),new og(e,t),new og(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this}bezierCurveTo(e,t,n,r,i,o){const a=new b_(this.currentPoint.clone(),new og(e,t),new og(n,r),new og(i,o));return this.curves.push(a),this.currentPoint.set(i,o),this}splineThru(e){const t=[this.currentPoint.clone()].concat(e),n=new M_(t);return this.curves.push(n),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,r,i,o){const a=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(e+a,t+s,n,r,i,o),this}absarc(e,t,n,r,i,o){return this.absellipse(e,t,n,n,r,i,o),this}ellipse(e,t,n,r,i,o,a,s){const l=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(e+l,t+c,n,r,i,o,a,s),this}absellipse(e,t,n,r,i,o,a,s){const l=new l_(e,t,n,r,i,o,a,s);if(this.curves.length>0){const e=l.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class E_ extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[new og(0,-.5),new og(.5,0),new og(0,.5)],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:r},t=Math.floor(t),r=Zm(r,0,2*Math.PI);const i=[],o=[],a=[],s=[],l=[],c=1/t,u=new Dg,d=new og,p=new Dg,h=new Dg,f=new Dg;let m=0,g=0;for(let v=0;v<=e.length-1;v++)switch(v){case 0:m=e[v+1].x-e[v].x,g=e[v+1].y-e[v].y,p.x=1*g,p.y=-m,p.z=0*g,f.copy(p),p.normalize(),s.push(p.x,p.y,p.z);break;case e.length-1:s.push(f.x,f.y,f.z);break;default:m=e[v+1].x-e[v].x,g=e[v+1].y-e[v].y,p.x=1*g,p.y=-m,p.z=0*g,h.copy(p),p.x+=f.x,p.y+=f.y,p.z+=f.z,p.normalize(),s.push(p.x,p.y,p.z),f.copy(h)}for(let v=0;v<=t;v++){const i=n+v*c*r,p=Math.sin(i),h=Math.cos(i);for(let n=0;n<=e.length-1;n++){u.x=e[n].x*p,u.y=e[n].y,u.z=e[n].x*h,o.push(u.x,u.y,u.z),d.x=v/t,d.y=n/(e.length-1),a.push(d.x,d.y);const r=s[3*n+0]*p,i=s[3*n+1],c=s[3*n+0]*h;l.push(r,i,c)}}for(let v=0;v<t;v++)for(let t=0;t<e.length-1;t++){const n=t+v*e.length,r=n,o=n+e.length,a=n+e.length+1,s=n+1;i.push(r,o,s),i.push(a,s,o)}this.setIndex(i),this.setAttribute("position",new yy(o,3)),this.setAttribute("uv",new yy(a,2)),this.setAttribute("normal",new yy(l,3))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new E_(e.points,e.segments,e.phiStart,e.phiLength)}}class j_ extends E_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8;const i=new A_;i.absarc(0,-t/2,e,1.5*Math.PI,0),i.absarc(0,t/2,e,0,.5*Math.PI),super(i.getPoints(n),r),this.type="CapsuleGeometry",this.parameters={radiu
vendor: 3,665 bytes, line 2
2s:e,height:t,capSegments:n,radialSegments:r}}static fromJSON(e){return new j_(e.radius,e.length,e.capSegments,e.radialSegments)}}class N_ extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;super(),this.type="CircleGeometry",this.parameters={radius:e,segments:t,thetaStart:n,thetaLength:r},t=Math.max(3,t);const i=[],o=[],a=[],s=[],l=new Dg,c=new og;o.push(0,0,0),a.push(0,0,1),s.push(.5,.5);for(let u=0,d=3;u<=t;u++,d+=3){const i=n+u/t*r;l.x=e*Math.cos(i),l.y=e*Math.sin(i),o.push(l.x,l.y,l.z),a.push(0,0,1),c.x=(o[d]/e+1)/2,c.y=(o[d+1]/e+1)/2,s.push(c.x,c.y)}for(let u=1;u<=t;u++)i.push(u,u+1,0);this.setIndex(i),this.setAttribute("position",new yy(o,3)),this.setAttribute("normal",new yy(a,3)),this.setAttribute("uv",new yy(s,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new N_(e.radius,e.segments,e.thetaStart,e.thetaLength)}}class I_ extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:2*Math.PI;super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:r,heightSegments:i,openEnded:o,thetaStart:a,thetaLength:s};const l=this;r=Math.floor(r),i=Math.floor(i);const c=[],u=[],d=[],p=[];let h=0;const f=[],m=n/2;let g=0;function v(n){const i=h,o=new og,f=new Dg;let v=0;const y=!0===n?e:t,b=!0===n?1:-1;for(let e=1;e<=r;e++)u.push(0,m*b,0),d.push(0,b,0),p.push(.5,.5),h++;const x=h;for(let e=0;e<=r;e++){const t=e/r*s+a,n=Math.cos(t),i=Math.sin(t);f.x=y*i,f.y=m*b,f.z=y*n,u.push(f.x,f.y,f.z),d.push(0,b,0),o.x=.5*n+.5,o.y=.5*i*b+.5,p.push(o.x,o.y),h++}for(let e=0;e<r;e++){const t=i+e,r=x+e;!0===n?c.push(r,r+1,t):c.push(r+1,r,t),v+=3}l.addGroup(g,v,!0===n?1:2),g+=v}!function(){const o=new Dg,v=new Dg;let y=0;const b=(t-e)/n;for(let l=0;l<=i;l++){const c=[],g=l/i,y=g*(t-e)+e;for(let e=0;e<=r;e++){const t=e/r,i=t*s+a,l=Math.sin(i),f=Math.cos(i);v.x=y*l,v.y=-g*n+m,v.z=y*f,u.push(v.x,v.y,v.z),o.set(l,b,f).normalize(),d.push(o.x,o.y,o.z),p.push(t,1-g),c.push(h++)}f.push(c)}for(let e=0;e<r;e++)for(let t=0;t<i;t++){const n=f[t][e],r=f[t+1][e],i=f[t+1][e+1],o=f[t][e+1];c.push(n,r,o),c.push(r,i,o),y+=6}l.addGroup(g,y,0),g+=y}(),!1===o&&(e>0&&v(!0),t>0&&v(!1)),this.setIndex(c),this.setAttribute("position",new yy(u,3)),this.setAttribute("normal",new yy(d,3)),this.setAttribute("uv",new yy(p,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new I_(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class D_ extends I_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2*Math.PI;
2super(0,e,t,n,r,i,o,a),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:o,thetaLength:a}}static fromJSON(e){return new D_(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class P_ extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:r};const i=[],o=[];function a(e,t,n,r){const i=r+1,o=[];for(let a=0;a<=i;a++){o[a]=[];const r=e.clone().lerp(n,a/i),s=t.clone().lerp(n,a/i),l=i-a;for(let e=0;e<=l;e++)o[a][e]=0===e&&a===i?r:r.clone().lerp(s,e/l)}for(let a=0;a<i;a++)for(let e=0;e<2*(i-a)-1;e++){const t=Math.floor(e/2);e%2===0?(s(o[a][t+1]),s(o[a+1][t]),s(o[a][t])):(s(o[a][t+1]),s(o[a+1][t+1]),s(o[a+1][t]))}}function s(e){i.push(e.x,e.y,e.z)}function l(t,n){const r=3*t;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function c(e,t,n,r){r<0&&1===e.x&&(o[t]=e.x-1),0===n.x&&0===n.z&&(o[t]=r/2/Math.PI+.5)}function u(e){return Math.atan2(e.z,-e.x)}function d(e){return Math.atan2(-e.y,Math.sqrt(e.x*e.x+e.z*e.z))}!function(e){const n=new Dg,r=new Dg,i=new Dg;for(let o=0;o<t.length;o+=3)l(t[o+0],n),l(t[o+1],r),l(t[o+2],i),a(n,r,i,e)}(r),function(e){const t=new Dg;for(let n=0;n<i.length;n+=3)t.x=i[n+0],t.y=i[n+1],t.z=i[n+2],t.normalize().multiplyScalar(e),i[n+0]=t.x,i[n+1]=t.y,i[n+2]=t.z}(n),function(){const e=new Dg;for(let t=0;t<i.length;t+=3){e.x=i[t+0],e.y=i[t+1],e.z=i[t+2];const n=u(e)/2/Math.PI+.5,r=d(e)/Math.PI+.5;o.push(n,1-r)}(function(){const e=new Dg,t=new Dg,n=new Dg,r=new Dg,a=new og,s=new og,l=new og;for(let d=0,p=0;d<i.length;d+=9,p+=6){e.set(i[d+0],i[d+1],i[d+2]),t.set(i[d+3],i[d+4],i[d+5]),n.set(i[d+6],i[d+7],i[d+8]),a.set(o[p+0],o[p+1]),s.set(o[p+2],o[p+3]),l.set(o[p+4],o[p+5]),r.copy(e).add(t).add(n).divideScalar(3);const h=u(r);c(a,p+0,e,h),c(s,p+2,t,h),c(l,p+4,n,h)}})(),function(){for(let e=0;e<o.length;e+=6){const t=o[e+0],n=o[e+2],r=o[e+4],i=Math.max(t,n,r),a=Math.min(t,n,r);i>
2.9&&a<.1&&(t<.2&&(o[e+0]+=1),n<.2&&(o[e+2]+=1),r<.2&&(o[e+4]+=1))}}()}(),this.setAttribute("position",new yy(i,3)),this.setAttribute("normal",new yy(i.slice(),3)),this.setAttribute("uv",new yy(o,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new P_(e.vertices,e.indices,e.radius,e.details)}}class L_ extends P_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=(1+Math.sqrt(5))/2,r=1/n;super([-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new L_(e.radius,e.detail)}}const R_=new Dg,O_=new Dg,z_=new Dg,F_=new qv;class B_ extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},null!==e){const n=4,r=Math.pow(10,n),i=Math.cos(Km*t),o=e.getIndex(),a=e.getAttribute("position"),s=o?o.count:a.count,l=[0,0,0],c=["a","b","c"],u=new Array(3),d={},p=[];for(let e=0;e<s;e+=3){o?(l[0]=o.getX(e),l[1]=o.getX(e+1),l[2]=o.getX(e+2)):(l[0]=e,l[1]=e+1,l[2]=e+2);const{a:t,b:n,c:s}=F_;if(t.fromBufferAttribute(a,l[0]),n.fromBufferAttribute(a,l[1]),s.fromBufferAttribute(a,l[2]),F_.getNormal(z_),u[0]="".concat(Math.round(t.x*r),",").concat(Math.round(t.y*r),",").concat(Math.round(t.z*r)),u[1]="".concat(Math.round(n.x*r),",").concat(Math.round(n.y*r),",").concat(Math.round(n.z*r)),u[2]="".concat(Math.round(s.x*r),",").concat(Math.round(s.y*r),",").concat(Math.round(s.z*r)),u[0]!==u[1]&&u[1]!==u[2]&&u[2]!==u[0])for(let e=0;e<3;e++){const t=(e+1)%3,n=u[e],r=u[t],o=F_[c[e]],a=F_[c[t]],s="".concat(n,"_").concat(r),h="".concat(r,"_").concat(n);h in d&&d[h]?(z_.dot(d[h].normal)<=i&&(p.push(o.x,o.y,o.z),p.push(a.x,a.y,a.z)),d[h]=null):s in d||(d[s]={index0:l[e],index1:l[t],normal:z_.clone()})}}for(const e in d)if(d[e]){const{index0:t,index1:n}=d[e];R_.fromBufferAttribute(a,t),O_.fromBufferAttribute(a,n),p.push(R_.x,R_.y,R_.z),p.push(O_.x,O_.y,O_.z)}this.setAttribute("position",new yy(p,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}}class U_ extends A_{constructor(e){super(e),this.uuid=Xm(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let n=0,r=this.holes.length;n<r;n++)t[n]=this.holes[n].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,n=this.holes.length;t<n;t++){const n=this.holes[t];e.holes.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push((new A_).fromJSON(n))}return this}}const H_=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;const r=t&&t.length,i=r?t[0]*n:e.length;let o=W_(e,0,i,n,!0);const a=[];if(!o||o.next===o.prev)return a;let s,l,c,u,d,p,h;if(r&&(o=function(e,t,n,r){const i=[];let o,a,s,l,c;for(o=0,a=t.length;o<a;o++)s=t[o]*r,l=o<a-1?t[o+1]*r:e.length,c=W_(e,s,l,r,!1),c===c.next&&(c.steiner=!0),i.push(ek(c));for(i.sort(Z_),o=0;o<i.length;o++)n=Q_(i[o],n);return n}(e,t,o,n)),e.length>80*n){s=c=e[0],l=u=e[1];for(let t=n;t<i;t+=n)d=e[t],p=e[t+1],d<s&&(s=d),p<l&&(l=p),d>c&&(c=d),p>u&&(u=p);h=Math.max(c-s,u-l),h=0!==h?32767/h:0}return G_(o,a,n,s,l,h,0),a};function W_(e,t,n,r,i){let o,a;if(i===function(e,t,n,r){let i=0;for(let o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}(e,t,n,r)>0)for(o=t;o<n;o+=r)a=uk(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=uk(o,e[o],e[o+1],a);return a&&ik(a,a.next)&&(dk(a),a=a.next),a}function V_(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!ik(r,r.next)&&0!==rk(r.prev,r,r.next))r=r.next;else{if(dk(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function G_(e,t,n,r,i,o,a){if(!e)return;!a&&o&&function(e,t,n,r){let i=e;do{0===i.z&&(i.z=$_(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){let t,n,r,i,o,a,s,l,c=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<c&&(s++,r=r.nextZ,r);t++);for(l=c;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--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(e,r,i,o);let s,l,c=e;for(;e.prev!==e.next;)if(s=e.prev,l=e.next,o?K_(e,r,i,o):q_(e))t.push(s.i/n|0),t.push(e.i/n|0),t.push(l.i/n|0),dk(e),e=l.next,c=l.next;
vendor: 1,868 bytes, line 2
2else if((e=l)===c){a?1===a?G_(e=Y_(V_(e),t,n),t,n,r,i,o,2):2===a&&X_(e,t,n,r,i,o):G_(V_(e),t,n,r,i,o,1);break}}function q_(e){const t=e.prev,n=e,r=e.next;if(rk(t,n,r)>=0)return!1;const i=t.x,o=n.x,a=r.x,s=t.y,l=n.y,c=r.y,u=i<o?i<a?i:a:o<a?o:a,d=s<l?s<c?s:c:l<c?l:c,p=i>o?i>a?i:a:o>a?o:a,h=s>l?s>c?s:c:l>c?l:c;let f=r.next;for(;f!==t;){if(f.x>=u&&f.x<=p&&f.y>=d&&f.y<=h&&tk(i,s,o,l,a,c,f.x,f.y)&&rk(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function K_(e,t,n,r){const i=e.prev,o=e,a=e.next;if(rk(i,o,a)>=0)return!1;const s=i.x,l=o.x,c=a.x,u=i.y,d=o.y,p=a.y,h=s<l?s<c?s:c:l<c?l:c,f=u<d?u<p?u:p:d<p?d:p,m=s>l?s>c?s:c:l>c?l:c,g=u>d?u>p?u:p:d>p?d:p,v=$_(h,f,t,n,r),y=$_(m,g,t,n,r);let b=e.prevZ,x=e.nextZ;for(;b&&b.z>=v&&x&&x.z<=y;){if(b.x>=h&&b.x<=m&&b.y>=f&&b.y<=g&&b!==i&&b!==a&&tk(s,u,l,d,c,p,b.x,b.y)&&rk(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,x.x>=h&&x.x<=m&&x.y>=f&&x.y<=g&&x!==i&&x!==a&&tk(s,u,l,d,c,p,x.x,x.y)&&rk(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;b&&b.z>=v;){if(b.x>=h&&b.x<=m&&b.y>=f&&b.y<=g&&b!==i&&b!==a&&tk(s,u,l,d,c,p,b.x,b.y)&&rk(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;x&&x.z<=y;){if(x.x>=h&&x.x<=m&&x.y>=f&&x.y<=g&&x!==i&&x!==a&&tk(s,u,l,d,c,p,x.x,x.y)&&rk(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Y_(e,t,n){let r=e;do{const i=r.prev,o=r.next.next;!ik(i,o)&&ok(i,r,r.next,o)&&lk(i,o)&&lk(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),dk(r),dk(r.next),r=e=o),r=r.next}while(r!==e);return V_(r)}function X_(e,t,n,r,i,o){let a=e;do{let e=a.next.next;for(;e!==a.prev;){if(a.i!==e.i&&nk(a,e)){let s=ck(a,e);return a=V_(a,a.next),s=V_(s,s.next),G_(a,t,n,r,i,o,0),void G_(s,t,n,r,i,o,0)}e=e.next}a=a.next}while(a!==e)}function Z_(e,t){return e.x-t.x}function Q_(e,t){const n=function(e,t){let n,r=t,i=-1/0;const o=e.x,a=e.y;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){const e=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y
2);if(e<=o&&e>i&&(i=e,n=r.x<r.next.x?r:r.next,e===o))return n}r=r.next}while(r!==t);if(!n)return null;const s=n,l=n.x,c=n.y;let u,d=1/0;r=n;do{o>=r.x&&r.x>=l&&o!==r.x&&tk(a<c?o:i,a,l,c,a<c?i:o,a,r.x,r.y)&&(u=Math.abs(a-r.y)/(o-r.x),lk(r,e)&&(u<d||u===d&&(r.x>n.x||r.x===n.x&&J_(n,r)))&&(n=r,d=u)),r=r.next}while(r!==s);return n}(e,t);if(!n)return t;const r=ck(n,e);return V_(r,r.next),V_(n,n.next)}function J_(e,t){return rk(e.prev,e,t.prev)<0&&rk(t.next,e,e.next)<0}function $_(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function ek(e){let 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 tk(e,t,n,r,i,o,a,s){return(i-a)*(t-s)>=(e-a)*(o-s)&&(e-a)*(r-s)>=(n-a)*(t-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function nk(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&ok(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(lk(e,t)&&lk(t,e)&&function(e,t){let n=e,r=!1;const i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!==n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(rk(e.prev,e,t.prev)||rk(e,t.prev,t))||ik(e,t)&&rk(e.prev,e,e.next)>0&&rk(t.prev,t,t.next)>0)}function rk(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function ik(e,t){return e.x===t.x&&e.y===t.y}function ok(e,t,n,r){const i=sk(rk(e,t,n)),o=sk(rk(e,t,r)),a=sk(rk(n,r,e)),s=sk(rk(n,r,t));return i!==o&&a!==s||(!(0!==i||!ak(e,n,t))||(!(0!==o||!ak(e,r,t))||(!(0!==a||!ak(n,e,r))||!(0!==s||!ak(n,t,r)))))}function ak(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 sk(e){return e>0?1:e<0?-1:0}function lk(e,t){return rk(e.prev,e,e.next)<0?rk(e,t,e.next)>=0&&rk(e,e.prev,t)>=0:rk(e,t,e.prev)<0||rk(e,e.next,t)<0}function ck(e,t){const n=new pk(e.i,e.x,e.y),r=new pk(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function uk(e,t,n,r){const i=new pk(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 dk(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 pk(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class hk{static area(e){const t=e.length;let n=0;for(let 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}static isClockWise(e){return hk.area(e)<0}static triangulateShape(e,t){const n=[],r=[],i=[];fk(e),mk(n,e);let o=e.length;t.forEach(fk);for(let s=0;s<t.length;s++)r.push(o),o+=t[s].length,mk(n,t[s]);const a=H_(n,r);for(let s=0;s<a.length;s+=3)i.push(a.slice(s,s+3));return i}}function fk(e){const t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function mk(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}class gk extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new U_([new og(.5,.5),new og(-.5,.5),new og(-.5,-.5),new og(.5,-.5)]),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];const n=this,r=[],i=[];for(let a=0,s=e.length;a<s;a++){o(e[a])}function o(e){const o=[],a=void 0!==t.curveSegments?t.curveSegments:12,s=void 0!==t.steps?t.steps:1,l=void 0!==t.depth?t.depth:1;let c=void 0===t.bevelEnabled||t.bevelEnabled,u=void 0!==t.bevelThickness?t.bevelThickness:.2,d=void 0!==t.bevelSize?t.bevelSize:u-.1,p=void 0!==t.bevelOffset?t.bevelOffset:0,h=void 0!==t.bevelSegments?t.bevelSegments:3;const f=t.extrudePath,m=void 0!==t.UVGenerator?t.UVGenerator:vk;let g,v,y,b,x,S=!1;f&&(g=f.getSpacedPoints(s),S=!0,c=!1,v=f.computeFrenetFrames(s,!1),y=new Dg,b=new Dg,x=new Dg),c||(h=0,u=0,d=0,p=0);const w=e.extractPoints(a);let _=w.shape;const k=w.holes;if(!hk.isClockWise(_)){_=_.reverse();for(let e=0,t=k.length;e<t;e++){const t=k[e];hk.isClockWise(t)&&(k[e]=t.reverse())}}const M=hk.triangulateShape(_,k),C=_;for(let t=0,n=k.length;t<n;t++){const e=k[t];_=_.concat(e)}function T(e,t,n){return t||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().addScaledVector(t,n)}const A=_.length,E=M.length;function j(e,t,n){let r,i,o;
vendor: 4,613 bytes, line 2
2const a=e.x-t.x,s=e.y-t.y,l=n.x-e.x,c=n.y-e.y,u=a*a+s*s,d=a*c-s*l;if(Math.abs(d)>Number.EPSILON){const d=Math.sqrt(u),p=Math.sqrt(l*l+c*c),h=t.x-s/d,f=t.y+a/d,m=((n.x-c/p-h)*c-(n.y+l/p-f)*l)/(a*c-s*l);r=h+a*m-e.x,i=f+s*m-e.y;const g=r*r+i*i;if(g<=2)return new og(r,i);o=Math.sqrt(g/2)}else{let e=!1;a>Number.EPSILON?l>Number.EPSILON&&(e=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(e=!0):Math.sign(s)===Math.sign(c)&&(e=!0),e?(r=-s,i=a,o=Math.sqrt(u)):(r=a,i=s,o=Math.sqrt(u/2))}return new og(r/o,i/o)}const N=[];for(let t=0,n=C.length,r=n-1,i=t+1;t<n;t++,r++,i++)r===n&&(r=0),i===n&&(i=0),N[t]=j(C[t],C[r],C[i]);const I=[];let D,P=N.concat();for(let t=0,n=k.length;t<n;t++){const e=k[t];D=[];for(let t=0,n=e.length,r=n-1,i=t+1;t<n;t++,r++,i++)r===n&&(r=0),i===n&&(i=0),D[t]=j(e[t],e[r],e[i]);I.push(D),P=P.concat(D)}for(let t=0;t<h;t++){const e=t/h,n=u*Math.cos(e*Math.PI/2),r=d*Math.sin(e*Math.PI/2)+p;for(let t=0,i=C.length;t<i;t++){const e=T(C[t],N[t],r);O(e.x,e.y,-n)}for(let t=0,i=k.length;t<i;t++){const e=k[t];D=I[t];for(let t=0,i=e.length;t<i;t++){const i=T(e[t],D[t],r);O(i.x,i.y,-n)}}}const L=d+p;for(let t=0;t<A;t++){const e=c?T(_[t],P[t],L):_[t];S?(b.copy(v.normals[0]).multiplyScalar(e.x),y.copy(v.binormals[0]).multiplyScalar(e.y),x.copy(g[0]).add(b).add(y),O(x.x,x.y,x.z)):O(e.x,e.y,0)}for(let t=1;t<=s;t++)for(let e=0;e<A;e++){const n=c?T(_[e],P[e],L):_[e];S?(b.copy(v.normals[t]).multiplyScalar(n.x),y.copy(v.binormals[t]).multiplyScalar(n.y),x.copy(g[t]).add(b).add(y),O(x.x,x.y,x.z)):O(n.x,n.y,l/s*t)}for(let t=h-1;t>=0;t--){const e=t/h,n=u*Math.cos(e*Math.PI/2),r=d*Math.sin(e*Math.PI/2)+p;for(let t=0,i=C.length;t<i;t++){const e=T(C[t],N[t],r);O(e.x,e.y,l+n)}for(let t=0,i=k.length;t<i;t++){const e=k[t];D=I[t];for(let t=0,i=e.length;t<i;t++){const i=T(e[t],D[t],r);S?O(i.x,i.y+g[s-1].y,g[s-1].x+n):O(i.x,i.y,l+n)}}}function R(e,t){let n=e.length;for(;--n>=0;){const r=n;let i=n-1;i<0&&(i=e.length-1);for(let e=0,n=s+2*h;e<n;e++){const n=A*e,o=A*(e+1);F(t+r+n,t+i+n,t+i+o,t+r+o)}}}function O(e,t,n){o.push(e),o.push(t),o.push(n)}function z(e,t,i){B(e),B(t),B(i);const o=r.length/3,a=m.generateTopUV(n,r,o-3,o-2,o-1);U(a[0]),U(a[1]),U(a[2])}function F(e,t,i,o){B(e),B(t),B(o),B(t),B(i),B(o);const a=r.length/3,s=m.generateSideWallUV(n,r,a-6,a-3,a-2,a-1);U(s[0]),U(s[1]),U(s[3]),U(s[1]),U(s[2]),U(s[3])}function B(e){r.push(o[3*e+0]),r.push(o[3*e+1]),r.push(o[3*e+2])}function U(e){i.push(e.x),i.push(e.y)}!function(){const e=r.length/3;if(c){let e=0,t=A*e;for(let n=0;n<E;n++){const e=M[n];z(e[2]+t,e[1]+t,e[0]+t)}e=s+2*h,t=A*e;for(let n=0;n<E;n++){const e=M[n];z(e[0]+t,e[1]+t,e[2]+t)}}else{for(let e=0;e<E;e++){const t=M[e];z(t[2],t[1],t[0])}for(let e=0;e<E;e++){const t=M[e];z(t[0]+A*s,t[1]+A*s,t[2]+A*s)}}n.addGroup(e,r.length/3-e,0)}(),function(){const e=r.length/3;let t=0;R(C,t),t+=C.length;for(let n=0,r=k.length;n<r;n++){const e=k[n];R(e,t),t+=e.length}n.addGroup(e,r.length/3-e,1)}()}this.setAttribute("position",new yy(r,3)),this.setAttribute("uv",new yy(i,2)),this.computeVertexNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return function(e,t,n){if(n.shapes=[],Array.isArray(e))for(let r=0,i=e.length;r<i;r++){const t=e[r];n.shapes.push(t.uuid)}else n.shapes.push(e.uuid);n.options=Object.assign({},t),void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON());return n}(this.parameters.shapes,this.parameters.options,e)}static fromJSON(e,t){const n=[];for(let i=0,o=e.shapes.length;i<o;i++){const r=t[e.shapes[i]];n.push(r)}const r=e.options.extrudePath;return void 0!==r&&(e.options.extrudePath=(new C_[r.type]).fromJSON(r)),new gk(n,e.options)}}const vk={generateTopUV:function(e,t,n,r,i){const o=t[3*n],a=t[3*n+1],s=t[3*r],l=t[3*r+1],c=t[3*i],u=t[3*i+1];return[new og(o,a),new og(s,l),new og(c,u)]},generateSideWallUV:function(e,t,n,r,i,o){const a=t[3*n],s=t[3*n+1],l=t[3*n+2],c=t[3*r],u=t[3*r+1],d=t[3*r+2],p=t[3*i],h=t[3*i+1],f=t[3*i+2],m=t[3*o],g=t[3*o+1],v=t[3*o+2];return Math.abs(s-u)<Math.abs(a-c)?[new og(a,1-l),new og(c,1-d),new og(p,1-f),new og(m,1-v)]:[new og(s,1-l),new og(u,1-d),new og(h,1-f),new og(g,1-v)]}};class yk extends P_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=(1+Math.sqrt(5))/2;super([-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1],[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],e,t),this.type="IcosahedronGeometry",this.parameters={radiu
vendor: 11,419 bytes, line 2
2s:e,detail:t}}static fromJSON(e){return new yk(e.radius,e.detail)}}class bk extends P_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super([1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],e,t),this.type="OctahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new bk(e.radius,e.detail)}}class xk extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI;super(),this.type="RingGeometry",this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:r,thetaStart:i,thetaLength:o},n=Math.max(3,n),r=Math.max(1,r);const a=[],s=[],l=[],c=[];let u=e;const d=(t-e)/r,p=new Dg,h=new og;for(let f=0;f<=r;f++){for(let e=0;e<=n;e++){const r=i+e/n*o;p.x=u*Math.cos(r),p.y=u*Math.sin(r),s.push(p.x,p.y,p.z),l.push(0,0,1),h.x=(p.x/t+1)/2,h.y=(p.y/t+1)/2,c.push(h.x,h.y)}u+=d}for(let f=0;f<r;f++){const e=f*(n+1);for(let t=0;t<n;t++){const r=t+e,i=r,o=r+n+1,s=r+n+2,l=r+1;a.push(i,o,l),a.push(o,s,l)}}this.setIndex(a),this.setAttribute("position",new yy(s,3)),this.setAttribute("normal",new yy(l,3)),this.setAttribute("uv",new yy(c,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new xk(e.innerRadius,e.outerRadius,e.thetaSegments,e.phiSegments,e.thetaStart,e.thetaLength)}}class Sk extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new U_([new og(0,.5),new og(-.5,-.5),new og(.5,-.5)]),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;super(),this.type="ShapeGeometry",this.parameters={shapes:e,curveSegments:t};const n=[],r=[],i=[],o=[];let a=0,s=0;if(!1===Array.isArray(e))l(e);else for(let c=0;c<e.length;c++)l(e[c]),this.addGroup(a,s,c),a+=s,s=0;function l(e){const a=r.length/3,l=e.extractPoints(t);let c=l.shape;const u=l.holes;!1===hk.isClockWise(c)&&(c=c.reverse());for(let t=0,n=u.length;t<n;t++){const e=u[t];!0===hk.isClockWise(e)&&(u[t]=e.reverse())}const d=hk.triangulateShape(c,u);for(let t=0,n=u.length;t<n;t++){const e=u[t];c=c.concat(e)}for(let t=0,n=c.length;t<n;t++){const e=c[t];r.push(e.x,e.y,0),i.push(0,0,1),o.push(e.x,e.y)}for(let t=0,r=d.length;t<r;t++){const e=d[t],r=e[0]+a,i=e[1]+a,o=e[2]+a;n.push(r,i,o),s+=3}}this.setIndex(n),this.setAttribute("position",new yy(r,3)),this.setAttribute("normal",new yy(i,3)),this.setAttribute("uv",new yy(o,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return function(e,t){if(t.shapes=[],Array.isArray(e))for(let n=0,r=e.length;n<r;n++){const r=e[n];t.shapes.push(r.uuid)}else t.shapes.push(e.uuid);return t}(this.parameters.shapes,e)}static fromJSON(e,t){const n=[];for(let r=0,i=e.shapes.length;r<i;r++){const i=t[e.shapes[r]];n.push(i)}return new Sk(n,e.curveSegments)}}class wk extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Math.PI;super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:r,phiLength:i,thetaStart:o,thetaLength:a},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));const s=Math.min(o+a,Math.PI);let l=0;const c=[],u=new Dg,d=new Dg,p=[],h=[],f=[],m=[];for(let g=0;g<=n;g++){const p=[],v=g/n;let y=0;0===g&&0===o?y=.5/t:g===n&&s===Math.PI&&(y=-.5/t);for(let n=0;n<=t;n++){const s=n/t;u.x=-e*Math.cos(r+s*i)*Math.sin(o+v*a),u.y=e*Math.cos(o+v*a),u.z=e*Math.sin(r+s*i)*Math.sin(o+v*a),h.push(u.x,u.y,u.z),d.copy(u).normalize(),f.push(d.x,d.y,d.z),m.push(s+y,1-v),p.push(l++)}c.push(p)}for(let g=0;g<n;g++)for(let e=0;e<t;e++){const t=c[g][e+1],r=c[g][e],i=c[g+1][e],a=c[g+1][e+1];(0!==g||o>0)&&p.push(t,r,a),(g!==n-1||s<Math.PI)&&p.push(r,i,a)}this.setIndex(p),this.setAttribute("position",new yy(h,3)),this.setAttribute("normal",new yy(f,3)),this.setAttribute("uv",new yy(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new wk(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class _k extends P_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super([1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],e,t),this.type="TetrahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new _k(e.radius,e.detail)}}class kk extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:48,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI;super(),this.type="TorusGeometry",this.parameters={radius:e,tube:t,radialSegments:n,tubularSegments:r,arc:i},n=Math.floor(n),r=Math.floor(r);const o=[],a=[],s=[],l=[],c=new Dg,u=new Dg,d=new Dg;for(let p=0;p<=n;p++)for(let o=0;o<=r;o++){const h=o/r*i,f=p/n*Math.PI*2;u.x=(e+t*Math.cos(f))*Math.cos(h),u.y=(e+t*Math.cos(f))*Math.sin(h),u.z=t*Math.sin(f),a.push(u.x,u.y,u.z),c.x=e*Math.cos(h),c.y=e*Math.sin(h),d.subVectors(u,c).normalize(),s.push(d.x,d.y,d.z),l.push(o/r),l.push(p/n)}for(let p=1;p<=n;p++)for(let e=1;e<=r;e++){const t=(r+1)*p+e-1,n=(r+1)*(p-1)+e-1,i=(r+1)*(p-1)+e,a=(r+1)*p+e;o.push(t,n,a),o.push(n,i,a)}this.setIndex(o),this.setAttribute("position",new yy(a,3)),this.setAttribute("normal",new yy(s,3)),this.setAttribute("uv",new yy(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new kk(e.radius,e.tube,e.radialSegments,e.tubularSegments,e.arc)}}class Mk extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3;super(),this.type="TorusKnotGeometry",this.parameters={radius:e,tube:t,tubularSegments:n,radialSegments:r,p:i,q:o},n=Math.floor(n),r=Math.floor(r);const a=[],s=[],l=[],c=[],u=new Dg,d=new Dg,p=new Dg,h=new Dg,f=new Dg,m=new Dg,g=new Dg;for(let y=0;y<=n;++y){const a=y/n*i*Math.PI*2;v(a,i,o,e,p),v(a+.01,i,o,e,h),m.subVectors(h,p),g.addVectors(h,p),f.crossVectors(m,g),g.crossVectors(f,m),f.normalize(),g.normalize();for(let e=0;e<=r;++e){const i=e/r*Math.PI*2,o=-t*Math.cos(i),a=t*Math.sin(i);u.x=p.x+(o*g.x+a*f.x),u.y=p.y+(o*g.y+a*f.y),u.z=p.z+(o*g.z+a*f.z),s.push(u.x,u.y,u.z),d.subVectors(u,p).normalize(),l.push(d.x,d.y,d.z),c.push(y/n),c.push(e/r)}}for(let y=1;y<=n;y++)for(let e=1;e<=r;e++){const t=(r+1)*(y-1)+(e-1),n=(r+1)*y+(e-1),i=(r+1)*y+e,o=(r+1)*(y-1)+e;a.push(t,n,o),a.push(n,i,o)}function v(e,t,n,r,i){const o=Math.cos(e),a=Math.sin(e),s=n/t*e,l=Math.cos(s);i.x=r*(2+l)*.5*o,i.y=r*(2+l)*a*.5,i.z=r*Math.sin(s)*.5}this.setIndex(a),this.setAttribute("position",new yy(s,3)),this.setAttribute("normal",new yy(l,3)),this.setAttribute("uv",new yy(c,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Mk(e.radius,e.tube,e.tubularSegments,e.radialSegments,e.p,e.q)}}class Ck extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new k_(new Dg(-1,-1,0),new Dg(-1,1,0),new Dg(1,1,0)),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];super(),this.type="TubeGeometry",this.parameters={path:e,tubularSegments:t,radius:n,radialSegments:r,closed:i};const o=e.computeFrenetFrames(t,i);this.tangents=o.tangents,this.normals=o.normals,this.binormals=o.binormals;const a=new Dg,s=new Dg,l=new og;let c=new Dg;const u=[],d=[],p=[],h=[];function f(i){c=e.getPointAt(i/t,c);const l=o.normals[i],p=o.binormals[i];for(let e=0;e<=r;e++){const t=e/r*Math.PI*2,i=Math.sin(t),o=-Math.cos(t);s.x=o*l.x+i*p.x,s.y=o*l.y+i*p.y,s.z=o*l.z+i*p.z,s.normalize(),d.push(s.x,s.y,s.z),a.x=c.x+n*s.x,a.y=c.y+n*s.y,a.z=c.z+n*s.z,u.push(a.x,a.y,a.z)}}!function(){for(let e=0;e<t;e++)f(e);f(!1===i?t:0),function(){for(let e=0;e<=t;e++)for(let n=0;n<=r;n++)l.x=e/t,l.y=n/r,p.push(l.x,l.y)}(),function(){for(let e=1;e<=t;e++)for(let t=1;t<=r;t++){const n=(r+1)*(e-1)+(t-1),i=(r+1)*e+(t-1),o=(r+1)*e+t,a=(r+1)*(e-1)+t;h.push(n,i,a),h.push(i,o,a)}}()}(),this.setIndex(h),this.setAttribute("position",new yy(u,3)),this.setAttribute("normal",new yy(d,3)),this.setAttribute("uv",new yy(p,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return e.path=this.parameters.path.toJSON(),e}static fromJSON(e){return new Ck((new C_[e.path.type]).fromJSON(e.path),e.tubularSegments,e.radius,e.radialSegments,e.closed)}}class Tk extends Ty{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(super(),this.type="WireframeGeometry",this.parameters={geometry:e},null!==e){const t=[],n=new Set,r=new Dg,i=new Dg;if(null!==e.index){const o=e.attributes.position,a=e.index;let s=e.groups;0===s.length&&(s=[{start:0,count:a.count,materialIndex:0}]);for(let e=0,l=s.length;e<l;++e){const l=s[e],c=l.start;for(let e=c,s=c+l.count;e<s;e+=3)for(let l=0;l<3;l++){const s=a.getX(e+l),c=a.getX(e+(l+1)%3);r.fromBufferAttribute(o,s),i.fromBufferAttribute(o,c),!0===Ak(r,i,n)&&(t.push(r.x,r.y,r.z),t.push(i.x,i.y,i.z))}}}else{const o=e.attributes.position;for(let e=0,a=o.count/3;e<a;e++)for(let s=0;s<3;s++){const a=3*e+s,l=3*e+(s+1)%3;r.fromBufferAttribute(o,a),i.fromBufferAttribute(o,l),!0===Ak(r,i,n)&&(t.push(r.x,r.y,r.z),t.push(i.x,i.y,i.z))}}this.setAttribute("position",new yy(t,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}}function Ak(e,t,n){const r="".concat(e.x,",").concat(e.y,",").concat(e.z,"-").concat(t.x,",").concat(t.y,",").concat(t.z),i="".concat(t.x,",").concat(t.y,",").concat(t.z,"-").concat(e.x,",").concat(e.y,",").concat(e.z);return!0!==n.has(r)&&!0!==n.has(i)&&(n.add(r),n.add(i),!0)}var Ek=Object.freeze({__proto__:null,BoxGeometry:Ky,CapsuleGeometry:j_,CircleGeometry:N_,ConeGeometry:D_,CylinderGeometry:I_,DodecahedronGeometry:L_,EdgesGeometry:B_,ExtrudeGeometry:gk,IcosahedronGeometry:yk,LatheGeometry:E_,OctahedronGeometry:bk,PlaneGeometry:fb,PolyhedronGeometry:P_,RingGeometry:xk,ShapeGeometry:Sk,SphereGeometry:wk,TetrahedronGeometry:_k,TorusGeometry:kk,TorusKnotGeometry:Mk,TubeGeometry:Ck,WireframeGeometry:Tk});
vendor: 10,541 bytes, line 2
2class jk extends Yv{constructor(e){super(),this.isShadowMaterial=!0,this.type="ShadowMaterial",this.color=new $v(0),this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.fog=e.fog,this}}class Nk extends Jy{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type="RawShaderMaterial"}}class Ik extends Yv{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new $v(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $v(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=um,this.normalScale=new og(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Dk extends Ik{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new og(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Zm(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new $v(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new $v(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new $v(1,1,1),this.specularColorMap=null,this._sheen=0,this._clearcoat=0,this._iridescence=0,this._transmission=0,this.setValues(e)}get sheen(){return this._sheen}set sheen(e){this._sheen>0!==e>0&&this.version++,this._sheen=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!==e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!==e>0&&this.version++,this._iridescence=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!==e>0&&this.version++,this._transmission=e}copy(e){return super.copy(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.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,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}}class Pk extends Yv{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new $v(16777215),this.specular=new $v(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $v(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=um,this.normalScale=new og(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=bh,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.fog=e.fog,this}}class Lk extends Yv{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new $v(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $v(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=um,this.normalScale=new og(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.fog=e.fog,this}}class Rk extends Yv{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=um,this.normalScale=new og(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(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}}class Ok extends Yv{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new $v(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new $v(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=um,this.normalScale=new og(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=bh,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.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.fog=e.fog,this}}
vendor: 14,735 bytes, line 2
2class zk extends Yv{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new $v(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=um,this.normalScale=new og(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(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.fog=e.fog,this}}class Fk extends zw{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function Bk(e,t,n){return Hk(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)}function Uk(e,t,n){return!e||!n&&e.constructor===t?e:"number"===typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function Hk(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Wk(e){const t=e.length,n=new Array(t);for(let r=0;r!==t;++r)n[r]=r;return n.sort(function(t,n){return e[t]-e[n]}),n}function Vk(e,t,n){const r=e.length,i=new e.constructor(r);for(let o=0,a=0;a!==r;++o){const r=n[o]*t;for(let n=0;n!==t;++n)i[a++]=e[r+n]}return i}function Gk(e,t,n,r){let i=1,o=e[0];for(;void 0!==o&&void 0===o[r];)o=e[i++];if(void 0===o)return;let a=o[r];if(void 0!==a)if(Array.isArray(a))do{a=o[r],void 0!==a&&(t.push(o.time),n.push.apply(n,a)),o=e[i++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[r],void 0!==a&&(t.push(o.time),a.toArray(n,n.length)),o=e[i++]}while(void 0!==o);else do{a=o[r],void 0!==a&&(t.push(o.time),n.push(a)),o=e[i++]}while(void 0!==o)}const qk={arraySlice:Bk,convertArray:Uk,isTypedArray:Hk,getKeyframeOrder:Wk,sortedArray:Vk,flattenJSON:Gk,subclip:function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:30;const o=e.clone();o.name=t;const a=[];for(let l=0;l<o.tracks.length;++l){const e=o.tracks[l],t=e.getValueSize(),s=[],c=[];for(let o=0;o<e.times.length;++o){const a=e.times[o]*i;if(!(a<n||a>=r)){s.push(e.times[o]);for(let n=0;n<t;++n)c.push(e.values[o*t+n])}}0!==s.length&&(e.times=Uk(s,e.times.constructor),e.values=Uk(c,e.values.constructor),a.push(e))}o.tracks=a;let s=1/0;for(let l=0;l<o.tracks.length;++l)s>o.tracks[l].times[0]&&(s=o.tracks[l].times[0]);for(let l=0;l<o.tracks.length;++l)o.tracks[l].shift(-1*s);return o.resetDuration(),o},makeClipAdditive:function(e){let 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);const i=n.tracks.length,o=t/r;for(let a=0;a<i;++a){const t=n.tracks[a],r=t.ValueTypeName;if("bool"===r||"string"===r)continue;const i=e.tracks.find(function(e){return e.name===t.name&&e.ValueTypeName===r});if(void 0===i)continue;let s=0;const l=t.getValueSize();t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(s=l/3);let c=0;const u=i.getValueSize();i.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(c=u/3);const d=t.times.length-1;let p;if(o<=t.times[0]){const e=s,n=l-s;p=Bk(t.values,e,n)}else if(o>=t.times[d]){const e=d*l+s,n=e+l-s;p=Bk(t.values,e,n)}else{const e=t.createInterpolant(),n=s,r=l-s;e.evaluate(o),p=Bk(e.resultBuffer,n,r)}if("quaternion"===r){(new Ig).fromArray(p).normalize().conjugate().toArray(p)}const h=i.times.length;for(let e=0;e<h;++e){const t=e*u+c;if("quaternion"===r)Ig.multiplyQuaternionsFlat(i.values,t,p,0,i.values,t);else{const e=u-2*c;for(let n=0;n<e;++n)i.values[t+n]-=p[n]}}}return e.blendMode=nm,e}};class Kk{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,r=t[n],i=t[n-1];e:{t:{let o;n:{r:if(!(e<r)){for(let o=n+2;;){if(void 0===r){if(e<i)break r;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===o)break;if(i=r,r=t[++n],e<r)break t}o=t.length;break n}if(!(e>=i)){const a=t[1];e<a&&(n=2,i=a);for(let o=n-2;;){if(void 0===i)return this._cachedIndex=0,this.copySampleValue_(0);if(n===o)break;if(r=i,i=t[--n-1],e>=i)break t}o=n,n=0;break n}break e}for(;n<o;){const r=n+o>>>1;e<t[r]?o=r:n=r+1}if(r=t[n],i=t[n-1],void 0===i)return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===r)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let o=0;o!==r;++o)t[o]=n[i+o];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class Yk extends Kk{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:Jf,endingEnd:Jf}}intervalChanged_(e,t,n){const r=this.parameterPositions;let i=e-2,o=e+1,a=r[i],s=r[o];if(void 0===a)switch(this.getSettings_().endingStart){case $f:i=e,a=2*t-n;break;case em:i=r.length-2,a=t+r[i]-r[i+1];break;default:i=e,a=n}if(void 0===s)switch(this.getSettings_().endingEnd){case $f:o=e,s=2*n-t;break;case em:o=1,s=n+r[1]-r[0];break;default:o=e-1,s=t}const l=.5*(n-t),c=this.valueSize;this._weightPrev=l/(t-a),this._weightNext=l/(s-n),this._offsetPrev=i*c,this._offsetNext=o*c}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=e*a,l=s-a,c=this._offsetPrev,u=this._offsetNext,d=this._weightPrev,p=this._weightNext,h=(n-t)/(r-t),f=h*h,m=f*h,g=-d*m+2*d*f-d*h,v=(1+d)*m+(-1.5-2*d)*f+(-.5+d)*h+1,y=(-1-p)*m+(1.5+p)*f+.5*h,b=p*m-p*f;for(let x=0;x!==a;++x)i[x]=g*o[c+x]+v*o[l+x]+y*o[s+x]+b*o[u+x];return i}}class Xk extends Kk{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=e*a,l=s-a,c=(n-t)/(r-t),u=1-c;for(let d=0;d!==a;++d)i[d]=o[l+d]*u+o[s+d]*c;return i}}class Zk extends Kk{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}}class Qk{constructor(e,t,n,r){if(void 0===e)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=Uk(t,this.TimeBufferType),this.values=Uk(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:Uk(e.times,Array),values:Uk(e.values,Array)};const t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new Zk(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new Xk(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new Yk(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case Xf:t=this.InterpolantFactoryMethodDiscrete;break;case Zf:t=this.InterpolantFactoryMethodLinear;break;case Qf:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){const t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(t);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Xf;case this.InterpolantFactoryMethodLinear:return Zf;case this.InterpolantFactoryMethodSmooth:return Qf}}getValueSize(){return this.values.length/this.times.length}shift(e){if(0!==e){const t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e}return this}scale(e){if(1!==e){const t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e}return this}trim(e,t){const n=this.times,r=n.length;let i=0,o=r-1;for(;i!==r&&n[i]<e;)++i;for(;-1!==o&&n[o]>t;)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const e=this.getValueSize();this.times=Bk(n,i,o),this.values=Bk(this.values,i*e,o*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==i;a++){const t=n[a];if("number"===typeof t&&isNaN(t)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,t),e=!1;break}if(null!==o&&o>t){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,t,o),e=!1;break}o=t}if(void 0!==r&&Hk(r))for(let a=0,s=r.length;a!==s;++a){const t=r[a];if(isNaN(t)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,t),e=!1;break}}return e}optimize(){const e=Bk(this.times),t=Bk(this.values),n=this.getValueSize(),r=this.getInterpolation()===Qf,i=e.length-1;let o=1;for(let a=1;a<i;++a){let i=!1;const s=e[a];if(s!==e[a+1]&&(1!==a||s!==e[0]))if(r)i=!0;else{const e=a*n,r=e-n,o=e+n;for(let a=0;a!==n;++a){const n=t[e+a];if(n!==t[r+a]||n!==t[o+a]){i=!0;break}}}if(i){if(a!==o){e[o]=e[a];const r=a*n,i=o*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++o}}if(i>0){e[o]=e[i];for(let e=i*n,r=o*n,a=0;a!==n;++a)t[r+a]=t[e+a];++o}return o!==e.length?(this.times=Bk(e,0,o),this.values=Bk(t,0,o*n)):(this.times=e,this.values=t),this}clone(){const e=Bk(this.times,0),t=Bk(this.values,0),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}Qk.prototype.TimeBufferType=Float32Array,Qk.prototype.ValueBufferType=Float32Array,Qk.prototype.DefaultInterpolation=Zf;class Jk extends Qk{}Jk.prototype.ValueTypeName="bool",Jk.prototype.ValueBufferType=Array,Jk.prototype.DefaultInterpolation=Xf,Jk.prototype.InterpolantFactoryMethodLinear=void 0,Jk.prototype.InterpolantFactoryMethodSmooth=void 0;class $k extends Qk{}$k.prototype.ValueTypeName="color";class eM extends Qk{}eM.prototype.ValueTypeName="number";class tM extends Kk{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-t)/(r-t);let l=e*a;for(let c=l+a;l!==c;l+=4)Ig.slerpFlat(i,0,o,l-a,o,l,s);return i}}class nM extends Qk{InterpolantFactoryMethodLinear(e){return new tM(this.times,this.values,this.getValueSize(),e)}}nM.prototype.ValueTypeName="quaternion",nM.prototype.DefaultInterpolation=Zf,nM.prototype.InterpolantFactoryMethodSmooth=void 0;class rM extends Qk{}rM.prototype.ValueTypeName="string",rM.prototype.ValueBufferType=Array,rM.prototype.DefaultInterpolation=Xf,rM.prototype.InterpolantFactoryMethodLinear=void 0,rM.prototype.InterpolantFactoryMethodSmooth=void 0;class iM extends Qk{}iM.prototype.ValueTypeName="vector";class oM{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tm;this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Xm(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let o=0,a=n.length;o!==a;++o)t.push(aM(n[o]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let i=0,o=n.length;i!==o;++i)t.push(Qk.toJSON(n[i]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,o=[];for(let a=0;a<i;a++){let e=[],s=[];e.push((a+i-1)%i,a,(a+1)%i),s.push(0,1,0);const l=Wk(e);e=Vk(e,1,l),s=Vk(s,1,l),r||0!==e[0]||(e.push(i),s.push(s[0])),o.push(new eM(".morphTargetInfluences["+t[a].name+"]",e,s).scale(1/n))}return new this(e,-1,o)}static findByName(e,t){let n=e;if(!Array.isArray(e)){const t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let r=0;r<n.length;r++)if(n[r].name===t)return n[r];return null}static CreateClipsFromMorphTargetSequences(e,t,n){const r={},i=/^([\w-]*?)([\d]+)$/;for(let a=0,s=e.length;a<s;a++){const t=e[a],n=t.name.match(i);if(n&&n.length>1){const e=n[1];let i=r[e];i||(r[e]=i=[]),i.push(t)}}const o=[];for(const a in r)o.push(this.CreateFromMorphTargetSequence(a,r[a],t,n));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,r,i){if(0!==n.length){const o=[],a=[];Gk(n,o,a,r),0!==o.length&&i.push(new e(t,o,a))}},r=[],i=e.name||"default",o=e.fps||30,a=e.blendMode;let s=e.length||-1;const l=e.hierarchy||[];for(let c=0;c<l.length;c++){const e=l[c].keys;if(e&&0!==e.length)if(e[0].morphTargets){const t={};let n;for(n=0;n<e.length;n++)if(e[n].morphTargets)for(let r=0;r<e[n].morphTargets.length;r++)t[e[n].morphTargets[r]]=-1;for(const i in t){const t=[],o=[];for(let r=0;r!==e[n].morphTargets.length;++r){const r=e[n];t.push(r.time),o.push(r.morphTarget===i?1:0)}r.push(new eM(".morphTargetInfluence["+i+"]",t,o))}s=t.length*o}else{const i=".bones["+t[c].name+"]";n(iM,i+".position",e,"pos",r),n(nM,i+".quaternion",e,"rot",r),n(iM,i+".scale",e,"scl",r)}}if(0===r.length)return null;return new this(i,s,r,a)}resetDuration(){let e=0;for(let t=0,n=this.tracks.length;t!==n;++t){const n=this.tracks[t];e=Math.max(e,n.times[n.times.length-1])}return this.duration=e,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function aM(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return eM;
2case"vector":case"vector2":case"vector3":case"vector4":return iM;case"color":return $k;case"quaternion":return nM;case"bool":case"boolean":return Jk;case"string":return rM}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){const t=[],n=[];Gk(e.keys,t,n,"value"),e.times=t,e.values=n}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}const sM={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={}}};class lM{constructor(e,t,n){const r=this;let i,o=!1,a=0,s=0;const l=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){s++,!1===o&&void 0!==r.onStart&&r.onStart(e,a,s),o=!0},this.itemEnd=function(e){a++,void 0!==r.onProgress&&r.onProgress(e,a,s),a===s&&(o=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return i?i(e):e},this.setURLModifier=function(e){return i=e,this},this.addHandler=function(e,t){return l.push(e,t),this},this.removeHandler=function(e){const t=l.indexOf(e);return-1!==t&&l.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=l.length;t<n;t+=2){const n=l[t],r=l[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return r}return null}}}const cM=new lM;class uM{constructor(e){this.manager=void 0!==e?e:cM,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise(function(r,i){n.load(e,r,t,i)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}const dM={};class pM extends Error{constructor(e,t){super(e),this.response=t}}class hM extends uM{constructor(e){super(e)}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=sM.get(e);if(void 0!==i)return this.manager.itemStart(e),setTimeout(()=>{t&&t(i),this.manager.itemEnd(e)},0),i;if(void 0!==dM[e])return void dM[e].push({onLoad:t,onProgress:n,onError:r});dM[e]=[],dM[e].push({onLoad:t,onProgress:n,onError:r});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,s=this.responseType;fetch(o).then(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||void 0===t.body.getReader)return t;const n=dM[e],r=t.body.getReader(),i=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),o=i?parseInt(i):0,a=0!==o;let s=0;const l=new ReadableStream({start(e){!function t(){r.read().then(r=>{let{done:i,value:l}=r;if(i)e.close();else{s+=l.byteLength;const r=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o});for(let e=0,t=n.length;e<t;e++){const t=n[e];t.onProgress&&t.onProgress(r)}e.enqueue(l),t()}})}()}});return new Response(l)}throw new pM('fetch for "'.concat(t.url,'" responded with ').concat(t.status,": ").concat(t.statusText),t)}).then(e=>{switch(s){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then(e=>(new DOMParser).parseFromString(e,a));case"json":return e.json();default:if(void 0===a)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(a),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{sM.add(e,t);const n=dM[e];delete dM[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];r.onLoad&&r.onLoad(t)}}).catch(t=>{const n=dM[e];if(void 0===n)throw this.manager.itemError(e),t;delete dM[e];for(let e=0,r=n.length;e<r;e++){const r=n[e];r.onError&&r.onError(t)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class fM extends uM{constructor(e){super(e)}load(e,t,n,r){const i=this,o=new hM(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(dO){r?r(dO):console.error(dO),i.manager.itemError(e)}},n,r)}parse(e){const t=[];for(let n=0;n<e.length;n++){const r=oM.parse(e[n]);t.push(r)}return t}}class mM extends uM{constructor(e){super(e)}load(e,t,n,r){const i=this,o=[],a=new i_,s=new hM(this.manager);s.setPath(this.path),s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setWithCredentials(i.withCredentials);let l=0;function c(c){s.load(e[c],function(e){const n=i.parse(e,!0);o[c]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},l+=1,6===l&&(1===n.mipmapCount&&(a.minFilter=Hh),a.image=o,a.format=n.format,a.needsUpdate=!0,t&&t(a))},n,r)}if(Array.isArray(e))for(let u=0,d=e.length;u<d;++u)c(u);else s.load(e,function(e){const n=i.parse(e,!0);if(n.isCubemap){const e=n.mipmaps.length/n.mipmapCount;for(let t=0;t<e;t++){o[t]={mipmaps:[]};for(let e=0;e<n.mipmapCount;e++)o[t].mipmaps.push(n.mipmaps[t*n.mipmapCount+e]),o[t].format=n.format,o[t].width=n.width,o[t].height=n.height}a.image=o}else a.image.width=n.width,a.image.height=n.height,a.mipmaps=n.mipmaps;1===n.mipmapCount&&(a.minFilter=Hh),a.format=n.format,a.needsUpdate=!0,t&&t(a)},n,r);return a}}class gM extends uM{constructor(e){super(e)}load(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=sM.get(e);if(void 0!==o)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;const a=dg("img");function s(){c(),sM.add(e,this),t&&t(this),i.manager.itemEnd(e)}function l(t){c(),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}function c(){a.removeEventListener("load",s,!1),a.removeEventListener("error",l,!1)}return a.addEventListener("load",s,!1),a.addEventListener("error",l,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),i.manager.itemStart(e),a.src=e,a}}class vM extends uM{constructor(e){super(e)}load(e,t,n,r){const i=new rb,o=new gM(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);let a=0;function s(n){o.load(e[n],function(e){i.images[n]=e,a++,6===a&&(i.needsUpdate=!0,t&&t(i))},void 0,r)}for(let l=0;l<e.length;++l)s(l);return i}}class yM extends uM{constructor(e){super(e)}load(e,t,n,r){const i=this,o=new Mw,a=new hM(this.manager);return a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setPath(this.path),a.setWithCredentials(i.withCredentials),a.load(e,function(e){const n=i.parse(e);n&&(void 0!==n.image?o.image=n.image:void 0!==n.data&&(o.image.width=n.width,o.image.height=n.height,o.image.data=n.data),o.wrapS=void 0!==n.wrapS?n.wrapS:Lh,o.wrapT=void 0!==n.wrapT?n.wrapT:Lh,o.magFilter=void 0!==n.magFilter?n.magFilter:Hh,o.minFilter=void 0!==n.minFilter?n.minFilter:Hh,o.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.encoding&&(o.encoding=n.encoding),void 0!==n.flipY&&(o.flipY=n.flipY),void 0!==n.format&&(o.format=n.format),void 0!==n.t
vendor: 5,663 bytes, line 2
2ype&&(o.type=n.type),void 0!==n.mipmaps&&(o.mipmaps=n.mipmaps,o.minFilter=Gh),1===n.mipmapCount&&(o.minFilter=Hh),void 0!==n.generateMipmaps&&(o.generateMipmaps=n.generateMipmaps),o.needsUpdate=!0,t&&t(o,n))},n,r),o}}class bM extends uM{constructor(e){super(e)}load(e,t,n,r){const i=new kg,o=new gM(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(e){i.image=e,i.needsUpdate=!0,void 0!==t&&t(i)},n,r),i}}class xM extends Pv{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;super(),this.isLight=!0,this.type="Light",this.color=new $v(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}class SM extends xM{constructor(e,t,n){super(e,n),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(Pv.DEFAULT_UP),this.updateMatrix(),this.groundColor=new $v(t)}copy(e,t){return super.copy(e,t),this.groundColor.copy(e.groundColor),this}}const wM=new cv,_M=new Dg,kM=new Dg;class MM{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new og(512,512),this.map=null,this.mapPass=null,this.matrix=new cv,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new db,this._frameExtents=new og(1,1),this._viewportCount=1,this._viewports=[new Mg(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;_M.setFromMatrixPosition(e.matrixWorld),t.position.copy(_M),kM.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(kM),t.updateMatrixWorld(),wM.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(wM),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(wM)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const 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}}class CM extends MM{constructor(){super(new eb(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=2*Ym*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=e.distance||t.far;n===t.fov&&r===t.aspect&&i===t.far||(t.fov=n,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class TM extends xM{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.PI/3,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2;super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Pv.DEFAULT_UP),this.updateMatrix(),this.target=new Pv,this.distance=n,this.angle=r,this.penumbra=i,this.decay=o,this.map=null,this.shadow=new CM}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),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}}const AM=new cv,EM=new Dg,jM=new Dg;class NM extends MM{constructor(){super(new eb(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new og(4,2),this._viewportCount=6,this._viewports=[new Mg(2,1,1,1),new Mg(0,1,1,1),new Mg(3,1,1,1),new Mg(1,1,1,1),new Mg(3,0,1,1),new Mg(1,0,1,1)],this._cubeDirections=[new Dg(1,0,0),new Dg(-1,0,0),new Dg(0,0,1),new Dg(0,0,-1),new Dg(0,1,0),new Dg(0,-1,0)],this._cubeUps=[new Dg(0,1,0),new Dg(0,1,0),new Dg(0,1,0),new Dg(0,1,0),new Dg(0,0,1),new Dg(0,0,-1)]}updateMatrices(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.camera,r=this.matrix,i=e.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),EM.setFromMatrixPosition(e.matrixWorld),n.position.copy(EM),jM.copy(n.position),jM.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(jM),n.updateMatrixWorld(),r.makeTranslation(-EM.x,-EM.y,-EM.z),AM.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(AM)}}class IM extends xM{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new NM}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class DM extends MM{constructor(){super(new Mb(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}
2}class PM extends xM{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Pv.DEFAULT_UP),this.updateMatrix(),this.target=new Pv,this.shadow=new DM}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class LM extends xM{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class RM extends xM{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;super(e,t),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=n,this.height=r}get power(){return this.intensity*this.width*this.height*Math.PI}set power(e){this.intensity=e/(this.width*this.height*Math.PI)}copy(e){return super.copy(e),this.width=e.width,this.height=e.height,this}toJSON(e){const t=super.toJSON(e);return t.object.width=this.width,t.object.height=this.height,t}}class OM{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new Dg)}set(e){for(let t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}getAt(e,t){const n=e.x,r=e.y,i=e.z,o=this.coefficients;return t.copy(o[0]).multiplyScalar(.282095),t.addScaledVector(o[1],.488603*r),t.addScaledVector(o[2],.488603*i),t.addScaledVector(o[3],.488603*n),t.addScaledVector(o[4],n*r*1.092548),t.addScaledVector(o[5],r*i*1.092548),t.addScaledVector(o[6],.315392*(3*i*i-1)),t.addScaledVector(o[7],n*i*1.092548),t.addScaledVector(o[8],.546274*(n*n-r*r)),t}getIrradianceAt(e,t){const n=e.x,r=e.y,i=e.z,o=this.coefficients;return t.copy(o[0]).multiplyScalar(.886227),t.addScaledVector(o[1],1.023328*r),t.addScaledVector(o[2],1.023328*i),t.addScaledVector(o[3],1.023328*n),t.addScaledVector(o[4],.858086*n*r),t.addScaledVector(o[5],.858086*r*i),t.addScaledVector(o[6],.743125*i*i-.247708),t.addScaledVector(o[7],.858086*n*i),t.addScaledVector(o[8],.429043*(n*n-r*r)),t}add(e){for(let t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}addScaledSH(e,t){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}scale(e){for(let t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}lerp(e,t){for(let n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}equals(e){for(let t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.coefficients;for(let r=0;r<9;r++)n[r].fromArray(e,t+3*r);return this}toArray(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.coefficients;for(let r=0;r<9;r++)n[r].toArray(e,t+3*r);return e}static getBasisAt(e,t){const 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)}}class zM extends xM{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new OM;super(void 0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),this.isLightProbe=!0,this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}fromJSON(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}toJSON(e){const t=super.toJSON(e);return t.object.sh=this.sh.toArray(),t}}class FM extends uM{constructor(e){super(e),this.textures={}}load(e,t,n,r){const i=this,o=new hM(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(dO){r?r(dO):console.error(dO),i.manager.itemError(e)}},n,r)}parse(e){const t=this.textures;function n(e){return void 0===t[e]&&console.warn("THREE.MaterialLoader: Undefined texture",e),t[e]}const r=FM.createMaterialFromType(e.type);if(void 0!==e.uuid&&(r.uuid=e.uuid),void 0!==e.name&&(r.name=e.name),void 0!==e.color&&void 0!==r.color&&r.color.setHex(e.color),void 0!==e.roughness&&(r.roughness=e.roughness),void 0!==e.metalness&&(r.metalness=e.metalness),void 0!==e.sheen&&(r.sheen=e.sheen),void 0!==e.sheenColor&&(r.sheenColor=(new $v).setHex(e.sheenColor)),void 0!==e.sheenRoughness&&(r.sheenRoughness=e.sheenRoughness),void 0!==e.emissive&&void 0!==r.emissive&&r.emissive.setHex(e.emissive),void 0!==e.specular&&void 0!==r.specular&&r.specular.setHex(e.specular),void 0!==e.specularIntensity&&(r.specularIntensity=e.specularIntensity),void 0!==e.specularColor&&void 0!==r.specularColor&&r.specularColor.setHex(e.specularColor),void 0!==e.shininess&&(r.shininess=e.shininess),void 0!==e.clearcoat&&(r.clearcoat=e.clearcoat),void 0!==e.clearcoatRoughness&&(r.clearcoatRoughness=e.clearcoatRoughness),void 0!==e.iridescence&&(r.iridescence=e.iridescence),void 0!==e.iridescenceIOR&&(r.iridescenceIOR=e.iridescenceIOR),void 0!==e.iridescenceThicknessRange&&(r.iridescenceThicknessRange=e.iridescenceThicknessRange),void 0!==e.transmission&&(r.transmission=e.transmission),void 0!==e.thickness&&(r.thickness=e.thickness),void 0!==e.attenuationDistance&&(r.attenuationDistance=e.attenuationDistance),void 0!==e.attenuationColor&&void 0!==r.attenuationColor&&r.attenuationColor.setHex(e.attenuationColor),void 0!==e.fog&&(r.fog=e.fog),void 0!==e.flatShading&&(r.flatShading=e.flatShading),void 0!==e.blending&&(r.blending=e.blending),void 0!==e.combine&&(r.combine=e.combine),void 0!==e.side&&(r.side=e.side),void 0!==e.shadowSide&&(r.shadowSide=e.shadowSide),void 0!==e.opacity&&(r.opacity=e.opacity),void 0!==e.transparent&&(r.transparent=e.transparent),void 0!==e.alphaTest&&(r.alphaTest=e.alphaTest),void 0!==e.depthTest&&(r.depthTest=e.depthTest),void 0!==e.depthWrite&&(r.depthWrite=e.depthWrite),void 0!==e.colorWrite&&(r.colorWrite=e.colorWrite),void 0!==e.stencilWrite&&(r.stencilWrite=e.stencilWrite),void 0!==e.stencilWriteMask&&(r.stencilWriteMask=e.stencilWriteMask),void 0!==e.stencilFunc&&(r.stencilFunc=e.stencilFunc),void 0!==e.stencilRef&&(r.stencilRef=e.stencilRef),void 0!==e.stencilFuncMask&&(r.stencilFuncMask=e.stencilFuncMask),void 0!==e.stencilFail&&(r.stencilFail=e.stencilFail),void 0!==e.stencilZFail&&(r.stencilZFail=e.stencilZFail),void 0!==e.stencilZPass&&(r.stencilZPass=e.stencilZPass),void 0!==e.wireframe&&(r.wireframe=e.wireframe),void 0!==e.wireframeLinewidth&&(r.wireframeLinewidth=e.wireframeLinewidth),void 0!==e.wireframeLinecap&&(r.wireframeLinecap=e.wireframeLinecap),void 0!==e.wireframeLinejoin&&(r.wireframeLinejoin=e.wireframeLinejoin),void 0!==e.rotation&&(r.rotation=e.rotation),1!==e.linewidth&&(r.linewidth=e.linewidth),void 0!==e.dashSize&&(r.dashSize=e.dashSize),void 0!==e.gapSize&&(r.gapSize=e.gapSize),void 0!==e.scale&&(r.scale=e.scale),void 0!==e.polygonOffset&&(r.polygonOffset=e.polygonOffset),void 0!==e.polygonOffsetFactor&&(r.polygonOffsetFactor=e.polygonOffsetFactor),void 0!==e.polygonOffsetUnits&&(r.polygonOffsetUnits=e.polygonOffsetUnits),void 0!==e.dithering&&(r.dithering=e.dithering),void 0!==e.alphaToCoverage&&(r.alphaToCoverage=e.alphaToCoverage),void 0!==e.premultipliedAlpha&&(r.premultipliedAlpha=e.premultipliedAlpha),void 0!==e.forceSinglePass&&(r.forceSinglePass=e.forceSinglePass),void 0!==e.visible&&(r.visible=e.visible),void 0!==e.toneMapped&&(r.toneMapped=e.toneMapped),void 0!==e.userData&&(r.userData=e.userData),void 0!==e.vertexColors&&("number"===typeof e.vertexColors?r.vertexColors=e.vertexColors>0:r.vertexColors=e.vertexColors),void 0!==e.uniforms)for(const i in e.uniforms){const t=e.uniforms[i];switch(r.uniforms[i]={},t.type){case"t":r.uniforms[i].value=n(t.value);break;case"c":r.uniforms[i].value=(new $v).setHex(t.value);break;case"v2":r.uniforms[i].value=(new og).fromArray(t.value);break;case"v3":r.uniforms[i].value=(new Dg).fromArray(t.value);break;case"v4":r.uniforms[i].value=(new Mg).fromArray(t.value);break;case"m3":r.uniforms[i].value=(new ag).fromArray(t.value);break;
vendor: 13,557 bytes, line 2
2case"m4":r.uniforms[i].value=(new cv).fromArray(t.value);break;default:r.uniforms[i].value=t.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.glslVersion&&(r.glslVersion=e.glslVersion),void 0!==e.extensions)for(const i in e.extensions)r.extensions[i]=e.extensions[i];if(void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap)),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){let t=e.normalScale;!1===Array.isArray(t)&&(t=[t,t]),r.normalScale=(new og).fromArray(t)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.specularIntensityMap&&(r.specularIntensityMap=n(e.specularIntensityMap)),void 0!==e.specularColorMap&&(r.specularColorMap=n(e.specularColorMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatMap&&(r.clearcoatMap=n(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new og).fromArray(e.clearcoatNormalScale)),void 0!==e.iridescenceMap&&(r.iridescenceMap=n(e.iridescenceMap)),void 0!==e.iridescenceThicknessMap&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),void 0!==e.transmissionMap&&(r.transmissionMap=n(e.transmissionMap)),void 0!==e.thicknessMap&&(r.thicknessMap=n(e.thicknessMap)),void 0!==e.sheenColorMap&&(r.sheenColorMap=n(e.sheenColorMap)),void 0!==e.sheenRoughnessMap&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){return new{ShadowMaterial:jk,SpriteMaterial:JS,RawShaderMaterial:Nk,ShaderMaterial:Jy,PointsMaterial:Xw,MeshPhysicalMaterial:Dk,MeshStandardMaterial:Ik,MeshPhongMaterial:Pk,MeshToonMaterial:Lk,MeshNormalMaterial:Rk,MeshLambertMaterial:Ok,MeshDepthMaterial:ES,MeshDistanceMaterial:jS,MeshBasicMaterial:ty,MeshMatcapMaterial:zk,LineDashedMaterial:Fk,LineBasicMaterial:zw,Material:Yv}[e]}}class BM{static decodeText(e){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let n=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);try{return decodeURIComponent(escape(t))}catch(dO){return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return-1===t?"./":e.slice(0,t+1)}static resolveURL(e,t){return"string"!==typeof e||""===e?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class UM extends Ty{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}toJSON(){const e=super.toJSON();return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}}class HM extends uM{constructor(e){super(e)}load(e,t,n,r){const i=this,o=new hM(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(dO){r?r(dO):console.error(dO),i.manager.itemError(e)}},n,r)}parse(e){const t={},n={};function r(e,r){if(void 0!==t[r])return t[r];const i=e.interleavedBuffers[r],o=function(e,t){if(void 0!==n[t])return n[t];const r=e.arrayBuffers,i=r[t],o=new Uint32Array(i).buffer;return n[t]=o,o}(e,i.buffer),a=ug(i.type,o),s=new XS(a,i.stride);return s.uuid=i.uuid,t[r]=s,s}const i=e.isInstancedBufferGeometry?new UM:new Ty,o=e.data.index;if(void 0!==o){const e=ug(o.type,o.array);i.setIndex(new cy(e,1))}const a=e.data.attributes;for(const u in a){const t=a[u];let n;if(t.isInterleavedBufferAttribute){const i=r(e.data,t.data);n=new QS(i,t.itemSize,t.offset,t.normalized)}else{const e=ug(t.type,t.array);n=new(t.isInstancedBufferAttribute?Ew:cy)(e,t.itemSize,t.normalized)}void 0!==t.name&&(n.name=t.name),void 0!==t.usage&&n.setUsage(t.usage),void 0!==t.updateRange&&(n.updateRange.offset=t.updateRange.offset,n.updateRange.count=t.updateRange.count),i.setAttribute(u,n)}const s=e.data.morphAttributes;if(s)for(const u in s){const t=s[u],n=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];let a;if(o.isInterleavedBufferAttribute){const t=r(e.data,o.data);a=new QS(t,o.itemSize,o.offset,o.normalized)}else{const e=ug(o.type,o.array);a=new cy(e,o.itemSize,o.normalized)}void 0!==o.name&&(a.name=o.name),n.push(a)}i.morphAttributes[u]=n}e.data.morphTargetsRelative&&(i.morphTargetsRelative=!0);const l=e.data.groups||e.data.drawcalls||e.data.offsets;if(void 0!==l)for(let u=0,d=l.length;u!==d;++u){const e=l[u];i.addGroup(e.start,e.count,e.materialIndex)}const c=e.data.boundingSphere;if(void 0!==c){const e=new Dg;void 0!==c.center&&e.fromArray(c.center),i.boundingSphere=new ev(e,c.radius)}return e.name&&(i.name=e.name),e.userData&&(i.userData=e.userData),i}}class WM extends uM{constructor(e){super(e)}load(e,t,n,r){const i=this,o=""===this.path?BM.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||o;const a=new hM(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(n){let o=null;try{o=JSON.parse(n)}catch(ME){return void 0!==r&&r(ME),void console.error("THREE:ObjectLoader: Can't parse "+e+".",ME.message)}const a=o.metadata;if(void 0===a||void 0===a.type||"geometry"===a.type.toLowerCase())return void 0!==r&&r(new Error("THREE.ObjectLoader: Can't load "+e)),void console.error("THREE.ObjectLoader: Can't load "+e);i.parse(o,t)},n,r)}async loadAsync(e,t){const n=""===this.path?BM.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||n;const r=new hM(this.manager);r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials);const i=await r.loadAsync(e,t),o=JSON.parse(i),a=o.metadata;if(void 0===a||void 0===a.type||"geometry"===a.type.toLowerCase())throw new Error("THREE.ObjectLoader: Can't load "+e);return await this.parseAsync(o)}parse(e,t){const n=this.parseAnimations(e.animations),r=this.parseShapes(e.shapes),i=this.parseGeometries(e.geometries,r),o=this.parseImages(e.images,function(){void 0!==t&&t(l)}),a=this.parseTextures(e.textures,o),s=this.parseMaterials(e.materials,a),l=this.parseObject(e.object,i,s,a,n),c=this.parseSkeletons(e.skeletons,l);if(this.bindSkeletons(l,c),void 0!==t){let e=!1;for(const t in o)if(o[t].data instanceof HTMLImageElement){e=!0;break}!1===e&&t(l)}return l}async parseAsync(e){const t=this.parseAnimations(e.animations),n=this.parseShapes(e.shapes),r=this.parseGeometries(e.geometries,n),i=await this.parseImagesAsync(e.images),o=this.parseTextures(e.textures,i),a=this.parseMaterials(e.materials,o),s=this.parseObject(e.object,r,a,o,t),l=this.parseSkeletons(e.skeletons,s);return this.bindSkeletons(s,l),s}parseShapes(e){const t={};if(void 0!==e)for(let n=0,r=e.length;n<r;n++){const r=(new U_).fromJSON(e[n]);t[r.uuid]=r}return t}parseSkeletons(e,t){const n={},r={};if(t.traverse(function(e){e.isBone&&(r[e.uuid]=e)}),void 0!==e)for(let i=0,o=e.length;i<o;i++){const t=(new Aw).fromJSON(e[i],r);n[t.uuid]=t}return n}parseGeometries(e,t){const n={};if(void 0!==e){const r=new HM;for(let i=0,o=e.length;i<o;i++){let o;const a=e[i];switch(a.type){case"BufferGeometry":case"InstancedBufferGeometry":o=r.parse(a);break;default:a.type in Ek?o=Ek[a.type].fromJSON(a,t):console.warn('THREE.ObjectLoader: Unsupported geometry type "'.concat(a.type,'"'))}o.uuid=a.uuid,void 0!==a.name&&(o.name=a.name),void 0!==a.userData&&(o.userData=a.userData),n[a.uuid]=o}}return n}parseMaterials(e,t){const n={},r={};if(void 0!==e){const i=new FM;i.setTextures(t);for(let t=0,o=e.length;t<o;t++){const o=e[t];void 0===n[o.uuid]&&(n[o.uuid]=i.parse(o)),r[o.uuid]=n[o.uuid]}}return r}parseAnimations(e){const t={};if(void 0!==e)for(let n=0;n<e.length;n++){const r=e[n],i=oM.parse(r);t[i.uuid]=i}return t}parseImages(e,t){const n=this,r={};let i;function o(e){if("string"===typeof e){const t=e;return function(e){return n.manager.itemStart(e),i.load(e,function(){n.manager.itemEnd(e)},void 0,function(){n.manager.itemError(e),n.manager.itemEnd(e)})}(/^(\/\/)|([a-z]+:(\/\/)?)/i.test(t)?t:n.resourcePath+t)}return e.data?{data:ug(e.type,e.data),width:e.width,height:e.height}:null}if(void 0!==e&&e.length>0){const n=new lM(t);i=new gM(n),i.setCrossOrigin(this.crossOrigin);for(let t=0,i=e.length;t<i;t++){const n=e[t],i=n.url;if(Array.isArray(i)){const e=[];for(let t=0,n=i.length;t<n;t++){const n=o(i[t]);null!==n&&(n instanceof HTMLImageElement?e.push(n):e.push(new Mw(n.data,n.width,n.height)))}r[n.uuid]=new Sg(e)}else{const e=o(n.url);r[n.uuid]=new Sg(e)}}}return r}async parseImagesAsync(e){const t=this,n={};let r;async function i(e){if("string"===typeof e){const n=e,i=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(n)?n:t.resourcePath+n;return await r.loadAsync(i)}return e.data?{data:ug(e.type,e.data),width:e.width,height:e.height}:null}if(void 0!==e&&e.length>0){r=new gM(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t<r;t++){const r=e[t],o=r.url;if(Array.isArray(o)){const e=[];for(let t=0,n=o.length;t<n;t++){const n=o[t],r=await i(n);null!==r&&(r instanceof HTMLImageElement?e.push(r):e.push(new Mw(r.data,r.width,r.height)))}n[r.uuid]=new Sg(e)}else{const e=await i(r.url);n[r.uuid]=new Sg(e)}}}return n}parseTextures(e,t){function n(e,t){return"number"===typeof e?e:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",e),t[e])}const r={};if(void 0!==e)for(let i=0,o=e.length;i<o;i++){const o=e[i];void 0===o.image&&console.warn('THREE.ObjectLoader: No "image" specified for',o.uuid),void 0===t[o.image]&&console.warn("THREE.ObjectLoader: Undefined image",o.image);const a=t[o.image],s=a.data;let l;Array.isArray(s)?(l=new rb,6===s.length&&(l.needsUpdate=!0)):(l=s&&s.data?new Mw:new kg,s&&(l.needsUpdate=!0)),l.source=a,l.uuid=o.uuid,void 0!==o.name&&(l.name=o.name),void 0!==o.mapping&&(l.mapping=n(o.mapping,VM)),void 0!==o.channel&&(l.channel=o.channel),void 0!==o.offset&&l.offset.fromArray(o.offset),void 0!==o.repeat&&l.repeat.fromArray(o.repeat),void 0!==o.center&&l.center.fromArray(o.center),void 0!==o.rotation&&(l.rotation=o.rotation),void 0!==o.wrap&&(l.wrapS=n(o.wrap[0],GM),l.wrapT=n(o.wrap[1],GM)),void 0!==o.format&&(l.format=o.format),void 0!==o.internalFormat&&(l.internalFormat=o.internalFormat),void 0!==o.type&&(l.type=o.type),void 0!==o.encoding&&(l.encoding=o.encoding),void 0!==o.minFilter&&(l.minFilter=n(o.minFilter,qM)),void 0!==o.magFilter&&(l.magFilter=n(o.magFilter,qM)),void 0!==o.anisotropy&&(l.anisotropy=o.anisotropy),void 0!==o.flipY&&(l.flipY=o.flipY),void 0!==o.generateMipmaps&&(l.generateMipmaps=o.generateMipmaps),void 0!==o.premultiplyAlpha&&(l.premultiplyAlpha=o.premultiplyAlpha),void 0!==o.unpackAlignment&&(l.unpackAlignment=o.unpackAlignment),void 0!==o.userData&&(l.userData=o.userData),r[o.uuid]=l}return r}parseObject(e,t,n,r,i){let o,a,s;function l(e){return void 0===t[e]&&console.warn("THREE.ObjectLoader: Undefined geometry",e),t[e]}function c(e){if(void 0!==e){if(Array.isArray(e)){const t=[];for(let r=0,i=e.length;r<i;r++){const i=e[r];void 0===n[i]&&console.warn("THREE.ObjectLoader: Undefined material",i),t.push(n[i])}return t}return void 0===n[e]&&console.warn("THREE.ObjectLoader: Undefined material",e),n[e]}}function u(e){return void 0===r[e]&&console.warn("THREE.ObjectLoader: Undefined texture",e),r[e]}switch(e.type){case"Scene":o=new YS,void 0!==e.background&&(Number.isInteger(e.background)?o.background=new $v(e.background):o.background=u(e.background)),void 0!==e.environment&&(o.environment=u(e.environment)),void 0!==e.fog&&("Fog"===e.fog.type?o.fog=new KS(e.fog.color,e.fog.near,e.fog.far):"FogExp2"===e.fog.type&&(o.fog=new qS(e.fog.color,e.fog.density))),void 0!==e.backgroundBlurriness&&(o.backgroundBlurriness=e.backgroundBlurriness),void 0!==e.backgroundIntensity&&(o.backgroundIntensity=e.backgroundIntensity);break;case"PerspectiveCamera":o=new eb(e.fov,e.aspect,e.near,e.far),void 0!==e.focus&&(o.focus=e.focus),void 0!==e.zoom&&(o.zoom=e.zoom),void 0!==e.filmGauge&&(o.filmGauge=e.filmGauge),void 0!==e.filmOffset&&(o.filmOffset=e.filmOffset),void 0!==e.view&&(o.view=Object.assign({},e.view));break;
2case"OrthographicCamera":o=new Mb(e.left,e.right,e.top,e.bottom,e.near,e.far),void 0!==e.zoom&&(o.zoom=e.zoom),void 0!==e.view&&(o.view=Object.assign({},e.view));break;case"AmbientLight":o=new LM(e.color,e.intensity);break;case"DirectionalLight":o=new PM(e.color,e.intensity);break;case"PointLight":o=new IM(e.color,e.intensity,e.distance,e.decay);break;case"RectAreaLight":o=new RM(e.color,e.intensity,e.width,e.height);break;case"SpotLight":o=new TM(e.color,e.intensity,e.distance,e.angle,e.penumbra,e.decay);break;case"HemisphereLight":o=new SM(e.color,e.groundColor,e.intensity);break;case"LightProbe":o=(new zM).fromJSON(e);break;case"SkinnedMesh":a=l(e.geometry),s=c(e.material),o=new _w(a,s),void 0!==e.bindMode&&(o.bindMode=e.bindMode),void 0!==e.bindMatrix&&o.bindMatrix.fromArray(e.bindMatrix),void 0!==e.skeleton&&(o.skeleton=e.skeleton);break;case"Mesh":a=l(e.geometry),s=c(e.material),o=new Gy(a,s);break;case"InstancedMesh":a=l(e.geometry),s=c(e.material);const t=e.count,n=e.instanceMatrix,r=e.instanceColor;o=new Ow(a,s,t),o.instanceMatrix=new Ew(new Float32Array(n.array),16),void 0!==r&&(o.instanceColor=new Ew(new Float32Array(r.array),r.itemSize));break;case"LOD":o=new gw;break;case"Line":o=new Vw(l(e.geometry),c(e.material));break;case"LineLoop":o=new Yw(l(e.geometry),c(e.material));break;case"LineSegments":o=new Kw(l(e.geometry),c(e.material));break;case"PointCloud":case"Points":o=new e_(l(e.geometry),c(e.material));break;case"Sprite":o=new pw(c(e.material));break;case"Group":o=new RS;break;case"Bone":o=new kw;break;default:o=new Pv}if(o.uuid=e.uuid,void 0!==e.name&&(o.name=e.name),void 0!==e.matrix?(o.matrix.fromArray(e.matrix),void 0!==e.matrixAutoUpdate&&(o.matrixAutoUpdate=e.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(void 0!==e.position&&o.position.fromArray(e.position),void 0!==e.rotation&&o.rotation.fromArray(e.rotation),void 0!==e.quaternion&&o.quaternion.fromArray(e.quaternion),void 0!==e.scale&&o.scale.fromArray(e.scale)),void 0!==e.up&&o.up.fromArray(e.up),void 0!==e.castShadow&&(o.castShadow=e.castShadow),void 0!==e.receiveShadow&&(o.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(o.shadow.bias=e.shadow.bias),void 0!==e.shadow.normalBias&&(o.shadow.normalBias=e.shadow.normalBias),void 0!==e.shadow.radius&&(o.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&o.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(o.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(o.visible=e.visible),void 0!==e.frustumCulled&&(o.frustumCulled=e.frustumCulled),void 0!==e.renderOrder&&(o.renderOrder=e.renderOrder),void 0!==e.userData&&(o.userData=e.userData),void 0!==e.layers&&(o.layers.mask=e.layers),void 0!==e.children){const a=e.children;for(let e=0;e<a.length;e++)o.add(this.parseObject(a[e],t,n,r,i))}if(void 0!==e.animations){const t=e.animations;for(let e=0;e<t.length;e++){const n=t[e];o.animations.push(i[n])}}if("LOD"===e.type){void 0!==e.autoUpdate&&(o.autoUpdate=e.autoUpdate);const t=e.levels;for(let e=0;e<t.length;e++){const n=t[e],r=o.getObjectByProperty("uuid",n.object);void 0!==r&&o.addLevel(r,n.distance,n.hysteresis)}}return o}bindSkeletons(e,t){0!==Object.keys(t).length&&e.traverse(function(e){if(!0===e.isSkinnedMesh&&void 0!==e.skeleton){const n=t[e.skeleton];void 0===n?console.warn("THREE.ObjectLoader: No skeleton found with UUID:",e.skeleton):e.bind(n,e.bindMatrix)}})}}const VM={UVMapping:Ah,CubeReflectionMapping:Eh,CubeRefractionMapping:jh,EquirectangularReflectionMapping:Nh,EquirectangularRefractionMapping:Ih,CubeUVReflectionMapping:Dh},GM={RepeatWrapping:Ph,ClampToEdgeWrapping:Lh,MirroredRepeatWrapping:Rh},qM={NearestFilter:Oh,NearestMipmapNearestFilter:zh,NearestMipmapLinearFilter:Bh,LinearFilter:Hh,LinearMipmapNearestFilter:Wh,LinearMipmapLinearFilter:Gh};class KM extends uM{constructor(e){super(e),this.isImageBitmapLoader=!0,"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,o=sM.get(e);if(void 0!==o)return i.manager.itemStart(e),setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o;const a={};a.credentials="anonymous"===this.crossOrigin?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:"none"}))}).then(function(n){sM.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)}}let YM;class XM{static getContext(){return void 0===YM&&(YM=new(window.AudioContext||window.webkitAudioContext)),YM}static setContext(e){YM=e}}class ZM extends uM{constructor(e){super(e)}load(e,t,n,r){const i=this,o=new hM(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(n){try{const e=n.slice(0);XM.getContext().decodeAudioData(e,function(e){t(e)})}catch(dO){r?r(dO):console.error(dO),i.manager.itemError(e)}},n,r)}}class QM extends zM{constructor(e,t){super(void 0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1),this.isHemisphereLightProbe=!0;const n=(new $v).set(e),r=(new $v).set(t),i=new Dg(n.r,n.g,n.b),o=new Dg(r.r,r.g,r.b),a=Math.sqrt(Math.PI),s=a*M
vendor: 11,794 bytes, line 2
2ath.sqrt(.75);this.sh.coefficients[0].copy(i).add(o).multiplyScalar(a),this.sh.coefficients[1].copy(i).sub(o).multiplyScalar(s)}}class JM extends zM{constructor(e){super(void 0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),this.isAmbientLightProbe=!0;const t=(new $v).set(e);this.sh.coefficients[0].set(t.r,t.g,t.b).multiplyScalar(2*Math.sqrt(Math.PI))}}const $M=new cv,eC=new cv,tC=new cv;class nC{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new eb,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new eb,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,tC.copy(e.projectionMatrix);const n=t.eyeSep/2,r=n*t.near/t.focus,i=t.near*Math.tan(Km*t.fov*.5)/t.zoom;let o,a;eC.elements[12]=-n,$M.elements[12]=n,o=-i*t.aspect+r,a=i*t.aspect+r,tC.elements[0]=2*t.near/(a-o),tC.elements[8]=(a+o)/(a-o),this.cameraL.projectionMatrix.copy(tC),o=-i*t.aspect-r,a=i*t.aspect-r,tC.elements[0]=2*t.near/(a-o),tC.elements[8]=(a+o)/(a-o),this.cameraR.projectionMatrix.copy(tC)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(eC),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply($M)}}class rC{constructor(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=iC(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=iC();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function iC(){return("undefined"===typeof performance?Date:performance).now()}const oC=new Dg,aC=new Ig,sC=new Dg,lC=new Dg;class cC extends Pv{constructor(){super(),this.type="AudioListener",this.context=XM.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new rC}getInput(){return this.gain}removeFilter(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(oC,aC,sC),lC.set(0,0,-1).applyQuaternion(aC),t.positionX){const e=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(oC.x,e),t.positionY.linearRampToValueAtTime(oC.y,e),t.positionZ.linearRampToValueAtTime(oC.z,e),t.forwardX.linearRampToValueAtTime(lC.x,e),t.forwardY.linearRampToValueAtTime(lC.y,e),t.forwardZ.linearRampToValueAtTime(lC.z,e),t.upX.linearRampToValueAtTime(n.x,e),t.upY.linearRampToValueAtTime(n.y,e),t.upZ.linearRampToValueAtTime(n.z,e)}else t.setPosition(oC.x,oC.y,oC.z),t.setOrientation(lC.x,lC.y,lC.z,n.x,n.y,n.z)}}class uC extends Pv{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+e;const 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()}pause(){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.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,null!==this.source&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let 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}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let 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}getFilters(){return this.filters}setFilters(e){return e||(e=[]),!0===this._connected?(this.disconnect(),this.filters=e.slice(),this.connect()):this.filters=e.slice(),this}setDetune(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}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(e){return this.setFilters(e?[e]:[])}setPlaybackRate(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.")}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(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.")}setLoopStart(e){return this.loopStart=e,this}setLoopEnd(e){return this.loopEnd=e,this}getVolume(){return this.gain.gain.value}setVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}}const dC=new Dg,pC=new Ig,hC=new Dg,fC=new Dg;class mC extends uC{constructor(e){super(e),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}disconnect(){super.disconnect(),this.panner.disconnect(this.gain)}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(e){return this.panner.refDistance=e,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(e){return this.panner.rolloffFactor=e,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(e){return this.panner.distanceModel=e,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(e){return this.panner.maxDistance=e,this}setDirectionalCone(e,t,n){return this.panner.coneInnerAngle=e,this.panner.coneOuterAngle=t,this.panner.coneOuterGain=n,this}updateMatrixWorld(e){if(super.updateMatrixWorld(e),!0===this.hasPlaybackControl&&!1===this.isPlaying)return;this.matrixWorld.decompose(dC,pC,hC),fC.set(0,0,1).applyQuaternion(pC);const t=this.panner;if(t.positionX){const e=this.context.currentTime+this.listener.timeDelta;t.positionX.linearRampToValueAtTime(dC.x,e),t.positionY.linearRampToValueAtTime(dC.y,e),t.positionZ.linearRampToValueAtTime(dC.z,e),t.orientationX.linearRampToValueAtTime(fC.x,e),t.orientationY.linearRampToValueAtTime(fC.y,e),t.orientationZ.linearRampToValueAtTime(fC.z,e)}else t.setPosition(dC.x,dC.y,dC.z),t.setOrientation(fC.x,fC.y,fC.z)}}class gC{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2048;this.analyser=e.context.createAnalyser(),this.analyser.fftSize=t,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let e=0;const t=this.getFrequencyData();for(let n=0;n<t.length;n++)e+=t[n];return e/t.length}}class vC{constructor(e,t,n){let r,i,o;switch(this.binding=e,this.valueSize=n,t){case"quaternion":r=this._slerp,i=this._slerpAdditive,o=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":r=this._select,i=this._select,o=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:r=this._lerp,i=this._lerpAdditive,o=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=r,this._mixBufferRegionAdditive=i,this._setIdentity=o,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(e,t){const n=this.buffer,r=this.valueSize,i=e*r+r;let o=this.cumulativeWeight;if(0===o){for(let e=0;e!==r;++e)n[i+e]=n[e];o=t}else{o+=t;const e=t/o;this._mixBufferRegion(n,i,0,e,r)}this.cumulativeWeight=o}accumulateAdditive(e){const 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}apply(e){const t=this.valueSize,n=this.buffer,r=e*t+t,i=this.cumulativeWeight,o=this.cumulativeWeightAdditive,a=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,i<1){const e=t*this._origIndex;this._mixBufferRegion(n,r,e,1-i,t)}o>0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let s=t,l=t+t;s!==l;++s)if(n[s]!==n[s+t]){a.setValue(n,r);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let i=n,o=r;i!==o;++i)t[i]=t[r+i%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;
vendor: 4,668 bytes, line 2
2for(let n=e;n<t;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[t+n]=this.buffer[e+n]}_select(e,t,n,r,i){if(r>=.5)for(let o=0;o!==i;++o)e[t+o]=e[n+o]}_slerp(e,t,n,r){Ig.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){const o=this._workIndex*i;Ig.multiplyQuaternionsFlat(e,o,e,t,e,n),Ig.slerpFlat(e,t,e,t,e,o,r)}_lerp(e,t,n,r,i){const o=1-r;for(let a=0;a!==i;++a){const i=t+a;e[i]=e[i]*o+e[n+a]*r}}_lerpAdditive(e,t,n,r,i){for(let o=0;o!==i;++o){const i=t+o;e[i]=e[i]+e[n+o]*r}}}const yC="\\[\\]\\.:\\/",bC=new RegExp("["+yC+"]","g"),xC="[^"+yC+"]",SC="[^"+yC.replace("\\.","")+"]",wC=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",xC)+/(WCOD+)?/.source.replace("WCOD",SC)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",xC)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",xC)+"$"),_C=["material","materials","bones","map"];class kC{constructor(e,t,n){this.path=t,this.parsedPath=n||kC.parseTrackName(t),this.node=kC.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new kC.Composite(e,t,n):new kC(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(bC,"")}static parseTrackName(e){const t=wC.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const 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){const e=n.nodeName.substring(r+1);-1!==_C.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let r=0;r<e.length;r++){const i=e[r];if(i.name===t||i.uuid===t)return i;const o=n(i.children);if(o)return o}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,n=t.objectName,r=t.propertyName;let i=t.propertyIndex;if(e||(e=kC.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(n){let r=t.objectIndex;switch(n){case"materials":if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as no
2de does not have a material.",this);if(!e.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);e=e.material.materials;break;case"bones":if(!e.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);e=e.skeleton.bones;for(let t=0;t<e.length;t++)if(e[t].name===r){r=t;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!e.material.map)return void console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);e=e.material.map;break;default:if(void 0===e[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);e=e[n]}if(void 0!==r){if(void 0===e[r])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);e=e[r]}}const o=e[r];if(void 0===o){const n=t.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+r+" but it wasn't found.",e)}let a=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?a=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(a=this.Versioning.MatrixWorldNeedsUpdate);let s=this.BindingType.Direct;if(void 0!==i){if("morphTargetInfluences"===r){if(!e.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!e.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==e.morphTargetDictionary[i]&&(i=e.morphTargetDictionary[i])}s=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=i}else void 0!==o.fromArray&&void 0!==o.toArray?(s=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(s=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=r;this.getValue=this.GetterByBindingType[s],this.setValue=this.SetterByBindingTypeAndVersioning[s][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}kC.Composite=class{constructor(e,t,n){const r=n||kC.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},kC.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},kC.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},kC.prototype.GetterByBindingType=[kC.prototype._getValue_direct,kC.prototype._getValue_array,kC.prototype._getValue_arrayElement,kC.prototype._getValue_toArray],kC.prototype.SetterByBindingTypeAndVersioning=[[kC.prototype._setValue_direct,kC.prototype._setValue_direct_setNeedsUpdate,kC.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[kC.prototype._setValue_array,kC.prototype._setValue_array_setNeedsUpdate,kC.prototype._setValue_array_setMatrixWorldNeedsUpdate],[kC.prototype._setValue_arrayElement,kC.prototype._setValue_arrayElement_setNeedsUpdate,kC.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[kC.prototype._setValue_fromArray,kC.prototype._setValue_fromArray_setNeedsUpdate,kC.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class MC{constructor(){this.isAnimationObjectGroup=!0,this.uuid=Xm(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const e={};this._indicesByUUID=e;for(let n=0,r=arguments.length;n!==r;++n)e[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const t=this;this.stats={objects:{get total(){return t._objects.length},get inUse(){return this.total-t.nCachedObjects_}},get bindingsPerObject(){return t._bindings.length}}}add(){const e=this._objects,t=this._indicesByUUID,n=this._paths,r=this._parsedPaths,i=this._bindings,o=i.length;let a,s=e.length,l=this.nCachedObjects_;for(let c=0,u=arguments.length;c!==u;++c){const u=arguments[c],d=u.uuid;let p=t[d];if(void 0===p){p=s++,t[d]=p,e.push(u);for(let e=0,t=o;e!==t;++e)i[e].push(new kC(u,n[e],r[e]))}else if(p<l){a=e[p];const s=--l,c=e[s];t[c.uuid]=p,e[p]=c,t[d]=s,e[s]=u;for(let e=0,t=o;e!==t;++e){const t=i[e],o=t[s];let a=t[p];t[p]=o,void 0===a&&(a=new kC(u,n[e],r[e])),t[s]=a}}else e[p]!==a&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastru
2cture when reloading scenes.")}this.nCachedObjects_=l}remove(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_;for(let o=0,a=arguments.length;o!==a;++o){const a=arguments[o],s=a.uuid,l=t[s];if(void 0!==l&&l>=i){const o=i++,c=e[o];t[c.uuid]=l,e[l]=c,t[s]=o,e[o]=a;for(let e=0,t=r;e!==t;++e){const t=n[e],r=t[o],i=t[l];t[l]=r,t[o]=i}}}this.nCachedObjects_=i}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_,o=e.length;for(let a=0,s=arguments.length;a!==s;++a){const s=arguments[a].uuid,l=t[s];if(void 0!==l)if(delete t[s],l<i){const a=--i,s=e[a],c=--o,u=e[c];t[s.uuid]=l,e[l]=s,t[u.uuid]=a,e[a]=u,e.pop();for(let e=0,t=r;e!==t;++e){const t=n[e],r=t[a],i=t[c];t[l]=r,t[a]=i,t.pop()}}else{const i=--o,a=e[i];i>0&&(t[a.uuid]=l),e[l]=a,e.pop();for(let e=0,t=r;e!==t;++e){const t=n[e];t[l]=t[i],t.pop()}}}this.nCachedObjects_=i}subscribe_(e,t){const n=this._bindingsIndicesByPath;let r=n[e];const i=this._bindings;if(void 0!==r)return i[r];const o=this._paths,a=this._parsedPaths,s=this._objects,l=s.length,c=this.nCachedObjects_,u=new Array(l);r=i.length,n[e]=r,o.push(e),a.push(t),i.push(u);for(let d=c,p=s.length;d!==p;++d){const n=s[d];u[d]=new kC(n,e,t)}return u}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){const r=this._paths,i=this._parsedPaths,o=this._bindings,a=o.length-1,s=o[a];t[e[a]]=n,o[n]=s,o.pop(),i[n]=i[a],i.pop(),r[n]=r[a],r.pop()}}}class CC{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.blendMode;this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;const i=t.tracks,o=i.length,a=new Array(o),s={endingStart:Jf,endingEnd:Jf};for(let l=0;l!==o;++l){const e=i[l].createInterpolant(null);a[l]=e,e.settings=s}this._interpolantSettings=s,this._interpolants=a,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Kf,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}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const n=this._clip.duration,r=e._clip.duration,i=r/n,o=n/r;e.warp(1,i,t),this.warp(o,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const r=this._mixer,i=r.time,o=this.timeScale;let a=this._timeScaleInterpolant;null===a&&(a=r._lendControlInterpolant(),this._timeScaleInterpolant=a);const s=a.parameterPositions,l=a.sampleValues;return s[0]=i,s[1]=i+n,l[0]=e/o,l[1]=t/o,this}stopWarping(){const e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,r){if(!this.enabled)return void this._updateWeight(e);const i=this._startTime;if(null!==i){const r=(e-i)*n;r<0||0===n?t=0:(this._startTime=null,t=n*r)}t*=this._updateTimeScale(e);const o=this._updateTime(t),a=this._updateWeight(e);if(a>0){const e=this._interpolants,t=this._propertyBindings;if(this.blendMode===nm)for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(o),t[n].accumulateAdditive(a);else for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(o),t[n].accumulate(r,a)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const 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}_updateTime(e){const t=this._clip.duration,n=this.loop;let r=this.time+e,i=this._loopCount;const o=n===Yf;if(0===e)return-1===i?r:o&&1===(1&i)?t-r:r;if(n===qf){-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,o)):this._setEndings(0===this.repetitions,!0,o)),r>=t||r<0){const n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);const a=this.repetitions-i;if(a<=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===a){const t=e<0;this._setEndings(t,!t,o)}else this._setEndings(!1,!1,o);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(o&&1===(1&i))return t-r}return r}
vendor: 8,803 bytes, line 2
2_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=$f,r.endingEnd=$f):(r.endingStart=e?this.zeroSlopeAtStart?$f:Jf:em,r.endingEnd=t?this.zeroSlopeAtEnd?$f:Jf:em)}_scheduleFading(e,t,n){const r=this._mixer,i=r.time;let o=this._weightInterpolant;null===o&&(o=r._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,s=o.sampleValues;return a[0]=i,s[0]=t,a[1]=i+e,s[1]=n,this}}const TC=new Float32Array(1);class AC extends Vm{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,o=e._propertyBindings,a=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName;let c=l[s];void 0===c&&(c={},l[s]=c);for(let u=0;u!==i;++u){const e=r[u],i=e.name;let l=c[i];if(void 0!==l)++l.referenceCount,o[u]=l;else{if(l=o[u],void 0!==l){null===l._cacheIndex&&(++l.referenceCount,this._addInactiveBinding(l,s,i));continue}const r=t&&t._propertyBindings[u].binding.parsedPath;l=new vC(kC.create(n,i,r),e.ValueTypeName,e.getValueSize()),++l.referenceCount,this._addInactiveBinding(l,s,i),o[u]=l}a[u].resultBuffer=l.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){const t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const 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}}}}_isActiveAction(e){const t=e._cacheIndex;return null!==t&&t<this._nActiveActions}_addInactiveAction(e,t,n){const r=this._actions,i=this._actionsByClip;let o=i[t];if(void 0===o)o={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,i[t]=o;else{const t=o.knownActions;e._byClipCacheIndex=t.length,t.push(e)}e._cacheIndex=r.length,r.push(e),o.actionByRoot[n]=e}_removeInactiveAction(e){const t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;const i=e._clip.uuid,o=this._actionsByClip,a=o[i],s=a.knownActions,l=s[s.length-1],c=e._byClipCacheIndex;l._byClipCacheIndex=c,s[c]=l,s.pop(),e._byClipCacheIndex=null;delete a.actionByRoot[(e._localRoot||this._root).uuid],0===s.length&&delete o[i],this._removeInactiveBindingsForAction(e)}_removeInactiveBindingsForAction(e){const t=e._propertyBindings;for(let n=0,r=t.length;n!==r;++n){const e=t[n];0===--e.referenceCount&&this._removeInactiveBinding(e)}}_lendAction(e){const t=this._actions,n=e._cacheIndex,r=this._nActiveActions++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_takeBackAction(e){const t=this._actions,n=e._cacheIndex,r=--this._nActiveActions,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_addInactiveBinding(e,t,n){const r=this._bindingsByRootAndName,i=this._bindings;let o=r[t];void 0===o&&(o={},r[t]=o),o[n]=e,e._cacheIndex=i.length,i.push(e)}_removeInactiveBinding(e){const t=this._bindings,n=e.binding,r=n.rootNode.uuid,i=n.path,o=this._bindingsByRootAndName,a=o[r],s=t[t.length-1],l=e._cacheIndex;s._cacheIndex=l,t[l]=s,t.pop(),delete a[i],0===Object.keys(a).length&&delete o[r]}_lendBinding(e){const t=this._bindings,n=e._cacheIndex,r=this._nActiveBindings++,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_takeBackBinding(e){const t=this._bindings,n=e._cacheIndex,r=--this._nActiveBindings,i=t[r];e._cacheIndex=r,t[r]=e,i._cacheIndex=n,t[n]=i}_lendControlInterpolant(){const e=this._controlInterpolants,t=this._nActiveControlInterpolants++;let n=e[t];return void 0===n&&(n=new Xk(new Float32Array(2),new Float32Array(2),1,TC),n.__cacheIndex=t,e[t]=n),n}_takeBackControlInterpolant(e){const t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,i=t[r];e.__cacheIndex=r,t[r]=e,i.__cacheIndex=n,t[n]=i}clipAction(e,t,n){const r=t||this._root,i=r.uuid;let o="string"===typeof e?oM.findByName(r,e):e;const a=null!==o?o.uuid:e,s=this._actionsByClip[a];let l=null;if(void 0===n&&(n=null!==o?o.blendMode:tm),void 0!==s){const e=s.actionByRoot[i];if(void 0!==e&&e.blendMode===n)return e;l=s.knownActions[0],null===o&&(o=l._clip)}if(null===o)return null;const c=new CC(this,o,t,n);return this._bindAction(c,l),this._addInactiveAction(c,a,i),c}existingAction(e,t){const n=t||this._root,r=n.uuid,i="string"===typeof e?oM.findByName(n,e):e,o=i?i.uuid:e,a=this._actionsByClip[o];return void 0!==a&&a.actionByRoot[r]||null}stopAllAction(){const e=this._actions;for(let t=this._nActiveActions-1;t>=0;--t)e[t].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),o=this._accuIndex^=1;for(let l=0;l!==n;++l){t[l]._update(r,e,i,o)}const a=this._bindings,s=this._nActiveBindings;for(let l=0;l!==s;++l)a[l].apply(o);return this}setTime(e){this.time=0;for(let t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(e)}getRoot(){return this._root}uncacheClip(e){const t=this._actions,n=e.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){const e=i.knownActions;for(let n=0,r=e.length;n!==r;++n){const r=e[n];this._deactivateAction(r);const i=r._cacheIndex,o=t[t.length-1];r._cacheIndex=null,r._byClipCacheIndex=null,o._cacheIndex=i,t[i]=o,t.pop(),this._removeInactiveBindingsForAction(r)}delete r[n]}}uncacheRoot(e){const t=e.uuid,n=this._actionsByClip;for(const i in n){const e=n[i].actionByRoot[t];void 0!==e&&(this._deactivateAction(e),this._removeInactiveAction(e))}const r=this._bindingsByRootAndName[t];if(void 0!==r)for(const i in r){const e=r[i];e.restoreOriginalState(),this._removeInactiveBinding(e)}}uncacheAction(e,t){const n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}class EC{constructor(e){this.value=e}clone(){return new EC(void 0===this.value.clone?this.value:this.value.clone())}}let jC=0;class NC extends Vm{constructor(){super(),this.isUniformsGroup=!0,Object.defineProperty(this,"id",{value:jC++}),this.name="",this.usage=Im,this.uniforms=[]}add(e){return this.uniforms.push(e),this}remove(e){const t=this.uniforms.indexOf(e);return-1!==t&&this.uniforms.splice(t,1),this}setName(e){return this.name=e,this}setUsage(e){return this.usage=e,this}dispose(){return this.dispatchEvent({type:"dispose"}),this}copy(e){this.name=e.name,this.usage=e.usage;const t=e.uniforms;this.uniforms.length=0;for(let n=0,r=t.length;n<r;n++)this.uniforms.push(t[n].clone());return this}clone(){return(new this.constructor).copy(this)}}class IC extends XS{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;super(e,t),this.isInstancedInterleavedBuffer=!0,this.meshPerAttribute=n}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}clone(e){const t=super.clone(e);return t.meshPerAttribute=this.meshPerAttribute,t}toJSON(e){const t=super.toJSON(e);return t.isInstancedInterleavedBuffer=!0,t.meshPerAttribute=this.meshPerAttribute,t}}class DC{constructor(e,t,n,r,i){this.isGLBufferAttribute=!0,this.name="",this.buffer=e,this.type=t,this.itemSize=n,this.elementSize=r,this.count=i,this.version=0}set needsUpdate(e){!0===e&&this.version++}setBuffer(e){return this.buffer=e,this}setType(e,t){return this.type=e,this.elementSize=t,this}setItemSize(e){return this.itemSize=e,this}setCount(e){return this.count=e,this}}class PC{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0;this.ray=new lv(e,t),this.near=n,this.far=r,this.camera=null,this.layers=new xv,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){this.ray.set(e,t)}setFromCamera(e,t){t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t):console.error("THREE.Raycaster:
2Unsupported camera type: "+t.type)}intersectObject(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return RC(e,this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1]),t.sort(LC),t}intersectObjects(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let r=0,i=e.length;r<i;r++)RC(e[r],this,n,t);return n.sort(LC),n}}function LC(e,t){return e.distance-t.distance}function RC(e,t,n,r){if(e.layers.test(t.layers)&&e.raycast(t,n),!0===r){const r=e.children;for(let e=0,i=r.length;e<i;e++)RC(r[e],t,n,!0)}}class OC{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.radius=e,this.phi=t,this.theta=n,this}set(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){const e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(Zm(t/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}class zC{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.radius=e,this.theta=t,this.y=n,this}set(e,t,n){return this.radius=e,this.theta=t,this.y=n,this}copy(e){return this.radius=e.radius,this.theta=e.theta,this.y=e.y,this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+n*n),this.theta=Math.atan2(e,n),this.y=t,this}clone(){return(new this.constructor).copy(this)}}const FC=new og;class BC{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new og(1/0,1/0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new og(-1/0,-1/0);this.isBox2=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=FC.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(e){return this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)}containsBox(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}getParameter(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))}intersectsBox(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)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,FC).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const UC=new Dg,HC=new Dg;class WC{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg;this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){UC.subVectors(e,this.start),HC.subVectors(this.end,this.start);const n=HC.dot(HC);let r=HC.dot(UC)/n;return t&&(r=Zm(r,0,1)),r}closestPointToPoint(e,t,n){const r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}
vendor: 4,084 bytes, line 2
2applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}const VC=new Dg;class GC extends Pv{constructor(e,t){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const n=new Ty,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let o=0,a=1,s=32;o<s;o++,a++){const e=o/s*Math.PI*2,t=a/s*Math.PI*2;r.push(Math.cos(e),Math.sin(e),1,Math.cos(t),Math.sin(t),1)}n.setAttribute("position",new yy(r,3));const i=new zw({fog:!1,toneMapped:!1});this.cone=new Kw(n,i),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1);const e=this.light.distance?this.light.distance:1e3,t=e*Math.tan(this.light.angle);this.cone.scale.set(t,t,e),VC.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(VC),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}const qC=new Dg,KC=new cv,YC=new cv;class XC extends Kw{constructor(e){const t=ZC(e),n=new Ty,r=[],i=[],o=new $v(0,0,1),a=new $v(0,1,0);for(let s=0;s<t.length;s++){const e=t[s];e.parent&&e.parent.isBone&&(r.push(0,0,0),r.push(0,0,0),i.push(o.r,o.g,o.b),i.push(a.r,a.g,a.b))}n.setAttribute("position",new yy(r,3)),n.setAttribute("color",new yy(i,3));super(n,new zw({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.isSkeletonHelper=!0,this.type="SkeletonHelper",this.root=e,this.bones=t,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(e){const t=this.bones,n=this.geometry,r=n.getAttribute("position");YC.copy(this.root.matrixWorld).invert();for(let i=0,o=0;i<t.length;i++){const e=t[i];e.parent&&e.parent.isBone&&(KC.multiplyMatrices(YC,e.matrixWorld),qC.setFromMatrixPosition(KC),r.setXYZ(o,qC.x,qC.y,qC.z),KC.multiplyMatrices(YC,e.parent.matrixWorld),qC.setFromMatrixPosition(KC),r.setXYZ(o+1,qC.x,qC.y,qC.z),o+=2)}n.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(e)}dispose(){this.geometry.dispose(),this.material.dispose()}}function ZC(e){const t=[];!0===e.isBone&&t.push(e);for(let n=0;n<e.children.length;n++)t.push.apply(t,ZC(e.children[n]));return t}class QC extends Gy{constructor(e,t,n){super(new wk(t,4,2),new ty({wireframe:!0,fog:!1,toneMapped:!1})),this.light=e,this.color=n,this.type="PointLightHelper",this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)}}const JC=new Dg,$C=new $v,eT=new $v;class tT extends Pv{constructor(e,t,n){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,this.type="HemisphereLightHelper";const r=new bk(t);r.rotateY(.5*Math.PI),this.material=new ty({wireframe:!0,fog:!1,toneMapped:!1}),void 0===this.color&&(this.material.vertexColors=!0);const i=r.getAttribute("position"),o=new Float32Array(3*i.count);r.setAttribute("color",new cy(o,3)),this.add(new Gy(r,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){const e=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{const t=e.geometry.getAttribute("color");$C.copy(this.light.color),eT.copy(this.light.groundColor);for(let e=0,n=t.count;e<n;e++){const r=e<n/2?$C:eT;t.setXYZ(e,r.r,r.g,r.b)}t.needsUpdate=!0}this.light.updateWorldMatrix(!0,!1),e.lookAt(JC.setFromMatrixPosition(this.light.matrixWorld).negate())}}class nT extends Kw{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4473924,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8947848;
vendor: 6,423 bytes, line 2
2n=new $v(n),r=new $v(r);const i=t/2,o=e/t,a=e/2,s=[],l=[];for(let u=0,d=0,p=-a;u<=t;u++,p+=o){s.push(-a,0,p,a,0,p),s.push(p,0,-a,p,0,a);const e=u===i?n:r;e.toArray(l,d),d+=3,e.toArray(l,d),d+=3,e.toArray(l,d),d+=3,e.toArray(l,d),d+=3}const c=new Ty;c.setAttribute("position",new yy(s,3)),c.setAttribute("color",new yy(l,3));super(c,new zw({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}dispose(){this.geometry.dispose(),this.material.dispose()}}class rT extends Kw{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:64,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:4473924,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8947848;i=new $v(i),o=new $v(o);const a=[],s=[];if(t>1)for(let c=0;c<t;c++){const n=c/t*(2*Math.PI),r=Math.sin(n)*e,l=Math.cos(n)*e;a.push(0,0,0),a.push(r,0,l);const u=1&c?i:o;s.push(u.r,u.g,u.b),s.push(u.r,u.g,u.b)}for(let c=0;c<n;c++){const t=1&c?i:o,l=e-e/n*c;for(let e=0;e<r;e++){let n=e/r*(2*Math.PI),i=Math.sin(n)*l,o=Math.cos(n)*l;a.push(i,0,o),s.push(t.r,t.g,t.b),n=(e+1)/r*(2*Math.PI),i=Math.sin(n)*l,o=Math.cos(n)*l,a.push(i,0,o),s.push(t.r,t.g,t.b)}}const l=new Ty;l.setAttribute("position",new yy(a,3)),l.setAttribute("color",new yy(s,3));super(l,new zw({vertexColors:!0,toneMapped:!1})),this.type="PolarGridHelper"}dispose(){this.geometry.dispose(),this.material.dispose()}}const iT=new Dg,oT=new Dg,aT=new Dg;class sT extends Pv{constructor(e,t,n){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,this.type="DirectionalLightHelper",void 0===t&&(t=1);let r=new Ty;r.setAttribute("position",new yy([-t,t,0,t,t,0,t,-t,0,-t,-t,0,-t,t,0],3));const i=new zw({fog:!1,toneMapped:!1});this.lightPlane=new Vw(r,i),this.add(this.lightPlane),r=new Ty,r.setAttribute("position",new yy([0,0,0,0,0,1],3)),this.targetLine=new Vw(r,i),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),iT.setFromMatrixPosition(this.light.matrixWorld),oT.setFromMatrixPosition(this.light.target.matrixWorld),aT.subVectors(oT,iT),this.lightPlane.lookAt(oT),void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(oT),this.targetLine.scale.z=aT.length()}}const lT=new Dg,cT=new $y;class uT extends Kw{constructor(e){const t=new Ty,n=new zw({color:16777215,vertexColors:!0,toneMapped:!1}),r=[],i=[],o={};function a(e,t){s(e),s(t)}function s(e){r.push(0,0,0),i.push(0,0,0),void 0===o[e]&&(o[e]=[]),o[e].push(r.length/3-1)}a("n1","n2"),a("n2","n4"),a("n4","n3"),a("n3","n1"),a("f1","f2"),a("f2","f4"),a("f4","f3"),a("f3","f1"),a("n1","f1"),a("n2","f2"),a("n3","f3"),a("n4","f4"),a("p","n1"),a("p","n2"),a("p","n3"),a("p","n4"),a("u1","u2"),a("u2","u3"),a("u3","u1"),a("c","t"),a("p","c"),a("cn1","cn2"),a("cn3","cn4"),a("cf1","cf2"),a("cf3","cf4"),t.setAttribute("position",new yy(r,3)),t.setAttribute("color",new yy(i,3)),super(t,n),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update();const l=new $v(16755200),c=new $v(16711680),u=new $v(43775),d=new $v(16777215),p=new $v(3355443);this.setColors(l,c,u,d,p)}setColors(e,t,n,r,i){const o=this.geometry.getAttribute("color");o.setXYZ(0,e.r,e.g,e.b),o.setXYZ(1,e.r,e.g,e.b),o.setXYZ(2,e.r,e.g,e.b),o.setXYZ(3,e.r,e.g,e.b),o.setXYZ(4,e.r,e.g,e.b),o.setXYZ(5,e.r,e.g,e.b),o.setXYZ(6,e.r,e.g,e.b),o.setXYZ(7,e.r,e.g,e.b),o.setXYZ(8,e.r,e.g,e.b),o.setXYZ(9,e.r,e.g,e.b),o.setXYZ(10,e.r,e.g,e.b),o.setXYZ(11,e.r,e.g,e.b),o.setXYZ(12,e.r,e.g,e.b),o.setXYZ(13,e.r,e.g,e.b),o.setXYZ(14,e.r,e.g,e.b),o.setXYZ(15,e.r,e.g,e.b),o.setXYZ(16,e.r,e.g,e.b),o.setXYZ(17,e.r,e.g,e.b),o.setXYZ(18,e.r,e.g,e.b),o.setXYZ(19,e.r,e.g,e.b),o.setXYZ(20,e.r,e.g,e.b),o.setXYZ(21,e.r,e.g,e.b),o.setXYZ(22,e.r,e.g,e.b),o.setXYZ(23,e.r,e.g,e.b),o.setXYZ(24,t.r,t.g,t.b),o.setXYZ(25,t.r,t.g,t.b),o.setXYZ(26,t.r,t.g,t.b),o.setXYZ(27,t.r,t.g,t.b),o.setXYZ(28,t.r,t.g,t.b),o.setXYZ(29,t.r,t.g,t.b),o.setXYZ(30,t.r,t.g,t.b),o.setXYZ(31,t.r,t.g,t.b),o.setXYZ(32,n.r,n.g,n.b),o.setXYZ(33,n.r,n.g,n.b),o.setXYZ(34,n.r,n.g,n.b),o.setXYZ(35,n.r,n.g,n.b),o.setXYZ(36,n.r,n.g,n.b),o.setXYZ(37,n.r,n.g,n.b),o.setXYZ(38,r.r,r.g,r.b),o.setXYZ(39,r.r,r.g,r.b),o.setXYZ(40,i.r,i.g,i.b),o.setXYZ(41,i.r,i.g,i.b),o.setXYZ(42,i.r,i.g,i.b),o.setXYZ(43,i.r,i.g,i.b),o.setXYZ(44,i.r,i.g,i.b),o.setXYZ(45,i.r,i.g,i.b),o.setXYZ(46,i.r,i.g,i.b),o.setXYZ(47,i.r,i.g,i.b),o.setXYZ(48,i.r,i.g,i.b),o.setXYZ(49,i.r,i.g,i.b),o.needsUpdate=!0}update(){const e=this.geometry,t=this.pointMap;cT.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),dT("c",t,e,cT,0,0,-1),dT("t",t,e,cT,0,0,1),dT("n1",t,e,cT,-1,-1,-1),dT("n2",t,e,cT,1,-1,-1),dT("n3",t,e,cT,-1,1,-1),dT("n4",t,e,cT,1,1,-1),dT("f1",t,e,cT,-1,-1,1),dT("f2",t,e,cT,1,-1,1),dT("f3",t,e,cT,-1,1,1),dT("f4",t,e,cT,1,1,1),dT("u1",t,e,cT,.7,1.1,-1),dT("u2",t,e,cT,-.7,1.1,-1),dT("u3",t,e,cT,0,2,-1),dT("cf1",t,e,cT,-1,0,1),dT("cf2",t,e,cT,1,0,1),dT("cf3",t,e,cT,0,-1,1),dT("cf4",t,e,cT,0,1,1),dT("cn1",t,e,cT,-1,0,-1),dT("cn2",t,e,cT,1,0,-1),dT("cn3",t,e,cT,0,-1,-1),dT("cn4",t,e,cT,0,1,-1),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}}function dT(e,t,n,r,i,o,a){lT.set(i,o,a).unproject(r);const s=t[e];if(void 0!==s){const e=n.getAttribute("position");for(let t=0,n=s.length;t<n;t++)e.setXYZ(s[t],lT.x,lT.y,lT.z)}}const pT=new Rg;class hT extends Kw{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16776960;const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Float32Array(24),i=new Ty;i.setIndex(new cy(n,1)),i.setAttribute("position",new cy(r,3)),super(i,new zw({color:t,toneMapped:!1})),this.object=e,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(e){if(void 0!==e&&console.warn("THREE.BoxHelper: .update(
2) has no longer arguments."),void 0!==this.object&&pT.setFromObject(this.object),pT.isEmpty())return;const t=pT.min,n=pT.max,r=this.geometry.attributes.position,i=r.array;i[0]=n.x,i[1]=n.y,i[2]=n.z,i[3]=t.x,i[4]=n.y,i[5]=n.z,i[6]=t.x,i[7]=t.y,i[8]=n.z,i[9]=n.x,i[10]=t.y,i[11]=n.z,i[12]=n.x,i[13]=n.y,i[14]=t.z,i[15]=t.x,i[16]=n.y,i[17]=t.z,i[18]=t.x,i[19]=t.y,i[20]=t.z,i[21]=n.x,i[22]=t.y,i[23]=t.z,r.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(e){return this.object=e,this.update(),this}copy(e,t){return super.copy(e,t),this.object=e.object,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class fT extends Kw{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16776960;const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Ty;r.setIndex(new cy(n,1)),r.setAttribute("position",new yy([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),super(r,new zw({color:t,toneMapped:!1})),this.box=e,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(e){const t=this.box;t.isEmpty()||(t.getCenter(this.position),t.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(e))}dispose(){this.geometry.dispose(),this.material.dispose()}}class mT extends Vw{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16776960,r=new Ty;r.setAttribute("position",new yy([1,-1,0,-1,1,0,-1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],3)),r.computeBoundingSphere(),super(r,new zw({color:n,toneMapped:!1})),this.type="PlaneHelper",this.plane=e,this.size=t;const i=new Ty;i.setAttribute("position",new yy([1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],3)),i.computeBoundingSphere(),this.add(new Gy(i,new ty({color:n,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(e){this.position.set(0,0,0),this.scale.set(.5*this.size,.5*this.size,1),this.lookAt(this.plane.normal),this.translateZ(-this.plane.constant),super.updateMatrixWorld(e)}dispose(){this.geometry.dispose(),this.material.dispose(),this.children[0].geometry.dispose(),this.children[0].material.dispose()}}const gT=new Dg;let vT,yT;class bT extends Pv{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Dg(0,0,1),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Dg(0,0,0),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:16776960,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.2*n,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:.2*i;super(),this.type="ArrowHelper",void 0===vT&&(vT=new Ty,vT.setAttribute("position",new yy([0,0,0,0,1,0],3)),yT=new I_(0,.5,1,5,1),yT.translate(0,-.5,0)),this.position.copy(t),this.line=new Vw(vT,new zw({color:r,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Gy(yT,new ty({color:r,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(n,i,o)}setDirection(e){if(e.y>.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{gT.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(gT,t)}}setLength(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2*e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.2*t;this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class xT extends Kw{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new Ty;n.setAttribute("position",new yy(t,3)),n.setAttribute("color",new yy([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));super(n,new zw({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}
vendor: 5,323 bytes, line 2
2setColors(e,t,n){const r=new $v,i=this.geometry.attributes.color.array;return r.set(e),r.toArray(i,0),r.toArray(i,3),r.set(t),r.toArray(i,6),r.toArray(i,9),r.set(n),r.toArray(i,12),r.toArray(i,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class ST{constructor(){this.type="ShapePath",this.color=new $v,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new A_,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,i,o){return this.currentPath.bezierCurveTo(e,t,n,r,i,o),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e,t){const n=t.length;let r=!1;for(let i=n-1,o=0;o<n;i=o++){let n=t[i],a=t[o],s=a.x-n.x,l=a.y-n.y;if(Math.abs(l)>Number.EPSILON){if(l<0&&(n=t[o],s=-s,a=t[i],l=-l),e.y<n.y||e.y>a.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{const t=l*(e.x-n.x)-s*(e.y-n.y);if(0===t)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(a.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=a.x)return!0}}return r}const n=hk.isClockWise,r=this.subPaths;if(0===r.length)return[];let i,o,a;const s=[];if(1===r.length)return o=r[0],a=new U_,a.curves=o.curves,s.push(a),s;let l=!n(r[0].getPoints());l=e?!l:l;const c=[],u=[];let d,p,h=[],f=0;u[f]=void 0,h[f]=[];for(let m=0,g=r.length;m<g;m++)o=r[m],d=o.getPoints(),i=n(d),i=e?!i:i,i?(!l&&u[f]&&f++,u[f]={s:new U_,p:d},u[f].s.curves=o.curves,l&&f++,h[f]=[]):h[f].push({h:o,p:d[0]});if(!u[0])return function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n],i=new U_;i.curves=r.curves,t.push(i)}return t}(r);if(u.length>1){let e=!1,n=0;for(let t=0,r=u.length;t<r;t++)c[t]=[];for(let r=0,i=u.length;r<i;r++){const i=h[r];for(let o=0;o<i.length;o++){const a=i[o];let s=!0;for(let i=0;i<u.length;i++)t(a.p,u[i].p)&&(r!==i&&n++,s?(s=!1,c[i].push(a)):e=!0);s&&c[r].push(a)}}n>0&&!1===e&&(h=c)}for(let m=0,g=u.length;m<g;m++){a=u[m].s,s.push(a),p=h[m];for(let e=0,t=p.length;e<t;e++)a.holes.push(p[e].h)}return s}}class wT extends Ky{constructor(e,t,n,r,i,o){console.warn("THREE.BoxBufferGeometry has been renamed to THREE.BoxGeometry."),super(e,t,n,r,i,o)}}class _T extends j_{constructor(e,t,n,r){console.warn("THREE.CapsuleBufferGeometry has been renamed to THREE.CapsuleGeometry."),super(e,t,n,r)}}class kT extends N_{constructor(e,t,n,r){console.warn("THREE.CircleBufferGeometry has been renamed to THREE.CircleGeometry."),super(e,t,n,r)}}class MT extends D_{constructor(e,t,n,r,i,o,a){console.warn("THREE.ConeBufferGeometry has been renamed to THREE.ConeGeometry."),super(e,t,n,r,i,o,a)}}class CT extends I_{constructor(e,t,n,r,i,o,a,s){console.warn("THREE.CylinderBufferGeometry has been renamed to THREE.CylinderGeometry."),super(e,t,n,r,i,o,a,s)}}class TT extends L_{constructor(e,t){console.warn("THREE.DodecahedronBufferGeometry has been renamed to THREE.DodecahedronGeometry."),super(e,t)}}class AT extends gk{constructor(e,t){console.warn("THREE.ExtrudeBufferGeometry has been renamed to THREE.ExtrudeGeometry."),super(e,t)}}class ET extends yk{constructor(e,t){console.warn("THREE.IcosahedronBufferGeometry has been renamed to THREE.IcosahedronGeometry."),super(e,t)}}class jT extends E_{constructor(e,t,n,r){console.warn("THREE.LatheBufferGeometry has been renamed to THREE.LatheGeometry."),super(e,t,n,r)}}class NT extends bk{constructor(e,t){console.warn("THREE.OctahedronBufferGeometry has been renamed to THREE.OctahedronGeometry."),super(e,t)}}class IT extends fb{constructor(e,t,n,r){console.warn("THREE.PlaneBufferGeometry has been renamed to THREE.PlaneGeometry."),super(e,t,n,r)}}class DT extends P_{constructor(e,t,n,r){console.warn("THREE.PolyhedronBufferGeometry has been renamed to THREE.PolyhedronGeometry."),super(e,t,n,r)}}class PT extends xk{constructor(e,t,n,r,i,o){console.warn("THREE.RingBufferGeometry has been renamed to THREE.RingGeometry."),super(e,t,n,r,i,o)}}class LT extends Sk{constructor(e,t){console.warn("THREE.ShapeBufferGeometry has been renamed to THREE.ShapeGeometry."),super(e,t)}}class RT extends wk{constructor(e,t,n,r,i,o,a){console.warn("THREE.SphereBufferGeometry has been renamed to THREE.SphereGeometry."),super(e,t,n,r,i,o,a)}}class OT extends _k{constructor(e,t){console.warn("THREE.TetrahedronBufferGeometry has been renamed to THREE.TetrahedronGeometry."),super(e,t)}}class zT extends kk{constructor(e,t,n,r,i){console.warn("THREE.TorusBufferGeometry has been renamed to THREE.TorusGeometry."),super(e,t,n,r,i)}}class FT extends Mk{constructor(e,t,n,r,i,o){console.warn("THREE.TorusKnotBufferGeometry has been renamed to THREE.TorusKnotGeometry."),super(e,t,n,r,i,o)}}class BT extends Ck{constructor(e,t,n,r,i){console.warn("THREE.TubeBufferGeometry has been renamed to THREE.TubeGeometry."),super(e,t,n,r,i)}}"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:Ap}})),"undefined"!==typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=Ap);var UT=n(67205);function HT(e){let t;const n=new Set,r=(e,r)=>{const i="function"===typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({}
2,t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is;console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=r(t);function s(){const n=r(t);if(!o(a,n)){const t=a;e(a=n,t)}}return n.add(s),()=>n.delete(s)}(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}const WT="undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?r.useEffect:r.useLayoutEffect;const VT=[];function GT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;if(e===t)return!0;if(!e||!t)return!1;const r=e.length;if(t.length!==r)return!1;for(let i=0;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function qT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};null===t&&(t=[e]);for(const a of VT)if(GT(t,a.keys,a.equal)){if(n)return;if(Object.prototype.hasOwnProperty.call(a,"error"))throw a.error;if(Object.prototype.hasOwnProperty.call(a,"response"))return r.lifespan&&r.lifespan>0&&(a.timeout&&clearTimeout(a.timeout),a.timeout=setTimeout(a.remove,r.lifespan)),a.response;if(!n)throw a.promise}const i={keys:t,equal:r.equal,remove:()=>{const e=VT.indexOf(i);-1!==e&&VT.splice(e,1)},promise:(o=e,"object"===typeof o&&"function"===typeof o.then?e:e(...t)).then(e=>{i.response=e,r.lifespan&&r.lifespan>0&&(i.timeout=setTimeout(i.remove,r.lifespan))}).catch(e=>i.error=e)};var o;if(VT.push(i),!n)throw i.promise}var KT=n(92016),YT=n.n(KT),XT=n(78853);const ZT=["args","attach"],QT=["args","children"],JT=["args","children"],$T=["children","key","ref"],eA=["children","key","ref"],tA=["params"];const nA={};var rA,iA;const oA=e=>"colorSpace"in e||"outputColorSpace"in e,aA=()=>{var e;return null!=(e=nA.ColorManagement)?e:null},sA=e=>e&&e.isOrthographicCamera,lA="undefined"!==typeof window&&(null!=(rA=window.document)&&rA.createElement||"ReactNative"===(null==(iA=window.navigator)?void 0:iA.product))?r.useLayoutEffect:r.useEffect;function cA(e){const t=r.useRef(e);return lA(()=>{t.current=e},[e]),t}function uA(e){let{set:t}=e;return lA(()=>(t(new Promise(()=>null)),()=>t(!1)),[t]),null}class dA extends r.Component{constructor(){super(...arguments),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}dA.getDerivedStateFromError=()=>({error:!0});const pA="__default",hA=new Map,fA=e=>e&&!!e.memoized&&!!e.changes;function mA(e){var t;const n="undefined"!==typeof window?null!=(t=window.devicePixelRatio)?t:2:1;return Array.isArray(e)?Math.min(Math.max(e[0],n),e[1]):e}const gA=e=>{var t;return null==(t=e.__r3f)?void 0:t.root.getState()};function vA(e){let t=e.__r3f.root;for(;t.getState().previousRoot;)t=t.getState().previousRoot;return t}const yA={obj:e=>e===Object(e)&&!yA.arr(e)&&"function"!==typeof e,fun:e=>"function"===typeof e,str:e=>"string"===typeof e,num:e=>"number"===typeof e,boo:e=>"boolean"===typeof e,und:e=>void 0===e,arr:e=>Array.isArray(e),equ(e,t){let{arrays:n="shallow",objects:r="reference",strict:i=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(typeof e!==typeof t||!!e!==!!t)return!1;if(yA.str(e)||yA.num(e)||yA.boo(e))return e===t;const o=yA.obj(e);if(o&&"reference"===r)return e===t;const a=yA.arr(e);if(a&&"reference"===n)return e===t;if((a||o)&&e===t)return!0;let s;for(s in e)if(!(s in t))return!1;if(o&&"shallow"===n&&"shallow"===r){for(s in i?t:e)if(!yA.equ(e[s],t[s],{strict:i,objects:"reference"}))return!1}else for(s in i?t:e)if(e[s]!==t[s])return!1;if(yA.und(s)){if(a&&0===e.length&&0===t.length)return!0;if(o&&0===Object.keys(e).length&&0===Object.keys(t).length)return!0;if(e!==t)return!1}return!0}};function bA(e){const t={nodes:{},materials:{}};return e&&e.traverse(e=>{e.name&&(t.nodes[e.name]=e),e.material&&!t.materials[e.material.name]&&(t.materials[e.material.name]=e.material)}),t}function xA(e,t){return e.__r3f=Fe({type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null},t),e}function SA(e,t){let n=e;if(t.includes("-")){const r=t.split("-"),i=r.pop();return n=r.reduce((e,t)=>
2e[t],e),{target:n,key:i}}return{target:n,key:t}}const wA=/-\d+$/;function _A(e,t,n){if(yA.str(n)){if(wA.test(n)){const t=n.replace(wA,""),{target:r,key:i}=SA(e,t);Array.isArray(r[i])||(r[i]=[])}const{target:r,key:i}=SA(e,n);t.__r3f.previousAttach=r[i],r[i]=t}else t.__r3f.previousAttach=n(e,t)}function kA(e,t,n){var r,i;if(yA.str(n)){const{target:r,key:i}=SA(e,n),o=t.__r3f.previousAttach;void 0===o?delete r[i]:r[i]=o}else null==(r=t.__r3f)||null==r.previousAttach||r.previousAttach(e,t);null==(i=t.__r3f)||delete i.previousAttach}function MA(e,t){let{children:n,key:r,ref:i}=t,o=Yt(t,$T),a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{children:s,key:l,ref:c}=a,u=Yt(a,eA),d=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const p=e.__r3f,h=Object.entries(o),f=[];if(d){const e=Object.keys(u);for(let t=0;t<e.length;t++)o.hasOwnProperty(e[t])||h.unshift([e[t],pA+"remove"])}h.forEach(t=>{let[n,r]=t;var i;if(null!=(i=e.__r3f)&&i.primitive&&"object"===n)return;if(yA.equ(r,u[n]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(n))return f.push([n,r,!0,[]]);let a=[];n.includes("-")&&(a=n.split("-")),f.push([n,r,!1,a]);for(const e in o){const t=o[e];e.startsWith("".concat(n,"-"))&&f.push([e,t,!1,e.split("-")])}});const m=Fe({},o);return null!=p&&p.memoizedProps&&null!=p&&p.memoizedProps.args&&(m.args=p.memoizedProps.args),null!=p&&p.memoizedProps&&null!=p&&p.memoizedProps.attach&&(m.attach=p.memoizedProps.attach),{memoized:m,changes:f}}const CA="undefined"!==typeof process&&!1;function TA(e,t){var n;const r=e.__r3f,i=null==r?void 0:r.root,o=null==i||null==i.getState?void 0:i.getState(),{memoized:a,changes:s}=fA(t)?t:MA(e,t),l=null==r?void 0:r.eventCount;e.__r3f&&(e.__r3f.memoizedProps=a);for(let d=0;d<s.length;d++){let[t,n,i,a]=s[d];if(oA(e)){const e=3001,r="srgb",i="srgb-linear";"encoding"===t?(t="colorSpace",n=n===e?r:i):"outputEncoding"===t&&(t="outputColorSpace",n=n===e?r:i)}let l=e,p=l[t];if(a.length&&(p=a.reduce((e,t)=>e[t],e),!p||!p.set)){const[n,...r]=a.reverse();l=r.reverse().reduce((e,t)=>e[t],e),t=n}if(n===pA+"remove")if(l.constructor){let e=hA.get(l.constructor);e||(e=new l.constructor,hA.set(l.constructor,e)),n=e[t]}else n=0;if(i&&r)n?r.handlers[t]=n:delete r.handlers[t],r.eventCount=Object.keys(r.handlers).length;
2else if(p&&p.set&&(p.copy||p instanceof xv)){if(Array.isArray(n))p.fromArray?p.fromArray(n):p.set(...n);else if(p.copy&&n&&n.constructor&&(CA?p.constructor.name===n.constructor.name:p.constructor===n.constructor))p.copy(n);else if(void 0!==n){var c;const e=null==(c=p)?void 0:c.isColor;!e&&p.setScalar?p.setScalar(n):p instanceof xv&&n instanceof xv?p.mask=n.mask:p.set(n),!aA()&&o&&!o.linear&&e&&p.convertSRGBToLinear()}}else{var u;if(l[t]=n,null!=(u=l[t])&&u.isTexture&&l[t].format===af&&l[t].type===Kh&&o){const e=l[t];oA(e)&&oA(o.gl)?e.colorSpace=o.gl.outputColorSpace:e.encoding=o.gl.outputEncoding}}AA(e)}if(r&&r.parent&&e.raycast&&l!==r.eventCount){const t=vA(e).getState().internal,n=t.interaction.indexOf(e);n>-1&&t.interaction.splice(n,1),r.eventCount&&t.interaction.push(e)}return!(1===s.length&&"onUpdate"===s[0][0])&&s.length&&null!=(n=e.__r3f)&&n.parent&&EA(e),e}function AA(e){var t,n;const r=null==(t=e.__r3f)||null==(n=t.root)||null==n.getState?void 0:n.getState();r&&0===r.internal.frames&&r.invalidate()}function EA(e){null==e.onUpdate||e.onUpdate(e)}function jA(e,t){e.manual||(sA(e)?(e.left=t.width/-2,e.right=t.width/2,e.top=t.height/2,e.bottom=t.height/-2):e.aspect=t.width/t.height,e.updateProjectionMatrix(),e.updateMatrixWorld())}function NA(e){return(e.eventObject||e.object).uuid+"/"+e.index+e.instanceId}function IA(e,t,n,r){const i=n.get(t);i&&(n.delete(t),0===n.size&&(e.delete(r),i.target.releasePointerCapture(r)))}function DA(e){function t(e){return e.filter(e=>["Move","Over","Enter","Out","Leave"].some(t=>{var n;return null==(n=e.__r3f)?void 0:n.handlers["onPointer"+t]}))}function n(t){const{internal:n}=e.getState();for(const e of n.hovered.values())if(!t.length||!t.find(t=>t.object===e.object&&t.index===e.index&&t.instanceId===e.instanceId)){const r=e.eventObject.__r3f,i=null==r?void 0:r.handlers;if(n.hovered.delete(NA(e)),null!=r&&r.eventCount){const n=Fe(Fe({},e),{},{intersections:t});null==i.onPointerOut||i.onPointerOut(n),null==i.onPointerLeave||i.onPointerLeave(n)}}}function r(e,t){for(let n=0;n<t.length;n++){const r=t[n].__r3f;null==r||null==r.handlers.onPointerMissed||r.handlers.onPointerMissed(e)}}return{handlePointer:function(i){switch(i){case"onPointerLeave":case"onPointerCancel":return()=>n([]);case"onLostPointerCapture":return t=>{const{internal:r}=e.getState();"pointerId"in t&&r.capturedMap.has(t.pointerId)&&requestAnimationFrame(()=>{r.capturedMap.has(t.pointerId)&&(r.capturedMap.delete(t.pointerId),n([]))})}}return function(o){const{onPointerMissed:a,internal:s}=e.getState();s.lastEvent.current=o;const l="onPointerMove"===i,c="onClick"===i||"onContextMenu"===i||"onDoubleClick"===i,u=function(t,n){const r=e.getState(),i=new Set,o=[],a=n?n(r.internal.interaction):r.internal.interaction;for(let e=0;e<a.length;e++){const t=gA(a[e]);t&&(t.raycaster.camera=void 0)}r.previousRoot||null==r.events.compute||r.events.compute(t,r);let s=a.flatMap(function(e){const n=gA(e);return n&&n.events.enabled&&null!==n.raycaster.camera?(void 0===n.raycaster.camera&&(null==n.events.compute||n.events.compute(t,n,null==(r=n.previousRoot)?void 0:r.getState()),void 0===n.raycaster.camera&&(n.raycaster.camera=null)),n.raycaster.camera?n.raycaster.intersectObject(e,!0):[]):[];var r}).sort((e,t)=>{const n=gA(e.object),r=gA(t.object);return n&&r&&r.events.priority-n.events.priority||e.distance-t.distance}).filter(e=>{const t=NA(e);return!i.has(t)&&(i.add(t),!0)});r.events.filter&&(s=r.events.filter(s,r));for(const e of s){let t=e.object;for(;t;){var l;null!=(l=t.__r3f)&&l.eventCount&&o.push(Fe(Fe({},e),{},{eventObject:t})),t=t.parent}}if("pointerId"in t&&r.internal.capturedMap.has(t.pointerId))for(let e of r.internal.capturedMap.get(t.pointerId).values())i.has(NA(e.intersection))||o.push(e.intersection);return o}(o,l?t:void 0),d=c?function(t){const{internal:n}=e.getState(),r=t.offsetX-n.initialClick[0],i=t.offsetY-n.initialClick[1];return Math.round(Math.sqrt(r*r+i*i))}(o):0;"onPointerDown"===i&&(s.initialClick=[o.offsetX,o.offsetY],s.initialHits=u.map(e=>e.eventObject)),c&&!u.length&&d<=2&&(r(o,s.interaction),a&&a(o)),l&&n(u),function(t,r,i,o){const a=e.getState();if(t.length){const e={stopped:!1};for(const s of t){const l=gA(s.object)||a,{raycaster:c,pointer:u,camera:d,internal:p}=l,h=new Dg(u.x,u.y,0).unproject(d),f=e=>{var t,n;return null!=(t=null==(n=p.capturedMap.get(e))?void 0:n.has(s.eventObject))&&t},m=e=>{const t={intersection:s,target:r.target};
2p.capturedMap.has(e)?p.capturedMap.get(e).set(s.eventObject,t):p.capturedMap.set(e,new Map([[s.eventObject,t]])),r.target.setPointerCapture(e)},g=e=>{const t=p.capturedMap.get(e);t&&IA(p.capturedMap,s.eventObject,t,e)};let v={};for(let e in r){let t=r[e];"function"!==typeof t&&(v[e]=t)}let y=Fe(Fe(Fe({},s),v),{},{pointer:u,intersections:t,stopped:e.stopped,delta:i,unprojectedPoint:h,ray:c.ray,camera:d,stopPropagation(){const i="pointerId"in r&&p.capturedMap.get(r.pointerId);(!i||i.has(s.eventObject))&&(y.stopped=e.stopped=!0,p.hovered.size&&Array.from(p.hovered.values()).find(e=>e.eventObject===s.eventObject))&&n([...t.slice(0,t.indexOf(s)),s])},target:{hasPointerCapture:f,setPointerCapture:m,releasePointerCapture:g},currentTarget:{hasPointerCapture:f,setPointerCapture:m,releasePointerCapture:g},nativeEvent:r});if(o(y),!0===e.stopped)break}}}(u,o,d,function(e){const t=e.eventObject,n=t.__r3f,a=null==n?void 0:n.handlers;if(null!=n&&n.eventCount)if(l){if(a.onPointerOver||a.onPointerEnter||a.onPointerOut||a.onPointerLeave){const t=NA(e),n=s.hovered.get(t);n?n.stopped&&e.stopPropagation():(s.hovered.set(t,e),null==a.onPointerOver||a.onPointerOver(e),null==a.onPointerEnter||a.onPointerEnter(e))}null==a.onPointerMove||a.onPointerMove(e)}else{const n=a[i];n?c&&!s.initialHits.includes(t)||(r(o,s.interaction.filter(e=>!s.initialHits.includes(e))),n(e)):c&&s.initialHits.includes(t)&&r(o,s.interaction.filter(e=>!s.initialHits.includes(e)))}})}}}}const PA=e=>!(null==e||!e.render),LA=r.createContext(null),RA=(e,t)=>{const n=function(e){const t="function"===typeof e?HT(e):e,n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.getState,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is;const[,i]=(0,r.useReducer)(e=>e+1,0),o=t.getState(),a=(0,r.useRef)(o),s=(0,r.useRef)(e),l=(0,r.useRef)(n),c=(0,r.useRef)(!1),u=(0,r.useRef)();let d;void 0===u.current&&(u.current=e(o));let p=!1;(a.current!==o||s.current!==e||l.current!==n||c.current)&&(d=e(o),p=!n(u.current,d)),WT(()=>{p&&(u.current=d),a.current=o,s.current=e,l.current=n,c.current=!1});const h=(0,r.useRef)(o);WT(()=>{const e=()=>{try{const e=t.getState(),n=s.current(e);l.current(u.current,n)||(a.current=e,u.current=n,i())}catch(ME){c.current=!0,i()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n},[]);const f=p?d:u.current;return(0,r.useDebugValue)(f),f};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}((n,i)=>{const o=new Dg,a=new Dg,s=new Dg;function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i().camera,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i().size;const{width:r,height:l,top:c,left:u}=n,d=r/l;t.isVector3?s.copy(t):s.set(...t);const p=e.getWorldPosition(o).distanceTo(s);if(sA(e))return{width:r/e.zoom,height:l/e.zoom,top:c,left:u,factor:1,distance:p,aspect:d};{const t=e.fov*Math.PI/180,n=2*Math.tan(t/2)*p,i=n*(r/l);return{width:i,height:n,top:c,left:u,factor:r/i,distance:p,aspect:d}}}let c;const u=e=>n(t=>({performance:Fe(Fe({},t.performance),{},{current:e})})),d=new og,p={set:n,get:i,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return e(i(),t)},advance:(e,n)=>t(e,n,i()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new rC,pointer:d,mouse:d,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const e=i();c&&clearTimeout(c),e.performance.current!==e.performance.min&&u(e.performance.min),c=setTimeout(()=>u(i().performance.max),e.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:l},setEvents:e=>n(t=>Fe(Fe({},t),{},{events:Fe(Fe({},t.events),e)})),setSize:(e,t,r,o,s)=>
2{const c=i().camera,u={width:e,height:t,top:o||0,left:s||0,updateStyle:r};n(e=>({size:u,viewport:Fe(Fe({},e.viewport),l(c,a,u))}))},setDpr:e=>n(t=>{const n=mA(e);return{viewport:Fe(Fe({},t.viewport),{},{dpr:n,initialDpr:t.viewport.initialDpr||n})}}),setFrameloop:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"always";const t=i().clock;t.stop(),t.elapsedTime=0,"never"!==e&&(t.start(),t.elapsedTime=0),n(()=>({frameloop:e}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:r.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(e,t,n)=>{const r=i().internal;return r.priority=r.priority+(t>0?1:0),r.subscribers.push({ref:e,priority:t,store:n}),r.subscribers=r.subscribers.sort((e,t)=>e.priority-t.priority),()=>{const n=i().internal;null!=n&&n.subscribers&&(n.priority=n.priority-(t>0?1:0),n.subscribers=n.subscribers.filter(t=>t.ref!==e))}}}};return p}),i=n.getState();let o=i.size,a=i.viewport.dpr,s=i.camera;return n.subscribe(()=>{const{camera:e,size:t,viewport:r,gl:i,set:l}
2=n.getState();if(t.width!==o.width||t.height!==o.height||r.dpr!==a){var c;o=t,a=r.dpr,jA(e,t),i.setPixelRatio(r.dpr);const n=null!=(c=t.updateStyle)?c:"undefined"!==typeof HTMLCanvasElement&&i.domElement instanceof HTMLCanvasElement;i.setSize(t.width,t.height,n)}e!==s&&(s=e,l(t=>({viewport:Fe(Fe({},t.viewport),t.viewport.getCurrentViewport(e))})))}),n.subscribe(t=>e(t)),n};let OA,zA=new Set,FA=new Set,BA=new Set;function UA(e,t){if(e.size)for(const{callback:n}of e.values())n(t)}function HA(e,t){switch(e){case"before":return UA(zA,t);case"after":return UA(FA,t);case"tail":return UA(BA,t)}}let WA,VA;function GA(e,t,n){let r=t.clock.getDelta();for("never"===t.frameloop&&"number"===typeof e&&(r=e-t.clock.elapsedTime,t.clock.oldTime=t.clock.elapsedTime,t.clock.elapsedTime=e),WA=t.internal.subscribers,OA=0;OA<WA.length;OA++)VA=WA[OA],VA.ref.current(VA.store.getState(),r,n);return!t.internal.priority&&t.gl.render&&t.gl.render(t.scene,t.camera),t.internal.frames=Math.max(0,t.internal.frames-1),"always"===t.frameloop?1:t.internal.frames}function qA(){const e=r.useContext(LA);if(!e)throw new Error("R3F: Hooks can only be used within the Canvas component!");return e}const KA=new WeakMap;function YA(e,t){return function(n){let r=KA.get(n);r||(r=new n,KA.set(n,r)),e&&e(r);for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return Promise.all(o.map(e=>new Promise((n,i)=>r.load(e,e=>{e.scene&&Object.assign(e,bA(e.scene)),n(e)},t,t=>i(new Error("Could not load ".concat(e,": ").concat(null==t?void 0:t.message)))))))}}function XA(e,t,n,r){const i=Array.isArray(t)?t:[t],o=((e,t,n)=>qT(e,t,!1,n))(YA(n,r),[e,...i],{equal:yA.equ});return Array.isArray(t)?o:o[0]}XA.preload=function(e,t,n){const r=Array.isArray(t)?t:[t];return((e,t,n)=>{qT(e,t,!0,n)})(YA(n),[e,...r])},XA.clear=function(e,t){return(e=>{if(void 0===e||0===e.length)VT.splice(0,VT.length);else{const t=VT.find(t=>GT(e,t.keys,t.equal));t&&t.remove()}})([e,...Array.isArray(t)?t:[t]])};const ZA=new Map,{invalidate:QA,advance:JA}=function(e){let t,n,r,i=!1,o=!1;function a(s){n=requestAnimationFrame(a),i=!0,t=0,HA("before",s),o=!0;for(const n of e.values()){var l;r=n.store.getState(),!r.internal.active||!("always"===r.frameloop||r.internal.frames>0)||null!=(l=r.gl.xr)&&l.isPresenting||(t+=GA(s,r))}if(o=!1,HA("after",s),0===t)return HA("tail",s),i=!1,cancelAnimationFrame(n)}return{loop:a,invalidate:function t(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;var s;if(!n)return e.forEach(e=>t(e.store.getState(),r));null!=(s=n.gl.xr)&&s.isPresenting||!n.internal.active||"never"===n.frameloop||(n.internal.frames=r>1?Math.min(60,n.internal.frames+r):o?2:1,i||(i=!0,requestAnimationFrame(a)))},advance:function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(n&&HA("before",t),r)GA(t,r,i);else for(const o of e.values())GA(t,o.store.getState());n&&HA("after",t)}}}(ZA),{reconciler:$A,applyProps:eE}=function(e,t){function n(e,t,n){let r,{args:i=[],attach:o}=t,a=Yt(t,ZT),s="".concat(e[0].toUpperCase()).concat(e.slice(1));if("primitive"===e){if(void 0===a.object)throw new Error("R3F: Primitives without 'object' are invalid!");r=xA(a.object,{type:e,root:n,attach:o,primitive:!0})}else{const t=nA[s];if(!t)throw new Error("R3F: ".concat(s," is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively"));if(!Array.isArray(i))throw new Error("R3F: The args prop must be an array!");r=xA(new t(...i),{type:e,root:n,attach:o,memoizedProps:{args:i}})}return void 0===r.__r3f.attach&&(r.isBufferGeometry?r.__r3f.attach="geometry":r.isMaterial&&(r.__r3f.attach="material")),"inject"!==s&&TA(r,a),r}function r(e,t){let n=!1;var r,i;t&&(null!=(r=t.__r3f)&&r.attach?_A(e,t,t.__r3f.attach):t.isObject3D&&e.isObject3D&&(e.add(t),n=!0),n||null==(i=e.__r3f)||i.objects.push(t),t.__r3f||xA(t,{}),t.__r3f.parent=e,EA(t),AA(t))}function i(e,t,n){let r=!1;if(t){var i,o;if(null!=(i=t.__r3f)&&i.attach)_A(e,t,t.__r3f.attach);else if(t.isObject3D&&e.isObject3D){t.parent=e,t.dispatchEvent({type:"added"}),e.dispatchEvent({type:"childadded",child:t});const i=e.children.filter(e=>e!==t),o=i.indexOf(n);e.children=[...i.slice(0,o),t,...i.slice(o)],r=!0}r||null==(o=e.__r3f)||o.objects.push(t),t.__r3f||xA(t,{}),t.__r3f.parent=e,EA(t),AA(t)}}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];
2e&&[...e].forEach(e=>a(t,e,n))}function a(e,t,n){if(t){var r,i,a;if(t.__r3f&&(t.__r3f.parent=null),null!=(r=e.__r3f)&&r.objects&&(e.__r3f.objects=e.__r3f.objects.filter(e=>e!==t)),null!=(i=t.__r3f)&&i.attach)kA(e,t,t.__r3f.attach);else if(t.isObject3D&&e.isObject3D){var s;e.remove(t),null!=(s=t.__r3f)&&s.root&&function(e,t){const{internal:n}=e.getState();n.interaction=n.interaction.filter(e=>e!==t),n.initialHits=n.initialHits.filter(e=>e!==t),n.hovered.forEach((e,r)=>{e.eventObject!==t&&e.object!==t||n.hovered.delete(r)}),n.capturedMap.forEach((e,r)=>{IA(n.capturedMap,t,e,r)})}(vA(t),t)}const c=null==(a=t.__r3f)?void 0:a.primitive,u=!c&&(void 0===n?null!==t.dispose:n);var l;if(!c)o(null==(l=t.__r3f)?void 0:l.objects,t,u),o(t.children,t,u);if(delete t.__r3f,u&&t.dispose&&"Scene"!==t.type){const e=()=>{try{t.dispose()}catch(dO){}};"undefined"===typeof IS_REACT_ACT_ENVIRONMENT?(0,XT.unstable_scheduleCallback)(XT.unstable_IdlePriority,e):e()}AA(e)}}const s=()=>{};return{reconciler:YT()({createInstance:n,removeChild:a,appendChild:r,appendInitialChild:r,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(e,t)=>{if(!t)return;const n=e.getState().scene;n.__r3f&&(n.__r3f.root=e,r(n,t))},removeChildFromContainer:(e,t)=>{t&&a(e.getState().scene,t)},insertInContainerBefore:(e,t,n)=>{if(!t||!n)return;const r=e.getState().scene;r.__r3f&&i(r,t,n)},getRootHostContext:()=>null,getChildHostContext:e=>e,finalizeInitialChildren(e){var t;const n=null!=(t=null==e?void 0:e.__r3f)?t:{};return Boolean(n.handlers)},prepareUpdate(e,t,n,r){var i;if((null!=(i=null==e?void 0:e.__r3f)?i:{}).primitive&&r.object&&r.object!==e)return[!0];{const{args:t=[],children:i}=r,o=Yt(r,QT),{args:a=[],children:s}=n,l=Yt(n,JT);if(!Array.isArray(t))throw new Error("R3F: the args prop must be an array!");if(t.some((e,t)=>e!==a[t]))return[!0];const c=MA(e,o,l,!0);return c.changes.length?[!1,c]:null}},commitUpdate(e,t,i,o,s,l){let[c,u]=t;c?function(e,t,i,o){var s;const l=null==(s=e.__r3f)?void 0:s.parent;if(!l)return;const c=n(t,i,e.__r3f.root);if(e.children){for(const t of e.children)t.__r3f&&r(c,t);e.children=e.children.filter(e=>!e.__r3f)}e.__r3f.objects.forEach(e=>r(c,e)),e.__r3f.objects=[],e.__r3f.autoRemovedBeforeAppend||a(l,e),c.parent&&(c.__r3f.autoRemovedBeforeAppend=!0),r(l,c),c.raycast&&c.__r3f.eventCount&&vA(c).getState().internal.interaction.push(c);[o,o.alternate].forEach(e=>{null!==e&&(e.stateNode=c,e.ref&&("function"===typeof e.ref?e.ref(c):e.ref.current=c))})}(e,i,s,l):TA(e,u)},commitMount(e,t,n,r){var i;const o=null!=(i=e.__r3f)?i:{};e.raycast&&o.handlers&&o.eventCount&&vA(e).getState().internal.interaction.push(e)},getPublicInstance:e=>e,prepareForCommit:()=>null,preparePortalMount:e=>xA(e.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(e){var t;const{attach:n,parent:r}=null!=(t=e.__r3f)?t:{};n&&r&&kA(r,e,n),e.isObject3D&&(e.visible=!1),AA(e)},unhideInstance(e,t){var n;const{attach:r,parent:i}=null!=(n=e.__r3f)?n:{};r&&i&&_A(i,e,r),(e.isObject3D&&null==t.visible||t.visible)&&(e.visible=!0),AA(e)},createTextInstance:s,hideTextInstance:s,unhideTextInstance:s,getCurrentEventPriority:()=>t?t():UT.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:"undefined"!==typeof performance&&yA.fun(performance.now)?performance.now:yA.fun(Date.now)?Date.now:()=>0,scheduleTimeout:yA.fun(setTimeout)?setTimeout:void 0,cancelTimeout:yA.fun(clearTimeout)?clearTimeout:void 0}),applyProps:TA}}(0,function(){var e;const t="undefined"!==typeof self&&self||"undefined"!==typeof window&&window;if(!t)return UT.DefaultEventPriority;switch(null==(e=t.event)?void 0:e.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return UT.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return UT.ContinuousEventPriority;default:return UT.DefaultEventPriority}}),tE={objects:"shallow",strict:!1},nE=(e,t)=>{const n="function"===typeof e?e(t):e;return PA(n)?n:new VS(Fe({powerPreference:"high-performance",canvas:t,antialias:!0,alpha:!0},e))};function rE(e){const t=ZA.get(e),n=null==t?void 0:t.fiber,r=null==t?void 0:t.store;t&&console.warn("R3F.createRoot should only be called once!");const i="function"===typeof reportError?reportError:console.error,o=r||RA(QA,JA),a=n||$A.createContainer(o,UT.ConcurrentRoot,null,!1,null,"",i,null);let s;t||ZA.set(e,{fiber:a,store:o});let l,c=!1;return{configure(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{gl:n,size:r,scene:i,events:a,onCreated:u,shadows:d=!1,linear:p=!1,flat:h=!1,legacy:f=!1,orthographic:m=!1,frameloop:g="always",dpr:v=[1,2],performance:y,raycaster:b,camera:x,onPointerMissed:S}=t,w=o.getState(),_=w.gl;w.gl||w.set({gl:_=nE(n,e)});let k=w.raycaster;k||w.set({raycaster:k=new PC});const M=b||{},{params:C}=M,T=Yt(M,tA);if(yA.equ(T,k,tE)||eE(k,Fe({},T)),yA.equ(C,k.params,tE)||eE(k,{params:Fe(Fe({},k.params),C)}),!w.camera||w.camera===l&&!yA.equ(l,x,tE)){l=x;const e=x instanceof $y,t=e?x:m?new Mb(0,0,0,0,.1,1e3):new eb(75,0,.1,1e3);e||(t.position.z=5,x&&(eE(t,x),("aspect"in x||"left"in x||"right"in x||"bottom"in x||"top"in x)&&(t.manual=!0,t.updateProjectionMatrix())),w.camera||null!=x&&x.rotation||t.lookAt(0,0,0)),w.set({camera:t}),k.camera=t}if(!w.scene){let e;null!=i&&i.isScene?e=i:(e=new YS,i&&eE(e,i)),w.set({scene:xA(e)})}if(!w.xr){var A;const e=(e,t)=>
2{const n=o.getState();"never"!==n.frameloop&&JA(e,!0,n,t)},t=()=>{const t=o.getState();t.gl.xr.enabled=t.gl.xr.isPresenting,t.gl.xr.setAnimationLoop(t.gl.xr.isPresenting?e:null),t.gl.xr.isPresenting||QA(t)},n={connect(){const e=o.getState().gl;e.xr.addEventListener("sessionstart",t),e.xr.addEventListener("sessionend",t)},disconnect(){const e=o.getState().gl;e.xr.removeEventListener("sessionstart",t),e.xr.removeEventListener("sessionend",t)}};"function"===typeof(null==(A=_.xr)?void 0:A.addEventListener)&&n.connect(),w.set({xr:n})}if(_.shadowMap){const e=_.shadowMap.enabled,t=_.shadowMap.type;if(_.shadowMap.enabled=!!d,yA.boo(d))_.shadowMap.type=Op;else if(yA.str(d)){var E;const e={basic:Lp,percentage:Rp,soft:Op,variance:zp};_.shadowMap.type=null!=(E=e[d])?E:Op}else yA.obj(d)&&Object.assign(_.shadowMap,d);e===_.shadowMap.enabled&&t===_.shadowMap.type||(_.shadowMap.needsUpdate=!0)}const j=aA();if(j&&("enabled"in j?j.enabled=!f:"legacyMode"in j&&(j.legacyMode=f)),!c){eE(_,{outputEncoding:p?3e3:3001,toneMapping:h?wh:Ch})}w.legacy!==f&&w.set(()=>({legacy:f})),w.linear!==p&&w.set(()=>({linear:p})),w.flat!==h&&w.set(()=>({flat:h})),!n||yA.fun(n)||PA(n)||yA.equ(n,_,tE)||eE(_,n),a&&!w.events.handlers&&w.set({events:a(o)});const N=function(e,t){const n="undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement;if(t){const{width:e,height:r,top:i,left:o,updateStyle:a=n}=t;return{width:e,height:r,top:i,left:o,updateStyle:a}}if("undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement&&e.parentElement){const{width:t,height:r,top:i,left:o}=e.parentElement.getBoundingClientRect();return{width:t,height:r,top:i,left:o,updateStyle:n}}return"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?{width:e.width,height:e.height,top:0,left:0,updateStyle:n}:{width:0,height:0,top:0,left:0}}(e,r);return yA.equ(N,w.size,tE)||w.setSize(N.width,N.height,N.updateStyle,N.top,N.left),v&&w.viewport.dpr!==mA(v)&&w.setDpr(v),w.frameloop!==g&&w.setFrameloop(g),w.onPointerMissed||w.set({onPointerMissed:S}),y&&!yA.equ(y,w.performance,tE)&&w.set(e=>({performance:Fe(Fe({},e.performance),y)})),s=u,c=!0,this},render(t){return c||this.configure(),$A.updateContainer((0,Ye.jsx)(iE,{store:o,children:t,onCreated:s,rootElement:e}),a,null,()=>{}),o},unmount(){oE(e)}}}function iE(e){let{store:t,children:n,onCreated:r,rootElement:i}=e;return lA(()=>{const e=t.getState();e.set(e=>({internal:Fe(Fe({},e.internal),{},{active:!0})})),r&&r(e),t.getState().events.connected||null==e.events.connect||e.events.connect(i)},[]),(0,Ye.jsx)(LA.Provider,{value:t,children:n})}function oE(e,t){const n=ZA.get(e),r=null==n?void 0:n.fiber;if(r){const i=null==n?void 0:n.store.getState();i&&(i.internal.active=!1),$A.updateContainer(null,r,null,()=>{i&&setTimeout(()=>{try{var n,r,o,a;null==i.events.disconnect||i.events.disconnect(),null==(n=i.gl)||null==(r=n.renderLists)||null==r.dispose||r.dispose(),null==(o=i.gl)||null==o.forceContextLoss||o.forceContextLoss(),null!=(a=i.gl)&&a.xr&&i.xr.disconnect(),function(e){e.dispose&&"Scene"!==e.type&&e.dispose();for(const t in e)null==t.dispose||t.dispose(),delete e[t]}(i),ZA.delete(e),t&&t(e)}catch(dO){}},500)})}}$A.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:r.version});r.unstable_act;const aE={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function sE(e){const{handlePointer:t}=DA(e);return{priority:1,enabled:!0,compute(e,t,n){t.pointer.set(e.offsetX/t.size.width*2-1,-e.offsetY/t.size.height*2+1),t.raycaster.setFromCamera(t.pointer,t.camera)},connected:void 0,handlers:Object.keys(aE).reduce((e,n)=>Fe(Fe({},e),{},{[n]:t(n)}),{}),update:()=>{var t;const{events:n,internal:r}=e.getState();null!=(t=r.lastEvent)&&t.current&&n.handlers&&n.handlers.onPointerMove(r.lastEvent.current)},connect:t=>{var n;const{set:r,events:i}=e.getState();null==i.disconnect||i.disconnect(),r(e=>({events:Fe(Fe({},e.events),{},{connected:t})}
2)),Object.entries(null!=(n=i.handlers)?n:[]).forEach(e=>{let[n,r]=e;const[i,o]=aE[n];t.addEventListener(i,r,{passive:o})})},disconnect:()=>{const{set:t,events:n}=e.getState();var r;n.connected&&(Object.entries(null!=(r=n.handlers)?r:[]).forEach(e=>{let[t,r]=e;if(n&&n.connected instanceof HTMLElement){const[e]=aE[t];n.connected.removeEventListener(e,r)}}),t(e=>({events:Fe(Fe({},e.events),{},{connected:void 0})})))}}}function lE(e,t){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];window.clearTimeout(n),n=window.setTimeout(()=>e(...i),t)}}function cE(){let{debounce:e,scroll:t,polyfill:n,offsetSize:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debounce:0,scroll:!1,offsetSize:!1};const o=n||("undefined"==typeof window?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,s]=(0,r.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=(0,r.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a,orientationHandler:null}),c=e?"number"==typeof e?e:e.scroll:null,u=e?"number"==typeof e?e:e.resize:null,d=(0,r.useRef)(!1);(0,r.useEffect)(()=>(d.current=!0,()=>{d.current=!1}));const[p,h,f]=(0,r.useMemo)(()=>{const e=()=>{if(!l.current.element)return;const{left:e,top:t,width:n,height:r,bottom:o,right:a,x:c,y:u}=l.current.element.getBoundingClientRect(),p={left:e,top:t,width:n,height:r,bottom:o,right:a,x:c,y:u};l.current.element instanceof HTMLElement&&i&&(p.height=l.current.element.offsetHeight,p.width=l.current.element.offsetWidth),Object.freeze(p),d.current&&!pE(l.current.lastBounds,p)&&s(l.current.lastBounds=p)};return[e,u?lE(e,u):e,c?lE(e,c):e]},[s,i,c,u]);function m(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",f,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null),l.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",l.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",l.current.orientationHandler))}function g(){l.current.element&&(l.current.resizeObserver=new o(f),l.current.resizeObserver.observe(l.current.element),t&&l.current.scrollContainers&&l.current.scrollContainers.forEach(e=>e.addEventListener("scroll",f,{capture:!0,passive:!0})),l.current.orientationHandler=()=>{f()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",l.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",l.current.orientationHandler))}return function(e,t){(0,r.useEffect)(()=>{if(t){const t=e;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",t,!0)}}},[e,t])}(f,!!t),function(e){(0,r.useEffect)(()=>{const t=e;return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e])}(h),(0,r.useEffect)(()=>{m(),g()},[t,f,h]),(0,r.useEffect)(()=>m,[]),[e=>{!e||e===l.current.element||(m(),l.current.element=e,l.current.scrollContainers=uE(e),g())},a,p]}function uE(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(e=>"auto"===e||"scroll"===e)&&t.push(e),[...t,...uE(e.parentElement)]}const dE=["x","y","top","bottom","left","right","width","height"],pE=(e,t)=>dE.every(n=>e[n]===t[n]);var hE,fE,mE=Object.defineProperty,gE=Object.defineProperties,vE=Object.getOwnPropertyDescriptors,yE=Object.getOwnPropertySymbols,bE=Object.prototype.hasOwnProperty,xE=Object.prototype.propertyIsEnumerable,SE=(e,t,n)=>t in e?mE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wE=(e,t)=>{for(var n in t||(t={}))bE.call(t,n)&&SE(e,n,t[n]);if(yE)for(var n of yE(t))xE.call(t,n)&&SE(e,n,t[n]);return e};"undefined"===typeof window||!(null==(hE=window.document)?void 0:hE.createElement)&&"ReactNative"!==(null==(fE=window.navigator)?void 0:fE.product)?r.useEffect:r.useLayoutEffect;
2function _E(e,t,n){if(!e)return;if(!0===n(e))return e;let r=t?e.return:e.child;for(;r;){const e=_E(r,t,n);if(e)return e;r=t?null:r.sibling}}function kE(e){try{return Object.defineProperties(e,{_currentRenderer:{get:()=>null,set(){}},_currentRenderer2:{get:()=>null,set(){}}})}catch(t){return e}}const ME=console.error;console.error=function(){const e=[...arguments].join("");if(!(null==e?void 0:e.startsWith("Warning:"))||!e.includes("useContext"))return ME.apply(this,arguments);console.error=ME};const CE=kE(r.createContext(null));class TE extends r.Component{render(){return r.createElement(CE.Provider,{value:this._reactInternals},this.props.children)}}function AE(){const e=r.useContext(CE);if(null===e)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=r.useId();return r.useMemo(()=>{for(const n of[e,null==e?void 0:e.alternate]){if(!n)continue;const e=_E(n,!1,e=>{let n=e.memoizedState;for(;n;){if(n.memoizedState===t)return!0;n=n.next}});if(e)return e}},[e,t])}function EE(){const e=function(){const e=AE(),[t]=r.useState(()=>new Map);t.clear();let n=e;for(;n;){if(n.type&&"object"===typeof n.type){const e=void 0===n.type._context&&n.type.Provider===n.type?n.type:n.type._context;e&&e!==CE&&!t.has(e)&&t.set(e,r.useContext(kE(e)))}n=n.return}return t}();return r.useMemo(()=>Array.from(e.keys()).reduce((t,n)=>i=>{return r.createElement(t,null,r.createElement(n.Provider,(o=wE({},i),a={value:e.get(n)},gE(o,vE(a)))));var o,a},e=>r.createElement(TE,wE({},e))),[e])}const jE=["children","fallback","resize","style","gl","events","eventSource","eventPrefix","shadows","linear","flat","legacy","orthographic","frameloop","dpr","performance","raycaster","camera","scene","onPointerMissed","onCreated"],NE=r.forwardRef(function(t,n){let{children:i,fallback:o,resize:a,style:s,gl:l,events:c=sE,eventSource:u,eventPrefix:d,shadows:p,linear:h,flat:f,legacy:m,orthographic:g,frameloop:v,dpr:y,performance:b,raycaster:x,camera:S,scene:w,onPointerMissed:_,onCreated:k}=t,M=Yt(t,jE);r.useMemo(()=>{return t=e,void Object.assign(nA,t);var t},[]);const C=EE(),[T,A]=cE(Fe({scroll:!0,debounce:{scroll:50,resize:0}},a)),E=r.useRef(null),j=r.useRef(null);r.useImperativeHandle(n,()=>E.current);const N=cA(_),[I,D]=r.useState(!1),[P,L]=r.useState(!1);if(I)throw I;if(P)throw P;const R=r.useRef(null);lA(()=>{const e=E.current;A.width>0&&A.height>0&&e&&(R.current||(R.current=rE(e)),R.current.configure({gl:l,events:c,shadows:p,linear:h,flat:f,legacy:m,orthographic:g,frameloop:v,dpr:y,performance:b,raycaster:x,camera:S,scene:w,size:A,onPointerMissed:function(){return null==N.current?void 0:N.current(...arguments)},onCreated:e=>{var t;null==e.events.connect||e.events.connect(u?(t=u)&&t.hasOwnProperty("current")?u.current:u:j.current),d&&e.setEvents({compute:(e,t)=>{const n=e[d+"X"],r=e[d+"Y"];t.pointer.set(n/t.size.width*2-1,-r/t.size.height*2+1),t.raycaster.setFromCamera(t.pointer,t.camera)}}),null==k||k(e)}}),R.current.render((0,Ye.jsx)(C,{children:(0,Ye.jsx)(dA,{set:L,children:(0,Ye.jsx)(r.Suspense,{fallback:(0,Ye.jsx)(uA,{set:D}),children:null!=i?i:null})})})))}),r.useEffect(()=>{const e=E.current;if(e)return()=>oE(e)},[]);const O=u?"none":"auto";return(0,Ye.jsx)("div",Fe(Fe({ref:j,style:Fe({position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:O},s)},M),{},{children:(0,Ye.jsx)("div",{ref:T,style:{width:"100%",height:"100%"},children:(0,Ye.jsx)("canvas",{ref:E,style:{display:"block"},children:o})})}))}),IE=r.forwardRef(function(e,t){return(0,Ye.jsx)(TE,{children:(0,Ye.jsx)(NE,Fe(Fe({},e),{},{ref:t}))})});var DE=n(51052),PE=n(11188),LE=n(49640);const RE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const OE=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every((e,r)=>n(e,t[r]))};function zE(e,t){return e-t}function FE(e,t){var n;const{index:r}=null!=(n=e.reduce((e,n,r)=>{const i=Math.abs(t-n);return null===e||i<e.distance||i===e.distance?{distance:i,index:r}:e},null))?n:{};return r}function BE(e,t){if(void 0!==t.current&&e.changedTouches){const n=e;for(let e=0;e<n.changedTouches.length;e+=1){const r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function UE(e,t,n){return 100*(e-t)/(n-t)}function HE(e,t,n){const r=Math.round((e-n)/t)*t+n;
2return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function WE(e){let{values:t,newValue:n,index:r}=e;const i=t.slice();return i[r]=n,i.sort(zE)}function VE(e){let{sliderRef:t,activeIndex:n,setActive:r}=e;var i,o;const a=(0,Do.A)(t.current);var s;null!=(i=t.current)&&i.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===n||(null==(s=t.current)||s.querySelector('[type="range"][data-index="'.concat(n,'"]')).focus());r&&r(n)}function GE(e,t){return"number"===typeof e&&"number"===typeof t?e===t:"object"===typeof e&&"object"===typeof t&&OE(e,t)}const qE={horizontal:{offset:e=>({left:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},"horizontal-reverse":{offset:e=>({right:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},vertical:{offset:e=>({bottom:"".concat(e,"%")}),leap:e=>({height:"".concat(e,"%")})}},KE=e=>e;let YE;function XE(){return void 0===YE&&(YE="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),YE}function ZE(e){const{"aria-labelledby":t,defaultValue:n,disabled:i=!1,disableSwap:o=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:p,orientation:h="horizontal",rootRef:f,scale:m=KE,step:g=1,shiftStep:v=10,tabIndex:y,value:b}=e,x=r.useRef(void 0),[S,w]=r.useState(-1),[_,k]=r.useState(-1),[M,C]=r.useState(!1),T=r.useRef(0),[A,E]=(0,DE.A)({controlled:b,default:null!=n?n:c,name:"Slider"}),j=d&&((e,t,n)=>{const r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:u}}),d(i,t,n)}),N=Array.isArray(A);let I=N?A.slice().sort(zE):[A];I=I.map(e=>null==e?c:(0,PE.A)(e,c,l));const D=!0===s&&null!==g?[...Array(Math.floor((l-c)/g)+1)].map((e,t)=>({value:c+g*t})):s||[],P=D.map(e=>e.value),{isFocusVisibleRef:L,onBlur:R,onFocus:O,ref:z}=(0,LE.A)(),[F,B]=r.useState(-1),U=r.useRef(null),H=(0,Ri.A)(z,U),W=(0,Ri.A)(f,H),V=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));O(t),!0===L.current&&B(r),k(r),null==e||null==(n=e.onFocus)||n.call(e,t)},G=e=>t=>{var n;R(t),!1===L.current&&B(-1),k(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},q=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=I[n],i=P.indexOf(r);let a=t;if(D&&null==g){const e=P[P.length-1];a=a>e?e:a<P[0]?P[0]:a<r?P[i-1]:P[i+1]}if(a=(0,PE.A)(a,c,l),N){o&&(a=(0,PE.A)(a,I[n-1]||-1/0,I[n+1]||1/0));const e=a;a=WE({values:I,newValue:a,index:n});let t=n;o||(t=a.indexOf(e)),VE({sliderRef:U,activeIndex:t})}E(a),B(n),j&&!GE(a,A)&&j(e,a,n),p&&p(e,a)},K=e=>t=>{var n;if(null!==g){const e=Number(t.currentTarget.getAttribute("data-index")),n=I[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-v,c):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+v,l)),null!==r&&(q(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};(0,Fi.A)(()=>{var e;i&&U.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())},[i]),i&&-1!==S&&w(-1),i&&-1!==F&&B(-1);const Y=r.useRef(void 0);let X=h;a&&"horizontal"===h&&(X+="-reverse");const Z=e=>{let{finger:t,move:n=!1}=e;const{current:r}=U,{width:i,height:a,bottom:s,left:u}=r.getBoundingClientRect();let d,p;if(d=0===X.indexOf("vertical")?(s-t.y)/a:(t.x-u)/i,-1!==X.indexOf("-reverse")&&(d=1-d),p=function(e,t,n){return(n-t)*e+t}(d,c,l),g)p=HE(p,g,c);else{const e=FE(P,p);p=P[e]}p=(0,PE.A)(p,c,l);let h=0;if(N){h=n?Y.current:FE(I,p),o&&(p=(0,PE.A)(p,I[h-1]||-1/0,I[h+1]||1/0));const e=p;p=WE({values:I,newValue:p,index:h}),o&&n||(h=p.indexOf(e),Y.current=h)}return{newValue:p,activeIndex:h}},Q=(0,zi.A)(e=>{const t=BE(e,x);if(!t)return;if(T.current+=1,"mousemove"===e.type&&0===e.buttons)return void J(e);const{newValue:n,activeIndex:r}=Z({finger:t,move:!0});VE({sliderRef:U,activeIndex:r,setActive:w}),E(n),!M&&T.current>2&&C(!0),j&&!GE(n,A)&&j(e,n,r)}),J=(0,zi.A)(e=>{const t=BE(e,x);if(C(!1),!t)return;const{newValue:n}=Z({finger:t,move:!0});w(-1),"touchend"===e.type&&k(-1),p&&p(e,n),x.current=void 0,ee()}),$=(0,zi.A)(e=>{if(i)return;XE()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(x.current=t.identifier);const n=BE(e,x);if(!1!==n){const{newValue:t,activeIndex:r}=Z({finger:n});VE({sliderRef:U,activeIndex:r,setActive:w}),E(t),j&&!GE(t,A)&&j(e,t,r)}T.current=0;const r=(0,Do.A)(U.current);r.addEventListener("touchmove",Q,{passive:!0}),r.addEventListener("touchend",J,{passive:!0})}),ee=r.useCallback(()=>{const e=(0,Do.A)(U.current);e.removeEventListener("mousemove",Q),e.removeEventListener("mouseup",J),e.removeEventListener("touchmove",Q),e.removeEventListener("touchend",J)},[J,Q]);r.useEffect(()=>{const{current:e}=U;return e.addEventListener("touchstart",$,{passive:XE()}),()=>{e.removeEventListener("touchstart",$),ee()}},[ee,$]),r.useEffect(()=>{i&&ee()},[i,ee]);const te=UE(N?I[0]:c,c,l),ne=UE(I[I.length-1],c,l)-te,re=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),k(-1)};
2return{active:S,axis:X,axisProps:qE,dragging:M,focusedThumbIndex:F,getHiddenInputProps:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r;const o=Co(n),s={onChange:(d=o||{},e=>{var t;null==(t=d.onChange)||t.call(d,e),q(e,e.target.valueAsNumber)}),onFocus:V(o||{}),onBlur:G(o||{}),onKeyDown:K(o||{})};var d;const p=(0,Be.A)({},o,s);return(0,Be.A)({tabIndex:y,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":m(l),"aria-valuemin":m(c),name:u,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(r=e.step)?r:void 0,disabled:i},n,p,{style:(0,Be.A)({},RE,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Co(e),n={onMouseDown:(r=t||{},e=>{var t;if(null==(t=r.onMouseDown)||t.call(r,e),i)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const n=BE(e,x);if(!1!==n){const{newValue:t,activeIndex:r}=Z({finger:n});VE({sliderRef:U,activeIndex:r,setActive:w}),E(t),j&&!GE(t,A)&&j(e,t,r)}T.current=0;const o=(0,Do.A)(U.current);o.addEventListener("mousemove",Q,{passive:!0}),o.addEventListener("mouseup",J)})};var r;const o=(0,Be.A)({},t,n);return(0,Be.A)({},e,{ref:W},o)},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Co(e),n={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));k(n)}),onMouseLeave:re(t||{})};var r;return(0,Be.A)({},e,t,n)},marks:D,open:_,range:N,rootRef:W,trackLeap:ne,trackOffset:te,values:I,getThumbStyle:e=>({pointerEvents:-1!==S&&S!==e?"none":void 0})}}const QE=e=>!e||!Li(e);function JE(e){return(0,ut.Ay)("MuiSlider",e)}const $E=(0,ct.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const ej=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function tj(e){return e}const nj=(0,lt.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["color".concat((0,st.A)(n.color))],"medium"!==n.size&&t["size".concat((0,st.A)(n.size))],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})(e=>{let{theme:t}=e;var n;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},["&.".concat($E.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat($E.dragging)]:{["& .".concat($E.thumb,", & .").concat($E.track)]:{transition:"none"}},variants:[...Object.keys((null!=(n=t.vars)?n:t).palette).filter(e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main}).map(e=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),rj=(0,lt.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ij=(0,lt.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(e=>{let{theme:t}=e;var n;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(n=t.vars)?n:t).palette).filter(e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main}).map(e=>({props:{color:e,track:"inverted"},style:(0,Be.A)({},t.vars?{backgroundColor:t.vars.palette.Slider["".concat(e,"Track")],borderColor:t.vars.palette.Slider["".concat(e,"Track")]}:(0,Be.A)({backgroundColor:(0,mn.a)(t.palette[e].main,.62),borderColor:(0,mn.a)(t.palette[e].main,.62)},t.applyStyles("dark",{backgroundColor:(0,mn.e$)(t.palette[e].main,.5)}),t.applyStyles("dark",{borderColor:(0,mn.e$)(t.palette[e].main,.5)})))}))]}}),oj=(0,lt.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t["thumbColor".concat((0,st.A)(n.color))],"medium"!==n.size&&t["thumbSize".concat((0,st.A)(n.size))]]}})(e=>{let{theme:t}=e;var n;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,he
2ight:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&.".concat($E.disabled)]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(n=t.vars)?n:t).palette).filter(e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main}).map(e=>({props:{color:e},style:{["&:hover, &.".concat($E.focusVisible)]:(0,Be.A)({},t.vars?{boxShadow:"0px 0px 0px 8px rgba(".concat(t.vars.palette[e].mainChannel," / 0.16)")}:{boxShadow:"0px 0px 0px 8px ".concat((0,mn.X4)(t.palette[e].main,.16))},{"@media (hover: none)":{boxShadow:"none"}}),["&.".concat($E.active)]:(0,Be.A)({},t.vars?{boxShadow:"0px 0px 0px 14px rgba(".concat(t.vars.palette[e].mainChannel," / 0.16)")}:{boxShadow:"0px 0px 0px 14px ".concat((0,mn.X4)(t.palette[e].main,.16))})}}))]}}),aj=(0,lt.Ay)(function(e){const{children:t,className:n,value:i}=e,o=(e=>{const{open:t}=e;return{offset:(0,it.A)(t&&$E.valueLabelOpen),circle:$E.valueLabelCircle,label:$E.valueLabelLabel}})(e);return t?r.cloneElement(t,{className:(0,it.A)(t.props.className)},(0,Ye.jsxs)(r.Fragment,{children:[t.props.children,(0,Ye.jsx)("span",{className:(0,it.A)(o.offset,n),"aria-hidden":!0,children:(0,Ye.jsx)("span",{className:o.circle,children:(0,Ye.jsx)("span",{className:o.label,children:i})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(e=>{let{theme:t}=e;return(0,Be.A)({zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},["&.".concat($E.valueLabelOpen)]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},["&.".concat($E.valueLabelOpen)]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})}),sj=(0,lt.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,Ks.A)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(e=>{let{theme:t}=e;return{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}}),lj=(0,lt.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,Ks.A)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})(e=>{let{theme:t}=e;return(0,Be.A)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]})}),cj=e=>{let{children:t}=e;return t},uj=r.forwardRef(function(e,t){var n,i,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,x,S,w,_,k,M,C;const T=(0,Ue.b)({props:e,name:"MuiSlider"}),A=Ya(),{"aria-label":E,"aria-valuetext":j,"aria-labelledby":N,component:I="span",components:D={},componentsProps:P={},color:L="primary",classes:R,className:O,disableSwap:z=!1,disabled:F=!1,getAriaLabel:B,getAriaValueText:U,marks:
2H=!1,max:W=100,min:V=0,orientation:G="horizontal",shiftStep:q=10,size:K="medium",step:Y=1,scale:X=tj,slotProps:Z,slots:Q,track:J="normal",valueLabelDisplay:$="off",valueLabelFormat:ee=tj}=T,te=(0,rt.A)(T,ej),ne=(0,Be.A)({},T,{isRtl:A,max:W,min:V,classes:R,disabled:F,disableSwap:z,orientation:G,marks:H,color:L,size:K,step:Y,shiftStep:q,scale:X,track:J,valueLabelDisplay:$,valueLabelFormat:ee}),{axisProps:re,getRootProps:ie,getHiddenInputProps:oe,getThumbProps:ae,open:se,active:le,axis:ce,focusedThumbIndex:ue,range:de,dragging:pe,marks:he,values:fe,trackOffset:me,trackLeap:ge,getThumbStyle:ve}=ZE((0,Be.A)({},ne,{rootRef:t}));ne.marked=he.length>0&&he.some(e=>e.label),ne.dragging=pe,ne.focusedThumbIndex=ue;const ye=(e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",s&&"color".concat((0,st.A)(s)),l&&"size".concat((0,st.A)(l))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&"thumbSize".concat((0,st.A)(l)),s&&"thumbColor".concat((0,st.A)(s))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,ot.A)(c,JE,a)})(ne),be=null!=(n=null!=(i=null==Q?void 0:Q.root)?i:D.Root)?n:nj,xe=null!=(o=null!=(a=null==Q?void 0:Q.rail)?a:D.Rail)?o:rj,Se=null!=(s=null!=(l=null==Q?void 0:Q.track)?l:D.Track)?s:ij,we=null!=(c=null!=(u=null==Q?void 0:Q.thumb)?u:D.Thumb)?c:oj,_e=null!=(d=null!=(p=null==Q?void 0:Q.valueLabel)?p:D.ValueLabel)?d:aj,ke=null!=(h=null!=(f=null==Q?void 0:Q.mark)?f:D.Mark)?h:sj,Me=null!=(m=null!=(g=null==Q?void 0:Q.markLabel)?g:D.MarkLabel)?m:lj,Ce=null!=(v=null!=(y=null==Q?void 0:Q.input)?y:D.Input)?v:"input",Te=null!=(b=null==Z?void 0:Z.root)?b:P.root,Ae=null!=(x=null==Z?void 0:Z.rail)?x:P.rail,Ee=null!=(S=null==Z?void 0:Z.track)?S:P.track,je=null!=(w=null==Z?void 0:Z.thumb)?w:P.thumb,Ne=null!=(_=null==Z?void 0:Z.valueLabel)?_:P.valueLabel,Ie=null!=(k=null==Z?void 0:Z.mark)?k:P.mark,De=null!=(M=null==Z?void 0:Z.markLabel)?M:P.markLabel,Pe=null!=(C=null==Z?void 0:Z.input)?C:P.input,Le=No({elementType:be,getSlotProps:ie,externalSlotProps:Te,externalForwardedProps:te,additionalProps:(0,Be.A)({},QE(be)&&{as:I}),ownerState:(0,Be.A)({},ne,null==Te?void 0:Te.ownerState),className:[ye.root,O]}),Re=No({elementType:xe,externalSlotProps:Ae,ownerState:ne,className:ye.rail}),Oe=No({elementType:Se,externalSlotProps:Ee,additionalProps:{style:(0,Be.A)({},re[ce].offset(me),re[ce].leap(ge))},ownerState:(0,Be.A)({},ne,null==Ee?void 0:Ee.ownerState),className:ye.track}),ze=No({elementType:we,getSlotProps:ae,externalSlotProps:je,ownerState:(0,Be.A)({},ne,null==je?void 0:je.ownerState),className:ye.thumb}),Fe=No({elementType:_e,externalSlotProps:Ne,ownerState:(0,Be.A)({},ne,null==Ne?void 0:Ne.ownerState),className:ye.valueLabel}),He=No({elementType:ke,externalSlotProps:Ie,ownerState:ne,className:ye.mark}),We=No({elementType:Me,externalSlotProps:De,ownerState:ne,className:ye.markLabel}),Ve=No({elementType:Ce,getSlotProps:oe,externalSlotProps:Pe,ownerState:ne});return(0,Ye.jsxs)(be,(0,Be.A)({},Le,{children:[(0,Ye.jsx)(xe,(0,Be.A)({},Re)),(0,Ye.jsx)(Se,(0,Be.A)({},Oe)),he.filter(e=>e.value>=V&&e.value<=W).map((e,t)=>{const n=UE(e.value,V,W),i=re[ce].offset(n);let o;return o=!1===J?-1!==fe.indexOf(e.value):"normal"===J&&(de?e.value>=fe[0]&&e.value<=fe[fe.length-1]:e.value<=fe[0])||"inverted"===J&&(de?e.value<=fe[0]||e.value>=fe[fe.length-1]:e.value>=fe[0]),(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(ke,(0,Be.A)({"data-index":t},He,!Li(ke)&&{markActive:o},{style:(0,Be.A)({},i,He.style),className:(0,it.A)(He.className,o&&ye.markActive)})),null!=e.label?(0,Ye.jsx)(Me,(0,Be.A)({"aria-hidden":!0,"data-index":t},We,!Li(Me)&&{markLabelActive:o},{style:(0,Be.A)({},i,We.style),className:(0,it.A)(ye.markLabel,We.className,o&&ye.markLabelActive),children:e.label})):null]},t)}),fe.map((e,t)=>{const n=UE(e,V,W),r=re[ce].offset(n),i="off"===$?cj:_e;return(0,Ye.jsx)(i,(0,Be.A)({},!Li(i)&&{valueLabelFormat:ee,valueLabelDisplay:$,value:"function"===typeof ee?ee(X(e),t):ee,index:t,open:se===t||le===t||"on"===$,disabled:F},Fe,{children:(0,Ye.jsx)(we,(0,Be.A)({"data-index":t},ze,{className:(0,it.A)(ye.thumb,ze.className,le===t&&ye.active,ue===t&&ye.focu
2sVisible),style:(0,Be.A)({},r,ve(t),ze.style),children:(0,Ye.jsx)(Ce,(0,Be.A)({"data-index":t,"aria-label":B?B(t):E,"aria-valuenow":X(e),"aria-labelledby":N,"aria-valuetext":U?U(X(e),t):j,value:fe[t]},Ve))}))}),t)})]}))}),dj=uj;function pj(e){return(0,ut.Ay)("MuiIconButton",e)}const hj=(0,ct.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fj=["edge","children","className","color","disabled","disableFocusRipple","size"],mj=(0,lt.Ay)(fr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,st.A)(n.color))],n.edge&&t["edge".concat((0,st.A)(n.edge))],t["size".concat((0,st.A)(n.size))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,mn.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})},e=>{let{theme:t,ownerState:n}=e;var r;const i=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,Be.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,Be.A)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,Be.A)({},i&&{backgroundColor:t.vars?"rgba(".concat(i.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,mn.X4)(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(hj.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),gj=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=(0,rt.A)(n,fj),d=(0,Be.A)({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,st.A)(r)),i&&"edge".concat((0,st.A)(i)),"size".concat((0,st.A)(o))]};return(0,ot.A)(a,pj,t)})(d);return(0,Ye.jsx)(mj,(0,Be.A)({className:(0,it.A)(p.root,o),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:i}))});var vj=n(54469),yj=n(29704);var bj=0,xj=-1,Sj=0;var wj=null,_j=!1,kj=null,Mj=null,Cj=0;function Tj(e,t,n){let r=function(e,t){for(var n=e.pages[t],r=n.zOrder,i=null,o=0;o<e.pages.length;o++){var a=e.pages[o];a.location===n.location&&a.zOrder<n.zOrder&&(a.zOrder>r||n.zOrder===r)&&(r=a.ZOrder,i=o)}return i}(e,n);if(null!=Mj[n].leftFold&&"Flat"!==Mj[n].leftFold)for(var i=n;i<Mj.length;i++)if(null==r||Mj[i].frontDisplayIndex===t.targetPage||Mj[i].backDisplayIndex===t.targetPage)return"Front"===e.pages[i].sideVisible?"Left":"Right";if(null!=Mj[n].rightFold&&"Flat"!==Mj[n].rightFold)for(i=n;i>=0;i--)if(null==r||Mj[i].frontDisplayIndex===t.targetPage||Mj[i].backDisplayIndex===t.targetPage)return"Right";if(null!=r){var o=Tj(e,t,r);if(e.pages[n].sideVisible!==e.pages[r].sideVisible)switch(o){case"Left":o="Right";break;case"Right":o="Left"}return o}return"None"}function Aj(e,t,n){return e*(1-n)+t*n}function Ej(e,t,n,r){let i=n?t.panelFront:t.panelBack;var o=null,a=0;for(let h=0;h<e.components.length;h++)for(let t=0;t<e.components[h].panelPositions.length;t++){if(i.id===e.components[h].panelPositions[t].id){o=e.components[h],a=t;break}if(null!==o)break}let s=null;if(null!=o&&o.isPublisherSupplied?s="File/StreamPublisherSuppliedImage?tcid=".concat(o.id):null!=o&&null!=o.fileType&&("OriginalThumbnail"===o.fileType?s="File/StreamFile?fileType=OriginalFull&id=".concat(o.id):"HardCropThumbnail"===o.fileType&&(s="File/StreamFile?fileType=HardCropFull&id=".concat(o.id))),s){Cj++;return(new bM).load(s,function(e){if(o.panelPositions.length>1){for(var i=0,s=0,l=1,c=0;c<o.panelPositions.length;c++)c===a&&(s=i),i+=Number(o.panelPositions[c].width),c===a&&(l=i);e.repeat.x=(l-s)/i,e.offset.x=s/i}n?t.front=e:t.back=e,--Cj<0&&(Cj=0),0===Cj&&r()},void 0,function(e){Cj=0,r()}),null}var l=document.createElement("canvas"),c=l.getContext("2d");c.canvas.width=425,c.canvas.height=550,c.fillStyle="#AAA",c.fillRect(0,0,425,550),c.strokeStyle="#444",c.lineWidth=2,c.strokeRect(0,0,425,550),c.font="40px Arial",c.fillStyle="#000";let u=i.name,d=c.measureText(u).width;c.fillText(u,212.5-d/2,60);var p=new kg(l);return p.needsUpdate=!0,p.magFilter=Hh,p.minFilter=Hh,p}function jj(e){const t=[],n=[],i=[],o=r.useRef([]);if(o.current.length!==3*Mj.length){o.current=Array(3*Mj.length).fill().map((e,t)=>o.current[t]||(0,r.createRef)());for(var a=0;a<Mj.length;a++)t.push(o.current[3*a]),n.push(o.current[3*a+1]),i.push(o.current[3*a+2])}else for(a=0;a<Mj.length;a++)t.push(o.current[3*a]),n.push(o.current[3*a+1]),i.push(o.current[3*a+2]);!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=qA(),r=n.getState().internal.subscribe,i=cA(e);lA(()=>r(i,t,n),[t,r,n])}((e,r)=>{_j&&(bj=xj+r)>=Sj&&(_j=!1,bj=Sj),xj!==bj&&(!function(e){let t=~~(e/2),n=t<kj.frames.length-1?t+1:t;var r=(e-2*t)/2;let i=kj.frames[t],o=kj.frames[n],a=function(e,t){for(var n=0;n<e.pages.length;n++)if(e.pages[n].sideVisible===t.pages[n].sideVisible)return!1;return!0}(i,o);for(var s=0;s<i.pages.length;s++){Mj[s].visible=!0;let e="Back"===i.pages[s].sideVisible?180:0,t="Back"===o.pages[s].sideVisible?180:0;Mj[s].rotation=Aj(e,t,r),e!==t&&("None"!==i.pages[s].foldHint?Mj[s].rotationSide=i.pages[s].foldHint:a?"Front"===i.pages[s].sideVisible?Mj[s].rotationSide="Left":Mj[s].rotationSide="Right":Mj[s].rotationSide=Tj(i,o,s)),"None"===i.pages[s].sideVisible&&(Mj[s].visible=!1),Mj[s].location=Aj(i.pages[s].location,o.pages[s].location,r),Mj[s].zOrder=r<.5?i.pages[s].zOrder:o.pages[s].zOrder,e!==t&&Mj[s].zOrder++}}(bj),xj=bj);for(var o=0;o<Mj.length;o++){var a=Mj[o].rotation/-180*Math.PI;if("Right"===Mj[o].rotationSide&&(a=-a),o>0){var s=Mj[o-1].rotation/-180*Math.PI;"Right"===Mj[o-1].rotationSide&&(s=-s);var l=Math.cos(s)*(Mj[o-1].panelFront.width/2);l+=Math.cos(a)*(Mj[o].panelFront.width/2);var c=Math.sin(-s)*(Mj[o-1].panelFront.width/2);c+=Math.sin(-a)*(Mj[o].panelFront.width/2),t[o].current.position.x=t[o-1].current.position.x+l,t[o].current.position.z=t[o-1].current.position.z+c,t[o].current.renderOrder=Mj[o].zOrder,n[o].current.position.x=n[o-1].current.position.x+l,n[o].current.position.z=n[o-1].current.position.z+c,n[o].current.renderOrder=Mj[o].zOrder,i[o].current.position.x=i[o-1].current.position.x+l,i[o].current.position.z=i[o-1].current.position.z+c,i[o].current.renderOrder=Mj[o].zOrder}else t[o].current.position.x=Mj[o].location,t[o].current.renderOrder=Mj[o].zOrder,n[o].current.position.x=Mj[o].location,n[o].current.renderOrder=Mj[o].zOrder,i[o].current.position.x=Mj[o].location,i[o].current.renderOrder=Mj[o].zOrder;t[o].current.rotation.y=a,n[o].current.rotation.y=a,i[o].current.rotation.y=a}});let s=[];for(var l=0;l<Mj.length;l++)s.push((0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("mesh",Fe(Fe({},e),{},{ref:i[l],scale:[1.005,1.005,1.005],children:[(0,Ye.jsx)("planeBufferGeometry",{args:[Mj[l].panelFront.width,Mj[l].panelFront.height]}),(0,Ye.jsx)("meshBasicMaterial",{side:Up,color:"#444",depthTest:!1,toneMapped:!1})]})),(0,Ye.jsxs)("mesh",Fe(Fe({},e),{},{ref:t[l],scale:[1,1,1],children:[(0,Ye.jsx)("planeBufferGeometry",{args:[Mj[l].panelFront.width,Mj[l].panelFront.height]}),(0,Ye.jsx)("meshStandardMaterial",{map:Mj[l].front,side:Fp,depthTest:!1,toneMapped:!1})]})),(0,Ye.jsxs)("mesh",Fe(Fe({},e),{},{ref:n[l],scale:[-1,1,1],children:[(0,Ye.jsx)("planeBufferGeometry",{args:[Mj[l].panelFront.width,Mj[l].panelFront.height]}),(0,Ye.jsx)("meshStandardMaterial",{map:Mj[l].back,side:Bp,depthTest:!1,toneMapped:!1})]}))]},"page3d_".concat(l)));return s}class Nj extends r.Component{constructor(e){super(e),this.displayName=Nj.name,this.sliderChanged=e=>{bj=e/15/2,this.setState({frame:e})},this.playFrame=()=>{let{frame:e,playing:t}=this.state,n=~~(2*bj*15);e===n&&_j===t||this.setState({frame:n,playing:_j}),_j||null==wj||(clearInterval(wj),wj=null)},this.togglePlay=()=>{let{playing:e,frame:t}=this.state;e=!e,~~(2*bj*15)>=2*Sj*15&&(bj=0,xj=0,t=0),this.setState({playing:e,frame:t}),_j=e,null!=wj&&(clearInterval(wj),wj=null),e&&(wj=setInterval(this.playFrame,50))},this.onTexturesLoaded=()=>{this.forceUpdate()},this.state={loading:!0,playing:!1,frame:0,name:""},xj=-1,bj=0,_j=!1}componentDidMount(){const{loading:e}=this.state,{ticket:t}=this.props;if(e){let e=t.publisherId;fetch("SvrGate/GetAnimation?publisherId=".concat(e,"&sizeId=").concat(t.sizeId),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{!function(e,t,n){(Sj=2*((kj=e).frames.length-1))<0&&(Sj=0),Mj=[];for(var r=0;r<kj.frames.length;r++){for(var i=0,o=0,a=0,s=0;s<kj.frames[r].pages.length;s++){let t=e.panels[kj.pages[s].front-1].width;0===s?"Back"===kj.frames[r].pages[s].sideVisible?(i=t,o=0):(i=0,o=t):(i=o,"Back"===kj.frames[r].pages[s].sideVisible?o-=t:o+=t);let n=i<o?i:o;kj.frames[r].pages[s].location=n,kj.pages[s].front!==kj.frames[r].targetPage&&kj.pages[s].back!==kj.frames[r].targetPage||(a=n)}for(s=0;s<kj.frames[r].pages.length;s++)kj.frames[r].pages[s].location-=a}for(r=0;r<kj.pages.length;r++){var l={front:null,back:null,leftFold:kj.pages[r].leftFold,rightFold:kj.pages[r].rightFold,rotation:0,rotationSide:null,location:null,frontDisplayIndex:kj.pages[r].front,backDisplayIndex:kj.pages[r].back,visible:!0,panelFront:e.panels[kj.pages[r].front-1],panelBack:e.panels[kj.pages[r].back-1]};l.front=Ej(t,l,!0,n),l.back=Ej(t,l,!1,n),Mj.push(l)}}(e,t,this.onTexturesLoaded),this.setState({loading:!1,name:e.name})},e=>{this.setState({loading:!1,name:En("error")})})}}componentWillUnmount(){null!=wj&&(clearInterval(wj),wj=null)}render(){const{loading:e,playing:t,frame:n}=this.state;let i=2*Sj*15,o=(0,Ye.jsx)(vj.A,{});return t&&(o=(0,Ye.jsx)(yj.A,{})),e||Cj>0?(0,Ye.jsx)(At,{}):(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:this.props.classes.canvas,children:(0,Ye.jsx)(IE,{camera:{zoom:10,position:[0,0,100]},children:(0,Ye.jsxs)(r.Suspense,{fallback:null,children:[(0,Ye.jsx)("ambientLight",{intensity:1}),(0,Ye.jsx)(jj,{})]})})}),(0,Ye.jsxs)("div",{className:this.props.classes.controlBar,children:[(0,Ye.jsx)(gj,{onClick:this.togglePlay,className:this.props.classes.playButton,"aria-label":"Play / Pause",children:o}
2),(0,Ye.jsx)(dj,{className:this.props.classes.slider,onChange:(e,t)=>this.sliderChanged(t),value:n,max:i,"aria-labelledby":"continuous-slider"})]})]})}}const Ij=pn(Nj,e=>({canvas:{height:"450px"},controlBar:{width:"100%",display:"table"},playButton:{display:"table-cell",marginRight:"12px",padding:"8px"},slider:{display:"table-cell",verticalAlign:"middle"}}));class Dj extends r.Component{constructor(e){super(e),this.displayName=Dj.name,this.closeGateDialog=()=>{this.props.closeDialog()},this.state={submitting:!1,showingMessage:!1,lastMessage:""}}render(){const{classes:e,open:t,ticket:n}=this.props;return(0,Ye.jsxs)(Aa,{"aria-labelledby":"gate-preview-title",open:t,fullWidth:!0,scroll:"body",maxWidth:"lg",children:[(0,Ye.jsx)(Kl,{id:"gate-preview-title",children:En("gatePreview")}),(0,Ye.jsx)(za,{className:e.dialogContent,children:(0,Ye.jsx)(Ij,{ticket:n})}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(Tn,{className:e.disclaimer,children:En("gateDisclaimer")}),(0,Ye.jsx)(kr,{name:"ok",variant:"contained",autoFocus:!0,onClick:this.closeGateDialog,color:"secondary",children:En("ok")})]})]})}}const Pj=pn(Dj,e=>({dialogContent:{height:"500px",overflow:"hidden"},disclaimer:{flexGrow:1,textAlign:"center",marginBottom:"auto"}}));function Lj(e){let{ticketId:t,showDialog:n,onCloseHandler:i}=e;const[o,a]=(0,r.useState)(""),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(null),d="".concat(En("resubmissionNotesDialogFormattedTicketText")," ").concat(t),p=(0,r.useRef)(),h=e=>{e?f():(a(""),i&&i(e))},f=()=>{fetch("SvrTicket/ResubmitTicket",{body:JSON.stringify({tid:t,notes:d+"\n"+o}),method:"POST",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{e.success&&m(e.tid)})},m=e=>{u(/ticket/+e)};let g=255;if((0,r.useEffect)(()=>{const e=setTimeout(()=>{n&&p.current&&null!==p.current&&p.current.focus()},100);return()=>{clearTimeout(e)}},[n]),null!==c)return(0,Ye.jsx)(ge,{to:c,replace:!0});let v=(0,Ye.jsxs)(Aa,{open:n,"aria-labelledby":"submit-revision-dialog",children:[(0,Ye.jsx)(Kl,{id:"submit-revision-title",children:En("resubmissionNotesDialogTitle")}),(0,Ye.jsx)(za,{children:(0,Ye.jsxs)(Pr,{kye:"notes",fullWidth:!0,variant:"filled",children:[(0,Ye.jsx)(wo,{htmlFor:"detailsNotes",children:d}),(0,Ye.jsx)(pl,{id:"detailsNotes",name:"notes",multiline:!0,rows:3,value:o,inputRef:p,onChange:e=>{let t=e.target.value,n=0;for(let r=0;r<t.length;r++)"\n"===t[r]&&(n+=2);g=253-d.length-n,t=t.substring(0,g),a(t),l(t.length>0&&""!==t.trim())},inputProps:{maxLength:g.toString()}})]})}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{h(!1)},color:"primary",children:En("cancel")}),(0,Ye.jsx)(kr,{variant:"contained",disabled:!s,onClick:()=>{h(!0)},color:"secondary",children:En("ok")})]})]});return(0,Ye.jsx)(r.Fragment,{children:v})}const Rj=Object.freeze({None:0,Error:1,DeleteConfirmation:2,AdTicketConfirmation:3,PrecheckReport:4,PreflightReport:5,GatefoldPreview:6});class Oj extends r.Component{constructor(e){super(e),this.displayName=Oj.name,this.deleteTicket=e=>{this.setState({showDialog:!0,dialogType:Rj.DeleteConfirmation,lastTicketToDelete:e})},this.confirmTicketDelete=e=>{fetch("SvrTicket/DeleteTicket?tid="+e,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.deleteTicketHandler(),this.setState({lastTicketToDelete:0,dialogMessage:""})):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogType:Rj.Error,dialogMessage:En(e.error)})})},this.resubmitTicket=(e,t)=>{t?this.setState({showResubmissionNotesDialog:!0}):fetch("SvrTicket/ResubmitTicket",{body:JSON.stringify({tid:e}),method:"POST",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{e.success?this.redirectToTicket(e.tid):this.setState({showDialog:!0,dialogType:Rj.Error,dialogMessage:En(e.error)})})},this.redirectToTicket=e=>{this.props.updateSubmission&&this.props.currentSubmission&&this.props.currentSubmission.ticket&&(this.props.currentSubmission.ticket=null,this.props.currentSubmission.editorInfo=null,this.props.updateSubmission(this.props.currentSubmission)),this.setState({redirectTo:/ticket/+e})},this.renderTicketLinks=e=>{var t=[];return!e.isSubmitted&&e.isContinueAllowed&&t.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"/ticket/".concat(e.id),children:En("continue")})})},"".concat(e.id,"_continue"))),!e.isSubmitted&&e.isDeleteAllowed&&t.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>this.deleteTicket(e.id),children:En("delete")})})}
2,"".concat(e.id,"_delete"))),e.isSubmitted&&e.isConfirmationAvailable&&t.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>{this.showdialog(Rj.AdTicketConfirmation,e.id)},children:En("adTicketConfirmation")})})},"".concat(e.id,"_confirm"))),e.isPrint&&e.canRequestProof&&e.isSubmitted&&t.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>this.props.onBuyAdditionalProofs(e.id),children:En("buyAdditionalProofs")})})},"".concat(e.id,"_buyMore"))),e.isPrint&&e.isPrintAvailable&&e.allowTicketResubmission&&(e.ticketResubmissionId?t.push((0,Ye.jsx)(dd,{interactive:!0,placement:"top-start",title:(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(Tn,{variant:"body2",children:e.isTicketResubmissionInProgress?En("ticketResubmissionPendingResubmission"):En("ticketResubmissionCompletedResubmission")}),(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsxs)(je,{to:"#",onClick:()=>this.redirectToTicket(e.ticketResubmissionId),children:[En("ticket")," #",e.ticketResubmissionId]})})]}),children:(0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{className:this.props.classes.disabled,to:"#",children:En("resubmitTicket")})})},"5")},"".concat(e.id,"_ticketResubmissionTooltip"))):t.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>this.resubmitTicket(e.id,e.isResubmissionNoteRequired),children:En("resubmitTicket")})})},"".concat(e.id,"_resubmit")))),t},this.dialog=e=>{let t="",n="",r=this.closeDialog,i=this.state.dialogType===Rj.PrecheckReport||this.state.dialogType===Rj.PreflightReport||this.state.dialogType===Rj.AdTicketConfirmation;if(this.state.dialogType===Rj.PrecheckReport)n=En("precheckReport"),t=(0,Ye.jsx)("iframe",{className:this.props.classes.iframe,title:this.state.currentId,src:"./File/StreamFile?fileType=PrecheckReport&id=".concat(this.state.currentId)});else if(this.state.dialogType===Rj.PreflightReport)n=En("preflightReport"),t=(0,Ye.jsx)("iframe",{className:this.props.classes.iframe,title:this.state.currentId,src:"./File/StreamFile?fileType=PreflightReport&id=".concat(this.state.currentId)});else if(this.state.dialogType===Rj.AdTicketConfirmation)n=En("adTicketConfirmationDialogTitle"),t=(0,Ye.jsx)("iframe",{className:this.props.classes.iframe,title:this.state.currentId,src:"./File/StreamFile?fileType=Receipt&id=".concat(this.state.currentId)});else if(this.state.dialogType===Rj.DeleteConfirmation)n=En("deleteTicketDialogHeader"),r=()=>this.closeDialog(!0),t=(0,Ye.jsx)(Tn,{variant:"body2",children:En("deleteTicketDialogText")});else if(this.state.dialogType===Rj.Error)n=En("error"),t=(0,Ye.jsx)(Tn,{variant:"body2",children:this.state.dialogMessage});else if(this.state.dialogType===Rj.GatefoldPreview)return(0,Ye.jsx)(Pj,{open:this.state.showDialog,closeDialog:this.closeDialog,ticket:this.props.data});return(0,Ye.jsxs)(Aa,{open:this.state.showDialog,classes:i?{paperScrollPaper:e.dialogComponent}:{},scroll:i?"body":"paper",fullWidth:i,maxWidth:i?"lg":"sm",onClose:()=>{this.closeDialog()},children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:n}),(0,Ye.jsx)(za,{className:i?this.props.classes.dialogContent:"",children:t}),(0,Ye.jsxs)(Ia,{className:i?this.props.classes.dialogActions:"",children:[this.state.dialogType!==Rj.DeleteConfirmation?[""]:[(0,Ye.jsx)(kr,{name:"cancel",variant:"contained",onClick:()=>{this.closeDialog()},color:"primary",children:En("cancel")},1)],(0,Ye.jsx)(kr,{name:"ok",variant:"contained",autoFocus:!0,onClick:r,color:"secondary",children:En("ok")})]})]})},this.showdialog=(e,t)=>
2{this.setState({showDialog:!0,dialogType:e,currentId:t})},this.closeDialog=e=>{void 0!==e&&e&&this.state.dialogType===Rj.DeleteConfirmation?this.confirmTicketDelete(this.state.lastTicketToDelete):this.setState({showDialog:!1,lastTicketToDelete:0})},this.renderComponentDetails=(e,t,n,r)=>{var i=[];let o="";return t.panelPositions&&(1===t.panelPositions.length?o=null===t.panelPositions[0].name?"Page ".concat(n+1):t.panelPositions[0].name:2===t.panelPositions.length?o=t.panelPositions[0].name+"/"+t.panelPositions[t.panelPositions.length-1].name:t.panelPositions.length>2&&(o=t.panelPositions[0].name+"-"+t.panelPositions[t.panelPositions.length-1].name)),!r&&t.precheckReportExists&&i.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>{this.showdialog(Rj.PrecheckReport,t.id)},children:jn("viewPrecheckReport",o)})})},"".concat(t.id,"_precheck"))),!r&&t.preflightReportExists&&i.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>{this.showdialog(Rj.PreflightReport,t.id)},children:jn("viewPreflightReport",o)})})},"".concat(t.id,"_preflight"))),!r&&n===e.components.length-1&&e.isPrint&&e.hasPreview&&e.isSubmitted&&i.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>this.showdialog(Rj.GatefoldPreview,e.id),children:En("gatePreview")})})},"".concat(e.id,"_preview"))),i},this.findMinAndMaxValuesForComponent=(e,t)=>{t<e.min&&(e.min=t),t>e.max&&(e.max=t)},this.findMinAndMaxValuesForComponent2=(e,t,n)=>{t<e.min&&(e.min=t),n>e.max&&(e.max=n)},this.getFilePath=e=>e.isPublisherSupplied?"File/StreamPublisherSuppliedImage?tcid=".concat(e.id):null!=e.fileType?"File/StreamFile?fileType=".concat(e.fileType,"&id=").concat(e.componentId,"&hash=").concat(e.fileHash):"",this.formatRange=(e,t)=>{let n=e.min,r=e.max;return'"'!==t&&(n=+(25.4*n).toFixed(4),r=+(25.4*r).toFixed(4)),n===r?"".concat(n).concat(t):"".concat(n).concat(t," - ").concat(r).concat(t)},this.truncateFileName=(e,t)=>e?e.length<=t?e:"".concat(e.substring(0,t),"..."):"",this.renderTicketDetails=(e,t,n)=>{if(e.isPrint){let i=[],o=[],a=[],s="",l="",c={min:99999,max:-99999},u={min:99999,max:-99999},d={min:99999,max:-99999},p={min:99999,max:-99999},h=void 0!==e.components[0]&&'"'===e.components[0].userMeasurementPreference?'"':" mm";e.components.map((e,t)=>{void 0!==e.filename&&null!==e.filename&&(s=""===s?this.truncateFileName(e.filename,20):"".concat(s,", ").concat(this.truncateFileName(e.filename,20))),l=""===l?e.notes:"".concat(l,", ").concat(e.notes),this.findMinAndMaxValuesForComponent(c,e.trimWidth),this.findMinAndMaxValuesForComponent(u,e.trimHeight),this.findMinAndMaxValuesForComponent2(d,e.minBleed,e.maxBleed),this.findMinAndMaxValuesForComponent2(p,e.minSafety,e.maxSafety),e.isPublisherSupplied||(o.push(e.colors),null!=e.pmsColor&&""===e.pmsColor.trim()?a.push(null):a.push(e.pmsColor));let n=this.getFilePath(e);return i.push((0,Ye.jsx)(kp,{component:e,filePath:n,componentSize:e.tempSize,sizePanels:e.sizeElements,marginLeft:10},t)),""});let f=this.formatRange(c,h),m=this.formatRange(u,h),g=this.formatRange(d,h),v=this.formatRange(p,h),y="";if(o.length>1)for(let e=1;e<o.length;e++)o[e-1]+a[e-1]!==o[e]+a[e]&&(y=En("varied"));return y!==En("varied")&&(y=o[0]+(null===a[0]?"":", ".concat(a[0]))),(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(Vl,{className:t.component,item:!0,xs:3,children:(0,Ye.jsx)("div",{style:{display:"inline-flex",marginTop:20},children:i.map(e=>e)})}),(0,Ye.jsx)(Vl,{className:t.componentDetails,item:!0,xs:6,children:e.components.length>0?[(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("filenames"),": ",s]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("width"),": ",f]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("height"),": ",m]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("bleed"),": ",g]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("safety"),": ",v]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("colors"),": ",y]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("notes"),": ",l]})})]}
2,1)]:[(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("filenames"),":"]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("width"),":"]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("height"),":"]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("bleed"),":"]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("safety"),":"]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("colors"),":"]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("notes"),":"]})})]},2)]}),(0,Ye.jsx)(Vl,{style:{paddingLeft:90},item:!0,xs:3,children:(0,Ye.jsx)("div",{style:{paddingTop:10},children:e.components.map((t,r)=>this.renderComponentDetails(e,t,r,n))})})]},void 0!==e.components[0]?e.components[0].componentId:e.id)}{let n="File/StreamFile?fileType=MediaTypeThumbnail&id=".concat(e.thumbnailFileName);return(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(Vl,{className:t.component,item:!0,xs:3,children:(0,Ye.jsx)("div",{className:t.mediaPanelContainer,children:(0,Ye.jsx)("img",{src:n,alt:e.thumbnailFileName})})}),(0,Ye.jsxs)(Vl,{className:t.component,style:{paddingLeft:20},item:!0,children:[(0,Ye.jsx)(Tn,{variant:"body2",children:e.isDetailsOnly?En("ticketDetailsOnly"):"".concat(En("filenames"),": ").concat(this.getMediaFilenamesTruncated(e.components))}),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{variant:"body2",children:e.advertiserNotes})})]}),(0,Ye.jsx)(Vl,{item:!0,xs:2,children:(0,Ye.jsx)("div",{})})]},e.component)}},this.getMediaFilenamesTruncated=e=>{let t="",n=e.length>4?e.length-4:0;e=e.slice(0,4);for(let r=0;r<e.length;r++)t.length>0&&(t+=", "),t+=this.truncateFileName(e[r].filename,30);return n>0&&(t+=", plus ".concat(n," file(s)")),t},this.state={currentId:0,showDialog:!1,dialogMessage:"",dialogTitle:"",dialogType:Rj.None,lastTicketToDelete:0,ticketState:Mp.None,redirectTo:null,showResubmissionNotesDialog:!1}}render(){const{classes:e,data:t,hideLinks:n,className:r,clickHandler:i}=this.props;let o=void 0===r?e.grid:"".concat(e.grid," ").concat(r);if(null!==this.state.redirectTo)return(0,Ye.jsx)(ge,{to:this.state.redirectTo,replace:!0});let a=void 0===i?()=>{}:i;return(0,Ye.jsxs)("div",{className:o,onClick:a,children:[(0,Ye.jsxs)(Vl,{container:!0,children:[(0,Ye.jsx)(Vl,{item:!0,xs:9,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("ticket")," #",t.id," (",t.status,") ",t.publicationName," | ",t.issueName," | ",t.lastChanged," ",En(t.lastChangedText)," ",En("old")]})}),(0,Ye.jsx)(Vl,{style:{paddingLeft:90},item:!0,xs:3,children:!n&&this.renderTicketLinks(t).map(e=>e)}),this.renderTicketDetails(t,e,n)]}),this.dialog(e),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted}),(0,Ye.jsx)(Lj,{showDialog:this.state.showResubmissionNotesDialog,onCloseHandler:()=>this.setState({showResubmissionNotesDialog:!1}),ticketId:t.id})]})}}const zj=pn(Oj,e=>({grid:{paddingTop:7,paddingBottom:7,borderBottomStyle:"solid",borderBottomWidth:2,borderBottomColor:"black"},component:{paddingTop:5,paddingBottom:5,width:354,overflow:"auto","&::-webkit-scrollbar":{webkitAppearance:"none"},"&::-webkit-scrollbar:horizontal":{height:"11px"},"&::-webkit-scrollbar-thumb":{borderRadius:"8px",border:"2px solid white",backgroundColor:"rgba(0,0,0,0.5)"}},componentDetails:{paddingLeft:20,paddingTop:5,paddingBottom:5,overflow:"auto"},mediaPanelContainer:{width:110,float:"left"},panelLabel:{fontWeight:"bold",position:"absolute",top:3,zIndex:1},dialogContent:{position:"relative"},dialogActions:{display:"block",justifyContent:"none",textAlign:"center"},iframe:{width:"100%",height:"calc(100vh - 240px)"},dialogComponent:{maxHeight:"calc(100% - 20px)"},disabled:{color:e.palette.text.disabled}}));var Fj=function(e,t){return Fj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Fj(e,t)};var Bj=function(){return Bj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Bj.apply(this,arguments)};var Uj="Pixel",Hj="Percent",Wj={unit:Hj,value:.8};function Vj(e){return"number"===typeof e?{unit:Hj,value:100*e}:"string"===typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:Uj,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:Hj,value:parseFloat(e)}
2:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),Wj):(console.warn("scrollThreshold should be string or number"),Wj)}var Gj=function(e){function t(t){var n=e.call(this,t)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:"string"===typeof n.props.scrollableTarget?document.getElementById(n.props.scrollableTarget):(null===n.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n happen because the element may not have been added to DOM yet.\n See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n "),null)},n.onStart=function(e){n.lastScrollTop||(n.dragging=!0,e instanceof MouseEvent?n.startY=e.pageY:e instanceof TouchEvent&&(n.startY=e.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n.onMove=function(e){n.dragging&&(e instanceof MouseEvent?n.currentY=e.pageY:e instanceof TouchEvent&&(n.currentY=e.touches[0].pageY),n.currentY<n.startY||(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),n.currentY-n.startY>1.5*n.maxPullDownDistance||n._infScroll&&(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)")))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="unset")})},n.onScrollListener=function(e){"function"===typeof n.props.onScroll&&setTimeout(function(){return n.props.onScroll&&n.props.onScroll(e)},0);var t=n.props.height||n._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;n.actionTriggered||((n.props.inverse?n.isElementAtTop(t,n.props.scrollThreshold):n.isElementAtBottom(t,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=t.scrollTop)},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},n.throttledOnScrollListener=function(e,t,n,r){var i,o=!1,a=0;function s(){i&&clearTimeout(i)}function l(){var l=this,c=Date.now()-a,u=arguments;function d(){a=Date.now(),n.apply(l,u)}o||(r&&!i&&d(),s(),void 0===r&&c>e?d():!0!==t&&(i=setTimeout(r?function(){i=void 0}:d,void 0===r?e-c:e)))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),l.cancel=function(){s(),o=!0},l}(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return function(e,t){function n(){this.constructor=e}Fj(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){if("undefined"===typeof this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"===typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!==typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n Pull Down To Refresh functionality will not work\n as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)
2))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength!==t.prevDataLength?Bj(Bj({},t),{prevDataLength:e.dataLength}):null},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=Vj(t);return r.unit===Uj?e.scrollTop<=r.value+n-e.scrollHeight+1:e.scrollTop<=r.value/100+n-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=Vj(t);return r.unit===Uj?e.scrollTop+n>=e.scrollHeight-r.value:e.scrollTop+n>=r.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=Bj({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.createElement("div",{style:i,className:"infinite-scroll-component__outerdiv"},r.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&r.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},r.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(r.Component);const qj=Gj;function Kj(e){return(0,ut.Ay)("MuiFormGroup",e)}(0,ct.A)("MuiFormGroup",["root","row","error"]);const Yj=["className","row"],Xj=(0,lt.Ay)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(e=>{let{ownerState:t}=e;return(0,Be.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})}),Zj=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiFormGroup"}),{className:r,row:i=!1}=n,o=(0,rt.A)(n,Yj),a=ci({props:n,muiFormControl:Lr(),states:["error"]}),s=(0,Be.A)({},n,{row:i,error:a.error}),l=(e=>{const{classes:t,row:n,error:r}=e,i={root:["root",n&&"row",r&&"error"]};return(0,ot.A)(i,Kj,t)})(s);return(0,Ye.jsx)(Xj,(0,Be.A)({className:(0,it.A)(l.root,r),ownerState:s,ref:t},o))}),Qj=Zj;function Jj(e){return(0,ut.Ay)("MuiRadioGroup",e)}(0,ct.A)("MuiRadioGroup",["root","row","error"]);const $j=r.createContext(void 0),eN=["actions","children","className","defaultValue","name","onChange","value"],tN=r.forwardRef(function(e,t){const{actions:n,children:i,className:o,defaultValue:a,name:s,onChange:l,value:c}=e,u=(0,rt.A)(e,eN),d=r.useRef(null),p=(e=>{const{classes:t,row:n,error:r}=e,i={root:["root",n&&"row",r&&"error"]};return(0,ot.A)(i,Jj,t)})(e),[h,f]=(0,mi.A)({controlled:c,default:a,name:"RadioGroup"});r.useImperativeHandle(n,()=>({focus:()=>{let e=d.current.querySelector("input:not(:disabled):checked");e||(e=d.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);const m=(0,Dn.A)(t,d),g=(0,$u.A)(s),v=r.useMemo(()=>({name:g,onChange(e){f(e.target.value),l&&l(e,e.target.value)},value:h}),[g,l,f,h]);return(0,Ye.jsx)($j.Provider,{value:v,children:(0,Ye.jsx)(Qj,(0,Be.A)({role:"radiogroup",ref:m,className:(0,it.A)(p.root,o)},u,{children:i}))})}),nN=tN,rN=(0,wi.A)((0,Ye.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),iN=(0,wi.A)((0,Ye.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),oN=(0,lt.Ay)("span",{shouldForwardProp:In.A})({position:"relative",display:"flex"}),aN=(0,lt.Ay)(rN)({transform:"scale(1)"}),sN=(0,lt.Ay)(iN)(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})});const lN=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=(0,Be.A)({},e,{checked:t});return(0,Ye.jsxs)(oN,{className:n.root,ownerState:i,children:[(0,Ye.jsx)(aN,{fontSize:r,className:n.background,ownerState:i}),(0,Ye.jsx)(sN,{fontSize:r,className:n.dot,ownerState:i})]})};var cN=n(6593);function uN(e){return(0,ut.Ay)("MuiRadio",e)}const dN=(0,ct.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),pN=["checked","checkedIcon","color","icon","name","onChange","size","className"],hN=(0,lt.Ay)(Si,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t["size".concat((0,st.A)(n.size))],t["color".concat((0,st.A)(n.color))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainCh
2annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,mn.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(dN.checked)]:{color:(t.vars||t).palette[n.color].main}},{["&.".concat(dN.disabled)]:{color:(t.vars||t).palette.action.disabled}})});const fN=(0,Ye.jsx)(lN,{checked:!0}),mN=(0,Ye.jsx)(lN,{}),gN=r.forwardRef(function(e,t){var n,i;const o=(0,Ue.b)({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:s=fN,color:l="primary",icon:c=mN,name:u,onChange:d,size:p="medium",className:h}=o,f=(0,rt.A)(o,pN),m=(0,Be.A)({},o,{color:l,size:p}),g=(e=>{const{classes:t,color:n,size:r}=e,i={root:["root","color".concat((0,st.A)(n)),"medium"!==r&&"size".concat((0,st.A)(r))]};return(0,Be.A)({},t,(0,ot.A)(i,uN,t))})(m),v=r.useContext($j);let y=a;const b=(0,cN.A)(d,v&&v.onChange);let x=u;var S,w;return v&&("undefined"===typeof y&&(S=v.value,y="object"===typeof(w=o.value)&&null!==w?S===w:String(S)===String(w)),"undefined"===typeof x&&(x=v.name)),(0,Ye.jsx)(hN,(0,Be.A)({type:"radio",icon:r.cloneElement(c,{fontSize:null!=(n=mN.props.fontSize)?n:p}),checkedIcon:r.cloneElement(s,{fontSize:null!=(i=fN.props.fontSize)?i:p}),ownerState:m,classes:g,name:x,checked:y,onChange:b,ref:t,className:(0,it.A)(g.root,h)},f))}),vN=Object.freeze({Error:0,RequestPolicy:1});class yN extends r.Component{constructor(e){super(e),this.displayName=yN.name,this.findShippingCostById=e=>{const{proofPaymentData:t}=this.props;for(let n=0;n<t.shippingConfigs.length;n++)if(t.shippingConfigs[n].id===e)return t.shippingConfigs[n].price;return 0},this.proofPaymentChange=e=>{let t=+document.getElementById("copies").value,n="$--.--";if(-1!==e.target.name.indexOf("radio")){if(!Number.isNaN(t)){let r=+e.target.value;t=t*this.props.proofPaymentData.proofPrice+this.findShippingCostById(r),n="$"+t+".00",this.setState({totalCost:n,radioValue:e.target.value})}}else if(!Number.isNaN(t)){let e=this.state.radioValue;t=t*this.props.proofPaymentData.proofPrice+this.findShippingCostById(e),n="$"+t+".00",this.setState({totalCost:n})}},this.showDialog=()=>{this.setState({showDialog:!0,dialogType:vN.RequestPolicy})},this.closeDialog=()=>{this.setState({showDialog:!1})},this.validateForm=e=>{let t=!0,n=+e.value;return Number.isNaN(n)||!Number.isInteger(n)||n<1||n>10?(t=!1,e.setCustomValidity("Requires a number between 1 and 10")):e.setCustomValidity(""),t},this.submitForm=e=>{const{proofPaymentData:t}=this.props;let n=document.getElementById("CyberSourceShippingForm"),r=document.getElementById("copies"),i=document.getElementById("email"),o=document.getElementById("phoneNumber");if(!this.validateForm(r)||!n.checkValidity())return!1;e.preventDefault(),fetch("SvrTicket/SignFormAndSend",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({shippingConfigId:this.state.radioValue,numberOfProofs:r.value,email:i.value,phoneNumber:o.value,tid:t.ticketId,returnToTracking:void 0===this.props.cancelProofRequest})}).then(e=>e.json()).then(e=>{e.success?this.setState({formToSubmit:e.request,paymentUrl:e.paymentUrl},()=>{document.getElementById("CyberSourceSubmissionForm").submit(),this.setState({formToSubmit:void 0,paymentUrl:""})}):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogMessage:En(e.error),dialogType:vN.Error})})},this.clickSubmit=()=>{document.getElementById("submit").click()};let t=e.proofPaymentData.shippingConfigs[e.proofPaymentData.shippingConfigs.length-1].id.toString(),n="$".concat(this.findShippingCostById(+t)+e.proofPaymentData.proofPrice,".00");this.state={showDialog:!1,radioValue:t,totalCost:n,formToSubmit:void 0,dialogType:vN.RequestPolicy,dialogMessage:"",paymentUrl:"",ticketState:Mp.None}}render(){const{classes:e,proofPaymentData:t,open:n,close:i,cancelProofRequest:o}=this.props;let{formToSubmit:a,paymentUrl:s}=this.state,l="true"===ic("help","showProofRequestGuideLink"),c="";o&&(c=(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:o,color:"primary",children:En("cancelProofRequest")}));let u=this.state.dialogType===vN.RequestPolicy?En("proofRequestPolicyTitle"):En("error");return(0,Ye.jsxs)(Aa,{open:n,onClose:()=>i(0),children:[(0,Ye.jsx)(Kl,{className:e.smallerDialogTitle,id:"form-dialog-title",children:En("requestedAColorProof")}
2),(0,Ye.jsxs)(za,{children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:e.info,children:(0,Ye.jsx)(Tn,{variant:"body2",children:En("proofInfoLine1")})}),l?(0,Ye.jsx)("div",{className:e.info,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:["".concat(En("proofInfoLine2")," "),(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"./File/HelpResource?fileType=ProofRequestGuide",children:En("proofRequestGuide")})]})}):null,(0,Ye.jsx)("div",{className:e.info,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:this.showDialog,children:En("refundPolicy")})})}),(0,Ye.jsx)("p",{}),(0,Ye.jsx)("div",{className:e.info,children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.bold,children:En("numberOfCopies")})}),(0,Ye.jsxs)("form",{id:"CyberSourceShippingForm",children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,required:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"copies",children:En("copies")}),(0,Ye.jsx)(uo,{id:"copies",name:"copies",defaultValue:1,autoComplete:"copies",onChange:this.proofPaymentChange})]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,required:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"email",children:En("email")}),(0,Ye.jsx)(uo,{id:"email",type:"email",name:"email",defaultValue:t.email,autoComplete:"email"})]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,required:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"phoneNumber",children:En("phoneNumber")}),(0,Ye.jsx)(uo,{id:"phoneNumber",name:"phoneNumber",defaultValue:t.phoneNumber,autoComplete:"phoneNumber"})]})}),(0,Ye.jsx)("div",{className:e.sectionHeader,children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.bold,children:En("selectShipping")})}),(0,Ye.jsx)(nN,{value:this.state.radioValue,id:"radioGroup",className:e.radioGroup,onChange:this.proofPaymentChange,children:void 0!==t.shippingConfigs?t.shippingConfigs.map((t,n)=>(0,Ye.jsx)(fi,{label:"($".concat(t.price,".00) ").concat(t.description),value:"".concat(t.id),control:(0,Ye.jsx)(gN,{color:"primary",name:"radio-".concat(n),className:e.radio})},"ship_".concat(n))):""}),(0,Ye.jsx)(kr,{id:"submit",className:e.forIE11,type:"submit",onClick:this.submitForm,children:"''"})]}),(0,Ye.jsx)("div",{className:e.sectionHeader,children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.bold,children:En("proofCost")})}),(0,Ye.jsx)("div",{className:e.padLeft,children:(0,Ye.jsx)(Tn,{variant:"body2",children:En("costPerCopy")})}),(0,Ye.jsx)("div",{className:e.sectionHeader,children:(0,Ye.jsx)(Tn,{variant:"body2",className:e.bold,children:"".concat(En("proofTotal")," ").concat(this.state.totalCost)})}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,maxWidth:"md",children:[(0,Ye.jsx)(Kl,{className:e.bold,id:"form-dialog-title",children:u}),(0,Ye.jsx)(za,{children:this.state.dialogType===vN.RequestPolicy?[(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:e.policyText,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:["".concat(En("proofRequestPolicyLine1")," "),(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:En("quadARMUrl"),children:En("quadARMUrl")}),"."]})}),(0,Ye.jsx)("div",{className:e.policyText,children:(0,Ye.jsx)(Tn,{variant:"body2",children:En("proofRequestPolicyLine2")})}),(0,Ye.jsx)("div",{className:e.policyText,children:(0,Ye.jsx)(Tn,{variant:"body2",children:En("proofRequestPolicyLine3")})})]},"requestPolicyText")]:this.state.dialogMessage}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:this.closeDialog,color:"secondary",children:En("ok")})})]})]}),void 0!==this.state.formToSubmit?[(0,Ye.jsxs)("form",{id:"CyberSourceSubmissionForm",action:s,method:"post",children:[(0,Ye.jsx)("input",{type:"hidden",name:"access_key",value:a.accessKey}),(0,Ye.jsx)("input",{type:"hidden",name:"amount",value:a.amount}),(0,Ye.jsx)("input",{type:"hidden",name:"bill_to_address_city",value:a.billToAddressCity}),(0,Ye.jsx)("input",{type:"hidden",name:"bill_to_address_line1",value:a.billToAddressLine1}),(0,Ye.jsx)("input",{type:"hidden",name:"bill_to_address_line2",value:a.billToAddressLine2}),(0,Ye.jsx)("input",{type:"hidden",name:"bill_to_email",value:a.billToEmail}),(0,Ye.jsx)("input",{type:"hidden",name:"bill_to_forename",value:a.billToFirstName}),(0,Ye.jsx)("input",{type:"hidden",name:"bill_to_phone",value:a.billToPhoneNum}),(0,Ye.jsx)("input",{type:"hidden",name:"bill_to_surname",value:a.billToLastName}),(0,Ye.jsx)("input",{type:"hidden",name:"currency",value:a.currency}),(0,Ye.jsx)("input",{type:"hidden",name:"locale",value:a.locale}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data1",value:a.ticketId}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data2",value:a.publisherName}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data3",value:a.status}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data4",value:a.publicationName}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data5",value:a.issueName}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data6",value:a.mediaType}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data7",value:a.headline}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data8",value:a.product}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data9",value:a.size}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data10",value:a.pms}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data11",value:a.color}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data12",value:a.proofCount}),(0,Ye.jsx)("input",{type:"hidden",name:"merchant_defined_data13",value:a.proofShippingOption}),(0,Ye.jsx)("input",{type:"hidden",name:"override_custom_cancel_page",value:a.returnURL}),(0,Ye.jsx)("input",{type:"hidden",name:"override_custom_receipt_page",value:a.returnURL}),(0,Ye.jsx)("input",{type:"hidden",name:"profile_id",value:a.profileId}),(0,Ye.jsx)("input",{type:"hidden",name:"reference_number",value:a.referenceNumber}),(0,Ye.jsx)("input",{type:"hidden",name:"signature",value:a.signature}),(0,Ye.jsx)("input",{type:"hidden",name:"signed_date_time",value:a.signedDateTime}),(0,Ye.jsx)("input",{type:"hidden",name:"signed_field_names",value:a.signedFieldNames}),(0,Ye.jsx)("input",{type:"hidden",name:"transaction_type",value:a.transactionType}),(0,Ye.jsx)("input",{type:"hidden",name:"transaction_uuid",value:a.transactionGuid}),(0,Ye.jsx)("input",{type:"hidden",name:"unsigned_field_names",value:a.unsignedFieldNames})]},"cyberSourceForm")]:""]}
2),(0,Ye.jsxs)(Ia,{children:[c,(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>i(0),color:"primary",children:En("cancel")}),(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:this.clickSubmit,color:"secondary",children:En("payForProofs")})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const bN=pn(yN,e=>({info:{paddingBottom:10},gridInfo:{paddingTop:6},radioGroup:{marginLeft:10},radio:{padding:2},smallerDialogTitle:{fontWeight:"bold",fontSize:"1.25rem"},bold:{fontWeight:"bold"},sectionHeader:{paddingTop:20,paddingBottom:5},textField:{width:250},policyText:{paddingTop:10},policyTextTitle:{paddingBottom:20},padLeft:{paddingLeft:24},forIE11:{display:"none"}}),{withTheme:!0}),xN=Object.freeze({None:0,BuyProofs:1,Error:2,ProofPaymentResult:3});class SN extends r.Component{constructor(e){super(e),this.displayName=SN.name,this.getTickets=(e,t)=>{fetch("SvrTracking/GetTicketsForUser",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({searchText:e,numberOfTickets:t,completed:!0}),credentials:"same-origin"}).then(e=>e.json()).then(t=>{t.success?this.setState({tickets:t.tickets,totalTickets:t.totalTickets,isSearch:e&&e.length>0}):this.setState({showDialog:!0,message:En(t.error),dialogType:xN.Error})})},this.buyAdditionalProofs=e=>{fetch("SvrTicket/ProofRequestData?tid=".concat(e,"&allowProofs=true"),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{t.success&&this.setState({showDialog:!0,dialogType:xN.BuyProofs,proofPaymentData:{ticketId:e,shippingConfigs:t.shippingConfigs,email:t.email,phoneNumber:t.phoneNumber,proofPrice:t.proofPrice}})})},this.showDialog=()=>{let e="",t="";return this.state.dialogType===xN.Error?(e=En("error"),t=(0,Ye.jsx)(Tn,{variant:"body2",children:this.state.message})):this.state.dialogType===xN.ProofPaymentResult&&(e=En("proofPaymentResult"),t=(0,Ye.jsx)(Tn,{variant:"body2",children:this.state.message})),this.state.dialogType===xN.BuyProofs?(0,Ye.jsx)(bN,{open:this.state.showDialog,close:this.closeDialog,proofPaymentData:this.state.proofPaymentData}):(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:e}),(0,Ye.jsx)(za,{children:t}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:this.closeDialog,color:"secondary",children:En("ok")},1)})]})},this.submitSearch=e=>{let t=document.getElementById("searchForm"),n=document.getElementById("searchText");n.value.length<3?n.setCustomValidity(En("ticketSearchError")):n.setCustomValidity(""),t.checkValidity()&&(e.preventDefault(),this.getTickets(n.value))},this.closeDialog=()=>{this.setState({showDialog:!1})},this.onTextChange=e=>{this.setState({searchText:e.target.value})};let t=xN.None,n=!1,r="",i=Yl(e.location.search,"decision").toLowerCase(),o=Yl(e.location.search,"reason");if(""!==i){let e=!1;"decline"===i&&(i="reject",e=!0),i=En("cyberSource_".concat(i,"Message")),o.length>0&&(o="".concat(En("reason"),": ").concat(En("cyberSource_".concat(o)))),n=!0,t=xN.ProofPaymentResult,r=(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("p",{children:i}),(0,Ye.jsx)("p",{children:o}),e?[(0,Ye.jsx)("p",{children:En("cyberSource_rejectMessageDetails")})]:""]})}this.state={isSearch:!1,tickets:[],searchText:"",totalTickets:0,proofPaymentData:void 0,showDialog:n,dialogType:t,message:r}}componentDidMount(){this.getTickets()}render(){const{classes:e}=this.props;let t=this.state.isSearch?(0,Ye.jsx)(kr,{size:"small",onClick:()=>{this.getTickets()},className:e.searchMargin,variant:"contained",color:"secondary",children:En("reset")}):"";return(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Vl,{container:!0,children:[(0,Ye.jsx)(Vl,{item:!0,xs:8,children:(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("trackDeliveries")})}),(0,Ye.jsx)(Vl,{item:!0,xs:4,children:(0,Ye.jsx)("div",{className:e.searchAlign,children:(0,Ye.jsxs)("form",{id:"searchForm",children:[(0,Ye.jsx)(Pr,{style:{display:"inline"},variant:"standard",children:(0,Ye.jsx)(uo,{name:"searchText",id:"searchText",type:"text",onCh
2ange:this.onTextChange,className:e.searchField})}),(0,Ye.jsx)(kr,{size:"small",name:"search",type:"submit",onClick:this.submitSearch,className:"".concat(e.searchMargin," ").concat(e.neutralColor),variant:"contained",color:"primary",children:En("search")}),this.state.isSearch?"|":"",t]})})})]}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),this.showDialog(),(0,Ye.jsx)(qj,{dataLength:this.state.tickets.length,next:()=>{this.getTickets(this.state.searchText,this.state.tickets.length+5)},hasMore:this.state.tickets.length<this.state.totalTickets,loading:(0,Ye.jsx)("div",{children:En("ticketListLoading")}),size:50,children:this.state.tickets.map(e=>(0,Ye.jsx)(zj,{data:e,onBuyAdditionalProofs:this.buyAdditionalProofs,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission},e.id))})]})}}const wN=pn(SN,e=>({heading:{fontWeight:"bold",marginTop:e.spacing(1)},searchMargin:{marginRight:5,marginLeft:5},searchField:{width:180},searchAlign:{paddingTop:e.spacing(1),textAlign:"right"},searchError:{color:"red"},horizontalBar:{borderColor:"black"},nextButton:{marginTop:10,marginBottom:10,textAlign:"center"},neutralColor:{color:e.palette.neutral.contrastText,backgroundColor:e.palette.neutral.main,"&:hover":{backgroundColor:e.palette.neutral.dark}},bold:{fontWeight:"bold"}}),{withTheme:!0});n(2576);const{makeStyles:_N}=Gt({useTheme:Et}),kN=_N()(e=>{let t={submitRevisionButton:{marginTop:e.spacing(1),marginLeft:15},ticketRow:{display:"block",cursor:"pointer",padding:e.spacing(1),userSelect:"none",borderWidth:"1px",borderStyle:"solid",borderColor:"rgba(255,255,255,0)","&:hover":{background:"#DDD",boxShadow:"5px 5px 5px #777",borderRadius:"8px",borderWidth:"1px",borderStyle:"dashed",borderColor:"#AAA"},"&:active":{background:"#CCC"}},ticketRowSelected:{display:"block",cursor:"pointer",padding:e.spacing(1),userSelect:"none",background:"#BBB",boxShadow:"5px 5px 5px #777",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"#888"},progressContainer:{textAlign:"center"}};return t=rc(e,t,"ResubmissionDialog"),t});function MN(e){let{currentSubmission:t,updateSubmission:n,onticketSelectedHandler:i}=e;const{classes:o}=kN(),[a,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)([]),[u,d]=(0,r.useState)(-1),[p,h]=(0,r.useState)(null),[f,m]=(0,r.useState)(!0);(0,r.useEffect)(()=>{b()},[]);const g=e=>{s(!1);let t=null===l||void 0===l?void 0:l.find(e=>e.id===u);i&&t&&t.isResubmissionNoteRequired?i(u):e&&v(u)},v=e=>{fetch("SvrTicket/ResubmitTicket",{body:JSON.stringify({tid:e}),method:"POST",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{e.success&&y(e.tid)})},y=e=>{n&&t&&t.ticket&&(t.ticket=null,t.editorInfo=null,n(t)),h(/ticket/+e)},b=()=>{fetch("SvrTracking/GetResubmissionReadyTicketsForUser",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{c(e.tickets),m(!1)})};if(null!==p)return(0,Ye.jsx)(ge,{to:p,replace:!0});let x=(0,Ye.jsx)(kr,{style:{minWidth:160},size:"small",variant:"contained",onClick:()=>{s(!0)},disabled:a,className:o.submitRevisionButton,children:En("submitRevision")}),S=f?(0,Ye.jsx)("div",{className:o.progressContainer,children:(0,Ye.jsx)(At,{color:"primary",size:100})}):(0,Ye.jsx)(r.Fragment,{children:null===l||void 0===l?void 0:l.map(e=>(0,Ye.jsx)(zj,{clickHandler:()=>{return t=e.id,void d(t);var t},className:e.id===u?o.ticketRowSelected:o.ticketRow,data:e,hideLinks:!0},e.id))}),w=(0,Ye.jsxs)(Aa,{open:a,"aria-labelledby":"submit-revision-dialog",children:[(0,Ye.jsx)(Kl,{id:"submit-revision-title",children:En("resubmissionDialogTitle")}),(0,Ye.jsx)(za,{children:S}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{g(!1)},color:"primary",children:En("cancel")}),(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{g(!0)},color:"secondary",disabled:-1===u,children:En("ok")})]})]});return(0,Ye.jsxs)(r.Fragment,{children:[x,w]})}class CN extends r.Component{constructor(e){super(e),this.displayName=CN.name,this.setResubmissionTicketId=e=>{this.setState({resubmissionTicketId:e})},this.showErrorDialog=()=>(0,Ye.jsxs)(Aa,{open:this.state.showLastError,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:En("error")}),(0,Ye.jsx)(za,{children:this.state.lastErrorMessage}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:this.closeDialog,color:"secondary",children:En("ok")})})]}),this.closeDialog=()=>{this.setState({showLastError:!1})},this.onTicketDeleted=()=>{this.getTickets()},this.getTickets=(e,t)=>{fetch("SvrTracking/GetTicketsForUser",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({numberOfTickets:t,completed:!1,searchText:e})}).then(e=>e.json()).then(t=>{t.success?this.setState({tickets:t.tickets,totalTickets:t.totalTickets,searchText:e,isSearch:e&&e.length>0}):this.setState({showLastError:!0,lastErrorMessage:En(t.error)})})},this.submitSearch=e=>{let t=document.getElementById("searchForm"),n=document.getElementById("searchText");n.value.length<3?n.setCustomValidity(En("ticketSearchError")):n.setCustomValidity(""),t.checkValidity()&&(e.preventDefault(),this.getTickets(n.value))},this.onTextChange=e=>{this.setState({searchText:e.target.value})}
2,this.state={tickets:[],isSearch:!1,searchText:"",showLastError:!1,lastErrorMessage:"",resubmissionTicketId:-1}}componentDidMount(){this.getTickets()}render(){const{classes:e}=this.props;let t=this.state.isSearch?(0,Ye.jsx)(kr,{size:"small",onClick:e=>{this.getTickets()},className:e.searchMargin,variant:"contained",color:"secondary",children:En("reset")}):"";return(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Vl,{container:!0,columnSpacing:20,children:[(0,Ye.jsx)(Vl,{item:!0,xs:2,className:e.gridMinWidth,children:(0,Ye.jsx)(Tn,{className:e.header,variant:"h5",children:En("newContinue")})}),(0,Ye.jsxs)(Vl,{className:e.inlineFlex,item:!0,xs:4,children:[(0,Ye.jsx)(kr,{size:"small",className:e.newContinueButton,color:"secondary",variant:"contained",component:je,to:"/ticket/new",children:En("startNewTicket")}),this.props.allowAdResubmission&&(0,Ye.jsx)(MN,{currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission,onticketSelectedHandler:e=>this.setResubmissionTicketId(e)}),this.props.allowAdResubmission&&(0,Ye.jsx)(Lj,{ticketId:this.state.resubmissionTicketId,showDialog:-1!==this.state.resubmissionTicketId,onCloseHandler:()=>this.setState({resubmissionTicketId:-1})})]}),(0,Ye.jsx)(Vl,{item:!0,xs:!0,children:(0,Ye.jsx)("div",{className:e.searchAlign,children:(0,Ye.jsxs)("form",{id:"searchForm",children:[(0,Ye.jsx)(Pr,{style:{display:"inline"},variant:"standard",children:(0,Ye.jsx)(uo,{name:"searchText",id:"searchText",type:"text",onChange:this.onTextChange,className:e.searchField})}),(0,Ye.jsx)(kr,{size:"small",name:"search",type:"submit",onClick:this.submitSearch,className:"".concat(e.searchMargin," ").concat(e.neutralColor),variant:"contained",color:"primary",children:En("search")}),this.state.isSearch?"|":"",t]})})})]}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),(0,Ye.jsx)(qj,{dataLength:this.state.tickets.length,next:()=>this.getTickets(this.state.searchText,this.state.tickets.length+5),hasMore:this.state.tickets.length<this.state.totalTickets,loading:(0,Ye.jsx)("div",{children:En("ticketListLoading")}),size:50,children:this.state.tickets.map(e=>(0,Ye.jsx)(zj,{data:e,deleteTicketHandler:this.onTicketDeleted},e.id))})]})}}const TN=pn(CN,e=>({header:{fontWeight:"bold",width:400,paddingTop:e.spacing(1)},searchMargin:{marginRight:5,marginLeft:5},searchField:{width:180},searchAlign:{paddingTop:e.spacing(1),textAlign:"right"},searchError:{color:"red"},horizontalBar:{borderColor:"black"},newContinueButton:{marginTop:e.spacing(1),minWidth:160},gridMinWidth:{minWidth:300},neutralColor:{color:e.palette.neutral.contrastText,backgroundColor:e.palette.neutral.main,"&:hover":{backgroundColor:e.palette.neutral.dark}},inlineFlex:{display:"inline-flex"}})),AN=["checked","classes","className","disabled","inputRef","label","muiFormControl","name","onChange","value","publisherId","mediaTypeId","canSelect"];const EN=pn(function(e){const{checked:t,classes:n,className:i,disabled:o,inputRef:a,label:s,muiFormControl:l,name:c,onChange:u,value:d,publisherId:p,mediaTypeId:h,canSelect:f}=e,m=Yt(e,AN);let g=(0,Ye.jsx)(gN,{color:"primary"}),v=o;"undefined"===typeof v&&"undefined"!==typeof g.props.disabled&&(v=g.props.disabled),"undefined"===typeof v&&l&&(v=l.disabled),f||(v=!0);const y={disabled:v};["checked","name","onChange","value","inputRef"].forEach(t=>{"undefined"===typeof g.props[t]&&"undefined"!==typeof e[t]&&(y[t]=e[t])});let b="";return b=f?(0,Ye.jsxs)("div",{className:_c()(n.root,{[n.labelPlacementEnd]:!1,[n.disabled]:v},i),children:[r.cloneElement(g,y),(0,Ye.jsx)(Tn,{variant:"body2",component:"span",className:_c()(n.label,{[n.disabled]:v}),children:s})]}):(0,Ye.jsx)(Tn,{variant:"body2",component:"span",className:_c()(n.label,n.disabledCaption,{[n.disabled]:v}),children:jn("submissionNotOpen",s)}),(0,Ye.jsxs)("label",Fe(Fe({className:_c()(n.root,{[n.picturePlacement]:!0,[n.disabled]:v},i)},m),{},{children:[(0,Ye.jsx)("img",{src:"File/StreamFileCached?fileType=MediaTypeThumbnail&id=".concat(p,",").concat(h),alt:s,className:n.image}),b]}))},e=>({root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-14,marginRight:16,"&$disabled":{cursor:"default"}},picturePlacement:{flexDirection:"column",marginLeft:16},image:{height:"50px"},disabledCaption:{paddingTop:"12px",textAlign:"center",maxWidth:"150px",fontSize:"smaller"},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}),{name:"MediaPickerButton"});function jN(e){return(0,ut.Ay)("MuiLinearProgress",e)}(0,ct.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var NN,IN,DN,PN,LN,RN;const ON=["className","color","value","valueBuffer","variant"];let zN,FN,BN,UN,HN,WN;const VN=(0,at.i7)(zN||(zN=NN||(NN=nt(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),GN=(0,at.i7)(FN||(FN=IN||(IN=nt(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),qN=(0,at.i7)(BN||(BN=DN||(DN=nt(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),KN=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,mn.a)(e.palette[t].main,.62):(0,mn.e$)(e.palette[t].main,.5),YN=(0,lt.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["color".concat((0,st.A)(n.color))],t[n.variant]]}})(e=>{let{ownerState:t,theme:n}=e;return(0,Be.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:KN(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})}),XN=(0,lt.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t["dashedColor".concat((0,st.A)(n.color))]]}})(e=>{let{ownerState:t,theme:n}=e;const r=KN(n,t.color);return(0,Be.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},(0,at.AH)(UN||(UN=PN||(PN=nt(["\n animation: "," 3s infinite linear;\n "]))),qN)),ZN=(0,lt.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t["barColor".concat((0,st.A)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})(e=>{let{ownerState:t,theme:n}=e;return(0,Be.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})},e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,at.AH)(HN||(HN=LN||(LN=nt(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),VN)}),QN=(0,lt.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t["barColor".concat((0,st.A)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})(e=>{let{ownerState:t,theme:n}=e;return(0,Be.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:KN(n,t.color),transition:"transform .".concat(4,"s linear")})},e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,at.AH)(WN||(WN=RN||(RN=nt(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),GN)}),JN=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiLinearProgress"}),{className:r,color:i="primary",value:o,valueBuffer:a,variant:s="indeterminate"}=n,l=(0,rt.A)(n,ON),c=(0,Be.A)({},n,{color:i,variant:s}),u=(e=>{const{classes:t,variant:n,color:r}=e,i={root:["root","color".concat((0,st.A)(r)),n],dashed:["dashed","dashedColor".concat((0,st.A)(r))],bar1:["bar","barColor".concat((0,st.A)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barC
2olor".concat((0,st.A)(r)),"buffer"===n&&"color".concat((0,st.A)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,ot.A)(i,jN,t)})(c),d=Ya(),p={},h={bar1:{},bar2:{}};if("determinate"===s||"buffer"===s)if(void 0!==o){p["aria-valuenow"]=Math.round(o),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=o-100;d&&(e=-e),h.bar1.transform="translateX(".concat(e,"%)")}else 0;if("buffer"===s)if(void 0!==a){let e=(a||0)-100;d&&(e=-e),h.bar2.transform="translateX(".concat(e,"%)")}else 0;return(0,Ye.jsxs)(YN,(0,Be.A)({className:(0,it.A)(u.root,r),ownerState:c,role:"progressbar"},p,{ref:t},l,{children:["buffer"===s?(0,Ye.jsx)(XN,{className:u.dashed,ownerState:c}):null,(0,Ye.jsx)(ZN,{className:u.bar1,ownerState:c,style:h.bar1}),"determinate"===s?null:(0,Ye.jsx)(QN,{className:u.bar2,ownerState:c,style:h.bar2})]}))}),$N=Object.freeze({NotSet:0,Supplied:3e3,Request:3001,None:3002,Virtual:3003,RequestPublisher:3004});function eI(e){return(0,ut.Ay)("MuiLink",e)}const tI=(0,ct.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var nI=n(17162);const rI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},iI=e=>{let{theme:t,ownerState:n}=e;const r=(e=>rI[e]||e)(n.color),i=(0,nI.Yn)(t,"palette.".concat(r),!1)||n.color,o=(0,nI.Yn)(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,mn.X4)(i,.4)},oI=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],aI=(0,lt.Ay)(Tn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,st.A)(n.underline))],"button"===n.component&&t.button]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,Be.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:iI({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(tI.focusVisible)]:{outline:"auto"}})}),sI=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiLink"}),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=n,h=(0,rt.A)(n,oI),{isFocusVisibleRef:f,onBlur:m,onFocus:g,ref:v}=(0,Ln.A)(),[y,b]=r.useState(!1),x=(0,Dn.A)(t,v),S=(0,Be.A)({},n,{color:o,component:a,focusVisible:y,underline:u,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root","underline".concat((0,st.A)(i)),"button"===n&&"button",r&&"focusVisible"]};return(0,ot.A)(o,eI,t)})(S);return(0,Ye.jsx)(aI,(0,Be.A)({color:o,className:(0,it.A)(w.root,i),classes:c,component:a,onBlur:e=>{m(e),!1===f.current&&b(!1),s&&s(e)},onFocus:e=>{g(e),!0===f.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(rI).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},h))});class lI extends r.Component{constructor(){super(...arguments),this.displayName=lI.name,this.handleUrlChange=e=>{let{currentSubmission:t}=this.props,n=Number(e.target.name.substring(3));for(var r in t.ticket.urls)if(t.ticket.urls[r].id===n){t.ticket.urls[r].url=e.target.value,this.props.updateSubmission(t);break}},this.deleteUrlClicked=e=>{let{currentSubmission:t}=this.props,n=-1;for(var r in t.ticket.urls)if(t.ticket.urls[r].id===e){n=r;break}n>=0&&(t.ticket.urls.splice(n,1),this.props.updateSubmission(t))},this.addUrlClicked=()=>{let{currentSubmission:e}=this.props,t=-1;for(var n in e.ticket.urls){let r=e.ticket.urls[n].id;r<=t&&(t=r-1)}e.ticket.urls.push({id:t,url:""}),this.props.updateSubmission(e)}}componentDidMount(){let{currentSubmission:e}=this.props;e.requiresUrls&&0===e.ticket.urls.length&&this.props.updateSubmission&&this.addUrlClicked()}render(){let{currentSubmission:e}=this.props;const{classes:t}=this.props;let n="",i=En("urls");if(e.requiresUrls&&(i+=" *"),e.mediaTypeFields)if(this.props.readOnly)n=(0,Ye.jsxs)("div",{className:t.fakeContainer,children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:i}),e.ticket.urls.map(e=>(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{href:e.url,alt:"Custom Ticket URL",target:"_blank",rel:"noopener noreferrer",children:e.url})},e.id))]});else{let r=!0;n=(0,Ye.jsxs)("div",{className:t.fakeContainer,children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:i}),e.ticket.urls.map(n=>{let i=(0,Ye.jsx)("div",{className:t.autoFitColumn,children:(0,Ye.jsx)(sI,{component:kr,className:t.linkButton,onClick:()=>this.deleteUrlClicked(n.id),children:En("delete")})});return e.requiresUrls&&r&&(i="",r=!1),(0,Ye.jsxs)("div",{className:t.flexibleRow,children:[(0,Ye.jsx)("div",{className:t.fillRemainderColumn,children:(0,Ye.jsx)(uo,{type:"url",name:"url".concat(n.id),margin:"dense",required:!0,fullWidth:!0,value:n.url,onChange:this.handleUrlChange})}),i]},n.id)}),(0,Ye.jsx)(sI,{component:kr,className:t.linkButton,onClick:()=>this.addUrlClicked(),children:En("addUrl")})]})}else n=(0,Ye.jsx)(JN,{variant:"query"});return(0,Ye.jsx)(r.Fragment,{children:n})}}const cI=pn(lI,e=>({spacer:{paddingTop:e.spacing(2)},fakeContainer:{maxWidth:"700px",background:"rgba(0,0,0,0.09)",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",padding:"12px",paddingTop:"0",marginTop:"4px",borderBottom:"1px solid rgba(0, 0, 0, 0.42)","&:hover":{background:"rgba(0,0,0,0.13)",borderBottom:"1px solid rgba(0, 0, 0, 0.87)"},transition:"background-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"},fakeLabel:{fontFamily:e.typography.subtitle1.fontFamily,fontSize:"0.75rem",width:"100%",color:"rgba(0, 0, 0, 0.54)",paddingTop:e.spacing(1)},fakeInput:{fontSize:"1rem",width:"100%"},fakeDisabled:{color:"#bbb"},linkButton:{textDecoration:"underline",padding:"3px 4px","&:hover":{backgroundColor:"transparent"}},flexibleRow:{display:"flex",flexDirection:"row",width:"100%","& div:not(:first-of-type)":{paddingLeft:e.spacing(1)},"& div:not(:last-of-type)":{paddingRight:e.spacing(1)}},autoFitColumn:{flexShrink:"0",marginTop:"auto"},fillRemainderColumn:{flex:"1 0 auto"}})),uI=Object.freeze({DYNAMIC:1,STATIC:2,PREMIUM:3,STATIC_LINK:4,DETAILS_ONLY:5,ENHANCED:6});class dI extends r.Component{constructor(){super(...arguments),this.displayName=dI.name,this.handleChange=e=>{let{currentSubmission:t}=this.props;t.ticket[e.target.name]=e.target.value,this.props.updateSubmission(t)}}render(){let{currentSubmission:e}=this.props;const{classes:t}=this.props;let n="",i="";return!e.allowsUrls||Number(e.ticket.fileTypeId)!==uI.STATIC_LINK&&Number(e.ticket.fileTypeId)!==uI.DETAILS_ONLY||(i=(0,Ye.jsx)(cI,{currentSubmission:e,updateSubmission:this.props.updateSubmission,readOnly:this.props.readOnly})),n=e.mediaTypeFields?this.props.readOnly?e.mediaTypeFields.map(n=>{let r=(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket[n.name]}),i=En("field_"+n.name);return n.required&&(i+=" *"),e.ticket[n.name]&&0!==e.ticket[n.name].length||(r=(0,Ye.jsx)(Tn,{variant:"body2",className:"".concat(t.fakeInput," ").concat(t.fakeDisabled),children:i})),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:i}),r]},n.name)}):e.mediaTypeFields.map(n=>n.options?(0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:n.required,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:n.name,children:En("field_"+n.name)}),(0,Ye.jsx)(Il,{native:!0,name:n.name,displayEmpty:!0,value:e.ticket[n.name],onChange:this.handleChange,children:n.options.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.name))})]},n.name):(0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:n.required,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:n.name,children:En("field_"+n.name)}),n.maxLength?(0,Ye.jsx)(uo,{name:n.name,value:e.ticket[n.name],onChange:this.handleChange,inputProps:{maxLength:n.maxLength}}):(0,Ye.jsx)(uo,{name:n.name,value:e.ticket[n.name],onChange:this.handleChange})]},n.name)):(0,Ye.jsx)(JN,{variant:"query"}),(0,Ye.jsxs)(r.Fragment,{children:[n,i]})}}const pI=pn(dI,e=>({spacer:{paddingTop:e.spacing(2)},widthLimited:{maxWidth:"700px"},fakeLabel:{fontFamily:e.typography.subtitle1.fontFamily,fontSize:"0.75rem",width:"100%",color:"rgba(0, 0, 0, 0.54)",paddingTop:e.spacing(1)},fakeInput:{fontSize:"1rem",width:"100%"},fakeDisabled:{color:"#bbb"}}));class hI extends r.Component{constructor(){super(...arguments),this.displayName=h
2I.name}render(){const{classes:e}=this.props;let{size:t}=this.props;var n=t.displayBleed.length>0?(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("bleed")," - ",t.displayBleed]}):"",r=t.displaySafety.length>0?(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("safety")," - ",t.displaySafety]}):"",i=En("seePanels");return 1===t.sizeComponents.length&&(i=t.sizeComponents[0].displayWidth),(0,Ye.jsxs)("div",{className:this.props.className,onClick:this.props.onClick,children:[(0,Ye.jsx)("div",{className:e.sizeGroupCell,children:(0,Ye.jsx)("div",{className:e.sizeGroupPages,children:t.sizeComponents.map(n=>{let r="";return t.sizeComponents.length>1&&(r=(0,Ye.jsx)(Tn,{variant:"body2",style:{marginLeft:"1em"},children:n.displayWidth})),(0,Ye.jsxs)("div",{className:e.panels,children:[(0,Ye.jsx)(kp,{componentSize:n.viewSize,sizePanels:n.panels,marginLeft:"1em"}),r]},n.id)})})}),(0,Ye.jsxs)("div",{className:e.sizeGroupInfoCell,children:[(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("width")," - ",i]}),(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("height")," - ",t.displayHeight]}),(0,Ye.jsx)("br",{}),n,r]})]},t.id)}}const fI=pn(hI,e=>({sizeGroupCell:{display:"table-cell",verticalAlign:"top"},sizeGroupInfoCell:{display:"table-cell",verticalAlign:"top",paddingLeft:"1em",minWidth:"120px"},sizeGroupPages:{display:"flex"},panels:{textAlign:"center"}}));class mI extends r.Component{constructor(){super(...arguments),this.displayName=mI.name,this.sizeGroupClicked=e=>{let{currentSubmission:t}=this.props;t.ticket.sizeId=e,this.props.updateSubmission(t)},this.getFoldingDummy=e=>{const{classes:t}=this.props;if(e.sameFoldingDummy){if(e.groupSizes.length>0&&e.groupSizes[0].foldingDummyExists)return(0,Ye.jsx)("div",{className:t.foldingDummyExpanded,children:(0,Ye.jsx)("img",{src:"File/StreamFile?fileType=AdSizePreview&id=".concat(e.ticket.publisherId,",").concat(e.groupSizes[0].id),alt:"Size Sample"})})}else if(e.ticket.sizeId)for(var n in e.groupSizes)if(e.groupSizes[n].id===e.ticket.sizeId)return(0,Ye.jsx)("div",{className:t.foldingDummyExpanded,children:(0,Ye.jsx)("img",{src:"File/StreamFile?fileType=AdSizePreview&id=".concat(e.ticket.publisherId,",").concat(e.groupSizes[n].id),alt:"Size Sample"})});return(0,Ye.jsx)("div",{className:t.foldingDummyCollapsed,children:"\xa0"})}}render(){const{classes:e}=this.props;let{currentSubmission:t}=this.props,n="";return n=t.groupSizes?(0,Ye.jsxs)("div",{className:e.sizeGroups,children:[this.getFoldingDummy(t),(0,Ye.jsx)("div",{className:e.sizeGroupCell,children:(0,Ye.jsx)("div",{className:e.sizeGroups,children:t.groupSizes.map(n=>{if(!t.ticket.isCreateAnAd){var r=e.sizeGroupRow;return t.ticket.sizeId===n.id&&(r=e.sizeGroupSelected),(0,Ye.jsx)(fI,{size:n,className:r,onClick:()=>this.sizeGroupClicked(n.id)},n.id)}return""})})})]}):(0,Ye.jsx)(JN,{variant:"query"}),(0,Ye.jsx)(r.Fragment,{children:n})}}const gI=pn(mI,e=>({spacer:{paddingTop:e.spacing(2)},sizeGroups:{display:"table"},foldingDummyExpanded:{display:"table-cell",width:"150px",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},foldingDummyCollapsed:{display:"table-cell",width:e.spacing(1),transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},sizeGroupRow:{display:"block",cursor:"pointer",padding:e.spacing(1),userSelect:"none",borderWidth:"1px",borderStyle:"solid",borderColor:"rgba(255,255,255,0)","&:hover":{background:"#DDD",boxShadow:"5px 5px 5px #777",borderRadius:"8px",borderWidth:"1px",borderStyle:"dashed",borderColor:"#AAA"},"&:active":{background:"#CCC"}},sizeGroupSelected:{display:"block",cursor:"pointer",padding:e.spacing(1),userSelect:"none",background:"#BBB",boxShadow:"5px 5px 5px #777",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:"#888"},sizeGroupCell:{display:"table-cell",verticalAlign:"top"},sizeGroupInfoCell:{display:"table-cell",verticalAlign:"top",paddingLeft:"1em",minWidth:"120px"},sizeGroupPages:{display:"flex"},panels:{textAlign:"center"}}));var vI=n(22536);const yI=Object.freeze({NONE:0,SEND_PROOF:1,REQUEST_PROOF:2,WAIVE_PROOF:3,ER
2ROR:4,PROOF_DELIVERY_DETAILS:5}),bI="isrUpload";class xI extends r.Component{constructor(e){super(e),this.displayName=xI.name,this.getSelectedSize=()=>{let{currentSubmission:e}=this.props;if(e.ticket.sizeGroupId||e.ticket.sizeId)for(var t in e.adSizes){let n=Number(e.ticket.sizeGroupId),r=Number(e.ticket.sizeId);if(n>0&&e.adSizes[t].id===n||r>0&&e.adSizes[t].sizeId===r)return e.adSizes[t]}return null},this.handleChange=e=>{let{currentSubmission:t}=this.props;if("checkbox"===e.target.type)t.ticket[e.target.value]=e.target.checked,"isCreateAnAd"!==e.target.value&&"isInsertWorkflow"!==e.target.value||(t.sizeGroup="",t.ticket.sizeId=null,t.ticket.sizeGroupId=null,t.ticket.isrUploadPageCount=null,t.groupSizes=null),"isInsertWorkflow"===e.target.value&&this.props.loadAdSizes(t);else if("sizeGroup"===e.target.name){if(t.sizeGroup=e.target.value,t.sizeGroup===bI)t.ticket.sizeId=null,t.ticket.sizeGroupId=null,t.ticket.isrUploadPageCount="1";else{var n=t.sizeGroup.split("_");t.ticket.sizeGroupId=n[0],t.ticket.sizeId=n[1],"null"===t.ticket.sizeId&&(t.ticket.sizeId=null),t.ticket.isrUploadPageCount=null,t.editorInfo=null}t.groupSizes=null,t.ticket.sizeId>0||t.ticket.isrUploadPageCount>0?t.multipleSizes=!1:(t.multipleSizes=!0,this.loadGroupSizes(t))}else t.ticket[e.target.name]=e.target.value;"proofIncluded"===e.target.name&&(t.ticket.proofIncluded&&t.ticket.proofIncluded.length>0&&(t.ticket.proofIncluded=Number(t.ticket.proofIncluded)),3e3===t.ticket.proofIncluded?this.setState({showingDialog:!0,dialogType:yI.SEND_PROOF}):3001===t.ticket.proofIncluded?t.canOrderProofs||this.setState({showingDialog:!0,dialogType:yI.REQUEST_PROOF}):3002===t.ticket.proofIncluded&&this.setState({showingDialog:!0,dialogType:yI.WAIVE_PROOF})),this.props.updateSubmission(t)},this.loadGroupSizes=e=>{let t=e.ticket.publisherId,n=e.ticket.publicationId,r=e.ticket.issueId;(e.allowInsertsWorkflow&&e.ticket.isInsertWorkflow&&!e.selectedPublication.hasAssociations||e.allowInsertsWorkflow&&!e.ticket.isInsertWorkflow&&e.selectedPublication.hasAssociations)&&(n=e.selectedPublication.associatedPublicationId,r=e.selectedIssue.associatedIssueId);let i=e.ticket.sizeGroupId;fetch("SvrTicket/SizeGroupList?publisherId=".concat(t,"&publicationId=").concat(n,"&issueId=").concat(r,"&groupId=").concat(i),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success){let{currentSubmission:t}=this.props;t.groupSizes=e.groupSizes,t.sameFoldingDummy=e.sameFoldingDummy,this.props.updateSubmission(t)}else this.setState({showingDialog:!0,dialogType:yI.ERROR,dialogMessage:En(e.error)})})},this.okDialog=()=>{this.setState({showingDialog:!1,dialogType:yI.NONE})},this.cancelDialog=()=>{if(this.state.dialogType===yI.SEND_PROOF||this.state.dialogType===yI.REQUEST_PROOF||this.state.dialogType===yI.WAIVE_PROOF){let{currentSubmission:e}=this.props;e.proofDefault>0?e.ticket.proofIncluded=e.proofDefault:e.ticket.proofIncluded="",this.props.updateSubmission(e)}this.setState({showingDialog:!1,dialogType:yI.NONE})},this.buildDetailsBody=()=>{let{currentSubmission:e}=this.props;const{classes:t}=this.props;let n="";if(e.adSizes){n=[];let o="";e.allowIsrUpload&&!e.ticket.isCreateAnAd&&(o=(0,Ye.jsx)("option",{value:bI,children:En("isrUpload")}));let a=(0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"sizeGroup",children:En("adSize")}),(0,Ye.jsxs)(Il,{native:!0,id:"sizeGroup",name:"sizeGroup",displayEmpty:!0,value:e.sizeGroup,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectAdSize")}),o,e.adSizes.map(t=>e.ticket.isCreateAnAd?"":(0,Ye.jsx)("option",{value:"".concat(t.id,"_").concat(t.sizeId),children:t.name},"".concat(t.id,"_").concat(t.sizeId)))]})]},"adSize"),s=(0,Ye.jsx)(dd,{placement:"top-start",title:(0,Ye.jsx)(r.Fragment,{children:(0,Ye.jsx)(Tn,{color:"inherit",children:En("insertsTooltip")})}),children:(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{checked:e.ticket.isInsertWorkflow,value:"isInsertWorkflow",className:t.checkboxPad,onChange:this.handleChange}),label:(0,Ye.jsx)(Tn,{style:{fontWeight:"bold"},children:En("inserts")})})});e.hasCreateSizes&&!e.ticket.isInsertWorkflow?n.push((0,Ye.jsxs)("div",{className:"".concat(t.flexibleRow," ").concat(t.widthLimited),children:[(0,Ye.jsx)("div",{className:t.fillRemainderColumn,children:a}),(0,Ye.jsxs)("div",{className:t.autoFitColumn,children:[(0,Ye.jsx)(dd,{placement:"top-start",title:(0,Ye.jsx)(r.Fragment,{children:(0,Ye.jsx)(Tn,{color:"inherit",children:En("createAnAdTooltip")})}),children:(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{checked:e.ticket.isCreateAnAd,value:"isCreateAnAd",className:t.checkboxPad,onChange:this.handleChange}),label:(0,Ye.jsx)(Tn,{style:{fontWeight:"bold"},children:En("createAnAd")})})}),e.allowInsertsWorkflow&&!e.ticket.isCreateAnAd&&(e.selectedPublication.hasAssociations||e.selectedPublication.associatedPublicationId&&e.selectedIssue.associatedIssueId)&&s]})]},"adSizeRow")):e.allowInsertsWorkflow&&!e.ticket.isCreateAnAd&&(e.selectedPublication.hasAssociations||e.selectedPublication.associatedPublicationId&&e.selectedIssue.associatedIssueId)?n.push((0,Ye.jsxs)("div",{className:"".concat(t.flexibleRow," ").concat(t.widthLimited),children:[(0,Ye.jsx)("div",{className:t.fillRemainderColumn,children:a}),(0,Ye.jsx)("div",{className:t.autoFitColumn,children:s})]},"adSizeRow")):n.push(a),e.selectedPublication&&e.selectedPublication.adSpecsUrl&&""!==e.selectedPublication.adSpecsUrl.trim()&&n.push((0,Ye.jsx)("div",{className:t.adSpecsUrlSection,children:(0,Ye.jsx)("a",{className:t.adSpecs,target:"_blank",rel:"noopener noreferrer",href:e.selectedPublication.adSpecsUrl,children:En("adSpecs")})},"adSpecUrl"));let l=this.getSelectedSize();e.ticket.sizeGroupId&&e.multipleSizes&&(e.groupSizes?n.push((0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("adFilePreview")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:jn("possibleAdSections",l.name)}),(0,Ye.jsx)(gI,{currentSubmission:e,updateSubmission:this.props.updateSubmission})]},"groupSizes")):n.push((0,Ye.jsx)(JN,{variant:"query"},"groupSizes"))),l&&l.details&&n.push((0,Ye.jsx)(fI,{size:l.details,className:t.adSizePreivew},"sizePreview".concat(l.details.id)));let c=!1;if(e.groupSizes&&null!==e.groupSizes){for(let t=0;t<e.groupSizes.length;t++)if(e.groupSizes[t].id===e.ticket.sizeId){c=null!==e.groupSizes[t].impositionId;break}}else null!==l&&null!==e.ticket.sizeId&&(c=l.hasAnimation);if(c&&n.push((0,Ye.jsxs)(Tn,{className:t.animationMessage,children:[En("animationMessagePart1"),(0,Ye.jsx)(vI.A,{color:"primary"}),En("animationMessagePart2"),(0,Ye.jsx)("br",{}),En("animationMessagePart3"),(0,Ye.jsx)("span",{className:t.italicized,children:En("animationMessagePart4")})]},"animationMessage")),e.ticket.isrUploadPageCount>0){let r=[];for(var i=1;i<=8;i++)r.push((0,Ye.jsx)("option",{value:i,children:i.toString()},i));n.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"isrUploadPageCount",children:En("numberOfPages")}),(0,Ye.jsx)(Il,{native:!0,id:"isrUploadPageCount",name:"isrUploadPageCount",value:e.ticket.isrUploadPageCount,onChange:this.handleChange,children:r})]},"isrUploadPageCount"))}if(e.ticket.sizeId||e.ticket.isrUploadPageCount>0){n.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,style:{display:e.showProofOptions?"inline-flex":"none"},margin:"dense",required:e.showProofOptions,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"proofIncluded",children:En("proofOptions")}),(0,Ye.jsxs)(Il,{native:!0,id:"proofIncluded",name:"proofIncluded",value:e.ticket.proofIncluded,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectProofOption")}),e.proofOptions.map(e=>(0,Ye.jsx)("option",{value:e.id,children:En(e.name)},e.name))]})]},"proofOptions"));let i=!0;for(let t=0;t<e.proofOptions.length;t++)if(e.proofOptions[t].id===$N.Virtual){i=!1;break}i&&e.selectedPublication.isrName&&""!==e.selectedPublication.isrName.trim()&&e.selectedPublication.isrEmailAddress&&""!==e.selectedPublication.isrEmailAddress.trim()&&e.selectedPublication.proofDeliveryAddress&&""!==e.selectedPublication.proofDeliveryAddress.trim()&&n.push((0,Ye.jsx)("div",{className:t.proofDeliveryDetailsSection,children:(0,Ye.jsx)(je,{to:"#",onClick:()=>this.setState({showingDialog:!0,dialogType:yI.PROOF_DELIVERY_DETAILS}),className:t.proofDeliveryDetails,children:En("proofDeliveryDetails")})},"proofDeliveryDetails")),e.inlineProofMessage&&e.inlineProofMessage.length>0&&n.push((0,Ye.jsx)(Tn,{children:e.inlineProofMessage},"inlineProofMessage")),3004===e.ticket.proofIncluded&&En("redirectToPublisherDesc").length>1&&n.push((0,Ye.jsx)(Tn,{children:r.createElement("span",{dangerouslySetInnerHTML:{__html:En("redirectToPublisherDesc")}})},"requestPublisherMessage")),e.canSetBillable&&n.push((0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{checked:e.ticket.isBillable,value:"isBillable",onCh
2ange:this.handleChange}),label:En("isBillable")},"setIsBillable")),n.push((0,Ye.jsx)(pI,{currentSubmission:e,updateSubmission:this.props.updateSubmission},"customDetails"));let o=0;for(let t=0;t<e.ticket.notes.length;t++)"\n"===e.ticket.notes[t]&&(o+=2);n.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,fullWidth:!0,variant:"filled",children:[(0,Ye.jsx)(wo,{htmlFor:"detailsNotes",children:En("notes")}),(0,Ye.jsx)(pl,{id:"detailsNotes",name:"notes",multiline:!0,rows:3,value:e.ticket.notes,onChange:this.handleChange,inputProps:{maxLength:(255-o).toString()}})]},"notes"))}}else n=(0,Ye.jsx)(JN,{variant:"query"});return n},this.getDialogContent=()=>{let e="",{currentSubmission:t}=this.props;if(this.state.showingDialog)if(this.state.dialogType===yI.REQUEST_PROOF)e=(0,Ye.jsx)(Tn,{variant:"body2",children:En("requestProofWarning")});else if(this.state.dialogType===yI.SEND_PROOF){let n="",i="",o="";"SWOP"===t.proofCertType?(n=(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("b",{children:En("sendProofMessageOne")}),(0,Ye.jsx)("br",{})]}),(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("sendProofClickLinkToSeeList"),(0,Ye.jsx)("br",{})]})]}),t.proofCertUrl&&t.proofCertUrl.length>0&&(i=(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("br",{}),(0,Ye.jsx)("a",{href:t.proofCertUrl,target:"_blank",rel:"noopener noreferrer",children:t.proofCertUrl})]}))):"SNAP"===t.proofCertType&&(n=(0,Ye.jsx)(Tn,{variant:"body2",children:En("sendProofSnapMessage")})),t.sendProofAddress&&t.sendProofAddress.length>0&&(o=(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("sendProofsTo")," ",t.sendProofAddress]})),e=(0,Ye.jsxs)(r.Fragment,{children:[n,i,o]})}else this.state.dialogType===yI.WAIVE_PROOF?e=(0,Ye.jsx)(Tn,{variant:"body2",children:En("proofWaiverMessage")}):this.state.dialogType===yI.ERROR?e=(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.dialogMessage)}):this.state.dialogType===yI.PROOF_DELIVERY_DETAILS&&(e=(0,Ye.jsxs)("div",{children:[""!==t.selectedPublication.proofDeliveryRecipient.trim()?(0,Ye.jsx)(Tn,{style:{textAlign:"center"},component:"div",children:t.selectedPublication.proofDeliveryRecipient}):"",t.selectedPublication.isProofEmailVisible&&""!==t.selectedPublication.isrName.trim()&&""!==t.selectedPublication.isrEmailAddress.trim()?(0,Ye.jsxs)(Tn,{style:{textAlign:"center"},component:"div",children:["".concat(En("contact")," "),(0,Ye.jsx)("a",{href:"mailto:".concat(t.selectedPublication.isrEmailAddress),children:t.selectedPublication.isrName})]}):"",(0,Ye.jsx)(Tn,{style:{textAlign:"center"},component:"div",children:this.generateProofDeliveryAddress(t.selectedPublication.proofDeliveryAddress)})]}));return e},this.getDialogTitle=()=>this.state.dialogType===yI.PROOF_DELIVERY_DETAILS?(0,Ye.jsx)(Kl,{children:En("proofDeliveryDetails")}):"",this.generateProofDeliveryAddress=e=>e.split("<br/>").map((e,t)=>(0,Ye.jsx)(r.Fragment,{children:(0,Ye.jsx)("div",{style:{whiteSpace:"nowrap"},children:e})},t)),this.state={showingDialog:!1,dialogType:yI.NONE,dialogMessage:""}}render(){let e=this.buildDetailsBody(),t=this.getDialogContent(),n=this.getDialogTitle(),i="";return this.state.dialogType!==yI.ERROR&&this.state.dialogType!==yI.PROOF_DELIVERY_DETAILS&&(i=(0,Ye.jsx)(kr,{onClick:this.cancelDialog,variant:"contained",color:"primary",children:En("cancel")})),(0,Ye.jsxs)(r.Fragment,{children:[e,(0,Ye.jsxs)(Aa,{open:this.state.showingDialog,"aria-describedby":"message-dialog-description",children:[n,(0,Ye.jsx)(za,{id:"message-dialog-description",children:t}),(0,Ye.jsxs)(Ia,{children:[i,(0,Ye.jsx)(kr,{onClick:this.okDialog,variant:"contained",color:"secondary",autoFocus:!0,children:En("ok")})]})]})]})}}const SI=pn(xI,e=>({flexibleRow:{display:"flex",flexDirection:"row",width:"100%","& div:not(:first-of-type)":{paddingLeft:e.spacing(1)},"& div:not(:last-of-type)":{paddingRight:e.spacing(1)}},widthLimited:{maxWidth:"700px"},autoFitColumn:{flexShrink:"0",marginTop:"auto"},fillRemainderColumn:{flex:"1 0 auto"},checkboxPad:{paddingTop:"8px",paddingBottom:"8px"},adSizePreivew:{padding:e.spacing(1)},fakeLabel:{fontFamily:e.typography.subtitle1.fontFamily,fontSize:"0.75rem",width:"100%",color:"rgba(0, 0, 0, 0.54)",paddingTop:e.spacing(1)},fakeInput:{fontSize:"1rem",width:"100%"},adSpecsUrlSection:{maxWidth:700},adSpecs:{float:"right"},proofDeliveryDetailsSection:{maxWidth:700},proofDeliveryDetails:{float:"right"},italicized:{fontStyle:"italic"},animationMessage:{fontWeight:"bold",paddingTop:10,paddingBottom:10}}
2));class wI extends r.Component{constructor(e){super(e),this.displayName=wI.name,this.getSelectedPublication=()=>{let{currentSubmission:e}=this.props;for(var t in e.publications)if(e.publications[t].id===Number(e.ticket.publicationId))return e.publications[t];return null},this.handleChange=e=>{let{currentSubmission:t}=this.props;"checkbox"===e.target.type?t.ticket[e.target.value]=e.target.checked:t.ticket[e.target.name]=e.target.value,"fileTypeId"===e.target.name&&(t.ticket.resolutionId=""),this.props.updateSubmission(t)},this.okDialog=()=>{this.setState({showingDialog:!1})},this.buildDetailsBody=()=>{let{currentSubmission:e}=this.props;const{classes:t}=this.props;let n=this.getSelectedPublication(),i="";if(e.fileTypes&&e.fileTypes.map){if(i=[],i.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"fileTypeId",children:En("fileType")}),(0,Ye.jsxs)(Il,{native:!0,id:"fileTypeId",name:"fileTypeId",displayEmpty:!0,value:e.ticket.fileTypeId,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectFileType")}),e.fileTypes.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.name))]})]},"fileType")),n&&n.mediaAdSpecsUrl&&""!==n.mediaAdSpecsUrl.trim()&&i.push((0,Ye.jsx)("div",{className:t.adSpecsUrlSection,children:(0,Ye.jsx)("a",{className:t.adSpecs,target:"_blank",rel:"noopener noreferrer",href:n.mediaAdSpecsUrl,children:En("adSpecs")})},"mediaAdSpecsUrl")),e.allowsStaticResolution&&(Number(e.ticket.fileTypeId)===uI.STATIC||Number(e.ticket.fileTypeId)===uI.STATIC_LINK)&&(i.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"resolutionId",children:En("resolution")}),(0,Ye.jsxs)(Il,{native:!0,id:"resolutionId",name:"resolutionId",displayEmpty:!0,value:e.ticket.resolutionId,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectResolution")}),e.staticOptions.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.name))]})]},"resolution")),e.staticMessage)){const t=r.createElement("span",{dangerouslySetInnerHTML:{__html:e.staticMessage}});i.push((0,Ye.jsx)(Tn,{variant:"body2",children:t},"staticMessage"))}i.push((0,Ye.jsx)(pI,{currentSubmission:e,updateSubmission:this.props.updateSubmission},"customDetails")),e.canSetBillable&&i.push((0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{checked:e.ticket.isBillable,value:"isBillable",onChange:this.handleChange}),label:En("isBillable")},"setIsBillable"));let o=0;for(let t=0;t<e.ticket.notes.length;t++)"\n"===e.ticket.notes[t]&&(o+=2);i.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,fullWidth:!0,variant:"filled",children:[(0,Ye.jsx)(wo,{htmlFor:"detailsNotes",children:En("notes")}),(0,Ye.jsx)(pl,{id:"detailsNotes",name:"notes",multiline:!0,rows:3,value:e.ticket.notes,onChange:this.handleChange,inputProps:{maxLength:(255-o).toString()}})]},"notes"))}else i=(0,Ye.jsx)(JN,{variant:"query"});return i},this.state={showingDialog:!1,dialogMessage:""}}render(){let e=this.buildDetailsBody();return(0,Ye.jsxs)(r.Fragment,{children:[e,(0,Ye.jsxs)(Aa,{open:this.state.showingDialog,"aria-describedby":"message-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsxs)(Ha,{id:"message-dialog-description",children:[(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.dialogMessage)}),";"]})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.okDialog,variant:"contained",color:"secondary",autoFocus:!0,children:En("ok")})})]})]})}}const _I=pn(wI,e=>({flexibleRow:{display:"flex",flexDirection:"row",width:"100%","& div:not(:first-of-type)":{paddingLeft:e.spacing(1)},"& div:not(:last-of-type)":{paddingRight:e.spacing(1)}},widthLimited:{maxWidth:"700px"},autoFitColumn:{flexShrink:"0",marginTop:"auto"},fillRemainderColumn:{flex:"1 0 auto"},fakeLabel:{fontFamily:e.typography.subtitle1.fontFamily,fontSize:"0.75rem",width:"100%",color:"rgba(0, 0, 0, 0.54)",paddingTop:e.spacing(1)},fakeInput:{fontSize:"1rem",width:"100%"},adSpecsUrlSection:{maxWidth:700},adSpecs:{float:"right"}})),kI=Object.freeze({Message:1,Confirmation:2});class MI extends r.Component{constructor(e){super(e),this.displayName=MI.name,this.getMediaType=e=>{let{currentSubmission:t}=this.props;for(var n in t.mediaTypes)if(t.mediaTypes[n].id===e)return t.mediaTypes[n];return null}
2,this.getSelectedPublication=()=>{let{currentSubmission:e}=this.props;if(e.ticket.publicationId>0)for(var t in e.publications)if(e.publications[t].id.toString()===e.ticket.publicationId.toString()&&e.publications[t].publisherId.toString()===e.ticket.publisherId.toString())return e.publications[t];return null},this.getSelectedIssue=()=>{let{currentSubmission:e}=this.props;if(e.ticket.issueId>0)for(var t in e.issues)if(e.issues[t].id.toString()===e.ticket.issueId.toString())return e.issues[t];return null},this.handleChange=e=>{let{currentSubmission:t}=this.props;if("publicationId"===e.target.name){var n=e.target.value.split("_");t.ticket.publisherId=n[0],t.ticket.publicationId=n[1],t.selectedPublication=this.getSelectedPublication(),this.loadIssues(t)}else if("mediaTypeId"===e.target.name){t.mediaTypeId=e.target.value,t.ticket.mediaTypeId=Number(t.mediaTypeId);let n=t.ticket.isPrint,r=this.getMediaType(t.ticket.mediaTypeId);t.ticket.isPrint=r?r.isPrint:null,n!==t.ticket.isPrint&&(t.ticket.fileTypeId="",t.ticket.resolutionId="",t.ticket.sizeId="",t.ticket.sizeGroupId="",t.sizeGroup="",t.ticket.isrUploadPageCount=null,t.ticket.isInsertWorkflow=!1,t.ticket.isCreateAnAd=!1,t.ticket.isPrint&&this.loadDefaultAdSize(t),n||(t.ticket.proofIncluded=t.proofDefault)),this.loadMediaTypeFields(t)}else t.ticket[e.target.name]=e.target.value;var r=!1;if("issueId"===e.target.name&&(t.selectedIssue=this.getSelectedIssue(),t.ticket.sizeId="",t.ticket.sizeGroupId="",t.sizeGroup="",t.adSizes=null,t.defaultAdSize=null,this.loadAdSizes(t),t.selectDefaultMedia&&!t.mediaTypeId?r=!0:t.ticket.mediaTypeId>0&&t.selectedIssue&&((t.ticket.isPrint?t.selectedIssue.isPrintOpen:t.selectedIssue.isMediaOpen)||(t.selectDefaultMedia?r=!0:(t.mediaTypeId="",t.ticket.mediaTypeId=null,t.ticket.isPrint=null)))),this.props.updateSubmission(t),r&&t.selectedIssue){let e=null;for(var i in t.mediaTypes){let n=t.selectedIssue;if(t.mediaTypes[i].isPrint?n.isPrintOpen:n.isMediaOpen){e=t.mediaTypes[i];break}}e&&this.handleChange({target:{name:"mediaTypeId",value:e.id.toString()}})}},this.loadMissingLists=()=>{let{currentSubmission:e}=this.props;e.publications&&e.issues&&e.adSizes&&e.mediaTypeFields||fetch("SvrTicket/DetailsLists?ticketId=".concat(e.ticket.id),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentSubmission:t}=this.props;t.publications=e.publications,t.selectedPublication=this.getSelectedPublication(),t.hidePublisherName=e.hidePublisherName,t.canSetBillable=e.canSetBillable,t.issues=e.issues,t.selectedIssue=this.getSelectedIssue(),t.mediaTypes=e.mediaTypes,t.mediaTypeId=t.ticket.mediaTypeId.toString(),t.skipMediaDialog=e.skipMediaDialog,t.canOrderProofs=e.canOrderProofs,t.proofCertType=e.proofCertType,t.proofCertUrl=e.proofCertUrl,t.sendProofAddress=e.sendProofAddress,t.adSizes=e.adSizes,t.hasCreateSizes=e.hasCreateSizes,t.allowIsrUpload=e.allowIsrUpload,t.allowInsertsWorkflow=e.allowInsertsWorkflow,t.ticket.isInsertWorkflow=t.allowInsertsWorkflow&&t.selectedPublication.hasAssociations,t.proofDefault=e.proofDefault,t.proofOptions=e.proofOptions,t.inlineProofMessage=e.inlineProofMessage,t.groupSizes=e.groupSizes,t.showProofOptions=e.showProofOptions,t.multipleSizes=t.groupSizes&&t.ticket.sizeGroupId>0,t.sameFoldingDummy=e.sameFoldingDummy,t.showDeliveryConfirmationDialog=e.showDeliveryConfirmationDialog,t.wasDeliveryConfirmationDialogShown=!1,this.props.updateSubmission(t)})},this.loadPublications=()=>{fetch("SvrTicket/PublicationList",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentSubmission:t}=this.props;t.publications=e.publications,t.selectedPublication=null,t.allowInsertsWorkflow=e.allowInsertsWorkflow,t.hidePublisherName=e.hidePublisherName,t.canSetBillable=e.canSetBillable,t.ticket.publicationId="",this.props.updateSubmission(t)})},this.loadIssues=e=>{if(e.issues=null,e.selectedPublication.isRedirect)return e.ticket.publicationId=-1,void this.setState({showingDialog:!0,dialogMode:kI.Confirmation,dialogMessage:jn("redirectConfirmation",e.selectedPublication.name,e.selectedPublication.redirectUrl)});let t=e.ticket.publicationId,n=e.ticket.publisherId;if(t>0&&n>0)fetch("SvrTicket/IssueList?publisherId=".concat(n,"&publicationId=").concat(t),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentSubmission:t}=this.props;t.issues=e.issues,t.mediaTypes=e.mediaTypes,t.skipMediaDialog=e.skipMediaDialog,t.canOrderProofs=e.canOrderProofs,t.proofCertType=e.proofCertType,t.proofCertUrl=e.proofCertUrl,t.sendProofAddress=e.sendProofAddress,t.selectDefaultMedia=e.selectDefaultMedia,t.ticket.issueId="",t.selectedIssue=null,t.ticket.isPrint=e.isPrint,t.mediaTypeFields=null,t.fileTypes=null,t.allowsStaticResolution=!1,t.allowsUrls=!1,t.requiresUrls=!1,t.ticket.urls=[],t.staticOptions=null,t.staticMessage=null,t.loadedMediaTypeId=null,t.ticket.mediaTypeId=e.mediaTypeId,e.mediaTypeId?t.mediaTypeId=e.mediaTypeId.toString():t.mediaTypeId=null,t.ticket.isCreateAnAd=!1,t.ticket.isrUploadPageCount=null,t.ticket.isInsertWorkflow=!1,this.props.updateSubmission(t),t.ticket.mediaTypeId&&this.loadMediaTypeFields(t)});else if(e.ticket.issueId>0){let{currentSubmission:e}=this.props;e.issues=null,e.ticket.issueId=null,this.props.updateSubmission(e)}},this.loadAdSizes=e=>{let t=e.ticket.issueId;(e.allowInsertsWorkflow&&e.ticket.isInsertWorkflow&&!e.selectedPublication.hasAssociations||e.allowInsertsWorkflow&&!e.ticket.isInsertWorkflow&&e.selectedPublication.hasAssociations)&&(t=e.selectedIssue.associatedIssueId);let n=e.ticket.publisherId;t>0&&n>0&&fetch("SvrTicket/AdSizeList?publisherId=".concat(n,"&issueId=").concat(t),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentSubmission:t}=this.props;t.adSizes=e.adSizes,t.hasCreateSizes=e.hasCreateSizes,t.allowIsrUpload=e.allowIsrUpload,t.proofDefault=e.proofDefault,t.showProofOptions=e.showProofOptions,t.proofDefault>0?t.ticket.proofIncluded=t.proofDefault:t.ticket.proofIncluded="",t.proofOptions=e.proofOptions,t.inlineProofMessage=e.inlineProofMessage,t.defaultAdSize=e.defaultAdSize,this.loadDefaultAdSize(t),this.props.updateSubmission(t)})},this.loadDefaultAdSize=e=>{if(e.defaultAdSize&&e.defaultAdSize.defaultAdSizeId){if(e.defaultAdSize.adSizeGroups&&e.defaultAdSize.adSizeGroups.length>0){let n=e.defaultAdSize.adSizeGroups.find(t=>
2t.id===e.defaultAdSize.defaultAdSizeId);if(n){e.sizeGroup="".concat(n.sizeGroupId,"_null");var t=e.sizeGroup.split("_");e.ticket.sizeGroupId=t[0],e.ticket.sizeId=t[1]}}else e.sizeGroup="0_".concat(e.defaultAdSize.defaultAdSizeId),e.ticket.sizeGroupId=null,e.ticket.sizeId=e.defaultAdSize.defaultAdSizeId;"null"===e.ticket.sizeId&&(e.ticket.sizeId=null),e.ticket.isrUploadPageCount=null,e.editorInfo=null,e.groupSizes=null,e.ticket.sizeId>0||e.ticket.isrUploadPageCount>0?e.multipleSizes=!1:(e.multipleSizes=!0,e.groupSizes=e.defaultAdSize.adSizeGroups,e.sameFoldingDummy=e.defaultAdSize.sameFoldingDummy,e.ticket.sizeId=e.defaultAdSize.defaultAdSizeId)}},this.loadMediaTypeFields=e=>{let t=e.ticket.publisherId,n=e.ticket.publicationId,r=e.ticket.mediaTypeId;e.loadedMediaTypeId===r&&e.mediaTypeFields||t>0&&n>0&&r>0&&fetch("SvrTicket/MediaTypeFields?publisherId=".concat(t,"&publicationId=").concat(n,"&mediaTypeId=").concat(r),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentSubmission:t}=this.props;t.mediaTypeFields=e.mediaTypeFields,t.fileTypes=e.fileTypes,t.allowsStaticResolution=e.allowsStaticResolution,t.allowsUrls=e.allowsUrls,t.requiresUrls=e.requiresUrls,t.staticOptions=e.staticOptions,t.staticMessage=e.staticMessage,t.loadedMediaTypeId=r,this.props.updateSubmission(t)})},this.okDialog=()=>{this.setState({showingDialog:!1})},this.proceedDialog=()=>{this.setState({showingDialog:!1},()=>{window.location.href=this.props.currentSubmission.selectedPublication.redirectUrl})},this.onCancel=()=>{let{currentSubmission:e}=this.props;e.ticket.id>0&&!e.ticket.isNew?(e.ticket=null,e.showEditDetails=!1,e.publications=null,this.props.updateSubmission(e)):(e.ticket=null,e.redirectLocation="/ticket",this.props.updateSubmission(e))},this.submitTicket=e=>{let{currentSubmission:t}=this.props;if(!document.getElementById("ticketDetailsForm").checkValidity())return;e.preventDefault(),(t.allowInsertsWorkflow&&t.ticket.isInsertWorkflow&&!t.selectedPublication.hasAssociations||t.allowInsertsWorkflow&&!t.ticket.isInsertWorkflow&&t.selectedPublication.hasAssociations)&&(t.ticket.publicationId=t.selectedPublication.associatedPublicationId,t.ticket.issueId=t.selectedIssue.associatedIssueId,t.publications=null);let n="SvrTicket/New";t.ticket.id>0&&(n="SvrTicket/EditTicketDetails"),fetch(n,{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(t.ticket)}).then(e=>e.json()).then(e=>{!0===e.success?(t.ticket=e.ticket,t.showEditDetails=!1,t.expandedPanel=0,t.acceptableMediaFileTypes=e.acceptableMediaFileTypes,t.reusableComponents=e.reusableComponents,t.fixMyFileEnabled=e.fixMyFileEnabled,t.useCMYKOption=e.useCMYKOption,t.showCMYKCheckboxes=e.showCMYKCheckboxes,t.isCyberSourceEnabled=e.isCyberSourceEnabled,t.followCursor=e.followCursor,t.showRuler=e.showRuler,t.transparencyMode=e.transparencyMode,t.showCrosshairs=e.showCrosshairs,t.showSubInchMarks=e.showSubInchMarks,t.showAdSizeOutline=e.showAdSizeOutline,t.showDeliveryConfirmationDialog=e.showDeliveryConfirmationDialog,t.wasDeliveryConfirmationDialogShown=!1,t.fileUploads=[],t.showAgreementConfirmation=e.showAgreementConfirmation,this.props.updateSubmission(t)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showingDialog:!0,dialogMessage:En(e.error)})})},this.buildDetailsBody=()=>{let{currentSubmission:e}=this.props;const{classes:t}=this.props;let n="";if(e.publications){n=[];let l=[];if(e.hidePublisherName)l=e.publications.map(t=>(!e.allowInsertsWorkflow||!t.hasAssociations||t.id===e.ticket.publicationId)&&[(0,Ye.jsx)("option",{value:t.publisherId+"_"+t.id,children:t.name},t.name)]);else{let t=function(e){return e.reduce(function(e,t){return e[t.publisherName]=e[t.publisherName]||[],e[t.publisherName].push(t),e},[])}(e.publications);for(var i in t)l.push((0,Ye.jsx)("optgroup",{label:i,children:t[i].map(t=>(!e.allowInsertsWorkflow||!t.hasAssociations||t.id===e.ticket.publicationId)&&[(0,Ye.jsx)("option",{value:t.publisherId+"_"+t.id,children:t.name}
2,t.name)])},i))}let c=e.ticket&&e.ticket.publisherId?e.ticket.publisherId+"_"+e.ticket.publicationId:"";if(n.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"publicationId",children:En("publication")}),(0,Ye.jsxs)(Il,{native:!0,id:"publicationId",name:"publicationId",displayEmpty:!0,value:c,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectPublication")}),l]})]},"publication")),e.ticket&&e.ticket.publicationId>0&&(null===e.issues?n.push((0,Ye.jsx)(JN,{variant:"query"},"issueLoading")):n.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"issueId",children:En("issue")}),(0,Ye.jsxs)(Il,{native:!0,id:"issueId",name:"issueId",displayEmpty:!0,value:e.ticket.issueId,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectIssue")}),e.issues.map(t=>(!e.allowInsertsWorkflow||!e.selectedPublication.hasAssociations||t.id===e.ticket.issueId)&&[(0,Ye.jsx)("option",{value:t.id,children:t.name},t.name)])]})]},"issue")),e.ticket.issueId&&""!==e.ticket.issueId&&(n.push((0,Ye.jsxs)(Pr,{className:t.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"advertiser",children:En("advertiser")}),(0,Ye.jsx)(uo,{id:"advertiser",name:"advertiser",value:e.ticket.advertiser,onChange:this.handleChange,inputProps:{maxLength:"50"}})]},"advertiser")),e.skipMediaDialog||(e.mediaTypes?n.push((0,Ye.jsx)("div",{children:(0,Ye.jsx)(Pr,{component:"fieldset",variant:"standard",children:(0,Ye.jsx)(nN,{name:"mediaTypeId",value:e.mediaTypeId,onChange:this.handleChange,className:t.mediaPicker,children:e.mediaTypes.map(t=>(0,Ye.jsx)(EN,{value:t.id.toString(),label:t.name,canSelect:t.isPrint?e.selectedIssue.isPrintOpen:e.selectedIssue.isMediaOpen,publisherId:e.ticket.publisherId,mediaTypeId:t.id},"mt_"+t.id.toString()))})})},"mediaPicker_".concat(e.ticket.issueId))):n.push((0,Ye.jsx)(JN,{variant:"query"},"mediaPickerLoading"))),e.ticket.mediaTypeId))){var o=this.getMediaType(e.ticket.mediaTypeId);if(o&&o.detailsMessage&&o.detailsMessage.length>0){const e=r.createElement("span",{dangerouslySetInnerHTML:{__html:o.detailsMessage}});n.push((0,Ye.jsx)(Tn,{variant:"body2",children:e},"mediaMessage"))}e.ticket.isPrint?n.push((0,Ye.jsx)(SI,{currentSubmission:e,updateSubmission:this.props.updateSubmission,loadAdSizes:this.loadAdSizes},"printDetails")):n.push((0,Ye.jsx)(_I,{currentSubmission:e,updateSubmission:this.props.updateSubmission},"mediaDetails"))}var a=!1;e.ticket.isPrint&&(e.ticket.sizeId||e.ticket.isrUploadPageCount>0)&&(a=!0),e.ticket.isPrint||!e.ticket.resolutionId&&(!e.ticket.fileTypeId||e.allowsStaticResolution&&"2"===e.ticket.fileTypeId)||(a=!0);var s=e.ticket.isCreateAnAd?En("proceedToFileCreation"):En("proceedToFileSelection");e.ticket.id>0&&(s=En("applyChanges")),n.push((0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:t.spacer}),(0,Ye.jsxs)("div",{className:"".concat(t.actionButtons," ").concat(t.widthLimited),children:[(0,Ye.jsx)(kr,{variant:"contained",color:"primary",onClick:this.onCancel,children:En("Cancel")}),(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"secondary",onClick:this.submitTicket,disabled:!a,children:s})]})]},"btnProceed"))}else n=(0,Ye.jsx)(At,{});return n},this.buildMessageDialog=()=>{var e="";return e=this.state.dialogMode===kI.Confirmation?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(kr,{onClick:this.okDialog,variant:"contained",color:"primary",autoFocus:!0,children:En("cancel")}),(0,Ye.jsx)(kr,{onClick:this.proceedDialog,variant:"contained",color:"secondary",autoFocus:!0,children:En("proceed")})]}):(0,Ye.jsx)(kr,{onClick:this.okDialog,variant:"contained",color:"primary",autoFocus:!0,children:En("ok")}),(0,Ye.jsxs)(Aa,{open:this.state.showingDialog,"aria-describedby":"message-dialog-description",maxWidth:"md",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"message-dialog-description",children:r.createElement("span",{dangerouslySetInnerHTML:{__html:this.state.dialogMessage}})})}),(0,Ye.jsx)(Ia,{children:e})]})},this.state={showingDialog:!1,dialogMessage:"",dialogMode:kI.Message,ticketState:Mp.None}}componentDidMount(){let{currentSubmission:e}=this.props;e.ticket.id?this.loadMissingLists():e.publications||this.loadPublications()}render(){let e=this.buildDetailsBody();const{classes:t}=this.props;return(0,Ye.jsxs)("form",{id:"ticketDetailsForm",onSubmit:e=>(e.preventDefault(),!1),children:[(0,Ye.jsx)("div",{className:t.mainForm,children:e}),this.buildMessageDialog(),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const CI=pn(MI,e=>({mainForm:{minWidth:"380px",minHeight:"480px",display:"flex",flexDirection:"column"},widthLimited:{maxWidth:"700px"},publisherSelect:{fontStyle:"italic",fontSize:"smaller",color:"#888",paddingLeft:e.spacing(2)},mediaPicker:{flexDirection:"row"},spacer:{paddingTop:e.spacing(2)},actionButtons:{width:"100%",textAlign:"right","&> :not(:nth-of-type(even))":{marginRight:e.spacing(1)}}}));class TI extends r.Component{constructor(e){super(e),this.displayName=TI.name;let{currentSubmission:t}=this.props;t.ticket||(t.ticket={status:0,publicationId:"",id:null,advertiser:"",notes:"",ad
2Id:"",headline:"",description:"",product:"",companyName:"",urls:null,title:"",tags:"",isBillable:!0},this.props.updateSubmission(t),window.scroll(0,0))}render(){const{classes:e}=this.props;return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{variant:"h5",className:e.heading,children:En("startNewTicket")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),(0,Ye.jsx)(CI,{currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const AI=pn(TI,e=>({heading:{fontWeight:"bold",paddingTop:e.spacing(1)},horizontalBar:{borderColor:"black"}}));var EI=n(14318);function jI(e){return(0,ut.Ay)("MuiCollapse",e)}(0,ct.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const NI=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],II=(0,lt.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,Be.A)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})}),DI=(0,lt.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(e=>{let{ownerState:t}=e;return(0,Be.A)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})}),PI=(0,lt.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(e=>{let{ownerState:t}=e;return(0,Be.A)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})}),LI=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,orientation:v="vertical",style:y,timeout:b=EI.p0.standard,TransitionComponent:x=Yo}=n,S=(0,rt.A)(n,NI),w=(0,Be.A)({},n,{orientation:v,collapsedSize:s}),_=(e=>{const{orientation:t,classes:n}=e,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,ot.A)(r,jI,n)})(w),k=Et(),M=(0,Gn.A)(),C=r.useRef(null),T=r.useRef(),A="number"===typeof s?"".concat(s,"px"):s,E="horizontal"===v,j=E?"width":"height",N=r.useRef(null),I=(0,Dn.A)(t,N),D=e=>t=>{if(e){const n=N.current;void 0===t?e(n):e(n,t)}},P=()=>C.current?C.current[E?"clientWidth":"clientHeight"]:0,L=D((e,t)=>{C.current&&E&&(C.current.style.position="absolute"),e.style[j]=A,d&&d(e,t)}),R=D((e,t)=>{const n=P();C.current&&E&&(C.current.style.position="");const{duration:r,easing:i}=Zo({style:y,timeout:b,easing:c},{mode:"enter"});if("auto"===b){const t=k.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(t,"ms"),T.current=t}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style[j]="".concat(n,"px"),e.style.transitionTimingFunction=i,h&&h(e,t)}),O=D((e,t)=>{e.style[j]="auto",p&&p(e,t)}),z=D(e=>{e.style[j]="".concat(P(),"px"),f&&f(e)}),F=D(m),B=D(e=>{const t=P(),{duration:n,easing:r}=Zo({style:y,timeout:b,easing:c},{mode:"exit"});if("auto"===b){const n=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),T.current=n}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style[j]=A,e.style.transitionTimingFunction=r,g&&g(e)});return(0,Ye.jsx)(x,(0,Be.A)({in:u,onEnter:L,onEntered:O,onEntering:R,onExit:z,onExited:F,onExiting:B,addEndListener:e=>{"auto"===b&&M.start(T.current||0,e),i&&i(N.current,e)},nodeRef:N,timeout:"auto"===b?null:b},S,{children:(e,t)=>(0,Ye.jsx)(II,(0,Be.A)({as:l,className:(0,it.A)(_.root,a,{entered:_.entered,exited:!u&&"0px"===A&&_.hidden}[e]),style:(0,Be.A)({[E?"minWidth":"minHeight"]:A},y),ref:I},t,{ownerState:(0,Be.A)({},w,{state:e}),children:(0,Ye.jsx)(DI,{ownerState:(0,Be.A)({},w,{state:e}),className:_.wrapper,ref:C,children:(0,Ye.jsx)(PI,{ownerState:(0,Be.A)({},w,{state:e}),className:_.wrapperInner,children:o})})}))}))});LI.muiSupportAuto=!0;const RI=LI;const OI=r.createContext({}),zI=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],FI=["component","slots","slotProps"],BI=["component"];function UI(e){return(0,ut.Ay)("MuiAccordion",e)}const HI=(0,ct.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),WI=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],VI=(0,lt.Ay)(xn,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;
2return[{["& .".concat(HI.region)]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(e=>{let{theme:t}=e;const n={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],n),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],n)},"&:first-of-type":{"&::before":{display:"none"}},["&.".concat(HI.expanded)]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},["&.".concat(HI.disabled)]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}},e=>{let{theme:t}=e;return{variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{["&.".concat(HI.expanded)]:{margin:"16px 0"}}}]}}),GI=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiAccordion"}),{children:i,className:o,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:p={},slotProps:h={},TransitionComponent:f,TransitionProps:m}=n,g=(0,rt.A)(n,WI),[v,y]=(0,mi.A)({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=r.useCallback(e=>{y(!v),u&&u(e,!v)},[v,u,y]),[x,...S]=r.Children.toArray(i),w=r.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:b}),[v,s,l,b]),_=(0,Be.A)({},n,{square:d,disabled:s,disableGutters:l,expanded:v}),k=(e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e,a={root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],region:["region"]};return(0,ot.A)(a,UI,t)})(_),M=(0,Be.A)({transition:f},p),C=(0,Be.A)({transition:m},h),[T,A]=function(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:s}=t,l=(0,rt.A)(t,zI),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=o,p=(0,rt.A)(o,FI),h=u[e]||r,f=Eo(d[e],i),m=Ao((0,Be.A)({className:n},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:f})),{props:{component:g},internalRef:v}=m,y=(0,rt.A)(m.props,BI),b=(0,Ri.A)(v,null==f?void 0:f.ref,t.ref),x=a?a(y):{},S=(0,Be.A)({},i,x),w="root"===e?g||c:g,_=Mo(h,(0,Be.A)({},"root"===e&&!c&&!u[e]&&s,"root"!==e&&!u[e]&&s,y,w&&{as:w},{ref:b}),S);return Object.keys(x).forEach(e=>{delete _[e]}),[h,_]}("transition",{elementType:RI,externalForwardedProps:{slots:M,slotProps:C},ownerState:_});return(0,Ye.jsxs)(VI,(0,Be.A)({className:(0,it.A)(k.root,o),ref:t,ownerState:_,square:d},g,{children:[(0,Ye.jsx)(OI.Provider,{value:w,children:x}),(0,Ye.jsx)(T,(0,Be.A)({in:v,timeout:"auto"},A,{children:(0,Ye.jsx)("div",{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region",className:k.region,children:S})}))]}))});function qI(e){return(0,ut.Ay)("MuiAccordionSummary",e)}const KI=(0,ct.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),YI=["children","className","expandIcon","focusVisibleClassName","onClick"],XI=(0,lt.Ay)(fr,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;const n={duration:t.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],n),["&.".concat(KI.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(KI.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["&:hover:not(.".concat(KI.disabled,")")]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{["&.".concat(KI.expanded)]:{minHeight:64}}}]}}),ZI=(0,lt.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(e=>{let{theme:t}=e;return{display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),["&.".concat(KI.expanded)]:{margin:"20px 0"}}}]}}),QI=(0,lt.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(e=>{let{theme:t}=e;return{display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),["&.".concat(KI.expanded)]:{transform:"rotate(180deg)"}}}),JI=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiAccordionSummary"}),{children:i,className:o,expandIcon:a,focusVisibleClassName:s,onClick:l}=n,c=(0,rt.A)(n,YI),{disabled:u=!1,disableGutters:d,expanded:p,toggle:h}=r.useContext(OI),f=(0,Be.A)({},n,{expanded:p,disabled:u,disableGutters:d}),m=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:i}=e,o={root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,ot.A)(o,qI,t)})(f);return(0,Ye.jsxs)(XI,(0,Be.A)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:(0,it.A)(m.root,o),focusVisibleClassName:(0,it.A)(m.focusVisible,s),onClick:e=>{h&&h(e),l&&l(e)},ref:t,ownerState:f},c,{children:[(0,Ye.jsx)(ZI,{className:m.content,ownerState:f,children:i}
2),a&&(0,Ye.jsx)(QI,{className:m.expandIconWrapper,ownerState:f,children:a})]}))});function $I(e){return(0,ut.Ay)("MuiAccordionDetails",e)}(0,ct.A)("MuiAccordionDetails",["root"]);const eD=["className"],tD=(0,lt.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{padding:t.spacing(1,2,2)}}),nD=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiAccordionDetails"}),{className:r}=n,i=(0,rt.A)(n,eD),o=n,a=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"]},$I,t)})(o);return(0,Ye.jsx)(tD,(0,Be.A)({className:(0,it.A)(a.root,r),ref:t,ownerState:o},i))});var rD=n(40430),iD=n(39983);function oD(e){return(0,ut.Ay)("MuiFormHelperText",e)}const aD=(0,ct.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var sD;const lD=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cD=(0,lt.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size".concat((0,st.A)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(aD.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(aD.error)]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})}),uD=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:o="p"}=n,a=(0,rt.A)(n,lD),s=ci({props:n,muiFormControl:Lr(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Be.A)({},n,{component:o,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&"size".concat((0,st.A)(r)),n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,ot.A)(c,oD,t)})(l);return(0,Ye.jsx)(cD,(0,Be.A)({as:o,ownerState:l,className:(0,it.A)(c.root,i),ref:t},a,{children:" "===r?sD||(sD=(0,Ye.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))}),dD=uD;function pD(e){return(0,ut.Ay)("MuiTextField",e)}(0,ct.A)("MuiTextField",["root"]);const hD=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],fD={standard:uo,filled:pl,outlined:kl},mD=(0,lt.Ay)(Pr,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gD=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:h,id:f,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:y,label:b,maxRows:x,minRows:S,multiline:w=!1,name:_,onBlur:k,onChange:M,onFocus:C,placeholder:T,required:A=!1,rows:E,select:j=!1,SelectProps:N,type:I,value:D,variant:P="outlined"}=n,L=(0,rt.A)(n,hD),R=(0,Be.A)({},n,{autoFocus:i,color:s,disabled:c,error:u,fullWidth:p,multiline:w,required:A,select:j,variant:P}),O=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"]},pD,t)})(R);const z={};"outlined"===P&&(m&&"undefined"!==typeof m.shrink&&(z.notched=m.shrink),z.label=b),j&&(N&&N.native||(z.id=void 0),z["aria-describedby"]=void 0);const F=(0,ko.A)(f),B=h&&F?"".concat(F,"-helper-text"):void 0,U=b&&F?"".concat(F,"-label"):void 0,H=fD[P],W=(0,Ye.jsx)(H,(0,Be.A)({"aria-describedby":B,autoComplete:r,autoFocus:i,defaultValue:l,fullWidth:p,multiline:w,name:_,rows:E,maxRows:x,minRows:S,type:I,value:D,id:F,inputRef:y,onBlur:k,onChange:M,onFocus:C,placeholder:T,inputProps:g},z,v));return(0,Ye.jsxs)(mD,(0,Be.A)({className:(0,it.A)(O.root,a),disabled:c,error:u,fullWidth:p,ref:t,required:A,color:s,variant:P,ownerState:R},L,{children:[null!=b&&""!==b&&(0,Ye.jsx)(wo,(0,Be.A)({htmlFor:F,id:U},m,{children:b})),j?(0,Ye.jsx)(Il,(0,Be.A)({"aria-describedby":B,id:F,labelId:U,value:D,input
2:W},N,{children:o})):W,h&&(0,Ye.jsx)(dD,(0,Be.A)({id:B},d,{children:h}))]}))}),vD=gD,{makeStyles:yD}=Gt({useTheme:Et}),bD=yD()({progressBarContainer:{maxWidth:500},progressBar:{marginTop:50,marginBottom:50,marginLeft:50,marginRight:50,height:20,borderRadius:10}});function xD(e){let{value:t,variant:n,onUpdate:i,interval:o}=e;const{classes:a}=bD();return(0,r.useEffect)(()=>{let e;return i&&o&&(e=setInterval(i,o)),()=>{e&&clearInterval(e)}},[]),(0,Ye.jsx)("div",{style:{width:500},children:(0,Ye.jsx)("div",{className:a.progressBarContainer,children:(0,Ye.jsx)(JN,{variant:n,value:t,className:a.progressBar})})})}const SD=Object.freeze({ReadyToUpload:4e3,UploadStarting:4005,Uploading:4010,UploadFailed:4020,RepurposeFailed:4021,ReadyToPrecheck:4030,Prechecking:4040,PrecheckPassed:4050,PrecheckFailed:4060,PrecheckCrashed:4070,ReadyToPreCrop:4080,Precropping:4090,PreCropFailed:4100,PreCropCrashed:4110,ReadyToApprovePrecheck:4120,SoftCropCrashed:4150,ReadyToPosition:4200,ReadyToSoftCrop:4210,SoftCropping:4220,SoftCropFailed:4230,ReadyToHardCrop:4240,HardCropping:4250,HardCropFailed:4260,HardCropCrashed:4270,ReadyToGenerateTemplate:4280,GeneratingTemplates:4290,GenerateTemplatesFailed:4300,ReadyToPreflight:4400,Preflighting:4410,PreflightPassed:4420,PreflightFailed:4430,PreflightCrashed:4440,ReadyToFixFile:4500,FixingFile:4510,FixFilePassed:4520,FixFileFailed:4530,FixFileCrashed:4540,ReadyToReviewFix:4550,ReadyToApprovePosition:4560,ReadyToCopyFiles:4590,CopyingExtraFiles:4591,FailedToCopyFiles:4592,ReadyToTransmit:4600,ReadyToAddCropMarks:4610,AddingCropMarks:4611,AddCropMarksFailed:4612,AddCropMarksCrashed:4613,ReadyToCreatePlateReadyFile:4615,CreatingPlateReadyFile:4616,CreatingPlateReadyFileFailed:4617,CreatingPlateReadyFileCrashed:4618,ReadyToAlterGeometry:4621,AlteringGeometry:4622,AlteringGeometryCrashed:4623,PostProcessingComplete:4630,PublisherSupplied:4700,AutoSubmissionFailedPrePos:4800,AutoSubmissionFailedPos:4801,AutoSubmissionFailedInsp:4802,AutoSubmissionFailedPostPrc:4803});n(13310),n(5609);const wD=Object.freeze({None:0,DigitalReplica:1,Error:2,RequiredFields:3});class _D extends r.Component{constructor(e){super(e),this.displayName=_D.name,this.closeDialog=e=>{if(!0===e)this.setState({showDialog:!1});else{document.getElementById("digitalReplica-".concat(this.props.currentSubmission.ticket.components[this.props.componentIndex].id)).click(),this.setState({showDialog:!1})}},this.isValidComponent=()=>{let e=this.props.currentSubmission.ticket.components[this.props.componentIndex];const{radioValue:t,previousUploadComponentId:n,colorBlack:r,colorCyan:i,colorMagenta:o,colorYellow:a}=e;return!(!(i||o||a||r)||!("advertiser"===t&&null!==this.state.filename&&this.state.filename.length>0||"repurpose"===t&&0!==+n))||(this.setState({showDialog:!0,dialogType:wD.RequiredFields,message:En("pleaseEnsure")}),!1)},this.fileChange=e=>{e.target.files&&e.target.files[0]&&this.setState({filename:e.target.files[0].name})},this.fileButtonClick=e=>{this.setState({filename:""});let t=e.target.form;for(let n=0;n<t.length;n++)if("file"===t[n].type){t[n].value=null;break}e.target&&e.target.children.length>0&&e.target.children[0].children.length>0&&e.target.children[0].children[0].click()},this.colorChange=(e,t)=>
2{let n=this.props.currentSubmission.ticket.components[this.props.componentIndex],r=e.target.name;"fourColor"===r&&"fourColor"===t?(n.colorCyan=!0,n.colorMagenta=!0,n.colorYellow=!0,n.colorBlack=!0):"fourColor"===r?(n.colorCyan=t,n.colorMagenta=t,n.colorYellow=t,n.colorBlack=t):"pantoneColorText"===r?n.pantoneColor=e.target.value:"usePantoneColor"!==r||t?"colorBlack"===r&&"colorBlack"===t?(n.colorBlack=!0,n.colorCyan=!1,n.colorMagenta=!1,n.colorYellow=!1):n[e.target.name]=t:(n.usePantoneColor=t,n.pantoneColor=void 0),this.props.currentSubmission.ticket.components[this.props.componentIndex]=n,this.props.updateSubmission(this.props.currentSubmission)},this.uploadTypeChange=e=>{let t=this.props.currentSubmission.ticket.components[this.props.componentIndex],n=e.target.value,r="suppliedRadio"===e.target.name;fetch("SvrTicket/UpdatePublisherSupplied?tcid=".concat(t.id,"&isPublisherSupplied=").concat(r),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.ticketComponent,this.props.currentSubmission.flashPanel=e.ticketComponent.isPublisherSupplied?this.findNextUnfinishedComponentAndFlashPanel(this.props.componentIndex):-1,this.props.currentSubmission.ticket.components[this.props.componentIndex].radioValue=n,this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogType:wD.Error,message:En(e.error)})})},this.changeHandler=(e,t)=>{let n=this.props.currentSubmission.ticket.components[this.props.componentIndex];"digitalReplica"===e.target.name?(n.useDigitalReplica=t,t&&this.setState({showDialog:!0,dialogType:wD.DigitalReplica})):e.target.name.includes("repurposeDropdown")?n.previousUploadComponentId=e.target.value:e.target.name.includes("Upload")&&e.target.files&&e.target.files[0]&&this.setState({filename:e.target.files[0].name}),this.props.currentSubmission.ticket.components[this.props.componentIndex]=n,this.props.updateSubmission(this.props.currentSubmission)},this.updateProgress=e=>{let{componentIndex:t,updateSubmission:n}=this.props,r=e.total,i=e.loaded,o=parseInt(100*i/r,10),a=this.props.currentSubmission.fileUploads.find(e=>e.componentIndex===t);a&&(a.progress=o,n(this.props.currentSubmission))},this.checkFilenameForIllegalCharacters=e=>e.indexOf("|")>=0||e.indexOf("/")>=0||e.indexOf("\\")>=0||e.indexOf(":")>=0||e.indexOf("?")>=0||e.indexOf('"')>=0||e.indexOf("<")>=0||e.indexOf(">")>=0||e.indexOf("*")>=0,this.submitFile=e=>{let{updateSubmission:t,componentIndex:r}=this.props,i=document.getElementById("fileUpload-".concat(e)),o=e;n(5609);let a=new FormData(i),s="";for(let n=0;n<i.length;n++)if("file"===i[n].type){if(s=i[n].files[0].name,i[n].files[0].size>104857600)return void this.setState({message:En("maxFileSizeError"),dialogType:wD.Error,showDialog:!0});if(s.length>100)return void this.setState({message:En("filenameTooLong"),dialogType:wD.Error,showDialog:!0});if(!s.toLowerCase().endsWith(".pdf"))return void this.setState({message:En("fileMustBePDF"),dialogType:wD.Error,showDialog:!0});if(this.checkFilenameForIllegalCharacters(s))return void this.setState({message:En("containsIllegalCharacters"),dialogType:wD.Error,showDialog:!0})}let l=this.findIndexOfComponentId,c=new XMLHttpRequest;c.upload.addEventListener("progress",this.updateProgress),c.onreadystatechange=()=>{if(4===c.readyState&&c.status>=200&&c.status<=300){let e=JSON.parse(c.response);e.success?fetch("SvrTicket/GetTicketComponent?tcid="+o,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success){let n=this.props.currentSubmission.fileUploads.find(e=>e.componentIndex===r);if(n){let e=this.props.currentSubmission.fileUploads.indexOf(n);this.props.currentSubmission.fileUploads.splice(e,1)}let i=this.props.currentSubmission.ticket.components;i[l(i,o)]=e.ticketComponent,t(this.props.currentSubmission)}else void 0===this.state?(this.clearUploads(),this.props.showBackgroundDialog(En(e.error))):(this.clearUploads(),this.setState({showDialog:!0,message:En(e.error),dialogType:wD.Error,isUploading:!1}))}):void 0!==this.state&&(this.clearUploads(),this.setState({showDialog:!0,message:En(e.error),dialogType:wD.Error,isUploading:!1}))}},c.open("POST","SvrTicket/UploadAdFile?tcid="+o),c.send(a),this.props.currentSubmission.fileUploads.push({componentIndex:r,progress:0,filename:s}),t(this.props.currentSubmission)},this.findIndexOfComponentId=(e,t)=>{let n;for(n=0;n<e.length;n++)if(e[n].id===t)return n;return-1}
2,this.submitEditComponent=(e,t,n)=>{if(!this.isValidComponent())return void e.preventDefault();if(!document.getElementById("fileUpload-".concat(t.id)).checkValidity())return;e.preventDefault();let r=t,i=this.props;fetch("SvrTicket/SubmitEditComponent",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(e=>e.json()).then(e=>{e.success?"advertiser"===t.radioValue?this.submitFile(t.id):fetch("SvrTicket/GetTicketComponent?tcid="+t.id,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success){i.currentSubmission.ticket.components[n]=e.ticketComponent,i.updateSubmission(i.currentSubmission)}}):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogType:wD.Error,message:En(e.error)})})},this.clearUploads=()=>{this.props.currentSubmission.fileUploads=[]},this.truncateFileName=e=>e.length<=20?e:"".concat(e.substring(0,20),"..."),this.state={filename:"",message:"",showDialog:!1,dialogType:wD.None,isUploading:!1,ticketState:Mp.None}}findNextUnfinishedComponentAndFlashPanel(e){let t=this.props.currentSubmission.ticket.components;if(t)for(let n=0;n<t.length;n++)if(t[n].status!==SD.PublisherSupplied&&t[n].status!==SD.ReadyToTransmit&&n!==e)return n;return-1}render(){const{classes:e,reusableComponents:t,currentSubmission:n,componentIndex:i}=this.props;let o=t.filter(e=>e.filename.toLowerCase().endsWith(".pdf")),a=n.ticket.components[i],s=n.fileUploads?n.fileUploads.find(e=>e.componentIndex===i):void 0,l=void 0!==s,c=this.truncateFileName(this.state.filename),u=a.colorBlack&&a.colorMagenta&&a.colorCyan&&a.colorYellow,d="",p="",h="";this.state.dialogType===wD.DigitalReplica?(d=En("digitalReplicaDialogTitle"),p=(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{style:{fontWeight:"bold"},children:En("digitalReplicaDialogBoldText")}),(0,Ye.jsx)("p",{}),(0,Ye.jsx)("div",{children:En("digitalReplicaDialogText")})]}),h=(0,Ye.jsx)(kr,{onClick:()=>this.closeDialog(!1),variant:"contained",color:"primary",children:En("cancel")})):this.state.dialogType===wD.Error?(d=En("error"),p=En(this.state.message)):this.state.dialogType===wD.RequiredFields&&(d=En("requiredFieldsMissing"),p=En(this.state.message));let f=n.useCMYKOption?"":a.colorCyan&&a.colorMagenta&&a.colorYellow&&a.colorBlack?"fourColor":"colorBlack",m=n.useCMYKOption?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("4C")}),control:(0,Ye.jsx)(Di,{color:"primary",name:"fourColor",checked:u,onChange:this.colorChange})}),(0,Ye.jsx)(fi,{style:{visibility:n.showCMYKCheckboxes?"visible":"hidden"},label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("C")}),control:(0,Ye.jsx)(Di,{color:"primary",name:"colorCyan",checked:a.colorCyan,onChange:this.colorChange})}),(0,Ye.jsx)(fi,{style:{visibility:n.showCMYKCheckboxes?"visible":"hidden"},label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("M")}),control:(0,Ye.jsx)(Di,{color:"primary",name:"colorMagenta",checked:a.colorMagenta,onChange:this.colorChange})}),(0,Ye.jsx)(fi,{style:{visibility:n.showCMYKCheckboxes?"visible":"hidden"},label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("Y")}),control:(0,Ye.jsx)(Di,{color:"primary",name:"colorYellow",checked:a.colorYellow,onChange:this.colorChange})}),(0,Ye.jsx)(fi,{style:{visibility:n.showCMYKCheckboxes?"visible":"hidden"},label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("K")}),control:(0,Ye.jsx)(Di,{color:"primary",name:"colorBlack",checked:a.colorBlack,onChange:this.colorChange})})]}):(0,Ye.jsxs)(nN,{defaultValue:f,className:e.inlineColors,name:"colorOption",onChange:this.colorChange,children:[(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("4C")}),value:"fourColor",control:(0,Ye.jsx)(gN,{color:"primary",name:"fourColor"})}),(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("K")}),value:"colorBlack",control:(0,Ye.jsx)(gN,{color:"primary",name:"colorBlack"})})]});return(0,Ye.jsxs)("div",{className:e.panelDetails,style:{width:"100%"},children:[l?(0,Ye.jsx)(xD,{variant:"determinate",text:"Uploading...",value:s.progress}):(0,Ye.jsxs)("form",{id:"fileUpload-".concat(a.id),children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("advertiserSupplied")}),value:"advertiser",control:(0,Ye.jsx)(gN,{color:"primary",name:" advertiserRadio",onChange:this.uploadTypeChange,checked:"advertiser"===a.radioValue})}),(0,Ye.jsx)(fi,{style:{display:"advertiser"===a.radioValue?"":"none"},disabled:"advertiser"!==a.radioValue,className:e.fileUploadContainer,label:(0,Ye.jsx)("div",{className:e.fileUploadLabel,children:c}),control:(0,Ye.jsxs)(kr,{color:"primary",onClick:this.fileButtonClick,className:"".concat(e.fileUploadButton," ").concat(e.neutralColor),variant:"contained",children:[En("browse")+"...",(0,Ye.jsx)("input",{name:"fileUpload",accept:".pdf",onChange:this.fileChange,className:e.fileUpload,type:"file"})]})})]}),(0,Ye.jsxs)("div",{style:{display:"advertiser"===a.radioValue?"":"none"},className:e.colors,children:[m,n.ticket.allowPantone?(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("usePantone")}),control:(0,Ye.jsx)(Di,{name:"usePantoneColor",color:"primary",checked:a.usePantoneColor,onChange:this.colorChange})}),a.usePantoneColor?(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("pantoneColor")+":"}),labelPlacement:"start",control:(0,Ye.jsx)(vD,{name:"pantoneColorText",required:!0,value:a.pantoneColor,onChange:this.colorChange,className:e.pantoneColors,inputProps:{maxLength:"20"}})}):"",(0,Ye.jsx)("div",{children:En("pantoneWarning")})]}):""]}),(0,Ye.jsx)("div",{children:a.isPublisherSuppliedEnabled?(0,Ye.jsxs)("div",{style:{display:"flex"},children:[(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("publisherSupplied")}),value:"supplied",control:(0,Ye.jsx)(gN,{name:"suppliedRadio",color:"primary",onChange:this.uploadTypeChange,checked:"supplied"===a.radioValue})}),a.isPublisherSupplied?(0,Ye.jsx)("div",{className:e.publisherSuppliedText,children:(0,Ye.jsx)(Tn,{variant:"body2",children:En("publisherSuppliedText")})}):""]}):""}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("repurposePreviousUpload")}),value:"repurpose",control:(0,Ye.jsx)(gN,{name:"repurposeRadio",color:"primary",onChange:this.uploadTypeChange,checked:"repurpose"===a.radioValue})}),"repurpose"===a.radioValue?(0,Ye.jsxs)(Il,{native:!0,name:"repurposeDropdown",value:a.previousUploadComponentId,onChange:this.changeHandler,className:e.repurposeDropdown,variant:"standard",children:[(0,Ye.jsx)("option",{value:0,children:En("reuploadText")},0),o&&o.map(e=>(0,Ye.jsx)("option",{value:e.ticketComponentId,children:this.truncateFileName(e.filename)},e.ticketComponentId))]}):""]}),(0,Ye.jsxs)("div",{style:{display:"repurpose"===a.radioValue?"":"none"},className:e.colors,children:[m,n.ticket.allowPantone?(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("usePantone")}),control:(0,Ye.jsx)(Di,{name:"usePantoneColor",color:"primary",checked:a.usePantoneColor,onChange:this.colorChange})}),a.usePantoneColor?(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("pantoneColor")+":"}),labelPlacement:"start",control:(0,Ye.jsx)(vD,{name:"pantoneColorText",required:!0,value:a.pantoneColor,onChange:this.colorChange,className:e.pantoneColors,inputProps:{maxLength:"20"},variant:"standard"})}):"",(0,Ye.jsx)("div",{children:En("pantoneWarning")})]}):""]}),(0,Ye.jsx)("div",{children:n.ticket.isReplicaAllowed?(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("digitalReplica")}),control:(0,Ye.jsx)(Di,{id:"digitalReplica-".concat(a.id),name:"digitalReplica",color:"primary",checked:a.useDigitalReplica,onChange:this.changeHandler})})}):""}),(0,Ye.jsx)("div",{className:e.precheckButton,children:(0,Ye.jsx)(kr,{color:"secondary",type:"submit",disabled:a.isPublisherSupplied,style:{display:a.isPublisherSupplied?"none":"initial"},onClick:e=>this.submitEditComponent(e,a,i),variant:"contained",children:En("proceedToPrecheck")})})]},"1"),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:()=>this.closeDialog(this.state.dialogType!==wD.DigitalReplica),children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:d}),(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Tn,{variant:"body2",children:p})}
2),(0,Ye.jsxs)(Ia,{children:[h,(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:()=>this.closeDialog(!0),color:"secondary",children:En("ok")})]})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const kD=pn(_D,e=>({fileUploadContainer:{marginLeft:10},fileUploadLabel:{marginLeft:10},fileUpload:{cursor:"pointer",position:"absolute",top:"0",bottom:"0",right:"0",left:"0",width:"100%",opacity:"0"},fileUploadButton:{cursor:"pointer"},colors:{marginLeft:60},pantoneColors:{paddingLeft:10},repurposeDropdown:{minWidth:200},panelDetails:{position:"relative"},precheckButton:{float:"right"},neutralColor:{color:e.palette.neutral.contrastText,backgroundColor:e.palette.neutral.main,"&:hover":{backgroundColor:e.palette.neutral.dark}},inlineColors:{display:"inline"},publisherSuppliedText:{paddingTop:13,paddingLeft:150}}));var MD=n(88221);class CD extends r.Component{constructor(){super(...arguments),this.displayName=CD.name,this.slideUp=e=>(0,Ye.jsx)(bd,Fe({direction:"up"},e))}render(){return(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Aa,{open:!0,TransitionComponent:this.slideUp,"aria-labelledby":"pdf-presets-title",children:[(0,Ye.jsx)(Kl,{id:"pdf-presets-title",children:En("pdfPresetFiles")}),(0,Ye.jsxs)(za,{children:[(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{href:"File/HelpResource?fileType=AdobePdfPresets",children:En("adobePdfPresets")})}),(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{href:"File/HelpResource?fileType=QuarkXPressExport",children:En("quarkXpressExport")})}),(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{href:"File/HelpResource?fileType=QuarkXPressPrintStyle",children:En("quarkXpressPrintStyle")})}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)(Ld,{}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{href:"File/HelpResource?fileType=Prepress",children:En("adobeInDesignPreflightSettings")})}),(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{href:"https://helpx.adobe.com/indesign/using/preflighting-files-handoff.html",target:"_blank",rel:"noopener noreferrer",children:En("inDesignDocumentation")})})]}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{color:"secondary",variant:"contained",onClick:()=>this.props.closeDialog(),children:En("ok")})})]})})}}const TD=Object.freeze({None:0,Error:1});class AD extends r.Component{constructor(e){super(e),this.uploadTypeChange=e=>{let t=this.props.currentSubmission.ticket.components[this.props.componentIndex];t.radioValue=e.target.value,this.setState({radioValue:e.target.value}),"repurpose"===e.target.value?this.isValidUpload("",this.state.previousUploadComponentId,e.target.value):"advertiser"===e.target.value&&this.isValidUpload(this.state.filenames,0,e.target.value),this.props.currentSubmission.ticket.components[this.props.componentIndex]=t,this.props.updateSubmission(this.props.currentSubmission)},this.truncateFileName=e=>e.length<=30?e:"".concat(e.substring(0,30),"..."),this.displayRepurposeDropdown=(e,t)=>{if("repurpose"===this.state.radioValue){let n=this.props.inDialog?e.repurposeDropdownInDialog:e.repurposeDropdown;return(0,Ye.jsxs)(Il,{native:!0,name:"repurposeDropdown",value:this.state.previousUploadComponentId,onChange:this.changeHandler,className:n,children:[(0,Ye.jsx)("option",{value:0,children:En("reuploadText")},0),t&&t.map(e=>(0,Ye.jsx)("option",{value:e.ticketComponentId,children:this.truncateFileName(e.filename)},e.ticketComponentId))]})}return""},this.fileChange=e=>{let t=this.getFilenamesFromFiles(e.target.files);this.isValidUpload(t,0,"advertiser"),this.setState({filenames:t})},this.getFilenamesFromFiles=e=>{let t="";if(void 0!==e)for(let n=0;n<e.length;n++)void 0!==e[n]&&(t=0===n?e[n].name:t+", "+e[n].name);return t},this.isValidUpload=(e,t,n)=>"advertiser"===n&&null!==e&&e.length>0||"repurpose"===n&&"0"!==t&&0!==t?(this.props.updateMediaButtonState&&this.props.updateMediaButtonState(!0,!0),!0):(this.props.updateMediaButtonState&&this.props.updateMediaButtonState(!1,!0),!1),this.changeHandler=e=>{let t=this.props.currentSubmission.ticket.components[this.props.componentIndex];if(e.target.name.includes("repurposeDropdown"))t.previousUploadComponentId=e.target.value,this.isValidUpload("",e.target.value,"repurpose"),this.setState({previousUploadComponentId:e.target.value});else if(e.target.name.includes("Upload")&&e.target.files&&e.target.files[0]){let t=this.getFilenamesFromFiles(e.target.files);this.isValidUpload(t,this.state.previousUploadComponentId,"advertiser"),this.setState({filenames:t})}this.props.currentSubmission.ticket.components[this.props.componentIndex]=t,this.props.updateSubmission(this.props.currentSubmission)},this.validateFileType=e=>{let t=this.props.currentSubmission.acceptableMediaFileTypes;t=t.replace(/\*/g,"");let n=t.split(";");for(let r=0;r<n.length;r++)if(Xl(e,n[r]))return!0;return!1},this.submitFiles=()=>
2{if(this.props.updateMediaButtonState&&this.props.updateMediaButtonState(!1,!1),"repurpose"===this.state.radioValue)return this.setState({isButtonEnabled:!1,dialogSubmitFiles:!1}),void fetch("SvrTicket/RepurposeMediaFile?ticketId=".concat(this.props.currentSubmission.ticket.id,"&previousComponentId=").concat(this.state.previousUploadComponentId),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?fetch("SvrTicket/GetTicket?ticketId=".concat(this.props.currentSubmission.ticket.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.props.currentSubmission.ticket=e.ticket,this.props.updateSubmission(this.props.currentSubmission)}):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({message:En(e.error),showDialog:!0,dialogType:TD.Error,isButtonEnabled:!0})});let e,t=document.getElementById("fileUpload"),n=this.props.currentSubmission.ticket.id;for(let r=0;r<t.length;r++)if("file"===t[r].type){e=t[r];break}for(let r=0;r<e.files.length;r++){let t=e.files[r];if(!this.validateFileType(t.name))return void this.setState({dialogType:TD.Error,message:jn("invalidFileType",this.props.currentSubmission.acceptableMediaFileTypes),showDialog:!0});if(t.size>104857600)return void this.setState({dialogType:TD.Error,message:En("maxFileSizeError"),showDialog:!0});if(t.name.length>100)return void this.setState({message:En("filenameTooLong"),dialogType:TD.Error,showDialog:!0})}for(let r=0;r<e.files.length;r++)this.props.currentSubmission.fileUploads.push({file:e.files[r],percent:0,isDone:!1});this.uploadNextFile(n),this.setState({isUploading:!0})},this.uploadNextFile=e=>{let t=new XMLHttpRequest,r=new FormData,i=this.props.currentSubmission.fileUploads.find(e=>!e.isDone);if(this.props.currentSubmission.fileUploads&&i){let o=i.file;n(5609),r.set("fileUpload",o),t.upload.addEventListener("progress",this.updateProgress),t.onreadystatechange=()=>{if(4===t.readyState&&t.status>=200&&t.status<=300){let n=JSON.parse(t.response);n.success?(this.props.currentSubmission.fileUploads.find(e=>!e.isDone).isDone=!0,this.props.currentSubmission.fileUploads&&this.props.currentSubmission.fileUploads.find(e=>!e.isDone)?this.uploadNextFile(e):fetch("SvrTicket/SetMediaFilesToPrecheck?ticketId=".concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.props.currentSubmission.ticket=e.ticket,this.props.currentSubmission.fileUploads=[],this.props.updateSubmission(this.props.currentSubmission)})):"isSubmitted"===n.error?this.setState({ticketState:Mp.Submitted}):"isDeleted"===n.error&&this.setState({ticketState:Mp.Deleted})}},t.open("POST","SvrTicket/UploadMediaFile?tid=".concat(e)),t.send(r)}},this.updateProgress=e=>{let{updateSubmission:t}=this.props,n=e.total,r=e.loaded,i=parseInt(100*r/n,10),o=this.props.currentSubmission.fileUploads.find(e=>!e.isDone);o&&(o.percent=i,t(this.props.currentSubmission))},this.closeDialog=()=>{this.setState({showDialog:!1})},this.fileButtonClick=e=>{e.target&&e.target.children.length>0&&e.target.children[0].children.length>0&&e.target.children[0].children[0].click()};let t=e.currentSubmission.ticket.components[e.componentIndex];this.state={radioValue:t.radioValue,filenames:"",previousUploadComponentId:t.previousUploadComponentId,isUploading:!1,showDialog:!1,dialogType:TD.None,message:"",isButtonEnabled:!0,dialogSubmitFiles:!1,ticketState:Mp.None}}render(){const{classes:e,reusableComponents:t}=this.props;this.state.dialogSubmitFiles&&this.props.mediaUploadButtonClicked&&(this.props.disableMediaUploadButtonClicked(),this.submitFiles());let r=this.truncateFileName(this.state.filenames),i=this.props.currentSubmission.fileUploads,o=void 0!==i&&i.length>0,a=0;if(o){let e=0;for(let t=0;t<i.length;t++)e+=i[t].percent;a=parseInt(e/i.length,10)}n(2576);let s=this.props.currentSubmission.acceptableMediaFileTypes.replace(/;/g,",").replace(/\*/g,"");return(0,Ye.jsxs)("div",{children:[o?(0,Ye.jsx)(xD,{variant:"determinate",value:a}):(0,Ye.jsxs)("form",{id:"fileUpload",children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(fi,{label:En("advertiserSuppliedMedia"),value:"advertiser",control:(0,Ye.jsx)(gN,{color:"primary",name:" advertiserRadio",onChange:this.uploadTypeChange,checked:"advertiser"===this.state.radioValue})}),(0,Ye.jsx)(fi,{style:{display:"advertiser"===this.state.radioValue?"":"none"},disabled:"advertiser"!==this.state.radioValue,className:e.fileUploadContainer,label:(0,Ye.jsx)("div",{className:e.fileUploadLabel,children:r}),control:(0,Ye.jsxs)(kr,{color:"primary",onClick:this.fileButtonClick,className:"".concat(e.fileUploadButton," ").concat(e.neutralColor),variant:"contained",children:[En("browse")+"...",(0,Ye.jsx)("input",{name:"fileUpload",accept:s,multiple:!0,onChange:this.fileChange,className:e.fileUpload,type:"file"})]})})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(fi,{label:En("repurposePreviousUpload"),value:"repurpose",control:(0,Ye.jsx)(gN,{name:"repurposeRadio",color:"primary",onChange:this.uploadTypeChange,checked:"repurpose"===this.state.radioValue})}),this.displayRepurposeDropdown(e,t)]}),(0,Ye.jsx)("div",{className:e.precheckButton,children:this.props.inDialog?"":(0,Ye.jsx)(kr,{style:{display:this.isValidUpload(this.state.filenames,this.state.previousUploadComponentId,this.state.radioValue)&&!o&&this.state.isButtonEnabled?"inline":"none"},color:"secondary",variant:"contained",disabled:!this.isValidUpload(this.state.filenames,this.state.previousUploadComponentId,this.state.radioValue)||o||!this.state.isButtonEnabled,onClick:this.submitFiles,children:En("proceedToPrecheck")})})]}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:En("error")}),(0,Ye.jsx)(za,{className:e.wrapText,children:(0,Ye.jsx)(Tn,{variant:"body2",children:this.state.message})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:this.closeDialog,color:"primary",children:En("ok")})})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}AD.getDerivedStateFromProps=(e,t)=>e.mediaUploadButtonClicked?(t.dialogSubmitFiles=!0,t):null;const ED=pn(AD,e=>({neutralColor:{color:e.palette.neutral.contrastText,backgroundColor:e.palette.neutral.main,"&:hover":{backgroundColor:e.palette.neutral.dark}},repurposeDropdown:{minWidth:200},repurposeDropdownInDialog:{minWidth:200,maxWidth:300}
2,fileUploadButton:{cursor:"pointer"},fileUpload:{cursor:"pointer",position:"absolute",top:"0",bottom:"0",right:"0",left:"0",width:"100%",opacity:"0"},fileUploadContainer:{marginLeft:10},fileUploadLabel:{marginLeft:10},precheckButton:{float:"right"},wrapText:{overflowWrap:"break-word"}})),jD=Object.freeze({None:0,PresetsDialog:1,Error:2,UploadMediaFileDialog:3,Position:4});class ND extends r.Component{constructor(e){super(e),this.displayName=ND.name,this.loadResults=()=>{let e=this.props.isPreflight?"PreflightResults":"PrecheckResults";fetch("SvrTicket/".concat(e,"?tcid=").concat(this.props.component.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?this.setState({results:e.results,isLoading:!1}):this.setState({showDialog:!0,dialogType:jD.Error,message:En(e.error)})})},this.updateMediaButtonState=(e,t)=>{this.setState({mediaUploadButtonEnabled:e,mediaUploadCancelEnabled:t})},this.closeDialog=e=>{if(1===e)this.returnToPreviousStatus(SD.ReadyToPosition);else if(2===e){let e=this.props.currentSubmission.ticket.components[this.props.componentIndex];fetch("SvrTicket/AutoPosition?tcid=".concat(e.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.ticketComponent,this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error&&this.setState({ticketState:Mp.Submitted})})}this.setState({showDialog:!1})},this.showArrow=(e,t)=>t?(0,Ye.jsx)(iD.A,{className:e.panelArrow}):(0,Ye.jsx)(MD.A,{className:e.panelArrow}),this.handleChange=e=>t=>{this.setState({expanded:!(!t||this.state.expanded===e)&&e})},this.fixMyFile=()=>{let{updateSubmission:e,componentIndex:t}=this.props;this.setState({displayFixMyFileDisclaimer:!0}),this.props.currentSubmission.ticket.components[t].isDisplayingFixMyFile=!0,e(this.props.currentSubmission)},this.returnToPreflightResults=()=>{let{updateSubmission:e,componentIndex:t}=this.props;this.setState({displayFixMyFileDisclaimer:!1}),this.props.currentSubmission.ticket.components[t].isDisplayingFixMyFile=!1,e(this.props.currentSubmission)},this.updateStatus=(e,t)=>{let{updateSubmission:n,componentIndex:r}=this.props;if(t)fetch("SvrTicket/UpdateAllIncompleteComponentsToStatus?tid=".concat(this.props.currentSubmission.ticket.id,"&statusId=").concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket=e.ticket,n(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error&&this.setState({ticketState:Mp.Submitted})}),this.setState({overrideClicked:!0});else{let t=this.props.currentSubmission.ticket.components[r].id;fetch("SvrTicket/UpdateComponentStatus?tcid=".concat(t,"&statusId=").concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{if(t.success)this.props.currentSubmission.ticket.components[r].status=e,n(this.props.currentSubmission);else if("isDeleted"===t.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===t.error)this.setState({ticketState:Mp.Submitted});else{let e=t.error?t.error:"unknownError";this.setState({showDialog:!0,dialogType:jD.Error,message:En(e)})}})}},this.returnToPreviousStatus=(e,t)=>{let n=this.props.currentSubmission.ticket.components[this.props.componentIndex].id;fetch("SvrTicket/ReturnToStatus?tcid=".concat(n,"&statusId=").concat(e,"&autoPositionFile=").concat(t),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success)this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.updatedComponent,this.props.updateSubmission(this.props.currentSubmission);else if("isDeleted"===e.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===e.error)this.setState({ticketState:Mp.Submitted});else{let t=e.error?e.error:"unknownError";this.setState({showDialog:!0,dialogType:jD.Error,message:En(t)})}})},this.reposition=()=>{this.props.currentSubmission.ticket.components[this.props.componentIndex].c
2anAutoPosition?this.setState({showDialog:!0,dialogType:jD.Position}):this.returnToPreviousStatus(SD.ReadyToPosition,!1)},this.selectNewFile=()=>{this.returnToPreviousStatus(SD.ReadyToUpload,!1)},this.approve=(e,t)=>{if(e)this.updateStatus(SD.ReadyToTransmit,e);else if(this.props.isPreflight)this.updateStatus(SD.ReadyToApprovePosition,e);else{let e=this.props.currentSubmission.ticket.components[this.props.componentIndex].id;fetch("SvrTicket/ApprovePrecheck?tcid=".concat(e,"&isOverride=").concat(t),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket.components[this.props.componentIndex].status=e.newStatus,this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({dialogType:jD.Error,message:En(e.error),showDialog:!0})})}},this.showPDFPresetsDialog=e=>e?(0,Ye.jsx)(CD,{closeDialog:this.closeDialog}):"",this.openPresetsDialog=()=>{this.setState({showDialog:!0,dialogType:jD.PresetsDialog})},this.showLinks=(e,t)=>{let n=this.props.currentSubmission.ticket.isPrint,i=this.props.currentSubmission.ticket.isCreateAnAd,o="true"===ic("help","showAdCreationGuideLink"),a=!1;if(this.state.results){let e=this.state.results.messages.filter(e=>e.isError);1===e.length&&e[0].isCorruptMessage&&(a=!0)}if(t)return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"./File/StreamFile?fileType=PreflightReport&id="+this.props.component.id,children:jn("viewPreflightReport","")})})}),i?(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"File/HelpResource?fileType=CreateAnAdGuide",children:En("viewCreateAnAdGuide")})})}):(0,Ye.jsxs)(r.Fragment,{children:[o?(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"./File/HelpResource?filetype=AdCreationGuide",children:En("viewAdCreationGuide")})})}):null,(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"./File/HelpResource?filetype=PrintSubmissionGuide",children:En("viewPrintSubmissionGuide")})})})]}),(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:void 0!==En("presetsForPDF")&&""!==En("presetsForPDF").trim()?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(je,{to:"#",onClick:this.openPresetsDialog,children:En("download")})," ".concat(En("presetsForPDF"))]}):""})}),r.createElement("div",{dangerouslySetInnerHTML:{__html:En("preflightCustomMessage")}})]});{let t=n&&!a?(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"./File/StreamFile?fileType=PrecheckReport&id="+this.props.component.id,children:jn("viewPrecheckReport","")})})}):"";return(0,Ye.jsxs)("div",{children:[t,n?(0,Ye.jsxs)(r.Fragment,{children:[i?(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"File/HelpResource?fileType=CreateAnAdGuide",children:En("viewCreateAnAdGuide")})})}):(0,Ye.jsxs)(r.Fragment,{children:[o?(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"./File/HelpResource?filetype=AdCreationGuide",children:En("viewAdCreationGuide")})})}):null,(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"./File/HelpResource?filetype=PrintSubmissionGuide",children:En("viewPrintSubmissionGuide")})})})]}),(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:void 0!==En("presetsForPDF")&&""!==En("presetsForPDF").trim()?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(je,{to:"#",onClick:this.openPresetsDialog,children:En("download")})," ".concat(En("presetsForPDF"))]}):""})}),r.createElement("div",{dangerouslySetInnerHTML:{__html:En("precheckCustomMessage")}})]}):(0,Ye.jsx)("div",{className:e.link,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"./File/HelpResource?filetype=DigitalSubmissionGuide",children:En("viewDigitalSubmissionGuide")})})})]})}},this.removeAllFiles=()=>{let{updateSubmission:e}=this.props,t=SD.ReadyToUpload,n=this.props.currentSubmission.ticket.components[0].id;fetch("SvrTicket/ReturnToStatus?tcid=".concat(n,"&statusId=").concat(t,"&autoPositionFile=false"),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{if(t.success)this.props.currentSubmission.ticket.components=this.props.currentSubmission.ticket.components.slice(1,1),this.props.currentSubmission.ticket.components[0]=t.updatedComponent,e(this.props.currentSubmission);else if("isDeleted"===t.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===t.error)this.setState({ticketState:Mp.Submitted});else{let e=t.error?t.error:"unknownError";this.setState({showDialog:!0,dialogType:jD.Error,message:En(e)})}})},this.closeUploadAdditionalFilesDialog=()=>{this.state.mediaUploadCancelEnabled&&this.setState({showMediaUploadDialog:!1})},this.uploadAdditionalFiles=()=>{this.setState({showMediaUploadDialog:!0})},this.showButtons=(e,t)=>{let n=!this.props.currentSubmission.ticket.isPrint,r=this.state.results.userCanOverrideErrors,i=this.state.results.messages.filter(e=>e.isError).length>0,o=this.state.results.messages.filter(e=>!e.isError).length>0,a=this.props.currentSubmission.ticket.isCreateAnAd?En("createNewFile"):En("selectNewFile"),s=this.props.currentSubmission.ticket.components[this.props.componentIndex];if(n)return(0,Ye.jsxs)("div",{className:e.buttonContainer,children:[i||o?(0,Ye.jsx)(ac,{showButton:!0,ticketId:this.props.currentSubmission.ticket.id,requestType:3}):"",(0,Ye.jsx)(kr,{className:e.button,onClick:this.uploadAdditionalFiles,variant:"contained",color:"primary",children:En("uploadAdditionalFiles")}),(0,Ye.jsx)(kr,{className:e.button,onClick:this.removeAllFiles,variant:"contained",color:"primary",children:En("removeAllFiles")}),i&&r&&!this.state.overrideClicked?(0,Ye.jsx)(kr,{className:e.button,onClick:()=>
2this.approve(!0,!0),variant:"contained",color:"secondary",autoFocus:!0,children:En("overrideErrors")}):""]});if(t){const t=s.status===SD.PreflightFailed&&this.props.currentSubmission.fixMyFileEnabled&&s.areAllPreflightErrorsFixable;return(0,Ye.jsxs)("div",{className:e.buttonContainer,children:[(0,Ye.jsx)(ac,{showButton:!0,ticketId:this.props.currentSubmission.ticket.id,requestType:3}),(0,Ye.jsx)(kr,{className:e.button,onClick:this.selectNewFile,variant:"contained",color:"primary",children:a}),(0,Ye.jsx)(kr,{className:e.button,onClick:this.reposition,variant:"contained",color:"primary",children:En("reposition")}),t?(0,Ye.jsx)(kr,{className:e.button,onClick:this.fixMyFile,variant:"contained",color:"secondary",autoFocus:!0,children:En("fixMyFile")}):"",s.status===SD.PreflightCrashed||i?i&&r?(0,Ye.jsx)(kr,{className:e.button,onClick:()=>this.approve(!1,!0),variant:"contained",color:"secondary",autoFocus:!0,children:En("overrideErrors")}):"":(0,Ye.jsx)(kr,{className:e.button,onClick:()=>this.approve(!1,!1),variant:"contained",color:"secondary",autoFocus:!0,children:En("approve")})]})}return(0,Ye.jsxs)("div",{className:e.buttonContainer,children:[(0,Ye.jsx)(ac,{showButton:!0,ticketId:this.props.currentSubmission.ticket.id,requestType:3}),(0,Ye.jsx)(kr,{className:e.button,onClick:this.selectNewFile,variant:"contained",color:"primary",children:a}),s.status===SD.PrecheckCrashed||i?i&&r?(0,Ye.jsx)(kr,{className:e.button,onClick:()=>this.approve(!1,!0),variant:"contained",color:"secondary",autoFocus:!0,children:En("overrideErrors")}):"":(0,Ye.jsx)(kr,{className:e.button,onClick:()=>this.approve(!1,!1),variant:"contained",color:"secondary",autoFocus:!0,children:En("approve")})]})},this.getSolutionDiv=e=>(0,Ye.jsx)("div",{children:e.map((e,t)=>(0,Ye.jsx)("p",{children:e[0]+": "+e[1]},t))}),this.showAccordions=(e,t)=>{if(t&&this.state.results){let t=this.state.results.messages.filter(e=>e.isError);return t.length>0?(0,Ye.jsx)("div",{children:t.map((t,n)=>{let r=void 0===t.solution?"":t.solution,i=t.description;if(t.isCorruptMessage&&(i=En("pdfIsCorrupt")),t.multiSolution){let e=Object.entries(t.multiSolution);r=this.getSolutionDiv(e)}return(0,Ye.jsxs)(GI,{onChange:this.handleChange("error-panel-".concat(n)),expanded:this.state.expanded==="error-panel-".concat(n),children:[(0,Ye.jsxs)(JI,{className:e.panelHeader,children:[this.showArrow(e,this.state.expanded==="error-panel-".concat(n)),(0,Ye.jsx)(Tn,{variant:"body2",children:i})]}),(0,Ye.jsx)(nD,{className:e.panelDetails,children:(0,Ye.jsx)(Tn,{component:"div",variant:"body2",children:r})})]},"pferror_".concat(n))})}):(0,Ye.jsx)(GI,{disabled:!0,className:e.panel,children:(0,Ye.jsx)(JI,{style:{backgroundColor:"#F6F6F6"},classes:{expanded:e.expanded},children:(0,Ye.jsx)(Tn,{variant:"body2",children:En("noErrors")})})})}if(this.state.results){let t=this.state.results.messages.filter(e=>!e.isError);return t.length>0?(0,Ye.jsxs)("div",{children:[t.map((t,n)=>(0,Ye.jsxs)(GI,{onChange:this.handleChange("warning-panel-".concat(n)),expanded:this.state.expanded==="warning-panel-".concat(n),children:[(0,Ye.jsxs)(JI,{className:e.panelHeader,children:[this.showArrow(e,this.state.expanded==="warning-panel-".concat(n)),(0,Ye.jsx)(Tn,{variant:"body2",children:t.description})]}),(0,Ye.jsx)(nD,{className:e.panelDetails,children:(0,Ye.jsx)(Tn,{component:"div",variant:"body2",children:t.solution})})]},"pfwarn_".concat(n))),r.createElement("div",{dangerouslySetInnerHTML:{__html:this.state.results.inkDensityMessage}})]}):(0,Ye.jsx)(GI,{disabled:!0,className:e.panel,children:(0,Ye.jsx)(JI,{style:{backgroundColor:"#F6F6F6"},classes:{expanded:e.expanded},children:(0,Ye.jsx)(Tn,{variant:"body2",children:En("noWarnings")})})})}return""},this.startFixMyFile=()=>{this.updateStatus(SD.ReadyToFixFile,!1)},this.disableMediaUploadButtonClicked=()=>{this.setState({mediaUploadButtonClicked:!1})},this.state={expanded:"",dialogType:jD.None,results:void 0,isLoading:!0,showDialog:!1,message:"",displayFixMyFileDisclaimer:!1,overrideClicked:!1,showMediaUploadDialog:!1,mediaUploadButtonEnabled:!1,mediaUploadButtonClicked:!1,mediaUploadCancelEnabled:!0,ticketState:Mp.None}}componentDidMount(){this.loadResults()}render(){const{classes:e,isPreflight:t}=this.props;this.props.currentSubmission.reloadPrecheckPreflightResults&&(this.props.currentSubmission.reloadPrecheckPreflightResults=!1,this.loadResults());let n=this.state.dialogType!==jD.Position?En("error"):En("confirmAutoPosition"),i=this.state.dialogType!==jD.Position?(0,Ye.jsx)(kr,{onClick:this.closeDialog,autoFocus:!0,variant:"contained",color:"secondary",children:En("ok")}):(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(kr,{onClick:()=>this.closeDialog(1),variant:"contained",color:"primary",children:En("manuallyPosition")}),(0,Ye.jsx)(kr,{style:{marginLeft:10},onClick:()=>this.closeDialog(2),variant:"contained",color:"primary",children:En("autoPosition")})]}),o=this.state.dialogType!==jD.Position?this.state.message:(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:En("thisFileMayBeAutoPositioned")});if(this.state.displayFixMyFileDisclaimer){let t=this.state.results.messages.filter(e=>e.isError);return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{variant:"body2",children:r.createElement("span",{dangerouslySetInnerHTML:{__html:En("fixMyFileDisclaimer1")}
2})}),(0,Ye.jsx)("ul",{children:t.map((e,t)=>(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("li",{children:e.description})},t))}),(0,Ye.jsx)(Tn,{variant:"body2",children:r.createElement("span",{dangerouslySetInnerHTML:{__html:En("fixMyFileDisclaimer2")}})}),(0,Ye.jsxs)("div",{className:e.buttonArea,children:[(0,Ye.jsx)(kr,{onClick:this.returnToPreflightResults,className:e.button,variant:"contained",color:"primary",children:En("returnToPreflight")}),(0,Ye.jsx)(kr,{onClick:this.startFixMyFile,className:e.button,variant:"contained",color:"secondary",children:En("iUnderstand")})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}return(0,Ye.jsxs)("div",{style:{minWidth:550,maxWidth:700,width:"100%"},children:[this.state.isLoading?(0,Ye.jsx)(At,{}):(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Vl,{container:!0,justifyContent:"space-between",spacing:5,children:[(0,Ye.jsxs)(Vl,{item:!0,xs:6,children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("span",{className:e.largeText,children:En("warnings")}),(0,Ye.jsxs)("span",{className:e.clickForDetails,children:["(",En("clickForDetails"),")"]})]})}),this.showAccordions(e,!1)]}),(0,Ye.jsxs)(Vl,{item:!0,xs:6,children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("span",{className:e.largeText,children:En("errors")}),(0,Ye.jsxs)("span",{className:e.clickForDetails,children:["(",En("clickForDetails"),")"]})]})}),this.showAccordions(e,!0)]})]}),this.showLinks(e,t),(0,Ye.jsx)("div",{className:e.buttonArea,children:this.showButtons(e,t)})]}),this.state.showDialog?this.state.dialogType===jD.PresetsDialog?(0,Ye.jsx)(CD,{closeDialog:this.closeDialog}):(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:n}),(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Tn,{variant:"body2",children:o})}),(0,Ye.jsx)(Ia,{children:i})]}):"",(0,Ye.jsxs)(Aa,{open:this.state.showMediaUploadDialog,onClose:this.closeUploadAdditionalFilesDialog,children:[(0,Ye.jsx)(Kl,{children:En("fileSelection")}),(0,Ye.jsx)(za,{children:(0,Ye.jsx)(ED,{inDialog:!0,disableMediaUploadButtonClicked:this.disableMediaUploadButtonClicked,mediaUploadButtonClicked:this.state.mediaUploadButtonClicked,updateMediaButtonState:this.updateMediaButtonState,showBackgroundDialog:this.props.showBackgroundDialog,updateSubmission:this.props.updateSubmission,componentIndex:0,currentSubmission:this.props.currentSubmission,reusableComponents:this.props.currentSubmission.reusableComponents})}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{style:{display:this.state.mediaUploadCancelEnabled?"inline":"none"},variant:"contained",onClick:this.closeUploadAdditionalFilesDialog,color:"primary",children:En("cancel")}),(0,Ye.jsx)(kr,{style:{display:this.state.mediaUploadButtonEnabled&&this.state.mediaUploadCancelEnabled?"inline":"none"},onClick:()=>{this.setState({mediaUploadButtonClicked:!0})},disabled:!this.state.mediaUploadButtonEnabled,color:"secondary",variant:"contained",children:En("proceedToPrecheck")})]})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const ID=pn(ND,e=>({largeText:{fontSize:"14pt",fontWeight:"bold"},panelArrow:{color:"black",paddingRight:"0 !important",paddingBottom:3},clickForDetails:{marginLeft:10},panelHeader:{backgroundColor:"#F6F6F6",margin:0,height:30,borderRadius:8,padding:0,wordWrap:"no-wrap"},expanded:{minHeight:"30px !important",marginTop:"4px !important",marginBottom:"4px !important"},panel:{margin:0},link:{marginTop:20,marginBottom:20},buttonArea:{float:"right"},buttonContainer:{textAlign:"center",display:"inline-flex"},button:{marginLeft:10},controlContainer:{width:170},panelDetails:{paddingLeft:8,paddingRight:8,paddingBottom:8,overflowWrap:"anywhere"},content:{marginTop:8,marginBottom:8}}),{withTheme:!0}),DD=Object.freeze({Placeholder:1,Waiting:2,Uploading:3,Uploaded:4,Delete:5}),PD=Object.freeze({None:0,ProofDeliveryDetails:1}),LD=Object.freeze({OK:1,Cancel:2,Yes:4,No:8}),RD=Object.freeze({None:0,PrecheckReport:1,PreflightReport:2});class OD extends r.Component{constructor(e){super(e),this.displayName=OD.name,this.isTicketResubmission=()=>{let{currentSubmission:e}=this.props;return!!e.ticket.originalTicketId},this.materialDetailsEndEdit=(e,t)=>
2{let{currentSubmission:n}=this.props;if(e){if(!document.getElementById("materialDetailsForm").checkValidity())return void(n.adDetailsCollapsed&&(n.adDetailsCollapsed=!1,this.props.updateSubmission(n)));t.preventDefault();const e=()=>{let e=0;for(let t=0;t<n.ticket.notes.length;t++)"\n"===n.ticket.notes[t]&&(e+=2);return e};if(this.isTicketResubmission())if(n.ticket.isResubmissionNoteRequired&&""===n.ticket.notes.trim())n.ticket.notes=n.backup.notes;else{let t=e();n.ticket.notes=n.ticket.requiredNotesMessage+"\n"+n.ticket.notes,n.ticket.notes=n.ticket.notes.substring(0,254-t)}else{let t=e();n.ticket.notes=n.ticket.notes.substring(0,254-t)}let r=Object.keys(n.ticket).filter(e=>"components"!==e&&"refDocs"!==e).reduce((e,t)=>(e[t]=n.ticket[t],e),{});n.savingTicketInfo=!0,this.props.updateSubmission(n),fetch("SvrTicket/EditMaterialDetails",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(r)}).then(e=>e.json()).then(e=>{e.success||("isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.props.showBackgroundDialog(En(e.error)));let{currentSubmission:t}=this.props;t.savingTicketInfo=!1,this.props.updateSubmission(t)})}else n.ticket&&(n.ticket.advertiser=n.backup.advertiser,n.ticket.notes=n.backup.notes,n.ticket.adId=n.backup.adId,n.ticket.headline=n.backup.headline,n.ticket.description=n.backup.description,n.ticket.product=n.backup.product,n.ticket.companyName=n.backup.companyName,n.ticket.title=n.backup.title,n.ticket.tags=n.backup.tags,n.ticket.urls=n.backup.urls);n.materialDetailsEdit=!1,this.props.updateSubmission(n)},this.contactDetailsEndEdit=(e,t)=>{let{currentSubmission:n}=this.props;if(e){if(!document.getElementById("contactDetailsForm").checkValidity())return void(n.contactDetailsCollapsed&&(n.contactDetailsCollapsed=!1,this.props.updateSubmission(n)));t.preventDefault();let e=Object.keys(n.ticket).filter(e=>"components"!==e&&"refDocs"!==e).reduce((e,t)=>(e[t]=n.ticket[t],e),{});n.savingTicketInfo=!0,this.props.updateSubmission(n),fetch("SvrTicket/EditContactDetails",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(e)}).then(e=>e.json()).then(e=>{if(e.success)this.startNextRefDocUpload();else if("isDeleted"===e.error){this.setState({ticketState:Mp.Deleted});let{currentSubmission:e}=this.props;e.savingTicketInfo=!1,this.props.updateSubmission(e)}else if("isSubmitted"===e.error){this.setState({ticketState:Mp.Submitted});let{currentSubmission:e}=this.props;e.savingTicketInfo=!1,this.props.updateSubmission(e)}else{let{currentSubmission:t}=this.props;t.savingTicketInfo=!1,this.props.updateSubmission(t),this.props.showBackgroundDialog(En(e.error))}})}else n.ticket&&(n.ticket.contactFirstName=n.backup.contactFirstName,n.ticket.contactLastName=n.backup.contactLastName,n.ticket.contactPhone=n.backup.contactPhone,n.ticket.contactEmail=n.backup.contactEmail,this.refreshLocalRefDocs(n));n.contactDetailsEdit=!1,this.props.updateSubmission(n)},this.startNextRefDocUpload=()=>{let{currentSubmission:e}=this.props;var t=e.refDocs.find(e=>e.status===DD.Waiting);if(t){let r=new FormData,i=new XMLHttpRequest;r.append("ticketId",e.ticket.id),r.append("fileUpload",t.file);var n=this;i.addEventListener("load",function(e){n.onRefDocUploadComplete(i.response,t)}),i.upload.addEventListener("progress",function(e){let r=e.loaded/e.total*100;n.updateRefDocUploadProgress(t.key,r)}),i.responseType="json",i.open("post","SvrTicket/UploadReferenceDoc"),i.send(r),t.status=DD.Uploading,t.percent=0,this.props.updateSubmission(e)}else{var r=[];for(var i in e.refDocs)(t=e.refDocs[i]).status===DD.Delete&&t.id&&r.push(t.id);r.length>0?fetch("SvrTicket/DeleteReferenceDocuments",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({ticketId:e.ticket.id,documentIds:r})}).then(e=>e.json()).then(e=>{let{currentSubmission:t}=this.props;
2e.success?this.clearDeletedRefDocs(t):this.props.showBackgroundDialog(En(e.error)),t.savingTicketInfo=!1,this.props.updateSubmission(t)}):(e.savingTicketInfo=!1,this.props.updateSubmission(e))}},this.updateRefDocUploadProgress=(e,t)=>{let{currentSubmission:n}=this.props;var r=n.refDocs.find(t=>t.key===e);r&&(r.percent=t,this.props.updateSubmission(n))},this.clearDeletedRefDocs=e=>{let t=e.refDocs.filter(e=>e.status===DD.Delete);function n(t){return e.ticket.refDocs.find(e=>e.id===t)}for(var r in t){let i=n(t[r].id);if(i){let t=e.ticket.refDocs.indexOf(i);t>=0&&e.ticket.refDocs.splice(t,1)}}e.refDocs=e.refDocs.filter(e=>e.status!==DD.Delete)},this.onRefDocUploadComplete=(e,t)=>{let{currentSubmission:n}=this.props;if(e||(e={success:!1,error:"maxFileSizeError"}),e.success){var r=n.refDocs.find(e=>e.key===t.key);r.status=DD.Uploaded,r.file=null,r.id=e.id,n.ticket.refDocs.push({id:r.id,fileName:r.fileName}),this.props.updateSubmission(n),this.startNextRefDocUpload()}else n.savingTicketInfo=!1,this.props.updateSubmission(n),this.props.showBackgroundDialog(En(e.error))},this.invokeEdit=e=>{let{currentSubmission:t}=this.props;t[e]=!0,"materialDetailsEdit"===e?(t.backup.advertiser=t.ticket.advertiser,t.backup.notes=t.ticket.notes,t.backup.adId=t.ticket.adId,t.backup.headline=t.ticket.headline,t.backup.description=t.ticket.description,t.backup.product=t.ticket.product,t.backup.companyName=t.ticket.companyName,t.backup.title=t.ticket.title,t.backup.tags=t.ticket.tags,t.backup.urls=JSON.parse(JSON.stringify(t.ticket.urls)),t.adDetailsCollapsed=!1,this.isTicketResubmission()&&(t.ticket.notes.indexOf(t.ticket.requiredNotesMessage+"\n")>=0?t.ticket.notes=t.ticket.notes.replace(t.ticket.requiredNotesMessage+"\n",""):t.ticket.notes.indexOf(t.ticket.requiredNotesMessage)>=0&&(t.ticket.notes=t.ticket.notes.replace(t.ticket.requiredNotesMessage,"")))):"contactDetailsEdit"===e&&(t.backup.contactFirstName=t.ticket.contactFirstName,t.backup.contactLastName=t.ticket.contactLastName,t.backup.contactPhone=t.ticket.contactPhone,t.backup.contactEmail=t.ticket.contactEmail,t.contactDetailsCollapsed=!1,this.refreshLocalRefDocs(t)),this.props.updateSubmission(t)},this.refreshLocalRefDocs=e=>{if(e.refDocs=[],e.ticket.refDocs)for(var t in e.ticket.refDocs){var n=e.ticket.refDocs[t];e.refDocs.push({key:"refDoc".concat(n.id),fileName:n.fileName,status:DD.Uploaded,id:n.id})}const{numRefDocs:r}=this.state;e.refDocs.push({key:"refDocFile".concat(r),fileName:null,status:DD.Placeholder})},this.onEditDetailsClicked=()=>{this.setState({lastMessage:En("editDetailsWarning"),dialogButtons:LD.Yes|LD.No,dialogAction:()=>{let{currentSubmission:e}=this.props;e.showEditDetails=!0,e.wasDeliveryConfirmationDialogShown=!1,this.props.updateSubmission(e)},showingMessage:!0})},this.handleChange=e=>{let{currentSubmission:t}=this.props;"checkbox"===e.target.type?t.ticket[e.target.value]=e.target.checked:t.ticket[e.target.name]=e.target.value,this.props.updateSubmission(t)},this.closeMessage=e=>{let t=null;!this.state.dialogAction||e!==LD.OK&&e!==LD.Yes||(t=this.state.dialogAction),this.setState({showingMessage:!1,dialogAction:null,dialogType:PD.None,lastMessage:""}),t&&t()},this.toggleGroup=e=>{let{currentSubmission:t}=this.props;t[e]=!t[e],this.props.updateSubmission(t)},this.foldingDummyError=e=>{e.target.style.display="none"},this.onRefDocAdded=e=>{if(e.target.files.length>0){let{currentSubmission:i}=this.props,{numRefDocs:o}=this.state;var t=i.refDocs.find(t=>t.key===e.target.id);if(t)if(e.target.files[0].size>104857600)this.setState({lastMessage:En("fileTooLarge"),showingMessage:!0,dialogButtons:LD.OK});else{this.setState({disableAddFile:!0});var n=new FormData,r=e.target.files[0].name;n.append("ticketId",i.ticket.id),n.append("fileName",r),fetch("SvrTicket/ValidateRefDocFilename",{method:"POST",credentials:"same-origin",body:n}).then(e=>e.json()).then(e=>{if(e.success&&e.valid)t.fileName=r,t.file=document.getElementById(t.key).files[0],t.status=DD.Waiting,i.refDocs.push({key:"refDocFile".concat(o+1),fileName:null,status:DD.Placeholder}),this.setState({disableAddFile:!1,numRefDocs:o+1}),this.props.updateSubmission(i);else if(!1===e.valid&&e.errors){var n=jn("invalidFile")+" "+e.errors.join(" ");this.setState({disableAddFile:!1,lastMessage:n,showingMessage:!0,dialogButtons:LD.OK})}else this.setState({disableAddFile:!1,lastMessage:En(e.error),showingMessage:!0,dialogButtons:LD.OK})})}}},this.addRefDocClicked=()=>{let{currentSubmission:e}=this.props,t=e.refDocs.find(e=>e.status===DD.Placeholder);document.getElementById(t.key).click()},this.deleteRefDocClicked=(e,t)=>{let{currentSubmission:n}=this.props,r=n.refDocs.find(e=>e.key===t);if(r)if(r.status===DD.Uploaded)r.status=DD.Delete,this.props.updateSubmission(n);else{let e=n.refDocs.indexOf(r);n.refDocs.splice(e,1),this.props.updateSubmission(n)}},this.showDialog=(e,t)=>
2{this.setState({showReportDialog:!0,dialogReportType:e,componentIdForReportDialog:t})},this.getDisplayColor=e=>{let t=null;for(var n=0;n<e.components.length;n++){let r=e.components[n];if(r.isPublisherSupplied)continue;let i="";r.colorCyan&&(i+="C"),r.colorMagenta&&(i+=" M"),r.colorYellow&&(i+=" Y"),r.colorBlack&&(i+=" K"),r.usePantoneColor&&r.pantoneColor&&(i.length>0&&(i+=", "),i+=r.pantoneColor),t=t&&t!==i?En("varied"):i}return t||""},this.showSizePanels=e=>{if(!e.isPrint)return"";const{classes:t}=this.props;let n="";e.size&&e.size.foldingDummyExists&&(n=(0,Ye.jsx)("img",{onError:this.foldingDummyError,src:"File/StreamFile?fileType=AdSizePreview&id=".concat(e.publisherId,",").concat(e.sizeId),alt:"Folding Dummy N/A"}));let i=e.components[0].sizeComponent&&e.components[0].sizeComponent.bleed.length>0?(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("bleed")," - ",e.components[0].sizeComponent.bleed]}):"",o=e.components[0].sizeComponent&&e.components[0].sizeComponent.safety.length>0?(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("safety")," - ",e.components[0].sizeComponent.safety]}):"",a=(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("colors")," - ",this.getDisplayColor(e)]}),s=En("seePanels"),l=e.components[0].sizeComponent?e.components[0].sizeComponent.height:"",c=!0;if(1===e.components.length&&e.components[0].sizeComponent&&(s=e.components[0].sizeComponent.width,c=!1),e.components.length>1){for(var u={min:9999,max:-9999},d=0;d<e.components.length;d++){var p=e.components[d];if(p.sizeComponent){p.sizeComponent.height;var h=+p.sizeComponent.height.replace(p.userMeasurementPreference,"").trim();h<u.min&&(u.min=h),h>u.max&&(u.max=h)}}if(u.min!==u.max){var f=e.components[0].userMeasurementPreference;l="".concat(u.min," ").concat(f," - ").concat(u.max," ").concat(f)}}let m=[];return e.components.map((t,n)=>{let r="";return t.panelPositions?1===t.panelPositions.length?r=null===t.panelPositions[0].name?"Page ".concat(n+1):t.panelPositions[0].name:2===t.panelPositions.length?r=t.panelPositions[0].name+"/"+t.panelPositions[t.panelPositions.length-1].name:t.panelPositions.length>2&&(r=t.panelPositions[0].name+"-"+t.panelPositions[t.panelPositions.length-1].name):e.IsrUploadPageCount&&(r="Page ".concat(n+1)),t.precheckReportExists&&m.push((0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>{this.showDialog(RD.PrecheckReport,t.id)},children:jn("viewPrecheckReport",r)})},"linkPrecheck_".concat(n))),t.preflightReportExists&&m.push((0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)(je,{to:"#",onClick:()=>{this.showDialog(RD.PreflightReport,t.id)},children:jn("viewPreflightReport",r)})},"linkPreflight_".concat(n))),""}),m.length>0&&(m=(0,Ye.jsx)("div",{className:t.reportLinks,children:m.map(e=>e)})),(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:t.sizePanels,children:(0,Ye.jsxs)("div",{style:{display:"inline-flex"},children:[n,e.components.map(e=>{let t="";return t=e.isPublisherSupplied?"File/StreamPublisherSuppliedImage?tcid=".concat(e.id):null!==e.fileType?"File/StreamFile?fileType=".concat(e.fileType,"&id=").concat(e.id,"&hash=").concat(e.fileHash):"",(0,Ye.jsx)(kp,{filePath:t,component:e,componentSize:e.tempSize,marginLeft:10,showPanelWidths:c},"img_".concat(e.id))}),(0,Ye.jsxs)("div",{style:{marginLeft:16,whiteSpace:"nowrap",display:"block"},children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("width")," - ",s]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("height")," - ",l]})}),(0,Ye.jsx)("div",{children:i}),(0,Ye.jsx)("div",{children:o}),(0,Ye.jsx)("div",{children:a})]})]})}),m]})},this.getRefDocContent=()=>{const{classes:e,currentSubmission:t}=this.props;let n=(0,Ye.jsx)("div",{children:"\xa0"});if(t.refDocs){let i="";t.contactDetailsEdit?i=(0,Ye.jsx)(sI,{component:kr,disabled:this.state.disableAddFile,className:e.linkButton,onClick:()=>this.addRefDocClicked(),children:En("addReferenceDocument")}):t.refDocs.find(e=>e.status!==DD.Delete&&e.fileName)||(i=(0,Ye.jsx)("span",{children:"\xa0"})),n=(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{id:"refDocsTank",children:t.refDocs.map(n=>{if(n.status===DD.Delete)return"";let i="",o="";if(n.fileName){let r=n.fileName;n.status===DD.Uploaded&&n.id&&(r=(0,Ye.jsx)("a",{href:"File/StreamFile?fileType=RefDoc&id=".concat(n.id),alt:n.fileName,target:"_blank",rel:"noopener noreferrer",children:n.fileName})),i=(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("span",{children:r})," ",t.contactDetailsEdit?(0,Ye.jsx)(sI,{component:kr,className:e.linkButton,onClick:e=>this.deleteRefDocClicked(e,n.key),children:En("delete")}):""]})}return n.status===DD.Uploading&&(o=(0,Ye.jsx)(JN,{variant:"determinate",value:n.percent})),(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("input",{type:"file",id:n.key,style:{display:"none"},onChange:e=>this.onRefDocAdded(e)}),i,o]},"refDoc_".concat(n.key))})}),i]})}return n},this.generateProofDeliveryAddress=e=>e.split("<br/>").map((e,t)=>(0,Ye.jsx)(r.Fragment,{children:(0,Ye.jsx)("div",{style:{whiteSpace:"nowrap"},children:e})},"pda_".concat(t))),this.getDialogContent=()=>{let e=[],t=this.state.dialogButtons;(t&LD.No)===LD.No&&e.push((0,Ye.jsx)(kr,{onClick:()=>this.closeMessage(LD.No),variant:"contained",color:"primary",children:En("no")},"btnNo")),(t&LD.Yes)===LD.Yes&&e.push((0,Ye.jsx)(kr,{onClick:()=>this.closeMessage(LD.Yes),variant:"contained",color:"secondary",autoF
2ocus:!0,children:En("yes")},"btnYes")),(t&LD.Cancel)===LD.Cancel&&e.push((0,Ye.jsx)(kr,{onClick:()=>this.closeMessage(LD.Cancel),variant:"contained",color:"primary",children:En("cancel")},"btnCancel")),0!==e.length&&(t&LD.OK)!==LD.OK||e.push((0,Ye.jsx)(kr,{onClick:()=>this.closeMessage(LD.OK),variant:"contained",color:"secondary",autoFocus:!0,children:En("ok")},"btnOK"));let n=(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:this.state.lastMessage}),r="";return this.state.dialogType===PD.ProofDeliveryDetails&&(r=(0,Ye.jsx)(Kl,{children:En("proofDeliveryDetails")}),n=(0,Ye.jsxs)("div",{children:[""!==this.props.currentSubmission.ticket.proofDeliveryRecipient.trim()?(0,Ye.jsx)(Tn,{variant:"body2",style:{textAlign:"center",color:"#000"},component:"div",children:this.props.currentSubmission.ticket.proofDeliveryRecipient}):"",this.props.currentSubmission.ticket.isProofEmailVisible&&""!==this.props.currentSubmission.ticket.isrName.trim()&&""!==this.props.currentSubmission.ticket.isrEmailAddress.trim()?(0,Ye.jsxs)(Tn,{variant:"body2",style:{textAlign:"center",color:"#000"},component:"div",children:["".concat(En("contact")," "),(0,Ye.jsx)("a",{href:"mailto:".concat(this.props.currentSubmission.ticket.isrEmailAddress),children:this.props.currentSubmission.ticket.isrName})]}):"",(0,Ye.jsx)(Tn,{variant:"body2",style:{textAlign:"center",color:"#000"},component:"div",children:this.generateProofDeliveryAddress(this.props.currentSubmission.ticket.proofDeliveryAddress)})]})),(0,Ye.jsxs)(Aa,{open:this.state.showingMessage,onClose:this.closeMessage,"aria-describedby":"alert-dialog-description",children:[r,(0,Ye.jsx)(za,{children:n}),(0,Ye.jsx)(Ia,{children:e})]})},this.closeReportDialog=()=>{this.setState({showReportDialog:!1})},this.getReportDialog=()=>{let e="",t="";return this.state.dialogReportType===RD.PrecheckReport?(t=En("precheckReport"),e=(0,Ye.jsx)("iframe",{className:this.props.classes.iframe,title:this.state.componentIdForReportDialog,src:"./File/StreamFile?fileType=PrecheckReport&id=".concat(this.state.componentIdForReportDialog)})):this.state.dialogReportType===RD.PreflightReport&&(t=En("preflightReport"),e=(0,Ye.jsx)("iframe",{className:this.props.classes.iframe,title:this.state.componentIdForReportDialog,src:"./File/StreamFile?fileType=PreflightReport&id=".concat(this.state.componentIdForReportDialog)})),(0,Ye.jsxs)(Aa,{open:this.state.showReportDialog,fullWidth:!0,scroll:"body",maxWidth:"lg",onClose:this.closeReportDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:t}),(0,Ye.jsx)(za,{className:this.props.classes.dialogContent,children:e}),(0,Ye.jsx)(Ia,{className:this.props.classes.dialogActions,children:(0,Ye.jsx)(kr,{name:"ok",variant:"contained",autoFocus:!0,onClick:this.closeReportDialog,color:"secondary",children:En("ok")})})]})},this.state={showingMessage:!1,lastMessage:"",dialogButtons:1,dialogAction:null,numRefDocs:1,disableAddFile:!1,dialogReportType:RD.None,showReportDialog:!1,componentIdForReportDialog:-1,ticketState:Mp.None}}componentDidMount(){if(!this.props.currentSubmission.refDocs){let{currentSubmission:e}=this.props;this.refreshLocalRefDocs(e),this.props.updateSubmission(e)}}componentWillUnmount(){let{currentSubmission:e}=this.props;e.materialDetailsEdit&&this.materialDetailsEndEdit(!1),e.contactDetailsEdit&&this.contactDetailsEndEdit(!1)}render(){let{currentSubmission:e}=this.props;const{classes:t}=this.props;let n=[],i="",o=[];if(n.push((0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("publication")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.publicationName})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("issue")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.issueName})]})]},"pubIssue")),e.ticket.isPrint){let i=""!==e.ticket.adSpecsUrl.trim()?(0,Ye.jsx)("div",{className:t.adSpecsUrlSection,children:(0,Ye.jsx)("a",{className:t.adSpecs,target:"_blank",rel:"noopener noreferrer",href:e.ticket.adSpecsUrl,children:En("adSpecs")})}):"",o=!0;for(let t=0;t<e.ticket.proofOptions.proofOptions.length;t++)if(e.ticket.proofOptions.proofOptions[t].id===$N.Virtual){o=!1;break}let a="";o&&e.ticket.isrEmailAddress&&""!==e.ticket.isrEmailAddress.trim()&&e.ticket.isrName&&""!==e.ticket.isrName.trim()&&e.ticket.proofDeliveryAddress&&""!==e.ticket.proofDeliveryAddress.trim()&&(a=(0,Ye.jsx)("div",{className:t.adSpecsUrlSection,children:(0,Ye.jsx)(je,{to:"#",onClick:()=>{this.setState({showingMessage:!0,dialogType:PD.ProofDeliveryDetails,dialogButtons:LD.OK})},className:t.adSpecs,children:En("proofDeliveryDetails")})})),n.push((0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("adSize")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.sizeName})]},"adSize"),i,(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("proofOptions")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:En(e.ticket.proofIncludedName)})]},"proofOptions"),a]},"printDetails"))}else n.push((0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("fileType")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.fileTypeName})]},"mediaFileType")),""!==e.ticket.mediaAdSpecsUrl.trim()&&n.push((0,Ye.jsx)("div",{className:t.adSpecsUrlSection,children:(0,Ye.jsx)("a",{className:t.adSpecs,target:"_blank",rel:"noopener noreferrer",href:e.ticket.mediaAdSpecsUrl,children:En("adSpecs")})},"adSpecsUrl")),e.ticket.resolutionId&&n.push((0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("resolution")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.resolutionName})]},"mediaResolution"));i=e.materialDetailsEdit?(0,Ye.jsxs)(r.Fragment,{children:[this.isTicketResubmission()?[(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("div",{className:t.fakeLabel,children:[En("advertiser")," *"]}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.advertiser})]}),(0,Ye.jsx)(pI,{currentSubmission:e,readOnly:!0},"customDetails")]},"materialDetailsEditResub")]:[(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"advertiser",children:En("advertiser")}),(0,Ye.jsx)(uo,{id:"advertiser",name:"advertiser",value:e.ticket.advertiser,onChange:this.handleChange,inputProps:{maxLength:"50"}})]},"advertiser")}),(0,Ye.jsx)(pI,{currentSubmission:e,updateSubmission:this.props.updateSubmission},"customDetails")]},"materialDetailsEditNew")],(0,Ye.jsxs)(Pr,{className:t.notesMargin,fullWidth:!0,variant:"filled",children:[(0,Ye.jsx)(wo,{htmlFor:"detailsNotes",children:En("notes")}),(0,Ye.jsx)(pl,{id:"detailsNotes",name:"notes",multiline:!0,rows:3,value:e.ticket.notes,onChange:this.handleChange,inputProps:{maxLength:"255"}})]}
2,"notes")]}):(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("div",{className:t.fakeLabel,children:[En("advertiser")," *"]}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.advertiser})]}),(0,Ye.jsx)(pI,{currentSubmission:e,readOnly:!0},"customDetails"),(0,Ye.jsxs)("div",{className:t.fakeContainer,children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("notes")}),(0,Ye.jsx)(Tn,{variant:"body2",children:e.ticket.notes})]})]}),e.contactDetailsEdit?o.push((0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"contactfirstName",children:En("firstName")}),(0,Ye.jsx)(uo,{name:"contactFirstName",value:e.ticket.contactFirstName,onChange:this.handleChange,inputProps:{maxLength:"30"}})]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"contactlastName",children:En("lastName")}),(0,Ye.jsx)(uo,{name:"contactLastName",value:e.ticket.contactLastName,onChange:this.handleChange,inputProps:{maxLength:"30"}})]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"contactPhone",children:En("contactPhone")}),(0,Ye.jsx)(uo,{name:"contactPhone",value:e.ticket.contactPhone,onChange:this.handleChange,inputProps:{maxLength:"15"}})]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"contactEmail",children:En("contactEmail")}),(0,Ye.jsx)(uo,{name:"contactEmail",type:"email",value:e.ticket.contactEmail,onChange:this.handleChange,inputProps:{maxLength:"100"}})]})})]},"personalInfo")):o.push((0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("firstName")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.contactFirstName})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("lastName")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.contactLastName})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("contactPhone")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.contactPhone})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("contactEmail")}),(0,Ye.jsx)(Tn,{variant:"body2",className:t.fakeInput,children:e.ticket.contactEmail})]})]},"personalInfo")),o.push((0,Ye.jsxs)("div",{className:t.fakeContainer,children:[(0,Ye.jsx)("div",{className:t.fakeLabel,children:En("referenceDocuments")}),this.getRefDocContent(e)]},"refDocs"));let a="",s="";return e.savingTicketInfo||(a=e.materialDetailsEdit?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(kr,{color:"primary",variant:"contained",size:"small",onClick:()=>this.materialDetailsEndEdit(!1),children:En("cancel")}),(0,Ye.jsx)(kr,{type:"submit",color:"secondary",variant:"contained",size:"small",onClick:e=>this.materialDetailsEndEdit(!0,e),children:En("apply")})]}):(0,Ye.jsx)(kr,{className:t.editButton,variant:"text",size:"small",onClick:()=>this.invokeEdit("materialDetailsEdit"),children:En("edit")}),e.contactDetailsEdit?s=(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(kr,{color:"primary",variant:"contained",size:"small",onClick:()=>this.contactDetailsEndEdit(!1),children:En("cancel")}),(0,Ye.jsx)(kr,{type:"submit",color:"secondary",variant:"contained",size:"small",onClick:e=>this.contactDetailsEndEdit(!0,e),children:En("apply")})]}):this.isTicketResubmission()||(s=(0,Ye.jsx)(kr,{className:t.editButton,variant:"text",size:"small",onClick:()=>this.invokeEdit("contactDetailsEdit"),children:En("edit")}))),(0,Ye.jsxs)(r.Fragment,{children:[this.showSizePanels(e.ticket),(0,Ye.jsxs)(RI,{in:!e.subDetailsCollapsed,collapsedSize:"35px",children:[(0,Ye.jsxs)("div",{className:t.groupHeader,children:[(0,Ye.jsx)("div",{onClick:()=>this.toggleGroup("subDetailsCollapsed"),children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[e.subDetailsCollapsed?[(0,Ye.jsx)(rD.A,{style:{verticalAlign:"middle"}},"arrow")]:[(0,Ye.jsx)(iD.A,{style:{verticalAlign:"middle"}}
2,"arrow")],(0,Ye.jsx)("span",{children:En("submissionDetails")})]})}),!this.isTicketResubmission()>0&&[(0,Ye.jsx)(kr,{className:t.editButton,variant:"text",size:"small",onClick:()=>this.onEditDetailsClicked(),children:En("edit")},"submissionDetailsEdit")]]}),(0,Ye.jsx)("div",{children:n})]}),(0,Ye.jsx)("form",{id:"materialDetailsForm",children:(0,Ye.jsxs)(RI,{in:!e.adDetailsCollapsed,collapsedSize:"35px",children:[(0,Ye.jsxs)("div",{className:t.groupHeader,children:[(0,Ye.jsx)("div",{onClick:()=>this.toggleGroup("adDetailsCollapsed"),children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[e.adDetailsCollapsed?[(0,Ye.jsx)(rD.A,{style:{verticalAlign:"middle"}},"materialArrow")]:[(0,Ye.jsx)(iD.A,{style:{verticalAlign:"middle"}},"materialArrow")],(0,Ye.jsx)("span",{style:{verticalAlign:"middle"},children:En("materialDetails")})]})}),a]}),(0,Ye.jsx)("div",{children:i})]})}),(0,Ye.jsx)("form",{id:"contactDetailsForm",children:(0,Ye.jsxs)(RI,{in:!e.contactDetailsCollapsed,collapsedSize:"35px",children:[(0,Ye.jsxs)("div",{className:t.groupHeader,children:[(0,Ye.jsx)("div",{onClick:()=>this.toggleGroup("contactDetailsCollapsed"),children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[e.contactDetailsCollapsed?[(0,Ye.jsx)(rD.A,{style:{verticalAlign:"middle"}},"contactArrow")]:[(0,Ye.jsx)(iD.A,{style:{verticalAlign:"middle"}},"contactArrow")],(0,Ye.jsx)("span",{style:{verticalAlign:"middle"},children:En("additionalInfo")})]})}),s]}),(0,Ye.jsx)("div",{children:o})]})}),this.getDialogContent(),this.getReportDialog(),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const zD=pn(OD,e=>({spacer:{paddingTop:e.spacing(2)},alignRight:{width:"100%",textAlign:"right"},fakeLabel:{fontFamily:e.typography.subtitle1.fontFamily,fontSize:"0.75rem",width:"100%",color:"rgba(0, 0, 0, 0.54)",paddingTop:e.spacing(1)},fakeInput:{fontSize:"1rem",width:"100%"},fakeContainer:{background:"rgba(0,0,0,0.09)",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",padding:"12px",paddingTop:"0",marginTop:"4px",borderBottom:"1px solid rgba(0, 0, 0, 0.42)","&:hover":{background:"rgba(0,0,0,0.13)",borderBottom:"1px solid rgba(0, 0, 0, 0.87)"},transition:"background-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"},groupHeader:{marginTop:e.spacing(1),cursor:"pointer",userSelect:"none",borderWidth:"1px",borderStyle:"solid",borderColor:"#CCC",background:"#EEE",display:"flex",height:"26px","&:hover":{background:"#D8D8D8"},"&> div:first-of-type":{flex:"1 0 auto"},"& p":{lineHeight:"22px"},"& button":{padding:"1px"},transition:"background-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"},sizePanels:{marginTop:e.spacing(1),overflowX:"auto"},linkButton:{textDecoration:"underline",padding:"3px 4px","&:hover":{backgroundColor:"transparent"}},editButton:{alignSelf:"baseline",textDecoration:"underline",color:e.palette.primary.main},notesMargin:{marginTop:e.spacing(1)},dialogContent:{position:"relative"},dialogActions:{display:"block",justifyContent:"none",textAlign:"center"},iframe:{width:"100%",height:"calc(100vh - 240px)"},reportLinks:{paddingTop:10,paddingBottom:10,paddingLeft:5},adSpecs:{float:"right"}})),FD=Object.freeze({None:0,Error:1,Position:2});class BD extends r.Component{constructor(e){super(e),this.displayName=BD.name,this.returnToPreviousStatus=(e,t)=>{let{currentSubmission:n,updateSubmission:r,componentIndex:i}=this.props,o=n.ticket.components[i].id;fetch("SvrTicket/ReturnToStatus?tcid=".concat(o,"&statusId=").concat(e,"&autoPositionFile=").concat(t),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success)n.ticket.components[i]=e.updatedComponent,r(n);else if("isDeleted"===e.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===e.error)this.setState({ticketState:Mp.Submitted});else{let t=e.error?e.error:"unknownError";this.setState({showDialog:!0,dialogType:FD.Error,message:En(t)})}})},this.closeDialog=e=>{if(1===e)this.returnToPreviousStatus(SD.ReadyToPosition);else if(2===e){let e=this.props.currentSubmission.ticket.components[this.props.componentIndex];fetch("SvrTicket/AutoPosition?tcid=".concat(e.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.ticketComponent,this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error&&this.setState({ticketState:Mp.Submitted})})}this.setState({showDialog:!1})},this.uploadNewfile=()=>{this.returnToPreviousStatus(SD.ReadyToUpload)},this.reposition=()=>{this.props.currentSubmission.ticket.components[this.props.componentIndex].c
2anAutoPosition?this.setState({showDialog:!0,dialogType:FD.Position}):this.returnToPreviousStatus(SD.ReadyToPosition,!1)},this.state={dialogType:FD.None,showDialog:!1,message:"",ticketState:Mp.None};let t=this.findNextUnfinishedComponentAndFlashPanel();e.currentSubmission.flashPanel=t,e.updateSubmission(e.currentSubmission)}findNextUnfinishedComponentAndFlashPanel(){let e=this.props.currentSubmission.ticket.components;if(e)for(let t=0;t<e.length;t++)if(e[t].status!==SD.PublisherSupplied&&e[t].status!==SD.ReadyToTransmit)return t;return-1}render(){const{classes:e,currentSubmission:t}=this.props;let n=t.ticket.isCreateAnAd?En("createNewFile"):En("uploadNewFile"),r=t.ticket.isrUploadPageCount,i=this.state.dialogType!==FD.Position?En("error"):En("confirmAutoPosition"),o=this.state.dialogType!==FD.Position?(0,Ye.jsx)(kr,{onClick:this.closeDialog,autoFocus:!0,variant:"contained",color:"secondary",children:En("ok")}):(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(kr,{onClick:()=>this.closeDialog(1),variant:"contained",color:"primary",children:En("manuallyPosition")}),(0,Ye.jsx)(kr,{style:{marginLeft:10},onClick:()=>this.closeDialog(2),variant:"contained",color:"primary",children:En("autoPosition")})]}),a=this.state.dialogType!==FD.Position?this.state.message:(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:En("thisFileMayBeAutoPositioned")});return(0,Ye.jsxs)("div",{className:e.buttons,children:[(0,Ye.jsx)(kr,{className:e.button,color:"primary",variant:"contained",onClick:this.uploadNewfile,children:n}),r?"":(0,Ye.jsx)(kr,{className:e.button,color:"primary",variant:"contained",onClick:this.reposition,children:En("reposition")}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:i}),(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Tn,{variant:"body2",children:a})}),(0,Ye.jsx)(Ia,{children:o})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const UD=pn(BD,e=>({button:{marginLeft:10},buttons:{width:"100%",textAlign:"right"}}));var HD=n(13487);const{makeStyles:WD}=Gt({useTheme:Et}),VD=WD()(e=>({bottomButtons:{width:"1020px",textAlign:"right",marginTop:e.spacing(1),"&> button":{marginLeft:"5px",marginRight:"5px"}},adCreationFrame:{width:"1020px",height:"700px",border:"0",paddingLeft:"5px"},previewDialog:{display:"flex"},previewImage:{maxHeight:"70vh",maxWidth:"50vw",objectFit:"contain",marginRight:e.spacing(1)},neutralColor:{color:e.palette.neutral.contrastText,backgroundColor:e.palette.neutral.main,"&:hover":{backgroundColor:e.palette.neutral.dark}},loadingPopup:{padding:"24px",minWidth:"100px",overflow:"hidden",textAlign:"center"}})),GD=Object.freeze({OK:1,Cancel:2,Yes:4,No:8});var qD=null,KD=null;function YD(e){let{currentSubmission:t,updateSubmission:n,showBackgroundDialog:i,bottomButtons:o}=e;const{classes:a}=VD(),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[d,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[m,g]=(0,r.useState)(1),[v,y]=(0,r.useState)(null),[b,x]=(0,r.useState)(!1),[S,w]=(0,r.useState)(Mp.None);(0,r.useEffect)(()=>{if(t.editorInfo){const e=document.getElementById("ad-creation-iframe");e.src=t.editorInfo.editorUrl,_(e)}else fetch("SvrTicket/GetAdCreationSettings?ticketId=".concat(t.ticket.id),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success){t.editorInfo={editorUrl:e.editorUrl,pdfSettings:e.pdfSettings,imageProfileId:e.imageProfileId,workspaceId:e.workspaceId},KD=null,n(t);const r=document.getElementById("ad-creation-iframe");r.src=t.editorInfo.editorUrl,_(r)}else e.error&&(f(En(e.error)),u(!0),g(GD.OK))});return()=>{qD&&(t.editorInfo&&KD&&(t.editorInfo.tempXml=KD,n(t)),qD=null),window.OnEditorEvent=void 0}},[]);const _=function(e){(async()=>{const n=await HD.PublisherInterface.build(e,{events:["DocumentFullyLoaded","UndoStackChanged"]});window.OnEditorEvent=(e,r)=>{switch(e){case"DocumentFullyLoaded":(async()=>{qD||(qD=n,t.editorInfo&&t.editorInfo.tempXml&&await qD.executeFunction("document","OpenDocumentFromXml",t.editorInfo.tempXml,t.editorInfo.workspaceId)),x(!0)})();break;case"UndoStackChanged":(async()=>{KD=await qD.executeFunction("document","GetTempXML")})()}}})()},k=()=>{let e=t.ticket.id;fetch("SvrTicket/UseCreatedAd?ticketId=".concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success)p(!1),r=e.component,t.ticket.components[0]=r,n(t);else if("isDeleted"===e.error)w(Mp.Deleted);else if("isSubmitted"===e.error)w(Mp.Submitted);else{let t=e.error;
2t||(t="unknownError"),p(!1),f(En(t)),u(!0),g(GD.OK)}var r})},M=async()=>{let e=await qD.executeFunction("document","GetTempXML"),n=t.ticket.id;l(!0),fetch("SvrTicket/CreateAdPreview",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({ticketId:n,documentXml:e})}).then(e=>e.json()).then(e=>{e.success?((e,t,n)=>{var r=18,i=!0,o=function(){if(0===--r)return l(!1),f(En("generateTimeout")),u(!0),void g(GD.OK);var a=i?t:n;fetch("SvrTicket/CreatePreviewStatus?ticketId=".concat(e,"&taskId=").concat(a,"&isPdf=").concat(i),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success)!0===e.isCompleted?i?(i=!1,setTimeout(o,500)):(l(!1),p({ticketComponentId:e.ticketComponentId,fileName:e.fileName})):!1===e.isCompleted?setTimeout(o,2e3):(l(!1),f(En(e.error)),u(!0),g(GD.OK));else{let t=e.error;t||(t="unknownError"),l(!1),f(En(t)),u(!0),g(GD.OK)}})};setTimeout(o,1500)})(n,e.pdfTaskId,e.imageTaskId):"isDeleted"===e.error?w(Mp.Deleted):"isSubmitted"===e.error?w(Mp.Submitted):(i(En(e.error)),l(!1))})},C=e=>{let t=null;!v||e!==GD.OK&&e!==GD.Yes||(t=v),u(!1),y(null),t&&t()};let T=(0,Ye.jsx)(At,{});t.editorInfo&&(T="");let A="";return s&&(A=(0,Ye.jsx)(Aa,{open:!0,children:(0,Ye.jsx)(za,{className:a.loadingPopup,
2children:(0,Ye.jsx)(At,{})})})),(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("iframe",{id:"ad-creation-iframe",title:"Ad Editor",className:a.adCreationFrame,style:{display:t.editorInfo?"inherit":"none"}}),T]}),(0,Ye.jsxs)("div",{className:a.bottomButtons,children:[o,(0,Ye.jsxs)(kr,{variant:"contained",color:"secondary",disabled:!b,onClick:()=>(async()=>{var e=await qD.getObject("document.preflightResults");e.numErrors>0?(f(En("documentHasErrors")),u(!0),g(GD.OK)):e.numWarnings>0?(f(En("documentHasWarnings")),u(!0),g(GD.OK|GD.Cancel),y(()=>{M()})):M()})(),children:[" ",En("previewContinue")]})]}),(()=>{let e=[],t=m;return(t&GD.No)===GD.No&&e.push((0,Ye.jsx)(kr,{onClick:()=>C(GD.No),variant:"contained",color:"primary",children:En("no")},"btnNo")),(t&GD.Yes)===GD.Yes&&e.push((0,Ye.jsx)(kr,{onClick:()=>C(GD.Yes),variant:"contained",color:"secondary",autoFocus:!0,children:En("yes")},"btnYes")),(t&GD.Cancel)===GD.Cancel&&e.push((0,Ye.jsx)(kr,{onClick:()=>C(GD.Cancel),variant:"contained",color:"primary",children:En("cancel")},"btnCancel")),0!==e.length&&(t&GD.OK)!==GD.OK||e.push((0,Ye.jsx)(kr,{onClick:()=>C(GD.OK),variant:"contained",color:"secondary",autoFocus:!0,children:En("ok")},"btnOK")),(0,Ye.jsxs)(Aa,{open:c,onClose:C,"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:h})}),(0,Ye.jsx)(Ia,{children:e})]})})(),(()=>{if(d){let e=d.ticketComponentId,t=d.fileName;const n=r.createElement("span",{dangerouslySetInnerHTML:{__html:En("creationDisclaimer")}});return(0,Ye.jsxs)(Aa,{open:!0,maxWidth:"md",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsxs)("div",{className:a.previewDialog,children:[(0,Ye.jsx)("div",{children:(0,Ye.jsx)("img",{className:a.previewImage,src:"./File/StreamFile?fileType=OriginalThumbnail&id=".concat(e),alt:"Ad Preview"})}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{variant:"body2",children:n}),(0,Ye.jsx)("a",{id:"createdDownloadLink",style:{display:"none"},href:"./File/StreamFile?fileType=OriginalPdf&id=".concat(e,"&noinline=true"),download:t,target:"_blank",rel:"noopener noreferrer",children:t})]})]})}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{onClick:()=>p(!1),variant:"contained",color:"primary",children:En("returnToFileCreation")}),(0,Ye.jsx)(kr,{onClick:()=>document.getElementById("createdDownloadLink").click(),variant:"contained",className:a.neutralColor,children:En("downloadACopy")}),(0,Ye.jsx)(kr,{onClick:()=>k(),variant:"contained",color:"secondary",children:En("proceedWithCreatedFile")})]})]})}return""})(),A,(0,Ye.jsx)(Tp,{open:S!==Mp.None,isDeleted:S===Mp.Deleted,currentSubmission:t,updateSubmission:n})]})}const XD=Object.freeze({None:0,Error:1});class ZD extends r.Component{constructor(e){super(e),this.displayName=ZD.name,this.componentDidMount=()=>{const{currentSubmission:e}=this.props,t=e.ticket.components.length;let n=document.getElementById("pageBodyArea").offsetTop+54*t+200;document.documentElement.style.setProperty("--panel-overhead","".concat(n,"px"))},this.updateStatus=e=>{let t=this.props.currentSubmission.ticket.components[this.props.componentIndex].id;fetch("SvrTicket/UpdateComponentStatus?tcid=".concat(t,"&statusId=").concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{if(t.success)this.props.currentSubmission.ticket.components[this.props.componentIndex].status=e,this.props.updateSubmission(this.props.currentSubmission);else if("isDeleted"===t.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===t.error)this.setState({ticketState:Mp.Submitted});else{let e=t.error?t.error:"unknownError";this.setState({showDialog:!0,dialogType:XD.Error,message:En(e)})}})},this.proceedWithFixedFile=e=>{fetch("SvrTicket/ApplyFixedFile?tcid=".concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?this.updateStatus(e.status):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({dialogType:XD.Error,showDialog:!0,message:En(e.error)})})},this.revertToOriginalFile=e=>{fetch("SvrTicket/RejectFixedFile?tcid=".concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.ticketComponent,this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({dialogType:XD.Error,showDialog:!0,message:En(e.error)})})},this.downloadACopyOfFixedFile=e=>{fetch("SvrTicket/VerifyFixedFileExistsToDownload?tcid=".concat(e),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?document.getElementById("createdDownloadLink").click():this.setState({showDialog:!0,dialogType:XD.Error,message:En(e.error)})})},this.closeDialog=()=>{this.setState({showDialog:!1})},this.state={dialogType:XD.None,showDialog:!1,message:"",ticketState:Mp.None}}render(){const{classes:e,componentIndex:t,currentSubmission:n}=this.props;let r=n.ticket.components[t].id,i=n.ticket.components[t].fixedDownloadName;return(0,Ye.jsxs)("div",{className:e.inlineContainer,children:[(0,Ye.jsxs)("div",{className:e.flexContainer,children:[(0,Ye.jsx)("img",{className:e.image,alt:i,src:"./File/StreamFile?fileType=FixedFullJpeg&id=".concat(r)}),(0,Ye.jsxs)("div",{className:e.textArea,children:[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("span",{children:"".concat(En("byChoosingTo")," ")}),(0,Ye.jsx)("span",{className:e.bold,children:En("proceedWithFixedFile")}),(0,Ye.jsx)("span",{children:En("byChoosingToProceed")})]})}),(0,Ye.jsx)("div",{className:e.padding,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("downloadACopy")," ")}),(0,Ye.jsx)("span",{children:En("ifYouWishToReview")})]})}),(0,Ye.jsx)("div",{className:e.padding,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("span",{children:"".concat(En("byChoosingTo")," ")}),(0,Ye.jsx)("span",{className:e.bold,children:En("revertToOriginal")}),(0,Ye.jsx)("span",{children:En("byChoosingToRevert")})]})})]})]}),(0,Ye.jsxs)("div",{className:e.float,children:[(0,Ye.jsx)("a",{id:"createdDownloadLink",style:{display:"none"},href:"./File/StreamFile?fileType=FixedPdf&id=".concat(r,"&noinline=true"),target:"_blank",rel:"noopener noreferrer",download:i,children:i}),(0,Ye.jsx)(kr,{onClick:()=>this.downloadACopyOfFixedFile(r),className:e.neutralColor,variant:"contained",children:En("downloadACopy")}),(0,Ye.jsx)(kr,{onClick:()=>
2this.revertToOriginalFile(r),className:e.spacing,variant:"contained",color:"primary",children:En("revertToOriginal")}),(0,Ye.jsx)(kr,{onClick:()=>this.proceedWithFixedFile(r),className:e.spacing,variant:"contained",color:"secondary",autoFocus:!0,children:En("proceedWithFixedFile")})]}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:this.state.message})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeDialog,variant:"contained",color:"secondary",autoFocus:!0,children:En("ok")},"btnOK")})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const QD=pn(ZD,e=>({inlineContainer:{display:"inline"},blockContainer:{display:"block"},bold:{fontWeight:"bold"},padding:{paddingTop:10},float:{paddingTop:20,float:"right",clear:"both"},spacing:{marginLeft:10},neutralColor:{color:e.palette.neutral.contrastText,backgroundColor:e.palette.neutral.main,"&:hover":{backgroundColor:e.palette.neutral.dark}},flexContainer:{display:"inline-flex",float:"left"},textArea:{marginLeft:20,fontSize:"small"},image:{minHeight:"200px",maxHeight:"calc(100vh - var(--panel-overhead, 325px))",maxWidth:"calc(90vw - 640px)"}}));var JD=n(19778),$D=n(1528),eP=n(63102),tP=n(87884);const nP=Object.freeze({None:0,Error:1,DeleteConfirmation:2,FilePreview:3});class rP extends r.Component{constructor(e){super(e),this.delete=e=>{this.setState({showDialog:!0,dialogType:nP.DeleteConfirmation})},this.view=e=>{this.setState({showDialog:!0,dialogType:nP.FilePreview})},this.closeDialog=e=>{!0===e&&fetch("SvrTicket/RemoveFileFromTicket?tcid=".concat(this.props.component.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket=e.ticket,this.props.currentSubmission.reloadPrecheckPreflightResults=!0,this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogType:nP.Error,message:En(e.error)})}),this.setState({showDialog:!1})},this.state={dialogType:nP.None,showDialog:!1,message:"",ticketState:Mp.None}}render(){const{classes:e,component:t,readonly:n}=this.props;let r="",i="",o="",a=!1;if(r=t.status===SD.PrecheckFailed||t.isMediaVerificationCrashed?(0,Ye.jsx)($D.A,{className:"".concat(e.icon," ").concat(e.errorIcon)}):t.hasPrecheckWarnings?(0,Ye.jsx)(eP.A,{className:"".concat(e.icon," ").concat(e.warningIcon)}):(0,Ye.jsx)(JD.A,{className:"".concat(e.icon," ").concat(e.successIcon)}),this.state.dialogType===nP.DeleteConfirmation)i=En("removeFile"),o=En("removeFileMessage");else if(this.state.dialogType===nP.Error)i=En("error"),o=En(this.state.message);else if(this.state.dialogType===nP.FilePreview){i=En("filePreview");let e=t.isFilePDF?"MediaFull":"MediaFile";o=(0,Ye.jsx)("iframe",{className:this.props.classes.iframe,title:t.id,src:"./File/StreamFile?fileType=".concat(e,"&id=").concat(t.id)}),a=!0}return(0,Ye.jsxs)("div",{className:e.fileDisplay,children:[r,(0,Ye.jsx)(Tn,{variant:"body2",className:e.inlineText,component:"div",children:t.filename}),(0,Ye.jsx)("img",{onClick:this.view,className:e.image,src:"./File/StreamMediaThumbnail?id=".concat(t.id,"&maxWidth=100&maxHeight=100&fileHash=").concat(t.fileHash),alt:t.filename}),n?"":(0,Ye.jsx)(tP.A,{onClick:this.delete,className:e.deleteIcon}),(0,Ye.jsxs)(Aa,{scroll:a?"body":"paper",open:this.state.showDialog,onClose:()=>this.closeDialog(),children:[(0,Ye.jsx)(Kl,{children:i}),(0,Ye.jsx)(za,{className:a?e.dialogContent:"",children:(0,Ye.jsx)(Tn,{variant:"body2",children:o})}),(0,Ye.jsxs)(Ia,{className:a?e.dialogActions:"",children:[this.state.dialogType===nP.DeleteConfirmation?(0,Ye.jsx)(kr,{onClick:()=>this.closeDialog(),color:"primary",variant:"contained",children:En("cancel")}):"",(0,Ye.jsx)(kr,{onClick:()=>this.closeDialog(this.state.dialogType===nP.DeleteConfirmation),autoFocus:!0,color:"secondary",variant:"contained",children:En("ok")})]})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const iP=pn(rP,e=>({deleteIcon:{"&:hover":{cursor:"pointer"},marginLeft:"auto"},image:{"&:hover":{cursor:"pointer"},marginLeft:30},inlineText:{position:"relative",display:"inline-block",overflow:"hidden",marginLeft:5,maxWidth:200,width:200,textOverflow:"ellipsis"},icon:{},fileDisplay:{padding:10,display:"flex",alignItems:"center"},dialogContent:{position:"relative"},dialogActions:{display:"block",justifyContent:"none",textAlign:"center"},iframe:{width:"100%",height:"calc(100vh - 240px)"},warningIcon:{color:"yellow"},errorIcon:{color:"red"},successIcon:{color:"green"}})),oP=Object.freeze({None:0,Error:1});class aP extends r.Component{constructor(e){super(e),this.resetStatusOnComponents=()=>{fetch("SvrTicket/ReturnToPreviousMediaFileReadyStatus?tid=".concat(this.props.currentSubmission.ticket.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket=e.ticket,this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogType:oP.Error,message:En(e.error)})})},this.removeAllFiles=()=>{let e=SD.ReadyToUpload,t=this.props.currentSubmission.ticket.components[0].id;fetch("SvrTicket/ReturnToStatus?tcid=".concat(t,"&statusId=").concat(e,"&autoPositionFile=false"),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success)this.props.currentSubmission.ticket.components=this.props.currentSubmission.ticket.components.slice(1,1),this.props.currentSubmission.ticket.components[0]=e.updatedComponent,this.props.updateSubmission(this.props.currentSubmission);else if("isDeleted"===e.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===e.error)this.setState({ticketState:Mp.Submitted});else{let t=e.error?e.error:"unknownError";this.setState({showDialog:!0,dialogType:oP.Error,message:En(t)})}})},this.closeDialog=()=>{this.setState({showDialog:!1,message:""})},this.state={showDialog:!1,dialogType:oP.None,message:"",ticketState:Mp.None}}render(){const{classes:e}=this.props;return(0,Ye.jsxs)("div",{className:e.container,children:[(0,Ye.jsx)(Tn,{variant:"body2",component:"div",className:e.message,children:En("systemError")}),(0,Ye.jsx)("div",{style:{display:"inline-block"},children:(0,Ye.jsx)(ac,{showButton:!0,ticketId:this.props.currentSubmission.ticket.id,requestType:3})}),(0,Ye.jsx)(kr,{className:e.button,onClick:this.removeAllFiles,variant:"contained",color:"primary",children:En("removeAllFiles")}),(0,Ye.jsx)(kr,{className:e.button,onClick:this.resetStatusOnComponents,variant:"contained",color:"primary",children:En("retry")}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:En("error")}),(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Tn,{variant:"body2",children:this.state.message})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:this.closeDialog,color:"secondary",children:En("ok")})})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const sP=pn(aP,e=>({message:{display:"inline-block",width:350},button:{marginLeft:10},container:{minWidth:750}}));var lP=n(16485);const cP=Object.freeze({None:0,Error:1,Position:2}),uP=100;class dP extends r.Component{constructor(e){super(e),this.updateZoomView=e=>{this.imageInfo||(this.imageInfo={horiEdges:uP*(e.target.clientWidth/e.target.naturalWi
2dth),vertEdges:uP*(e.target.clientHeight/e.target.naturalHeight),targetWidth:e.target.clientWidth,targetHeight:e.target.clientHeight,widthRatio:e.target.naturalWidth/e.target.clientWidth,heightRatio:e.target.naturalHeight/e.target.clientHeight});let t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,r=!1,i=this.state.zoomToollocX,o=this.state.zoomToollocY;t>=this.imageInfo.horiEdges&&t<=e.target.clientWidth-this.imageInfo.horiEdges&&(r=!0,i=-t*this.imageInfo.widthRatio+uP),n>=this.imageInfo.vertEdges&&n<=e.target.clientHeight-this.imageInfo.vertEdges&&(r=!0,o=-n*this.imageInfo.heightRatio+uP),r&&this.setState({zoomToollocX:i,zoomToollocY:o})},this.componentDidMount=()=>{this.adjustSizeofPreviewImage()},this.returnToPreviousStatus=(e,t)=>{let n=this.props.currentSubmission.ticket.components[this.props.componentIndex].id;fetch("SvrTicket/ReturnToStatus?tcid=".concat(n,"&statusId=").concat(e,"&autoPositionFile=").concat(t),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success)this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.updatedComponent,this.props.updateSubmission(this.props.currentSubmission),this.closeDialogIfInsideDialog();else if("isDeleted"===e.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===e.error)this.setState({ticketState:Mp.Submitted});else{let t=e.error?e.error:"unknownError";this.setState({showDialog:!0,dialogType:cP.Error,message:En(t)})}})},this.updateStatus=e=>{let{updateSubmission:t,componentIndex:n}=this.props,r=this.props.currentSubmission.ticket.components[n].id;fetch("SvrTicket/UpdateComponentStatus?tcid=".concat(r,"&statusId=").concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(r=>{if(r.success)this.props.currentSubmission.ticket.components[n].status=e,t(this.props.currentSubmission),this.closeDialogIfInsideDialog();else if("isDeleted"===r.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===r.error)this.setState({ticketState:Mp.Submitted});else{let e=r.error?r.error:"unknownError";this.setState({showDialog:!0,dialogType:cP.Error,message:En(e)})}})},this.selectNewFile=()=>{this.returnToPreviousStatus(SD.ReadyToUpload,!1)},this.reposition=()=>{this.props.currentSubmission.ticket.components[this.props.componentIndex].canAutoPosition?this.setState({showDialog:!0,dialogType:cP.Position}):this.returnToPreviousStatus(SD.ReadyToPosition,!1)},this.returnToPreflight=()=>{this.returnToPreviousStatus(SD.ReadyToPreflight,!1)},this.approvePosition=()=>{this.updateStatus(SD.ReadyToTransmit)},this.closeDialogIfInsideDialog=()=>{this.props.closeDialog&&this.props.closeDialog()},this.closeDialog=e=>{if(1===e)this.returnToPreviousStatus(SD.ReadyToPosition);else if(2===e){let e=this.props.currentSubmission.ticket.components[this.props.componentIndex];fetch("SvrTicket/AutoPosition?tcid=".concat(e.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.ticketComponent,this.props.updateSubmission(this.props.currentSubmission),this.closeDialogIfInsideDialog()):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error&&this.setState({ticketState:Mp.Submitted})})}this.setState({showDialog:!1})},this.adjustSizeofPreviewImage=()=>{let e=this.props.componentIndex,t=document.getElementById("preview-image-".concat(e)),n=this.props,r=this.getOffsetFromTopOfDocument,i=this.getOffsetFromLeftOfDocument;t.onload=function(){let e=n.isExpanded,o=r(t),a=i(t),s=n.currentSubmission.ticket.components.length,l=n.currentSubmission.ticket.components[n.componentIndex],c=e?window.innerHeight-200:window.innerHeight-o-30*s-140,u=e?window.innerWidth-800:window.innerWidth-a-800,d=t.clientWidth/t.clientHeight;if(!e&&d>=1){let e=t.clientHeight*u/t.clientWidth;e<c&&(c=e)}if(l.isSmallerThanIssueTrim&&t.naturalHeight<400&&(c=0),c>400){let n=c/400;t.style.maxHeight=e?window.innerHeight-200+"px":n*t.clientHeight+"px",t.style.height=n*t.clientHeight+"px"}}},this.getOffsetFromTopOfDocument=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},this.getOffsetFromLeftOfDocument=e=>{let t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},this.state={showDialog:!1,dialogType:cP.None,message:"",zoomToollocX:0,zoomToollocY:0,bleedText:"",ticketState:Mp.None},this.imageInfo=void 0}componentDidMount(){fetch("SvrTicket/GetMaxBleedFormatted?tcid=".concat(this.props.currentSubmission.ticket.components[this.props.componentIndex].id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({bleedText:e.bleedText})})}render(){const{classes:e,componentIndex:t,currentSubmission:n,isExpanded:i}=this.props;let o=n.ticket.components[t].id,a=n.ticket.isCreateAnAd?En("createNewFile"):En("selectNewFile"),s=this.state.dialogType!==cP.Position?En("error"):En("confirmAutoPosition"),l=this.state.dialogType!==cP.Position?(0,Ye.jsx)(kr,{onClick:this.closeDialog,autoFocus:!0,variant:"contained",color:"secondary",children:En("ok")}):(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(kr,{onClick:()=>this.closeDialog(1),variant:"contained",color:"primary",children:En("manuallyPosition")}),(0,Ye.jsx)(kr,{style:{marginLeft:10},onClick:()=>this.closeDialog(2),variant:"contained",color:"primary",children:En("autoPosition")})]}),c=this.state.dialogType!==cP.Position?this.state.message:(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:En("thisFileMayBeAutoPositioned")}),u=i?(0,Ye.jsxs)("div",{className:e.expandText,children:["".concat(En("clickThe")," "),(0,Ye.jsx)(lP.A,{style:{transform:"rotate(180deg)",fontSize:"1em",verticalAlign:"sub"}}
2)," ".concat(En("positionApprovalMinimizeText"))]}):(0,Ye.jsxs)("div",{className:e.expandText,children:["".concat(En("clickThe")," "),(0,Ye.jsx)(lP.A,{style:{fontSize:"1em",verticalAlign:"sub"}})," ".concat(En("positionApprovalExpandText"))]});return(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("div",{style:{display:"flex"},children:[(0,Ye.jsxs)("div",{className:e.filePreview,children:[(0,Ye.jsx)(Tn,{variant:"body2",className:e.filePreviewText,component:"div",children:En("verifyAd")}),(0,Ye.jsx)("div",{style:{textAlign:"center"},children:(0,Ye.jsx)("img",{id:"preview-image-".concat(t),style:{maxHeight:400},onMouseMove:this.updateZoomView,className:e.image,src:"./File/StreamFile?fileType=HardCropFullWithTemplate&id=".concat(o,"&lastModified=").concat(n.ticket.components[t].lastChangedTimestamp),alt:""})})]}),(0,Ye.jsxs)("div",{style:{display:"inline-block",verticalAlign:"top",width:425,marginLeft:10},children:[(0,Ye.jsxs)("div",{style:{display:"inline-block",verticalAlign:"top"},children:[(0,Ye.jsx)(Tn,{variant:"body2",className:e.zoomToolText,component:"div",children:En("zoomTool")}),(0,Ye.jsx)("div",{style:{backgroundImage:"url(./File/StreamFile?fileType=HardCropFullWithTemplate&id=".concat(o,"&lastModified=").concat(n.ticket.components[t].lastChangedTimestamp,")"),backgroundPosition:"".concat(this.state.zoomToollocX,"px ").concat(this.state.zoomToollocY,"px"),zIndex:0},className:e.zoomTool})]}),(0,Ye.jsxs)("div",{style:{display:"inline-block",verticalAlign:"top",marginLeft:10},children:[(0,Ye.jsx)(Tn,{variant:"body2",component:"div",className:e.cornerBleedText,children:En("cornerBleedPreviews")}),(0,Ye.jsx)("table",{className:e.cornerBleeds,children:(0,Ye.jsxs)("tbody",{children:[(0,Ye.jsxs)("tr",{children:[(0,Ye.jsx)("td",{children:(0,Ye.jsx)("div",{className:e.bleedImagePreview,style:{backgroundImage:"url(./File/StreamFile?fileType=HardCropFullWithTemplate&id=".concat(o,")")}})}),(0,Ye.jsx)("td",{children:(0,Ye.jsx)("div",{className:e.bleedImagePreview,style:{backgroundImage:"url(./File/StreamFile?fileType=HardCropFullWithTemplate&id=".concat(o,")"),backgroundPosition:"top right"}})})]}),(0,Ye.jsxs)("tr",{children:[(0,Ye.jsx)("td",{children:(0,Ye.jsx)("div",{className:e.bleedImagePreview,style:{backgroundImage:"url(./File/StreamFile?fileType=HardCropFullWithTemplate&id=".concat(o,")"),backgroundPosition:"bottom left"}})}),(0,Ye.jsx)("td",{children:(0,Ye.jsx)("div",{className:e.bleedImagePreview,style:{backgroundImage:"url(./File/StreamFile?fileType=HardCropFullWithTemplate&id=".concat(o,")"),backgroundPosition:"bottom right"}})})]})]})})]}),(0,Ye.jsx)("div",{style:{display:"block"},children:(0,Ye.jsxs)("div",{className:e.infoArea,children:[(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:En("pleaseConfirm")}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",component:"ul",children:[(0,Ye.jsx)("li",{children:En("safetyTrimAndBleed")}),(0,Ye.jsx)("li",{children:En("contentIsComplete")}
2),(0,Ye.jsx)("li",{children:En("importantOversized")})]})}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:jn("redLines",this.state.bleedText)}),(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:En("blueLines")}),(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:En("greenLines")})]}),(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:u}),r.createElement("div",{dangerouslySetInnerHTML:{__html:En("positionApprovalCustomDisclaimer")}})]})})]})]}),(0,Ye.jsxs)("div",{className:e.buttons,children:[(0,Ye.jsx)(kr,{onClick:this.selectNewFile,variant:"contained",color:"primary",children:a}),(0,Ye.jsx)(kr,{onClick:this.reposition,variant:"contained",color:"primary",children:En("reposition")}),(0,Ye.jsx)(kr,{onClick:this.returnToPreflight,variant:"contained",color:"primary",children:En("returnToPreflight")}),(0,Ye.jsx)(kr,{onClick:this.approvePosition,autoFocus:!0,variant:"contained",color:"secondary",children:En("approve")})]}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{children:s}),(0,Ye.jsx)(za,{children:c}),(0,Ye.jsx)(Ia,{children:l})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const pP=pn(dP,{filePreview:{display:"inline-block"},toolsAndInfo:{width:220,marginLeft:30},zoomTool:{width:200,height:200},zoomToolText:{width:200,textAlign:"center",fontWeight:"bold"},bleedImagePreview:{width:80,height:80},buttons:{textAlign:"right",paddingTop:20,"&> button":{marginLeft:5,marginRight:5}},infoArea:{paddingTop:10,paddingBottom:10},cornerBleeds:{borderSpacing:10},cornerBleedText:{textAlign:"center",fontWeight:"bold"},filePreviewText:{textAlign:"center",fontWeight:"bold"},expandText:{marginTop:10,width:200}}),hP=Object.freeze({None:0,Error:1});class fP extends r.Component{constructor(e){super(e),this.resetStatusOnComponents=()=>{let e=this.props.currentSubmission.ticket.components[this.props.componentIndex].id;fetch("SvrTicket/ReturnToPreviousPrintFileReadyStatus?tcid=".concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.ticketComponent,this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogType:hP.Error,message:En(e.error)})})},this.removeAllFiles=()=>{let e=SD.ReadyToUpload,t=this.props.currentSubmission.ticket.components[0].id;fetch("SvrTicket/ReturnToStatus?tcid=".concat(t,"&statusId=").concat(e,"&autoPositionFile=false"),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success)this.props.currentSubmission.ticket.components=this.props.currentSubmission.ticket.components.slice(1,1),this.props.currentSubmission.ticket.components[0]=e.updatedComponent,this.props.updateSubmission(this.props.currentSubmission);else if("isDeleted"===e.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===e.error)this.setState({ticketState:Mp.Submitted});else{let t=e.error?e.error:"unknownError";this.setState({showDialog:!0,dialogType:hP.Error,message:En(t)})}})},this.closeDialog=()=>{this.setState({showDialog:!1,message:""})},this.state={showDialog:!1,dialogType:hP.None,message:"",ticketState:Mp.None}}render(){const{classes:e,status:t}=this.props;let n=En("systemError");t===SD.SoftCropCrashed||t===SD.HardCropCrashed||t===SD.SoftCropFailed||t===SD.HardCropFailed?n=En("positioningFailedContactSupport"):t===SD.PreflightCrashed?n=En("preflightFailedMessage"):t!==SD.FixFileCrashed&&t!==SD.FixFileFailed||(n=En("fixMyFileFailedMessage"));let r=this.props.currentSubmission.ticket.isCreateAnAd?En("createNewFile"):En("selectNewFile");return(0,Ye.jsxs)("div",{className:e.container,children:[(0,Ye.jsx)(Tn,{variant:"body2",component:"div",className:e.message,children:n}),(0,Ye.jsx)("div",{style:{display:"inline-block"},children:(0,Ye.jsx)(ac,{showButton:!0,ticketId:this.props.currentSubmission.ticket.id,requestType:3})}),(0,Ye.jsx)(kr,{className:e.button,onClick:this.removeAllFiles,variant:"contained",color:"primary",children:r}),(0,Ye.jsx)(kr,{className:e.button,onClick:this.resetStatusOnComponents,variant:"contained",color:"primary",children:En("retry")}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:En("error")}),(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Tn,{variant:"body2",children:this.state.message})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:this.closeDialog,color:"secondary",children:En("ok")})})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const mP=pn(fP,e=>({message:{display:"inline-block",width:350},button:{marginLeft:10},container:{minWidth:750}})),gP=200,vP=1/256,yP=25.4,bP="Millimeters",xP=Object.freeze({None:0,Error:1});class SP extends r.Component{constructor(e){super(e),this.initPositioner=e=>{let t=this.props.isExpanded,n=this.props.componentIndex,r=document.getElementById("mainArea-".concat(n)),i=document.getElementById("workArea-".concat(n)),o=this.getOffsetfromTopOfDocument(i),a=this.getOffsetfromLeftOfDocument(i),s=this.props.currentSubmission.ticket.components.length,l=t?window.innerHeight-150:window.innerHeight-o-(30*s+100),c=t?window.innerWidth-800:window.innerWidth-a-525,u=1,d=Math.round(Math.max(e.trimW
2idth,e.imageWidth/e.imageDpi))+1,p=Math.round(Math.max(e.trimHeight,e.imageHeight/e.imageDpi))+1;if(!t&&d/p>=1){let e=p*c/d;e<l&&(l=e)}l>r.clientHeight&&(u=l/r.clientHeight);let h=Math.round(Math.min(r.clientWidth*u/d,r.clientHeight*u/p));d*=h,p*=h;let f=Math.round(e.imageWidth*h/e.imageDpi),m=Math.round(e.imageHeight*h/e.imageDpi),g=e.imageDpi,v=g/h,y=d*v,b=p*v;this.setState({data:e,workAreaWidth:d,workAreaHeight:p,workAreaDpi:h,imageWidth:f,imageHeight:m,zoomAreaWidth:y,zoomAreaHeight:b,zoomRatio:v,zoomAreaDpi:g,isLoading:!1})},this.getOffsetfromTopOfDocument=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},this.getOffsetfromLeftOfDocument=e=>{let t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},this.centerImage=()=>{let e=document.getElementById("workArea-".concat(this.props.componentIndex)),t=document.getElementById("image-".concat(this.props.componentIndex)),n=e.clientWidth/2,r=e.clientHeight/2,i=t.clientWidth/2,o=t.clientHeight/2,a=(e.clientWidth-Math.round(this.state.workAreaDpi*this.state.data.trimWidth))/2,s=(e.clientHeight-Math.round(this.state.workAreaDpi*this.state.data.trimHeight))/2;null===this.state.data.trimBoxOffset.x||null===this.state.data.trimBoxOffset.y?this.moveImage(t,n-i,r-o):this.moveImage(t,this.state.data.trimBoxOffset.x*this.state.workAreaDpi+a,this.state.data.trimBoxOffset.y*this.state.workAreaDpi+s)},this.onMouseDown=e=>{if(!this.state.dragging){let t=document.getElementById("image-".concat(this.props.componentIndex));this.setState({dragging:!0,mouseDownX:e.clientX,mouseDownY:e.clientY,baselineX:this.getValueOfPixels(t.style.left),baselineY:this.getValueOfPixels(t.style.top)})}},this.onMouseMove=e=>{let t=this.props.currentSubmission.ticket.components[this.props.componentIndex];if(void 0!==t.followCursor?t.followCursor:this.props.currentSubmission.followCursor){let t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,r=document.getElementById("cursor-box-".concat(this.props.componentIndex)),i=t-parseInt(r.style.width,10)/2,o=t+parseInt(r.style.width,10)/2,a=n-parseInt(r.style.height,10)/2,s=n+parseInt(r.style.height,10)/2;i>0&&o<e.target.clientWidth&&a>0&&s<e.target.clientHeight&&(r.style.left="".concat(i,"px"),r.style.top="".concat(a,"px"),this.props.currentSubmission.ticket.components[this.props.componentIndex].cursorBoxPosition={left:i,top:a,dpi:this.state.workAreaDpi}),this.updateZoomLocation()}if(this.state.dragging){let t=document.getElementById("image-".concat(this.props.componentIndex)),n=this.state.baselineX+e.clientX-this.state.mouseDownX,r=this.state.baselineY+e.clientY-this.state.mouseDownY;this.moveImage(t,n,r)}},this.moveImage=(e,t,n)=>{e.style.left="".concat(t,"px"),e.style.top="".concat(n,"px");let r=document.getElementById("top-lines-".concat(this.props.componentIndex)),i=r.clientWidth,o=r.clientHeight,a=(i-Math.round(this.state.workAreaDpi*this.state.data.trimWidth))/2,s=(o-Math.round(this.state.workAreaDpi*this.state.data.trimHeight))/2;this.updateOffset(t-a,n-s);let l=document.getElementById("zoom-image-".concat(this.props.componentIndex));l.style.left=t*this.state.zoomRatio+"px",l.style.top=n*this.state.zoomRatio+"px"},this.updateOffset=(e,t)=>{let n=this.props.currentSubmission;this.state.workAreaDpi>0&&(e=(e/this.state.workAreaDpi).toFixed(3),t=(t/this.state.workAreaDpi).toFixed(3)),n.ticket.components[this.props.componentIndex].startingOffset={x:e,y:t},this.props.updateSubmission(n)},this.getValueOfPixels=e=>+e.substring(0,e.indexOf("p")),this.doubleClick=e=>{let t=this.props.currentSubmission.ticket.components[this.props.componentIndex];(void 0!==t.followCursor?t.followCursor:this.props.currentSubmission.followCursor)&&this.updateCheckbox("followCursor",!1);let n=e.nativeEvent.offsetX,r=e.nativeEvent.offsetY,i=document.getElementById("cursor-box-".concat(this.props.componentIndex)),o=n-parseInt(i.style.width,10)/2,a=n+parseInt(i.style.width,10)/2,s=r-parseInt(i.style.height,10)/2,l=r+parseInt(i.style.height,10)/2;o>0&&a<e.target.clientWidth&&s>0&&l<e.target.clientHeight&&(i.style.left="".concat(o,"px"),i.style.top="".concat(s,"px"),this.props.currentSubmission.ticket.components[this.props.componentIndex].cursorBoxPosition={left:o,top:s,dpi:this.state.workAreaDpi}),this.updateZoomLocation()},this.componentDidUpdate=()=>{let e=document.getElementById("top-lines-".concat(this.props.componentIndex)),t=document.getElementById("grid-lines-".concat(this.props.componentIndex)),n=document.getElementById("zoom-top-lines-".concat(this.props.componentIndex)),r=document.getElementById("zoom-grid-lines-".concat(this.props.componentIndex));
2if(this.state.invalidated&&(this.drawPositioner(e,t,this.state.workAreaDpi,!1),this.drawPositioner(n,r,this.state.zoomAreaDpi,!0),this.state.firstDraw||this.setState({invalidated:!1})),this.state.data&&this.state.firstDraw){let t=this.props.currentSubmission.ticket.components[this.props.componentIndex];if(void 0!==t.startingOffset){let n=document.getElementById("image-".concat(this.props.componentIndex)),r=e.clientWidth,i=e.clientHeight,o=(r-Math.round(this.state.workAreaDpi*this.state.data.trimWidth))/2,a=(i-Math.round(this.state.workAreaDpi*this.state.data.trimHeight))/2,s=o+t.startingOffset.x*this.state.workAreaDpi,l=a+t.startingOffset.y*this.state.workAreaDpi;this.moveImage(n,s,l)}else this.centerImage();if(void 0!==t.cursorBoxPosition){let e=t.cursorBoxPosition.dpi,n=t.cursorBoxPosition.top,r=t.cursorBoxPosition.left,i=this.state.workAreaDpi*n/e,o=this.state.workAreaDpi*r/e,a=document.getElementById("cursor-box-".concat(this.props.componentIndex));a.style.left="".concat(o,"px"),a.style.top="".concat(i,"px"),this.props.currentSubmission.ticket.components[this.props.componentIndex].cursorBoxPosition={left:o,top:i,dpi:this.state.workAreaDpi},this.updateZoomLocation()}this.setState({firstDraw:!1,invalidated:!1})}},this.drawPositioner=(e,t,n,r)=>{let i=this.props.currentSubmission.ticket.components[this.props.componentIndex],o=void 0!==i.showRuler?i.showRuler:this.props.currentSubmission.showRuler,a=void 0!==i.showCrosshairs?i.showCrosshairs:this.props.currentSubmission.showCrosshairs;if(this.state.data){let s=e.getContext("2d"),l=t.getContext("2d");l.clearRect(0,0,t.clientWidth,t.clientHeight),s.clearRect(0,0,e.clientWidth,e.clientHeight),o&&this.drawGridRuler(l,t.clientWidth,t.clientHeight,n,r),this.drawGhostAreasAndAdSizeOutlines(s,e.clientWidth,e.clientHeight,n),a&&this.drawCrossHairs(s,e.clientWidth,e.clientHeight),(void 0===i.showBleedAndSafetyLines||i.showBleedAndSafetyLines)&&(this.drawFoldLines(s,e.clientWidth,e.clientHeight,n),this.drawBleed(s,e.clientWidth,e.clientHeight,n),this.drawSafeties(s,e.clientWidth,e.clientHeight,n)),this.state.data.allowGutter&&(void 0===i.showGutter||i.showGutter)&&this.drawGutters(s,e.clientWidth,e.clientHeight,n),void 0!==this.state.data.overlays&&this.state.data.overlays.length>0&&this.drawOverlays(s,e.clientWidth,e.clientHeight,n)}},this.drawSafeties=(e,t,n,r)=>{if(this.state.data&&this.state.data.trimPanelWidths.length>0&&this.state.data.panels.length===this.state.data.trimPanelWidths.length){let i=(t-Math.round(r*this.state.data.trimWidth))/2,o=(n-Math.round(r*this.state.data.trimHeight))/2;e.strokeStyle="#0F0";for(let t=0;t<this.state.data.trimPanelWidths.length;t++){let a=(null===this.state.data.panels[t].safetyTop?this.state.data.safetyTop:this.state.data.panels[t].safetyTop)*r,s=(null===this.state.data.panels[t].safetyLeft?this.state.data.safetyLeft:this.state.data.panels[t].safetyLeft)*r,l=(null===this.state.data.panels[t].safetyRight?this.state.data.safetyRight:this.state.data.panels[t].safetyRight)*r,c=(null===this.state.data.panels[t].safetyBottom?this.state.data.safetyBottom:this.state.data.panels[t].safetyBottom)*r;e.strokeRect(i+s,o+a,this.state.data.trimPanelWidths[t]*r-s-l,n-2*o-a-c),i+=this.state.data.trimPanelWidths[t]*r}}},this.drawGutters=(e,t,n,r)=>{if(this.state.data&&this.state.data.trimPanelWidths.length>1&&this.state.data.panels.length===this.state.data.trimPanelWidths.length){let i=(t-Math.round(r*this.state.data.trimWidth))/2,o=(n-Math.round(r*this.state.data.trimHeight))/2;e.fillStyle="rgb(255,0,0,0.33)";for(let t=0;t<this.state.data.trimPanelWidths.length-1;t++){let a=(null===this.state.data.panels[t+1].safetyLeft?this.state.data.safetyLeft:this.state.data.panels[t+1].safetyLeft)*r,s=(null===this.state.data.panels[t].safetyRight?this.state.data.safetyRight:this.state.data.panels[t].safetyRight)*r;i+=this.state.data.trimPanelWidths[t]*r,e.fillRect(i-s,o,a+s,n-2*o)}}},this.drawOverlays=(e,t,n,r)=>{let i=this.props.currentSubmission.ticket.components[this.props.componentIndex],o=(t-Math.round(r*this.state.data.trimWidth))/2,a=(n-Math.round(r*this.state.data.trimHeight))/2;for(let s=0;s<this.state.data.overlays.length;
2s++){let t=this.state.data.overlays[s],n="showOverlay"+t.id;if(void 0===i[n]||i[n]){let n=o+t.boxLeft*r,i=a+t.boxTop*r,s=t.boxWidth*r,l=t.boxHeight*r;if(t.color){let n=(t.color>>24&255)/255,r=t.color>>16&255,i=t.color>>8&255,o=255&t.color;e.fillStyle="rgb(".concat(r,",").concat(i,",").concat(o,",").concat(n,")")}else e.fillStyle="rgb(255,0,0,0.33)";e.fillRect(n,i,s,l)}}},this.drawBleed=(e,t,n,r)=>{let i=0,o=0,a=0,s=0,l=0,c=0;this.state.data&&this.state.data.bleed>0&&(i=(t-Math.round(r*this.state.data.trimWidth))/2,o=(n-Math.round(r*this.state.data.trimHeight))/2,a=i-this.state.data.bleedLeft*r,l=o-this.state.data.bleedTop*r,s=t-2*i+(i-a)+this.state.data.bleedRight*r,c=n-2*o+(o-l)+this.state.data.bleedBottom*r),e.strokeStyle="#F00",e.strokeRect(a,l,s,c)},this.drawFoldLines=(e,t,n,r)=>{if(this.state.data&&this.state.data.trimPanelWidths.length>0){let i=(t-Math.round(r*this.state.data.trimWidth))/2;e.strokeStyle="#00F";for(let t=0;t<this.state.data.trimPanelWidths.length-1;t++)i+=this.state.data.trimPanelWidths[t]*r,e.beginPath(),e.moveTo(i,0),e.lineTo(i,n),e.stroke()}},this.drawGhostAreasAndAdSizeOutlines=(e,t,n,r)=>{let i=this.props.currentSubmission.ticket.components[this.props.componentIndex],o=void 0!==i.showAdSizeOutline?i.showAdSizeOutline:this.props.currentSubmission.showAdSizeOutline,a=0,s=0;this.state.data&&(a=(t-Math.round(r*this.state.data.trimWidth))/2,s=(n-Math.round(r*this.state.data.trimHeight))/2),e.fillStyle="#FFF",e.globalAlpha=.4,e.fillRect(0,0,t,s),e.fillRect(0,n-s,t,s),e.fillRect(0,s,a,n-2*s),e.fillRect(t-a,s,a,n-2*s),e.globalAlpha=1,o&&(e.strokeStyle="#00F",e.beginPath(),e.moveTo(0,s),e.lineTo(t,s),e.stroke(),e.beginPath(),e.moveTo(0,n-s),e.lineTo(t,n-s),e.stroke(),e.beginPath(),e.moveTo(a,0),e.lineTo(a,n),e.stroke(),e.beginPath(),e.moveTo(t-a,0),e.lineTo(t-a,n),e.stroke())},this.drawCrossHairs=(e,t,n)=>{e.strokeStyle="#000",e.beginPath(),e.moveTo(t/2,0),e.lineTo(t/2,n),e.stroke(),e.beginPath(),e.moveTo(0,n/2),e.lineTo(t,n/2),e.stroke()},this.drawGridRuler=(e,t,n,r,i)=>{this.drawVerticleLines(e,t,n,r,i),this.drawHorizontalLines(e,t,n,r,i)},this.drawVerticleLines=(e,t,n,r,i)=>{let o=this.props.currentSubmission.ticket.components[this.props.componentIndex],a=void 0!==o.showSubInchMarks?o.showSubInchMarks:this.props.currentSubmission.showSubInchMarks;if(this.state.data&&this.state.workAreaDpi>0){let o=0,s=(t-Math.round(r*this.state.data.trimWidth))/2;for(e.fillStyle="#FFF",e.setLineDash([3,2]);s<t;){if(e.strokeStyle="#FFF",e.beginPath(),e.moveTo(s,0),e.fillText(o,s+.1*r,.3*r),e.lineTo(s,n),e.stroke(),i&&a){let t=s;e.strokeStyle="#BBB";let i=this.state.data.unitPreference!==bP?.125*r:10*r/yP*.125;for(let r=0;r<7;r++)t+=i,e.beginPath(),e.moveTo(t,0),e.lineTo(t,n),e.stroke()}this.state.data.unitPreference===bP?s+=10*r/yP:s+=r,o++}}},this.drawHorizontalLines=(e,t,n,r,i)=>{let o=this.props.currentSubmission.ticket.components[this.props.componentIndex],a=void 0!==o.showSubInchMarks?o.showSubInchMarks:this.props.currentSubmission.showSubInchMarks;if(this.state.data&&this.state.workAreaDpi>0){let o=0,s=(n-Math.round(r*this.state.data.trimHeight))/2;for(e.fillStyle="#FFF",e.setLineDash([3,2]);s<n;){if(e.beginPath(),e.strokeStyle="#FFF",e.moveTo(0,s),e.fillText(o,.1*r,s+.3*r),e.lineTo(t,s),e.stroke(),i&&a){let n=s;e.strokeStyle="#BBB";let i=this.state.data.unitPreference!==bP?.125*r:10*r/yP*.125;for(let r=0;r<7;r++)n+=i,e.beginPath(),e.moveTo(0,n),e.lineTo(t,n),e.stroke()}this.state.data.unitPreference===bP?s+=10*r/yP:s+=r,o++}}},this.onKeyDown=e=>{e.preventDefault();let t=document.getElementById("image-".concat(this.props.componentIndex));switch(e.keyCode){case 37:return this.moveImage(t,this.getValueOfPixels(t.style.left)-this.state.workAreaDpi*vP,this.getValueOfPixels(t.style.top)),!1;case 39:return this.moveImage(t,this.getValueOfPixels(t.style.left)+this.state.workAreaDpi*vP,this.getValueOfPixels(t.style.top)),!1;case 38:return this.moveImage(t,this.getValueOfPixels(t.style.left),this.getValueOfPixels(t.style.top)-this.state.workAreaDpi*vP),!1;case 40:return this.moveImage(t,this.getValueOfPixels(t.style.left),this.getValueOfPixels(t.style.top)+this.state.workAreaDpi*vP),!1;case 49:case 97:return this.moveCursorAreaAlongTrim("left","bottom"),!1;case 50:case 98:return this.moveCursorAreaAlongTrim("center","bottom"),!1;case 51:case 99:return this.moveCursorAreaAlongTrim("right","bottom"),!1;case 52:case 100:return this.moveCursorAreaAlongTrim("left","center"),!1;case 53:case 101:return this.moveCursorAreaAlongTrim("center","center"),!1;case 54:case 102:return this.moveCursorAreaAlongTrim("right","center"),!1;case 55:case 103:return this.moveCursorAreaAlongTrim("left","top"),!1;case 56:case 104:return this.moveCursorAreaAlongTrim("center","top"),!1;case 57:case 105:return this.moveCursorAreaAlongTrim("right","top"),!1}},this.updateZoomLocation=()=>{let e=document.getElementById("workArea-".concat(this.props.componentIndex)),t=document.getElementById("zoom-workArea-".concat(this.props.componentIndex)),n=document.getElementById("cursor-box-".concat(this.props.componentIndex)),r=this.getValueOfPixels(n.style.left)-this.getValueOfPixels(e.style.left),i=this.getValueOfPixels(n.style.top)-this.getValueOfPixels(e.style.top);r*=this.state.zoomRatio,i*=this.state.zoomRatio,t.style.left=-r+"px",t.style.top=-i+"px"},this.moveCursorAreaAlongTrim=(e,t)=>{let n=document.getElementById("top-lines-".concat(this.props.componentIndex)),r=document.getElementById("cursor-box-".concat(this.props.componentIndex)),i=n.clientWidth,o=n.clientHeight,a=(i-Math.round(this.state.workAreaDpi*this.state.data.trimWidth))/2,s=(o-Math.round(this.state.workAreaDpi*this.state.data.trimHeight))/2,l=s-r.clientHeight/2,c=a-r.clientWidth/2,u=i-a-r.clientWidth/2,d=o-s-r.clientHeight/2;switch(e){case"left":a=c;break;
2case"center":a=n.clientWidth/2-r.clientWidth/2;break;case"right":a=u}switch(t){case"top":s=l;break;case"center":s=n.clientHeight/2-r.clientHeight/2;break;case"bottom":s=d}r.style.left="".concat(a,"px"),r.style.top="".concat(s,"px"),this.props.currentSubmission.ticket.components[this.props.componentIndex].cursorBoxPosition={left:a,top:s,dpi:this.state.workAreaDpi},this.updateZoomLocation()},this.formatOffset=e=>void 0===e||null===e.x||null===e.y?"0, 0":this.state.data&&this.state.data.unitPreference===bP?"".concat((e.x*yP).toFixed(3)," mm, ").concat((e.y*yP).toFixed(3)," mm"):"".concat((+e.x).toFixed(3),'", ').concat((+e.y).toFixed(3),'"'),this.selectNewFile=()=>{this.returnToPreviousStatus(SD.ReadyToUpload,!1)},this.proceedToPreflight=()=>{let e=this.props.currentSubmission.ticket.components[this.props.componentIndex];fetch("SvrTicket/SubmitPositioner?tcid=".concat(e.id,"&offsetX=").concat(e.startingOffset.x,"&offsetY=").concat(e.startingOffset.y),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.ticketComponent,this.props.updateSubmission(this.props.currentSubmission),this.closeDialogIfInsideDialog()):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogType:xP.Error,message:En(e.error)})})},this.returnToPreviousStatus=(e,t)=>{let n=this.props.currentSubmission.ticket.components[this.props.componentIndex].id;fetch("SvrTicket/ReturnToStatus?tcid=".concat(n,"&statusId=").concat(e,"&autoPositionFile=").concat(t),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success)this.props.currentSubmission.ticket.components[this.props.componentIndex]=e.updatedComponent,this.props.updateSubmission(this.props.currentSubmission),this.closeDialogIfInsideDialog();else if("isDeleted"===e.error)this.setState({ticketState:Mp.Deleted});else if("isSubmitted"===e.error)this.setState({ticketState:Mp.Submitted});else{let t=e.error?e.error:"unknownError";this.setState({showDialog:!0,dialogType:xP.Error,message:En(t)})}})},this.closeDialog=()=>{this.setState({showDialog:!1})},this.updateCheckbox=(e,t)=>{this.props.currentSubmission.ticket.components[this.props.componentIndex][e]=t,this.props.updateSubmission(this.props.currentSubmission),this.setState({invalidated:!0})},this.closeDialogIfInsideDialog=()=>{this.props.closeDialog&&this.props.closeDialog()},this.state={data:void 0,dragging:!1,mouseDownX:0,mouseDownY:0,baselineX:0,baselineY:0,showDialog:!1,dialogType:xP.None,message:"",firstDraw:!0,invalidated:!0,isLoading:!0,workAreaWidth:0,workAreaHeight:0,workAreaDpi:0,imageWidth:0,imageHeight:0,zoomAreaWidth:0,zoomAreaHeight:0,zoomAreaDpi:0,zoomRatio:0,ticketState:Mp.None}}componentDidMount(){fetch("SvrTicket/Positioner?tcid=".concat(this.props.currentSubmission.ticket.components[this.props.componentIndex].id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?this.initPositioner(e.settingsAndData):this.setState({showDialog:!0,dialogType:xP.Error,message:En(e.error)})})}render(){const{classes:e,currentSubmission:t,componentIndex:n,isExpanded:i}=this.props;let o=this.props.currentSubmission.ticket.components[n],a=void 0!==o.followCursor?o.followCursor:t.followCursor,s=void 0!==o.showRuler?o.showRuler:t.showRuler,l=void 0!==o.showSubInchMarks?o.showSubInchMarks:t.showSubInchMarks,c=void 0!==o.transparencyMode?o.transparencyMode:t.transparencyMode,u=void 0!==o.showCrosshairs?o.showCrosshairs:t.showCrosshairs,d=void 0!==o.showAdSizeOutline?o.showAdSizeOutline:t.showAdSizeOutline,p=c?.6:1,h=void 0===o.showBleedAndSafetyLines||o.showBleedAndSafetyLines,f=void 0===o.showGutter||o.showGutter,m=this.state.workAreaWidth,g=this.state.workAreaHeight,v=this.state.imageWidth,y=this.state.imageHeight,b=void 0!==o.startingOffset?o.startingOffset:this.state.data?this.state.data.startingOffset:{x:0,y:0},x=this.state.data?this.state.data.unitPreference===bP?"".concat(this.state.data.bleed*yP," mm"):"".concat(this.state.data.bleed,'"'):0,S=this.state.data?this.state.data.unitPreference===bP?En("showMillimeterMarks"):En("showInchMarks"):"",w=this.state.data?gP*this.state.workAreaDpi/this.state.data.imageDpi:0,_=this.state.zoomAreaWidth,k=this.state.zoomAreaHeight,M=this.state.data?this.state.data.imageWidth:0,C=this.state.data?this.state.data.imageHeight:0,T=this.props.currentSubmission.ticket.isCreateAnAd?En("createNewFile"):En("selectNewFile"),A=i?(0,Ye.jsxs)("div",{className:e.expandText,children:["".concat(En("clickThe")," "),(0,Ye.jsx)(lP.A,{style:{transform:"rotate(180deg)",fontSize:"1em",verticalAlign:"sub"}})," ".concat(En("positionerMinimizeText"))]}):(0,Ye.jsxs)("div",{className:e.expandText,children:["".concat(En("clickThe")," "),(0,Ye.jsx)(lP.A,{style:{fontSize:"1em",verticalAlign:"sub"}})," ".concat(En("positionerExpandText"))]});var E=(0,Ye.jsx)(r.Fragment,{});this.state.data&&this.state.data.allowGutter&&this.state.data.trimPanelWidths.length>1&&(E=(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("showGutter")}),control:(0,Ye.jsx)(Di,{className:e.checkbox,checked:f,onChange:(e,t)=>
2{this.updateCheckbox("showGutter",t)},color:"primary"})})}));var j=(0,Ye.jsx)(r.Fragment,{});return this.state.data&&this.state.data.overlays&&this.state.data.overlays.length>0&&(j=this.state.data.overlays.map(t=>{let n="showOverlay"+t.id,r=void 0===o[n]||o[n];return(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("show")," ",t.name]}),control:(0,Ye.jsx)(Di,{className:e.checkbox,checked:r,onChange:(e,t)=>{this.updateCheckbox(n,t)},color:"primary"})})},n)})),(0,Ye.jsxs)("div",{style:{position:"relative"},className:e.positioner,children:[this.state.isLoading?(0,Ye.jsx)("div",{className:e.loadingArea,children:(0,Ye.jsx)("div",{className:e.loadingSpinny,children:(0,Ye.jsx)(At,{size:80})})}):"",(0,Ye.jsxs)("div",{id:"mainArea-".concat(n),className:e.mainArea,children:[(0,Ye.jsx)("div",{id:"workArea-container-".concat(n),children:(0,Ye.jsxs)("div",{id:"workArea-".concat(n),style:{width:m,height:g},onDoubleClick:this.doubleClick,className:e.workArea,onMouseMove:this.onMouseMove,onMouseDown:this.onMouseDown,onMouseUp:()=>{this.state.dragging&&this.setState({dragging:!1})},children:[(0,Ye.jsx)("canvas",{className:e.gridLines,id:"grid-lines-".concat(n),style:{position:"absolute"},width:m,height:g}),(0,Ye.jsx)("img",{id:"image-".concat(n),style:{opacity:p,width:v,height:y},className:e.image,src:"./File/StreamFile?fileType=OriginalFull&id=".concat(t.ticket.components[n].id,"&lastModified=").concat(t.ticket.components[n].lastChangedTimestamp),alt:""}),(0,Ye.jsx)("canvas",{className:e.topLines,id:"top-lines-".concat(n),width:m,height:g}),(0,Ye.jsx)("div",{id:"cursor-box-".concat(n),className:e.cursorBox,style:{width:w,height:w}}),(0,Ye.jsx)("div",{id:"cursor-mask-".concat(n),className:e.cursorMask,onKeyDown:this.onKeyDown,tabIndex:"0"})]})}),(0,Ye.jsxs)("div",{className:e.toolArea,children:[(0,Ye.jsx)(Tn,{component:"div",className:e.bold,children:En("zoomTool")}),(0,Ye.jsx)(Tn,{component:"div",className:e.infoText,children:En("toPositionYourImage")}),(0,Ye.jsx)("div",{id:"zoom-area-".concat(n),className:e.zoomTool,children:(0,Ye.jsxs)("div",{id:"zoom-workArea-".concat(n),style:{width:_,height:k},className:e.workArea,children:[(0,Ye.jsx)("canvas",{className:e.gridLines,id:"zoom-grid-lines-".concat(n),style:{position:"absolute"},width:_,height:k}),(0,Ye.jsx)("img",{id:"zoom-image-".concat(n),style:{opacity:p,width:M,height:C},className:e.image,src:"./File/StreamFile?fileType=OriginalFull&id=".concat(t.ticket.components[n].id,"&lastModified=").concat(t.ticket.components[n].lastChangedTimestamp),alt:""}),(0,Ye.jsx)("canvas",{className:e.topLines,id:"zoom-top-lines-".concat(n),width:_,height:k})]})}),(0,Ye.jsx)(Tn,{variant:"body2",component:"div",className:e.bold,children:En("colorLegend")}),(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:(0,Ye.jsxs)("ul",{className:e.list,children:[(0,Ye.jsx)("li",{className:e.redHighlight,children:jn("redLines",x)}),(0,Ye.jsx)("li",{className:e.blueHighlight,children:En("blueLines")}),(0,Ye.jsx)("li",{className:e.greenHighlight,children:En("greenLines")})]})}),(0,Ye.jsx)(Tn,{variant:"body2",component:"div",children:A})]}),(0,Ye.jsxs)("div",{className:e.controlArea,children:[(0,Ye.jsxs)(Tn,{variant:"body2",className:e.bold,component:"div",children:[En("options"),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("followCursor")}),control:(0,Ye.jsx)(Di,{className:e.checkbox,color:"primary",checked:a,onChange:(e,t)=>
2{this.updateCheckbox("followCursor",t)}})})}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.doubleClickInfo,component:"div",children:En("doubleClickAnchorToDisableCursor")}),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("showRuler")}),control:(0,Ye.jsx)(Di,{className:e.checkbox,checked:s,onChange:(e,t)=>{this.updateCheckbox("showRuler",t)},color:"primary"})})}),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{className:e.indent,disabled:!s,label:(0,Ye.jsx)(Tn,{variant:"body2",children:S}),control:(0,Ye.jsx)(Di,{className:e.checkbox,checked:l,onChange:(e,t)=>{this.updateCheckbox("showSubInchMarks",t)},color:"primary"})})}),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("transparencyMode")}),control:(0,Ye.jsx)(Di,{className:e.checkbox,checked:c,onChange:(e,t)=>{this.updateCheckbox("transparencyMode",t)},color:"primary"})})}),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("showCrosshairs")}),control:(0,Ye.jsx)(Di,{className:e.checkbox,checked:u,onChange:(e,t)=>
2{this.updateCheckbox("showCrosshairs",t)},color:"primary"})})}),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("showAdSize")}),control:(0,Ye.jsx)(Di,{className:e.checkbox,checked:d,onChange:(e,t)=>{this.updateCheckbox("showAdSizeOutline",t)},color:"primary"})})}),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("showBleedAndSafety")}),control:(0,Ye.jsx)(Di,{className:e.checkbox,checked:h,onChange:(e,t)=>{this.updateCheckbox("showBleedAndSafetyLines",t)},color:"primary"})})}),E,j]}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.offsetHeader,component:"div",children:En("offset")}),(0,Ye.jsx)(Tn,{variant:"body2",className:e.offset,component:"div",children:this.formatOffset(b)}),(0,Ye.jsx)("div",{className:e.centerImageButton,children:(0,Ye.jsx)(kr,{onClick:this.centerImage,className:e.neutralColor,variant:"contained",children:En("centerImage")})}),r.createElement("div",{dangerouslySetInnerHTML:{__html:En("positionerCustomDisclaimer")}})]})]}),(0,Ye.jsxs)("div",{className:e.buttons,children:[(0,Ye.jsx)(kr,{onClick:this.selectNewFile,color:"primary",variant:"contained",children:T}),(0,Ye.jsx)(kr,{onClick:this.proceedToPreflight,color:"secondary",autoFocus:!0,variant:"contained",children:En("proceedToPreflight")})]}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{children:En("error")}),(0,Ye.jsx)(za,{children:this.state.message}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeDialog,autoFocus:!0,variant:"contained",color:"secondary",children:En("ok")})})]}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const wP=pn(SP,e=>({positioner:{minWidth:800},mainArea:{minWidth:800,display:"flex"},buttons:{textAlign:"right","&> button":{marginLeft:10}},cursorBox:{position:"absolute",backgroundColor:"white",border:"1px solid black",opacity:.4},cursorMask:{position:"absolute",width:"100%",height:"100%",opacity:0,cursor:"crosshair"},workArea:{display:"inline-block",position:"relative",backgroundColor:"gray",overflow:"hidden"},toolArea:{display:"inline-block",width:gP,marginLeft:15,marginBottom:30},zoomTool:{width:gP,height:gP,border:"solid black 1px",overflow:"hidden",position:"relative"},infoText:{width:gP,fontSize:13,lineHeight:"inherit",marginBottom:5},bold:{fontWeight:"bold",fontSize:13},redHighlight:{color:"red",fontSize:13},blueHighlight:{color:"blue",fontSize:13},greenHighlight:{color:"green",fontSize:13},neutralColor:{color:e.palette.neutral.contrastText,backgroundColor:e.palette.neutral.main,"&:hover":{backgroundColor:e.palette.neutral.dark}},centerImageButton:{textAlign:"center"},checkbox:{padding:0,marginLeft:20},doubleClickInfo:{fontStyle:"italic",fontSize:13},list:{paddingLeft:20,marginTop:0,marginBottom:0},indent:{paddingLeft:20,marginRight:0},image:{position:"absolute"},offsetHeader:{paddingTop:10,fontWeight:"bold"},offset:{paddingBottom:10},controlArea:{display:"inline-block",width:225,verticalAlign:"top",marginLeft:10},topLines:{position:"absolute"},loadingArea:{position:"absolute",width:"100%",height:"100%",zIndex:1,backgroundColor:"lightgray",opacity:.7},loadingSpinny:{position:"absolute",left:0,right:0,top:0,bottom:0,margin:"auto",width:80,height:80},expandText:{marginTop:10,width:200}})),_P=Object.freeze({None:0,DeleteConfirmation:1,Error:2,BuyProofs:3,ProofPaymentResult:4,Component:5,DeliveryConfirmation:6,AgreementConfirmation:7});var kP=null;class MP extends r.Component{constructor(e){var t;super(e),t=this,this.displayName=MP.name,this.handleChange=e=>{this.props.currentSubmission.expandedPanel=e,this.props.currentSubmission.flashPanel=-1,this.props.updateSubmission(this.props.currentSubmission)},this.collapseExpandArrow=(e,t)=>t?(0,Ye.jsx)(iD.A,{style:{verticalAlign:"middle"}}):(0,Ye.jsx)(rD.A,{style:{verticalAlign:"middle"}}),this.toggleDetailsPane=()=>{let{currentSubmission:e}=this.props;e.detailsCollapsed=!e.detailsCollapsed,this.props.updateSubmission(e)},this.setAgreementConfirmed=()=>{fetch("SvrTicket/SetAgreementConfirmed?tid="+this.props.currentSubmission.ticket.id,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success){let{currentSubmission:e}=this.props;e.isCyberSourceEnabled&&e.ticket.proofIncluded===$N.Request&&this.allComponentsComplete(e.ticket.components)?this.showCyberSourceProofPayment(!1):(this.setState({showDialog:!1,dialogType:_P.None}),this.submitTicket(!1))}else"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,message:En(e.error),dialogType:_P.Error})})}
2,this.showDialog=(e,t,n)=>{let r="",i="",o="",a=(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:()=>this.closeDialog(this.state.dialogType===_P.DeleteConfirmation),color:"secondary",children:En("ok")});if(this.state.dialogType===_P.DeleteConfirmation?(r=En("deleteTicketDialogHeader"),i=En("deleteTicketDialogText"),o=(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>this.closeDialog(!1),color:"primary",children:En("cancel")})):this.state.dialogType===_P.Error?(r=En("error"),i=this.state.message):this.state.dialogType===_P.ProofPaymentResult?(r=En("proofPaymentResult"),i=this.state.message):this.state.dialogType===_P.DeliveryConfirmation?(r=En("readyForSubmission"),i=En("deliveryConfirmationDialogMessage"),o=(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>this.closeDialog(!1),color:"primary",children:En("continueEditing")}),a=this.props.currentSubmission.isCyberSourceEnabled&&this.props.currentSubmission.ticket.proofIncluded===$N.Request?(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:()=>this.showCyberSourceProofPayment(!0),color:"secondary",children:jn("buyProofsAndDeliver",En("submitTicket"))}):(0,Ye.jsx)(kr,{variant:"contained",autoFocus:!0,onClick:()=>this.closeDeliveryConfirmationDialog(this.state.dialogType===_P.DeliveryConfirmation),color:"secondary",children:En("submitTicket")})):this.state.dialogType===_P.AgreementConfirmation&&(r=En("agreementConfirmationHeader"),i=(0,Ye.jsx)("div",{dangerouslySetInnerHTML:{__html:En("agreementConfirmationMessage")}}),o=(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>this.setState({dialogType:_P.None,showDialog:!1,hasConfirmationAgreementApproved:!1}),color:"primary",children:En("cancel")}),a=(0,Ye.jsx)(kr,{variant:"contained",disabled:!this.state.hasConfirmationAgreementApproved,onClick:this.setAgreementConfirmed,color:"secondary",children:En("agreementConfirmationButtonText")})),t){let r=this.props.currentSubmission.ticket.components[n];return(0,Ye.jsx)(Aa,{maxWidth:!1,open:this.state.showDialog,classes:{paperScrollPaper:e.dialogComponent},children:(0,Ye.jsx)(za,{style:{paddingTop:2,paddingLeft:2,paddingRight:2,paddingBottom:2},children:(0,Ye.jsxs)(GI,{expanded:!0,children:[(0,Ye.jsxs)(JI,{className:e.panelHeader,children:[(0,Ye.jsxs)(Tn,{variant:"body2",children:[this.collapseExpandArrow(e,this.props.currentSubmission.expandedPanel===n),(0,Ye.jsx)("span",{style:{verticalAlign:"middle"},children:this.getPanelHeaderText(r,n)})]}),(0,Ye.jsx)(lP.A,{onClick:()=>this.expandComponentIntoDialog(void 0,!0),style:{transform:"rotate(180deg)",width:50,paddingLeft:7,paddingRight:7}})]}),(0,Ye.jsx)(nD,{className:e.expansionPanelDetails,children:t})]})})})}return this.state.dialogType===_P.BuyProofs?(0,Ye.jsx)(bN,{cancelProofRequest:this.cancelProofRequest,open:this.state.showDialog,close:this.closeDialog,proofPaymentData:this.state.proofPaymentData}):(0,Ye.jsxs)(Aa,{maxWidth:this.state.dialogType===_P.AgreementConfirmation?"md":"sm",open:this.state.showDialog,onClose:()=>this.closeDialog(!1),children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:r}),(0,Ye.jsxs)(za,{className:this.state.dialogType===_P.AgreementConfirmation?e.agreementDialogContent:void 0,children:[(0,Ye.jsx)(Tn,{variant:"body2",children:i}),this.state.dialogType===_P.AgreementConfirmation?(0,Ye.jsx)(fi,{style:{float:"right"},control:(0,Ye.jsx)(Di,{onChange:e=>this.setState({hasConfirmationAgreementApproved:e.target.checked})}),label:En("agreementConfirmationCheckboxLabel")}):""]}),(0,Ye.jsxs)(Ia,{className:this.state.dialogType===_P.AgreementConfirmation?e.agreementDialogFooter:void 0,children:[o,a]})]})},this.cancelProofRequest=()=>{let{updateSubmission:e,currentSubmission:t}=this.props;fetch("SvrTicket/ClearProofRequest?tid=".concat(t.ticket.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(n=>{n.success?(t.ticket=null,e(t)):"isDeleted"===n.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===n.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,dialogType:_P.Error,message:En(n.error)})}),this.closeDialog()},this.closeDialog=e=>{this.setState({showDialog:!1}),!e&&this.state.dialogType===_P.ProofPaymentResult&&this.props.currentSubmission.ticket.proofPaid&&this.props.currentSubmission.ticket.proofIncluded===$N.Request&&this.allComponentsComplete(this.props.currentSubmission.ticket.components)&&this.submitTicket(!1),e&&this.deleteTicket()},this.closeGatePreview=()=>{this.setState({showingGatefold:!1})},this.showDeliveryConfirmationDialog=()=>{this.props.currentSubmission.wasDeliveryConfirmationDialogShown=!0,this.props.updateSubmission(this.props.currentSubmission),this.setState({showDialog:!0,dialogType:_P.DeliveryConfirmation})},this.closeDeliveryConfirmationDialog=e=>{this.setState({showDialog:!1}),e&&this.submitTicket(!0)},this.closeTicketCheck=()=>{const{currentSubmission:e}=this.props;return e.refDocs&&e.refDocs.find(e=>e.status===DD.Uploading)?(this.setState({message:En("uploadInProgress"),showDialog:!0,dialogType:_P.Error}),!1):!(e.fileUploads&&e.fileUploads.length>0)||(this.setState({message:En("uploadInProgress"),showDialog:!0,dialogType:_P.Error}),!1)},this.showDeleteTicketDialog=()=>{this.closeTicketCheck()&&this.setState({showDialog:!0,dialogType:_P.DeleteConfirmation})},this.showAgreementConfirmationDialog=()=>{this.setState({showDialog:!0,dialogType:_P.AgreementConfirmation})},this.deleteTicket=()=>{fetch("SvrTicket/DeleteTicket?tid="+this.props.currentSubmission.ticket.id,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(this.props.currentSubmission.ticket=null,this.props.currentSubmission.editorInfo=null,this.props.currentSubmission.redirectLocation="/ticket",this.props.updateSubmission(this.props.currentSubmission)):"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showDialog:!0,message:En(e.error),dialogType:_P.Error})})},this.saveTicketAndRedirect=()=>{this.closeTicketCheck()&&fetch("SvrTicket/UpdateTicket",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify(this.props.currentSubmission.ticket)}).then(e=>e.json()).then(e=>{if(e.success){let{currentSubmission:e}=this.props;e.ticket=null,e.editorInfo=null,e.redirectLocation="/ticket",this.props.updateSubmission(e)}else"isDeleted"===e.error?this.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?this.setState({ticketState:Mp.Submitted}):this.setState({showErrorDialog:!0,message:En(e.error)})})},this.renderPanelContent=(e,t,n,r)=>{let i=e.ticket,o=i.components[n];if(i.isPrint){if(o.status!==SD.PreflightPassed||o.hasPreflightWarnings||o.hasPreflightErrors||(o.status=SD.ReadyToApprovePosition,t(e)),o.status<SD.ReadyToPrecheck||o.status===SD.PublisherSupplied)return(0,Ye.jsx)(kD,{showBackgroun
2dDialog:this.props.showBackgroundDialog,updateSubmission:t,currentSubmission:e,componentIndex:n,reusableComponents:this.props.currentSubmission.reusableComponents});if(o.status===SD.PrecheckPassed||o.status===SD.PrecheckFailed||o.status===SD.ReadyToApprovePrecheck)return(0,Ye.jsx)(ID,{updateSubmission:t,currentSubmission:e,componentIndex:n,component:this.props.currentSubmission.ticket.components[n]});if(o.status<=SD.Prechecking||o.status===SD.ReadyToPreCrop||o.status===SD.Precropping||o.status===SD.ReadyToCopyFiles||o.status===SD.CopyingExtraFiles)return this.checkTicketComponentStatus(o.id),(0,Ye.jsx)(xD,{interval:3e3,onUpdate:()=>this.checkTicketComponentStatus(o.id),variant:"indeterminate"});if(o.canAutoPosition&&(o.status===SD.ReadyToPosition||o.status===SD.ReadyToSoftCrop||o.status===SD.SoftCropping||o.status===SD.ReadyToHardCrop||o.status===SD.HardCropping||o.status===SD.GeneratingTemplates))return this.checkPreflightStatus(o.id),(0,Ye.jsx)(xD,{interval:3e3,onUpdate:()=>{this.checkPreflightStatus(o.id)},variant:"indeterminate"});if(o.status===SD.ReadyToPosition)return(0,Ye.jsx)(wP,{isExpanded:void 0!==r,closeDialog:r,currentSubmission:e,componentIndex:n,updateSubmission:t});if(o.status===SD.ReadyToPreflight||o.status===SD.Preflighting||o.status===SD.ReadyToSoftCrop||o.status===SD.SoftCropping||o.status===SD.ReadyToHardCrop||o.status===SD.HardCropping||o.status===SD.GeneratingTemplates)return this.checkPreflightStatus(o.id),(0,Ye.jsx)(xD,{interval:3e3,onUpdate:()=>this.checkPreflightStatus(o.id),variant:"indeterminate"});if(o.status===SD.PreflightFailed||o.status===SD.PreflightPassed&&(o.hasPreflightWarnings||o.hasPreflightErrors))return(0,Ye.jsx)(ID,{isPreflight:!0,updateSubmission:t,currentSubmission:e,componentIndex:n,component:this.props.currentSubmission.ticket.components[n]});if(o.status===SD.ReadyToFixFile||o.status===SD.FixingFile)return(0,Ye.jsx)(xD,{interval:3e3,onUpdate:()=>this.checkFixMyFileStatus(o.id),variant:"indeterminate"});if(o.status===SD.ReadyToGenerateTemplate)return(0,Ye.jsx)(xD,{interval:3e3,onUpdate:()=>this.checkFixMyFileStatus(o.id),variant:"indeterminate"});if(o.status===SD.ReadyToReviewFix||o.status===SD.FixFilePassed)return(0,Ye.jsx)(QD,{updateSubmission:t,currentSubmission:e,componentIndex:n});if(o.status===SD.ReadyToApprovePosition)return(0,Ye.jsx)(pP,{isExpanded:void 0!==r,closeDialog:r,updateSubmission:t,currentSubmission:e,componentIndex:n});if(o.status===SD.ReadyToTransmit)return(0,Ye.jsx)(UD,{updateSubmission:t,currentSubmission:e,componentIndex:n});if(o.status===SD.PrecheckCrashed||o.status===SD.PreCropCrashed||o.status===SD.GenerateTemplatesFailed||o.status===SD.FailedToCopyFiles||o.status===SD.PreCropFailed||o.status===SD.HardCropFailed||o.status===SD.HardCropCrashed||o.status===SD.PreflightCrashed||o.status===SD.FixFileFailed||o.status===SD.FixFileCrashed||o.status===SD.SoftCropFailed||o.status===SD.SoftCropCrashed)return(0,Ye.jsx)(mP,{currentSubmission:e,updateSubmission:t,componentIndex:n,status:o.status})}else{if(this.anyComponentHasStatus(i,SD.ReadyToPrecheck,!0))return(0,Ye.jsx)(ED,{showBackgroundDialog:this.props.showBackgroundDialog,updateSubmission:t,currentSubmission:e,componentIndex:n,reusableComponents:this.props.currentSubmission.reusableComponents});if(this.anyComponentHasStatus(i,SD.PrecheckCrashed,!1)||this.anyComponentHasStatus(i,SD.PreCropCrashed))return(0,Ye.jsx)(sP,{currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission});if(this.anyComponentHasStatus(i,SD.ReadyToPrecheck)||this.anyComponentHasStatus(i,SD.Prechecking)||this.anyComponentHasStatus(i,SD.ReadyToPreCrop)||this.anyComponentHasStatus(i,SD.Precropping))return(0,Ye.jsx)(xD,{interval:3e3,onUpdate:()=>this.checkAllTicketComponentStatuses(i),variant:"indeterminate"});if(this.anyComponentHasStatus(i,SD.PrecheckPassed)||this.anyComponentHasStatus(i,SD.PrecheckFailed)||this.anyComponentHasStatus(i,SD.ReadyToApprovePrecheck))return(0,Ye.jsx)(ID,{updateSubmission:t,currentSubmission:e,componentIndex:n,component:this.props.currentSubmission.ticket.components[n]});if(this.allComponentsHaveStatus(i,SD.ReadyToTransmit))return(0,Ye.jsx)(ID,{updateSubmission:t,currentSubmission:e,componentIndex:n,component:this.props.currentSubmission.ticket.components[n]})}return""},this.checkFixMyFileStatus=e=>{fetch("SvrTicket/GetTicketComponentStatus?tcid=".concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{t.success&&t.status!==SD.ReadyToFixFile&&t.status!==SD.FixingFile&&t.status!==SD.FixFilePassed&&t.status!==SD.ReadyToGenerateTemplate&&t.status!==SD.GeneratingTemplates&&fetch("SvrTicket/GetTicketComponent?tcid="+e,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{if(t.success){let n=this.props.currentSubmission.ticket.components;n[this.findIndexOfComponentId(n,+e)]=t.ticketComponent,this.props.updateSubmission(this.props.currentSubmission)}})})},this.checkPreflightStatus=e=>{fetch("SvrTicket/GetTicketComponentStatus?tcid="+e,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{!t.success||t.status!==SD.PreflightPassed&&t.status!==SD.PreflightFailed&&t.status!==SD.PreflightCrashed&&t.status!==SD.HardCropCrashed&&t.status!==SD.HardCropFailed&&t.status!==SD.SoftCropFailed&&t.status!==SD.SoftCropCrashed||fetch("SvrTicket/GetTicketComponent?tcid="+e,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{if(t.success){let n=this.props.currentSubmission.ticket.components;n[this.findIndexOfComponentId(n,+e)]=t.ticketComponent,this.props.updateSubmission(this.props.currentSubmission)}})})},this.checkTicketComponentStatus=e=>{fetch("SvrTicket/GetTicketComponentStatus?tcid="+e,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{t.success&&(t.status>=SD.ReadyToApprovePrecheck&&t.status!==SD.ReadyToCopyFiles&&t.status!==SD.CopyingExtraFiles||t.status===SD.PrecheckFailed||t.Status===SD.PreCropFailed||t.Status===SD.FailedToCopyFiles)&&fetch("SvrTicket/GetTicketComponent?tcid="+e,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{if(t.success){let n=this.props.currentSubmission.ticket.components;n[this.findIndexOfComponentId(n,+e)]=t.ticketComponent,this.props.updateSubmission(this.props.currentSubmission)}})})},this.checkAllTicketComponentStatuses=e=>{fetch("SvrTicket/GetAllTicketComponentStatuses?ticketId=".concat(e.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{if(t.success){let n=!0;
2t.componentStatuses.forEach(e=>{e>SD.Precropping||e===SD.PrecheckCrashed||e===SD.PrecheckFailed||e===SD.PreCropCrashed||e===SD.PreCropFailed?n&=!0:n=!1}),n&&fetch("SvrTicket/GetTicket?ticketId=".concat(e.id),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success&&(this.props.currentSubmission.ticket=e.ticket,this.props.updateSubmission(this.props.currentSubmission))})}})},this.findIndexOfComponentId=(e,t)=>{let n;for(n=0;n<e.length;n++)if(e[n].id===t)return n;return-1},this.truncateFileName=e=>e.length<=20?e:"".concat(e.substring(0,20),"..."),this.submitTicket=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t.props.currentSubmission.showAgreementConfirmation&&e)return void t.showAgreementConfirmationDialog();let n=t.props.currentSubmission.ticket.id;t.setState({isSubmitting:!0}),fetch("SvrTicket/SubmitTicket?ticketId=".concat(n),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?(t.props.currentSubmission.ticket=null,t.props.currentSubmission.editorInfo=null,t.props.updateSubmission(t.props.currentSubmission)):"isDeleted"===e.error?t.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error?t.setState({ticketState:Mp.Submitted}):t.setState({showDialog:!0,dialogType:_P.Error,message:En(e.error),isSubmitting:!1})})},this.showCyberSourceProofPayment=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t.props.currentSubmission.showAgreementConfirmation&&e)return void t.showAgreementConfirmationDialog();let n=t.props.currentSubmission.ticket.id;fetch("SvrTicket/ProofRequestData?tid=".concat(n),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?t.setState({showDialog:!0,dialogType:_P.BuyProofs,proofPaymentData:{ticketId:n,shippingConfigs:e.shippingConfigs,email:e.email,phoneNumber:e.phoneNumber,proofPrice:e.proofPrice}}):"isDeleted"===e.error?t.setState({ticketState:Mp.Deleted}):"isSubmitted"===e.error&&t.setState({ticketState:Mp.Submitted})})},this.getPanelHeaderText=(e,t)=>{let{currentSubmission:n}=this.props,r="",i=n.ticket;if(n.ticket.isPrint){let i=void 0!==e.isDisplayingFixMyFile&&e.isDisplayingFixMyFile;e.panelPositions&&1!==e.panelPositions.length?2===e.panelPositions.length?r=e.panelPositions[0].name+"/"+e.panelPositions[e.panelPositions.length-1].name:e.panelPositions.length>2&&(r=e.panelPositions[0].name+"-"+e.panelPositions[e.panelPositions.length-1].name):r=e.panelPositions&&null!==e.panelPositions[0].name?e.panelPositions[0].name:"".concat(En("page")," ").concat(t+1);const o=null===e.filename?null:this.truncateFileName(e.filename);if(e.status<=SD.UploadFailed){void 0===n.fileUploads&&(n.fileUploads=[]);let e=n.fileUploads.find(e=>e.componentIndex===t);if(void 0!==e){let t=this.truncateFileName(e.filename);return"".concat(r," - ").concat(t," - ").concat(En("fileUploading"),"...")}return"".concat(r," - ").concat(En("fileSelection"))}if(e.status===SD.PrecheckPassed||e.status===SD.PrecheckFailed||e.status===SD.ReadyToApprovePrecheck)return"".concat(r," - ").concat(o," - ").concat(En("precheckResults"));if(e.status<=SD.Prechecking||e.status===SD.ReadyToPreCrop||e.status===SD.Precropping||e.status===SD.ReadyToCopyFiles||e.status===SD.CopyingExtraFiles)return"".concat(r," - ").concat(o," - ").concat(En("prechecking"),"...");if(e.status===SD.ReadyToPosition)return"".concat(r," - ").concat(o," - ").concat(En("positionSelection"));if(e.status===SD.PublisherSupplied)return"".concat(r," - ").concat(En("publisherSupplied")," - ").concat(En("readyForSubmission"));if(e.canAutoPosition&&(e.status===e.ReadyToPosition||e.status===SD.ReadyToSoftCrop||e.status===SD.SoftCropping||e.status===SD.ReadyToHardCrop||e.status===SD.HardCropping||e.status===SD.GeneratingTemplates))return"".concat(r," - ").concat(o," - ").concat(En("autoPositioning"),"...");if(e.status===SD.ReadyToSoftCrop||e.status===SD.SoftCropping||e.status===SD.ReadyToHardCrop||e.status===SD.HardCropping||e.status===SD.GeneratingTemplates)return"".concat(r," - ").concat(o," - ").concat(En("positioning"),"...");if(e.status===SD.ReadyToPreflight||e.status===SD.Preflighting)return"".concat(r," - ").concat(o," - ").concat(En("preflighting"));if(!(e.status!==SD.PreflightPassed&&e.status!==SD.PreflightFailed||i))return"".concat(r," - ").concat(o," - ").concat(En("preflightingResults"));if((e.status===SD.PreflightPassed||e.status===SD.PreflightFailed)&&i)return"".concat(r," - ").concat(o," - ").concat(En("fixMyFile"));if(e.status===SD.ReadyToFixFile||e.status===SD.FixingFile)return"".concat(r," - ").concat(o," - ").concat(En("adShuttleIsAttempting"));if(e.status===SD.ReadyToGenerateTemplate)return"".concat(r," - ").concat(o," - ").concat(En("generatingTemplate"));if(e.status===SD.ReadyToReviewFix||e.status===SD.FixFilePassed)return"".concat(r," - ").concat(o," - ").concat(En("fixedFilePreview"));if(e.status===SD.ReadyToApprovePosition)return"".concat(r," - ").concat(o," - ").concat(En("approvePosition"));if(e.status===SD.ReadyToTransmit)return"".concat(r," - ").concat(o," - ").concat(En("readyForSubmission"));if(e.status===SD.PrecheckCrashed||e.status===SD.PreCropCrashed||e.status===SD.PreflightCrashed||e.status===SD.FailedToCopyFiles||e.status===SD.PreCropFailed||e.status===SD.GenerateTemplatesFailed)return"".concat(r," - ").concat(o," - ").concat(En("verificationFailed"));if(e.status===SD.SoftCropCrashed||e.status===SD.HardCropCrashed||e.status===SD.SoftCropFailed||e.status===SD.HardCropFailed)return"".concat(r," - ").concat(o," - ").concat(En("positioningFailed"));if(e.status===SD.PreflightCrashed)return"".concat(r," - ").concat(o," - ").concat(En("preflightFailed"));if(e.status===SD.FixFileCrashed||e.status===SD.FixFileFailed)return"".concat(r," - ").concat(o," - ").concat(En("fixMyFileFailed"))}else{if(this.anyComponentHasStatus(i,SD.ReadyToUpload))return En("fileSelection");if(this.anyComponentHasStatus(i,SD.PrecheckCrashed,!1)||this.anyComponentHasStatus(i,SD.PreCropCrashed))return En("verificationFailed");if(this.anyComponentHasStatus(i,SD.ReadyToPrecheck)||this.anyComponentHasStatus(i,SD.Prechecking)||this.anyComponentHasStatus(i,SD.ReadyToPreCrop)||this.anyComponentHasStatus(i,SD.Precropping))return"".concat(En("prechecking"),"...");if(this.anyComponentHasStatus(i,SD.PrecheckPassed)||this.anyComponentHasStatus(i,SD.PrecheckFailed)||this.anyComponentHasStatus(i,SD.ReadyToApprovePrecheck)){let e=this.truncateFileName(this.getCommaDelimitedFilenamesOfFailedMediaFiles());return"".concat(e," - ").concat(En("precheckResults"))}if(this.allComponentsHaveStatus(i,SD.ReadyToTransmit))return En("precheckResults")}return""},this.getCommaDelimitedFilenamesOfFailedMediaFiles=()=>{let e="",t=this.props.currentSubmission.ticket.components;for(let n=0;n<t.length;n++)t[n].status!==SD.PrecheckFailed&&t[n].status!==SD.PreCropFailed||(e.length>0&&(e+=", "),e+=t[n].filename);return e},this.anyComponentHasStatus=(e,t,n)=>{for(let r=0;r<e.components.length;r++)if(void 0===n&&(n=!1),n){if(e.components[r].status<t)return!0}else if(e.components[r].status===t)return!0;return!1},this.allComponentsHaveStatus=(e,t)=>{for(let n=0;n<e.components.length;n++)if(e.components[n].status!==t)return!1;return!0},this.allComponentsComplete=e=>{for(let t=0;t<e.length;t++)if(e[t].status!==SD.PublisherSupplied&&e[t].status!==SD.ReadyToTransmit)return this.props.currentSubmission.wasDeliveryConfirmationDialogShown&&null===kP&&(kP=setTimeout(()=>{this.props.currentSubmission.wasDeliveryConfirmationDialogShown=!1,this.props.updateSubmission(this.props.currentSubmission),kP=null},500)),!1;return!this.props.currentSubmission.showDeliveryConfirmationDialog||this.props.currentSubmission.wasDeliveryConfirmationDialogShown||this.state.showDialog||null===kP&&(kP=setTimeout(()=>{this.showDeliveryConfirmationDialog(),kP=null},500)),!0},this.returnToTrackDeliveries=()=>{let{currentSubmission:e,updateSubmission:t}=this.props;e.ticket=null,e.editorInfo=null,e.redirectLocation="/TrackDeliveries",t(e)},this.expandComponentIntoDialog=(e,t)=>
2{t?this.setState({dialogComponent:void 0,showDialog:!1,dialogType:_P.None}):this.setState({dialogComponent:e,showDialog:!0,dialogType:_P.Component})};let n=_P.None,r=!1,i="",o=Yl(e.location.search,"decision").toLowerCase(),a=Yl(e.location.search,"reason");if(""!==o){let e=!1;"decline"===o&&(o="reject",e=!0),o=En("cyberSource_".concat(o,"Message")),a.length>0&&(a="".concat(En("reason"),": ").concat(En("cyberSource_".concat(a)))),r=!0,n=_P.ProofPaymentResult,i=(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("p",{children:o}),(0,Ye.jsx)("p",{children:a}),e?(0,Ye.jsx)("p",{children:En("cyberSource_rejectMessageDetails")}):""]})}this.state={message:i,showDialog:r,dialogType:n,isSubmitting:!1,dialogComponent:void 0,ticketState:Mp.None,showingGatefold:!1,hasConfirmationAgreementApproved:!1},window.scroll(0,0)}render(){const{classes:e,currentSubmission:t,updateSubmission:n,showBackgroundDialog:i}=this.props;let o="",a="",s=-1;if(t.showEditDetails)o=(0,Ye.jsx)(CI,{currentSubmission:t,updateSubmission:n});else{let l="",c=(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(kr,{onClick:this.showDeleteTicketDialog,variant:"contained",color:"primary",children:En("deleteTicket")}),t.ticket.isCreateAnAd&&t.ticket.components&&t.ticket.components[0].status===SD.ReadyToUpload?"":(0,Ye.jsx)(kr,{onClick:this.saveTicketAndRedirect,className:e.button,variant:"contained",color:"primary",children:En("saveAndContinue")})]});if(t.detailsCollapsed)l=(0,Ye.jsx)("div",{className:e.detailsPanelCollapsed,children:(0,Ye.jsxs)(Tn,{variant:"body2",className:e.detailsPanelHeader,onClick:()=>this.toggleDetailsPane(),children:[(0,Ye.jsx)(Wd.A,{}),(0,Ye.jsx)("span",{children:En("ticketInfo")})]})});else{let o="";null!==t.ticket.size&&null!==t.ticket.size.impositionId&&(o=(0,Ye.jsx)(dd,{placement:"top-start",title:(0,Ye.jsx)(r.Fragment,{children:(0,Ye.jsx)(Tn,{color:"inherit",children:En("gatePreview")})}),children:(0,Ye.jsx)(vI.A,{className:e.gateButton,onClick:e=>{e.stopPropagation(),this.setState({showingGatefold:!0})}})})),l=(0,Ye.jsxs)("div",{className:e.detailsPanelExpanded,children:[(0,Ye.jsxs)("div",{className:e.detailsPanelHeader,onClick:()=>this.toggleDetailsPane(),children:[(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)(Hd.A,{style:{verticalAlign:"middle"}}),(0,Ye.jsx)("span",{style:{verticalAlign:"middle"},children:En("ticketInfo")})]}),o]}),(0,Ye.jsx)("div",{className:e.detailsPanelBody,children:(0,Ye.jsx)(zD,{currentSubmission:t,updateSubmission:n,showBackgroundDialog:i})})]})}let u=[];t.ticket.isPrint?u=t.ticket.components.map((r,i)=>{let o=this.props.currentSubmission.flashPanel===i?"".concat(e.panelHeader," ").concat(e.flashPanelHeader):e.panelHeader,l=(0,Ye.jsxs)(GI,{id:"expansionPanel-".concat(i),expanded:t.expandedPanel===i,onChange:()=>this.handleChange(i),children:[(0,Ye.jsxs)(JI,{id:"summary-".concat(r.id),className:o,children:[(0,Ye.jsxs)(Tn,{variant:"body2",children:[this.collapseExpandArrow(e,t.expandedPanel===i),(0,Ye.jsx)("span",{style:{verticalAlign:"middle"},children:this.getPanelHeaderText(r,i)})]}),r.status===SD.ReadyToPosition||r.status===SD.ReadyToApprovePosition?(0,Ye.jsx)(lP.A,{style:{width:50,paddingLeft:7,paddingRight:7},onClick:()=>this.expandComponentIntoDialog(r)}):""]}),(0,Ye.jsx)(nD,{className:e.expansionPanelDetails,children:this.renderPanelContent(t,n,i,this.state.dialogComponent&&r.id===this.state.dialogComponent.id?()=>this.expandComponentIntoDialog(void 0,!0):void 0)})]},"tcid_".concat(r.id));return this.state.dialogComponent&&r.id===this.state.dialogComponent.id&&(a=this.renderPanelContent(t,n,i,this.state.dialogComponent&&r.id===this.state.dialogComponent.id?()=>this.expandComponentIntoDialog(void 0,!0):void 0),s=i,l=""),l}):Number(t.ticket.fileTypeId)!==uI.DETAILS_ONLY&&(u=(0,Ye.jsxs)(GI,{expanded:!0,children:[(0,Ye.jsx)(JI,{className:e.panelHeader,children:(0,Ye.jsx)(Tn,{variant:"body2",children:(0,Ye.jsx)("span",{style:{verticalAlign:"middle"},children:this.getPanelHeaderText(void 0,0)})})}),(0,Ye.jsx)(nD,{children:this.renderPanelContent(t,n,0,!1)})]},"panelHeader"));let d="";if(!t.ticket.isPrint&&t.ticket.components.length>0&&Number(t.ticket.fileTypeId)!==uI.DETAILS_ONLY&&(d=(0,Ye.jsxs)("div",{style:{marginLeft:50,minWidth:440},children:[(0,Ye.jsx)("div",{style:{paddingBottom:30},children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("span",{style:{marginLeft:50},children:En("filenames")}),(0,Ye.jsx)("span",{style:{marginLeft:155},children:En("previews")})]})}),t.ticket.components.map((e,r)=>{if(e.status>SD.Precropping||e.status===SD.PrecheckFailed||e.status===SD.PreCropFailed){let i="File/StreamFile?fileType=".concat(e.fileType,"&id=").concat(e.id,"&hash=").concat(e.fileHash);return(0,Ye.jsx)(iP,{currentSubmission:t,updateSubmission:n,component:e,filePath:i,templateSize:e.templateSize,componentIndex:r},"media_".concat(e.id))}return""})]})),t.ticket.isCreateAnAd&&t.ticket.components&&t.ticket.components[0].status===SD.ReadyToUpload)o=(0,Ye.jsxs)("div",{className:e.outsideWrapper,children:[l,(0,Ye.jsx)("div",{className:e.mainBody,children:(0,Ye.jsx)(YD,{currentSubmission:t,updateSubmission:n,showBackgroun
2dDialog:i,bottomButtons:c})}),this.showDialog(e,a,s)]});else{let n=t.ticket.isPrint?e.componentDetails:e.componentDetailsMedia;o=this.state.isSubmitting?(0,Ye.jsx)(Aa,{open:!0,children:(0,Ye.jsx)(za,{className:e.loadingPopup,children:(0,Ye.jsx)(At,{})})}):(0,Ye.jsxs)("div",{className:e.outsideWrapper,children:[l,(0,Ye.jsx)("div",{className:e.mainBody,children:(0,Ye.jsxs)("div",{className:n,children:[(0,Ye.jsxs)("div",{style:{paddingBottom:50},children:[u,(0,Ye.jsxs)("div",{className:e.buttonDiv,children:[c,t.isCyberSourceEnabled&&t.ticket.proofIncluded===$N.Request&&this.allComponentsComplete(t.ticket.components)?(0,Ye.jsx)(kr,{onClick:()=>this.showCyberSourceProofPayment(!0),className:e.button,variant:"contained",color:"secondary",children:jn("buyProofsAndDeliver",En("submitTicket"))}):this.allComponentsComplete(t.ticket.components)?(0,Ye.jsx)(kr,{onClick:()=>this.submitTicket(!0),className:e.button,variant:"contained",color:"secondary",children:En("submitTicket")}):""]})]}),d]})}),this.showDialog(e,a,s)]})}}return(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:jn("ticketNumber",t.ticket.id)}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),o,(0,Ye.jsx)(Pj,{open:this.state.showingGatefold,closeDialog:this.closeGatePreview,ticket:t.ticket}),(0,Ye.jsx)(Tp,{open:this.state.ticketState!==Mp.None,isDeleted:this.state.ticketState===Mp.Deleted,currentSubmission:this.props.currentSubmission,updateSubmission:this.props.updateSubmission})]})}}const CP=pn(MP,e=>{var t=ic("panelHeaders","backgroundColor");t&&0!==t.length||(t=e.palette.primary.main);var n=e.palette.augmentColor({color:{main:t}}),r={"@keyframes flashPanelHeader":{"0%":{opacity:1},"33%":{opacity:.5},"66%":{opacity:1}},flashPanelHeader:{animationName:"$flashPanelHeader",animationDuration:ic("mainView","flashAnimationDuration"),animationIterationCount:3},heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},outsideWrapper:{display:"flex",flexFlow:"row","&> div:not(:first-of-type)":{marginLeft:e.spacing(1)},"&> div:not(:last-of-type)":{marginRight:e.spacing(1)}},mainBody:{flex:"1 0"},componentDetails:{display:"flex",flexWrap:"wrap-reverse"},componentDetailsMedia:{display:"flex",flexWrap:"wrap"},detailsPanelCollapsed:{writingMode:"vertical-rl",msWritingMode:"tb-lr",width:"36px",flexShrink:"0",background:"#FFF",display:"flex",alignItems:"flex-start",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),"& p:first-of-type":{flexGrow:"1",width:"36px"},"& svg,& span":{verticalAlign:"middle"}},detailsPanelExpanded:{flexShrink:"0",background:e.palette.background.paper,border:"1px solid rgba(0, 0, 0, 0.12)",boxShadow:"0px 1px 3px 0px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 2px 1px -1px rgba(0, 0, 0, 0.12)",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflow:"hidden",width:"350px","& $detailsPanelBody":{width:"348px"},"& $detailsPanelHeader":{width:"348px"}},detailsPanelHeader:{cursor:"pointer",userSelect:"none",borderWidth:"1px",borderStyle:"solid",borderColor:"#BBB",borderTopStyle:"none",backgroundColor:n.main,color:n.contrastText,display:"flex",padding:"5px","&> p":{flexGrow:1},"&:hover":{backgroundColor:n.dark},transition:"background-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"},detailsPanelBody:{padding:e.spacing(1),paddingTop:"0",overflow:"hidden"},gridLeft:{minWidth:500},panelHeader:{backgroundColor:n.main,color:n.contrastText,"& div>p":{color:n.contrastText},margin:0,minHeight:"36px !important",height:36,borderTopLeftRadius:"5px",borderTopRightRadius:"5px","&:hover":{backgroundColor:n.dark},"& div":{justifyContent:"space-between"}},fileUpload:{position:"absolute",top:12,left:200},colors:{marginLeft:60},pantoneColors:{paddingLeft:10},repurposeDropdown:{position:"absolute",top:200,left:250,width:400},imagePanel:{marginLeft:10},buttonDiv:{float:"right",marginTop:10},button:{marginLeft:10},expansionPanelDetails:{padding:"24px 24px 24px",display:"flex"},loadingPopup:{padding:"24px",minWidth:"100px",overflow:"hidden",textAlign:"center"},dialogComponent:{maxHeight:"calc(100% - 20px)"},"@keyframes pulseButton":{"70%":{border:"1px solid rgba(255,255,255,0)"},"80%":{border:"1px solid rgba(255,255,255,0.6)"},"100%":{border:"1px solid rgba(255,255,255,0)"}},gateButton:{animationName:"$pulseButton",animationDuration:"10s",animationIterationCount:"infinite",border:"1px solid rgba(255,255,255,0)",borderRadius:"4px",transform:"scale(1.2)"},agreementDialogContent:{paddingBottom:0},agreementDialogFooter:{paddingTop:0}};return r=rc(e,r,"mainView")});class TP extends r.Component{constructor(e){super(e),this.displayName=TP.name,this.returnToTrackDeliveries=()=>{let{currentSubmission:e,updateSubmission:t}=this.props;e.ticket=null,e.redirectLocation="/track",t(e)},this.startNewTicket=()=>{let{currentSubmission:e,updateSubmission:t}=this.props;e.ticket=null,e.redirectLocation="/ticket/new",t(e)},this.openDialog=()=>{this.setState({showDialog:!0})},this.closeDialog=()=>{this.setState({showDialog:!1})},this.state={showDialog:!1}}render(){const{classes:e,currentSubmission:t,updateSubmission:n}=this.props;let r="";return!t.ticket.isPrint&&t.ticket.components.length>0&&Number(t.ticket.fileTypeId)!==uI.DETAILS_ONLY&&(r=(0,Ye.jsxs)("div",{className:e.mediaFileRows,children:[(0,Ye.jsx)("div",{className:e.mediaFileRowsHeader,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)("span",{className:e.mediaFileRowFilenameText,children:En("filenames")}),(0,Ye.jsx)("span",{className:e.mediaFileRowPreviewText,children:En("previews")})]})}),t.ticket.components.map((e,r)=>{if(e.status>SD.Prechecking){let i="File/StreamFile?fileType=".concat(e.fileType,"&id=").concat(e.id,"&hash=").concat(e.fileHash);return(0,Ye.jsx)(iP,{readonly:!0,currentSubmission:t,updateSubmission:n,component:e,filePath:i,componentIndex:r},e.id)}return""})]})),(0,Ye.jsxs)("div",{className:e.body,children:[(0,Ye.jsxs)(Tn,{variant:"h5",className:e.heading,children:[En("confirmationNumber"),": ",t.ticket.id]}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),(0,Ye.jsxs)("div",{className:e.inlineBlock,children:[(0,Ye.jsxs)("div",{className:e.inlineBlock,children:[(0,Ye.jsx)("div",{className:e.spacer,children:(0,Ye.jsx)(Tn,{variant:"body2",children:jn("adSuccessfullyDelivered",t.ticket.publicationName,t.ticket.issueName)})}),(0,Ye.jsx)("div",{className:e.spacer,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)(je,{to:"#",onClick:this.openDialog,children:En("clickHere")})," ".concat(En("printConfirmation"))]})}),(0,Ye.jsx)(kr,{onClick:this.returnToTrackDeliveries,variant:"contained",color:"secondary",children:En("returnToTrackDeliveries")}),(0,Ye.jsx)(kr,{className:e.btnNewSubmission,onClick:this.startNewTicket,color:"secondary",variant:"contained",children:En("startNewTicket")})]}),(0,Ye.jsx)("div",{className:e.inlineBlock,children:r})]}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,fullWidth:!0,scroll:"body",maxWidth:"lg",onClose:this.closeDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:En("adTicketConfirmationDialogTitle")}),(0,Ye.jsx)(za,{className:e.dialogContent,children:(0,Ye.jsx)("iframe",{className:e.iframe,t
2itle:this.state.currentId,src:"./File/StreamFile?fileType=Receipt&id=".concat(t.ticket.id)})}),(0,Ye.jsx)(Ia,{className:e.dialogActions,children:(0,Ye.jsx)(kr,{name:"ok",variant:"contained",autoFocus:!0,onClick:this.closeDialog,color:"secondary",children:En("ok")})})]})]})}}const AP=pn(TP,e=>({heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},body:{marginTop:e.spacing(1)},dialogContent:{position:"relative"},dialogActions:{display:"block",justifyContent:"none",textAlign:"center"},iframe:{width:"100%",height:"calc(100vh - 240px)"},spacer:{marginBottom:10},mediaFileRows:{marginLeft:50,minWidth:380},mediaFileRowsHeader:{paddingBottom:30},mediaFileRowFilenameText:{marginLeft:50},mediaFileRowPreviewText:{marginLeft:155},inlineBlock:{display:"inline-block",verticalAlign:"top",paddingBottom:50},btnNewSubmission:{marginLeft:e.spacing(2)}})),EP=Object.freeze({InProgress:2e3,Submitted:2010,SubmitFailed:2015,Recieved:2020,Rejected:2030,Accepted:2040,SubmitPending:2060});class jP extends r.Component{static getDerivedStateFromProps(e,t){if(!t.loading){let{currentSubmission:t}=e;if(!t.ticket){let t=jP.urlTicketId(e);if(t)return{loading:!0,needsToLoadId:t}}}return null}static getChildPath(e){let t=e.location.pathname.split("/",3);return 3===t.length?t[2]:null}static urlTicketId(e){let t=jP.getChildPath(e);if(t){let e=Number(t);if(e>0)return e}return null}constructor(e){super(e),this.displayName=jP.name,this.loadTicket=e=>{this.setState({needsToLoadId:null}),fetch("SvrTicket/GetTicket?ticketId=".concat(e),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success){let{currentSubmission:t}=this.props;t.ticket=e.ticket,t.ticket.isrUploadPageCount>0?t.sizeGroup=bI:t.ticket.sizeGroupId>0?t.sizeGroup="".concat(t.ticket.sizeGroupId,"_null"):t.sizeGroup="0_".concat(t.ticket.sizeId),t.mediaTypeFields=e.mediaTypeFields,t.fileTypes=e.fileTypes,t.allowsStaticResolution=e.allowsStaticResolution,t.allowsUrls=e.allowsUrls,t.requiresUrls=e.requiresUrls,t.staticOptions=e.staticOptions,t.staticMessage=e.staticMessage,t.expandedPanel=0,t.refDocs=null,t.fileUploads=[],t.reusableComponents=e.reusableComponents,t.fixMyFileEnabled=e.fixMyFileEnabled,t.isCyberSourceEnabled=e.isCyberSourceEnabled,t.useCMYKOption=e.useCMYKOption,t.acceptableMediaFileTypes=e.acceptableMediaFileTypes,t.showCMYKCheckboxes=e.showCMYKCheckboxes,t.flashPanel=-1,t.followCursor=e.followCursor,t.showRuler=e.showRuler,t.transparencyMode=e.transparencyMode,t.showCrosshairs=e.showCrosshairs,t.showSubInchMarks=e.showSubInchMarks,t.showAdSizeOutline=e.showAdSizeOutline,t.showDeliveryConfirmationDialog=e.showDeliveryConfirmationDialog,t.showAgreementConfirmation=e.showAgreementConfirmation,t.wasDeliveryConfirmationDialogShown=!1,null===t.ticket.sizeId&&null===t.ticket.isrUploadPageCount&&null===t.ticket.fileTypeId&&(t.showEditDetails=!0,t.ticket.isNew=!0),this.props.updateSubmission(t)}else{let{currentSubmission:e}=this.props;e.ticket={},this.props.updateSubmission(e)}this.setState({loading:!1,needsToLoadId:null})})},this.state={loading:!1,needsToLoadId:null}}componentDidMount(){this.state.needsToLoadId&&this.loadTicket(this.state.needsToLoadId)}componentDidUpdate(){this.state.needsToLoadId&&this.loadTicket(this.state.needsToLoadId)}componentWillUnmount(){let{currentSubmission:e}=this.props;e&&e.ticket&&e.ticket.status>EP.InProgress&&(e.ticket=null,this.props.updateSubmission(e))}render(){let{currentSubmission:e,updateSubmission:t,showBackgroundDialog:n}=this.props,i=(0,Ye.jsx)(TN,{allowAdResubmission:this.props.allowAdResubmission,updateSubmission:t});if(this.state.loading)i=(0,Ye.jsx)(At,{style:{marginTop:"16px"}});else if(e.ticket&&e.ticket.id>0){let r=jP.urlTicketId(this.props);i=e.ticket.id>0&&null===r?(0,Ye.jsx)(ge,{to:{pathname:"/ticket/".concat(e.ticket.id)},replace:!0}):e.ticket.status===EP.InProgress||e.ticket.status===EP.SubmitFailed?(0,Ye.jsx)(CP,{location:this.props.location,currentSubmission:e,updateSubmission:t,showBackgroundDialog:n}):e.ticket.status>EP.InProgress?(0,Ye.jsx)(AP,{currentSubmission:e,updateSubmission:t}):""}else"new"===jP.getChildPath(this.props)?i=(0,Ye.jsx)(AI,{currentSubmission:e,updateSubmission:t}):e.ticket&&(i=(0,Ye.jsx)(ge,{to:{pathname:"/ticket/new"},replace:!0}));return(0,Ye.jsx)(r.Fragment,{children:i})}}const NP={PaperProps:{style:{maxHeight:272}}};class IP extends r.Component{constructor(e){super(e),this.displayName=IP.name,this.handleSubmit=e=>{if(!this.state.submitting){var t=document.getElementById("editProfileForm"),r=document.getElementById("password1");r.setCustomValidity("");var i=document.getElementById("password2");if(i.setCustomValidity(""),""!==r.value||""!==i.value){if(!Ql(r))return;r.value!==i.value?i.setCustomValidity(En("passwordMismatch")+"\n"):i.setCustomValidity("")}if(!t.checkValidity())return;e.preventDefault();const{updateUserInfo:o}=this.props;this.setState({submitting:!0},()=>{n(5609),fetch("SvrUser/SubmitEditProfile",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(this.state.profile.user)}).then(e=>e.json()).then(e=>{!0===e.success?(o(e.userInfo),e.emailUpdated?this.setState({submitting:!1,lastMessage:En("changeEmailDispatchMessage"),showingMessage:!0}):this.setState({submitting:!1,lastMessage:En("profileUpdated"),showingMessage:!0})):this.setState({submitting:!1,lastMessage:En(e.error),showingMessage:!0})})})}return!1},this.handleChange=e=>{var t=this.state.profile;t.user[e.target.name]=e.target.value,this.setState({profile:t})},this.handlePasswordChange=e=>{this.handleChange(e),this.validatePassword(e)},this.validatePassword=e=>{e.target!=document.getElementById("password2")?Ql(e.target)&&e.target.setCustomValidity(""):this.validatePasswordMatch(e)},this.validatePasswordMatch=e=>{document.getElementById("password1").value!==e.target.value?e.target.setCustomValidity(En("passwordMismatch")+"\n"):e.target.setCustomValidity("")},this.closeMessage=()=>{this.setState({showingMessage:!1})},this.renderProfileGrid=()=>{const{classes:e}=this.props,{submitting:t}=this.state,{profile:n}=this.state;return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:e.mainForm,children:(0,Ye.jsxs)("form",{id:"editProfileForm",className:e.formFix,children:[(0,Ye.jsx)(vD,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",label:En("emailAddress"),id:"email",name:"email",type:"email",autoComplete:"email",value:n.user.email,onChange:this.handleChange,inputProps:{maxLength:"100"}}),(0,Ye.jsxs)(Vl,{container:!0,spacing:1,children:[(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsx)(vD,{id:"firstName",name:"firstName",autoComplete:"firstName",margin:"dense",required:!0,fullWidth:!0,variant:"standard",label:En("firstName"),value:n.user.firstName,onChange:this.handleChange,inputProps:{maxLength:"30"}})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsx)(vD,{margin:"dense",required:!0,fullWidth:!0,label:En("lastName"),variant:"standard",i
2d:"lastName",name:"lastName",autoComplete:"lastName",value:n.user.lastName,onChange:this.handleChange,inputProps:{maxLength:"30"}})})]}),(0,Ye.jsx)(vD,{id:"companyName",name:"companyName",autoComplete:"companyName",margin:"dense",required:!0,fullWidth:!0,variant:"standard",label:En("company"),value:n.user.companyName,onChange:this.handleChange,inputProps:{maxLength:"30"}}),(0,Ye.jsx)(vD,{margin:"dense",fullWidth:!0,variant:"standard",label:En("phone"),id:"phone",name:"phone",autoComplete:"phone",value:n.user.phone,onChange:this.handleChange,inputProps:{maxLength:"15"}}),(0,Ye.jsx)(vD,{margin:"dense",fullWidth:!0,variant:"standard",label:En("address1"),id:"address1",name:"address1",autoComplete:"address1",value:n.user.address1,onChange:this.handleChange,inputProps:{maxLength:"40"}}),(0,Ye.jsx)(vD,{margin:"dense",fullWidth:!0,variant:"standard",label:En("address2"),id:"address2",name:"address2",autoComplete:"address2",value:n.user.address2,onChange:this.handleChange,inputProps:{maxLength:"40"}}),(0,Ye.jsxs)(Vl,{container:!0,spacing:1,children:[(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsx)(vD,{margin:"dense",fullWidth:!0,variant:"standard",label:En("city"),id:"city",name:"city",autoComplete:"city",value:n.user.city,onChange:this.handleChange,inputProps:{maxLength:"30"}})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"state",children:En("state")}),(0,Ye.jsx)(Il,{native:!0,id:"state",name:"state",MenuProps:NP,value:n.user.state,onChange:this.handleChange,children:n.states.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.value},e.value))})]})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"postalCode",children:En("postalCode")}),(0,Ye.jsx)(uo,{id:"postalCode",name:"postalCode",autoComplete:"postalCode",value:n.user.postalCode,onChange:this.handleChange,inputProps:{maxLength:"10"}})]})}),(0,Ye.jsx)(Vl,{item:!0,xs:6,children:(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"country",children:En("country")}),(0,Ye.jsx)(uo,{id:"country",name:"country",autoComplete:"country",value:n.user.country,onChange:this.handleChange,inputProps:{maxLength:"30"}})]})})]}),(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"password1",children:En("newPassword")}),(0,Ye.jsx)(uo,{id:"password1",name:"password1",type:"password",onChange:this.handlePasswordChange})]}),(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"password2",children:En("confirmPassword")}),(0,Ye.jsx)(uo,{id:"password2",name:"password2",type:"password",onChange:this.handlePasswordChange})]}),(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"units",children:En("unitPreference")}),(0,Ye.jsx)(Il,{native:!0,id:"units",name:"units",MenuProps:NP,value:n.user.units,onChange:this.handleChange,children:n.unitsOfMeasure.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.value},e.value))})]}),(0,Ye.jsxs)("div",{className:e.submitWrapper,children:[(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"secondary",disabled:t,className:e.submit,onClick:this.handleSubmit,children:En("apply")}),t&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]})}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Aa,{open:this.state.showingMessage,onClose:this.closeMessage,"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:this.state.lastMessage})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeMessage,variant:"contained",color:"secondary",autoFocus:!0,children:En("ok")})})]})})]})},this.state={profile:[],loading:!0,submitting:!1,showingMessage:!1,lastMessage:""}}componentDidMount(){fetch("SvrUser/GetProfile",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({profile:e,loading:!1})})}render(){const{classes:e}=this.props;let t=this.state.loading?(0,Ye.jsx)("p",{children:(0,Ye.jsx)("em",{children:En("loading")})}):this.renderProfileGrid();return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{variant:"h5",className:e.heading,children:En("editProfile")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),t]})}}const DP=pn(IP,e=>({mainForm:{minWidth:"300px",maxWidth:"750px",display:"flex",flexDirection:"column",alignItems:"center"},heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},formFix:{width:"100%"},submit:{marginTop:e.spacing(3)},submitWrapper:{textAlign:"right",position:"relative"},buttonProgress:{color:_o.A[500],position:"absolute",top:"50%",left:"100%",marginTop:0,marginLeft:-50}}));const PP=r.createContext();function LP(e){return(0,ut.Ay)("MuiTable",e)}(0,ct.A)("MuiTable",["root","stickyHeader"]);const RP=["className","component","padding","size","stickyHeader"],OP=(0,lt.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,Be.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})}),zP="table",FP=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTable"}),{className:i,component:o=zP,padding:a="normal",size:s="medium",stickyHeader:l=!1}=n,c=(0,rt.A)(n,RP),u=(0,Be.A)({},n,{component:o,padding:a,size:s,stickyHeader:l}),d=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,ot.A)(r,LP,t)})(u),p=r.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return(0,Ye.jsx)(PP.Provider,{value:p,children:(0,Ye.jsx)(OP,(0,Be.A)({as:o,role:o===zP?null:"table",ref:t,className:(0,it.A)(d.root,i),ownerState:u},c))})});const BP=r.createContext();function UP(e){return(0,ut.Ay)("MuiTableBody",e)}(0,ct.A)("MuiTableBody",["root"]);
2const HP=["className","component"],WP=(0,lt.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),VP={variant:"body"},GP="tbody",qP=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTableBody"}),{className:r,component:i=GP}=n,o=(0,rt.A)(n,HP),a=(0,Be.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"]},UP,t)})(a);return(0,Ye.jsx)(BP.Provider,{value:VP,children:(0,Ye.jsx)(WP,(0,Be.A)({className:(0,it.A)(s.root,r),as:i,ref:t,role:i===GP?null:"rowgroup",ownerState:a},o))})});function KP(e){return(0,ut.Ay)("MuiTableCell",e)}const YP=(0,ct.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),XP=["align","className","component","padding","scope","size","sortDirection","variant"],ZP=(0,lt.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["size".concat((0,st.A)(n.size))],"normal"!==n.padding&&t["padding".concat((0,st.A)(n.padding))],"inherit"!==n.align&&t["align".concat((0,st.A)(n.align))],n.stickyHeader&&t.stickyHeader]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,mn.a)((0,mn.X4)(t.palette.divider,1),.88):(0,mn.e$)((0,mn.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",["&.".concat(YP.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})}),QP=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d}=n,p=(0,rt.A)(n,XP),h=r.useContext(PP),f=r.useContext(BP),m=f&&"head"===f.variant;let g;g=a||(m?"th":"td");let v=l;"td"===g?v=void 0:!v&&m&&(v="col");const y=d||f&&f.variant,b=(0,Be.A)({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===y&&h&&h.stickyHeader,variant:y}),x=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader","inherit"!==r&&"align".concat((0,st.A)(r)),"normal"!==i&&"padding".concat((0,st.A)(i)),"size".concat((0,st.A)(o))]};return(0,ot.A)(s,KP,t)})(b);let S=null;return u&&(S="asc"===u?"ascending":"descending"),(0,Ye.jsx)(ZP,(0,Be.A)({as:g,ref:t,className:(0,it.A)(x.root,o),"aria-sort":S,scope:v,ownerState:b},p))}),JP=QP;function $P(e){return(0,ut.Ay)("MuiTableHead",e)}(0,ct.A)("MuiTableHead",["root"]);const eL=["className","component"],tL=(0,lt.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),nL={variant:"head"},rL="thead",iL=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTableHead"}),{className:r,component:i=rL}=n,o=(0,rt.A)(n,eL),a=(0,Be.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"]},$P,t)})(a);return(0,Ye.jsx)(BP.Provider,{value:nL,children:(0,Ye.jsx)(tL,(0,Be.A)({as:i,className:(0,it.A)(s.root,r),ref:t,role:i===rL?null:"rowgroup",ownerState:a},o))})});function oL(e){return(0,ut.Ay)("MuiTableRow",e)}const aL=(0,ct.A)("MuiTableRow",["root","selected","hover","head","footer"]),sL=["className","component","hover","selected"],lL=(0,lt.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(aL.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(aL.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}}),cL="tr",uL=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTableRow"}),{className:i,component:o=cL,hover:a=!1,selected:s=!1}=n,l=(0,rt.A)(n,sL),c=r.useContext(BP),u=(0,Be.A)({},n,{component:o,hover:a,selected:s,head:c&&"head"===c.variant,footer
2:c&&"footer"===c.variant}),d=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e,a={root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]};return(0,ot.A)(a,oL,t)})(u);return(0,Ye.jsx)(lL,(0,Be.A)({as:o,ref:t,className:(0,it.A)(d.root,i),role:o===cL?null:"row",ownerState:u},l))}),dL=uL;class pL extends r.Component{constructor(){super(...arguments),this.displayName=pL.name}render(){const{classes:e}=this.props;let t="true"===ic("help","showCreateAnAdGuideLink"),n="true"===ic("help","showDigitalSubmissionGuideLink"),r="true"===ic("help","showProofRequestGuideLink"),i="true"===ic("help","showAdCreationGuideLink");return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("help")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),(0,Ye.jsxs)(FP,{children:[(0,Ye.jsx)(iL,{children:(0,Ye.jsxs)(dL,{className:e.row,children:[(0,Ye.jsx)(JP,{className:e.head,children:En("guides")}),(0,Ye.jsx)(JP,{className:e.head,children:En("pdfPresetFiles")}),(0,Ye.jsx)(JP,{className:e.head,children:En("supportRequest")})]})}),(0,Ye.jsx)(qP,{children:(0,Ye.jsxs)(dL,{className:e.row,children:[(0,Ye.jsxs)(JP,{className:e.body,children:[i?(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)("a",{target:"_blank",href:"File/HelpResource?fileType=AdCreationGuide",children:En("viewAdCreationGuide")})}):null,(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)("a",{target:"_blank",href:"File/HelpResource?fileType=PrintSubmissionGuide",children:En("viewPrintSubmissionGuide")})}),r?(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)("a",{target:"_blank",href:"File/HelpResource?fileType=ProofRequestGuide",children:En("viewProofRequestGuide")})}):null,n?(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)("a",{target:"_blank",href:"File/HelpResource?fileType=DigitalSubmissionGuide",children:En("viewDigitalSubmissionGuide")})}):null,t?(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)("a",{target:"_blank",href:"File/HelpResource?fileType=CreateAnAdGuide",children:En("viewCreateAnAdGuide")})}):null]}),(0,Ye.jsxs)(JP,{className:e.body,children:[(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)("a",{href:"File/HelpResource?fileType=AdobePdfPresets",children:En("downloadAdobePdfPresets")})}),(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)("a",{href:"File/HelpResource?fileType=QuarkXPressExport",children:En("downloadQuarkXpressExport")})}),(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)("a",{href:"File/HelpResource?fileType=QuarkXPressPrintStyle",children:En("downloadQuarkXpressPrintStyle")})})]}),(0,Ye.jsxs)(JP,{className:e.body,children:[(0,Ye.jsxs)("div",{className:e.fakeRow,children:[En("forUrgentRequests")," ",En("supportPhoneUsa")]}),(0,Ye.jsxs)("div",{className:e.fakeRow,children:[En("outsideUScall")," ",En("supportPhoneOutsideUs")]}),(0,Ye.jsx)("div",{className:e.fakeRow,children:(0,Ye.jsx)(ac,{showButton:!0,showDialog:"/help/support"===this.props.location.pathname})})]})]})})]})]})}}const hL=bc(pn(pL,e=>({table:{borderBottomWidth:0},heading:{fontWeight:"bold",marginTop:e.spacing(1)},head:{color:"black",fontSize:16,fontWeight:"bold",height:25,padding:0},horizontalBar:{borderColor:"black"},row:{border:0},fakeRow:{minHeight:30},body:{paddingTop:10,padding:0,border:0,verticalAlign:"top"}}),{withTheme:!0}));class fL extends r.Component{constructor(){super(...arguments),this.displayName=fL.name}render(){const{classes:e}=this.props;return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("Admin")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),(0,Ye.jsxs)("p",{children:[(0,Ye.jsx)(kr,{color:"primary",variant:"contained",component:je,to:"/admin/users",className:e.adminButton,children:En("Users")}),(0,Ye.jsx)(kr,{color:"primary",variant:"contained",component:je,to:"/admin/ticketSubmissionEmail",className:e.adminButton,children:En("resendTicketSubmissionEmail")})]})]})}}const mL=pn(fL,e=>({heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},adminButton:{marginRight:"10px"}}));var gL=n(18731),vL=n(28951);function yL(e){return(0,ut.Ay)("MuiMenuItem",e)}const bL=(0,ct.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],SL=(0,lt.Ay)(fr,{shouldForwardProp:e=>(0,In.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(bL.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(bL.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(bL.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,mn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(bL.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(bL.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(jd.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(jd.inset)]:{marginLeft:52},["& .".concat(gp.root)]:{marginTop:0,marginBottom:0},["& .".concat(gp.inset)]:{paddingLeft:36},["& .".concat(up.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,Be.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(up.root," svg")]:{fontSize:"1.25rem"}}))}),wL=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=n,h=(0,rt.A)(n,xL),f=r.useContext(Za),m=r.useMemo(()=>({dense:a||f.dense||!1,disableGutters:l}),[f.dense,a,l]),g=r.useRef(null);(0,Ki.A)(()=>{i&&g.current&&g.current.focus()},[i]);const v=(0,Be.A)({},n,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,s={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divi
2der",o&&"selected"]},l=(0,ot.A)(s,yL,a);return(0,Be.A)({},a,l)})(n),b=(0,Dn.A)(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),(0,Ye.jsx)(Za.Provider,{value:m,children:(0,Ye.jsx)(SL,(0,Be.A)({ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:(0,it.A)(y.focusVisible,c),className:(0,it.A)(y.root,p)},h,{ownerState:v,classes:y}))})}),_L=wL;var kL=0;class ML extends r.Component{constructor(e){super(e),this.saveUsers=()=>{fetch("SvrAdmin/SaveUsers",{method:"post",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"same-origin",body:JSON.stringify(this.state.rows.filter(e=>e.rowActivated))}).then(e=>e.json()).then(e=>{e.success||this.setState({lastMessage:En(e.error)})})},this.activateRow=e=>{for(var t=this.state.rows.slice(),n=0;n<t.length;){if(t[n].id===e){t[n].rowActivated=!t[n].rowActivated;break}n++}this.setState({rows:t})},this.fetchFirst=()=>{fetch("SvrAdmin/GetUsers?startingRow=0&filter="+this.state.filterText,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({rows:e,currentTopRow:0,lastMessage:""})})},this.fetchPrev=()=>{fetch("SvrAdmin/GetUsers?startingRow="+(this.state.currentTopRow-this.state.rows.length)+"&filter="+this.state.filterText,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({rows:e,currentTopRow:this.state.currentTopRow-this.state.rows.length,lastMessage:""})})},this.fetchNext=()=>{fetch("SvrAdmin/GetUsers?startingRow="+(this.state.currentTopRow+this.state.rows.length)+"&filter="+this.state.filterText,{method:"post",credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({rows:e,currentTopRow:this.state.currentTopRow+this.state.rows.length,lastMessage:""})})},this.fetchLast=()=>{fetch("SvrAdmin/GetUsers?startingRow="+(kL-this.state.rows.length)+"&filter="+this.state.filterText,{method:"post",credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({rows:e,currentTopRow:kL-this.state.rows.length,lastMessage:""})})},this.areUsersValid=()=>{let e=!0,t=this.state.rows.slice();for(let n=0;n<t.length;n++)if(t[n].isSales&&1!==t[n].assignedPublisherIds.length){e=!1;break}return e},this.checkChanged=(e,t)=>{for(var n=this.state.rows.slice(),r=0;r<n.length;){if(n[r].id===t){n[r][e.target.name]=e.target.checked;break}r++}this.setState({rows:n,saveEnabled:this.areUsersValid()})},this.resetPassword=e=>{fetch("SvrAdmin/ResetPassword?username="+e,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success){var t=En(e.msg)+" "+En(e.msg2)+" "+e.newPassword;this.setState({lastMessage:t})}else this.setState({lastMessage:En(e.error)})})},this.publisherChanged=(e,t)=>{for(var n=this.state.rows.slice(),r=0;r<n.length;){if(n[r].id===t){n[r].assignedPublisherIds=[];for(let t=0;t<e.target.value.length;t++)n[r].assignedPublisherIds.push(e.target.value[t]);break}r++}this.setState({rows:n,saveEnabled:this.areUsersValid()})},this.displayResetPasswordMessage=e=>""!==this.state.lastMessage?(0,Ye.jsx)(Tn,{variant:"body2",component:"div",className:"".concat(e.tableFooter," ").concat(e.tableFooterMargin),children:this.state.lastMessage}):"",this.closeFilterDialog=e=>{this.setState({dialogOpen:!1}),e&&""!==e&&(fetch("SvrAdmin/GetMaxUserRow",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{kL=e.maxRow}),fetch("SvrAdmin/GetUsers?startingRow=0&filter="+e,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{this.setState({rows:t,currentTopRow:0,lastMessage:"",filterText:e})}))},this.resetFilter=()=>{fetch("SvrAdmin/GetUsers?startingRow=0",{method:"post",credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({rows:e,currentTopRow:0,lastMessage:"",filterText:""})})},this.getPublisherNameFromId=e=>{for(let t=0;t<this.state.publishers.length;t++)if(this.state.publishers[t].id===e)return this.state.publishers[t].name;return""},this.openFilterDialog=()=>{this.setState({dialogOpen:!0})},this.selectOpened=()=>{this.setState({saveEnabled:!1})},this.selectClosed=()=>{this.setState({saveEnabled:this.areUsersValid()})},this.state={rows:[],publishers:[],lastMessage:"",dialogOpen:!1,currentTopRow:0,filterText:"",saveEnabled:!0}}componentDidMount(){fetch("SvrAdmin/InitAdmin",{method:"post",credentials:"same-origin"}).then(e=>e.json()).then(e=>
2{kL=e.maxRow,this.setState({publishers:e.publishers,rows:e.rows})})}render(){const{classes:e}=this.props;return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{className:e.header,variant:"h5",children:En("users")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),(0,Ye.jsxs)(FP,{size:"small",children:[(0,Ye.jsx)(iL,{children:(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableCell}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("id")}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("email")}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("isClientAdmin")}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("publisher")}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("isActive")}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("isAdmin")}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("isISR")}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("isSales")}),(0,Ye.jsx)(JP,{className:e.tableCell,children:En("cannotSubmit")}),(0,Ye.jsx)(JP,{className:e.tableCell})]})}),(0,Ye.jsx)(qP,{children:this.state.rows.map(t=>(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(Di,{color:"primary",className:e.MuiButton,checked:t.rowActivated,onChange:()=>{this.activateRow(t.id)}})}),(0,Ye.jsx)(JP,{className:e.tableCell,children:t.id}),(0,Ye.jsx)(JP,{className:e.tableCell,children:t.email}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(Di,{color:"primary",className:e.MuiButton,name:"isClientAdmin",disabled:!t.rowActivated,checked:t.isClientAdmin,onChange:e=>{this.checkChanged(e,t.id)}})}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(Il,{onOpen:this.selectOpened,onClose:this.selectClosed,className:e.select,multiple:!0,variant:"standard",value:t.assignedPublisherIds,renderValue:e=>(0,Ye.jsx)("div",{children:e.map(e=>this.getPublisherNameFromId(e)).join(", ")}),disabled:!t.rowActivated||!t.isClientAdmin&&!t.isSales,onChange:e=>{this.publisherChanged(e,t.id)},children:this.state.publishers.map(e=>(0,Ye.jsxs)(_L,{value:e.id,children:[(0,Ye.jsx)(Di,{checked:t.assignedPublisherIds.indexOf(e.id)>-1}),(0,Ye.jsx)(bp,{primary:e.name})]},e.id))})}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(Di,{color:"primary",className:e.MuiButton,name:"isActive",disabled:!t.rowActivated,checked:t.isActive,onChange:e=>{this.checkChanged(e,t.id)}})}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(Di,{color:"primary",className:e.MuiButton,name:"isAdmin",disabled:!t.rowActivated,checked:t.isAdmin,onChange:e=>{this.checkChanged(e,t.id)}})}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(Di,{color:"primary",className:e.MuiButton,name:"isISR",disabled:!t.rowActivated,checked:t.isISR,onChange:e=>{this.checkChanged(e,t.id)}})}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(Di,{color:"primary",className:e.MuiButton,name:"isSales",disabled:!t.rowActivated,checked:t.isSales,onChange:e=>{this.checkChanged(e,t.id)}})}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(Di,{color:"primary",className:e.MuiButton,name:"cannotSubmit",disabled:!t.rowActivated,checked:t.cannotSubmit,onChange:e=>{this.checkChanged(e,t.id)}})}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(je,{to:"#",onClick:()=>{this.resetPassword(t.email)},children:En("resetPassword")})})]},t.id))})]}),(0,Ye.jsx)("div",{className:e.tableFooter,children:(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("p",{}),(0,Ye.jsx)("div",{children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsx)(je,{className:e.filterLink,to:"#",onClick:this.openFilterDialog,children:En("filter")}),"|",(0,Ye.jsx)(je,{to:"#",className:e.filterLink,onClick:this.resetFilter,children:En("reset")})]})}),(0,Ye.jsx)("p",{}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(gL.A,{color:this.state.currentTopRow<this.state.rows.length?"disabled":"inherit",className:this.state.currentTopRow<this.state.rows.length?"":e.iconLink,onClick:this.state.currentTopRow<this.state.rows.length?()=>{}:this.fetchFirst}),(0,Ye.jsx)(Hd.A,{color:this.state.currentTopRow<this.state.rows.length?"disabled":"inherit",className:this.state.currentTopRow<this.state.rows.length?"":e.iconLink,onClick:this.state.currentTopRow<this.state.rows.length?()=>{}:this.fetchPrev}),(0,Ye.jsx)(Wd.A,{color:this.state.currentTopRow>=kL-this.state.rows.length?"disabled":"inherit",className:this.state.currentTopRow>=kL-this.state.rows.length?"":e.iconLink,onClick:this.state.currentTopRow>=kL-this.state.rows.length?()=>{}:this.fetchNext}),(0,Ye.jsx)(vL.A,{color:this.state.currentTopRow>=kL-this.state.rows.length?"disabled":"inherit",className:this.state.currentTopRow>=kL-this.state.rows.length?"":e.iconLink,onClick:this.state.currentTopRow>=kL-this.state.rows.length?()=>{}:this.fetchLast})]}),(0,Ye.jsx)("p",{}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(kr,{className:e.button,component:je,to:"/admin",variant:"contained",color:"primary",children:En("back")}),(0,Ye.jsx)(kr,{className:e.button,disabled:!this.state.saveEnabled,onClick:this.saveUsers,variant:"contained",color:"secondary",children:En("save")})]})]})}),this.displayResetPasswordMessage(e),(0,Ye.jsxs)(Aa,{open:this.state.dialogOpen,onClose:this.closeFilterDialog,children:[(0,Ye.jsx)(Kl,{id:"form-dialog-title",children:En("filter")}),(0,Ye.jsx)(za,{children:(0,Ye.jsx)(vD,{autoFocus:!0,margin:"dense",id:"filterText",fullWidth:!0})}
2),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{this.closeFilterDialog("")},color:"primary",children:En("close")}),(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{this.closeFilterDialog(document.getElementById("filterText").value)},color:"secondary",children:En("filter")})]})]})]})}}const CL=pn(ML,e=>({tableRow:{height:40},button:{marginLeft:10,marginRight:10},tableFooter:{textAlign:"center"},iconLink:{cursor:"pointer"},filterLink:{marginLeft:10,marginRight:10},tableFooterMargin:{marginTop:20,marginBottom:20},MuiButton:{paddingTop:3,paddingBottom:3,paddingLeft:3,paddingRight:3},header:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},tableCell:{paddingLeft:2,paddingRight:2},select:{maxWidth:"400px",minWidth:"180px"}}));var TL=n(14789),AL=n(77275),EL=n(54410),jL=n(39956),NL=n.n(jL),IL=n(11869),DL=n.n(IL);class PL extends r.Component{constructor(e){super(e),this.setEmailBodyContent=e=>{let{editorState:t}=this.state;const n=DL()(e.body),r=EL.ContentState.createFromBlockArray(n.contentBlocks,n.entityMap);t=EL.EditorState.createWithContent(r),e&&(e.body=NL()((0,EL.convertToRaw)(t.getCurrentContent()))),this.setState({editorState:t})},this.handleLoad=e=>{let{tickets:t}=this.state;if(t.ticketIds=[],t.validTicketIds=[],t.ticketsInProgressIds=[],t.selectedTicketIds=[],t.sentTicketIds=[],!this.state.loading){this.setState({loading:!0,tickets:t});var r=document.getElementById("ticketIds").value.split(/[, ]+/).filter(function(e){return e.length&&e==+e});n(5609);var i=new FormData;r.map(e=>i.append("ticketIds",e)),fetch("SvrAdmin/ValidateTicketIds",{method:"POST",body:i,credentials:"same-origin"}).then(e=>e.json()).then(e=>{t.ticketIds=r,t.selectedTicketIds=r.slice(),t.validTicketIds=e.validTicketIds,t.ticketsInProgressIds=e.ticketsInProgressIds;for(var n=0;n<t.ticketIds.length;n++){let e=t.ticketIds[n],r=-1!==t.validTicketIds.indexOf(+e),i=-1!==t.ticketsInProgressIds.indexOf(+e);if(!r||i){let n=t.selectedTicketIds.indexOf(e);n>-1&&t.selectedTicketIds.splice(n,1)}}this.setState({loading:!1,tickets:t})})}},this.handleToggleSelection=e=>()=>{let{tickets:t}=this.state,n=t.selectedTicketIds.indexOf(e);n>-1?t.selectedTicketIds.splice(n,1):t.selectedTicketIds.push(e),this.setState({tickets:t})},this.handlePreview=e=>()=>{let{emailPreviewData:t}=this.state;fetch("SvrAdmin/GetSubmissionEmailText?ticketId=".concat(e),{credentials:"same-origin"}).then(e=>e.json()).then(n=>{n.success&&(t.ticketId=e,t.to=n.to,t.subject=n.subject,t.body=n.body,this.setEmailBodyContent(t),this.setState({emailPreviewData:t,showEmailDialog:!0}))})},this.closeEmailDialog=()=>{this.setState({showEmailDialog:!1})},this.closeErrorDialog=()=>{this.setState({error:"",showError:!1})},this.sendEmail=e=>()=>{let{tickets:t}=this.state;fetch("SvrAdmin/SendSubmissionEmail?ticketId=".concat(e),{credentials:"same-origin"}).then(e=>e.json()).then(n=>{if(n.success){let n=t.selectedTicketIds.indexOf(e);n>-1&&t.selectedTicketIds.splice(n,1),t.sentTicketIds.push(e),this.setState({showEmailDialog:!1,tickets:t})}else this.setState({showError:!0,error:n.error})})},this.sendAllEmails=()=>()=>{let{tickets:e}=this.state;n(5609);var t=new FormData;e.selectedTicketIds.map(e=>t.append("ticketIds",e)),fetch("SvrAdmin/SendSubmissionEmails",{method:"POST",body:t,credentials:"same-origin"}).then(e=>e.json()).then(t=>{for(var n=0;n<t.sentTicketIds.length;n++){let r=""+t.sentTicketIds[n],i=e.selectedTicketIds.indexOf(r);i>-1&&e.selectedTicketIds.splice(i,1),e.sentTicketIds.indexOf(r)<0&&e.sentTicketIds.push(r)}this.setState({loading:!1,tickets:e}),t.success||this.setState({showError:!0,error:t.error})})},this.state={dialogOpen:!1,saveEnabled:!0,lastMessage:"",loading:!1,showError:!1,error:"",tickets:{ticketIds:[],validTicketIds:[],ticketsInProgressIds:[],selectedTicketIds:[],sentTicketIds:[]},showEmailDialog:!1,submittingEmailDialog:!1,editorState:EL.EditorState.createEmpty(),emailPreviewData:{ticketId:null,to:null,subject:null,body:null}}}render(){const{classes:e}=this.props;let{tickets:t}=this.state,{editorState:n}=this.state,{emailPreviewData:i}=this.state,{submittingEmailDialog:o}=this.state,a=(0,Ye.jsxs)("div",{id:"ticketIdSelection",children:[(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsxs)(wo,{htmlFor:"ticketIds",children:[En("ticketIDs"),":\u2009*"]}),(0,Ye.jsx)(uo,{id:"ticketIds",name:"ticketIds",autoComplete:"off"})]},"ticketIds"),(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"primary",className:e.loadButton,onClick:this.handleLoad,disabled:this.state.loading,children:En("load")})]}),s=(0,Ye.jsx)(r.Fragment,{});t.ticketIds.length>0&&(s=(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(ts,{className:e.ticketList,children:t.ticketIds.map(n=>{let i="checkbox-list-label-".concat(n),o=-1!==t.sentTicketIds.indexOf(n),a=-1!==t.validTicketIds.indexOf(+n),s=-1!==t.ticketsInProgressIds.indexOf(+n),l=o||!a||s,c=(0,Ye.jsx)(r.Fragment,{children:o?(0,Ye.jsx)(je,{className:e.sentTicket,id:n,target:"_blank",to:"/isr/ticketDetails/".concat(n),children:jn("disabledTicketIdEmailSent",n)}):a?s?(0,Ye.jsx)(je,{className:e.disabledTicket,id:n,target:"_blank",to:"/isr/ticketDetails/".concat(n),children:jn("disabledTicketIdTicketInProgress",n)}):(0,Ye.jsxs)(je,{id:n,target:"_blank",to:"/isr/ticketDetails/".concat(n),children:[En("ticket")," ",n]}):(0,Ye.jsx)(je,{className:e.disabledTicket,id:n,target:"_blank",to:"/isr/ticketDetails/".concat(n),children:jn("disabledTicketIdInvali
2dTicketId",n)})});return(0,Ye.jsxs)(lp,{role:void 0,dense:!0,button:!0,disabled:l,children:[(0,Ye.jsx)(fp,{children:(0,Ye.jsx)(Di,{edge:"start",onClick:this.handleToggleSelection(n),checked:-1!==t.selectedTicketIds.indexOf(n),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":i}})}),c,(0,Ye.jsx)(np,{children:(0,Ye.jsx)(gj,{edge:"end","aria-label":"comments",onClick:this.handlePreview(n),disabled:l,children:(0,Ye.jsx)(TL.A,{})})})]},n)})}),(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"primary",className:e.loadButton,onClick:this.sendAllEmails(),disabled:this.state.loading||0==t.selectedTicketIds.length,children:En("sendEmails")})]}));let l=(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)("div",{className:e.emailTopSection,children:[(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"emailTo",children:En("to")}),(0,Ye.jsx)(uo,{id:"emailTo",name:"to",value:i.to,autoComplete:"off",onChange:this.handleEmailFormChange,disabled:!0})]},"emailTo"),(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"emailSubject",children:En("subject")}),(0,Ye.jsx)(uo,{id:"emailSubject",name:"subject",value:i.subject,autoComplete:"off",onChange:this.handleEmailFormChange,disabled:!0})]},"emailSubject")]}),(0,Ye.jsx)("div",{className:e.fakeLabel,children:En("body")}),(0,Ye.jsx)(AL.Editor,{disabled:!0,editorState:n,wrapperClassName:e.draftEditorWrapper,toolbarHidden:!0,editorClassName:e.draftEditor,editorStyle:{greenBackground:{backgroundColor:"green"}},className:e.draftEditorContainer})]});return(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("div",{id:"page-header",children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("resendTicketSubmissionEmail")}),(0,Ye.jsx)("hr",{className:e.horizontalBar})]}),(0,Ye.jsxs)("div",{className:e.mainSection,children:[a,s]}),(0,Ye.jsxs)(Aa,{open:this.state.showEmailDialog,"aria-labelledby":"send-isr-email-title",maxWidth:"md",children:[(0,Ye.jsxs)(Kl,{id:"support-request-title",children:[En("ticket")," ",i.ticketId]}),(0,Ye.jsx)(za,{children:l}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{this.closeEmailDialog(!1)},color:"primary",children:En("cancel")}),(0,Ye.jsx)(kr,{variant:"contained",onClick:this.sendEmail(i.ticketId),color:"secondary",disabled:o,children:En("send")}),o&&(0,Ye.jsx)(CircularProgress,{size:24,className:e.buttonProgress})]})]}),(0,Ye.jsxs)(Aa,{open:this.state.showError,onClose:this.closeErrorDialog,describedby:"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.error)})})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeErrorDialog,color:"secondary",variant:"contained",autoFocus:!0,children:En("ok")})})]})]})}}const LL=pn(PL,e=>({heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},mainSection:{width:700},loadButton:{marginTop:e.spacing(1)},ticketList:{maxHeight:"400px",overflow:"auto"},draftEditorWrapper:{position:"relative",marginBottom:5},draftEditorToolbar:{top:-84,position:"absolute",background:"#F3F3F3"},draftEditor:{height:"250px",border:"1px solid #919191",padding:5,borderRadius:2,fontFamily:e.typography.subtitle1.fontFamily},fakeLabel:{fontFamily:e.typography.subtitle1.fontFamily,fontSize:"0.75rem",width:"100%",color:"rgba(0, 0, 0, 0.54)",paddingTop:e.spacing(1),marginBottom:e.spacing(.5)},disabledTicket:{color:"red"},sentTicket:{color:"green"}}));class RL extends r.Component{constructor(){super(...arguments),this.displayName=RL.name}render(){return(0,Ye.jsxs)(be,{children:[(0,Ye.jsx)(ve,{path:"/users",element:(0,Ye.jsx)(CL,{})}),(0,Ye.jsx)(ve,{path:"/TicketSubmissionEmail",element:(0,Ye.jsx)(LL,{})}),(0,Ye.jsx)(ve,{path:"/",element:(0,Ye.jsx)(mL,{})}),(0,Ye.jsx)(ve,{element:(0,Ye.jsx)(Mr,{})})]})}}class OL extends r.Component{constructor(){super(...arguments),this.displayName=OL.name}render(){const{classes:e,userInfo:t}=this.props;let n=t.isClientAdminAndHasPublishersAssigned?(0,Ye.jsx)(kr,{color:"primary",variant:"contained",component:je,to:"/isr/ticketReport",className:e.isrButton,children:En("ticketReport")}):(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(kr,{color:"primary",variant:"contained",component:je,to:"/isr/ticketReport",className:e.isrButton,children:En("ticketReport")}),(0,Ye.jsx)(kr,{color:"primary",variant:"contained",component:je,to:"/isr/spreadPuller",className:e.isrButton,children:En("spreadPuller")}),(0,Ye.jsx)(kr,{color:"primary",variant:"contained",component:je,to:"/isr/jobAssociations",className:e.isrButton,children:En("jobAssociations")}),(0,Ye.jsx)(kr,{color:"primary",variant:"contained",component:je,to:"/isr/impersonate",className:e.isrButton,children:En("impersonateUser")})]});return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("isr")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),(0,Ye.jsx)("p",{children:n})]})}}const zL=pn(OL,e=>({heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},isrButton:{marginRight:"10px"}}),{withTheme:!0}),FL=["className","children","classes","IconComponent","input","inputProps","variant"],BL=["root"],UL=(0,Ye.jsx)(uo,{}),HL=r.forwardRef(function(e,t){const n=(0,Ue.b)({name:"MuiNativeSelect",props:e}),{className:i,children:o,classes:a={},IconComponent:s=ol,input:l=UL,inputProps:c}=n,u=(0,rt.A)(n,FL),d=ci({props:n,muiFormControl:Lr(),states:["variant"]}),p=(e=>{const{classes:t}=e;return(0,ot.A)({root:["root"]},zs,t)})((0,Be.A)({},n,{classes:a})),h=(0,rt.A)(a,BL);return(0,Ye.jsx)(r.Fragment,{children:r.cloneElement(l,(0,Be.A)({inputComponent:qs,inputProps:(0,Be.A)({children:o,classes:h,IconComponent:s,variant:d.variant,type:void 0},c,l?l.props.inputProps:{}),ref:t},u,{className:(0,it.A)(p.root,l.props.className,i)}))})});HL.muiName="Select";const WL=HL,VL=Object.freeze({ByName:0,ByEmail:1,ByTicketId:2,ByComponentId:3,BySubmissionId:4});class GL extends r.Component{constructor(e){super(e),this.displayName=GL.name,this.onFilter=e=>{if(!this.state.loading){var t=document.getElementById("userPickerForm"),r=document.getElementById("userPickerInput");if(r.value.length<3?r.setCustomValidity(En("badRequest")):r.setCustomValidity(""),!t.checkValidity())return;e.preventDefault(),this.setState({loading:!0},()=>{n(5609);var e=new FormData(document.getElementById("userPickerForm"));fetch("SvrISR/UserSearch",{method:"POST",body:e,credentials:"same-origin"}).then(e=>e.json()).then(e=>{!0===e.success?this.setState({searchResults:e.users,loading:!1}):this.setState({loading:!1,lastError:e.error,showingError:!0})})})}},this.handleUserChanged=e=>{var t=e.target.value&&e.target.value.length>0;this.setState({hasSelectedUser:t})},this.onUserSelected=()=>{let e=document.getElementById("selectedUserId");e&&e.value&&this.props.onUserSelected&&this.props.onUserSelected(e.value)},this.state={searchResults:[],hasSelectedUser:!1,loading:!0,lastError:"",showingError:!1}}componentDidMount(){fetch("SvrISR/RecentUsers",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{!0===e.success?this.setState({searchResults:e.users,loading:!1}):this.setState({loading:!1,lastError:e.error,showingError:!0})})}render(){const{classes:e}=this.props;let{selectButtonText:t}=this.props;t||(t=En("ok"));let n=(0,Ye.jsx)(At,{});return this.state.loading||(n=(0,Ye.jsxs)(Pr,{className:e.userDropdown,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"selectedUserId",children:En("selectUser")}),(0,Ye.jsxs)(WL,{id:"selectedUserId",onChange:this.handleUserChanged,children:[(0,Ye.jsx)("option",{value:""}),this.state.searchResults.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.value},"user".concat(e.id)))]})]})),(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("form",{id:"userPickerForm",children:[(0,Ye.jsxs)(WL,{name:"searchType",className:e.filterType,children:[(0,Ye.jsx)("option",{value:VL.ByName,children:En("name")}
2),(0,Ye.jsx)("option",{value:VL.ByEmail,children:En("email")}),(0,Ye.jsx)("option",{value:VL.ByTicketId,children:En("ticketId")}),(0,Ye.jsx)("option",{value:VL.ByComponentId,children:En("componentId")}),(0,Ye.jsx)("option",{value:VL.BySubmissionId,children:En("submissionId")})]}),(0,Ye.jsx)(uo,{id:"userPickerInput",required:!0,name:"findText",className:e.filterInput}),(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"primary",onClick:this.onFilter,disabled:this.state.loading,children:En("filter")})]}),(0,Ye.jsx)("p",{}),n,(0,Ye.jsx)("p",{}),(0,Ye.jsx)(kr,{disabled:!this.state.hasSelectedUser,variant:"contained",color:"secondary",onClick:()=>this.onUserSelected(),children:t}),(0,Ye.jsxs)(Aa,{open:this.state.showingError,onClose:()=>{this.setState({showingError:!1})},"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:En(this.state.lastError)})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:()=>{this.setState({showingError:!1})},color:"secondary",variant:"contained",autoFocus:!0,children:En("ok")})})]})]})}}const qL=pn(GL,e=>({filterType:{background:"rgba(0,0,0,0.09)",borderTopLeftRadius:"4px",borderTopRightRadius:"4px",marginRight:e.spacing(1)},filterInput:{marginRight:e.spacing(1)},userDropdown:{minWidth:"400px"}}));class KL extends r.Component{constructor(){super(...arguments),this.displayName=KL.name,this.onUserSelected=e=>{fetch("SvrISR/Impersonate?userId=".concat(e),{credentials:"same-origin",method:"post"}).then(e=>e.json()).then(e=>{e.success?(this.props.updateUserInfo(e.userInfo),this.props.updateSubmission({redirectLocation:"/ticket"})):alert(En(e.error))})},this.unimpersonate=()=>{var e=document.getElementById("btnUnimpersonate");e&&e.click()}}render(){const{classes:e,userInfo:t}=this.props;let n=(0,Ye.jsx)(qL,{selectButtonText:En("impersonateUser"),onUserSelected:this.onUserSelected});return t.isImpersonating&&(n=(0,Ye.jsx)(kr,{variant:"contained",color:"secondary",onClick:()=>this.unimpersonate(),children:jn("stopImpersonating",t.impersonator)})),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("impersonateUser")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),n]})}}const YL=pn(KL,e=>({heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"}})),XL=(0,wi.A)((0,Ye.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function ZL(e){return(0,ut.Ay)("MuiTableSortLabel",e)}const QL=(0,ct.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),JL=["active","children","className","direction","hideSortIcon","IconComponent"],$L=(0,lt.Ay)(fr,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(QL.icon)]:{opacity:.5}},["&.".concat(QL.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(QL.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}}),eR=(0,lt.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t["iconDirection".concat((0,st.A)(n.direction))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,Be.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===n.direction&&{transform:"rotate(0deg)"},"asc"===n.direction&&{transform:"rotate(180deg)"})}),tR=r.forwardRef(function(e,t){const n=(0,Ue.b)({props:e,name:"MuiTableSortLabel"}
2),{active:r=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=XL}=n,c=(0,rt.A)(n,JL),u=(0,Be.A)({},n,{active:r,direction:a,hideSortIcon:s,IconComponent:l}),d=(e=>{const{classes:t,direction:n,active:r}=e,i={root:["root",r&&"active"],icon:["icon","iconDirection".concat((0,st.A)(n))]};return(0,ot.A)(i,ZL,t)})(u);return(0,Ye.jsxs)($L,(0,Be.A)({className:(0,it.A)(d.root,o),component:"span",disableRipple:!0,ownerState:u,ref:t},c,{children:[i,s&&!r?null:(0,Ye.jsx)(eR,{as:l,className:(0,it.A)(d.icon),ownerState:u})]}))}),nR=Object.freeze({Empty:0,Original:1,HardCropped:2,PublisherSupplied:3});class rR extends r.Component{constructor(e){super(e),this.displayName=rR.name,this.getLatestImageType=e=>{switch(SD[e]){case SD.ReadyToApprovePrecheck:case SD.ReadyToPosition:case SD.ReadyToSoftCrop:case SD.SoftCropping:case SD.SoftCropFailed:case SD.ReadyToHardCrop:case SD.HardCropping:case SD.HardCropFailed:case SD.HardCropCrashed:case SD.ReadyToGenerateTemplate:case SD.GeneratingTemplates:case SD.GenerateTemplatesFailed:return nR.Original;case SD.ReadyToApprovePosition:case SD.ReadyToPreflight:case SD.Preflighting:case SD.PreflightPassed:case SD.PreflightFailed:case SD.PreflightCrashed:case SD.ReadyToTransmit:case SD.ReadyToAddCropMarks:case SD.AddingCropMarks:case SD.AddCropMarksFailed:case SD.AddCropMarksCrashed:case SD.ReadyToCreatePlateReadyFile:case SD.CreatingPlateReadyFile:case SD.CreatingPlateReadyFileFailed:case SD.CreatingPlateReadyFileCrashed:case SD.ReadyToAlterGeometry:case SD.AlteringGeometry:case SD.AlteringGeometryCrashed:case SD.PostProcessingComplete:return nR.HardCropped;case SD.PublisherSupplied:return nR.PublisherSupplied;default:return nR.Empty}},this.getImageSrc=(e,t,n)=>{let r=e.hash?"&hash=".concat(e.hash):"";if(t)return"file/StreamFile?fileType=".concat(t,"&id=").concat(e.id).concat(r);switch(n||(n=e.status),this.getLatestImageType(n)){case nR.HardCropped:return"file/StreamFile?fileType=HardCropFull&id=".concat(e.id).concat(r);case nR.Original:return"file/StreamFile?fileType=OriginalFull&id=".concat(e.id).concat(r);case nR.PublisherSupplied:return"file/StreamPublisherSuppliedImage?tcid=".concat(e.ticketId);default:return""}},this.showDialog=()=>{let e=this.state.imageSource,t=this.state.componentId;e&&t===this.props.component.id||(e=this.getImageSrc(this.props.component,this.props.type,this.props.status),t=this.props.component.id),this.setState({showDialog:!0,imageSource:e,componentId:t})},this.closeDialog=()=>{this.setState({showDialog:!1})},this.state={showDialog:!1,imageSource:null,componentId:null}}render(){const{classes:e}=this.props;let t="",n="";return this.props.showLink?t=(0,Ye.jsx)(kr,{className:e.linkButton,variant:"text",size:"small",disableRipple:!0,onClick:this.showDialog,children:this.props.linkText}):this.props.showImageThumbnail&&(t=(0,Ye.jsx)("img",{id:"PreviewImage",src:this.props.imageThumbnailSource,onClick:this.showDialog,style:{cursor:"pointer"},alt:jn("noImageFound",this.props.component.id)})),n=this.props.component?"".concat(En("ticket")," ").concat(this.props.component.ticketId," ").concat(En("filePreview")):"".concat(En("filePreview")),(0,Ye.jsxs)(r.Fragment,{children:[t,(0,Ye.jsxs)(Aa,{open:this.state.showDialog,"aria-labelledby":"image-preview-title",children:[(0,Ye.jsx)(Kl,{id:"image-preview-title",children:n}),(0,Ye.jsx)(za,{children:(0,Ye.jsx)("div",{className:e.imagePreview,children:(0,Ye.jsx)("img",{src:this.state.imageSource,alt:jn("noImageFound",this.props.component.id)})})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{color:"primary",variant:"contained",onClick:this.closeDialog,children:En("ok")})})]})]})}}const iR=pn(rR,e=>{var t={imagePreview:{"& img":{width:"100%",height:"100%"}},linkButton:{verticalAlign:"baseline",padding:0,textDecoration:"underline",color:e.palette.primary.main,"&:hover":{backgroundColor:"inherit",textDecoration:"underline"},"&:active":{color:e.palette.primary.light}}};return t=rc(e,t,"ImagePreviewDialog")});class oR extends r.Component{constructor(e){super(e),this.displayName=oR.name,this.desc=(e,t,n,r)=>{var i=void 0,o=void 0;if(r)return"proofReceived"===n?this.sortByProofReceived(e,t,n):(i=e[n]?e[n]:0,(o=t[n]?t[n]:0)<i?-1:o>i?1:0);if("urls"===n){i="",o="";for(let t=0;t<e[n].length;t++)i+=e[n]?e[n].toString().toLowerCase():"";for(let e=0;e<t[n].length;e++)o+=t[n]?t[n].toString().toLowerCase():""}else i=e[n]?e[n].toString().toLowerCase():"",o=t[n]?t[n].toString().toLowerCase():"";return-i.localeCompare(o)},this.sortByProofReceived=(e,t,n)=>{let r=e[n]?e[n]:0,i=t[n]?t[n]:0;if(i<r)return-1;if(i>r)return 1;if(r&&i){var o=e.proofReceivedOn,a=t.proofReceivedOn,s=Date.parse(o.toLocaleDateString()+" "+o.toLocaleTimeString()),l=Date.parse(a.toLocaleDateString()+" "+a.toLocaleTimeString());if(l<s)return-1;if(l>s)return 1}return 0},this.stableSort=(e,t)=>{const n=e.map((e,t)=>[e,t]);return n.sort((e,n)=>{const r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]}),n.map(e=>e[0])}
2,this.getSorting=(e,t,n)=>"desc"===e?(e,r)=>this.desc(e,r,t,n):(e,r)=>-this.desc(e,r,t,n),this.onSortChange=(e,t)=>{const n=e;let r="desc";this.state.orderBy===e&&"desc"===this.state.order&&(r="asc"),this.setState({order:r,orderBy:n,isNumber:t})},this.toggleDetails=e=>{let{currentReport:t}=this.props;e.ticketDetailsExpanded=!e.ticketDetailsExpanded,this.props.updateReport(t)},this.setProofReceived=e=>{let{currentReport:t,updateReport:n}=this.props;var r=t.tickets.find(t=>t.ticketId===Number(e.target.id));r&&(r.proofReceived=e.target.checked,fetch("SvrIsr/SetProofReceived?tid=".concat(r.ticketId,"&isReceived=").concat(e.target.checked),{method:"post",credentials:"same-origin"}).then(e=>e.text()).then(e=>{e&&(e=JSON.parse(e,Zl),r.proofReceivedOn=e.proofReceivedOn,n(t))}))},this.onComponentChange=e=>{let{currentReport:t}=this.props;var n=t.tickets.find(t=>t.ticketId===Number(e.target.id));if(n){var r=n.components.find(t=>t.id===Number(e.target.value));r&&(n.selectedComponent=r)}this.props.updateReport(t)},this.state={order:"desc",orderBy:"ticketId",isNumber:!0}}componentDetails(e,t){return(0,Ye.jsx)(dL,{className:e.rowDetails,children:(0,Ye.jsx)(JP,{className:e.bodyDetails,colSpan:23,children:(0,Ye.jsxs)("div",{className:e.detailsContainer,children:[(0,Ye.jsxs)("div",{className:e.ticketComponentDetails,children:[(0,Ye.jsxs)(Tn,{variant:"subtitle2",className:e.detailSectionLabel,children:[En("componentId"),":"]}),(0,Ye.jsx)(Pr,{margin:"dense",required:!0,fullWidth:!0,className:e.component,variant:"standard",children:(0,Ye.jsxs)(WL,{id:t.ticketId.toString(),name:"componentId",value:null!==t.selectedComponent?t.selectedComponent.id:"",onChange:this.onComponentChange,children:[(0,Ye.jsx)("option",{value:""}),t.components.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.id},e.id))]})},"componentId")]}),(0,Ye.jsxs)("div",{className:e.currentComponentDetailsContainer,children:[(0,Ye.jsx)("div",{className:e.currentComponentDetails,children:(0,Ye.jsx)(FP,{children:(0,Ye.jsxs)(qP,{children:[(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("filename")}),(0,Ye.jsx)(JP,{className:e.detailsBody,children:t.isPrint?t.selectedComponent.filename:[(0,Ye.jsx)("a",{id:"ticketComponentFilename",href:"/file/streamfile?fileType=MediaFile&id="+t.selectedComponent.Id,children:t.selectedComponent.filename})]})]}),(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("componentStatus")}),(0,Ye.jsx)(JP,{className:e.detailsBody,children:t.selectedComponent.status})]}),(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("publisherSupplied")}),(0,Ye.jsx)(JP,{className:e.detailsBody,children:t.selectedComponent.isPublisherSupplied.toString()})]}),(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("color")}),(0,Ye.jsx)(JP,{className:e.detailsBody,children:t.selectedComponent.color})]})]})})}),(0,Ye.jsx)("div",{className:e.currentComponentReports,children:(0,Ye.jsx)(FP,{children:(0,Ye.jsxs)(qP,{children:[t.selectedComponent.precheckReportExists&&(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("precheckReport")}),(0,Ye.jsx)(JP,{className:e.detailsBody,children:(0,Ye.jsx)("a",{id:"originalPdf",href:"file/StreamFile?fileType=PrecheckReport&id="+t.selectedComponent.id,target:"_blank",rel:"noopener noreferrer",children:En("precheckReport")})})]}),t.selectedComponent.preflightReportExists&&(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("preflightReport")}),(0,Ye.jsx)(JP,{className:e.detailsBody,children:(0,Ye.jsx)("a",{id:"originalPdf",href:"file/StreamFile?fileType=PreflightReport&id="+t.selectedComponent.id,target:"_blank",rel:"noopener noreferrer",children:En("preflightReport")})})]}),t.isConfirmationAvailable&&(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("confirmationReceipt")}),(0,Ye.jsx)(JP,{className:e.detailsBody,children:(0,Ye.jsx)("a",{id:"originalPdf",href:"file/StreamFile?fileType=Receipt&id="+t.ticketId,target:"_blank",rel:"noopener noreferrer",children:En("confirmationReceipt")})})]})]})})})]}),(0,Ye.jsx)("div",{className:e.currentComponentFiles,children:!t.selectedComponent.isPublisherSupplied&&t.isPrint&&[(0,Ye.jsx)(FP,{children:(0,Ye.jsxs)(qP,{children:[t.selectedComponent.originalExists&&[(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("original")}),(0,Ye.jsxs)(JP,{className:e.detailsBody,children:[(0,Ye.jsx)(Tn,{variant:"subtitle2",children:(0,Ye.jsx)(iR,{showLink:!0,linkText:En("originalFull"),component:t.
2selectedComponent,status:"ReadyToPosition"})}),(0,Ye.jsx)(Tn,{variant:"subtitle2",children:(0,Ye.jsx)("a",{id:"originalPdf",href:"file/StreamFile?fileType=OriginalPdf&id="+t.selectedComponent.id,target:"_blank",rel:"noopener noreferrer",children:En("originalPdf")})})]})]},"original")],t.selectedComponent.softCropExists&&[(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("softCrop")}),(0,Ye.jsx)(JP,{className:e.detailsBody,children:(0,Ye.jsx)("a",{id:"softCropPdf",href:"file/StreamFile?fileType=SoftCropPdf&id="+t.selectedComponent.id,target:"_blank",rel:"noopener noreferrer",children:En("softCropPdf")})})]},"softCropo")],t.selectedComponent.hardCropExists&&[(0,Ye.jsxs)(dL,{className:e.detailsRow,children:[(0,Ye.jsx)(JP,{className:e.detailsBody,children:En("hardCrop")}),(0,Ye.jsxs)(JP,{className:e.detailsBody,children:[(0,Ye.jsxs)(Tn,{variant:"subtitle2",children:[(0,Ye.jsx)(iR,{showLink:!0,linkText:En("hardCropFull"),component:t.selectedComponent}),t.selectedComponent.isSplittingSpreadComplete&&t.selectedComponent.pageSuffixes.map((e,n)=>(0,Ye.jsxs)("a",{id:"hardCropPage",href:"file/StreamFile?fileType=HardCropPage&id="+t.selectedComponent.id+"&index="+n,target:"_blank",rel:"noopener noreferrer",children:[" ",e]}))]}),t.selectedComponent.hardCropWithmarksExists&&[(0,Ye.jsxs)(Tn,{variant:"subtitle2",children:[(0,Ye.jsx)("a",{id:"hardCropMarksFull",href:"file/StreamFile?fileType=HardCropMarksFull&id="+t.selectedComponent.id,target:"_blank",rel:"noopener noreferrer",children:En("hardCropFullWithCropMarks")}),t.selectedComponent.isSplittingSpreadComplete&&t.selectedComponent.pageSuffixes.map((e,n)=>(0,Ye.jsxs)("a",{id:"hardCropMarksPage",href:"file/StreamFile?fileType=HardCropMarksPage&id="+t.selectedComponent.id+"&index="+n,target:"_blank",rel:"noopener noreferrer",children:[" ",e]}))]})],(0,Ye.jsx)(Tn,{variant:"subtitle2",children:(0,Ye.jsx)(iR,{showLink:!0,linkText:En("hardCropFullWithTemplate"),component:t.selectedComponent,type:"HardCropFullWithTemplate"})}),(0,Ye.jsxs)(Tn,{variant:"subtitle2",children:[(0,Ye.jsx)("a",{id:"HardCropPdf",href:"file/StreamFile?fileType=HardCropPdf&id="+t.selectedComponent.id,target:"_blank",rel:"noopener noreferrer",children:En("hardCropPdf")}),t.selectedComponent.isPdfSplit&&t.selectedComponent.isSplittingSpreadComplete&&t.selectedComponent.pageSuffixes.map((e,n)=>(0,Ye.jsxs)("a",{id:"hardCropFullWithTemplatePage",href:"file/StreamFile?fileType=HardCropPagePdf&id="+t.selectedComponent.id+"&index="+n,target:"_blank",rel:"noopener noreferrer",children:[" ",e]}))]}),t.selectedComponent.hardCropWithmarksExists&&[(0,Ye.jsxs)(Tn,{variant:"subtitle2",children:[(0,Ye.jsx)("a",{id:"hardCropMarksPdf",href:"file/StreamFile?fileType=HardCropMarksPdf&id="+t.selectedComponent.id,target:"_blank",rel:"noopener noreferrer",children:En("hardCropPdfWithCropMarks")}),t.selectedComponent.isPdfSplit&&t.selectedComponent.isSplittingSpreadComplete&&t.selectedComponent.pageSuffixes.map((e,n)=>(0,Ye.jsxs)("a",{id:"hardCropMarksPagePdf",href:"file/StreamFile?fileType=HardCropMarksPagePdf&id="+t.selectedComponent.id+"&index="+n,target:"_blank",rel:"noopener noreferrer",children:[" ",e]}))]})]]})]},"hardCrop")]]})},"componentFiles")]})]})})},"ticketDetails".concat(t.ticketId))}render(){const{classes:e}=this.props,{order:t,orderBy:n,isNumber:r}=this.state;let{currentReport:i}=this.props;var o="";if(null!==i.publications){var a=i.publications.find(e=>e.id===i.publicationId);a&&(o=a.name)}if(null!==i.issues){var s=i.issues.find(e=>e.id===i.issueId);s&&(o+=", "+s.name)}o.length>0&&(o+=" "+En("tickets"));let l=[{id:"ticketDetails",label:"",sortable:!1},{id:"ticketId",label:En("ticketId"),sortable:!0,isNumber:!0},{id:"submissionId",label:En("submissionId"),sortable:!0,isNumber:!0},{id:"ticketType",label:En("ticketType"),sortable:!0},{id:"materialTrackingNumber",label:En("materialTrackingNumber"),sortable:!0},{id:"colors",label:En("colors"),sortable:!0},{id:"details",label:En("details"),sortable:!1},{id:"adSpecs",label:En("adSpecs"),sortable:!1},{id:"status",label:En("status"),sortable:!0},{id:"proofIncluded",label:En("proof"),sortable:!0},{id:"proofPaid",label:En("proofPaid"),sortable:!0},{id:"proofReceived",label:En("proofReceived"),sortable:!0,isNumber:!0},{id:"advertiser",label:En("advertiser"),sortable:!0},{id:"headline",label:En("headline"),sortable:!0},{id:"product",label:En("product"),sortable:!0},{id:"billable",label:En("billable"),sortable:!0},{id:"createdBy",label:En("createdBy"),sortable:!0},{id:"firstName",label:En("firstName"),sortable:!0},{id:"lastName",label:En("lastName"),sortable:!0},{id:"createdOn",label:En("createdOn"),sortable:!0,isNumber:!0},{id:"submittedOn",label:En("submittedOn"),sortable:!0,isNumber:!0},{id:"size",label:En("size"),sortable:!0},{id:"urls",label:En("url"),sortable:!0}],c=this.props.userInfo.isClientAdminAndHasPublishersAssigned;return c&&l.splice(l.findIndex(e=>"billable"==e.id),1),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{className:e.header,variant:"h6",children:o}),(0,Ye.jsxs)(FP,{className:e.table,children:[(0,Ye.jsx)(iL,{children:(0,Ye.jsx)(dL,{className:e.row,children:l.map(r=>(0,Ye.jsx)(JP,{className:e.head,sortDirection:n===r.id&&t,children:r.sortable?[(0,Ye.jsx)(tR,{classes:{root:e.sortLabel,active:e.sortLabel,icon:e.sortLabel},active:n===r.id,direction:t,onClick:()=>this.onSortChange(r.id,r.isNumber),children:r.label},r.id)]:r.label},r.id))})}
2),(0,Ye.jsx)(qP,{children:this.stableSort(i.tickets,this.getSorting(t,n,r)).map(t=>{var n=[];return n.push((0,Ye.jsxs)(dL,{className:e.row,children:[(0,Ye.jsx)(JP,{className:e.body,onClick:()=>this.toggleDetails(t),children:(0,Ye.jsx)("span",{style:{cursor:"pointer"},children:t.ticketDetailsExpanded?[(0,Ye.jsx)(rD.A,{style:{verticalAlign:"middle"}},"arrow")]:[(0,Ye.jsx)(MD.A,{style:{verticalAlign:"middle"}},"arrow")]})}),(0,Ye.jsx)(JP,{className:e.body,children:t.ticketId}),(0,Ye.jsx)(JP,{className:e.body,children:t.submissionId}),(0,Ye.jsx)(JP,{className:e.body,children:t.ticketType}),(0,Ye.jsx)(JP,{className:e.body,children:t.materialTrackingNumber}),(0,Ye.jsx)(JP,{className:e.body,children:t.colors}),(0,Ye.jsx)(JP,{className:e.body,children:(0,Ye.jsx)(je,{id:t.ticketId,target:"_blank",to:"/isr/ticketDetails/".concat(t.ticketId),children:En("details")})}),(0,Ye.jsx)(JP,{className:e.body,children:(0,Ye.jsx)("a",{id:"adSpecs",href:t.adSpecs,target:"_AdSpecs",children:En("adSpecs")})}),(0,Ye.jsx)(JP,{className:e.body,children:t.statusDesc}),(0,Ye.jsx)(JP,{className:e.body,children:t.proofIncluded}),(0,Ye.jsx)(JP,{className:e.body,children:(0,Ye.jsx)(Di,{checked:t.proofPaid})}),(0,Ye.jsxs)(JP,{className:e.body,children:[(0,Ye.jsx)(Di,{name:"proofReceived",id:"chkProof_".concat(t.ticketId),value:t.proofReceived.toString(),checked:t.proofReceived,onChange:this.setProofReceived,className:e.detailsAreaCheckbox}),null!==t.proofReceivedOn?"".concat(t.proofReceivedOn.toLocaleDateString()," ").concat(t.proofReceivedOn.toLocaleTimeString()):""]}),(0,Ye.jsx)(JP,{className:e.body,children:t.advertiser}),(0,Ye.jsx)(JP,{className:e.body,children:t.headline}),(0,Ye.jsx)(JP,{className:e.body,children:t.product}),!c&&(0,Ye.jsx)(JP,{className:e.body,children:(0,Ye.jsx)(Di,{checked:t.billable})}),(0,Ye.jsx)(JP,{className:e.body,children:t.createdBy}),(0,Ye.jsx)(JP,{className:e.body,children:t.firstName}),(0,Ye.jsx)(JP,{className:e.body,children:t.lastName}),(0,Ye.jsxs)(JP,{className:e.body,children:[t.createdOn.toLocaleDateString()," ",t.createdOn.toLocaleTimeString()]}),(0,Ye.jsx)(JP,{className:e.body,children:null!==t.submittedOn?"".concat(t.submittedOn.toLocaleDateString()," ").concat(t.submittedOn.toLocaleTimeString()):""}),(0,Ye.jsx)(JP,{className:e.body,children:t.size}),(0,Ye.jsx)(JP,{className:e.body,children:t.urls})]},t.ticketId)),t.ticketDetailsExpanded&&(null===t.selectedComponent?n.push((0,Ye.jsx)(dL,{className:e.rowDetails,children:(0,Ye.jsx)(JP,{className:e.bodyDetails,colSpan:22,children:(0,Ye.jsx)(Tn,{variant:"subtitle2",className:e.detailSectionLabel,children:En("noComponents")})})},"ticketDetails".concat(t.ticketId))):n.push(this.componentDetails(e,t))),n})})]})]})}}const aR=pn(oR,e=>({header:{paddingLeft:3,fontWeight:"bold"},table:{borderCollapse:"separate",borderSpacing:"3px 0px"},head:{fontSize:14,height:40,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap",backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,textAlign:"center","&:hover":{backgroundColor:e.palette.primary.dark}},sortLabel:{color:"".concat(e.palette.primary.contrastText," !important"),"&:hover":{color:e.palette.primary.contrastText,fontWeight:"bold"},"&:focus":{color:e.palette.primary.contrastText,fontWeight:"bold"}},row:{height:25,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap"},rowDetails:{height:100,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap",backgroundColor:"#DDD",borderColor:"black"},body:{padding:"0px 3px 0px 3px"}
2,bodyDetails:{padding:"0px 3px 0px 3px",borderBottom:"1px solid black",height:"100%"},component:{width:200,marginLeft:3},detailsContainer:{display:"flex"},detailSectionLabel:{display:"inline-block",marginRight:25,verticalAlign:"middle",margin:"12px 25px 0px 15px"},detailsRow:{height:25},detailsBody:{padding:"4px 20px 4px 4px",border:"none"},ticketComponentDetails:{marginRight:35},currentComponentDetailsContainer:{display:"flex",flexDirection:"column",justifyContent:"space-between"},currentComponentReports:{marginTop:10}}),{withTheme:!0});var sR=n(34109),lR=n(26581),cR=n(66885);const uR=Object.freeze({Uploading:1,Uploaded:2,Delete:3});class dR extends r.Component{constructor(e){super(e),this.displayName=dR.name,this.isrEmailInit=()=>{this.setState({loading:!0}),fetch("SvrIsr/IsrEmailLogin?ticketId=".concat(this.props.currentReport.ticket.id),{method:"post",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.isAuthenticated?this.setState({currentUrl:e.currentUrl},()=>{this.initEmailFormData(e),this.setState({loading:!1,isAuthenticated:!0,showLoginDialog:!1,showEmailDialog:!0})}):(this.initLoginFormData(),this.setState({loading:!1,isAuthenticated:!1,showLoginDialog:!0,showEmailDialog:!1,currentUrl:e.currentUrl}))})},this.closeErrorDialog=()=>{this.setState({error:"",errorMessage:"",showError:!1})},this.initLoginFormData=()=>{let{userData:e}=this.state;e.username="",e.password="",e.email=null,e.officePhone=null,e.title=null,this.setState({userData:e})},this.handleLoginFormChange=e=>{let t=this.state.userData;t[e.target.name]=e.target.value,this.setState({userData:t})},this.handleLoginFormSubmit=e=>{if(!this.state.submittingLoginDialog){if(!document.getElementById("loginForm").checkValidity())return;e.preventDefault(),this.setState({submittingLoginDialog:!0},()=>{fetch("SvrIsr/IsrEmailLoginUser",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(Fe(Fe({},this.state.userData),{},{ticketId:this.props.currentReport.ticket.id}))}).then(e=>e.json()).then(e=>{!0===e.isAuthenticated?this.setState({currentUrl:e.currentUrl},()=>{this.initEmailFormData(e),this.setState({loading:!1,submittingLoginDialog:!1,isAuthenticated:!0,showLoginDialog:!1,showEmailDialog:!0})}):this.setState({loading:!1,submittingLoginDialog:!1,error:e.error,showError:!0,currentUrl:e.currentUrl})})})}return!1},this.closeLoginDialog=()=>{this.setState({showLoginDialog:!1})},this.initEmailFormData=e=>{const{currentReport:t}=this.props;let{userData:n,emailData:r}=this.state;n.username=e.username,n.email=e.email,n.officePhone=e.officePhone,n.title=e.title,r.from=n.email,r.to=t.ticket.contactEmail,r.cc=n.email,e.contactInfo&&""!==e.contactInfo&&(r.cc+=", "+e.contactInfo),r.ticketId=t.ticket.id,this.setEmailSubject(r,t),this.setEmailBodyContent(r),this.setEmailAttachments(r,t),this.setState({userData:n,emailData:r})},this.setEmailSubject=e=>{const{currentReport:t}=this.props;let n=t.ticket.materialTrackingNumber?t.ticket.materialTrackingNumber:"";e.subject=jn("isrEmailReason_AdConcern_Subject",t.ticket.issueName,t.ticket.publicationName,t.ticket.advertiser,t.ticket.id,n)},this.setEmailBodyContent=e=>{let{editorState:t}=this.state;var n=cR.renderToStaticMarkup(this.renderEmailBodyContent());const r=DL()(n),i=EL.ContentState.createFromBlockArray(r.contentBlocks,r.entityMap);t=EL.EditorState.createWithContent(i),e&&(e.body=NL()((0,EL.convertToRaw)(t.getCurrentContent()))),this.setState({editorState:t})},this.setEmailBodyContentRefresh=()=>{let{emailData:e,editorState:t}=this.state;var n=cR.renderToStaticMarkup(this.renderEmailBodyContent());const r=DL()(n),i=EL.ContentState.createFromBlockArray(r.contentBlocks,r.entityMap);t=EL.EditorState.createWithContent(i),e.body=NL()((0,EL.convertToRaw)(t.getCurrentContent())),this.setState({editorState:t})},this.setEmailAttachments=(e,t)=>{if(e.ticketReceipt=!1,e.originalJpeg=[],e.hardCropJpeg=[],e.hardCropTemplateJpeg=[],e.precheckReport=[],e.preflightReport=[],e.emailAttachments=[],t.ticket.isPrint)for(var n in t.ticket.components){let r=t.ticket.components[n];r.hardCropExists&&!r.isPublisherSupplied&&e.hardCropTemplateJpeg.push(r.i
2d)}},this.renderEmailBodyContent=()=>{const{userData:e}=this.state;let{currentReport:t}=this.props,n=t.ticket.refinedPublisherName,i=t.ticket.publicationName,o=t.ticket.issueName,a=t.ticket.advertiser,s=this.state.currentUrl;return(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:(0,Ye.jsx)("span",{children:En("isrEmailGreeting")})}),(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:(0,Ye.jsx)("span",{children:jn("isrEmailBody_AdConcern_Part1",n,a,o,i)})}),(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:(0,Ye.jsx)("span",{children:En("isrEmailBody_AdConcern_Part2")})}),(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:(0,Ye.jsx)("span",{style:{color:"#E25041"},children:"-----------------"})}),(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:(0,Ye.jsx)("span",{children:En("isrEmailBody_AdConcern_Part3")})}),(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:(0,Ye.jsxs)("span",{children:[En(this.state.bodyTemplate),(0,Ye.jsx)("a",{href:s,children:s})]})}),(0,Ye.jsxs)(Tn,{variant:"body2",paragraph:!0,children:[(0,Ye.jsx)("span",{style:{color:"#005A96"},children:(0,Ye.jsx)("strong",{children:e.username})}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)("span",{style:{color:"#002C5F"},children:En("imagingServiceRepresentative")}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)("span",{style:{color:"#002C5F"},children:(0,Ye.jsx)("strong",{children:En("quad")})}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)("span",{style:{color:"#002C5F"},children:En("quadSlogan")}),(0,Ye.jsx)("br",{}),null!==e.officePhone&&e.officePhone.length>0&&(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("span",{children:(0,Ye.jsx)("a",{style:{color:"#002C5F"},href:"tel:"+e.officePhone,children:e.officePhone})}),(0,Ye.jsx)("br",{})]}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)("a",{style:{color:"#005A96"},href:"mailto:"+e.email,children:e.email}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)("a",{style:{color:"#005A96"},href:En("quadWebsiteUrl"),children:En("quadWebsiteName")})]})]})},this.onEditorStateChange=e=>{let{emailData:t}=this.state;t.body=NL()((0,EL.convertToRaw)(e.getCurrentContent())),this.setState({editorState:e,emailData:t})},this.onTicketAttachmentChange=e=>{let{emailData:t}=this.state;if("ticketReceipt"===e.target.name)t.ticketReceipt=!t.ticketReceipt;else{var n=t[e.target.name].indexOf(Number(e.target.value));n>-1?t[e.target.name].splice(n,1):t[e.target.name].push(Number(e.target.value))}this.setState({emailData:t})},this.adNewAttachment=()=>{document.getElementById("attachment"+this.state.emailAttachmentsCounter).click()},this.onAttachmentAdded=e=>{let{emailData:t}=this.state;if(e.target.files.length>0)if(e.target.files[0].size>104857600)this.setState({error:"fileTooLarge",showError:!0});else{this.setState({disableAddAttachment:!0});var r={id:0,file:e.target.files[0],fileName:e.target.files[0].name,fileStatus:uR.Uploading,uploadProgress:0};n(5609);var i=new FormData;i.append("fileName",r.fileName),fetch("SvrIsr/BeginEmailAttachmentUpload",{method:"POST",credentials:"same-origin",body:i}).then(e=>e.json()).then(e=>{if(e.success&&null!==e.emailAttachmentId){r.id=e.emailAttachmentId;let i=new FormData,o=new XMLHttpRequest;i.append("emailAttachmentId",r.id),i.append("fileUpload",r.file);var n=this;o.addEventListener("load",function(e){n.onAttachmentUploadComplete(r.id,o.response)}),o.upload.addEventListener("progress",function(e){let t=e.loaded/e.total*100;n.updateAttachmentUploadProgress(r.id,t)}),o.responseType="json",o.open("post","SvrIsr/UploadEmailAttachment"),o.send(i),t.emailAttachments.push(r),this.setState({emailAttachmentsCounter:this.state.emailAttachmentsCounter+1,emailData:t})}else!1===e.valid&&e.errors?this.setState({disableAddAttachment:!1,error:e.error,errorMessage:e.errors,showError:!0}):this.setState({disableAddAttachment:!1,error:e.error,showError:!0})})}},this.updateAttachmentUploadProgress=(e,t)=>{let{emailData:n}=this.state;var r=n.emailAttachments.find(t=>t.id===e);r&&(r.uploadProgress=t,this.setState({disableAddAttachment:!0,emailData:n}))},this.onAttachmentUploadComplete=(e,t)=>{let{emailData:n}=this.state;if(t||(t={success:!1,error:"maxFileSizeError"}),t.success){var r=n.emailAttachments.find(t=>
2t.id===e);r.fileStatus=uR.Uploaded,r.file=null,this.setState({disableAddAttachment:!1,emailData:n})}},this.deleteAttachment=e=>{this.setState({disableAddAttachment:!0}),fetch("SvrIsr/DeleteEmailAttachment",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({emailAttachmentId:e})}).then(e=>e.json()).then(t=>{let{emailData:n}=this.state;if(t.success){let t=n.emailAttachments.find(t=>t.id===e);if(t){let e=n.emailAttachments.indexOf(t);e>=0&&n.emailAttachments.splice(e,1)}}else this.props.showBackgroundDialog(En(t.error));this.setState({disableAddAttachment:!1,emailData:n})})},this.handleEmailFormChange=e=>{let t=this.state.emailData;t[e.target.name]=e.target.value,this.setState({emailData:t})},this.handleEmailFormSubmit=e=>{const{editorState:t}=this.state;if(!this.state.submittingEmailDialog){if(!document.getElementById("emailForm").checkValidity())return;e.preventDefault();const r=/(<([^>]+)>)/gi,i=/\r?\n|\r/g;if(NL()((0,EL.convertToRaw)(t.getCurrentContent())).replace(r,"").replace(i,"").length<=0)return this.setState({error:"isrEmailBody_Validation",showError:!0}),!1;this.setState({submittingEmailDialog:!0},()=>{n(5609),fetch("SvrIsr/SendIsrEmail",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(this.state.emailData)}).then(e=>e.json()).then(e=>{!0===e.success?this.setState({submittingEmailDialog:!1,showEmailDialog:!1}):this.setState({submittingEmailDialog:!1,error:e.error,errorMessage:e.errors,showError:!0})})})}return e.preventDefault(),!1},this.closeIsrEmailDialog=()=>{this.setState({showEmailDialog:!1})},this.updateBodyText=e=>{let{emailData:t}=this.state;this.setState({bodyTemplate:e.target.value},()=>this.setEmailBodyContent(t))},this.state={isAuthenticated:!1,loading:!1,showError:!1,error:"",errorMessage:"",showEmailDialog:!1,showLoginDialog:!1,submittingEmailDialog:!1,submittingLoginDialog:!1,editorState:EL.EditorState.createEmpty(),currentUrl:"",bodyTemplate:"isrEmailBody_AdConcern_NeedNewFile",userData:{username:"",password:"",email:null,officePhone:null,title:null},emailData:{from:"",to:"",cc:"",subject:"",body:"",ticketId:null,ticketReceipt:!1,originalJpeg:[],hardCropJpeg:[],hardCropTemplateJpeg:[],precheckReport:[],preflightReport:[],emailAttachments:[]},disableAddAttachment:!1,emailAttachmentsCounter:0}}render(){const{classes:e}=this.props,{editorState:t}=this.state;let{currentReport:n}=this.props;const{userData:i,emailData:o,submittingEmailDialog:a,submittingLoginDialog:s}=this.state;let l="",c="",u="";return u=(0,Ye.jsx)(sI,{component:kr,onClick:()=>this.isrEmailInit(),disabled:this.state.loading,className:e.linkButton,children:En("sendIsrEmail")}),l=(0,Ye.jsxs)("form",{id:"emailForm",className:e.formFix,children:[(0,Ye.jsxs)("div",{className:e.emailTopSection,children:[(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,required:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"emailFrom",children:En("from")}),(0,Ye.jsx)(uo,{id:"emailFrom",name:"from",value:o.from,autoComplete:"off",onChange:this.handleEmailFormChange,disabled:!0})]},"emailFrom"),(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,required:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"emailTo",children:En("to")}),(0,Ye.jsx)(uo,{id:"emailTo",name:"to",value:o.to,autoComplete:"off",onChange:this.handleEmailFormChange,"aria-describedby":"email-to-helper-text"}),(0,Ye.jsx)(dD,{id:"email-to-helper-text",children:En("isrEmailInstruction")})]},"emailTo"),(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"emailCC",children:En("cc")}),(0,Ye.jsx)(uo,{id:"emailCC",name:"cc",value:o.cc,autoComplete:"off",onChange:this.handleEmailFormChange})]},"emailCC"),(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"emailSubject",children:En("subject")}),(0,Ye.jsx)(uo,{id:"emailSubject",name:"subject",value:o.subject,autoComplete:"off",onChange:this.handleEmailFormChange})]},"emailSubject"),(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"subjectTemplate",children:"Subject template"}),(0,Ye.jsxs)(Il,{labelId:"subject-template-label",id:"subject-template-label-id",value:this.state.bodyTemplate,onChange:this.updateBodyText,children:[(0,Ye.jsx)(_L,{value:"isrEmailBody_AdConcern_NeedNewFile",children:En("isrEmailBodyOption_NeedNewFile")}),(0,Ye.jsx)(_L,{value:"isrEmailBody_AdConcern_Run_As_Is",children:En("isrEmailBodyOption_RunAsIs")})]})]},"subjectTemplate")]}),(0,Ye.jsxs)("div",{className:e.fakeLabel,children:[En("body"),"\u2009*"]}),(0,Ye.jsx)(AL.Editor,{editorState:t,toolbarClassName:e.draftEditorToolbar,wrapperClassName:e.draftEditorWrapper,editorClassName:e.draftEditor,toolbarOnFocus:!0,editorStyle:{greenBackgroun
2d:{backgroundColor:"green"}},className:e.draftEditorContainer,onEditorStateChange:this.onEditorStateChange}),(0,Ye.jsxs)("div",{className:e.attachmentSection,children:[(0,Ye.jsxs)("div",{className:e.ticketAttachments,children:[(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("attachments"),":"]}),n.ticket.isConfirmationAvailable&&[(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),id:"ticketReceipt",name:"ticketReceipt",className:e.checkbox,checked:o.ticketReceipt,onChange:e=>this.onTicketAttachmentChange(e)}),label:En("ticketReceipt")})},"ticketReceipt")],n.ticket.isPrint&&n.ticket.components.map(t=>(0,Ye.jsxs)(r.Fragment,{children:[t.originalExists&&!t.isPublisherSupplied&&[(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),id:"originalJpeg",name:"originalJpeg",className:e.checkbox,checked:void 0!==o.originalJpeg.find(function(e){return e===t.id}),onChange:e=>this.onTicketAttachmentChange(e),value:t.id.toString()}),label:En("originalJpeg")+" - "+t.id})},"original")],t.hardCropExists&&!t.isPublisherSupplied&&[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),id:"hardCropJpeg",name:"hardCropJpeg",className:e.checkbox,checked:void 0!==o.hardCropJpeg.find(function(e){return e===t.id}),onChange:e=>this.onTicketAttachmentChange(e),value:t.id.toString()}),label:En("hardCropJpeg")+" - "+t.id}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),id:"hardCropTemplateJpeg",name:"hardCropTemplateJpeg",className:e.checkbox,checked:void 0!==o.hardCropTemplateJpeg.find(function(e){return e===t.id}),onChange:e=>this.onTicketAttachmentChange(e),value:t.id.toString()}),label:En("hardCropTemplateJpeg")+" - "+t.id})]},"hardCrop")],t.precheckReportExistsForSure&&!t.isPublisherSupplied&&[(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),id:"precheckReport",name:"precheckReport",className:e.checkbox,checked:void 0!==o.precheckReport.find(function(e){return e===t.id}),onChange:e=>this.onTicketAttachmentChange(e),value:t.id.toString()}),label:En("emailPrecheckReportInstruction")+" - "+t.id})},"precheckReport")],t.preflightReportExistsForSure&&!t.isPublisherSupplied&&[(0,Ye.jsx)("div",{children:(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),id:"preflightReport",name:"preflightReport",className:e.checkbox,checked:void 0!==o.preflightReport.find(function(e){return e===t.id}),onChange:e=>this.onTicketAttachmentChange(e),value:t.id.toString()}),label:En("emailPreflightReportInstruction")+" - "+t.id})},"preflightReport")]]},"ticketComponentFiles"))]}),(0,Ye.jsxs)("div",{className:e.userSuppliedAttachments,children:[(0,Ye.jsxs)(Tn,{variant:"body2",children:[En("attachDocument"),":"]}),null!==o.emailAttachments&&o.emailAttachments.map(t=>(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("input",{type:"file",id:t.key,style:{display:"none"},onChange:e=>this.onAttachmentAdded(e)}),t.fileStatus===uR.Uploading&&[(0,Ye.jsx)(JN,{variant:"determinate",value:t.uploadProgress})],t.fileStatus===uR.Uploaded&&[(0,Ye.jsx)(Tn,{variant:"body2",style:{height:21},children:(0,Ye.jsxs)("span",{children:[(0,Ye.jsx)(sI,{href:"File/StreamFile?fileType=EmailAttachment&id=".concat(t.id),className:e.link,alt:t.fileName,target:"_blank",children:t.fileName}),(0,Ye.jsx)(sI,{component:kr,className:e.link,onClick:()=>this.deleteAttachment(t.id),children:En("delete")})]})})]]},t.key)),(0,Ye.jsx)(sI,{component:kr,disabled:this.state.disableAddAttachment,className:e.linkButton,onClick:()=>this.adNewAttachment(),children:En("addNewAttachment")}),(0,Ye.jsx)("input",{type:"file",id:"attachment"+this.state.emailAttachmentsCounter,style:{display:"none"},onChange:e=>this.onAttachmentAdded(e)})]})]}),(0,Ye.jsx)("div",{className:e.forIE11,children:(0,Ye.jsx)("button",{id:"btnSubmitEmail",type:"submit",onClick:this.handleEmailFormSubmit})})]}),c=(0,Ye.jsxs)("form",{id:"loginForm",className:e.formFix,children:[(0,Ye.jsx)(Tn,{variant:"body2",children:En("isrEmailLoginDescription")}),(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"username",children:En("username")}),(0,Ye.jsx)(uo,{id:"username",name:"username",autoComplete:"username",value:i.username,onChange:this.handleLoginFormChange})]}),(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"password",children:En("password")}),(0,Ye.jsx)(uo,{name:"password",type:"password",id:"password",autoComplete:"current-password",value:i.password,onChange:this.handleLoginFormChange})]}),(0,Ye.jsx)("div",{className:e.forIE11,children:(0,Ye.jsx)("button",{id:"btnSubmitLogin",type:"submit",onClick:this.handleLoginFormSubmit})})]}),(0,Ye.jsxs)(r.Fragment,{children:[u,(0,Ye.jsxs)(Aa,{open:this.state.showEmailDialog,"aria-labelledby":"send-isr-email-title",maxWidth:"md",children:[(0,Ye.jsx)(Kl,{id:"support-request-title",children:En("emailTemplateSetup")}),(0,Ye.jsx)(za,{children:l}
2),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{this.closeIsrEmailDialog(!1)},color:"primary",children:En("cancel")}),(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>document.getElementById("btnSubmitEmail").click(),color:"secondary",disabled:a,children:En("send")}),a&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]}),(0,Ye.jsxs)(Aa,{open:this.state.showLoginDialog,"aria-labelledby":"isr-email-login",children:[(0,Ye.jsx)(Kl,{id:"support-request-title",children:En("login")}),(0,Ye.jsx)(za,{children:c}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{this.closeLoginDialog()},color:"primary",children:En("cancel")}),(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>document.getElementById("btnSubmitLogin").click(),color:"secondary",disabled:s,children:En("login")}),s&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]}),(0,Ye.jsxs)(Aa,{open:this.state.showError,onClose:this.closeErrorDialog,describedby:"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsxs)(Ha,{id:"alert-dialog-description",children:[(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.error)}),this.state.errorMessage.length>0&&(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.errorMessage)})]})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeErrorDialog,color:"secondary",variant:"contained",autoFocus:!0,children:En("ok")})})]})]})}}const pR=pn(dR,e=>{var t={formFix:{width:"100%"},forIE11:{display:"none"},emailTopSection:{"& > div":{marginTop:2}},fakeLabel:{fontFamily:e.typography.subtitle1.fontFamily,fontSize:"0.75rem",width:"100%",color:"rgba(0, 0, 0, 0.54)",paddingTop:e.spacing(1),marginBottom:e.spacing(.5)},checkbox:{padding:0,marginLeft:10},draftEditorWrapper:{position:"relative",marginBottom:5},draftEditorToolbar:{top:-84,position:"absolute",background:"#F3F3F3"},draftEditor:{height:"190px",border:"1px solid #919191",padding:5,borderRadius:2,fontFamily:e.typography.subtitle1.fontFamily},attachmentSection:{display:"flex"},ticketAttachments:{width:"50%",paddingLeft:5},userSuppliedAttachments:{width:"50%"},link:{textDecoration:"underline",padding:0,marginRight:e.spacing(1),"&:hover":{backgroundColor:"transparent"}},linkButton:{textDecoration:"underline",padding:"3px 4px 3px 0px","&:hover":{backgroundColor:"transparent"}},buttonProgress:{color:_o.A[500],position:"absolute",top:"calc(100% - 40px)",left:"calc(100% - 55px)",overflow:"hidden"}};return t=rc(e,t,"IsrEmail")});class hR extends r.Component{constructor(){super(...arguments),this.displayName=hR.name,this.formatFileSize=e=>{if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]},this.setProofReceived=e=>{let{currentReport:t,updateReport:n}=this.props;t.ticket.proofReceived=e.target.checked,fetch("SvrIsr/SetProofReceived?tid=".concat(t.ticket.id,"&isReceived=").concat(e.target.checked),{method:"post",credentials:"same-origin"}).then(e=>e.text()).then(e=>{e&&(e=JSON.parse(e,Zl),t.ticket.proofReceivedOn=e.proofReceivedOn,n(t))})},this.handleStatusChange=e=>{this.openStatusDialog(e.target.selectedOptions[0].dataset.componentid)},this.openStatusDialog=e=>{let{currentReport:t}=this.props;var n=t.ticket.components.find(t=>t.id===Number(e));n&&(n.openStatusDialog=!0),this.props.updateReport(t)},this.closeStatusDialog=(e,t)=>
2{let{currentReport:n}=this.props;var r=n.ticket.components.find(t=>t.id===e);if(r)if(r.openStatusDialog=!1,t){var i=document.getElementById("componentStatusId-"+e);null!==i&&void 0!==i&&void 0!==i.selectedOptions&&null!==i.selectedOptions&&i.selectedOptions.length>0&&fetch("SvrIsr/ChangeTicketComponentStatus?tcid=".concat(e,"&newStatus=").concat(i.selectedOptions[0].value),{method:"post",credentials:"same-origin"}).then(e=>e.text()).then(e=>{e&&(e=JSON.parse(e,Zl),n.ticket.proofReceivedOn=e.proofReceivedOn,this.props.updateReport(n))})}else this.props.updateReport(n)},this.getNewComponentStatus=e=>{var t=document.getElementById("componentStatusId-"+e);return null!==t&&void 0!==t&&void 0!==t.selectedOptions&&null!==t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0].text:""},this.renderTicketInformation=(e,t,n)=>{let i="",o="",{userInfo:a}=this.props;return i=(0,Ye.jsxs)("div",{id:"ticketDetails",className:e.reportSection,children:[(0,Ye.jsxs)("div",{className:e.detailsSectionLabel,children:[(0,Ye.jsx)(Tn,{variant:"h6",children:jn("ticketDetailsHeader",n.id)}),n.materialTrackingNumber&&n.materialTrackingNumber.length>0&&[(0,Ye.jsxs)(Tn,{variant:"h6",children:[" - ",n.materialTrackingNumber]},"materialTrackingNumber")],!a.isClientAdminAndHasPublishersAssigned&&(0,Ye.jsx)(pR,{currentReport:t})]}),(0,Ye.jsx)(FP,{className:e.detailsTable,children:(0,Ye.jsxs)(qP,{children:[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("status"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.status})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("ticketType"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.mediaType})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("submissionId"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.submissionId})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("name"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.name})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("headline"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.headline})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("publisher"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.publisherName})]}),n.publisherNotes&&n.publisherNotes.length>0&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsx)(JP,{className:e.detailsTableLabel,children:En("publisherNotes")}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.publisherNotes})]})],(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("advertiser"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.advertiser})]}),n.advertiserNotes&&n.advertiserNotes.length>0&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("advertiserNotes"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.advertiserNotes})]})],(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("publication"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.publicationName})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("issue"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.issueName})]}),n.isPrint&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("size"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.size&&(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("span",{children:n.size.name}),0!==n.size.displayHeight&&0!==n.size.displayWidth&&[(0,Ye.jsxs)("span",{children:[" ",n.size.displayWidth," x ",n.size.displayHeight]},"ticketSizeValue")]]})})]},"ticketSize")],(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("product"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.product})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("proofIncluded"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.proofIncluded})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("proofReceived"),":"]}),(0,Ye.jsxs)(JP,{className:e.detailsTableValue,children:[(0,Ye.jsx)(Di,{disabled:this.props.userInfo.isClientAdminAndHasPublishersAssigned,name:"proofReceived",value:n.proofReceived.toString(),icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),checked:n.proofReceived,onChange:this.setProofReceived,className:e.detailsAreaCheckbox}),n.proofReceived&&[(0,Ye.jsx)("span",{style:{verticalAlign:"inherit",paddingLeft:5},children:null!==n.proofReceivedOn?"".concat(n.proofReceivedOn.toLocaleDateString()," ").concat(n.proofReceivedOn.toLocaleTimeString()):""})]]})]}),!n.isPrint&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("fileType"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.fileFlexibilityDesc})]})],n.staticResolutionTypeDescVisible&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("resolution"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.staticResolutionTypeDesc})]})],n.companyNameVisible&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("companyName"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.companyName})]})],n.titleVisible&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("title"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.title})]})],n.descriptionVisible&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("description"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.description})]})],n.tagsVisible&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("tags"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.tags})]})],n.urlsVisible&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("urls"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.urls.map(e=>(0,Ye.jsx)("div",{style:{display:"block"},children:e}))})]})],null!==n.proofRequest&&[(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("proofRequestId"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.proofRequest.i
2d})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("proofRequestCopies"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.proofRequest.copies})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("proofRequestEmail"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.proofRequest.email})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("proofRequestIsActive"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.proofRequest.isActive})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("proofRequestLastChangedOn"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.proofRequest.lastChangedOn})]})]})],(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("contactName"),":"]}),(0,Ye.jsxs)(JP,{className:e.detailsTableValue,children:[n.contactFirstName," ",n.contactLastName]})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("phone"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.contactPhone})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("email"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.contactEmail})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("createdOn"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.createdOn})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("createdBy"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.createdBy})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("lastChangedOn"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.lastChangedOn})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("lastChangedBy"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.lastChangedBy})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("submittedOn"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.submittedOn})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("submittedLate"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),checked:n.submittedLate,disabled:!0,className:e.detailsAreaCheckbox})})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("deliveryExtension"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),checked:n.needsProofDeliveryExtension,disabled:!0,className:e.detailsAreaCheckbox})})]}),n.isPrint&&[(0,Ye.jsxs)(r.Fragment,{children:[this.props.userInfo.isClientAdminAndHasPublishersAssigned?"":(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("isBillable"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),checked:n.isBillable,disabled:!0,className:e.detailsAreaCheckbox})})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("sendFoldingDummy"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),checked:n.sendFoldingDummy,disabled:!0,className:e.detailsAreaCheckbox})})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("precheckReports"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.components.map(e=>e.precheckReportExists?[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)("a",{href:"file/StreamFile?fileType=PrecheckReport&id="+e.id,target:"_blank",rel:"noopener noreferrer",children:[En("precheckReport")," - ",e.id]})})]:"")})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("preflightReports"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.components.map(e=>e.preflightReportExists?[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)("a",{href:"file/StreamFile?fileType=PreflightReport&id="+e.id,target:"_blank",rel:"noopener noreferrer",children:[En("preflightReport")," - ",e.id]})},e.id)]:"")})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("softCropPdf"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.components.map(e=>e.softCropExists?[(0,Ye.jsx)("div",{children:(0,Ye.jsxs)("a",{href:"file/StreamFile?fileType=SoftCropPdf&id="+e.id,target:"_blank",rel:"noopener noreferrer",children:[En("component")," - ",e.id]})},e.id)]:"")})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("hardCropPdf"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.components.map(e=>e.hardCropExists?[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("a",{href:"file/StreamFile?fileType=HardCropPdf&id="+e.id,target:"_blank",rel:"noopener noreferrer",children:[En("component")," - ",e.id]}),e.isPdfSplit&&e.isSplittingSpreadComplete&&e.pageSuffixes.map((t,n)=>(0,Ye.jsxs)("a",{id:"hardCropPage",href:"file/StreamFile?fileType=HardCropPagePdf&id="+e.id+"&index="+n,target:"_blank",rel:"noopener noreferrer",children:[" ",t]},"hardCropPage-".concat(n)))]},e.id)]:"")})]}),n.marksShouldBeAddedToHardCrop&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("hardCropPdfWithCropMarks"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.components.map(e=>e.hardCropWithMarksExists?[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("a",{id:"hardCropMarksFull",href:"file/StreamFile?fileType=HardCropMarksFull&id="+e.id,target:"_blank",rel:"noopener noreferrer",children:[En("component")," - ",e.id]}),e.isPdfSplit&&e.isSplittingSpreadComplete&&e.pageSuffixes.map((t,n)=>(0,Ye.jsxs)("a",{id:"hardCropMarksPage",href:"file/StreamFile?fileType=HardCropMarksPage&id="+e.id+"&index="+n,target:"_blank",rel:"noopener noreferrer",children:[" ",t]},"hardCropMarksPage-".concat(n)))]},e.id)]:"")})]})],n.isPlateReady&&[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("plateReadyPdf"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.components.map(e=>e.isPlateReady?[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("a",{id:"hardCropPlateReady",href:"file/StreamFile?fileType=HardCropPlateReadyPdf&id="+e.id,target:"_blank",rel:"noopener noreferrer",children:[En("component")," - ",e.id]}),e.isPdfSplit&&e.isSplittingSpreadComplete?e.pageSuffixes.map((t,n)=>(0,Ye.jsxs)("a",{id:"hardCropPlateReadyPdf",href:"file/StreamFile?fileType=HardCropPlateReadyPagePdf&id="+e.id+"&index="+n,target:"_blank",rel:"noopener noreferrer",children:[" ",t]},"hardCropPlateReadyPdf-".concat(n))):""]},e.id)]:"")})]},"hardCropPlateReady")],(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("confirmationReceipt"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.isConfirmationAvailable&&[(0,Ye.jsx)("div",{children:(0,Ye.jsx)("a",{href:"file/StreamFile?fileType=Receipt&id="+n.id,target:"_blank",rel:"noopener noreferrer",children:n.id})},"receipt")]})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("referenceDocuments"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:n.referenceDocuments.map(e=>(0,Ye.jsx)("div",{children:(0,Ye.jsx)("a",{href:"file/StreamFile?fileType=RefDoc&id="+e.id,target:"_blank",rel:"noopener noreferrer",children:e.originalFilename},"refDoc-".concat(e.id))}))})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("adSpecsUrl"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)("a",{href:n.publicationAdSpecsUrl,target:"_blank",rel:"noopener noreferrer",children:En("adSpecs")})})]})]},"billable")]]})})]}),o=(0,Ye.jsxs)("div",{id:"ticketHistory",className:e.reportSection,children:[(0,Ye.jsx)(Tn,{variant:"h6",children:jn("ticketHistorySectionHeader",n.id)}),(0,Ye.jsxs)(FP,{className:e.table,children:[(0,Ye.jsx)(iL,{children:(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableHead,children:En("status")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("message")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("application")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("machine")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("time")}
2)]})}),(0,Ye.jsx)(qP,{children:n.history.map((t,r)=>(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableValue,children:t.status}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.message}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.application}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.machine}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.time})]},"history_".concat(n.id,"_").concat(r)))})]})]}),(0,Ye.jsxs)(r.Fragment,{children:[i,o]})},this.renderComponentInformation=(e,t,n,i)=>{let o="",a="",s="",l="";return o=(0,Ye.jsxs)("div",{id:"ticketComponentDetails",className:e.componentDetailsOuterWrapper,children:[(0,Ye.jsx)(Tn,{variant:"h6",children:jn("ticketComponentDetailsSectionHeader",i.id)}),(0,Ye.jsxs)("div",{className:e.componentDetailsInnerWrapper,children:[(0,Ye.jsx)(FP,{className:e.detailsTable,children:(0,Ye.jsxs)(qP,{children:[n.isPrint&&null!==i.template&&[(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("trimSize"),":"]}),(0,Ye.jsxs)(JP,{className:e.detailsTableValue,children:[i.template.width," x ",i.template.height]})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("bleed"),":"]}),i.template.minBleed===i.template.maxBleed?(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:i.template.minBleed}):(0,Ye.jsxs)(JP,{className:e.detailsTableValue,children:[i.template.minBleed," - ",i.template.maxBleed]})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("safety"),":"]}),i.template.minSafety===i.template.maxSafety?(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:i.template.minSafety}):(0,Ye.jsxs)(JP,{className:e.detailsTableValue,children:[i.template.minSafety," - ",i.template.maxSafety]})]})]},"componentTemplate_".concat(i.id))],n.isPrint&&[(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("colors"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:i.colors})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("preflightErrors"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),checked:i.hasPreflightErrors,disabled:!0,className:e.detailsAreaCheckbox})})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("preflightWarnings"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),checked:i.hasPreflightWarnigs,disabled:!0,className:e.detailsAreaCheckbox})})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("preflightFlags"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)(Di,{icon:(0,Ye.jsx)(sR.A,{style:{fontSize:20}}),checkedIcon:(0,Ye.jsx)(lR.A,{style:{fontSize:20}}),checked:i.hasPreflightFlags,disabled:!0,className:e.detailsAreaCheckbox})})]})]},"printSpecificData")],(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("createdOn"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:i.createdOn})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("lastChangedOn"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:i.lastChangedOn})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("originalFile"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsx)("a",{href:"file/StreamFile?fileType="+(n.isPrint?"OriginalPdf":"MediaFIle")+"&id="+i.id,target:"_blank",rel:"noopener noreferrer",children:i.filename})})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("fileSize"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:this.formatFileSize(i.fileSize)})]}),(0,Ye.jsxs)(dL,{className:e.detailsTableRow,children:[(0,Ye.jsxs)(JP,{className:e.detailsTableLabel,children:[En("status"),":"]}),(0,Ye.jsx)(JP,{className:e.detailsTableValue,children:(0,Ye.jsxs)("div",{style:{display:"flex"},children:[i.statusDesc,null!==t.ticketComponentStatuses&&(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)(WL,{id:"componentStatusId-"+i.id,name:"statusId",onChange:this.handleStatusChange,className:e.ticketComponentStatusSelect,children:[(0,Ye.jsxs)("option",{value:"",children:[En("changeStatus"),"..."]}),t.ticketComponentStatuses.map(e=>(0,Ye.jsx)("option",{"data-componentid":i.id,value:e.id,children:e.name},e.id))]}),(0,Ye.jsxs)(Aa,{open:i.openStatusDialog,onClose:this.closeStatusDialog,children:[(0,Ye.jsx)(Kl,{id:"status-dialog-title",children:En("overrideStatusWarningTitle")}),(0,Ye.jsxs)(za,{children:[(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:En("overrideStatusWarning1")}),(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:En("overrideStatusWarning2")}),(0,Ye.jsx)(Tn,{variant:"body2",paragraph:!0,children:jn("overrideStatusWarning3",i.id)}),(0,Ye.jsxs)(Tn,{variant:"body2",paragraph:!0,children:[En("overrideStatusWarningOldStatus"),": ",(0,Ye.jsx)("b",{children:i.statusDesc})]}),(0,Ye.jsxs)(Tn,{variant:"body2",paragraph:!0,children:[En("overrideStatusWarningNewStatus"),": ",(0,Ye.jsx)("b",{children:this.getNewComponentStatus(i.id
2)})]})]}),(0,Ye.jsxs)(Ia,{children:[(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{this.closeStatusDialog(i.id,!1)},color:"primary",children:En("cancel")}),(0,Ye.jsx)(kr,{variant:"contained",onClick:()=>{this.closeStatusDialog(i.id,!0)},color:"secondary",children:En("ok")})]})]})]})]})})]})]})}),n.isPrint&&[(0,Ye.jsx)("div",{style:{marginLeft:30},children:(0,Ye.jsx)(iR,{showImageThumbnail:!0,imageThumbnailSource:"file/StreamFile?fileType=OriginalThumbnail&id="+i.id,component:i})},"originalThumnail")]]})]},i.id),a=(0,Ye.jsx)(r.Fragment,{children:i.preflightReportExists?[(0,Ye.jsxs)("div",{id:"ticketComponentPreflightResults",className:e.reportSection,children:[(0,Ye.jsx)(Tn,{style:{display:"inline-block"},variant:"h6",children:En("preflightingResults")})," -",(0,Ye.jsx)(Tn,{style:{display:"inline-block",whiteSpace:"pre-wrap"},variant:"body2",children:(0,Ye.jsx)(sI,{href:"File/StreamFile?fileType=PreflightReport&id=".concat(i.id),target:"_blank",rel:"noopener noreferrer",className:e.link,alt:i.id,children:" ".concat(En("preflightReport"))})}),(0,Ye.jsxs)(FP,{className:e.table,children:[(0,Ye.jsx)(iL,{children:(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableHead,children:En("type")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("message")})]})}),(0,Ye.jsx)(qP,{children:i.preflightResults&&i.preflightResults.map((t,n)=>(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableValue,children:t.type}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.message})]},"pf_".concat(i.id,"_").concat(n)))})]})]},"ticketComponentPreflightResults")]:""}),s=(0,Ye.jsx)(r.Fragment,{children:i.precheckReportExists?[(0,Ye.jsxs)("div",{id:"ticketComponentPrecheckResults",className:e.reportSection,children:[(0,Ye.jsx)(Tn,{style:{display:"inline-block"},variant:"h6",children:En("precheckResults")})," -",(0,Ye.jsx)(Tn,{style:{display:"inline-block",whiteSpace:"pre-wrap"},variant:"body2",children:(0,Ye.jsx)(sI,{href:"File/StreamFile?fileType=PrecheckReport&id=".concat(i.id),target:"_blank",rel:"noopener noreferrer",className:e.link,alt:i.id,children:" ".concat(En("precheckReport"))})}),(0,Ye.jsxs)(FP,{className:e.table,children:[(0,Ye.jsx)(iL,{children:(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableHead,children:En("type")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("message")})]})}),(0,Ye.jsx)(qP,{children:i.precheckResults&&i.precheckResults.map((t,n)=>(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableValue,children:t.type}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.message})]},n))})]})]})]:""}),l=(0,Ye.jsxs)("div",{id:"ticketComponentHistory",className:e.reportSection,children:[(0,Ye.jsx)(Tn,{variant:"h6",children:En("ticketComponentHistorySectionHeader")}),(0,Ye.jsxs)(FP,{className:e.table,children:[(0,Ye.jsx)(iL,{children:(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableHead,children:En("status")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("message")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("application")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("machine")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("time")}),(0,Ye.jsx)(JP,{className:e.tableHead,children:En("contactName")})]})}),(0,Ye.jsx)(qP,{children:i.history&&i.history.map((t,n)=>(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableValue,children:t.status}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.message}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.application}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.machine}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.time}),(0,Ye.jsx)(JP,{className:e.tableValue,children:t.user})]},n))})]})]}),(0,Ye.jsxs)(r.Fragment,{children:[o,s,a,l]},"component".concat(i.id))},this.renderProofPaymentInformation=(e,t)=>(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{variant:"h6",children:En("ticketProofPaymentSectionHeader")}),t.proofAudits.map((e,t)=>(e=r.createElement("div",{dangerouslySetInnerHTML:{__html:e}}),(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{style:{display:"block"},children:e}),(0,Ye.jsx)("br",{}),(0,Ye.jsx)("br",{})]},"audit".concat(t))))]},"proofPaymentInfo")}render(){const{classes:e,currentReport:t}=this.props;let n=t.ticket;return(0,Ye.jsxs)("div",{children:[this.renderTicketInformation(e,t,n),(0,Ye.jsxs)("div",{id:"ticketComponent",className:e.reportSection,children:[(0,Ye.jsx)(Tn,{variant:"h6",children:En("ticketComponentDetails")}),n.components.map(r=>this.renderComponentInformation(e,t,n,r))]}),this.renderProofPaymentInformation(e,n)]})}}const fR=pn(hR,e=>({reportSection:{marginBottom:20,width:900},detailsTable:{width:"auto"}
2,detailsTableRow:{height:"auto"},detailsTableLabel:{textAlign:"right",fontWeight:"bold",border:"none",padding:"1px 10px 1px 5px"},detailsTableValue:{border:"none",padding:"1px 5px 1px 10px"},table:{borderCollapse:"separate",borderSpacing:"3px"},tableHead:{fontSize:14,height:40,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap",backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,textAlign:"center"},tableRow:{height:25,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap"},tableValue:{padding:"0px 3px 0px 3px"},detailsSectionLabel:{display:"flex",alignItems:"baseline","& button":{marginLeft:20}},detailsAreaCheckbox:{padding:0,marginLeft:-3},componentDetailsOuterWrapper:{display:"flex",flexDirection:"column",marginBottom:20,width:900},componentDetailsInnerWrapper:{display:"flex",flexDirection:"row",whiteSpace:"nowrap"},ticketComponentStatusSelect:{fontSize:"small",marginLeft:10,height:19},link:{textDecoration:"underline",padding:0,marginRight:e.spacing(1),"&:hover":{backgroundColor:"transparent"}}}),{withTheme:!0}),mR=Object.freeze({PubIssue:1,Submission:2,Ticket:3,TicketComponent:4});class gR extends r.Component{constructor(e){super(e),this.displayName=gR.name,this.updateReport=e=>{this.setState({currentReport:e})},this.closeErrorDialog=()=>{this.setState({error:"",errorMessage:"",showError:!1})},this.loadPublishers=()=>{fetch("SvrIsr/PublisherList",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentReport:t}=this.state;t.publishers=e,this.updateReport(t)})},this.loadPublications=()=>{let{currentReport:e}=this.state;fetch("SvrIsr/PublicationList?publisherId=".concat(e.publisherId),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentReport:t}=this.state;t.publications=e,this.updateReport(t)})},this.loadIssues=()=>{let{currentReport:e}=this.state;fetch("SvrIsr/IssueList?publisherId=".concat(e.publisherId,"&publicationId=").concat(e.publicationId),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentReport:t}=this.state;t.issues=e,this.updateReport(t)})},this.loadAdditionalFilterSelections=()=>{let{currentReport:e}=this.state;fetch("SvrIsr/AdditionalFilterSelection?publisherId=".concat(e.publisherId,"&publicationId=").concat(e.publicationId),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentReport:t}=this.state;t.mediaTypes=e.mediaTypes,t.ticketStatuses=e.ticketStatuses,t.proofTypes=e.proofTypes,t.billableOptions=e.billableOptions,t.proofReceivedOptions=e.proofReceivedOptions,t.selectedMediaTypes=e.selectedMediaTypes,t.selectedTicketStatuses=e.selectedTicketStatuses,t.selectedProofTypes=e.selectedProofTypes,t.selectedBillableOption=e.selectedBillableOption.toString(),t.selectedProofReceivedOption=e.selectedProofReceivedOption.toString(),this.updateReport(t)})},this.toggleGroup=e=>{let{currentReport:t}=this.state;t[e]=!t[e],this.updateReport(t)},this.getSearchTypeDescription=e=>{let{currentReport:t}=this.state,n="";return t.multiSearchTypeId===mR.Submission?n=En("submissionId"):t.multiSearchTypeId===mR.Ticket?n=En("ticketId"):t.multiSearchTypeId===mR.TicketComponent&&(n=En("ticketComponentId")),n},this.handleClick=e=>{let{currentReport:t}=this.state;"publisherId"!==e.target.name&&"publicationId"!==e.target.name&&"issueId"!==e.target.name||(t.searchTypeId=mR.PubIssue),"multiSearchType"!==e.target.name&&"multiSearchTypeValue"!==e.target.name||(t.searchTypeId=t.multiSearchTypeId),this.updateReport(t)},this.handleChange=e=>{let{currentReport:t}=this.state;if("publisherId"===e.target.name)t.publisherId=e.target.value,this.loadPublications();else if("publicationId"===e.target.name)t.publicationId=e.target.value,this.loadIssues(),this.loadAdditionalFilterSelections();else if("issueId"===e.target.name)t.issueId=e.target.value,this.handleSubmit(e);else if("searchType"===e.target.name){t.searchTypeId=Number(e.target.value);var n=document.getElementById("publisherId"),r=document.getElementById("publicationId"),i=document.getElementById("multiSearchTypeValue");n.setCustomValidity(""),r&&r.setCustomValidity(""),i.setCustomValidity("")}else if("multiSearchType"===e.target.name)t.multiSearchTypeId=Number(e.target.value),t.searchTypeId=Number(e.target.value);else if("ticketId"===e.target.name)t.ticketId=e.target.value.replace(/[^0-9]/g,"");else if("ticketComponentId"===e.target.name)t.ticketComponentId=e.target.value.replace(/[^0-9]/g,"");else if("multiSearchTypeValue"===e.target.name)t.multiSearchTypeValue=e.target.value.replace(/[^0-9]/g,"");else if("mediaType"===e.target.name){var o=t.selectedMediaTypes.indexOf(Number(e.target.value));o>-1?t.selectedMediaTypes.splice(o,1):t.selectedMediaTypes.push(Number(e.target.value))}else if("showLateProofSubmissionsOnly"===e.target.name)t.showLateProofSubmissionsOnly=!t.showLateProofSubmissionsOnly;else if("ticketStatus"===e.target.name){var a=t.selectedTicketStatuses.indexOf(Number(e.target.value));a>-1?t.selectedTicketStatuses.splice(a,1):t.selectedTicketStatuses.push(Number(e.target.value))}else if("proofType"===e.target.name){var s=t.selectedProofTypes.indexOf(Number(e.target.value));s>-1?t.selectedProofTypes.splice(s,1):t.selectedProofTypes.push(Number(e.target.value))}
2else"ticketColor"===e.target.name?t[e.target.value]=!t[e.target.value]:"proofReceived"===e.target.name?t.selectedProofReceivedOption=e.target.value:"billable"===e.target.name&&(t.selectedBillableOption=e.target.value);this.updateReport(t)},this.handleSubmit=e=>{if(!this.state.submitting){let{currentReport:c}=this.state;var t=document.getElementById("searchForm"),r=document.getElementById("publisherId"),i=document.getElementById("publicationId"),o=document.getElementById("multiSearchTypeValue");if(r.setCustomValidity(""),i&&i.setCustomValidity(""),o.setCustomValidity(""),c.searchTypeId===mR.PubIssue?""===r.value?r.setCustomValidity(En("publisherRequired")):""===i.value&&i.setCustomValidity(En("publicationRequired")):c.searchTypeId!==mR.PubIssue&&""===o.value&&o.setCustomValidity(En("requiredField")),!t.checkValidity())return;if(e.preventDefault(),c.ticketReportLoaded=!1,c.ticketDetailsLoaded=!1,this.updateReport(c),this.setState({submitting:!0}),c.searchTypeId===mR.PubIssue||c.searchTypeId===mR.Submission){n(5609);var a=new FormData;c.searchTypeId===mR.PubIssue?(a.append("publisherId",c.publisherId),a.append("publicationId",c.publicationId),a.append("issueId",c.issueId),a.append("mediaTypes",c.selectedMediaTypes),a.append("showLateProofSubmissionsOnly",c.showLateProofSubmissionsOnly),a.append("statuses",c.selectedTicketStatuses),a.append("billingFilter",c.selectedBillableOption),a.append("proofTypes",c.selectedProofTypes),a.append("filterColors",!c.anyColor),a.append("colorC",c.colorC),a.append("colorM",c.colorM),a.append("colorY",c.colorY),a.append("colorK",c.colorK),a.append("proofReceivedFilter",c.selectedProofReceivedOption)):a.append("submissionId",c.multiSearchTypeValue),fetch("SvrIsr/TicketList",{method:"POST",body:a,credentials:"same-origin"}).then(e=>e.text()).then(e=>{if(e){e=JSON.parse(e,Zl);let{currentReport:t}=this.state;t.tickets=e,t.ticketReportLoaded=!0,this.updateReport(t),this.setState({submitting:!1})}})}else if(c.searchTypeId===mR.Ticket||c.searchTypeId===mR.TicketComponent){var s=c.searchTypeId===mR.Ticket?document.getElementById("multiSearchTypeValue").value:null,l=c.searchTypeId===mR.TicketComponent?document.getElementById("multiSearchTypeValue").value:null;fetch("SvrIsr/GetTicketDetail?tid=".concat(s,"&tcid=").concat(l),{method:"post",credentials:"same-origin"}).then(e=>e.text()).then(e=>{if(e){e=JSON.parse(e,Zl);let{currentReport:t}=this.state;e.success?(t.ticket=e.ticket,t.ticketComponentStatuses=e.ticketComponentStatuses,t.ticketDetailsLoaded=!0,this.updateReport(t),this.setState({submitting:!1})):this.setState({submitting:!1,showError:!0,error:e.error})}})}}return!1},this.state={showError:!1,error:"",errorMessage:"",currentReport:{publishers:null,publications:null,issues:null,mediaTypes:null,
2selectedMediaTypes:[],ticketStatuses:null,selectedTicketStatuses:[],proofTypes:null,selectedProofTypes:[],billableOptions:null,selectedBillableOption:"",proofReceivedOptions:null,selectedProofReceivedOption:"",anyColor:!0,colorC:!1,colorM:!1,colorY:!1,colorK:!1,tickets:[],publisherId:"",publicationId:"",issueId:"",ticketId:"",ticketComponentId:"",showLateProofSubmissionsOnly:!1,searchTypeId:mR.PubIssue,multiSearchTypeId:mR.Ticket,multiSearchTypeValue:"",ticketReportIsLoading:!1,ticketReportLoaded:!1,ticketDetailsLoaded:!1,additionalFiltersCollapsed:!1,ticket:null,ticketComponentStatuses:null}}}componentDidMount(){let{currentReport:e}=this.state;e.publishers||this.loadPublishers()}render(){const{classes:e}=this.props,{currentReport:t}=this.state;let n="",i="",o="",a="";return i=(0,Ye.jsx)(r.Fragment,{children:""!==t.publicationId&&[(0,Ye.jsxs)(RI,{in:!t.additionalFiltersCollapsed,collapsedSize:"35px",children:[(0,Ye.jsx)("div",{className:e.groupHeader,onClick:()=>this.toggleGroup("additionalFiltersCollapsed"),children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[t.additionalFiltersCollapsed?[(0,Ye.jsx)(rD.A,{style:{verticalAlign:"middle"}},"arrow")]:[(0,Ye.jsx)(iD.A,{style:{verticalAlign:"middle"}},"arrow")],En("additionalFilters")]})}),(0,Ye.jsx)("div",{className:e.filterSection,children:""!==t.publicationId&&(0,Ye.jsxs)(r.Fragment,{children:[null===t.mediaTypes?(0,Ye.jsx)(JN,{variant:"query"},"mediaTypeLoading"):[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Tn,{variant:"subtitle2",className:e.filterSectionLabel,children:[En("ticketType"),":"]}),t.mediaTypes.map(n=>(0,Ye.jsx)(fi,{className:e.filterLabel,value:n.id.toString(),label:(0,Ye.jsx)(Tn,{variant:"body2",children:n.name}),control:(0,Ye.jsx)(Di,{className:e.filterControl,name:"mediaType",value:n.id.toString(),onChange:this.handleChange,checked:void 0!==t.selectedMediaTypes.find(function(e){return e===n.id})})},n.id))]},"mediaTypes")],(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Tn,{variant:"subtitle2",className:e.filterSectionLabel,children:[En("showLateProofSubmissionsOnly"),":"]}),(0,Ye.jsx)(Di,{name:"showLateProofSubmissionsOnly",value:"showLateProofSubmissionsOnly",checked:t.showLateProofSubmissionsOnly,onChange:this.handleChange,className:e.showLateProofCheckbox})]},"showLateProofSubmissionsOnly"),null===t.ticketStatuses?(0,Ye.jsx)(JN,{variant:"query"},"ticketStatusLoading"):[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Tn,{variant:"subtitle2",className:e.filterSectionLabel,children:[En("ticketStatus"),":"]}),t.ticketStatuses.map(n=>(0,Ye.jsx)(fi,{value:n.id.toString(),label:(0,Ye.jsx)(Tn,{variant:"body2",children:n.name}),control:(0,Ye.jsx)(Di,{className:e.filterControl,name:"ticketStatus",value:n.id.toString(),onChange:this.handleChange,checked:void 0!==t.selectedTicketStatuses.find(function(e){return e===n.id})})},n.id))]},"ticketStatuses")],null===t.proofTypes?(0,Ye.jsx)(JN,{variant:"query"},"proofTypeLoading"):[(0,Ye.jsx)("div",{children:(0,Ye.jsx)("table",{children:(0,Ye.jsx)("tbody",{children:(0,Ye.jsxs)("tr",{children:[(0,Ye.jsx)("td",{style:{verticalAlign:"top",paddingTop:8},children:(0,Ye.jsxs)(Tn,{variant:"subtitle2",className:e.filterSectionLabel,children:[En("proofType"),":"]})}),(0,Ye.jsx)("td",{children:t.proofTypes.map(n=>(0,Ye.jsx)(fi,{value:n.id.toString(),label:(0,Ye.jsx)(Tn,{variant:"body2",children:En(n.name)}),control:(0,Ye.jsx)(Di,{className:e.filterControl,name:"proofType",value:n.id.toString(),onChange:this.handleChange,checked:void 0!==t.selectedProofTypes.find(function(e){return e===n.id})})},n.id))})]})})})},"proofTypes")],(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Tn,{variant:"subtitle2",className:e.filterSectionLabel,children:[En("colors"),":"]}),(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("anyColor")}),control:(0,Ye.jsx)(Di,{name:"ticketColor",value:"anyColor",onChange:this.handleChange,className:e.filterControl,checked:t.anyColor})}),(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("C")}),control:(0,Ye.jsx)(Di,{name:"ticketColor",value:"colorC",onChange:this.handleChange,className:e.filterControl,checked:t.colorC,disabled:t.anyColor})}),(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("M")}),control:(0,Ye.jsx)(Di,{name:"ticketColor",value:"colorM",onChange:this.handleChange,className:e.filterControl,checked:t.colorM,disabled:t.anyColor})}),(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("Y")}),control:(0,Ye.jsx)(Di,{name:"ticketColor",value:"colorY",onChange:this.handleChange,className:e.filterControl,checked:t.colorY,disabled:t.anyColor})}),(0,Ye.jsx)(fi,{label:(0,Ye.jsx)(Tn,{variant:"body2",children:En("K")}),control:(0,Ye.jsx)(Di,{name:"ticketColor",value:"colorK",onChange:this.handleChange,className:e.filterControl,checked:t.colorK,disabled:t.anyColor})})]},"colors"),this.props.userInfo.isClientAdminAndHasPublishersAssigned?"":null===t.billableOptions?(0,Ye.jsx)(JN,{variant:"query"},"billableOptionsLoading"):[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Tn,{variant:"subtitle2",className:e.filterSectionLabel,children:[En("billable"),":"]}),t.billableOptions.map(n=>(0,Ye.jsx)(fi,{value:n.id.toString(),label:(0,Ye.jsx)(Tn,{variant:"body2",children:n.name}),control:(0,Ye.jsx)(gN,{className:e.filterControl,name:"billable",onCh
2ange:this.handleChange,checked:t.selectedBillableOption===n.id.toString()})},n.id))]},"billable")],null===t.proofReceivedOptions?(0,Ye.jsx)(JN,{variant:"query"},"proofReceivedOptionsLoading"):[(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Tn,{variant:"subtitle2",className:e.filterSectionLabel,children:[En("proofReceived"),":"]}),t.proofReceivedOptions.map(n=>(0,Ye.jsx)(fi,{value:n.id.toString(),label:(0,Ye.jsx)(Tn,{variant:"body2",children:n.name}),control:(0,Ye.jsx)(gN,{className:e.filterControl,name:"proofReceived",onChange:this.handleChange,checked:t.selectedProofReceivedOption===n.id.toString()})},n.id))]},"proofReceived")]]})})]},"additionalFilters")]}),n=(0,Ye.jsxs)("div",{className:e.searchTypeSection,children:[(0,Ye.jsx)(gN,{className:e.searchType,checked:t.searchTypeId===mR.PubIssue,onChange:this.handleChange,value:mR.PubIssue,name:"searchType","aria-label":"searchByPubIssue"}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:e.issueSelectorSection,style:{display:"flex"},children:t.publishers?(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,className:e.dropDownContainer,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"publisherId",children:En("publisher")}),(0,Ye.jsxs)(WL,{id:"publisherId",name:"publisherId",value:t.publisherId,onChange:this.handleChange,onClick:this.handleClick,children:[(0,Ye.jsx)("option",{value:"",children:En("selectPublisher")}),t.publishers.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.id))]})]},"publisher"),t.publications&&null!==t.publications?(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,className:e.dropDownContainer,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"publicationId",children:En("publication")}),(0,Ye.jsxs)(WL,{id:"publicationId",name:"publicationId",value:t.publicationId,onChange:this.handleChange,onClick:this.handleClick,children:[(0,Ye.jsx)("option",{value:"",children:En("selectPublication")}),t.publications.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.id))]})]},"publication"):(0,Ye.jsx)(JN,{variant:"query"},"publicationLoading"),t.issues||null!==t.issues?(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,style:{width:274},variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"issueId",children:En("issue")}),(0,Ye.jsxs)(WL,{id:"issueId",name:"issueId",value:t.issueId,onChange:this.handleChange,onClick:this.handleClick,children:[(0,Ye.jsx)("option",{value:"",children:En("selectIssue")}),t.issues.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.id))]})]},"issue"):(0,Ye.jsx)(JN,{variant:"query"},"issueLoading")]}):(0,Ye.jsx)(At,{})}),i]})]}),o=(0,Ye.jsxs)("div",{className:e.searchTypeSection,children:[(0,Ye.jsx)(gN,{className:e.searchType,checked:t.searchTypeId!==mR.PubIssue,onChange:this.handleChange,value:t.multiSearchTypeId,name:"multiSearchType","aria-label":"idSelector"}),(0,Ye.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",className:e.dropDownContainer,style:{flex:"1 0 273px"},children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"multiSearchType",children:En("type")}),(0,Ye.jsxs)(WL,{id:"multiSearchType",name:"multiSearchType",value:t.multiSearchTypeId,onChange:this.handleChange,onClick:this.handleClick,children:[(0,Ye.jsx)("option",{value:mR.Submission,children:En("submissionId")}),(0,Ye.jsx)("option",{value:mR.Ticket,children:En("ticketId")}),(0,Ye.jsx)("option",{value:mR.TicketComponent,children:En("ticketComponentId")})]})]},"searchTypeSelector"),(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,variant:"standard",children:[(0,Ye.jsxs)(wo,{htmlFor:"multiSearchTypeValue",children:[this.getSearchTypeDescription(t.searchTypeId),"\u2009*"]}),(0,Ye.jsx)(uo,{id:"multiSearchTypeValue",name:"multiSearchTypeValue",value:t.multiSearchTypeValue,autoComplete:"off",onChange:this.handleChange,onClick:this.handleClick,inputProps:{maxLength:"50"}})]},"multiSearchTypeValue")]})]}),t.ticketReportLoaded?a=(0,Ye.jsx)(aR,{userInfo:this.props.userInfo,currentReport:t,updateReport:this.updateReport}):t.ticketDetailsLoaded&&(a=(0,Ye.jsx)(fR,{userInfo:this.props.userInfo,currentReport:t,updateReport:this.updateReport})),(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("div",{className:e.headerSection,children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("ticketReport")}),(0,Ye.jsx)("hr",{className:e.horizontalBar})]}),(0,Ye.jsx)("div",{className:e.searchSection,children:(0,Ye.jsxs)("form",{id:"searchForm",className:e.formFix,children:[n,o,(0,Ye.jsxs)("div",{style:{display:"inline-block",position:"relative"},children:[(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"primary","data-component":"ticketReport","data-classname":"submit",className:e.submit,onClick:this.handleSubmit,disabled:this.state.submitting,children:En("viewReport")}),this.state.submitting&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]})}),(0,Ye.jsx)("div",{className:e.reportSection,children:a}),(0,Ye.jsxs)(Aa,{open:this.state.showError,onClose:this.closeErrorDialog,describedby:"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsxs)(Ha,{id:"alert-dialog-description",children:[(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.error)}),this.state.errorMessage.length>0&&(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.errorMessage)})]})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeErrorDialog,color:"secondary",variant:"contained",autoFocus:!0,children:En("ok")})})]})]})}}const vR=pn(gR,e=>{var t={heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},formFix:{width:"100%"},searchSection:{width:900},searchType:{width:48,marginTop:15,alignItems:"flex-start",display:"inline-table"},searchTypeSection:{display:"flex"},dropDownContainer:{width:274,marginRight:15},submit:{margin:"15px 0px 25px 45px"},filterSection:{"& div:not(:last-child)":{marginBottom:2},marginLeft:2},filterSectionLabel:{display:"inline-block",marginRight:25,verticalAlign:"middle",whiteSpace:"nowrap"},showLateProofCheckbox:{marginLeft:-20,padding:5},filterControl:{padding:5},filterLabel:{marginRight:25},groupHeader:{marginTop:e.spacing(1),cursor:"pointer",userSelect:"none",borderWidth:"1px",borderStyle:"solid",borderColor:"#CCC",background:"#EEE","&:hover":{background:"#D8D8D8"},transition:"background-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"},reportSection:{overflow:"auto"},headerSection:{height:"100%"},buttonProgress:{color:_o.A[500],position:"absolute",top:"calc(100% - 55px)",left:"calc(100% - 65px)",overflow:"hidden"}};return t=rc(e,t,"ticketReport")},{withTheme:!0});class yR extends r.Component{static getChildPath(e){let t=e.location.pathname.split("/",4);return 4===t.length?t[3]:null}static urlTicketId(e){let t=yR.getChildPath(e);if(t){let e=Number(t);if(e>0)return e}return null}constructor(e){super(e),this.displayName=yR.name,this.loadTicketDetails=()=>{let e=yR.urlTicketId(this.props);fetch("SvrIsr/GetTicketDetail?tid=".concat(e),{method:"post",credentials:"same-origin"}).then(e=>e.text()).then(e=>{if(e){e=JSON.parse(e,Zl);let{currentReport:t}=this.state;e.success?(t.ticket=e.ticket,t.ticketComponentStatuses=e.ticketComponentStatuses,t.ticketDetailsLoaded=!0,this.updateReport(t)):this.setState({showError:!0,error:e.error})}})},this.updateReport=e=>{this.setState({currentReport:e})},this.state={showError:!1,error:"",currentReport:{ticketDetailsLoaded:!1,ticket:null,ticketComponentStatuses:null}}}componentDidMount(){let{currentReport:e}=this.state;e.ticket||this.loadTicketDetails()}render(){const{classes:e}=this.props,{currentReport:t}=this.state;let n="";return this.state.showError?n=En(this.state.error):t.ticket?n=(0,Ye.jsx)(fR,{userInfo:this.props.userInfo,currentReport:t,updateReport:this.updateReport}):(this.loadTicketDetails(),n=(0,Ye.jsx)(At,{})),(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("div",{className:e.headerSection,children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("ticketDetails")}),(0,Ye.jsx)("hr",{className:e.horizontalBar})]}),n]})}}const bR=bc(pn(yR,e=>{var t={heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},headerSection:{height:"100%"}};return t=rc(e,t,"TicketDetails")},{withTheme:!0}));var xR,SR,wR="adShuttlePP_DownloadStarted";class _R extends r.Component{constructor(e){super(e),this.displayName=_R.name,this.loadPublications=e=>{Number(e)>0&&fetch("SvrISR/PublicationList?publisherId=".concat(e),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({publications:e})})},this.loadIssues=()=>{this.setState({issues:null,issueIds:""},()=>{if(this.state.publicationIds.length>0){n(5609);var e=new FormData;e.append("publisherId",this.state.publisherId),this.state.publicationIds.map(t=>e.append("publicationIds",t.id)),fetch("SvrISR/GroupedIssues",{method:"POST",body:e,credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({issues:e})})}})},this.handlePublicationSelection=e=>()=>{let t=this.state.publicationIds;const n=t.indexOf(e);-1===n?t.push(e):t.splice(n,1),this.setState({publicationIds:t},()=>{this.loadIssues()})},this.handleChange=e=>{let t={};t[e.target.name]=e.target.value,t.issueIds&&e.target.selectedOptions.length>0&&(t.issueName=e.target.selectedOptions[0].innerText),this.setState(t),t.publisherId&&this.loadPublications(t.publisherId)},this.startDownload=()=>(lc.get(wR)&&lc.remove(wR),this.setState({startingDownload:!0}
2,()=>{xR=window.setInterval(this.checkRestoreDownload,1e3),SR=120,document.getElementById("spreadPullerForm").submit()}),!0),this.checkRestoreDownload=()=>{(SR<=0||lc.get(wR))&&(this.setState({startingDownload:!1}),lc.remove(wR),window.clearInterval(xR)),SR--},this.state={publishers:null,publisherId:"",publications:null,publicationIds:[],issues:null,issueIds:"",issueName:"",startingDownload:!1}}componentDidMount(){this.state.publishers||fetch("SvrISR/FullPublisherList",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({publishers:e})})}render(){const{classes:e}=this.props;let t=(0,Ye.jsx)(At,{}),n=(0,Ye.jsx)(r.Fragment,{}),i=(0,Ye.jsx)(r.Fragment,{}),o=(0,Ye.jsx)(r.Fragment,{});if(this.state.publishers&&(t=(0,Ye.jsxs)(Pr,{className:e.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"publisherId",children:En("publisher")}),(0,Ye.jsxs)(Il,{native:!0,name:"publisherId",displayEmpty:!0,value:this.state.publisherId,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectPublisher")}),this.state.publishers.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.name))]})]})),this.state.publisherId&&Number(this.state.publisherId)>0&&this.state.publications&&(n=(0,Ye.jsxs)(Pr,{className:e.heightLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"publications",children:En("publication")}),(0,Ye.jsx)(ts,{id:"publicationIdList",dense:!0,style:{paddingTop:"12px"},children:this.state.publications.map(t=>(0,Ye.jsxs)(lp,{className:e.listItemRow,button:!0,onClick:this.handlePublicationSelection(t),children:[(0,Ye.jsx)(Di,{className:e.noPadding,color:"primary",disableRipple:!0,checked:-1!==this.state.publicationIds.indexOf(t)}),(0,Ye.jsx)(bp,{primary:t.name})]},t.id))})]})),this.state.issues&&(i=(0,Ye.jsxs)(Pr,{className:e.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"issueIds",children:En("issue")}),(0,Ye.jsxs)(Il,{native:!0,name:"issueIds",displayEmpty:!0,value:this.state.issueIds,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectIssue")}),this.state.issues.map(e=>(0,Ye.jsx)("option",{value:e.ids.join(),children:e.name},e.name))]})]})),this.state.issueIds&&this.state.issueIds.length>0){let t="";this.state.startingDownload&&(t=(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})),o=(0,Ye.jsxs)("form",{id:"spreadPullerForm",action:"SvrISR/PullSpreads",method:"post",children:[(0,Ye.jsx)("input",{type:"hidden",name:"publisherId",value:this.state.publisherId}),(0,Ye.jsx)("input",{type:"hidden",name:"issueIds",value:this.state.issueIds}),(0,Ye.jsx)("input",{type:"hidden",name:"issueName",value:this.state.issueName}),(0,Ye.jsx)(kr,{disabled:this.state.startingDownload,type:"button",variant:"contained",color:"primary",onClick:()=>this.startDownload(),children:En("download")}),t]})}return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("spreadPuller")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),t,(0,Ye.jsx)("br",{}),n,(0,Ye.jsx)("br",{}),i,(0,Ye.jsx)("p",{}),o]})}}const kR=pn(_R,e=>({heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},widthLimited:{maxWidth:"700px"},heightLimited:{maxWidth:"700px",maxHeight:"450px",overflow:"auto"},listItemRow:{paddingTop:"4px",paddingBottom:"4px"},noPadding:{padding:0},buttonProgress:{position:"relative",top:"8px",left:"-60px"}}));class MR extends r.Component{constructor(e){super(e),this.displayName=MR.name,this.contains=(e,t)=>{for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},this.getTitleCodes=e=>{let t=[];for(let n in e){let r=e[n];this.contains(t,r.titleCode)||t.push(r.titleCode)}return t.sort()},this.getYears=(e,t,n)=>{let r=[];t=t.filter(t=>t.titleCode===e);for(let i in t){let e=t[i],o=e.jobNumber&&e.jobNumber.length>0&&"0"===e.jobNumber[e.jobNumber.length-1];r.indexOf(e.issueYear)<0&&(n||o)&&r.push(e.issueYear)}return 0===r.length&&r.push((new Date).getFullYear().toString()),r.sort(function(e,t){return t-e}),r},this.closeDialog=()=>{this.props.onJobUpdated()},this.saveLink=e=>{const{publisherId:t,job:n}=this.props;let r=e.jobNumber;e.isLinked&&(r=""),fetch("SvrISR/LinkIssueToJob?publisherId=".concat(t,"&issueId=").concat(n.psIssueId,"&jobNumber=").concat(r),{credentials:"same-origin"}).then(e=>e.json()).then(t=>{if(t.success){let{job:t}=this.props;t.insightJobNumber=r,r.length>0?(t.insightTitleName=e.titleName,t.insightTitleCode=e.titleCode,t.insightJobName=e.issueName,t.insightJobNumber=e.jobNumber):(t.insightTitleName="",t.insightTitleCode="",t.insightJobName="",t.insightJobNumber=""),this.props.onJobUpdated()}else{let e=t.error;e||(e="unexpectedError"),this.setState({showingError:!0,errorMessage:En(e)})}})}
2,this.getSortedJobs=()=>{const{sortCol:e,sortDesc:t,jobList:n,includeExtra:r,selectedYear:i,selectedTitle:o}=this.state;const a=n.filter(e=>e.titleCode===o&&e.issueYear.toString()===i&&(r||e.jobNumber&&e.jobNumber.length>0&&"0"===e.jobNumber[e.jobNumber.length-1])).map((e,t)=>[e,t]);return a.sort((n,r)=>{const i=function(e,t){return t<e?-1:t>e?1:0}(n[0][e],r[0][e]);return 0!==i?t?i:-i:t?n[1]-r[1]:r[1]-n[1]}),a.map(e=>e[0])},this.changeSort=e=>{if(this.state.sortCol===e){const{sortDesc:e}=this.state;this.setState({sortDesc:!e})}else this.setState({sortCol:e})},this.getTableHeader=()=>{const{classes:e}=this.props;return(0,Ye.jsx)(iL,{children:(0,Ye.jsx)(dL,{style:{height:"40px"},children:this.columns.map(t=>(0,Ye.jsx)(JP,{className:e.headerCell,onClick:()=>this.changeSort(t.id),sortDirection:this.state.sortCol===t.id&&(this.state.sortDesc?"desc":"asc"),children:(0,Ye.jsx)(tR,{classes:{root:e.sortLabel,active:e.sortLabel,icon:e.sortLabel},active:this.state.sortCol===t.id,direction:this.state.sortDesc?"desc":"asc",children:t.label})},t.id),this)})})},this.onTitleChange=e=>{let t=this.getYears(e.target.value,this.state.jobList,this.state.includeExtra);this.setState({selectedTitle:e.target.value,yearList:t,selectedYear:t[0].toString()})},this.state={isLinked:!1,includeExtra:!1,jobList:null,yearList:null,selectedYear:null,titleList:null,selectedTitle:null,sortCol:"jobNumber",sortDesc:!0,showingError:!1,errorMessage:""},this.columns=[{id:"jobNumber",label:En("jobNumber")},{id:"issueName",label:En("issueName")},{id:"issueYear",label:En("issueYear")},{id:"jobSelection",label:En("jobSelection")}]}
2componentDidUpdate(e){if(this.props.job!==e.job&&null!==this.props.job){const{publisherId:e,publicationId:t,job:n}=this.props,r=this.props.job.insightJobNumber&&this.props.job.insightJobNumber.length>0;fetch("SvrISR/IssueJobsList?publisherId=".concat(e,"&publicationId=").concat(t,"&issueId=").concat(n.psIssueId),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{if(e.success&&e.jobs){let t=this.getYears(e.currentTitleCode,e.jobs,this.state.includeExtra),n=this.getTitleCodes(e.jobs);this.setState({jobList:e.jobs,isLinked:r,yearList:t,selectedYear:t[0].toString(),titleList:n,selectedTitle:e.currentTitleCode})}})}}render(){const{classes:e}=this.props;let t=(0,Ye.jsx)(At,{});return this.state.jobList&&(t=(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)(Tn,{variant:"body2",component:"div",children:[En("titleCode"),":",(0,Ye.jsx)(Il,{className:e.titleDropdown,native:!0,value:this.state.selectedTitle,onChange:this.onTitleChange,variant:"standard",children:this.state.titleList.map(e=>(0,Ye.jsx)("option",{value:e,children:e},e))}),En("year"),":",(0,Ye.jsx)(Il,{native:!0,value:this.state.selectedYear,onChange:e=>this.setState({selectedYear:e.target.value}),variant:"standard",children:this.state.yearList.map(e=>(0,Ye.jsx)("option",{value:e,children:e},e))}),(0,Ye.jsx)(fi,{control:(0,Ye.jsx)(Di,{checked:this.state.includeExtra,onChange:e=>this.setState({includeExtra:e.target.checked,yearList:this.getYears(this.state.selectedTitle,this.state.jobList,e.target.checked)})}),label:En("includeExtraJobs"),labelPlacement:"start"})]}),(0,Ye.jsx)("br",{}),(0,Ye.jsxs)(FP,{className:e.table,"aria-labelledby":"tableTitle",children:[this.getTableHeader(),(0,Ye.jsx)(qP,{children:this.getSortedJobs().map(t=>(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{className:e.tableCell,children:t.jobNumber}),(0,Ye.jsx)(JP,{className:e.tableCell,children:t.issueName}),(0,Ye.jsx)(JP,{className:e.tableCell,children:t.issueYear}),(0,Ye.jsx)(JP,{className:e.tableCell,children:(0,Ye.jsx)(kr,{className:e.linkButton,variant:"text",size:"small",disableRipple:!0,onClick:()=>this.saveLink(t),children:t.isLinked?En("unlinkJob"):this.state.isLinked?En("changeJob"):En("selectJob")})})]},t.jobNumber))})]})]})),(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsxs)(Aa,{open:null!==this.props.job,maxWidth:"md","aria-labelledby":"job-picker-title",TransitionProps:{onExited:()=>this.setState({jobList:null})},children:[(0,Ye.jsx)(Kl,{id:"job-picker-title",children:En("jobSelection")}),(0,Ye.jsx)(za,{children:t}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{color:"primary",variant:"contained",onClick:()=>this.closeDialog(),children:En("close")})})]}),(0,Ye.jsxs)(Aa,{open:this.state.showingError,children:[(0,Ye.jsx)(Ha,{children:this.state.errorMessage}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{color:"primary",variant:"contained",onClick:()=>this.setState({showingError:!1}),children:En("ok")})})]})]})}}const CR=pn(MR,e=>({table:{borderCollapse:"separate",borderSpacing:"3px"},headerCell:{fontSize:14,height:40,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap",cursor:"pointer",backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,textAlign:"center","&:hover":{backgroundColor:e.palette.primary.dark}},sortLabel:{color:"".concat(e.palette.primary.contrastText," !important"),"&:hover":{color:e.palette.primary.contrastText,fontWeight:"bold"},"&:focus":{color:e.palette.primary.contrastText,fontWeight:"bold"}},titleDropdown:{marginRight:"16px"},tableRow:{minHeight:"24px",height:"inherit"},tableCell:{padding:0},linkButton:{verticalAlign:"baseline",marginLeft:"3px",padding:"1px 8px",textDecoration:"underline",color:e.palette.primary.main,"&:hover":{backgroundColor:"inherit",textDecoration:"underline"},"&:active":{color:e.palette.primary.light}}}));var TR=n(57779);const AR=Object.freeze({None:0,Error:1,JobInfo:2,ResetIssueImports:3});class ER extends r.Component{constructor(e){super(e),this.displayName=ER.name,this.loadPublications=e=>{Number(e)>0&&fetch("SvrISR/PublicationList?publisherId=".concat(e),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({publications:e})})},this.loadIssues=e=>{let{publisherId:t}=this.state;Number(t)>0&&Number(e)>0&&fetch("SvrISR/JobAssociationIssues?publisherId=".concat(t,"&publicationId=").concat(e),{credentials:"same-origin"}).then(e=>e.text()).then(e=>{e&&(e=JSON.parse(e,Zl)).success&&this.setState({issueList:e.issues})})},this.loadJobAndFacilityInfo=e=>{fetch("SvrISR/InsightJobInfo?jobNumber=".concat(e),{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(t=>{t.success?this.setState({jobInfo:t.jobInfo,showDialog:!0,dialogType:AR.JobInfo,message:""}):this.setState({jobInfo:void 0,showDialog:!0,dialogType:AR.Error,message:jn(t.error,e)})})},this.handleChange=e=>{let t={};t[e.target.name]=e.target.value,this.setState(t),t.publisherId?this.loadPublications(t.publisherId):t.publicationId&&this.loadIssues(t.publicationId)}
2,this.getSortedIssues=()=>{const{sortCol:e,sortDesc:t,issueList:n}=this.state,r=n.map((e,t)=>[e,t]);return r.sort((n,r)=>{const i=function(e,t){return t<e?-1:t>e?1:0}(n[0][e],r[0][e]);return 0!==i?t?i:-i:t?n[1]-r[1]:r[1]-n[1]}),r.map(e=>e[0])},this.changeSort=e=>{if(this.state.sortCol===e){const{sortDesc:e}=this.state;this.setState({sortDesc:!e})}else this.setState({sortCol:e})},this.onJobUpdated=()=>{this.setState({jobPickerIssue:null})},this.getTableHeader=()=>{const{classes:e}=this.props;return(0,Ye.jsx)(iL,{children:(0,Ye.jsx)(dL,{style:{height:"40px"},children:this.columns.map(t=>(0,Ye.jsx)(JP,{className:e.headerCell,onClick:()=>this.changeSort(t.id),sortDirection:this.state.sortCol===t.id&&(this.state.sortDesc?"desc":"asc"),children:(0,Ye.jsx)(tR,{classes:{root:e.sortLabel,active:e.sortLabel,icon:e.sortLabel},active:this.state.sortCol===t.id,direction:this.state.sortDesc?"desc":"asc",children:t.label})},t.id),this)})})},this.closeDialog=()=>{this.setState({showDialog:!1})},this.resetIssueImports=e=>{fetch("SvrISR/ResetIssueImports?publisherId=".concat(this.state.publisherId,"&publicationId=").concat(this.state.publicationId,"&issueId=").concat(e),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.success?this.setState({showDialog:!0,dialogType:AR.ResetIssueImports,message:En("resetIssueImportsDialogMessage")}):this.setState({showDialog:!0,dialogType:AR.Error,message:En(e.error)})})},this.state={publishers:null,publisherId:"",publications:null,publicationId:"",issueList:null,sortCol:"psIssueDate",sortDesc:!0,jobPickerIssue:null,showDialog:!1,dialogType:AR.None,jobInfo:void 0,message:""},this.columns=[{id:"psIssueName",label:jn("pubStudio",En("issueName"))},{id:"psIssueDate",label:jn("pubStudio",En("issueDate"))},{id:"insightTitleName",label:jn("inSight",En("title"))},{id:"insightTitleCode",label:jn("inSight",En("titleCode"))},{id:"insightJobName",label:jn("inSight",En("jobName"))},{id:"insightJobNumber",label:jn("inSight",En("jobNumber"))},{id:"jobSelection",label:En("jobSelection")},{id:"resetImports",label:En("resetIssueImportsTableHeader")}]}componentDidMount(){this.state.publishers||fetch("SvrISR/FullPublisherList",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{this.setState({publishers:e})})}render(){const{classes:e}=this.props;let t=(0,Ye.jsx)(At,{}),n=(0,Ye.jsx)(r.Fragment,{}),i=(0,Ye.jsx)(r.Fragment,{}),o=this.state.dialogType!==AR.ResetIssueImports?En("insightJobInfo"):En("resetIssueImportsDialogTitle");this.state.publishers&&(t=(0,Ye.jsxs)(Pr,{className:e.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"publisherId",children:En("publisher")}),(0,Ye.jsxs)(Il,{native:!0,name:"publisherId",displayEmpty:!0,value:this.state.publisherId,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectPublisher")}),this.state.publishers.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.name))]})]})),this.state.publisherId&&Number(this.state.publisherId)>0&&this.state.publications&&(n=(0,Ye.jsxs)(Pr,{className:e.widthLimited,margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"publications",children:En("publication")}),(0,Ye.jsxs)(Il,{native:!0,name:"publicationId",displayEmpty:!0,value:this.state.publicationId,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectPublication")}),this.state.publications.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.name))]})]})),this.state.publicationId&&Number(this.state.publicationId)>0&&this.state.issueList&&(i=(0,Ye.jsxs)(FP,{className:e.table,"aria-labelledby":"tableTitle",children:[this.getTableHeader(),(0,Ye.jsx)(qP,{children:this.getSortedIssues().map(t=>(0,Ye.jsxs)(dL,{className:e.tableRow,children:[(0,Ye.jsx)(JP,{children:t.psIssueName}),(0,Ye.jsx)(JP,{children:t.psIssueDate.toLocaleDateString()}),(0,Ye.jsx)(JP,{children:t.insightTitleName}),(0,Ye.jsx)(JP,{children:t.insightTitleCode}),(0,Ye.jsx)(JP,{children:t.insightJobName}),(0,Ye.jsx)(JP,{children:t.insightJobNumber?(0,Ye.jsx)(kr,{className:e.linkButton,variant:"text",size:"small",disableRipple:!0,onClick:()=>this.loadJobAndFacilityInfo(t.insightJobNumber),children:t.insightJobNumber}):""}),(0,Ye.jsx)(JP,{children:(0,Ye.jsx)(kr,{className:e.linkButton,variant:"text",size:"small",disableRipple:!0,onClick:()=>this.setState({jobPickerIssue:t}),children:t.insightJobNumber&&t.insightJobNumber.length>0?En("changeJob"):En("selectJob")})}),t.insightJobName?(0,Ye.jsx)(JP,{children:(0,Ye.jsx)(dd,{placement:"top-start",title:(0,Ye.jsx)(r.Fragment,{children:(0,Ye.jsx)(Tn,{color:"inherit",children:En("resetIssueImportsTooltip")})}),children:(0,Ye.jsx)(kr,{color:"primary",variant:"contained",onClick:()=>this.resetIssueImports(t.psIssueId),children:(0,Ye.jsx)(TR.A,{})})})}):""]},t.psIssueId))})]}));let a=this.state.jobInfo,s=void 0===a?this.state.message:(0,Ye.jsxs)("div",{className:e.dialogContents,children:[(0,Ye.jsxs)(Tn,{style:{width:450},component:"div",children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("title"),": ")}),(0,Ye.jsx)("span",{children:a.title})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("titleCode"),": ")}),(0,Ye.jsx)("span",{children:a.titleCode})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("issueName"),": ")}),(0,Ye.jsx)("span",{children:a.jobName})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("jobNumber"),": ")}),(0,Ye.jsx)("span",{children:a.jobNumber})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("imagingJobId"),": ")}),(0,Ye.jsx)("span",{children:a.imagingJobId})]})]}),(0,Ye.jsxs)(Tn,{component:"div",children:[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("imagingPodFolder"),": ")}),(0,Ye.jsx)("span",{children:a.imagingPodFolder})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("serverLocation"),": ")}),(0,Ye.jsx)("span",{children:a.serverLocation})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("podServer"),": ")}),(0,Ye.jsx)("span",{children:a.podServer})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("jobFolder
2Name"),": ")}),(0,Ye.jsx)("span",{children:a.jobFolderName})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("imagingFacilityId"),": ")}),(0,Ye.jsx)("span",{children:a.imagingFacilityId})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("imagingFacilityType"),": ")}),(0,Ye.jsx)("span",{children:a.imagingFacilityType})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("imagingFacilityName"),": ")}),(0,Ye.jsx)("span",{children:a.imagingFacilityName})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("rmsLocationNum"),": ")}),(0,Ye.jsx)("span",{children:a.rmsLocationNum})]}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("span",{className:e.bold,children:"".concat(En("locationNum"),": ")}),(0,Ye.jsx)("span",{children:a.locationNum})]})]})]});return(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("jobAssociations")}),(0,Ye.jsx)("hr",{className:e.horizontalBar}),t," ",n,(0,Ye.jsx)("p",{}),i,(0,Ye.jsx)(CR,{publisherId:this.state.publisherId,publicationId:this.state.publicationId,job:this.state.jobPickerIssue,onJobUpdated:()=>this.onJobUpdated()}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,fullWidth:!0,maxWidth:this.state.dialogType===AR.JobInfo?"lg":"sm",children:[(0,Ye.jsx)(Kl,{children:o}),(0,Ye.jsx)(za,{children:s}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{variant:"contained",color:"secondary",autoFocus:!0,onClick:this.closeDialog,children:En("ok")})})]})]})}}const jR=pn(ER,e=>({heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},widthLimited:{maxWidth:"400px"},table:{borderCollapse:"separate",borderSpacing:"3px"},headerCell:{fontSize:14,height:40,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap",cursor:"pointer",backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,textAlign:"center","&:hover":{backgroundColor:e.palette.primary.dark}},sortLabel:{color:"".concat(e.palette.primary.contrastText," !important"),"&:hover":{color:e.palette.primary.contrastText,fontWeight:"bold"},"&:focus":{color:e.palette.primary.contrastText,fontWeight:"bold"}},tableRow:{minHeight:"30px",height:"inherit"},linkButton:{verticalAlign:"baseline",marginLeft:"3px",padding:"1px 8px",textDecoration:"underline",color:e.palette.primary.main,"&:hover":{backgroundColor:"inherit",textDecoration:"underline"},"&:active":{color:e.palette.primary.light}},dialogContents:{display:"inline-flex"},bold:{fontWeight:"bold"}}));class NR extends r.Component{constructor(){super(...arguments),this.displayName=NR.name}render(){return this.props.userInfo.isClientAdminAndHasPublishersAssigned?(0,Ye.jsxs)(be,{children:[(0,Ye.jsx)(ve,{path:"/",element:(0,Ye.jsx)(zL,{userInfo:this.props.userInfo})}),(0,Ye.jsx)(ve,{path:"/ticketReport",element:(0,Ye.jsx)(vR,Fe(Fe({},this.props),{},{userInfo:this.props.userInfo}))}),(0,Ye.jsx)(ve,{path:"/ticketDetails/*",element:(0,Ye.jsx)(bR,Fe(Fe({},this.props),{},{userInfo:this.props.userInfo}))}),(0,Ye.jsx)(ve,{element:(0,Ye.jsx)(Mr,{})})]}):(0,Ye.jsxs)(be,{children:[(0,Ye.jsx)(ve,{exact:!0,path:"/",element:(0,Ye.jsx)(zL,{userInfo:this.props.userInfo})}),(0,Ye.jsx)(ve,{path:"/ticketReport",element:(0,Ye.jsx)(vR,Fe(Fe({},this.props),{},{userInfo:this.props.userInfo}))}),(0,Ye.jsx)(ve,{path:"/spreadPuller",element:(0,Ye.jsx)(kR,{})}),(0,Ye.jsx)(ve,{path:"/ticketDetails/*",element:(0,Ye.jsx)(bR,Fe(Fe({},this.props),{},{userInfo:this.props.userInfo}))}),(0,Ye.jsx)(ve,{path:"/jobAssociations",element:(0,Ye.jsx)(jR,{})}),(0,Ye.jsx)(ve,{path:"/impersonate",element:(0,Ye.jsx)(YL,Fe(Fe({},this.props),{},{userInfo:this.props.userInfo,updateUserInfo:this.props.updateUserInfo,updateSubmission:this.props.updateSubmission}))}),(0,Ye.jsx)(ve,{element:(0,Ye.jsx)(Mr,{})})]})}}class IR extends r.Component{constructor(e){super(e),this.displayName=IR.name,this.desc=(e,t,n,r)=>{var i=void 0,o=void 0;if(r)return"proofReceived"===n?this.sortByProofReceived(e,t,n):(i=e[n]?e[n]:0,(o=t[n]?t[n]:0)<i?-1:o>i?1:0);if("urls"===n){i="",o="";for(let t=0;t<e[n].length;t++)i+=e[n]?e[n].toString().toLowerCase():"";for(let e=0;e<t[n].length;e++)o+=t[n]?t[n].toString().toLowerCase():""}else i=e[n]?e[n].toString().toLowerCase():"",o=t[n]?t[n].toString().toLowerCase():"";return-i.localeCompare(o)},this.hasAtLeastOneHardCropFile=e=>{let t=!1;if(e.components)for(let n=0;n<e.components.length;n++)if(e.components[n].hardCropExists){t=!0;break}return t},this.sortByProofReceived=(e,t,n)=>{let r=e[n]?e[n]:0,i=t[n]?t[n]:0;if(i<r)return-1;if(i>r)return 1;if(r&&i){var o=e.proofReceivedOn,a=t.proofReceivedOn,s=Date.parse(o.toLocaleDateString()+" "+o.toLocaleTimeString()),l=Date.parse(a.toLocaleDateString()+" "+a.toLocaleTimeString());if(l<s)return-1;if(l>s)return 1}return 0},this.stableSort=(e,t)=>{const n=e.map((e,t)=>[e,t]);return n.sort((e,n)=>{const r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]}),n.map(e=>e[0])}
2,this.getSorting=(e,t,n)=>"desc"===e?(e,r)=>this.desc(e,r,t,n):(e,r)=>-this.desc(e,r,t,n),this.onSortChange=(e,t)=>{const n=e;let r="desc";this.state.orderBy===e&&"desc"===this.state.order&&(r="asc"),this.setState({order:r,orderBy:n,isNumber:t})},this.onComponentChange=e=>{let{currentReport:t}=this.props;var n=t.filteredTickets.find(t=>t.ticketId===Number(e.target.id));if(n){var r=n.components.find(t=>t.id===Number(e.target.value));r&&(n.selectedComponent=r)}this.props.updateReport(t)},this.getFilePath=e=>e.isPublisherSupplied?"File/StreamPublisherSuppliedImage?tcid=".concat(e.id):null!=e.fileType&&e.id?"File/StreamFile?fileType=".concat(e.fileType,"&id=").concat(e.id,"&hash=").concat(e.fileHash):"",this.state={order:"desc",orderBy:"ticketId",isNumber:!0}}render(){const{classes:e,isSearch:t}=this.props,{order:n,orderBy:r,isNumber:i}=this.state;let{currentReport:o}=this.props;var a="";if(null!==o.publications){var s=o.publications.find(e=>e.id===o.publicationId);s&&(a=s.name)}if(null!==o.issues){var l=o.issues.find(e=>e.id===o.issueId);l&&(a+=", "+l.name)}a.length>0&&(a+=" "+En("tickets"));let c=[{id:"ticketDetails",label:"",sortable:!1},{id:"ticketId",label:"Ticket ID",sortable:!0},{id:"advertiser",label:En("advertiser"),sortable:!0},{id:"downloadSubmissionReceipt",label:En("adSubmissionReceipt"),sortable:!1},{id:"downloadFiles",label:En("finalPdfs"),sortable:!1},{id:"headline",label:En("headline"),sortable:!0},{id:"product",label:En("product"),sortable:!0},{id:"size",label:En("size"),sortable:!0},{id:"status",label:En("status"),sortable:!0},{id:"materialTrackingNumber",label:En("materialTrackingNumber"),sortable:!0},{id:"createdBy",label:En("createdBy"),sortable:!0},{id:"submittedOn",label:En("submittedOn"),sortable:!0,isNumber:!0}];return(0,Ye.jsxs)("div",{children:[t&&0===o.filteredTickets.length?(0,Ye.jsx)("div",{className:e.noSearchResults,children:En("noSearchResults")}):"",(0,Ye.jsx)(Tn,{className:e.header,variant:"h6",children:a}),(0,Ye.jsxs)(FP,{className:e.table,children:[(0,Ye.jsx)(iL,{children:(0,Ye.jsx)(dL,{className:e.row,children:c.map(t=>(0,Ye.jsx)(JP,{className:e.head,sortDirection:r===t.id&&n,children:t.sortable?[(0,Ye.jsx)(tR,{classes:{root:e.sortLabel,active:e.sortLabel,icon:e.sortLabel},active:r===t.id,direction:n,onClick:()=>this.onSortChange(t.id,t.isNumber),children:t.label},t.id)]:t.label},t.id))})}),(0,Ye.jsx)(qP,{children:this.stableSort(o.filteredTickets,this.getSorting(n,r,i)).map(t=>{var n=[];return n.push((0,Ye.jsxs)(dL,{className:e.row,children:[(0,Ye.jsx)(JP,{className:e.body,children:(0,Ye.jsx)("div",{className:e.imageDisplay,children:t.components.map((e,t)=>(0,Ye.jsx)(kp,{component:e,filePath:this.getFilePath(e),componentSize:e.tempSize,sizePanels:e.sizeElements,marginLeft:10},t))})}),(0,Ye.jsx)(JP,{className:e.body,children:t.ticketId}),(0,Ye.jsx)(JP,{className:e.body,children:t.advertiser}),(0,Ye.jsx)(JP,{className:e.body,children:t.isConfirmationAvailable&&[(0,Ye.jsx)("div",{children:(0,Ye.jsx)("a",{href:"file/StreamFile?fileType=Receipt&id=".concat(t.ticketId,"&noinline=true"),download:t.receiptPdfFileName,rel:"noopener",children:En("downloadReceipt")})},"receipt")]}),(0,Ye.jsx)(JP,{className:e.body,children:t.isConfirmationAvailable&&this.hasAtLeastOneHardCropFile(t)&&[(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("form",{id:"downloadFiles-"+t.ticketId,method:"post",action:"SvrSales/DownloadHardCropFiles",children:(0,Ye.jsx)("input",{type:"hidden",name:"ticketId",value:t.ticketId})}),(0,Ye.jsx)("a",{href:"#",rel:"noopener",onClick:e=>{e.preventDefault(),document.getElementById("downloadFiles-"+t.ticketId).submit()},children:En("downloadPdfs")})]},"downloadHardCropFiles")]}),(0,Ye.jsx)(JP,{className:e.body,children:t.headline}),(0,Ye.jsx)(JP,{className:e.body,children:t.product}),(0,Ye.jsx)(JP,{className:e.body,children:t.size}),(0,Ye.jsx)(JP,{className:e.body,children:t.statusDesc}),(0,Ye.jsx)(JP,{className:e.body,children:t.materialTrackingNumber}),(0,Ye.jsx)(JP,{className:e.body,children:t.createdBy}),(0,Ye.jsx)(JP,{className:e.body,children:null!==t.submittedOn?"".concat(t.submittedOn.toLocaleDateString()," ").concat(t.submittedOn.toLocaleTimeString()):""})]},t.ticketId)),n})})]})]})}}const DR=pn(IR,e=>({header:{paddingLeft:3,fontWeight:"bold"},table:{borderCollapse:"separate",borderSpacing:"3px 0px"},head:{fontSize:14,height:40,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap",backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,textAlign:"center","&:hover":{backgroundColor:e.palette.primary.dark}}
2,sortLabel:{color:"".concat(e.palette.primary.contrastText," !important"),"&:hover":{color:e.palette.primary.contrastText,fontWeight:"bold"},"&:focus":{color:e.palette.primary.contrastText,fontWeight:"bold"}},row:{height:25,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap"},rowDetails:{height:100,paddingLeft:3,paddingRight:3,whiteSpace:"nowrap",backgroundColor:"#DDD",borderColor:"black"},body:{padding:"0px 3px 0px 3px"},bodyDetails:{padding:"0px 3px 0px 3px",borderBottom:"1px solid black",height:"100%"},component:{width:200,marginLeft:3},detailsContainer:{display:"flex"},detailSectionLabel:{display:"inline-block",marginRight:25,verticalAlign:"middle",margin:"12px 25px 0px 15px"},detailsRow:{height:25},detailsBody:{padding:"4px 20px 4px 4px",border:"none"},ticketComponentDetails:{marginRight:35},currentComponentDetailsContainer:{display:"flex",flexDirection:"column",justifyContent:"space-between"},currentComponentReports:{marginTop:10},imageDisplay:{display:"inline-flex",overflow:"auto",maxWidth:350},noSearchResults:{marginBottom:10,textAlign:"center",fontWeight:"bold"}}),{withTheme:!0});class PR extends r.Component{constructor(e){super(e),this.displayName=PR.name,this.updateReport=(e,t)=>{t?this.setState({currentReport:e},t):this.setState({currentReport:e})},this.loadPublishers=()=>{fetch("SvrSales/PublisherList",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentReport:t}=this.state;t.publishers=e,t.publisherId=t.publishers&&t.publishers.length>0?t.publishers[0].id:void 0,this.updateReport(t,this.loadPublications)})},this.loadPublications=()=>{let{currentReport:e}=this.state;fetch("SvrSales/PublicationList?publisherId=".concat(e.publisherId),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentReport:t}=this.state;t.publications=e,this.updateReport(t)})},this.loadIssues=()=>{let{currentReport:e}=this.state;fetch("SvrSales/IssueList?publisherId=".concat(e.publisherId,"&publicationId=").concat(e.publicationId),{credentials:"same-origin"}).then(e=>e.json()).then(e=>{let{currentReport:t}=this.state;t.issues=e,this.updateReport(t)})},this.handleChange=e=>{let{currentReport:t}=this.state;"publisherId"===e.target.name?(t.publisherId=e.target.value,this.setState({searchIsReady:!1,isSearch:!1}),this.loadPublications()):"publicationId"===e.target.name?(t.publicationId=e.target.value,t.issueId="",this.setState({searchIsReady:!1,isSearch:!1}),this.loadIssues()):"issueId"===e.target.name&&(t.issueId=e.target.value,this.setState({searchIsReady:!0,isSearch:!1})),t.ticketReportLoaded=!1,this.updateReport(t)},this.handleSubmit=e=>{if(!this.state.submitting){let{currentReport:n}=this.state;if(!document.getElementById("searchForm").checkValidity())return;e.preventDefault(),n.ticketReportLoaded=!1,this.updateReport(n),this.setState({submitting:!0});var t=new FormData;t.append("publisherId",n.publisherId),t.append("publicationId",n.publicationId),t.append("issueId",n.issueId),fetch("SvrSales/TicketList",{method:"POST",body:t,credentials:"same-origin"}).then(e=>e.text()).then(e=>{if(e){e=JSON.parse(e,Zl);let{currentReport:t}=this.state;t.tickets=e,t.filteredTickets=e,t.ticketReportLoaded=!0,this.updateReport(t),this.setState({submitting:!1})}})}return!1},this.onTextChange=e=>{this.setState({searchText:e.target.value})},this.submitSearch=()=>{this.setState({isSearch:!0}),this.filterTicketsBySearch(this.state.searchText)},this.filterTicketsBySearch=e=>{let{currentReport:t}=this.state,n=t.tickets;if(e&&e.length>0){const r=e.toLowerCase();n=t.tickets.filter(e=>e.ticketId&&e.ticketId.toString().includes(r)||e.advertiser&&e.advertiser.toLowerCase().includes(r)||e.headline&&e.headline.toLowerCase().includes(r)||e.product&&e.product.toLowerCase().includes(r)||e.size&&e.size.toLowerCase().includes(r)||e.statusDesc&&e.statusDesc.toLowerCase().includes(r)||e.materialTrackingNumber&&e.materialTrackingNumber.toLowerCase().includes(r)||e.createdBy&&e.createdBy.toLowerCase().includes(r)||e.submittedOn&&(e.submittedOn.toLocaleDateString().toLowerCase().includes(r)||e.submittedOn.toLocaleTimeString().toLowerCase().includes(r)))}t.filteredTickets=n,this.updateReport(t)},this.state={currentReport:{publishers:null,publications:null,issues:null,searchIsReady:!1,tickets:[],publisherId:"",publicationId:"",issueId:"",searchTypeId:1,ticketReportLoaded:!1,ticket:null,filteredTickets:[]},isSearch:!1,searchText:""}}
2componentDidMount(){let{currentReport:e}=this.state;e.publishers||this.loadPublishers()}render(){const{classes:e}=this.props,{currentReport:t}=this.state;let n="",i="",o=this.state.isSearch?(0,Ye.jsx)(kr,{size:"small",onClick:()=>{this.setState({isSearch:!1});let e=this.state.currentReport;e.filteredTickets=e.tickets,this.updateReport(e)},className:e.searchMargin,variant:"contained",color:"secondary",children:En("reset")}):"";n=(0,Ye.jsx)("div",{className:e.searchTypeSection,children:(0,Ye.jsx)("div",{className:e.searchSection,children:(0,Ye.jsx)("div",{className:e.issueSelectorSection,style:{display:"flex",width:"100%"},children:t.publishers?(0,Ye.jsxs)(r.Fragment,{children:[t.publications&&null!==t.publications?(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,className:e.dropDownContainer,variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"publicationId",children:En("publication")}),(0,Ye.jsxs)(WL,{id:"publicationId",name:"publicationId",value:t.publicationId,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectPublication")}),t.publications.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.id))]})]},"publication"):(0,Ye.jsx)(JN,{variant:"query"},"publicationLoading"),t.issues||null!==t.issues?(0,Ye.jsxs)(Pr,{margin:"dense",fullWidth:!0,style:{width:274},variant:"standard",children:[(0,Ye.jsx)(wo,{shrink:!0,htmlFor:"issueId",children:En("issue")}),(0,Ye.jsxs)(WL,{id:"issueId",name:"issueId",value:t.issueId,onChange:this.handleChange,children:[(0,Ye.jsx)("option",{value:"",children:En("selectIssue")}),t.issues.map(e=>(0,Ye.jsx)("option",{value:e.id,children:e.name},e.id))]})]},"issue"):(0,Ye.jsx)(JN,{variant:"query"},"issueLoading"),this.state.currentReport.ticketReportLoaded&&this.state.currentReport.tickets.length>0?(0,Ye.jsxs)("div",{id:"filterSearch",className:this.state.isSearch?e.filterSearch:e.filterSearchWithoutReset,children:[(0,Ye.jsx)(Pr,{style:{display:"inline"},variant:"standard",children:(0,Ye.jsx)(uo,{name:"searchText",id:"searchText",type:"text",onChange:this.onTextChange,className:e.searchField})}),(0,Ye.jsx)(kr,{size:"small",name:"search",onClick:this.submitSearch,className:"".concat(e.searchMargin," ").concat(e.neutralColor),variant:"contained",color:"primary",children:En("search")}),this.state.isSearch?"|":"",o]}):""]}):(0,Ye.jsx)(At,{})})})}),t.ticketReportLoaded&&(i=(0,Ye.jsx)(DR,{userInfo:this.props.userInfo,isSearch:this.state.isSearch,currentReport:t,updateReport:this.updateReport}));let a=void 0===t.publisherId;return(0,Ye.jsxs)("div",{children:[(0,Ye.jsxs)("div",{className:e.headerSection,children:[(0,Ye.jsx)(Tn,{className:e.heading,variant:"h5",children:En("sales")}),(0,Ye.jsx)("hr",{className:e.horizontalBar})]}),!a&&(0,Ye.jsx)("div",{className:e.searchSection,children:(0,Ye.jsxs)("form",{id:"searchForm",className:e.formFix,children:[n,(0,Ye.jsxs)("div",{style:{display:"inline-block",position:"relative"},children:[(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"primary","data-component":"ticketReport","data-classname":"submit",className:e.submit,onClick:this.handleSubmit,disabled:this.state.submitting||!this.state.searchIsReady,children:En("viewAdList")}),this.state.submitting&&(0,Ye.jsx)(At,{size:24,className:e.buttonProgress})]})]})}),a&&(0,Ye.jsx)("div",{children:(0,Ye.jsx)(Tn,{children:En("noPubsOrIssues")})}),(0,Ye.jsx)("div",{className:e.reportSection,children:i})]})}}const LR=pn(PR,e=>{var t={heading:{fontWeight:"bold",marginTop:e.spacing(1)},horizontalBar:{borderColor:"black"},formFix:{width:"100%"},searchSection:{width:"100%"},searchType:{width:48,marginTop:15,alignItems:"flex-start",display:"inline-table"},searchTypeSection:{display:"flex"},dropDownContainer:{width:274,marginRight:15},submit:{margin:"15px 0px 25px 45px"},searchField:{width:180},filterSection:{"& div:not(:last-child)":{marginBottom:2},marginLeft:2},filterSectionLabel:{display:"inline-block",marginRight:25,verticalAlign:"middle",whiteSpace:"nowrap"},showLateProofCheckbox:{marginLeft:-20,padding:5},filterControl:{padding:5},filterLabel:{marginRight:25},groupHeader:{marginTop:e.spacing(1),cursor:"pointer",userSelect:"none",borderWidth:"1px",borderStyle:"solid",borderColor:"#CCC",background:"#EEE","&:hover":{background:"#D8D8D8"},transition:"background-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms"},reportSection:{overflow:"auto"},headerSection:{height:"100%"},neutralColor:{color:e.palette.neutral.contrastText,backgroundColor:e.palette.neutral.main,"&:hover":{backgroundColor:e.palette.neutral.dark}},searchMargin:{marginRight:5,marginLeft:5},buttonProgress:{color:_o.A[500],position:"absolute",top:"calc(100% - 55px)",left:"calc(100% - 65px)",overflow:"hidden"},filterSearch:{marginLeft:"auto",marginTop:24},filterSearchWithoutReset:{marginLeft:"auto",marginTop:24,marginRight:77}};return t=rc(e,t,"salesReport")},{withTheme:!0});class RR extends r.Component{static getDerivedStateFromProps(e,t){let{currentSubmission:n}=t;return n.redirectLocation===e.location.pathname?(n.redirectLocation="",{currentSubmission:n}):null}constructor(e){super(e),this.displayName=RR.name,this.updateSubmission=e=>{this.setState({currentSubmission:e})}
2,this.showBackgroundDialog=e=>{this.setState({showingMessage:!0,lastMessage:e})},this.closeDialog=()=>{this.setState({showingMessage:!1})},this.getDialogContent=()=>(0,Ye.jsxs)(Aa,{open:this.state.showingMessage,onClose:this.closeDialog,"aria-describedby":"alert-dialog-description",children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:this.state.lastMessage})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:()=>this.closeDialog(),variant:"contained",color:"secondary",autoFocus:!0,children:En("ok")},"btnOK")})]}),this.ticketRouting=(e,t)=>{if(t&&t.redirectLocation&&t.redirectLocation.length>0)return(0,Ye.jsx)(ge,{to:t.redirectLocation,replace:!0});{let t=(0,Ye.jsx)(Ye.Fragment,{});const n=this.props.location.pathname.toLowerCase();return n.startsWith("/ticket")&&!this.props.userInfo.cannotSubmit?t=(0,Ye.jsx)(jP,Fe(Fe({},this.props),{},{currentSubmission:this.state.currentSubmission,updateSubmission:this.updateSubmission,showBackgroundDialog:this.showBackgroundDialog})):n.startsWith("/track")&&!this.props.userInfo.cannotSubmit?t=(0,Ye.jsx)(wN,Fe(Fe({},this.props),{},{currentSubmission:this.state.currentSubmission,updateSubmission:this.updateSubmission})):n.startsWith("/profile")?t=(0,Ye.jsx)(DP,Fe(Fe({},this.props),{},{updateUserInfo:this.props.updateUserInfo})):n.startsWith("/help")?t=(0,Ye.jsx)(hL,{}):n.startsWith("/sales")?t=(0,Ye.jsx)(LR,Fe(Fe({},this.props),{},{userInfo:this.props.userInfo})):n.startsWith("/isr")?t=(0,Ye.jsx)(NR,Fe(Fe({},this.props),{},{userInfo:this.props.userInfo,updateUserInfo:this.props.updateUserInfo,updateSubmission:this.updateSubmission})):n.startsWith("/admin")&&(t=(0,Ye.jsx)(RL,{})),(0,Ye.jsx)("div",{className:e.body,children:t})}},this.state={currentSubmission:{backup:[]},showingMessage:!1,lastMessage:""}}render(){const{classes:e}=this.props;return(0,Ye.jsxs)("div",{className:e.root,children:[(0,Ye.jsx)("div",{className:e.header,children:(0,Ye.jsx)(hd,{userInfo:this.props.userInfo,updateUserInfo:this.props.updateUserInfo,updateSubmission:this.updateSubmission,showBackgroundDialog:this.showBackgroundDialog})}),(0,Ye.jsxs)("div",{className:e.main,children:[(0,Ye.jsx)(wp,{userInfo:this.props.userInfo}),(0,Ye.jsxs)("div",{id:"pageBodyArea",className:e.content,children:[this.ticketRouting(e,this.state.currentSubmission),(0,Ye.jsx)("div",{className:e.footer,children:(0,Ye.jsx)(md,{})})]})]}),this.getDialogContent()]})}}const OR=bc(pn(RR,e=>{var t={root:{minHeight:"100vh",display:"flex",flexDirection:"column"},header:{flexShrink:"0"},main:{display:"flex",flexFlow:"row",flex:"1 0 auto"},content:{flex:"2 0px",display:"flex",flexDirection:"column",paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingBottom:e.spacing(2)},body:{flex:"1 0 auto"},footer:{flexShrink:"0",paddingTop:"1em"}};return t=rc(e,t,"mainLayout"),document.body.style.background=ic("mainLayout","background"),t},{withTheme:!0}));var zR=n(52447),FR=n.n(zR);const BR=Object.freeze({None:0,Error:1});class UR extends r.Component{constructor(e){super(e),this.buildLoginBox=()=>{var e;const{classes:t}=this.props,{loading:n}=this.state,{message:r}=null!==(e=this.props.location.state)&&void 0!==e?e:"";return(0,Ye.jsxs)(xn,{className:t.paper,children:[(0,Ye.jsx)(Tn,{variant:"subtitle2",children:(0,Ye.jsxs)("strong",{children:[r," ",En("enterNewPassword")]})}),(0,Ye.jsxs)("form",{id:"newPasswordForm",className:t.form,children:[(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"password",children:En("password")}),(0,Ye.jsx)(uo,{id:"password",name:"password",type:"password",autoFocus:!0,onChange:this.validatePassword})]}),(0,Ye.jsxs)(Pr,{margin:"dense",required:!0,fullWidth:!0,variant:"standard",children:[(0,Ye.jsx)(wo,{htmlFor:"confirmPassword",children:En("newPasswordConfirmPassword")}),(0,Ye.jsx)(uo,{id:"confirmPassword",name:"confirmPassword",type:"password",onChange:this.validatePasswordMatch})]}),(0,Ye.jsxs)("span",{className:t.submitWrapper,children:[n&&(0,Ye.jsx)(At,{size:24,style:{visibility:"hidden"}}),(0,Ye.jsx)(kr,{type:"submit",variant:"contained",color:"secondary",disabled:n,"data-component":"login","data-classname":"submit",className:t.
2submit,onClick:this.submitNewPassword,children:En("reset")}),n&&(0,Ye.jsx)(At,{size:24,className:t.buttonProgress})]})]}),(0,Ye.jsx)("p",{}),(0,Ye.jsx)("div",{children:(0,Ye.jsx)(je,{to:"/logout",children:En("returnToLoginPage")})})]})},this.validatePassword=e=>{Ql(e.target)&&e.target.setCustomValidity("")},this.validatePasswordMatch=e=>{document.getElementById("password").value!==e.target.value?e.target.setCustomValidity(En("passwordMismatch")+"\n"):e.target.setCustomValidity("")},this.submitNewPassword=e=>{var t=document.getElementById("newPasswordForm"),n=document.getElementById("password"),r=document.getElementById("confirmPassword");""!==n.value&&""!==r.value&&Ql(n)&&(n.value!==r.value?r.setCustomValidity(En("passwordMismatch")+"\n"):r.setCustomValidity(""),t.checkValidity()&&(e.preventDefault(),n.value===r.value?fetch("SvrUser/UpdatePassword"+this.props.location.search,{method:"POST",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({password1:n.value,password2:r.value})}).then(e=>e.json()).then(e=>{e.success?this.setState({passwordReset:!0}):this.setState({showDialog:!0,message:En(e.error),dialogType:BR.Error})}):this.setState({showDialog:!0,dialogType:BR.Error,message:En("confirmPasswordNoMatch")})))},this.closeDialog=()=>{this.setState({showDialog:!1})},this.state={loading:!1,dialogType:BR.None,showDialog:!1,message:"",passwordReset:!1,redirectToLogin:!1},fetch("SvrUser/IsPasswordResetLinkValid"+e.location.search,{method:"POST",credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.isValid||this.setState({redirectToLogin:!0})})}render(){const{classes:e}=this.props;let t="",n="",i="";return"True"===ic("login","hasHeader")?t=(0,Ye.jsx)("div",{className:e.header,children:(0,Ye.jsx)("img",{className:e.headerLogo,"data-component":"login","data-classname":"headerLogo",src:"branding/GetImage?fileType=loginLogo",alt:"AdShuttle"})}):n=(0,Ye.jsx)("div",{className:e.logo,"data-component":"login","data-classname":"logo",children:(0,Ye.jsx)("img",{"data-component":"login","data-classname":"logo",src:"branding/GetImage?fileType=loginLogo",alt:"AdShuttle"})}),i=(0,Ye.jsxs)(r.Fragment,{children:[(0,Ye.jsx)("div",{className:e.layout,children:this.buildLoginBox()}),(0,Ye.jsx)("div",{className:e.helpBelowLogin,children:(0,Ye.jsx)(ac,{showButton:!0})})]}),(0,Ye.jsxs)("div",{className:e.contentWrapper,children:[this.state.passwordReset?(0,Ye.jsx)(ge,{to:"/ticket",replace:!0}):"",this.state.redirectToLogin?(0,Ye.jsx)(ge,{to:{pathname:"/",state:{showError:!0,lastError:"resetPasswordLinkInvalid"}},replace:!0}):"",t,(0,Ye.jsxs)("div",{className:e.loginBody,children:[(0,Ye.jsx)("div",{className:e.spaceAboveLogo}),n,i]}),(0,Ye.jsx)("div",{className:e.bottomBar,children:(0,Ye.jsxs)(Tn,{variant:"body2",children:[(0,Ye.jsxs)("span",{className:e.bottomSegment,children:[En("copyright")," ",En("workflowSolutions")]}),(0,Ye.jsx)("span",{className:e.bottomSegment,children:(0,Ye.jsx)(je,{to:"/terms",target:"_blank",children:En("terms")})}),(0,Ye.jsx)("span",{className:e.bottomSegment,children:(0,Ye.jsx)(je,{to:"/privacy",target:"_blank",children:En("privacyPolicy")})})]})}),(0,Ye.jsxs)(Aa,{open:this.state.showDialog,onClose:this.closeDialog,children:[(0,Ye.jsx)(za,{children:(0,Ye.jsx)(Ha,{id:"alert-dialog-description",children:this.state.message})}),(0,Ye.jsx)(Ia,{children:(0,Ye.jsx)(kr,{onClick:this.closeDialog,variant:"contained",color:"secondary",autoFocus:!0,children:En("ok")})})]})]})}}const HR=bc(pn(UR,e=>{var t={contentWrapper:{minHeight:"100vh",display:"flex",flexDirection:"column"},header:{background:"#FFF"},loginBody:{flex:"1 0 auto",background:"#ABC"},logo:{textAlign:"center",marginTop:e.spacing(3),"& img":{height:"inherit"}},layout:{display:"flex",justifyContent:"center",alignItems:"flex-start"},paper:{minWidth:"350px",maxWidth:"400px",marginTop:e.spacing(4),marginLeft:e.spacing(3),marginRight:e.spacing(3),display:"flex",flexDirection:"column",alignItems:"center",padding:"".concat(e.spacing(2)," ").concat(e.spacing(3)," ").concat(e.spacing(1))},form:{width:"100%",paddingTop:"6px"},submitWrapper:{margin:e.spacing(1),textAlign:"center",display:"block"},submit:{paddingLeft:"64px",paddingRight:"64px"},buttonProgress:{color:_o.A[500],position:"relative",top:"8px",left:"-95px",marginTop:0,marginRight:0},helpBelowLogin:{textAlign:"center",paddingTop:e.spacing(6)},bottomBar:{flexShrink:"0",textAlign:"center",padding:"1em","& p":{color:ic("login","footerForegroundColor")},"& p a":{color:ic("login","footerLinkColor")},"& p a:visited":{color:ic("login","footerLinkColor")}},bottomSegment:{paddingLeft:"0.5em",paddingRight:"0.5em"}};(t=rc(e,t,"login")).logo.paddingRight=0;let n=ic("login","background");return n&&n.length>0?document.body.style.background=n:document.body.style.background=t.loginBody.background,t},{withTheme:!0}));class WR extends r.Component{constructor(e){super(e),this.displayName=WR.name,this.state={loading:!0,lastMessage:"activatingAccount",sendToLogin:!1},fetch("SvrUser/ConfirmEmailAddress"+this.props.location.search,{credentials:"same-origin"}).then(e=>e.json()).then(e=>{!0===e.success?this.setState({loading:!1,lastMessage:En("emailAddressConfirmed")}):this.setState({loading:!1,lastMessage:e.error,sendToLogin:!0})})}render(){const{classes:e}=this.props,{loading:t}=this.state;let n="",r="";return t?n=(0,Ye.jsx)(At,{size:60}):r=(0,Ye.jsx)("div",{className:e.topSpace,children:(0,Ye.jsx)(je,{to:"/",replace:!0,children:(0,Ye.jsx)(kr,{color:"primary",variant:"contained",children:En("ok")})})}),(0,Ye.jsx)("div",{className:e.layout,children:this.state.sendToLogin?(0,Ye.jsx)(ge,{to:{pathname:"/",state:{showError:!0,lastError:"emailConfirmationInvalid"}},replace:!0}):(0,Ye.jsxs)(xn,{className:e.paper,children:[n,(0,Ye.jsx)("div",{className:e.topSpace,children:(0,Ye.jsx)(Tn,{variant:"body2",children:En(this.state.lastMessage)})}),r]})})}}const VR=bc(pn(WR,e=>({layout:{width:"auto",display:"block",marginLeft:e.spacing(3),marginRight:e.spacing(3),[e.breakpoints.up(400+e.spacing(6))]:{width:400,marginLeft:"auto",marginRight:"auto"}},paper:{marginTop:e.spacing(4),display:"flex",flexDirection:"column",alignItems:"center",padding:"".concat(e.spacing(2)," ").concat(e.spacing(3)," ").concat(e.spacing(1))},topSpace:{marginTop:e.spacing(4)}}
2)));const GR=r.createContext(null);function qR(){return r.useContext(GR)}const KR="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const YR=function(e){const{children:t,theme:n}=e,i=qR(),o=r.useMemo(()=>{const e=null===i?n:function(e,t){if("function"===typeof t)return t(e);return(0,Be.A)({},e,t)}(i,n);return null!=e&&(e[KR]=null!==i),e},[n,i]);return(0,Ye.jsx)(GR.Provider,{value:o,children:t})};var XR=n(13654);const ZR={};function QR(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r.useMemo(()=>{const r=e&&t[e]||t;if("function"===typeof n){const o=n(r),a=e?(0,Be.A)({},t,{[e]:o}):o;return i?()=>a:a}return e?(0,Be.A)({},t,{[e]:n}):(0,Be.A)({},t,n)},[e,t,n,i])}const JR=function(e){const{children:t,theme:n,themeId:r}=e,i=Ge(ZR),o=qR()||ZR,a=QR(r,i,n),s=QR(r,o,n,!0),l="rtl"===a.direction;return(0,Ye.jsx)(YR,{theme:s,children:(0,Ye.jsx)(Ve.T.Provider,{value:a,children:(0,Ye.jsx)(Xa,{value:l,children:(0,Ye.jsx)(XR.A,{value:null==a?void 0:a.components,children:t})})})})},$R=["theme"];function eO(e){let{theme:t}=e,n=(0,rt.A)(e,$R);const r=t[Qe.A];let i=r||t;return"function"!==typeof t&&(r&&!r.vars?i=(0,Be.A)({},r,{vars:null}):t&&!t.vars&&(i=(0,Be.A)({},t,{vars:null}))),(0,Ye.jsx)(JR,(0,Be.A)({},n,{themeId:r?Qe.A:void 0,theme:i}))}var tO=n(64780);const{makeStyles:nO}=Gt({useTheme:Et}),rO=nO()({centeredSpinner:{marginLeft:"auto",marginRight:"auto",width:"50px"}});function iO(){}var oO=null,aO=null;const sO=714e4;function lO(e){var t;const{classes:n}=rO(),i=(0,r.useRef)(""),[o,a]=(0,r.useState)(!0),[s,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),[d,p]=(0,r.useState)(null),h=$();(0,r.useEffect)(()=>{window.AdShuttleGlobal=iO,iO.pushTheme=m,iO.getTheme=f,fetch("Branding/GetTheme").then(e=>e.json()).then(e=>{var t=(0,tO.A)(e);t.palette.neutral=t.palette.augmentColor({color:t.palette.neutral}),fetch("Branding/GetLanguageTable").then(e=>e.json()).then(e=>{An=e,fetch("SvrUser/IsLoggedIn",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{e.server&&(document.title="AdShuttle - ".concat(e.server)),i.current=t,a(!1),u(e.loggedIn),l(e.userInfo),v(e.loggedIn)})})})},[]);const f=()=>i.current,m=e=>{var t=(0,tO.A)(e);t.palette.neutral=t.palette.augmentColor({color:t.palette.neutral}),i.current=t},g=()=>{fetch("SvrUser/LogOut",{credentials:"same-origin"}).then(e=>e.json()).then(e=>{aO&&clearTimeout(aO),aO=null,oO(),oO=null,u(!1),l(null),p({pathname:window.location.pathname})})},v=e=>{e&&null===oO?(oO=FR().register({request:function(e,t){return aO&&clearTimeout(aO),aO=setTimeout(()=>g(),sO),[e,t]}}),aO&&clearTimeout(aO),aO=setTimeout(()=>g(),sO)):!e&&oO&&(oO(),oO=null,aO&&clearTimeout(aO))},y=(e,t)=>{v(e),u(e),l(t),p(null)},b=c?(0,Ye.jsx)(OR,{allowAdResubmission:s.allowTicketResubmission,userInfo:s,updateUserInfo:e=>{l(e)}}):(0,Ye.jsx)(ge,{to:{pathname:"/",state:{destination:h}},replace:!0});return o?(0,Ye.jsx)("div",{className:n.centeredSpinner,children:(0,Ye.jsx)(At,{size:50})}):(0,Ye.jsxs)(eO,{theme:i.current,children:[(0,Ye.jsx)(tt,{}),(0,Ye.jsx)(Je,{styles:{body:{backgroundColor:"#fafafa",fontSize:"0.875rem",lineHeight:"1.43",letterSpacing:"0.01071em"}}}),(0,Ye.jsxs)(be,{children:[(0,Ye.jsx)(ve,{path:"/",element:(0,Ye.jsx)(pc,Fe(Fe({},e),{},{location:h,autoLogoutFrom:d,isAuthenticated:c,onLoginCompleted:y,needsToChangePassword:s&&s.tempPasswordExpiration,cannotSubmit:s&&s.cannotSubmit,isSales:s&&s.isSales,showSupport:h.state&&(null===h||void 0===h||null===(t=h.state)||void 0===t?void 0:t.destination)&&"/help/support"===h.state.destination.pathname}))}),(0,Ye.jsx)(ve,{path:"/logout",element:(0,Ye.jsx)(fc,Fe(Fe({},e),{},{onLogoutCompleted:y}))}),(0,Ye.jsx)(ve,{path:"/ticket/*",element:b}),(0,Ye.jsx)(ve,{path:"/track/*",element:b}),(0,Ye.jsx)(ve,{path:"/profile/*",element:b}),(0,Ye.jsx)(ve,{path:"/help/*",element:b}),(0,Ye.jsx)(ve,{path:"/isr/*",element:b}),(0,Ye.jsx)(ve,{path:"/sales/*",element:b}),(0,Ye.jsx)(ve,{path:"/admin/*",element:b}),(0,Ye.jsx)(ve,{path:"/terms",element:(0,Ye.jsx)(gc,{})}),(0,Ye.jsx)(ve,{path:"/privacy",element:(0,Ye.jsx)(yc,{})}),(0,Ye.jsx)(ve,{path:"/activate/*",element:(0,Ye.jsx)(Sc,{})}),(0,Ye.jsx)(ve,{path:"/confirmemailchange/*",element:(0,Ye.jsx)(VR,{})}),(0,Ye.jsx)(ve,{path:"/user/*",element:(0,Ye.jsx)(ge,{to:{pathname:"/"},replace:!0})}),(0,Ye.jsx)(ve,{path:"/passreset/*",element:(0,Ye.jsx)(HR,{})}),(0,Ye.jsx)(ve,{path:"*",element:(0,Ye.jsx)(Mr,{})})]})]})}const cO=document.getElementsByTagName("base")[0].getAttribute("href"),uO=(0,o.H)(document.getElementById("root"));cO&&document.location.pathname.length<cO.length&&window.history.replaceState({},"AdShuttle",cO),uO.render((0,Ye.jsx)(r.StrictMode,{children:(0,Ye.jsx)(Te,{basename:cO,children:(0,Ye.jsx)(lO,{})})}))})()})(); 3//# sourceMappingURL=main.b744f0a3.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.